@devframes/plugin-git 0.6.0-beta.3 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +1 -1
- package/dist/client/404/index.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/__next.__PAGE__.txt +2 -2
- package/dist/client/__next._full.txt +2 -2
- package/dist/client/__next._head.txt +1 -1
- package/dist/client/__next._index.txt +1 -1
- package/dist/client/__next._tree.txt +1 -1
- package/dist/client/_next/static/chunks/{1ve9y75k_w2tp.js → 2g7tuxbfeqdp6.js} +1 -1
- package/dist/client/_not-found/__next._full.txt +1 -1
- package/dist/client/_not-found/__next._head.txt +1 -1
- package/dist/client/_not-found/__next._index.txt +1 -1
- package/dist/client/_not-found/__next._not-found.__PAGE__.txt +1 -1
- package/dist/client/_not-found/__next._not-found.txt +1 -1
- package/dist/client/_not-found/__next._tree.txt +1 -1
- package/dist/client/_not-found/index.html +1 -1
- package/dist/client/_not-found/index.txt +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/index.txt +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{src-D9eCaevD.mjs → src-Ad1cLoVH.mjs} +1 -1
- package/package.json +2 -2
- /package/dist/client/_next/static/{a8E2_Z1GAb00WAmxuTvEO → uS34ufSZByHrGXjUZ9qx8}/_buildManifest.js +0 -0
- /package/dist/client/_next/static/{a8E2_Z1GAb00WAmxuTvEO → uS34ufSZByHrGXjUZ9qx8}/_clientMiddlewareManifest.js +0 -0
- /package/dist/client/_next/static/{a8E2_Z1GAb00WAmxuTvEO → uS34ufSZByHrGXjUZ9qx8}/_ssgManifest.js +0 -0
package/dist/cli.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="./_next/static/chunks/1d96lhco1n2ew.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="./_next/static/chunks/1axuz0ay3inwy.js"/><script src="./_next/static/chunks/16riauq6njyz7.js" async=""></script><script src="./_next/static/chunks/06fk_5mskx76l.js" async=""></script><script src="./_next/static/chunks/turbopack-0o8j879uo2h53.js" async=""></script><script src="./_next/static/chunks/3_r710jkdg-l1.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>Git Dashboard</title><meta name="description" content="A devframe Git integration with a Next.js App Router + shadcn/ui SPA."/><script>(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();</script><script src="./_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><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/1axuz0ay3inwy.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[89788,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\"]\n3:I[14405,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\"]\n4:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"ViewportBoundary\"]\na:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"MetadataBoundary\"]\nc:I[56872,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\",1]\n:HL[\"./_next/static/chunks/1d96lhco1n2ew.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/1d96lhco1n2ew.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"./_next/static/chunks/3_r710jkdg-l1.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'\u0026\u0026t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();\"}}]}],[\"$\",\"body\",null,{\"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:1: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:1: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:1: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:1: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/1d96lhco1n2ew.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="./_next/static/chunks/1d96lhco1n2ew.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="./_next/static/chunks/1axuz0ay3inwy.js"/><script src="./_next/static/chunks/16riauq6njyz7.js" async=""></script><script src="./_next/static/chunks/06fk_5mskx76l.js" async=""></script><script src="./_next/static/chunks/turbopack-0o8j879uo2h53.js" async=""></script><script src="./_next/static/chunks/3_r710jkdg-l1.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>Git Dashboard</title><meta name="description" content="A devframe Git integration with a Next.js App Router + shadcn/ui SPA."/><script>(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();</script><script src="./_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><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/1axuz0ay3inwy.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[89788,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\"]\n3:I[14405,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\"]\n4:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"ViewportBoundary\"]\na:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"MetadataBoundary\"]\nc:I[56872,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\",1]\n:HL[\"./_next/static/chunks/1d96lhco1n2ew.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/1d96lhco1n2ew.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"./_next/static/chunks/3_r710jkdg-l1.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'\u0026\u0026t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();\"}}]}],[\"$\",\"body\",null,{\"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:1: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:1: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:1: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:1: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/1d96lhco1n2ew.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"uS34ufSZByHrGXjUZ9qx8\"}\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,"6:null\nb:[[\"$\",\"title\",\"0\",{\"children\":\"Git Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"A devframe Git integration with a Next.js App Router + shadcn/ui SPA.\"}]]\n"])</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="./_next/static/chunks/1d96lhco1n2ew.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="./_next/static/chunks/1axuz0ay3inwy.js"/><script src="./_next/static/chunks/16riauq6njyz7.js" async=""></script><script src="./_next/static/chunks/06fk_5mskx76l.js" async=""></script><script src="./_next/static/chunks/turbopack-0o8j879uo2h53.js" async=""></script><script src="./_next/static/chunks/3_r710jkdg-l1.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>Git Dashboard</title><meta name="description" content="A devframe Git integration with a Next.js App Router + shadcn/ui SPA."/><script>(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();</script><script src="./_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><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/1axuz0ay3inwy.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[89788,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\"]\n3:I[14405,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\"]\n4:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"ViewportBoundary\"]\na:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"MetadataBoundary\"]\nc:I[56872,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\",1]\n:HL[\"./_next/static/chunks/1d96lhco1n2ew.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/1d96lhco1n2ew.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"./_next/static/chunks/3_r710jkdg-l1.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'\u0026\u0026t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();\"}}]}],[\"$\",\"body\",null,{\"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:1: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:1: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:1: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:1: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/1d96lhco1n2ew.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="./_next/static/chunks/1d96lhco1n2ew.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="./_next/static/chunks/1axuz0ay3inwy.js"/><script src="./_next/static/chunks/16riauq6njyz7.js" async=""></script><script src="./_next/static/chunks/06fk_5mskx76l.js" async=""></script><script src="./_next/static/chunks/turbopack-0o8j879uo2h53.js" async=""></script><script src="./_next/static/chunks/3_r710jkdg-l1.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>Git Dashboard</title><meta name="description" content="A devframe Git integration with a Next.js App Router + shadcn/ui SPA."/><script>(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();</script><script src="./_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><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/1axuz0ay3inwy.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[89788,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\"]\n3:I[14405,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\"]\n4:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"ViewportBoundary\"]\na:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"MetadataBoundary\"]\nc:I[56872,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\",1]\n:HL[\"./_next/static/chunks/1d96lhco1n2ew.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/1d96lhco1n2ew.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"./_next/static/chunks/3_r710jkdg-l1.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'\u0026\u0026t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();\"}}]}],[\"$\",\"body\",null,{\"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:1: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:1: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:1: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:1: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/1d96lhco1n2ew.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"uS34ufSZByHrGXjUZ9qx8\"}\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,"6:null\nb:[[\"$\",\"title\",\"0\",{\"children\":\"Git Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"A devframe Git integration with a Next.js App Router + shadcn/ui SPA.\"}]]\n"])</script></body></html>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[53567,["./_next/static/chunks/3_r710jkdg-l1.js","./_next/static/chunks/1-i03okz33ydm.js","./_next/static/chunks/
|
|
2
|
+
2:I[53567,["./_next/static/chunks/3_r710jkdg-l1.js","./_next/static/chunks/1-i03okz33ydm.js","./_next/static/chunks/2g7tuxbfeqdp6.js"],"Dashboard",1]
|
|
3
3
|
3:I[66941,["./_next/static/chunks/3_r710jkdg-l1.js"],"OutletBoundary"]
|
|
4
4
|
4:"$Sreact.suspense"
|
|
5
|
-
0:{"rsc":["$","$1","c",{"children":[["$","$L2",null,{}],[["$","script","script-0",{"src":"./_next/static/chunks/1-i03okz33ydm.js","async":true}],["$","script","script-1",{"src":"./_next/static/chunks/
|
|
5
|
+
0:{"rsc":["$","$1","c",{"children":[["$","$L2",null,{}],[["$","script","script-0",{"src":"./_next/static/chunks/1-i03okz33ydm.js","async":true}],["$","script","script-1",{"src":"./_next/static/chunks/2g7tuxbfeqdp6.js","async":true}]],["$","$L3",null,{"children":["$","$4",null,{"name":"Next.MetadataOutlet","children":"$@5"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"uS34ufSZByHrGXjUZ9qx8"}
|
|
6
6
|
5:null
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[89788,["./_next/static/chunks/3_r710jkdg-l1.js"],"default"]
|
|
3
3
|
3:I[14405,["./_next/static/chunks/3_r710jkdg-l1.js"],"default"]
|
|
4
|
-
4:I[53567,["./_next/static/chunks/3_r710jkdg-l1.js","./_next/static/chunks/1-i03okz33ydm.js","./_next/static/chunks/
|
|
4
|
+
4:I[53567,["./_next/static/chunks/3_r710jkdg-l1.js","./_next/static/chunks/1-i03okz33ydm.js","./_next/static/chunks/2g7tuxbfeqdp6.js"],"Dashboard",1]
|
|
5
5
|
5:I[66941,["./_next/static/chunks/3_r710jkdg-l1.js"],"OutletBoundary"]
|
|
6
6
|
6:"$Sreact.suspense"
|
|
7
7
|
8:I[66941,["./_next/static/chunks/3_r710jkdg-l1.js"],"ViewportBoundary"]
|
|
8
8
|
a:I[66941,["./_next/static/chunks/3_r710jkdg-l1.js"],"MetadataBoundary"]
|
|
9
9
|
c:I[56872,["./_next/static/chunks/3_r710jkdg-l1.js"],"default",1]
|
|
10
10
|
:HL["./_next/static/chunks/1d96lhco1n2ew.css","style"]
|
|
11
|
-
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/1d96lhco1n2ew.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"./_next/static/chunks/3_r710jkdg-l1.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();"}}]}],["$","body",null,{"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,{}],[["$","script","script-0",{"src":"./_next/static/chunks/1-i03okz33ydm.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"./_next/static/chunks/
|
|
11
|
+
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/1d96lhco1n2ew.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"./_next/static/chunks/3_r710jkdg-l1.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();"}}]}],["$","body",null,{"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,{}],[["$","script","script-0",{"src":"./_next/static/chunks/1-i03okz33ydm.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"./_next/static/chunks/2g7tuxbfeqdp6.js","async":true,"nonce":"$undefined"}]],["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],null]}],false]],"m":"$undefined","G":["$c",[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/1d96lhco1n2ew.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"uS34ufSZByHrGXjUZ9qx8"}
|
|
12
12
|
9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
13
13
|
7:null
|
|
14
14
|
b:[["$","title","0",{"children":"Git Dashboard"}],["$","meta","1",{"name":"description","content":"A devframe Git integration with a Next.js App Router + shadcn/ui SPA."}]]
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
2:I[66941,["./_next/static/chunks/3_r710jkdg-l1.js"],"ViewportBoundary"]
|
|
3
3
|
3:I[66941,["./_next/static/chunks/3_r710jkdg-l1.js"],"MetadataBoundary"]
|
|
4
4
|
4:"$Sreact.suspense"
|
|
5
|
-
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":"Git Dashboard"}],["$","meta","1",{"name":"description","content":"A devframe Git integration with a Next.js App Router + shadcn/ui SPA."}]]}]}]}],null]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"
|
|
5
|
+
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":"Git Dashboard"}],["$","meta","1",{"name":"description","content":"A devframe Git integration with a Next.js App Router + shadcn/ui SPA."}]]}]}]}],null]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"uS34ufSZByHrGXjUZ9qx8"}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
2:I[89788,["./_next/static/chunks/3_r710jkdg-l1.js"],"default"]
|
|
3
3
|
3:I[14405,["./_next/static/chunks/3_r710jkdg-l1.js"],"default"]
|
|
4
4
|
:HL["./_next/static/chunks/1d96lhco1n2ew.css","style"]
|
|
5
|
-
0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/1d96lhco1n2ew.css","precedence":"next"}],["$","script","script-0",{"src":"./_next/static/chunks/3_r710jkdg-l1.js","async":true}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();"}}]}],["$","body",null,{"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":"
|
|
5
|
+
0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/1d96lhco1n2ew.css","precedence":"next"}],["$","script","script-0",{"src":"./_next/static/chunks/3_r710jkdg-l1.js","async":true}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();"}}]}],["$","body",null,{"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":"uS34ufSZByHrGXjUZ9qx8"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
:HL["./_next/static/chunks/1d96lhco1n2ew.css","style"]
|
|
2
|
-
0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}},"staleTime":300,"buildId":"
|
|
2
|
+
0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}},"staleTime":300,"buildId":"uS34ufSZByHrGXjUZ9qx8"}
|
|
@@ -198,4 +198,4 @@ XID_Start XIDS`.split(/\s/).map(e=>[d6(e),e])),uM=new Map([["s",uv(383)],[uv(383
|
|
|
198
198
|
${ak(n)}
|
|
199
199
|
${e}
|
|
200
200
|
}
|
|
201
|
-
}`}(t,o,l)}),this.appliedThemeCSS=null!=this.themeCSSStyle?{theme:s,themeStyles:t,themeType:o,baseThemeType:i,scrollbarGutter:l}:void 0}hydrateMeasuredScrollbar(){let e=this.fileContainer?.shadowRoot;if(null!=e&&null!=this.themeCSSStyle){var t;let n;this.themeCSSStyle.textContent=(t=this.themeCSSStyle.textContent??"",n=ak(ax(e)),t.replace(aC,n))}}applyHunksToDOM(e,t){let{overflow:n="scroll"}=this.options,i=(this.options.hunkSeparators??"line-info")==="line-info",r="wrap"===n?t.rowCount:void 0;this.cleanupErrorWrapper(),this.applyPreNodeAttributes(e,t);let o=!1,a=[],s=this.hunksRenderer.renderCodeAST("unified",t),l=this.hunksRenderer.renderCodeAST("deletions",t),d=this.hunksRenderer.renderCodeAST("additions",t);null!=s?(o=null==this.codeUnified||null!=this.codeAdditions||null!=this.codeDeletions,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0,this.codeUnified=aA({code:this.codeUnified,columnType:"unified",rowSpan:r,containerSize:i}),this.codeUnified.innerHTML=this.hunksRenderer.renderPartialHTML(s),a.push(this.codeUnified)):null!=l||null!=d?(null!=l?(o=null==this.codeDeletions||null!=this.codeUnified,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions=aA({code:this.codeDeletions,columnType:"deletions",rowSpan:r,containerSize:i}),this.codeDeletions.innerHTML=this.hunksRenderer.renderPartialHTML(l),a.push(this.codeDeletions)):(this.codeDeletions?.remove(),this.codeDeletions=void 0),null!=d?(o=o||null==this.codeAdditions||null!=this.codeUnified,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeAdditions=aA({code:this.codeAdditions,columnType:"additions",rowSpan:r,containerSize:i}),this.codeAdditions.innerHTML=this.hunksRenderer.renderPartialHTML(d),a.push(this.codeAdditions)):(this.codeAdditions?.remove(),this.codeAdditions=void 0)):(this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0),0===a.length?e.textContent="":o&&e.replaceChildren(...a),this.lastRowCount=t.rowCount}applyPartialRender({previousRenderRange:e,renderRange:t}){let{pre:n,codeUnified:i,codeAdditions:r,codeDeletions:o,options:{diffStyle:a="split"}}=this;if(null==n||null==e||null==t||!Number.isFinite(e.totalLines)||!Number.isFinite(t.totalLines)||null==this.lastRowCount)return!1;let s=this.getCodeColumns(a,i,o,r);if(null==s)return!1;let l=e.startingLine,d=t.startingLine,u=l+e.totalLines,c=d+t.totalLines,h=Math.max(l,d),f=Math.min(u,c);if(f<=h)return!1;let p=Math.max(0,h-l),m=Math.max(0,u-f),g=this.trimColumns({columns:s,trimStart:p,trimEnd:m,previousStart:l,overlapStart:h,overlapEnd:f,diffStyle:a});if(g<0)throw Error("applyPartialRender: failed to trim to overlap");if(this.lastRowCount<g)throw Error("applyPartialRender: trimmed beyond DOM row count");let b=this.lastRowCount-g,y=(e,t)=>{if(!(t<=0)&&null!=this.fileDiff)return this.hunksRenderer.renderDiff(this.fileDiff,{startingLine:e,totalLines:t,bufferBefore:0,bufferAfter:0})},v=y(d,Math.max(h-d,0));if(null==v&&d<h)return!1;let w=y(f,Math.max(c-f,0));if(null==w&&c>f)return!1;let x=(e,t)=>{if(null!=e){if("unified"!==a||Array.isArray(s))if("split"===a&&Array.isArray(s))this.insertPartialHTML(a,s,e,t);else throw Error("FileDiff.applyPartialRender.applyChunk: invalid chunk application");else this.insertPartialHTML(a,s,e,t);b+=e.rowCount}};return this.cleanupErrorWrapper(),x(v,"afterbegin"),x(w,"beforeend"),this.lastRowCount!==b&&(this.applyRowSpan(a,s,b),this.lastRowCount=b),!0}insertPartialHTML(e,t,n,i){if("unified"!==e||Array.isArray(t))if("split"===e&&Array.isArray(t)){let e=this.hunksRenderer.renderCodeAST("deletions",n),r=this.hunksRenderer.renderCodeAST("additions",n);this.renderPartialColumn(t[0],e,i),this.renderPartialColumn(t[1],r,i)}else throw Error("FileDiff.insertPartialHTML: Invalid argument composition");else{let e=this.hunksRenderer.renderCodeAST("unified",n);this.renderPartialColumn(t,e,i)}}renderPartialColumn(e,t,n){if(null==e||null==t)return;let i=hu(t[0]),r=hu(t[1]);if(null==i||null==r)throw Error("FileDiff.insertPartialHTML: Unexpected AST structure");let o=r.at(0);"beforeend"===n&&o?.type==="element"&&"number"==typeof o.properties["data-buffer-size"]&&this.mergeBuffersIfNecessary(o.properties["data-buffer-size"],e.content.children[e.content.children.length-1],e.gutter.children[e.gutter.children.length-1],i,r,!0);let a=r.at(-1);"afterbegin"===n&&a?.type==="element"&&"number"==typeof a.properties["data-buffer-size"]&&this.mergeBuffersIfNecessary(a.properties["data-buffer-size"],e.content.children[0],e.gutter.children[0],i,r,!1),e.gutter.insertAdjacentHTML(n,this.hunksRenderer.renderPartialHTML(i)),e.content.insertAdjacentHTML(n,this.hunksRenderer.renderPartialHTML(r))}mergeBuffersIfNecessary(e,t,n,i,r,o){if(!(t instanceof HTMLElement)||!(n instanceof HTMLElement))return;let a=this.getBufferSize(t.dataset);null!=a&&(o?(i.shift(),r.shift()):(i.pop(),r.pop()),this.updateBufferSize(t,a+e),this.updateBufferSize(n,a+e))}applyRowSpan(e,t,n){let i=e=>{null!=e&&(e.gutter.style.setProperty("grid-row",`span ${n}`),e.content.style.setProperty("grid-row",`span ${n}`))};if("unified"!==e||Array.isArray(t))if("split"===e&&Array.isArray(t))i(t[0]),i(t[1]);else throw Error("dun fuuuuked up");else i(t)}trimColumnRows(e,t,n){let i=0,r=0,o=0,a=!1,s=n>=0;if(null==e)return 0;let l=Array.from(e.content.children),d=Array.from(e.gutter.children);if(l.length!==d.length)throw Error("FileDiff.trimColumnRows: columns do not match");for(;o<l.length&&(!(t<=0)||s||a);){let e=d[o],u=l[o];if(o++,!(e instanceof HTMLElement)||!(u instanceof HTMLElement))throw console.error({gutterElement:e,contentElement:u}),Error("FileDiff.trimColumnRows: invalid row elements");if(a&&(a=!1,"annotation"===e.dataset.gutterBuffer&&"lineAnnotation"in u.dataset||"metadata"===e.dataset.gutterBuffer&&"noNewline"in u.dataset)){e.remove(),u.remove(),r++;continue}if("lineIndex"in e.dataset&&"lineIndex"in u.dataset){(t>0||s&&i>=n)&&(e.remove(),u.remove(),t>0&&0==--t&&(a=!0),r++),i++;continue}if("separator"in e.dataset&&"separator"in u.dataset||"annotation"===e.dataset.gutterBuffer&&"lineAnnotation"in u.dataset||"metadata"===e.dataset.gutterBuffer&&"noNewline"in u.dataset){(t>0||s&&i>=n)&&(e.remove(),u.remove(),r++);continue}if("buffer"===e.dataset.gutterBuffer&&"contentBuffer"in u.dataset){let o=this.getBufferSize(u.dataset);if(null==o)throw Error("FileDiff.trimColumnRows: invalid element");if(t>0){let n=Math.min(t,o),i=o-n;i>0?(this.updateBufferSize(e,i),this.updateBufferSize(u,i),r+=n):(e.remove(),u.remove(),r+=o),0==(t-=n)&&0===i&&(a=!0)}else if(s){let t=i,a=i+o-1;if(n<=t)e.remove(),u.remove(),r+=o;else if(n<=a){let t=a-n+1,i=o-t;this.updateBufferSize(e,i),this.updateBufferSize(u,i),r+=t}}i+=o;continue}throw console.error({gutterElement:e,contentElement:u}),Error("FileDiff.trimColumnRows: unknown row elements")}return r}trimColumns({columns:e,diffStyle:t,overlapEnd:n,overlapStart:i,previousStart:r,trimEnd:o,trimStart:a}){let s=Math.max(0,i-r),l=n-r;if(l<0)throw Error("FileDiff.trimColumns: overlap ends before previous");let d=a>0,u=o>0;if(!d&&!u)return 0;let c=d?s:0,h=u?l:-1;if("unified"===t&&!Array.isArray(e))return this.trimColumnRows(e,c,h);if("split"===t&&Array.isArray(e)){let t=this.trimColumnRows(e[0],c,h),n=this.trimColumnRows(e[1],c,h);if(null!=e[0]&&null!=e[1]&&t!==n)throw Error("FileDiff.trimColumns: split columns out of sync");return null!=e[0]?t:n}throw console.error({diffStyle:t,columns:e}),Error("FileDiff.trimColumns: Invalid columns for diffType")}getBufferSize(e){let t=Number.parseInt(e?.bufferSize??"",10);return Number.isNaN(t)?void 0:t}updateBufferSize(e,t){e.dataset.bufferSize=`${t}`,e.style.setProperty("grid-row",`span ${t}`),e.style.setProperty("min-height",`calc(${t} * 1lh)`)}getCodeColumns(e,t,n,i){function r(e){if(null==e)return;let t=e.children[0],n=e.children[1];if(t instanceof HTMLElement&&n instanceof HTMLElement&&null!=t.dataset.gutter&&null!=n.dataset.content)return{gutter:t,content:n}}if("unified"===e)return r(t);{let e=r(n),t=r(i);return null!=e||null!=t?[e,t]:void 0}}applyBuffers(e,t){if(null==t||this.shouldDisableVirtualizationBuffers()){null!=this.bufferBefore&&(this.bufferBefore.remove(),this.bufferBefore=void 0),null!=this.bufferAfter&&(this.bufferAfter.remove(),this.bufferAfter=void 0);return}t.bufferBefore>0?(null==this.bufferBefore&&(this.bufferBefore=document.createElement("div"),this.bufferBefore.dataset.virtualizerBuffer="before",e.before(this.bufferBefore)),this.bufferBefore.style.setProperty("height",`${t.bufferBefore}px`),this.bufferBefore.style.setProperty("contain","strict")):null!=this.bufferBefore&&(this.bufferBefore.remove(),this.bufferBefore=void 0),t.bufferAfter>0?(null==this.bufferAfter&&(this.bufferAfter=document.createElement("div"),this.bufferAfter.dataset.virtualizerBuffer="after",e.after(this.bufferAfter)),this.bufferAfter.style.setProperty("height",`${t.bufferAfter}px`),this.bufferAfter.style.setProperty("contain","strict")):null!=this.bufferAfter&&(this.bufferAfter.remove(),this.bufferAfter=void 0)}shouldDisableVirtualizationBuffers(){return this.options.disableVirtualizationBuffers??!1}applyPreNodeAttributes(e,{additionsContentAST:t,deletionsContentAST:n,totalLines:i},r){var o;let{diffIndicators:a="bars",disableBackground:s=!1,disableLineNumbers:l=!1,overflow:d="scroll",diffStyle:u="split"}=this.options,c={type:"diff",diffIndicators:a,disableBackground:s,disableLineNumbers:l,overflow:d,split:"unified"!==u&&null!=t&&null!=n,totalLines:i,customProperties:r};o=this.appliedPreAttributes,(null==c||null==o?c!==o:!function(e=aw,t=aw){if(e===t)return!0;let n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0}(c.customProperties,o.customProperties)||c.type!==o.type||c.diffIndicators!==o.diffIndicators||c.disableBackground!==o.disableBackground||c.disableLineNumbers!==o.disableLineNumbers||c.overflow!==o.overflow||c.split!==o.split||c.totalLines!==o.totalLines)&&(!function(e,{type:t,diffIndicators:n,disableBackground:i,disableLineNumbers:r,overflow:o,split:a,totalLines:s,customProperties:l}){if(null!=l)for(let t in l){let n=l[t];null!=n&&e.setAttribute(t,`${n}`)}switch("diff"===t?(e.setAttribute("data-diff",""),e.removeAttribute("data-file")):(e.setAttribute("data-file",""),e.removeAttribute("data-diff")),n){case"bars":case"classic":e.setAttribute("data-indicators",n);break;case"none":e.removeAttribute("data-indicators")}r?e.setAttribute("data-disable-line-numbers",""):e.removeAttribute("data-disable-line-numbers"),i?e.removeAttribute("data-background"):e.setAttribute("data-background",""),"diff"===t?e.setAttribute("data-diff-type",a?"split":"single"):e.removeAttribute("data-diff-type"),e.setAttribute("data-overflow",o),e.style.setProperty("--diffs-min-number-column-width-default",`${`${s}`.length}ch`)}(e,c),this.appliedPreAttributes=c)}applyErrorToDOM(e,t){this.cleanupErrorWrapper(),this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;let n=t.shadowRoot??t.attachShadow({mode:"open"});this.errorWrapper??=document.createElement("div"),this.errorWrapper.dataset.errorWrapper="",this.errorWrapper.textContent="",n.appendChild(this.errorWrapper);let i=document.createElement("div");i.dataset.errorMessage="",i.innerText=e.message,this.errorWrapper.appendChild(i);let r=document.createElement("pre");r.dataset.errorStack="",r.innerText=e.stack??"No Error Stack",this.errorWrapper.appendChild(r)}cleanupErrorWrapper(){this.errorWrapper?.remove(),this.errorWrapper=void 0}};function hu(e){if(null!=e&&"element"===e.type)return e.children??[]}let hc=-1;var hh=class extends hd{__id=`little-virtualized-file-diff:${++hc}`;top;height=0;metrics;cache={heightDeltas:new Map,measuredHeightDeltaTotal:0,estimatedSplitHeight:void 0,estimatedUnifiedHeight:void 0,checkpoints:[],totalLines:0,fileAnnotationHeight:0};isVisible=!1;isSetup=!1;virtualizer;layoutDirty=!0;forceRenderOverride;currentCollapsed;constructor(e,t,n,i,r=!1){super(e,i,r),this.virtualizer=t,this.metrics=cu(n)}setMetrics(e,t=!1){let n=cu(e);!t&&rG(this.metrics,n)||(this.metrics=n,this.resetLayoutCache({includeEstimatedHeights:!0}))}setLineAnnotations(e){this.syncLineAnnotations(e)&&this.resetLayoutCache({includeEstimatedHeights:!1})}syncLineAnnotations(e){return null!=e&&e!==this.lineAnnotations&&(0!==e.length||0!==this.lineAnnotations.length)&&(super.setLineAnnotations(e),!0)}setFileAnnotationHeight(e){let t=this.cache.fileAnnotationHeight;return e!==t&&(this.cache.fileAnnotationHeight=e,this.cache.measuredHeightDeltaTotal+=e-t,!0)}hasFileAnnotations(e=this.fileDiff){var t;return null!=e&&(t=this.lineAnnotations,!!t?.some(e=>0===e.lineNumber))&&this.lineAnnotations.some(t=>0===t.lineNumber&&("new"===e.type?"additions"===t.side:"deleted"!==e.type||"deletions"===t.side))}getLineHeight(e,t=!1){return this.getEstimatedLineHeight(t)+(this.cache.heightDeltas.get(e)??0)}getEstimatedLineHeight(e=!1){return this.metrics.lineHeight*(e?2:1)}setOptions(e){var t,n,i,r;if(this.isAdvancedMode())throw Error("VirtualizedFileDiff.setOptions cannot be used inside CodeView. Update CodeView options instead.");if(null==e)return;let{options:o}=this,a=!rq(o,e),s=a&&(t=o,n=e,(t.diffStyle??"split")!==(n.diffStyle??"split")||(t.overflow??"scroll")!==(n.overflow??"scroll")||(t.collapsed??!1)!==(n.collapsed??!1)||(t.disableLineNumbers??!1)!==(n.disableLineNumbers??!1)||(t.disableFileHeader??!1)!==(n.disableFileHeader??!1)||(t.diffIndicators??"bars")!==(n.diffIndicators??"bars")||(t.hunkSeparators??"line-info")!==(n.hunkSeparators??"line-info")||(t.expandUnchanged??!1)!==(n.expandUnchanged??!1)||(t.collapsedContextThreshold??1)!==(n.collapsedContextThreshold??1)||t.unsafeCSS!==n.unsafeCSS);super.setOptions(e),s&&this.resetLayoutCache({forceSimpleRecompute:!0,includeEstimatedHeights:(i=o,r=e,(i.disableFileHeader??!1)!==(r.disableFileHeader??!1)||(i.hunkSeparators??"line-info")!==(r.hunkSeparators??"line-info")||(i.expandUnchanged??!1)!==(r.expandUnchanged??!1)||(i.collapsedContextThreshold??1)!==(r.collapsedContextThreshold??1))}),a&&(this.forceRenderOverride=!0),a&&this.isSimpleMode()&&this.virtualizer.instanceChanged(this,s)}setThemeType(e){if(this.isAdvancedMode())throw Error("VirtualizedFileDiff.setThemeType cannot be used inside CodeView. Update CodeView options instead.");super.setThemeType(e)}resetLayoutCache({forceSimpleRecompute:e=!1,includeEstimatedHeights:t=!1}={}){this.layoutDirty=!0,this.cache.fileAnnotationHeight=0,this.cache.heightDeltas.size>0&&this.cache.heightDeltas.clear(),0!==this.cache.measuredHeightDeltaTotal&&(this.cache.measuredHeightDeltaTotal=0),this.cache.checkpoints.length>0&&(this.cache.checkpoints.length=0),0!==this.cache.totalLines&&(this.cache.totalLines=0),t&&(this.cache.estimatedSplitHeight=void 0,this.cache.estimatedUnifiedHeight=void 0),null!=this.renderRange&&(this.renderRange=void 0),e&&this.isSimpleMode()&&this.computeApproximateSize()}reconcileHeights(){let e=!1,{overflow:t="scroll"}=this.options;if(null==this.fileContainer||null==this.fileDiff)return 0!==this.height&&(e=!0),this.height=0,e;if(this.top=this.getVirtualizedTop(),"scroll"===t&&0===this.lineAnnotations.length&&!this.isResizeDebuggingEnabled())return e;let n=this.getDiffStyle(),i="split"===n?[this.codeDeletions,this.codeAdditions]:[this.codeUnified],r=this.hasFileAnnotations(this.fileDiff);if(null!=this.renderRange&&r&&aB(this.renderRange)){let t=function(e){let t;for(let n of e){if(null==n)continue;let e=n.children[1];if(e instanceof HTMLElement)for(let n of e.children)n instanceof HTMLElement&&"-1,-1"===n.dataset.lineAnnotation&&(t=Math.max(t??0,n.getBoundingClientRect().height))}return t}(i)??0;this.setFileAnnotationHeight(t)&&(e=!0)}else!r&&this.setFileAnnotationHeight(0)&&(e=!0);for(let t of i){if(null==t)continue;let i=t.children[1];if(i instanceof HTMLElement)for(let t of i.children){if(!(t instanceof HTMLElement))continue;let i=t.dataset.lineIndex;if(null==i)continue;let r=function(e,t){let[n,i]=e.split(",").map(Number);return"split"===t?i:n}(i,n),o=t.getBoundingClientRect().height,a=!1;t.nextElementSibling instanceof HTMLElement&&("lineAnnotation"in t.nextElementSibling.dataset||"noNewline"in t.nextElementSibling.dataset)&&("noNewline"in t.nextElementSibling.dataset&&(a=!0),o+=t.nextElementSibling.getBoundingClientRect().height);let s=this.getEstimatedLineHeight(a),l=this.cache.heightDeltas.get(r)??0,d=o-s;d!==l&&(e=!0,this.cache.measuredHeightDeltaTotal+=d-l,0===d?this.cache.heightDeltas.delete(r):this.cache.heightDeltas.set(r,d))}}return(e||this.isResizeDebuggingEnabled())&&this.computeApproximateSize(!0),e}onRender=e=>null!=this.fileContainer&&(e&&(this.top=this.getVirtualizedTop()),this.render());prepareCodeViewItem(e,t,n,i){let r=!cd(this.fileDiff,e),o=this.syncLineAnnotations(i),a=n?.resetDiffLayoutCache===!0||r||o,s=r||n?.resetDiffLayoutCache===!0&&n.includeEstimatedDiffHeights;n?.metrics!=null&&(this.metrics=cu(n.metrics),a=!0,s=!0);let{collapsed:l=!1}=this.options;return this.currentCollapsed!==l&&(this.currentCollapsed=l,a=!0),a&&this.resetLayoutCache({includeEstimatedHeights:s}),this.fileDiff=e,this.top=t,this.computeApproximateSize(),this.height}getLinePosition(e,t="additions"){let n;if(null==this.fileDiff||e<1)return;let i=this.getLineIndex(e,t);if(null==i)return;let{disableFileHeader:r=!1,expandUnchanged:o=!1,collapsed:a=!1,collapsedContextThreshold:s=1}=this.options,l=this.getDiffStyle(),d=this.getHunkSeparatorType(),u="split"===l?i[1]:i[0];this.approximateLayoutCheckpoints();let c=cc(this.metrics,r),h=this.getLayoutCheckpointBeforeLineIndex(u),f=h?.top??c+this.cache.fileAnnotationHeight;return a?{top:c,height:0}:(cw({diff:this.fileDiff,diffStyle:l,startingLine:h?.renderedLineIndex??0,expandedHunks:!!o||this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:s,callback:({hunkIndex:e,hunk:t,collapsedBefore:i,collapsedAfter:r,deletionLine:o,additionLine:a})=>{let s="split"===l?a?.splitLineIndex??o?.splitLineIndex:a?.unifiedLineIndex??o?.unifiedLineIndex;if(null==s)throw Error("VirtualizedFileDiff.getLinePosition: missing line index data");if(i>0){let r=cy({type:d,metrics:this.metrics,hunkIndex:e,hunkSpecs:t?.hunkSpecs});if(null!=r){if(f+=r.gapBefore,u>=s-i&&u<s)return n={top:f,height:r.height},!0;f+=r.height+r.gapAfter}}let c=this.getLineHeight(s,(a?.noEOFCR??!1)||(o?.noEOFCR??!1));if(s===u)return n={top:f,height:c},!0;if(f+=c,r>0){let e=cv({type:d,metrics:this.metrics});if(null!=e){if(u>s&&u<=s+r)return n={top:f+e.gapBefore,height:e.height},!0;f+=e.totalHeight}}return!1}}),n)}getNumericScrollAnchor(e){let t;if(null==this.fileDiff)return;let{disableFileHeader:n=!1,expandUnchanged:i=!1,collapsed:r=!1,collapsedContextThreshold:o=1}=this.options;if(r)return;let a=this.getDiffStyle(),s=this.getHunkSeparatorType();this.approximateLayoutCheckpoints();let l=this.getLayoutCheckpointBeforeTop(e),d=l?.top??cc(this.metrics,n)+this.cache.fileAnnotationHeight;return cw({diff:this.fileDiff,diffStyle:a,startingLine:l?.renderedLineIndex??0,expandedHunks:!!i||this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:o,callback:({hunkIndex:n,hunk:i,collapsedBefore:r,collapsedAfter:o,deletionLine:l,additionLine:u})=>{let c="split"===a?u?.splitLineIndex??l?.splitLineIndex:u?.unifiedLineIndex??l?.unifiedLineIndex;if(null==c)throw Error("VirtualizedFileDiff.getNumericScrollAnchor: missing line index data");if(r>0){let e=cy({type:s,metrics:this.metrics,hunkIndex:n,hunkSpecs:i?.hunkSpecs});null!=e&&(d+=e.totalHeight)}if(d>=e&&(null!=l?t={lineNumber:l.lineNumber,side:"deletions",top:d}:null!=u&&(t={lineNumber:u.lineNumber,side:"additions",top:d}),null!=t))return!0;let h=this.getLineHeight(c,(u?.noEOFCR??!1)||(l?.noEOFCR??!1));if(d+=h,o>0){let e=cv({type:s,metrics:this.metrics});null!=e&&(d+=e.totalHeight)}return!1}}),t}getVirtualizedHeight(){return this.height}getAdvancedStickySpecs(e){if(null==this.top||null==this.fileDiff)return;if(!0===this.options.collapsed)return{topOffset:this.top,height:this.height};let t=null!=e?this.computeRenderRangeFromWindow(this.fileDiff,this.top,e):this.renderRange;if(null==t)return;let{bufferBefore:n,bufferAfter:i,totalLines:r}=t,o=0;if(0===r){let t=e??this.virtualizer.getWindowSpecs();this.top<t.top&&(o=i)}return{topOffset:this.top+n+o,height:this.height-(n+i)}}cleanUp(e=!1){null!=this.fileContainer&&this.isSimpleMode()&&this.getSimpleVirtualizer()?.disconnect(this.fileContainer),e||this.resetLayoutCache({includeEstimatedHeights:!0}),this.isSetup=!1,super.cleanUp(e)}expandHunk=(e,t,n)=>{this.hunksRenderer.expandHunk(e,t,n),this.forceRenderOverride=!0,this.resetLayoutCache({includeEstimatedHeights:!0}),this.isSimpleMode()&&this.computeApproximateSize(),this.virtualizer.instanceChanged(this,!0)};setVisibility(e){this.isAdvancedMode()||null==this.fileContainer||(this.renderRange=void 0,e&&!this.isVisible?(this.top=this.getVirtualizedTop(),this.isVisible=!0):!e&&this.isVisible&&(this.isVisible=!1,this.rerender()))}rerender(){this.enabled&&(null!=this.fileDiff||null!=this.additionFile||null!=this.deletionFile)&&(this.forceRenderOverride=!0,this.virtualizer.instanceChanged(this,!1))}computeApproximateSize(e=!1){let t=this.isResizeDebuggingEnabled();if(!e&&!this.layoutDirty&&!t)return;let n=0===this.height;if(this.height=0,this.cache.checkpoints=[],this.cache.totalLines=0,null==this.fileDiff){this.layoutDirty=!1;return}let{disableFileHeader:i=!1,collapsed:r=!1}=this.options,o=cc(this.metrics,i);if(this.height+=o,r){this.layoutDirty=!1;return}this.height=this.getActiveEstimatedHeight()+this.cache.measuredHeightDeltaTotal,t&&!n&&this.validateComputedHeight(),this.layoutDirty=!1}getActiveEstimatedHeight(){this.ensureEstimatedDiffHeights();let e="split"===this.getDiffStyle()?this.cache.estimatedSplitHeight:this.cache.estimatedUnifiedHeight;if(null==e)throw Error("VirtualizedFileDiff.getActiveEstimatedHeight: missing estimated height");return e}ensureEstimatedDiffHeights(){if(null==this.fileDiff){this.cache.estimatedSplitHeight=void 0,this.cache.estimatedUnifiedHeight=void 0;return}if(null!=this.cache.estimatedSplitHeight&&null!=this.cache.estimatedUnifiedHeight)return;let{disableFileHeader:e=!1,expandUnchanged:t=!1,collapsedContextThreshold:n=1}=this.options,{splitHeight:i,unifiedHeight:r}=function({fileDiff:e,metrics:t,disableFileHeader:n,hunkSeparators:i,expandUnchanged:r,expandedHunks:o,collapsedContextThreshold:a}){let s=cc(t,n),l=s,d=!!r||o,u=e.hunks.length-1;for(let n=0;n<e.hunks.length;n++){let r=e.hunks[n];if(null==r)throw Error("computeEstimatedDiffHeights: invalid hunk index");let o=cf({isPartial:e.isPartial,rangeSize:r.collapsedBefore,expandedHunks:d,hunkIndex:n,collapsedContextThreshold:a}),c=(o.fromStart+o.fromEnd)*t.lineHeight;if(s+=c,l+=c,o.collapsedLines>0){let e=cy({type:i,metrics:t,hunkIndex:n,hunkSpecs:r.hunkSpecs})?.totalHeight??0;s+=e,l+=e}s+=r.splitLineCount*t.lineHeight,l+=r.unifiedLineCount*t.lineHeight;let h=function(e){if(!e.noEOFCRAdditions&&!e.noEOFCRDeletions)return{split:0,unified:0};let t=e.hunkContent.at(-1);if(null==t)return{split:0,unified:0};if("context"===t.type){let e=+(t.lines>0);return{split:e,unified:e}}return function(e,t){let n=(t.deletions>0&&e.noEOFCRDeletions?1:0)+(t.additions>0&&e.noEOFCRAdditions?1:0),i=t.deletions>0&&e.noEOFCRDeletions,r=t.additions>0&&e.noEOFCRAdditions;return{split:i||r?1:0,unified:n}}(e,t)}(r);s+=h.split*t.lineHeight,l+=h.unified*t.lineHeight;let f=n===u?cm({fileDiff:e,hunkIndex:n,expandedHunks:d,collapsedContextThreshold:a,errorPrefix:"computeEstimatedDiffHeights"}):void 0;if(null!=f){let e=(f.fromStart+f.fromEnd)*t.lineHeight;if(s+=e,l+=e,f.collapsedLines>0){let e=cv({type:i,metrics:t})?.totalHeight??0;s+=e,l+=e}}}if(e.hunks.length>0){let e=ch(t);s+=e,l+=e}return{splitHeight:s,unifiedHeight:l}}({fileDiff:this.fileDiff,metrics:this.metrics,disableFileHeader:e,hunkSeparators:this.getHunkSeparatorType(),expandUnchanged:t,expandedHunks:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:n});this.cache.estimatedSplitHeight=i,this.cache.estimatedUnifiedHeight=r}validateComputedHeight(){if(null==this.fileContainer||null==this.fileDiff)return;let e=this.fileContainer.getBoundingClientRect();e.height!==this.height?console.log("VirtualizedFileDiff.computeApproximateSize: computed height doesnt match",{name:this.fileDiff.name,elementHeight:e.height,computedHeight:this.height}):console.log("VirtualizedFileDiff.computeApproximateSize: computed height IS CORRECT")}render({fileContainer:e,oldFile:t,newFile:n,fileDiff:i,forceRender:r=!1,lineAnnotations:o,...a}={}){let{forceRenderOverride:s,isSetup:l}=this;this.forceRenderOverride=void 0;let d=this.syncLineAnnotations(o);if(d&&this.resetLayoutCache({includeEstimatedHeights:!1}),this.fileDiff??=i??(null!=t&&null!=n?aP(t,n,this.options.parseDiffOptions):void 0),e=this.getOrCreateFileContainer(e),null==this.fileDiff)return console.error("VirtualizedFileDiff.render: attempting to virtually render when we dont have the correct data"),!1;if(l)this.top??=this.getVirtualizedTop();else{this.computeApproximateSize();let t=this.getSimpleVirtualizer();if(this.top??=this.getVirtualizedTop(),this.isAdvancedMode())this.isVisible=!0;else{if(null==t)throw Error("VirtualizedFileDiff.render: simple virtualizer is not available");t.connect(e,this),this.isVisible=t.isInstanceVisible(this.top??0,this.height)}this.isSetup=!0}if(!this.isVisible&&this.isSimpleMode())return this.renderPlaceholder(this.height);let u=this.virtualizer.getWindowSpecs(),c=this.top??0,h=this.computeRenderRangeFromWindow(this.fileDiff,c,u);return super.render({fileDiff:this.fileDiff,fileContainer:e,renderRange:h,oldFile:t,newFile:n,lineAnnotations:o,forceRender:(s??r)||d,...a})}syncVirtualizedTop(){this.top=this.getVirtualizedTop()}shouldDisableVirtualizationBuffers(){return this.isAdvancedMode()||super.shouldDisableVirtualizationBuffers()}isSimpleMode(){return"simple"===this.virtualizer.type}isAdvancedMode(){return"advanced"===this.virtualizer.type}getVirtualizedTop(){return"advanced"===this.virtualizer.type?this.virtualizer.getLocalTopForInstance(this):null!=this.fileContainer?this.virtualizer.getOffsetInScrollContainer(this.fileContainer):0}getSimpleVirtualizer(){return"simple"===this.virtualizer.type?this.virtualizer:void 0}isResizeDebuggingEnabled(){return this.getSimpleVirtualizer()?.config.resizeDebugging??!1}getDiffStyle(){return this.options.diffStyle??"split"}getHunkSeparatorType(){var e;return"function"==typeof(e=this.options.hunkSeparators)?"custom":e??"line-info"}approximateLayoutCheckpoints(){if(this.cache.checkpoints.length>0||null==this.fileDiff||0===this.fileDiff.hunks.length||!0===this.options.collapsed)return;let{disableFileHeader:e=!1,expandUnchanged:t=!1,collapsedContextThreshold:n=1}=this.options,i=this.fileDiff.hunks.length-1,r=this.getDiffStyle(),o=this.getHunkSeparatorType(),a=!!t||this.hunksRenderer.getExpandedHunksMap(),s=function(e){let t=Array.from(e).sort((e,t)=>e[0]-t[0]),n=[],i=[0],r=0;for(let[e,o]of t)n.push(e),r+=o,i.push(r);return{lineIndexes:n,prefixTotals:i}}(this.cache.heightDeltas),l=cc(this.metrics,e)+this.cache.fileAnnotationHeight,d=0,u=({rowCount:e,startLineIndex:t,preSeparatorHeight:n=0,postSeparatorHeight:i=0,metadataOffsets:r=[]})=>{if(e<=0)return;let o=d,a=d+e,u=5e3*Math.ceil(o/5e3);for(;u<a;){let e=u-o,i=l+(e>0?n:0)+e*this.metrics.lineHeight+function(e,t){let n=0;for(let i of e)i<t&&n++;return n}(r,e)*this.metrics.lineHeight+hf(s,t,t+e);this.cache.checkpoints.push({renderedLineIndex:u,lineIndex:t+e,top:i}),u+=5e3}l+=n+e*this.metrics.lineHeight+r.length*this.metrics.lineHeight+hf(s,t,t+e)+i,d=a};for(let e=0;e<this.fileDiff.hunks.length;e++){let t=this.fileDiff.hunks[e];if(null==t)throw Error("VirtualizedFileDiff.approximateLayoutCheckpoints: invalid hunk index");let s=cf({isPartial:this.fileDiff.isPartial,rangeSize:t.collapsedBefore,expandedHunks:a,hunkIndex:e,collapsedContextThreshold:n}),l=s.collapsedLines>0?cy({type:o,metrics:this.metrics,hunkIndex:e,hunkSpecs:t.hunkSpecs})?.totalHeight??0:0;u({rowCount:s.fromStart,startLineIndex:("split"===r?t.splitLineStart:t.unifiedLineStart)-s.rangeSize});let d=l;u({rowCount:s.fromEnd,startLineIndex:("split"===r?t.splitLineStart:t.unifiedLineStart)-s.fromEnd,preSeparatorHeight:d}),s.fromEnd>0&&(d=0);let c=e===i?cm({fileDiff:this.fileDiff,hunkIndex:e,expandedHunks:a,collapsedContextThreshold:n,errorPrefix:"VirtualizedFileDiff"}):void 0,h=null!=c&&c.collapsedLines>0?cv({type:o,metrics:this.metrics})?.totalHeight??0:0,f=null!=c?c.fromStart+c.fromEnd:0,p="split"===r?t.splitLineCount:t.unifiedLineCount,m="split"===r?t.splitLineStart:t.unifiedLineStart;u({rowCount:p,startLineIndex:m,preSeparatorHeight:d,postSeparatorHeight:0===f?h:0,metadataOffsets:function({diffStyle:e,hunk:t,rowCount:n}){if(n<=0||!t.noEOFCRAdditions&&!t.noEOFCRDeletions)return[];let i=t.hunkContent.at(-1);if(null==i)return[];if("context"===i.type)return[n-1];let r=Math.max(i.deletions,i.additions),o=i.deletions+i.additions;if("split"===e)return r>0&&(t.noEOFCRAdditions||t.noEOFCRDeletions)?[n-1]:[];let a=[];return i.deletions>0&&t.noEOFCRDeletions&&a.push(n-o+i.deletions-1),i.additions>0&&t.noEOFCRAdditions&&a.push(n-1),a}({diffStyle:r,hunk:t,rowCount:p})}),null!=c&&f>0&&u({rowCount:f,startLineIndex:m+p,postSeparatorHeight:h})}this.cache.totalLines=d}getLayoutCheckpointBeforeLineIndex(e){let t;if(e<=0||0===this.cache.checkpoints.length)return;let n=0,i=this.cache.checkpoints.length-1;for(;n<=i;){let r=n+i>>1,o=this.cache.checkpoints[r];if(null==o)throw Error("VirtualizedFileDiff: invalid checkpoint index");o.lineIndex<=e?(t=o,n=r+1):i=r-1}return t}getLayoutCheckpointBeforeTop(e,t){let n=0,i=this.cache.checkpoints.length-1,r=-1;for(;n<=i;){let t=n+i>>1,o=this.cache.checkpoints[t];if(null==o)throw Error("VirtualizedFileDiff: invalid checkpoint index");o.top<=e?(r=t,n=t+1):i=t-1}if(null==t)return r>=0?this.cache.checkpoints[r]:void 0;for(let e=r;e>=0;e--){let n=this.cache.checkpoints[e];if(null==n)throw Error("VirtualizedFileDiff: invalid checkpoint index");if(n.renderedLineIndex%t==0)return n}}getExpandedLineCount(e,t){let n=0;if(e.isPartial){for(let i of e.hunks)n+="split"===t?i.splitLineCount:i.unifiedLineCount;return n}let{expandUnchanged:i=!1,collapsedContextThreshold:r=1}=this.options,o=!!i||this.hunksRenderer.getExpandedHunksMap();for(let[i,a]of e.hunks.entries()){n+="split"===t?a.splitLineCount:a.unifiedLineCount;let s=Math.max(a.collapsedBefore,0),{fromStart:l,fromEnd:d,renderAll:u}=cf({isPartial:e.isPartial,rangeSize:s,expandedHunks:o,hunkIndex:i,collapsedContextThreshold:r});s>0&&(n+=u?s:l+d)}let a=cm({fileDiff:e,hunkIndex:e.hunks.length-1,expandedHunks:o,collapsedContextThreshold:r,errorPrefix:"VirtualizedFileDiff"});return null!=a&&(n+=a.fromStart+a.fromEnd),n}computeRenderRangeFromWindow(e,t,{top:n,bottom:i}){let r,o,a,{disableFileHeader:s=!1,expandUnchanged:l=!1,collapsedContextThreshold:d=1}=this.options,{hunkLineCount:u,lineHeight:c}=this.metrics,h=this.getDiffStyle(),f=this.getHunkSeparatorType(),p=this.height,m=this.cache.totalLines>0?this.cache.totalLines:this.getExpandedLineCount(e,h),g=cc(this.metrics,s),b=e.hunks.length>0?ch(this.metrics):0,{fileAnnotationHeight:y}=this.cache,v=g+y,w=Math.max(0,p-g-y-b),x=this.hasFileAnnotations(e),k=t+g;if(t<n-p||t>i)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:p-g-b};if(m<=u||0===e.hunks.length)return{startingLine:0,totalLines:u,bufferBefore:0,bufferAfter:0};this.approximateLayoutCheckpoints(),m=this.cache.totalLines>0?this.cache.totalLines:m;let S=Math.ceil(Math.ceil(Math.max(i-n,0)/c)/u)*u+u,C=S/u,A=[],E=(n+i)/2,_=this.getLayoutCheckpointBeforeTop(Math.max(0,n-t-S*c*2),u),L=t+(_?.top??v),N=_?.renderedLineIndex??0;if(cw({diff:e,diffStyle:h,startingLine:_?.renderedLineIndex??0,expandedHunks:!!l||this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:d,callback:({hunkIndex:e,hunk:s,collapsedBefore:l,collapsedAfter:d,deletionLine:c,additionLine:p})=>{let m=null!=p?p.splitLineIndex:c.splitLineIndex,g=null!=p?p.unifiedLineIndex:c.unifiedLineIndex,b=(p?.noEOFCR??!1)||(c?.noEOFCR??!1),y=(l>0?cy({type:f,metrics:this.metrics,hunkIndex:e,hunkSpecs:s?.hunkSpecs}):void 0)?.totalHeight??0;L+=y;let w=N%u==0,x=Math.floor(N/u);if(w&&(A[x]=L-(t+v+y),null!=a)){if(a<=0)return!0;a--}let k=this.getLineHeight("split"===h?m:g,b);return L>n-k&&L<i&&(r??=x),null==o&&L+k>E&&(o=x),null==a&&L>=i&&w&&(a=C),N++,L+=k,d>0&&(L+=cv({type:f,metrics:this.metrics})?.totalHeight??0),!1}}),null==r)if(!(y>0)||!x||!(k<i)||!(k+y>n))return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:p-g-b};else r=0,o=0;let T=Math.round((o??=r)-C/2),R=Math.max(0,Math.min(T,Math.max(0,Math.ceil(m/u)-C))),M=R*u,P=T<0?S+T*u:S,I=A[R]??0,D=R+P/u;return{startingLine:M,totalLines:P,bufferBefore:0===M?0:y+I,bufferAfter:Math.max(0,D<A.length?w-A[D]:w-(L-t-v))}}};function hf({lineIndexes:e,prefixTotals:t},n,i){if(n>=i||0===e.length)return 0;let r=hp(e,n);return(t[hp(e,i)]??0)-(t[r]??0)}function hp(e,t){let n=0,i=e.length;for(;n<i;){let r=n+i>>1,o=e[r];if(null==o)throw Error("VirtualizedFileDiff: invalid prefix index");o<t?n=r+1:i=r}return n}e.i(4135),Symbol("IGNORE_RESPONSE");let hm=(0,m.createContext)(void 0),hg=new Set,hb=null;function hy(e){hg.add(e),hb??=requestAnimationFrame(hv)}function hv(e){let t=new Set(hg);for(let n of(hg.clear(),t))try{n(e)}catch(e){console.error(e)}hb=hg.size>0?requestAnimationFrame(hv):null}function hw({scrollTop:e,scrollHeight:t,height:n,fitPerfectly:i=!1,fitPerfectlyOverscroll:r=0,overscrollSize:o}){let a=n+2*o,s=i?n+2*r:a;if(a>=(t=Math.max(t,s))||i){let n=Math.max(e-r,0);return{top:n,bottom:Math.max(Math.min(e+s,t),n)}}let l=e+n/2-a/2,d=l+a;return l<0&&(l=0),d>t&&(d=t),{top:l=Math.floor(Math.max(l,0)),bottom:Math.ceil(Math.max(Math.min(d,t),l))}}let hx=[0,1e-6,.99999,1],hk={overscrollSize:1e3,intersectionObserverMargin:4e3,resizeDebugging:!1},hS=0,hC=-1;function hA(e,t){let n=e.getBoundingClientRect(),i=t?.getBoundingClientRect().top??0;return n.top-i}(class e{static __STOP=!1;static __lastScrollPosition=0;__id=`virtualizer-${++hC}`;config;type="simple";intersectionObserver;scrollTop=0;height=0;scrollHeight=0;windowSpecs={top:0,bottom:0};root;contentContainer;resizeObserver;observers=new Map;visibleInstances=new Map;visibleInstancesDirty=!1;instancesChanged=new Set;scrollDirty=!0;heightDirty=!0;scrollHeightDirty=!0;renderedObservers=0;connectQueue=new Map;constructor(e){this.config={...hk,...e}}setup(t,n){if(null==this.root){for(let[i,r]of(this.root=t,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:hx,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),t instanceof Document?this.setupWindow():this.setupElement(n),window.__INSTANCE=this,window.__TOGGLE=()=>{e.__STOP?(e.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:e.__lastScrollPosition}),hy(this.computeRenderRangeAndEmit)):(e.__lastScrollPosition=this.getScrollTop(),e.__STOP=!0)},this.connectQueue.entries()))this.connect(i,r);this.connectQueue.clear(),this.markDOMDirty(),hy(this.computeRenderRangeAndEmit)}}instanceChanged(e,t){this.instancesChanged.add(e),t&&this.markDOMDirty(),hy(this.computeRenderRangeAndEmit)}getWindowSpecs(){return 0===this.windowSpecs.top&&0===this.windowSpecs.bottom&&(this.windowSpecs=hw({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}isInstanceVisible(e,t){let n=this.getScrollTop(),i=this.getHeight(),r=this.config.intersectionObserverMargin;return!(e<n-r-t||e>n+i+r)}handleContainerResize=e=>{if(null==this.root)return;let t=!1;for(let n of e){let e=n.borderBoxSize[0].blockSize;this.root instanceof Document?e!==this.scrollHeight&&(this.scrollHeightDirty=!0,t=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:e-hS,newSize:e}),hS=e)):n.target===this.root?e!==this.height&&(this.heightDirty=!0,t=!0):n.target===this.contentContainer&&(this.scrollHeightDirty=!0,t=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:e-hS,newSize:e}),hS=e))}t&&hy(this.computeRenderRangeAndEmit)};setupWindow(){if(null==this.root||!(this.root instanceof Document))throw Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(e){if(null==this.root||this.root instanceof Document)throw Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),(e??=this.root.firstElementChild??void 0)instanceof HTMLElement&&(this.contentContainer=e,this.resizeObserver?.observe(e))}cleanUp(){this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0}getOffsetInScrollContainer(e){return this.getScrollTop()+hA(e,this.getScrollContainerElement())}connect(e,t){if(this.observers.has(e))throw Error("Virtualizer.connect: instance is already connected...");return null==this.intersectionObserver?this.connectQueue.set(e,t):(this.intersectionObserver.observe(e),this.observers.set(e,t),this.instancesChanged.add(t),this.markDOMDirty(),hy(this.computeRenderRangeAndEmit)),()=>this.disconnect(e)}disconnect(e){let t=this.observers.get(e);this.connectQueue.delete(e),null!=t&&(this.intersectionObserver?.unobserve(e),this.observers.delete(e),this.visibleInstances.delete(e)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),hy(this.computeRenderRangeAndEmit))}handleWindowResize=()=>{e.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,hy(this.computeRenderRangeAndEmit))};handleWindowScroll=()=>{!e.__STOP&&null!=this.root&&this.root instanceof Document&&(this.scrollDirty=!0,hy(this.computeRenderRangeAndEmit))};handleElementScroll=()=>{e.__STOP||null==this.root||this.root instanceof Document||(this.scrollDirty=!0,hy(this.computeRenderRangeAndEmit))};computeRenderRangeAndEmit=()=>{if(e.__STOP)return;let t=this.heightDirty||this.scrollHeightDirty;if(!this.scrollDirty&&!this.scrollHeightDirty&&!this.heightDirty&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&0===this.instancesChanged.size)return;let n=this.instancesChanged.size>0;if(0===this.instancesChanged.size){var i;let e=hw({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!t&&(i=this.windowSpecs,null==i||null==e?i===e:i.top===e.top&&i.bottom===e.bottom)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty)return;this.windowSpecs=e}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;let r=this.getScrollAnchor(this.height),o=new Set;for(let e of t?this.observers.values():this.visibleInstances.values())e.onRender(t)&&o.add(e);for(let e of this.instancesChanged)!o.has(e)&&e.onRender(t)&&o.add(e);for(let e of(this.scrollFix(r),o))e.reconcileHeights();(n||=this.instancesChanged.size>0)&&this.markDOMDirty(),(n||t)&&hy(this.computeRenderRangeAndEmit),o.clear(),this.instancesChanged.clear()};scrollFix(e){if(null==e)return;let t=this.getScrollContainerElement(),{lineIndex:n,lineOffset:i,fileElement:r,fileOffset:o,fileTypeOffset:a}=e;if(null!=n&&null!=i){let e=r.shadowRoot?.querySelector(`[data-line][data-line-index="${n}"]`);if(e instanceof HTMLElement){let n=hA(e,t);n!==i&&this.applyScrollFix(n-i);return}}let s=hA(r,t);if("top"===a)s!==o&&this.applyScrollFix(s-o);else{let e=s+r.getBoundingClientRect().height;e!==o&&this.applyScrollFix(e-o)}}applyScrollFix(e){null==this.root||this.root instanceof Document?window.scrollTo({top:window.scrollY+e,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+e,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(e){let t,n=this.getScrollContainerElement();for(let[i]of this.visibleInstances.entries()){let r,o,a,s,l=hA(i,n),d=l+i.offsetHeight;if(d<=0?(r=d,o="bottom"):(r=l,o="top"),d>0&&l<e)for(let e of i.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(e instanceof HTMLElement))continue;let t=e.dataset.lineIndex;if(null==t)continue;let i=hA(e,n);if(!(i<0)){a=t,s=i;break}}if(t?.lineOffset!=null&&null==s)continue;let u=!1;null==t||null!=s&&(null==t.lineOffset||s<t.lineOffset)?u=!0:null==s&&null==t.lineOffset&&(r>=0&&(t.fileOffset<0||r<t.fileOffset)?u=!0:r<0&&t.fileOffset<0&&r>t.fileOffset&&(u=!0)),u&&(t={fileElement:i,fileTypeOffset:o,fileOffset:r,lineIndex:a,lineOffset:s})}return t}handleIntersectionChange=e=>{for(let{target:t,isIntersecting:n}of(this.scrollDirty=!0,e)){if(!(t instanceof HTMLElement))throw Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");let e=this.observers.get(t);null!=e&&(n&&!this.visibleInstances.has(t)?(e.setVisibility(!0),this.visibleInstances.set(t,e),this.visibleInstancesDirty=!0):!n&&this.visibleInstances.has(t)&&(e.setVisibility(!1),this.visibleInstances.delete(t),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&hy(this.computeRenderRangeAndEmit)};getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let e=null==this.root?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return e=Math.max(0,Math.min(e,this.getScrollHeight()-this.getHeight())),this.scrollTop=e,e}getScrollHeight(){return this.scrollHeightDirty&&(this.scrollHeightDirty=!1,this.scrollHeight=null==this.root?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight),this.scrollHeight}getHeight(){return this.heightDirty&&(this.heightDirty=!1,this.height=null==this.root?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height),this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return null==this.root||this.root instanceof Document?void 0:this.root}});let hE=(0,m.createContext)(void 0),h_="u"<typeof window?m.useEffect:m.useLayoutEffect;function hL({options:e,controlledSelection:t,hasCustomHeader:n,hasGutterRenderUtility:i}){return t||i||n?{...e,controlledSelection:t,renderCustomHeader:n?rF:e?.renderCustomHeader,renderGutterUtility:i?rF:e?.renderGutterUtility}:e}function hN({fileDiff:e,options:t,metrics:n,lineAnnotations:i,selectedLines:r,className:o,style:a,prerenderedHTML:s,renderAnnotation:l,renderCustomHeader:d,renderHeaderPrefix:u,renderHeaderMetadata:c,renderGutterUtility:h,disableWorkerPool:f=!1}){var g;let{ref:b,getHoveredLine:y}=function({fileDiff:e,options:t,lineAnnotations:n,selectedLines:i,prerenderedHTML:r,metrics:o,hasGutterRenderUtility:a,hasCustomHeader:s,disableWorkerPool:l}){var d;let u,c=(0,m.useContext)(hE),h=void 0!==i,f=(0,m.useContext)(hm),p=(0,m.useRef)(null),g=(d=i=>{if(null!=i){if(null!=p.current)throw Error("useFileDiffInstance: An instance should not already exist when a node is created");null!=c?p.current=new hh(hL({controlledSelection:h,hasCustomHeader:s,hasGutterRenderUtility:a,options:t}),c,o,!l?f:void 0,!0):p.current=new hd(hL({controlledSelection:h,hasCustomHeader:s,hasGutterRenderUtility:a,options:t}),!l?f:void 0,!0),p.current.hydrate({fileDiff:e,fileContainer:i,lineAnnotations:n,prerenderedHTML:r})}else{if(null==p.current)throw Error("useFileDiffInstance: A FileDiff instance should exist when unmounting");p.current.cleanUp(),p.current=null}},u=(0,m.useRef)(d),(0,m.useInsertionEffect)(()=>void(u.current=d)),(0,m.useCallback)((...e)=>u.current(...e),[]));return h_(()=>{let{current:r}=p;if(null==r)return;let o=hL({controlledSelection:h,hasCustomHeader:s,hasGutterRenderUtility:a,options:t}),l=!rq(r.options,o);r.setOptions(o),r.render({forceRender:l,fileDiff:e,lineAnnotations:n}),void 0!==i&&r.setSelectedLines(i)}),{ref:g,getHoveredLine:(0,m.useCallback)(()=>p.current?.getHoveredLine(),[])}}({fileDiff:e,options:t,metrics:n,lineAnnotations:i,selectedLines:r,prerenderedHTML:s,hasGutterRenderUtility:null!=h,hasCustomHeader:null!=d,disableWorkerPool:f});return(0,p.jsx)(rr,{ref:b,className:o,style:a,children:(g=function({fileDiff:e,actions:t,renderCustomHeader:n,renderHeaderPrefix:i,renderHeaderMetadata:r,renderAnnotation:o,renderGutterUtility:a,renderMergeConflictUtility:s,lineAnnotations:l,getHoveredLine:d,getInstance:u}){let c=n?.(e),h=i?.(e),f=r?.(e);return(0,p.jsxs)(p.Fragment,{children:[null!=c?(0,p.jsx)("div",{slot:rf,children:c}):(0,p.jsxs)(p.Fragment,{children:[null!=h&&(0,p.jsx)("div",{slot:"header-prefix",children:h}),null!=f&&(0,p.jsx)("div",{slot:"header-metadata",children:f})]}),null!=o&&l?.map((e,t)=>(0,p.jsx)("div",{slot:rB(e),children:o(e)},t)),null!=t&&null!=s&&null!=u&&t.map(t=>{var n;let i;if(null==t)return;let r=null!=(i=function(e,t){let n=t.hunks[e.hunkIndex];if(null!=n)return{hunkIndex:e.hunkIndex,lineIndex:function(e,t){let n=e.unifiedLineStart;for(let i=0;i<t;i++){let t=e.hunkContent[i];n+="context"===t.type?t.lines:t.deletions+t.additions}return n}(n,e.startContentIndex)}}(n=t,e))?function({hunkIndex:e,lineIndex:t,conflictIndex:n}){return`merge-conflict-action-${e}-${t}-${n}`}({hunkIndex:i.hunkIndex,lineIndex:i.lineIndex,conflictIndex:n.conflictIndex}):void 0;return(0,p.jsx)("div",{slot:r,style:rU,children:s(t,u)},r)}),null!=a&&(0,p.jsx)("div",{slot:"gutter-utility-slot",style:rH,children:a(d)})]})}({fileDiff:e,renderCustomHeader:d,renderHeaderPrefix:u,renderHeaderMetadata:c,renderAnnotation:l,renderGutterUtility:h,lineAnnotations:i,getHoveredLine:y}),"u"<typeof window&&null!=s?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:s}}),g]}):(0,p.jsx)(p.Fragment,{children:g}))})}let hT="devframe-git-theme",hR={light:"vitesse-light",dark:"vitesse-dark"};function hM({file:e,options:t,defaultOpen:n}){let[i,r]=(0,m.useState)(n),{additions:o,deletions:a}=function(e){let t=0,n=0;for(let i of e.hunks)t+=i.additionLines,n+=i.deletionLines;return{additions:t,deletions:n}}(e),s=function(e){switch(e){case"new":return{name:"i-ph-file-plus-duotone",className:"text-success"};case"deleted":return{name:"i-ph-file-x-duotone",className:"text-error"};case"rename-pure":case"rename-changed":return{name:"i-ph-file-arrow-up-duotone",className:"color-muted"};default:return{name:"i-ph-file-duotone",className:"color-muted"}}}(e.type),l=e.prevName?`${e.prevName} → ${e.name}`:e.name;return(0,p.jsxs)("div",{children:[(0,p.jsxs)("button",{type:"button",onClick:()=>r(e=>!e),"aria-expanded":i,className:"hover:bg-active bg-secondary flex w-full items-center gap-2 px-2.5 py-1.5 text-left font-mono text-xs transition-colors",children:[(0,p.jsx)(ik,{name:"i-ph-caret-right",className:eL("color-faint size-3 transition-transform",i&&"rotate-90")}),(0,p.jsx)(ik,{name:s.name,className:eL("size-3.5",s.className)}),(0,p.jsx)("span",{className:"min-w-0 flex-1 truncate",title:l,children:l}),e.hunks.length>0?(0,p.jsxs)("span",{className:"shrink-0 tabular-nums",children:[(0,p.jsx)("span",{className:"text-success",children:`+${o}`})," ",(0,p.jsx)("span",{className:"text-error",children:`−${a}`})]}):e.type.startsWith("rename")?(0,p.jsx)(iv,{variant:"secondary",className:"px-1.5 py-0 text-[10px]",children:"renamed"}):(0,p.jsx)(iv,{variant:"secondary",className:"px-1.5 py-0 text-[10px]",children:"bin"})]}),i&&(e.hunks.length>0?(0,p.jsx)(hN,{fileDiff:e,options:t,disableWorkerPool:!0}):(0,p.jsx)("p",{className:"color-muted px-3 py-2 text-xs",children:"No textual diff (binary or metadata-only change)."}))]})}function hP({patch:e,loading:t,truncated:n,scroll:i=!0,collapsible:r=!1}){let o=function(){let[e,t]=(0,m.useState)("dark");return(0,m.useEffect)(()=>{let e=document.documentElement,n=()=>t(e.classList.contains("dark")?"dark":"light");n();let i=new MutationObserver(n);return i.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>i.disconnect()},[]),e}(),a=(0,m.useMemo)(()=>e?function(e){try{return(function(e,t=!1){var n;let i=[];for(let r of(n=e).startsWith("From ")||n.includes("\nFrom ")?e.split(ro):[e])try{i.push(function(e,t,n){try{return function(e,t,n=!1){var i,r,o;let a,s=(i=e).startsWith("diff --git")||i.includes("\ndiff --git"),l=s?(r=e,rD(r,"diff --git")):function(e){if(0===e.length)return[""];let t=[],n=0,i=0,r=0,o=0,a=!1;for(;i<e.length;){let s=rM(e,i);if(r<=0&&o<=0){if(rT(e,i)){i>n&&t.push(e.slice(n,i)),n=i,a=!0,i=rM(e,s);continue}if(a&&e.startsWith("@@ -",i)){let t=rP(e.slice(i,s));null!=t&&(r=t.deletionCount,o=t.additionCount)}i=s;continue}let l=e[i];if("\\"===l){i=s;continue}" "===l?(r=Math.max(r-1,0),o=Math.max(o-1,0)):"-"===l?r=Math.max(r-1,0):"+"===l&&(o=Math.max(o-1,0)),i=s}return t.push(e.slice(n)),t}(e),d=[];for(let e of l){if(s&&!ra.test(e)){if(null==a)a=rE(e);else if(n)throw Error("parsePatchContent: unknown file blob");else console.error("parsePatchContent: unknown file blob:",e);continue}if(!s&&(o=e,!rT(o,0))){if(null==a)a=rE(e);else if(n)throw Error("parsePatchContent: unknown file blob");else console.error("parsePatchContent: unknown file blob:",e);continue}let i=r_(e,{cacheKey:null!=t?`${t}-${d.length}`:void 0,isGitDiff:s,throwOnError:n});null!=i&&d.push(i)}return{patchMetadata:a,files:d}}(e,t,n)}finally{rA()}}(r,void 0,t))}catch(e){if(t)throw e;console.error(e)}return i})(e).flatMap(e=>e.files)}catch{return[]}}(e):[],[e]),s=(0,m.useMemo)(()=>({theme:hR,themeType:o,diffStyle:"unified",diffIndicators:"classic",disableFileHeader:r}),[o,r]);if(t)return(0,p.jsx)(ri,{className:"h-40 w-full"});if(!e||0===a.length)return(0,p.jsx)("p",{className:"color-muted p-3 text-sm",children:"No textual diff available (binary or unchanged)."});if(r)return(0,p.jsxs)("div",{className:"flex flex-col [&>*+*]:border-t [&>*+*]:border-base",children:[a.map((e,t)=>(0,p.jsx)(hM,{file:e,options:s,defaultOpen:1===a.length},e.name||t)),n&&(0,p.jsx)("p",{className:"text-warning px-3 py-1 text-xs",children:"Patch truncated."})]});let l=(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"flex flex-col text-sm [&>*+*]:border-t [&>*+*]:border-base",children:a.map((e,t)=>(0,p.jsx)(hN,{fileDiff:e,options:s,disableWorkerPool:!0},e.name||t))}),n&&(0,p.jsx)("p",{className:"text-warning px-3 py-1 text-xs",children:"Patch truncated."})]});return i?(0,p.jsx)(rt,{className:"h-72 w-full",children:l}):(0,p.jsx)("div",{children:l})}function hI(e){let{data:t,loading:n,staged:i,selected:r,onSelectScope:o,onSelectFile:a,onRefresh:s,patchSlot:l}=e;return(0,p.jsxs)("div",{className:"space-y-3",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,p.jsx)("div",{className:"bg-secondary inline-flex rounded-lg p-[3px] text-sm",children:[["Working tree",!1],["Staged",!0]].map(([e,t])=>(0,p.jsx)("button",{type:"button",onClick:()=>o(t),className:eL("cursor-pointer rounded-md px-3 py-1 font-medium transition-colors",i===t?"bg-base color-base shadow-sm":"color-muted"),children:e},e))}),(0,p.jsxs)("div",{className:"flex items-center gap-2",children:[t?.isRepo&&(0,p.jsxs)("span",{className:"text-xs tabular-nums",children:[(0,p.jsxs)("span",{className:"text-success",children:["+",t.totalAdditions]})," ",(0,p.jsxs)("span",{className:"text-error",children:["−",t.totalDeletions]})]}),(0,p.jsx)(ix,{variant:"ghost",size:"sm",onClick:s,disabled:n,"aria-label":"Refresh diff",children:(0,p.jsx)(ik,{name:"i-ph-arrows-clockwise",className:`size-4 ${n?"animate-spin":""}`})})]})]}),!t&&(0,p.jsx)("div",{className:"space-y-2",children:Array.from({length:3}).map((e,t)=>(0,p.jsx)(ri,{className:"h-8 w-full"},t))}),t&&!t.isRepo&&(0,p.jsx)("p",{className:"color-muted text-sm",children:"The working directory is not a git repository."}),t?.isRepo&&0===t.files.length&&(0,p.jsxs)("p",{className:"color-muted text-sm",children:["No",i?" staged":" unstaged"," ","changes."]}),t?.isRepo&&t.files.length>0&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(rt,{className:"h-40 pr-3",children:(0,p.jsx)("ul",{children:t.files.map(e=>(0,p.jsx)("li",{children:(0,p.jsxs)("button",{type:"button",onClick:()=>a(e.path),className:eL("flex w-full items-center gap-2 rounded px-1 py-0.5 text-left font-mono text-xs",r===e.path?"bg-active":"hover:bg-active"),children:[(0,p.jsx)("span",{className:"flex-1 truncate",title:e.path,children:e.path}),e.binary?(0,p.jsx)(iv,{variant:"secondary",className:"px-1.5 py-0 text-[10px]",children:"bin"}):(0,p.jsxs)("span",{className:"shrink-0 tabular-nums",children:[(0,p.jsxs)("span",{className:"text-success",children:["+",e.additions]})," ",(0,p.jsxs)("span",{className:"text-error",children:["−",e.deletions]})]})]})},e.path))})}),r&&(0,p.jsx)("div",{className:"overflow-hidden rounded-md border",children:l})]})]})}function hD({label:e}){let t=e.startsWith("tag: "),n=t?e.slice(5):e;return(0,p.jsxs)(iv,{variant:"secondary",className:"gap-1 font-mono text-[10px]",children:[t&&(0,p.jsx)(ik,{name:"i-ph-tag-duotone",className:"size-3"}),n]})}function hj({data:e,loading:t,error:n,onClose:i}){var r;return(0,p.jsxs)("div",{className:"flex h-full flex-col",children:[(0,p.jsxs)("div",{className:"flex items-start justify-between gap-2 pb-2",children:[(0,p.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,p.jsx)(ik,{name:"i-ph-git-commit-duotone",className:"color-active size-4"}),(0,p.jsx)("h2",{className:"text-sm leading-none font-semibold",children:"Commit details"})]}),i&&(0,p.jsx)(ix,{variant:"ghost",size:"sm",onClick:i,"aria-label":"Close commit details",children:(0,p.jsx)(ik,{name:"i-ph-x",className:"size-4"})})]}),n&&(0,p.jsx)("p",{className:"text-error text-sm",children:n}),!n&&(t||!e)&&(0,p.jsxs)("div",{className:"space-y-2",children:[(0,p.jsx)(ri,{className:"h-5 w-3/4"}),(0,p.jsx)(ri,{className:"h-4 w-1/2"}),(0,p.jsx)(ri,{className:"h-24 w-full"})]}),!n&&e&&!e.found&&(0,p.jsx)("p",{className:"color-muted text-sm",children:"Commit not found."}),!n&&e&&e.found&&(0,p.jsx)(rt,{className:"min-h-0 flex-1 pr-2",children:(0,p.jsxs)("div",{className:"space-y-4",children:[(0,p.jsxs)("div",{className:"space-y-1.5",children:[(0,p.jsx)("p",{className:"text-sm leading-snug font-medium break-words",children:e.subject}),e.refs.length>0&&(0,p.jsx)("div",{className:"flex flex-wrap gap-1",children:e.refs.map(e=>(0,p.jsx)(hD,{label:e},e))})]}),(0,p.jsxs)("dl",{className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-1 text-xs",children:[(0,p.jsx)("dt",{className:"color-muted",children:"Commit"}),(0,p.jsx)("dd",{className:"truncate font-mono tabular-nums",title:e.hash,children:e.shortHash}),(0,p.jsx)("dt",{className:"color-muted",children:"Author"}),(0,p.jsxs)("dd",{className:"truncate",children:[e.author,(0,p.jsx)("span",{className:"color-muted",children:` <${e.email}>`})]}),(0,p.jsx)("dt",{className:"color-muted",children:"Authored"}),(0,p.jsx)("dd",{className:"truncate",children:(r=e.date)?new Date(r).toLocaleString():""}),e.committer!==e.author&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("dt",{className:"color-muted",children:"Committer"}),(0,p.jsx)("dd",{className:"truncate",children:e.committer})]}),e.parents.length>0&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("dt",{className:"color-muted",children:e.parents.length>1?"Parents":"Parent"}),(0,p.jsx)("dd",{className:"truncate font-mono tabular-nums",children:e.parents.map(e=>e.slice(0,7)).join(", ")})]})]}),e.body&&(0,p.jsx)("pre",{className:"bg-secondary max-h-48 overflow-auto rounded-md p-3 font-mono text-xs whitespace-pre-wrap",children:e.body}),(0,p.jsxs)("div",{className:"space-y-1.5",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between",children:[(0,p.jsx)("span",{className:"color-muted text-xs font-medium tracking-wide uppercase",children:`${e.files.length} ${1===e.files.length?"file":"files"} changed`}),(0,p.jsxs)("span",{className:"text-xs tabular-nums",children:[(0,p.jsx)("span",{className:"text-success",children:`+${e.totalAdditions}`})," ",(0,p.jsx)("span",{className:"text-error",children:`−${e.totalDeletions}`})]})]}),null!==e.patch?(0,p.jsx)("div",{className:"overflow-hidden rounded-md border",children:(0,p.jsx)(hP,{patch:e.patch,loading:!1,truncated:e.truncated,scroll:!1,collapsible:!0})}):(0,p.jsx)("ul",{className:"space-y-0.5",children:e.files.map(e=>(0,p.jsxs)("li",{className:"flex items-center gap-2 font-mono text-xs",children:[(0,p.jsx)("span",{className:"min-w-0 flex-1 truncate",title:e.path,children:e.path}),e.binary?(0,p.jsx)(iv,{variant:"secondary",className:"px-1.5 py-0 text-[10px]",children:"bin"}):(0,p.jsxs)("span",{className:"shrink-0 tabular-nums",children:[(0,p.jsx)("span",{className:"text-success",children:`+${e.additions}`})," ",(0,p.jsx)("span",{className:"text-error",children:`−${e.deletions}`})]})]},e.path))})]})]})})]})}function h$({hash:e,onClose:t}){let{data:n,loading:i,error:r}=ia((0,m.useCallback)(t=>t.call("git:show",{hash:e}),[e]));return(0,p.jsx)(hj,{data:n,loading:i,error:r,onClose:t})}function hO({staged:e,path:t}){let{data:n,loading:i}=ia((0,m.useCallback)(n=>n.call("git:diff",{staged:e,path:t}),[e,t]));return(0,p.jsx)(hP,{patch:n?.patch??null,loading:i||!n,truncated:n?.truncated??!1})}function hz(){let[e,t]=(0,m.useState)(!1),[n,i]=(0,m.useState)(null),{data:r,loading:o,refresh:a}=ia((0,m.useCallback)(t=>t.call("git:diff",{staged:e}),[e])),s=(0,m.useCallback)(e=>{t(e),i(null)},[]);return(0,p.jsx)(hI,{data:r,loading:o,staged:e,selected:n,onSelectScope:s,onSelectFile:i,onRefresh:a,patchSlot:n?(0,p.jsx)(hO,{staged:e,path:n},`${e}:${n}`):null})}let hB=["#a78bfa","#ec4899","#f5b14c","#34d399","#38bdf8","#22d3ee","#f87171","#a3e635"],hH={remote:0,head:1,tag:2,branch:3};function hU(e){return"branch"===e.kind&&e.current?4:hH[e.kind]}function hF(e,t){let n=Number.parseInt(e.slice(1,3),16),i=Number.parseInt(e.slice(3,5),16),r=Number.parseInt(e.slice(5,7),16);return`rgba(${n}, ${i}, ${r}, ${t})`}function hG(e){return 6+16*e+8}function hW(e,t,n,i){let r=hG(e),o=hG(n);if(e===n)return`M ${r} ${t} L ${o} ${i}`;let a=(t+i)/2;return`M ${r} ${t} C ${r} ${a} ${o} ${a} ${o} ${i}`}function hq({row:e,width:t,isHead:n,topStub:i}){return(0,p.jsxs)("svg",{width:t,height:46,className:"block shrink-0",style:{overflow:"visible"},"aria-hidden":!0,children:[i&&(0,p.jsx)("path",{d:hW(e.col,0,e.col,23),fill:"none",stroke:e.color,strokeWidth:2,strokeLinecap:"round"}),e.topLinks.map((e,t)=>(0,p.jsx)("path",{d:hW(e.from,0,e.to,23),fill:"none",stroke:e.color,strokeWidth:2,strokeLinecap:"round"},`t${t}`)),e.bottomLinks.map((e,t)=>(0,p.jsx)("path",{d:hW(e.from,23,e.to,46),fill:"none",stroke:e.color,strokeWidth:2,strokeLinecap:"round"},`b${t}`)),n&&(0,p.jsx)("circle",{cx:hG(e.col),cy:23,r:8.5,fill:"none",stroke:e.color,strokeWidth:1.5,opacity:.4}),(0,p.jsx)("circle",{cx:hG(e.col),cy:23,r:5,fill:n?e.color:"var(--color-card)",stroke:e.color,strokeWidth:2.5})]})}function hV({refToken:e,color:t}){if("tag"===e.kind)return(0,p.jsxs)("span",{className:"inline-flex max-w-[140px] items-center gap-1 rounded-full border px-2 py-0.5 text-[11px] leading-none font-medium",style:{color:t,borderColor:hF(t,.5),backgroundColor:hF(t,.12)},children:[(0,p.jsx)(ik,{name:"i-ph-tag-duotone",className:"size-3 shrink-0"}),(0,p.jsx)("span",{className:"truncate",title:e.name,children:e.name})]});if("head"===e.kind)return(0,p.jsx)("span",{className:"color-muted inline-flex items-center gap-1 rounded-full border px-2 py-0.5 font-mono text-[11px] leading-none font-medium",children:"HEAD"});let n="remote"===e.kind?`${e.remote}/${e.name}`:e.name,i="branch"===e.kind&&e.current;return(0,p.jsxs)("span",{className:"inline-flex max-w-[140px] items-center gap-1 rounded-full px-2 py-0.5 text-[11px] leading-none font-medium",style:i?{color:"#fff",backgroundColor:t}:{color:t,borderColor:hF(t,.5),backgroundColor:hF(t,.12),borderWidth:1,borderStyle:"solid"},children:[i?(0,p.jsx)(ik,{name:"i-ph-check",className:"size-3 shrink-0"}):(0,p.jsx)(ik,{name:"i-ph-git-branch-duotone",className:"size-3 shrink-0 opacity-70"}),(0,p.jsx)("span",{className:"truncate",title:n,children:n})]})}function hX({commit:e,row:t,gutter:n,currentBranch:i,isHead:r,topStub:o,selected:a,onSelect:s}){let l=(0,m.useMemo)(()=>(function(e,t){let n=[];for(let i of e){let e=i.trim();if(!e)continue;if(e.startsWith("tag: ")){n.push({kind:"tag",name:e.slice(5).trim()});continue}if(e.includes("->")){let t=e.split("->")[1]?.trim();t&&n.push({kind:"branch",name:t,current:!0});continue}if("HEAD"===e){n.push({kind:"head"});continue}let r=e.indexOf("/");if(r>0){let t=e.slice(0,r),i=e.slice(r+1);if("HEAD"===i)continue;n.push({kind:"remote",remote:t,name:i});continue}n.push({kind:"branch",name:e,current:t===e})}return n.sort((e,t)=>hU(e)-hU(t))})(e.refs,i),[e.refs,i]),d=l.some(e=>"branch"===e.kind&&e.current);return(0,p.jsx)("li",{children:(0,p.jsxs)("button",{type:"button",onClick:()=>s?.(e.hash),"aria-current":a?"true":void 0,className:eL("relative flex w-full items-stretch rounded-md text-left transition-colors","focus-visible:ring-primary-500/40 outline-none focus-visible:ring-2",a?"ring-primary/60 bg-active ring-1":"hover:bg-active"),style:{height:46},children:[(0,p.jsx)("div",{className:"pointer-events-none absolute inset-y-[5px] left-0 rounded-full",style:{width:152+n+12,background:`linear-gradient(90deg, ${hF(t.color,d?.34:.2)} 0%, ${hF(t.color,.04)} 100%)`}}),(0,p.jsx)("div",{className:"relative z-10 flex items-center justify-end gap-1 overflow-hidden pr-1.5",style:{width:152},children:l.map((e,n)=>(0,p.jsx)(hV,{refToken:e,color:t.color},n))}),(0,p.jsx)("div",{className:"relative z-10",children:(0,p.jsx)(hq,{row:t,width:n,isHead:r,topStub:o})}),(0,p.jsxs)("div",{className:"relative z-10 flex min-w-0 flex-1 flex-col justify-center gap-0.5 pl-4",children:[(0,p.jsx)("span",{className:"truncate text-sm font-medium",title:e.subject,children:e.subject}),(0,p.jsxs)("div",{className:"color-muted flex items-center gap-2 text-xs",children:[(0,p.jsx)("code",{className:"shrink-0 tabular-nums",children:e.shortHash}),(0,p.jsx)("span",{className:"truncate",children:e.author}),(0,p.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,p.jsx)("span",{className:"shrink-0 tabular-nums",title:new Date(e.date).toLocaleString(),children:function(e){let t=Math.round((Date.now()-e)/6e4);if(t<1)return"just now";if(t<60)return`${t}m ago`;let n=Math.round(t/60);if(n<24)return`${n}h ago`;let i=Math.round(n/24);return i<30?`${i}d ago`:new Date(e).toLocaleDateString()}(e.date)})]})]})]})})}function hK({col:e,color:t,gutter:n,changes:i}){return(0,p.jsxs)("li",{className:"relative flex items-stretch",style:{height:46},children:[(0,p.jsx)("div",{className:"pointer-events-none absolute inset-y-[5px] left-0 rounded-full",style:{width:152+n+12,background:`linear-gradient(90deg, ${hF(t,.16)} 0%, ${hF(t,.03)} 100%)`}}),(0,p.jsx)("div",{className:"relative z-10",style:{width:152}}),(0,p.jsx)("div",{className:"relative z-10",children:(0,p.jsxs)("svg",{width:n,height:46,className:"block shrink-0",style:{overflow:"visible"},"aria-hidden":!0,children:[(0,p.jsx)("path",{d:hW(e,23,e,46),fill:"none",stroke:t,strokeWidth:2,strokeDasharray:"2 3",strokeLinecap:"round"}),(0,p.jsx)("circle",{cx:hG(e),cy:23,r:5,fill:"var(--color-card)",stroke:t,strokeWidth:2,strokeDasharray:"2 2"})]})}),(0,p.jsxs)("div",{className:"relative z-10 flex min-w-0 flex-1 items-center gap-2 pl-4",children:[(0,p.jsx)(ik,{name:"i-ph-pencil-simple-duotone",className:"color-muted size-3.5 shrink-0"}),(0,p.jsx)("span",{className:"text-sm font-medium",children:"Work in Progress"}),(0,p.jsxs)("span",{className:"color-muted text-xs",children:[i," ",1===i?"change":"changes"]})]})]})}function hJ(e){let{rpcConnected:t,isRepo:n,commits:i,hasMore:r,loading:o,error:a,selectedRef:s,currentBranch:l,workingChanges:d,selectedHash:u,onRefresh:c,onLoadMore:h,onSelectCommit:f}=e,g=(0,m.useMemo)(()=>(function(e){let t=[],n=0,i=()=>hB[n++%hB.length],r=()=>{let e=t.indexOf(null);return -1===e?t.length:e},o=[];for(let n of e){let e,{hash:a}=n,s=n.parents,l=[];for(let e=0;e<t.length;e++){let n=t[e];n&&l.push({col:e,hash:n.hash,color:n.color})}let d=t.findIndex(e=>e?.hash===a);-1===d?(d=r(),e=i()):e=t[d].color;for(let e=0;e<t.length;e++)t[e]?.hash===a&&(t[e]=null);t[d]=null;let u=[];for(s.forEach((n,o)=>{if(0===o){t[d]={hash:n,color:e},u.push({col:d,color:e});return}let a=t.findIndex(e=>e?.hash===n);-1===a&&(t[a=r()]={hash:n,color:i()}),u.push({col:a,color:t[a].color})}),0===s.length&&(t[d]=null);t.length>0&&null==t[t.length-1];)t.pop();let c=l.map(e=>({from:e.col,to:e.hash===a?d:e.col,color:e.color})),h=[];for(let e of l)e.hash!==a&&h.push({from:e.col,to:e.col,color:e.color});for(let e of u)h.push({from:d,to:e.col,color:e.color});o.push({col:d,color:e,topLinks:c,bottomLinks:h})}let a=0;for(let e of o){for(let t of(a=Math.max(a,e.col+1),e.topLinks))a=Math.max(a,t.from+1,t.to+1);for(let t of e.bottomLinks)a=Math.max(a,t.from+1,t.to+1)}return{rows:o,columns:a}})(i),[i]),b=16*Math.max(g.columns,1)+8+6,y=(d??0)>0&&i.length>0&&(!s||s===l),v=g.rows[0],w=(0,m.useRef)(null),x=(0,m.useRef)(null),k=(0,m.useRef)(!1),S=(0,m.useRef)(h);return S.current=h,(0,m.useEffect)(()=>{o||(k.current=!1)},[o]),(0,m.useEffect)(()=>{let e=w.current,t=x.current;if(!e||!t||!r)return;let n=new IntersectionObserver(e=>{!e[0]?.isIntersecting||k.current||o||(k.current=!0,S.current())},{root:e,rootMargin:"120px"});return n.observe(t),()=>n.disconnect()},[r,o,i.length]),(0,p.jsxs)("div",{className:"flex h-full min-h-0 flex-col gap-3",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between",children:[(0,p.jsx)("span",{className:"color-muted text-xs tabular-nums",children:n?`${i.length}${r?"+":""} commits${s?` \xb7 ${s}`:""}`:" "}),(0,p.jsx)(ix,{variant:"ghost",size:"sm",onClick:c,disabled:o,"aria-label":"Refresh log",children:(0,p.jsx)(ik,{name:"i-ph-arrows-clockwise",className:eL("size-4",o&&"animate-spin")})})]}),!t&&(0,p.jsx)("div",{className:"space-y-2",children:Array.from({length:5}).map((e,t)=>(0,p.jsx)(ri,{className:"h-10 w-full"},t))}),a&&(0,p.jsx)("p",{className:"text-error text-sm",children:a}),!1===n&&(0,p.jsx)("p",{className:"color-muted text-sm",children:"The working directory is not a git repository."}),!0===n&&0===i.length&&(0,p.jsx)("p",{className:"color-muted text-sm",children:"No commits yet."}),!0===n&&i.length>0&&(0,p.jsxs)("div",{ref:w,className:"min-h-0 flex-1 overflow-y-auto pr-2",children:[(0,p.jsxs)("ul",{children:[y&&v&&(0,p.jsx)(hK,{col:v.col,color:v.color,gutter:b,changes:d??0}),i.map((e,t)=>(0,p.jsx)(hX,{commit:e,row:g.rows[t],gutter:b,currentBranch:l,isHead:0===t,topStub:0===t&&y,selected:e.hash===u,onSelect:f},e.hash))]}),r&&(0,p.jsxs)("div",{ref:x,className:"color-muted flex items-center justify-center gap-2 py-3 text-xs",children:[(0,p.jsx)(ik,{name:"i-ph-spinner-gap",className:"size-3.5 animate-spin"}),"Loading more…"]})]})]})}function hY({branch:e,selectedHash:t,onSelectCommit:n}){let{rpc:i}=ir(),[r,o]=(0,m.useState)(null),[a,s]=(0,m.useState)([]),[l,d]=(0,m.useState)(0),[u,c]=(0,m.useState)(!1),[h,f]=(0,m.useState)(!1),[g,b]=(0,m.useState)(null),[y,v]=(0,m.useState)(null),[w,x]=(0,m.useState)(null),k=(0,m.useRef)([]);(0,m.useEffect)(()=>{k.current=a},[a]);let S=(0,m.useCallback)(async(t,n,i)=>{f(!0),b(null);try{let r=await t.call("git:log",{limit:30,skip:n,ref:e??void 0});if(o(r.isRepo),"replace"===i)s(r.commits),d(r.commits.length);else{let e=new Set(k.current.map(e=>e.hash)),t=r.commits.filter(t=>!e.has(t.hash)&&(e.add(t.hash),!0));if(0===t.length)return void c(!1);s(e=>[...e,...t]),d(e=>e+t.length)}c(r.hasMore)}catch(e){b(e instanceof Error?e.message:String(e))}finally{f(!1)}},[e]),C=(0,m.useCallback)(async e=>{try{let t=await e.call("git:status");v(t.branch),x(t.staged.length+t.unstaged.length+t.untracked.length)}catch{}},[]);(0,m.useEffect)(()=>{i&&(S(i,0,"replace"),C(i))},[i,S,C]);let A=(0,m.useCallback)(async()=>{i&&await Promise.all([S(i,0,"replace"),C(i)])},[i,S,C]),E=(0,m.useCallback)(async()=>{i&&await S(i,l,"append")},[i,l,S]);return(0,p.jsx)(hJ,{rpcConnected:!!i,isRepo:r,commits:a,hasMore:u,loading:h,error:g,selectedRef:e??null,currentBranch:y,workingChanges:w,selectedHash:t,onRefresh:A,onLoadMore:E,onSelectCommit:n})}function hQ({className:e,...t}){return(0,p.jsx)("textarea",{"data-slot":"textarea",className:eL("border-base placeholder:color-muted focus-visible:ring-primary-500/40 flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t})}let hZ={modified:"M",added:"A",deleted:"D",renamed:"R",copied:"C","type-changed":"T",unmerged:"U",unknown:"?"};function h0({entry:e,action:t}){let n=e.from?`${e.from} → ${e.path}`:e.path;return(0,p.jsxs)("li",{className:"hover:bg-active flex items-center gap-2 rounded py-0.5 pl-1 font-mono text-xs transition-colors",children:[(0,p.jsx)("span",{className:`w-3 shrink-0 text-center font-semibold ${function(e){switch(e){case"added":return"text-success";case"deleted":case"unmerged":return"text-error";case"modified":return"text-warning";default:return"color-muted"}}(e.status)}`,children:hZ[e.status]}),(0,p.jsx)("span",{className:"flex-1 truncate",title:n,children:n}),t]})}function h1({title:e,count:t,headerAction:n,children:i}){return 0===t?null:(0,p.jsxs)("div",{className:"space-y-1",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between",children:[(0,p.jsxs)("div",{className:"color-muted flex items-center gap-2 text-xs font-medium tracking-wide uppercase",children:[e,(0,p.jsx)(iv,{variant:"secondary",className:"px-1.5 py-0 text-[10px] tabular-nums",children:t})]}),n]}),(0,p.jsx)("ul",{children:i})]})}function h2(e){let{data:t,loading:n,busy:i,canWrite:r,message:o,note:a,onRefresh:s,onStage:l,onUnstage:d,onCommit:u,onMessageChange:c}=e,h=(e,t)=>(0,p.jsx)(ix,{variant:"ghost",size:"sm",disabled:i,"aria-label":t,onClick:()=>l(e),children:(0,p.jsx)(ik,{name:"i-ph-plus",className:"size-4"})});return(0,p.jsxs)("div",{className:"flex h-full min-h-0 flex-col gap-3",children:[(0,p.jsxs)("div",{className:"flex shrink-0 items-center justify-between gap-2",children:[(0,p.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:t?.isRepo?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(iv,{variant:"outline",className:"gap-1 font-mono",children:[(0,p.jsx)(ik,{name:"i-ph-git-branch-duotone",className:"size-3"}),t.detached?`detached @ ${t.head}`:t.branch]}),t.upstream&&(0,p.jsxs)(iv,{variant:"secondary",className:"gap-1 font-mono",children:[t.upstream,t.ahead>0&&(0,p.jsxs)("span",{className:"text-success inline-flex items-center tabular-nums",children:[(0,p.jsx)(ik,{name:"i-ph-arrow-up",className:"size-3"}),t.ahead]}),t.behind>0&&(0,p.jsxs)("span",{className:"text-warning inline-flex items-center tabular-nums",children:[(0,p.jsx)(ik,{name:"i-ph-arrow-down",className:"size-3"}),t.behind]})]}),t.clean?(0,p.jsxs)(iv,{variant:"success",className:"gap-1",children:[(0,p.jsx)(ik,{name:"i-ph-check",className:"size-3"}),"clean"]}):(0,p.jsx)(iv,{variant:"warning",children:"working tree dirty"})]}):(0,p.jsx)(ri,{className:"h-5 w-40"})}),(0,p.jsx)(ix,{variant:"ghost",size:"sm",onClick:s,disabled:n||i,"aria-label":"Refresh status",children:(0,p.jsx)(ik,{name:"i-ph-arrows-clockwise",className:`size-4 ${n?"animate-spin":""}`})})]}),t&&!t.isRepo&&(0,p.jsx)("p",{className:"color-muted text-sm",children:"The working directory is not a git repository."}),t?.isRepo&&t.clean&&(0,p.jsx)("p",{className:"color-muted text-sm",children:"Nothing to commit. The working tree is clean."}),t?.isRepo&&!t.clean&&(0,p.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-3",children:[(0,p.jsx)(rt,{className:"min-h-0 flex-1 pr-3",children:(0,p.jsxs)("div",{className:"space-y-4",children:[(0,p.jsx)(h1,{title:"Staged",count:t.staged.length,headerAction:r&&t.staged.length>0?(0,p.jsx)(iw,{variant:"ghost",size:"sm",disabled:i,onClick:()=>d(t.staged.map(e=>e.path)),children:"Unstage all"}):void 0,children:t.staged.map(e=>{let t,n;return(0,p.jsx)(h0,{entry:e,action:r?(t=[e.path],n=`Unstage ${e.path}`,(0,p.jsx)(ix,{variant:"ghost",size:"sm",disabled:i,"aria-label":n,onClick:()=>d(t),children:(0,p.jsx)(ik,{name:"i-ph-minus",className:"size-4"})})):void 0},`s:${e.path}`)})}),(0,p.jsx)(h1,{title:"Unstaged",count:t.unstaged.length,headerAction:r&&t.unstaged.length>0?(0,p.jsx)(iw,{variant:"ghost",size:"sm",disabled:i,onClick:()=>l(t.unstaged.map(e=>e.path)),children:"Stage all"}):void 0,children:t.unstaged.map(e=>(0,p.jsx)(h0,{entry:e,action:r?h([e.path],`Stage ${e.path}`):void 0},`u:${e.path}`))}),(0,p.jsx)(h1,{title:"Untracked",count:t.untracked.length,headerAction:r&&t.untracked.length>0?(0,p.jsx)(iw,{variant:"ghost",size:"sm",disabled:i,onClick:()=>l(t.untracked),children:"Stage all"}):void 0,children:t.untracked.map(e=>(0,p.jsx)(h0,{entry:{path:e,status:"unknown"},action:r?h([e],`Stage ${e}`):void 0},`t:${e}`))})]})}),r&&t.staged.length>0&&(0,p.jsxs)("div",{className:"shrink-0 space-y-2 border-t pt-3",children:[(0,p.jsx)(hQ,{value:o,onChange:e=>c(e.target.value),placeholder:"Commit message",rows:2,disabled:i,"aria-label":"Commit message"}),a&&(0,p.jsx)("p",{className:"text-error text-xs",children:a}),(0,p.jsx)(iw,{size:"sm",className:"tabular-nums",onClick:u,disabled:i||0===o.trim().length,children:`Commit ${t.staged.length} file${1===t.staged.length?"":"s"}`})]})]})]})}function h8(){let{rpc:e}=ir(),{data:t,loading:n,refresh:i,setData:r}=ia((0,m.useCallback)(e=>e.call("git:status"),[])),[o,a]=(0,m.useState)(!1),[s,l]=(0,m.useState)(""),[d,u]=(0,m.useState)(null),c=!!t?.canWrite&&e?.connectionMeta.backend==="websocket",h=(0,m.useCallback)(async t=>{if(e&&0!==t.length){a(!0),u(null);try{r(await e.call("git:stage",{paths:t}))}finally{a(!1)}}},[e,r]),f=(0,m.useCallback)(async t=>{if(e&&0!==t.length){a(!0),u(null);try{r(await e.call("git:unstage",{paths:t}))}finally{a(!1)}}},[e,r]),g=(0,m.useCallback)(async()=>{if(e){a(!0),u(null);try{let t=await e.call("git:commit",{message:s});r(t.status),t.ok?l(""):u(t.message)}finally{a(!1)}}},[e,s,r]);return(0,p.jsx)(h2,{data:t,loading:n,busy:o,canWrite:!!c,message:s,note:d,onRefresh:i,onStage:h,onUnstage:f,onCommit:g,onMessageChange:l})}let h5=[{id:"status",label:"Status",icon:"i-ph-tree-view-duotone"},{id:"commits",label:"Commits",icon:"i-ph-git-commit-duotone"},{id:"diff",label:"Diff",icon:"i-ph-git-diff-duotone"}];function h6(e,t,n){return Math.min(Math.max(e,t),n)}function h3(e,t,n,i,r){let[o,a]=(0,m.useState)(t),s=(0,m.useRef)(t);return s.current=o,(0,m.useEffect)(()=>{try{let t=Number(localStorage.getItem(e));Number.isFinite(t)&&t>0&&a(h6(t,n,i))}catch{}},[e,n,i]),{width:o,onPointerDown:(0,m.useCallback)(t=>{t.preventDefault();let o=t.clientX,l=s.current,d=e=>a(h6(l+r*(e.clientX-o),n,i)),u=()=>{window.removeEventListener("pointermove",d),window.removeEventListener("pointerup",u),document.body.style.cursor="",document.body.style.userSelect="";try{localStorage.setItem(e,String(Math.round(s.current)))}catch{}};window.addEventListener("pointermove",d),window.addEventListener("pointerup",u),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[e,n,i,r])}}function h4({onPointerDown:e,label:t}){return(0,p.jsx)("div",{role:"separator","aria-orientation":"vertical","aria-label":t,onPointerDown:e,className:"group bg-[#8882] relative w-px shrink-0 cursor-col-resize",children:(0,p.jsx)("div",{className:"group-hover:bg-primary/40 group-active:bg-primary/60 absolute inset-y-0 -left-1 -right-1 z-10 transition-colors"})})}function h7(){let{rpc:e,error:t}=ir();if(t)return(0,p.jsx)(iv,{variant:"destructive",children:"disconnected"});if(!e)return(0,p.jsx)(iv,{variant:"secondary",children:"connecting…"});let n=e.connectionMeta.backend;return(0,p.jsx)(iv,{variant:"websocket"===n?"success":"secondary",className:"font-mono",children:"websocket"===n?"live":"static"})}function h9(){let{theme:e,toggle:t}=function(){let[e,t]=(0,m.useState)("dark");return(0,m.useEffect)(()=>{t(function(){try{let e=localStorage.getItem(hT);return"light"===e||"dark"===e?e:null}catch{return null}}()??(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"))},[]),(0,m.useEffect)(()=>{document.documentElement.classList.toggle("dark","dark"===e)},[e]),{theme:e,toggle:function(){t(e=>{let t="dark"===e?"light":"dark";try{localStorage.setItem(hT,t)}catch{}return t})}}}();return(0,p.jsx)(ix,{variant:"ghost",size:"sm",onClick:t,"aria-label":"Toggle light/dark theme",children:(0,p.jsx)(ik,{name:"dark"===e?"i-ph-sun-duotone":"i-ph-moon-duotone",className:"size-4"})})}function fe({branch:e,selected:t,onSelect:n}){return(0,p.jsx)("li",{children:(0,p.jsxs)("button",{type:"button",onClick:()=>n(e.name),className:eL("hover:bg-active w-full rounded-md px-2 py-1.5 text-left transition-colors",t&&"bg-active"),children:[(0,p.jsxs)("div",{className:"flex items-center gap-2",children:[(0,p.jsx)(ik,{name:"i-ph-git-branch-duotone",className:eL("size-3.5",e.current?"color-active":"color-muted")}),(0,p.jsx)("span",{className:"truncate font-mono text-xs",title:e.name,children:e.name}),e.current&&(0,p.jsx)(iv,{variant:"success",className:"px-1 py-0 text-[10px]",children:"current"})]}),(e.ahead>0||e.behind>0)&&(0,p.jsxs)("p",{className:"color-muted mt-0.5 text-[11px] tabular-nums",children:[e.ahead>0&&`ahead ${e.ahead}`,e.ahead>0&&e.behind>0&&" · ",e.behind>0&&`behind ${e.behind}`]})]})})}function ft({children:e}){return(0,p.jsx)("div",{className:"flex h-9 shrink-0 items-center justify-between gap-2 border-b px-3",children:e})}function fn(){let[e,t]=(0,m.useState)("commits"),[n,i]=(0,m.useState)(null),[r,o]=(0,m.useState)(null),a=h3("devframe-git:rail-left",264,200,420,1),s=h3("devframe-git:rail-right",360,280,560,-1),{data:l,loading:d,error:u,refresh:c}=ia((0,m.useCallback)(e=>e.call("git:branches"),[]));(0,m.useEffect)(()=>{if(!l?.isRepo)return void i(null);let e=l.branches.map(e=>e.name),t=l.current??l.branches.find(e=>e.current)?.name??null;i(n=>n&&e.includes(n)?n:t??e[0]??null)},[l]);let h=e=>{i(e),o(null),t("commits")},f="commits"===e&&null!==r;return(0,p.jsxs)("div",{className:"bg-base flex h-svh w-full flex-col overflow-hidden",children:[(0,p.jsxs)("header",{className:g("flex items-center gap-2 shrink-0 h-10 px-3 border-b border-base bg-base z-nav",void 0),children:[(0,p.jsxs)("div",{className:g("flex items-center gap-1.5 shrink-0 font-semibold text-sm select-none",void 0),children:[(0,p.jsx)(ik,{name:"i-ph-git-fork-duotone",className:"text-base color-active"}),(0,p.jsx)("span",{children:"Git Dashboard"})]}),(0,p.jsx)("nav",{className:g("inline-flex items-center gap-1 p-1 rounded-lg bg-secondary w-max",void 0),role:"tablist","aria-label":"Git views",children:h5.map(({id:n,label:i,icon:r})=>(0,p.jsxs)("button",{type:"button",role:"tab","aria-selected":e===n,"data-state":e===n?"active":"inactive",className:g("px-3 py-1 rounded-md text-sm color-muted inline-flex gap-1.5 items-center whitespace-nowrap select-none cursor-pointer transition outline-none hover:color-base focus-visible:ring-2 focus-visible:ring-primary-500/40 data-[state=active]:bg-base data-[state=active]:color-base data-[state=active]:shadow-sm",void 0),onClick:()=>t(n),children:[(0,p.jsx)(ik,{name:r,className:"size-4"}),i]},n))}),(0,p.jsx)("div",{className:"flex-1"}),(0,p.jsx)(h7,{}),(0,p.jsx)(h9,{})]}),(0,p.jsxs)("div",{className:"flex min-h-0 flex-1",children:[(0,p.jsxs)("aside",{className:"flex min-h-0 flex-col",style:{width:a.width},children:[(0,p.jsxs)("div",{className:"shrink-0 space-y-3 border-b p-3",children:[(0,p.jsxs)("div",{className:"space-y-1.5",children:[(0,p.jsx)("label",{htmlFor:"branch-select",className:"color-muted text-[11px] font-medium tracking-wide uppercase",children:"Branch"}),(0,p.jsxs)("select",{id:"branch-select",value:n??"",onChange:e=>h(e.target.value),disabled:d||!l?.isRepo||0===l.branches.length,className:"bg-base border-base focus:ring-primary-500/40 h-9 w-full rounded-md border px-2 text-sm outline-none focus:ring-2",children:[!l?.isRepo&&(0,p.jsx)("option",{value:"",children:"Not a repository"}),l?.isRepo&&0===l.branches.length&&(0,p.jsx)("option",{value:"",children:"No branches"}),l?.isRepo&&l.branches.map(e=>(0,p.jsx)("option",{value:e.name,children:e.name},e.name))]})]}),u&&(0,p.jsx)("p",{className:"text-error text-xs",children:u})]}),(0,p.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,p.jsxs)(ft,{children:[(0,p.jsx)("span",{className:"text-xs font-medium",children:"Branches"}),(0,p.jsxs)("div",{className:"flex items-center gap-1",children:[(0,p.jsx)("span",{className:"color-muted text-[11px] tabular-nums",children:l?.isRepo?l.branches.length:""}),(0,p.jsx)(ix,{variant:"ghost",size:"sm",onClick:c,disabled:d,"aria-label":"Refresh branches",children:(0,p.jsx)(ik,{name:"i-ph-arrows-clockwise",className:eL("size-4",d&&"animate-spin")})})]})]}),(0,p.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto p-2",children:[!l&&(0,p.jsx)("div",{className:"space-y-2",children:Array.from({length:6}).map((e,t)=>(0,p.jsx)(ri,{className:"h-9 w-full"},t))}),l&&!l.isRepo&&(0,p.jsx)("p",{className:"color-muted p-2 text-sm",children:"The working directory is not a git repository."}),l?.isRepo&&(0,p.jsx)("ul",{className:"space-y-0.5",children:l.branches.map(e=>(0,p.jsx)(fe,{branch:e,selected:e.name===n,onSelect:h},e.name))})]})]})]}),(0,p.jsx)(h4,{onPointerDown:a.onPointerDown,label:"Resize sidebar"}),(0,p.jsxs)("section",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:["commits"===e&&(0,p.jsx)("div",{className:"flex min-h-0 flex-1 flex-col p-3",children:(0,p.jsx)(hY,{branch:n,selectedHash:r,onSelectCommit:o})}),"status"===e&&(0,p.jsx)("div",{className:"flex min-h-0 flex-1 flex-col p-3",children:(0,p.jsx)(h8,{})}),"diff"===e&&(0,p.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto p-3",children:(0,p.jsx)(hz,{})})]}),f&&r&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(h4,{onPointerDown:s.onPointerDown,label:"Resize commit details"}),(0,p.jsx)("aside",{className:"flex min-h-0 flex-col p-3",style:{width:s.width},children:(0,p.jsx)(h$,{hash:r,onClose:()=>o(null)})})]})]})]})}e.s(["Dashboard",0,function(){return(0,p.jsx)(io,{children:(0,p.jsx)(fn,{})})}],53567)}]);
|
|
201
|
+
}`}(t,o,l)}),this.appliedThemeCSS=null!=this.themeCSSStyle?{theme:s,themeStyles:t,themeType:o,baseThemeType:i,scrollbarGutter:l}:void 0}hydrateMeasuredScrollbar(){let e=this.fileContainer?.shadowRoot;if(null!=e&&null!=this.themeCSSStyle){var t;let n;this.themeCSSStyle.textContent=(t=this.themeCSSStyle.textContent??"",n=ak(ax(e)),t.replace(aC,n))}}applyHunksToDOM(e,t){let{overflow:n="scroll"}=this.options,i=(this.options.hunkSeparators??"line-info")==="line-info",r="wrap"===n?t.rowCount:void 0;this.cleanupErrorWrapper(),this.applyPreNodeAttributes(e,t);let o=!1,a=[],s=this.hunksRenderer.renderCodeAST("unified",t),l=this.hunksRenderer.renderCodeAST("deletions",t),d=this.hunksRenderer.renderCodeAST("additions",t);null!=s?(o=null==this.codeUnified||null!=this.codeAdditions||null!=this.codeDeletions,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0,this.codeUnified=aA({code:this.codeUnified,columnType:"unified",rowSpan:r,containerSize:i}),this.codeUnified.innerHTML=this.hunksRenderer.renderPartialHTML(s),a.push(this.codeUnified)):null!=l||null!=d?(null!=l?(o=null==this.codeDeletions||null!=this.codeUnified,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions=aA({code:this.codeDeletions,columnType:"deletions",rowSpan:r,containerSize:i}),this.codeDeletions.innerHTML=this.hunksRenderer.renderPartialHTML(l),a.push(this.codeDeletions)):(this.codeDeletions?.remove(),this.codeDeletions=void 0),null!=d?(o=o||null==this.codeAdditions||null!=this.codeUnified,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeAdditions=aA({code:this.codeAdditions,columnType:"additions",rowSpan:r,containerSize:i}),this.codeAdditions.innerHTML=this.hunksRenderer.renderPartialHTML(d),a.push(this.codeAdditions)):(this.codeAdditions?.remove(),this.codeAdditions=void 0)):(this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0),0===a.length?e.textContent="":o&&e.replaceChildren(...a),this.lastRowCount=t.rowCount}applyPartialRender({previousRenderRange:e,renderRange:t}){let{pre:n,codeUnified:i,codeAdditions:r,codeDeletions:o,options:{diffStyle:a="split"}}=this;if(null==n||null==e||null==t||!Number.isFinite(e.totalLines)||!Number.isFinite(t.totalLines)||null==this.lastRowCount)return!1;let s=this.getCodeColumns(a,i,o,r);if(null==s)return!1;let l=e.startingLine,d=t.startingLine,u=l+e.totalLines,c=d+t.totalLines,h=Math.max(l,d),f=Math.min(u,c);if(f<=h)return!1;let p=Math.max(0,h-l),m=Math.max(0,u-f),g=this.trimColumns({columns:s,trimStart:p,trimEnd:m,previousStart:l,overlapStart:h,overlapEnd:f,diffStyle:a});if(g<0)throw Error("applyPartialRender: failed to trim to overlap");if(this.lastRowCount<g)throw Error("applyPartialRender: trimmed beyond DOM row count");let b=this.lastRowCount-g,y=(e,t)=>{if(!(t<=0)&&null!=this.fileDiff)return this.hunksRenderer.renderDiff(this.fileDiff,{startingLine:e,totalLines:t,bufferBefore:0,bufferAfter:0})},v=y(d,Math.max(h-d,0));if(null==v&&d<h)return!1;let w=y(f,Math.max(c-f,0));if(null==w&&c>f)return!1;let x=(e,t)=>{if(null!=e){if("unified"!==a||Array.isArray(s))if("split"===a&&Array.isArray(s))this.insertPartialHTML(a,s,e,t);else throw Error("FileDiff.applyPartialRender.applyChunk: invalid chunk application");else this.insertPartialHTML(a,s,e,t);b+=e.rowCount}};return this.cleanupErrorWrapper(),x(v,"afterbegin"),x(w,"beforeend"),this.lastRowCount!==b&&(this.applyRowSpan(a,s,b),this.lastRowCount=b),!0}insertPartialHTML(e,t,n,i){if("unified"!==e||Array.isArray(t))if("split"===e&&Array.isArray(t)){let e=this.hunksRenderer.renderCodeAST("deletions",n),r=this.hunksRenderer.renderCodeAST("additions",n);this.renderPartialColumn(t[0],e,i),this.renderPartialColumn(t[1],r,i)}else throw Error("FileDiff.insertPartialHTML: Invalid argument composition");else{let e=this.hunksRenderer.renderCodeAST("unified",n);this.renderPartialColumn(t,e,i)}}renderPartialColumn(e,t,n){if(null==e||null==t)return;let i=hu(t[0]),r=hu(t[1]);if(null==i||null==r)throw Error("FileDiff.insertPartialHTML: Unexpected AST structure");let o=r.at(0);"beforeend"===n&&o?.type==="element"&&"number"==typeof o.properties["data-buffer-size"]&&this.mergeBuffersIfNecessary(o.properties["data-buffer-size"],e.content.children[e.content.children.length-1],e.gutter.children[e.gutter.children.length-1],i,r,!0);let a=r.at(-1);"afterbegin"===n&&a?.type==="element"&&"number"==typeof a.properties["data-buffer-size"]&&this.mergeBuffersIfNecessary(a.properties["data-buffer-size"],e.content.children[0],e.gutter.children[0],i,r,!1),e.gutter.insertAdjacentHTML(n,this.hunksRenderer.renderPartialHTML(i)),e.content.insertAdjacentHTML(n,this.hunksRenderer.renderPartialHTML(r))}mergeBuffersIfNecessary(e,t,n,i,r,o){if(!(t instanceof HTMLElement)||!(n instanceof HTMLElement))return;let a=this.getBufferSize(t.dataset);null!=a&&(o?(i.shift(),r.shift()):(i.pop(),r.pop()),this.updateBufferSize(t,a+e),this.updateBufferSize(n,a+e))}applyRowSpan(e,t,n){let i=e=>{null!=e&&(e.gutter.style.setProperty("grid-row",`span ${n}`),e.content.style.setProperty("grid-row",`span ${n}`))};if("unified"!==e||Array.isArray(t))if("split"===e&&Array.isArray(t))i(t[0]),i(t[1]);else throw Error("dun fuuuuked up");else i(t)}trimColumnRows(e,t,n){let i=0,r=0,o=0,a=!1,s=n>=0;if(null==e)return 0;let l=Array.from(e.content.children),d=Array.from(e.gutter.children);if(l.length!==d.length)throw Error("FileDiff.trimColumnRows: columns do not match");for(;o<l.length&&(!(t<=0)||s||a);){let e=d[o],u=l[o];if(o++,!(e instanceof HTMLElement)||!(u instanceof HTMLElement))throw console.error({gutterElement:e,contentElement:u}),Error("FileDiff.trimColumnRows: invalid row elements");if(a&&(a=!1,"annotation"===e.dataset.gutterBuffer&&"lineAnnotation"in u.dataset||"metadata"===e.dataset.gutterBuffer&&"noNewline"in u.dataset)){e.remove(),u.remove(),r++;continue}if("lineIndex"in e.dataset&&"lineIndex"in u.dataset){(t>0||s&&i>=n)&&(e.remove(),u.remove(),t>0&&0==--t&&(a=!0),r++),i++;continue}if("separator"in e.dataset&&"separator"in u.dataset||"annotation"===e.dataset.gutterBuffer&&"lineAnnotation"in u.dataset||"metadata"===e.dataset.gutterBuffer&&"noNewline"in u.dataset){(t>0||s&&i>=n)&&(e.remove(),u.remove(),r++);continue}if("buffer"===e.dataset.gutterBuffer&&"contentBuffer"in u.dataset){let o=this.getBufferSize(u.dataset);if(null==o)throw Error("FileDiff.trimColumnRows: invalid element");if(t>0){let n=Math.min(t,o),i=o-n;i>0?(this.updateBufferSize(e,i),this.updateBufferSize(u,i),r+=n):(e.remove(),u.remove(),r+=o),0==(t-=n)&&0===i&&(a=!0)}else if(s){let t=i,a=i+o-1;if(n<=t)e.remove(),u.remove(),r+=o;else if(n<=a){let t=a-n+1,i=o-t;this.updateBufferSize(e,i),this.updateBufferSize(u,i),r+=t}}i+=o;continue}throw console.error({gutterElement:e,contentElement:u}),Error("FileDiff.trimColumnRows: unknown row elements")}return r}trimColumns({columns:e,diffStyle:t,overlapEnd:n,overlapStart:i,previousStart:r,trimEnd:o,trimStart:a}){let s=Math.max(0,i-r),l=n-r;if(l<0)throw Error("FileDiff.trimColumns: overlap ends before previous");let d=a>0,u=o>0;if(!d&&!u)return 0;let c=d?s:0,h=u?l:-1;if("unified"===t&&!Array.isArray(e))return this.trimColumnRows(e,c,h);if("split"===t&&Array.isArray(e)){let t=this.trimColumnRows(e[0],c,h),n=this.trimColumnRows(e[1],c,h);if(null!=e[0]&&null!=e[1]&&t!==n)throw Error("FileDiff.trimColumns: split columns out of sync");return null!=e[0]?t:n}throw console.error({diffStyle:t,columns:e}),Error("FileDiff.trimColumns: Invalid columns for diffType")}getBufferSize(e){let t=Number.parseInt(e?.bufferSize??"",10);return Number.isNaN(t)?void 0:t}updateBufferSize(e,t){e.dataset.bufferSize=`${t}`,e.style.setProperty("grid-row",`span ${t}`),e.style.setProperty("min-height",`calc(${t} * 1lh)`)}getCodeColumns(e,t,n,i){function r(e){if(null==e)return;let t=e.children[0],n=e.children[1];if(t instanceof HTMLElement&&n instanceof HTMLElement&&null!=t.dataset.gutter&&null!=n.dataset.content)return{gutter:t,content:n}}if("unified"===e)return r(t);{let e=r(n),t=r(i);return null!=e||null!=t?[e,t]:void 0}}applyBuffers(e,t){if(null==t||this.shouldDisableVirtualizationBuffers()){null!=this.bufferBefore&&(this.bufferBefore.remove(),this.bufferBefore=void 0),null!=this.bufferAfter&&(this.bufferAfter.remove(),this.bufferAfter=void 0);return}t.bufferBefore>0?(null==this.bufferBefore&&(this.bufferBefore=document.createElement("div"),this.bufferBefore.dataset.virtualizerBuffer="before",e.before(this.bufferBefore)),this.bufferBefore.style.setProperty("height",`${t.bufferBefore}px`),this.bufferBefore.style.setProperty("contain","strict")):null!=this.bufferBefore&&(this.bufferBefore.remove(),this.bufferBefore=void 0),t.bufferAfter>0?(null==this.bufferAfter&&(this.bufferAfter=document.createElement("div"),this.bufferAfter.dataset.virtualizerBuffer="after",e.after(this.bufferAfter)),this.bufferAfter.style.setProperty("height",`${t.bufferAfter}px`),this.bufferAfter.style.setProperty("contain","strict")):null!=this.bufferAfter&&(this.bufferAfter.remove(),this.bufferAfter=void 0)}shouldDisableVirtualizationBuffers(){return this.options.disableVirtualizationBuffers??!1}applyPreNodeAttributes(e,{additionsContentAST:t,deletionsContentAST:n,totalLines:i},r){var o;let{diffIndicators:a="bars",disableBackground:s=!1,disableLineNumbers:l=!1,overflow:d="scroll",diffStyle:u="split"}=this.options,c={type:"diff",diffIndicators:a,disableBackground:s,disableLineNumbers:l,overflow:d,split:"unified"!==u&&null!=t&&null!=n,totalLines:i,customProperties:r};o=this.appliedPreAttributes,(null==c||null==o?c!==o:!function(e=aw,t=aw){if(e===t)return!0;let n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0}(c.customProperties,o.customProperties)||c.type!==o.type||c.diffIndicators!==o.diffIndicators||c.disableBackground!==o.disableBackground||c.disableLineNumbers!==o.disableLineNumbers||c.overflow!==o.overflow||c.split!==o.split||c.totalLines!==o.totalLines)&&(!function(e,{type:t,diffIndicators:n,disableBackground:i,disableLineNumbers:r,overflow:o,split:a,totalLines:s,customProperties:l}){if(null!=l)for(let t in l){let n=l[t];null!=n&&e.setAttribute(t,`${n}`)}switch("diff"===t?(e.setAttribute("data-diff",""),e.removeAttribute("data-file")):(e.setAttribute("data-file",""),e.removeAttribute("data-diff")),n){case"bars":case"classic":e.setAttribute("data-indicators",n);break;case"none":e.removeAttribute("data-indicators")}r?e.setAttribute("data-disable-line-numbers",""):e.removeAttribute("data-disable-line-numbers"),i?e.removeAttribute("data-background"):e.setAttribute("data-background",""),"diff"===t?e.setAttribute("data-diff-type",a?"split":"single"):e.removeAttribute("data-diff-type"),e.setAttribute("data-overflow",o),e.style.setProperty("--diffs-min-number-column-width-default",`${`${s}`.length}ch`)}(e,c),this.appliedPreAttributes=c)}applyErrorToDOM(e,t){this.cleanupErrorWrapper(),this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;let n=t.shadowRoot??t.attachShadow({mode:"open"});this.errorWrapper??=document.createElement("div"),this.errorWrapper.dataset.errorWrapper="",this.errorWrapper.textContent="",n.appendChild(this.errorWrapper);let i=document.createElement("div");i.dataset.errorMessage="",i.innerText=e.message,this.errorWrapper.appendChild(i);let r=document.createElement("pre");r.dataset.errorStack="",r.innerText=e.stack??"No Error Stack",this.errorWrapper.appendChild(r)}cleanupErrorWrapper(){this.errorWrapper?.remove(),this.errorWrapper=void 0}};function hu(e){if(null!=e&&"element"===e.type)return e.children??[]}let hc=-1;var hh=class extends hd{__id=`little-virtualized-file-diff:${++hc}`;top;height=0;metrics;cache={heightDeltas:new Map,measuredHeightDeltaTotal:0,estimatedSplitHeight:void 0,estimatedUnifiedHeight:void 0,checkpoints:[],totalLines:0,fileAnnotationHeight:0};isVisible=!1;isSetup=!1;virtualizer;layoutDirty=!0;forceRenderOverride;currentCollapsed;constructor(e,t,n,i,r=!1){super(e,i,r),this.virtualizer=t,this.metrics=cu(n)}setMetrics(e,t=!1){let n=cu(e);!t&&rG(this.metrics,n)||(this.metrics=n,this.resetLayoutCache({includeEstimatedHeights:!0}))}setLineAnnotations(e){this.syncLineAnnotations(e)&&this.resetLayoutCache({includeEstimatedHeights:!1})}syncLineAnnotations(e){return null!=e&&e!==this.lineAnnotations&&(0!==e.length||0!==this.lineAnnotations.length)&&(super.setLineAnnotations(e),!0)}setFileAnnotationHeight(e){let t=this.cache.fileAnnotationHeight;return e!==t&&(this.cache.fileAnnotationHeight=e,this.cache.measuredHeightDeltaTotal+=e-t,!0)}hasFileAnnotations(e=this.fileDiff){var t;return null!=e&&(t=this.lineAnnotations,!!t?.some(e=>0===e.lineNumber))&&this.lineAnnotations.some(t=>0===t.lineNumber&&("new"===e.type?"additions"===t.side:"deleted"!==e.type||"deletions"===t.side))}getLineHeight(e,t=!1){return this.getEstimatedLineHeight(t)+(this.cache.heightDeltas.get(e)??0)}getEstimatedLineHeight(e=!1){return this.metrics.lineHeight*(e?2:1)}setOptions(e){var t,n,i,r;if(this.isAdvancedMode())throw Error("VirtualizedFileDiff.setOptions cannot be used inside CodeView. Update CodeView options instead.");if(null==e)return;let{options:o}=this,a=!rq(o,e),s=a&&(t=o,n=e,(t.diffStyle??"split")!==(n.diffStyle??"split")||(t.overflow??"scroll")!==(n.overflow??"scroll")||(t.collapsed??!1)!==(n.collapsed??!1)||(t.disableLineNumbers??!1)!==(n.disableLineNumbers??!1)||(t.disableFileHeader??!1)!==(n.disableFileHeader??!1)||(t.diffIndicators??"bars")!==(n.diffIndicators??"bars")||(t.hunkSeparators??"line-info")!==(n.hunkSeparators??"line-info")||(t.expandUnchanged??!1)!==(n.expandUnchanged??!1)||(t.collapsedContextThreshold??1)!==(n.collapsedContextThreshold??1)||t.unsafeCSS!==n.unsafeCSS);super.setOptions(e),s&&this.resetLayoutCache({forceSimpleRecompute:!0,includeEstimatedHeights:(i=o,r=e,(i.disableFileHeader??!1)!==(r.disableFileHeader??!1)||(i.hunkSeparators??"line-info")!==(r.hunkSeparators??"line-info")||(i.expandUnchanged??!1)!==(r.expandUnchanged??!1)||(i.collapsedContextThreshold??1)!==(r.collapsedContextThreshold??1))}),a&&(this.forceRenderOverride=!0),a&&this.isSimpleMode()&&this.virtualizer.instanceChanged(this,s)}setThemeType(e){if(this.isAdvancedMode())throw Error("VirtualizedFileDiff.setThemeType cannot be used inside CodeView. Update CodeView options instead.");super.setThemeType(e)}resetLayoutCache({forceSimpleRecompute:e=!1,includeEstimatedHeights:t=!1}={}){this.layoutDirty=!0,this.cache.fileAnnotationHeight=0,this.cache.heightDeltas.size>0&&this.cache.heightDeltas.clear(),0!==this.cache.measuredHeightDeltaTotal&&(this.cache.measuredHeightDeltaTotal=0),this.cache.checkpoints.length>0&&(this.cache.checkpoints.length=0),0!==this.cache.totalLines&&(this.cache.totalLines=0),t&&(this.cache.estimatedSplitHeight=void 0,this.cache.estimatedUnifiedHeight=void 0),null!=this.renderRange&&(this.renderRange=void 0),e&&this.isSimpleMode()&&this.computeApproximateSize()}reconcileHeights(){let e=!1,{overflow:t="scroll"}=this.options;if(null==this.fileContainer||null==this.fileDiff)return 0!==this.height&&(e=!0),this.height=0,e;if(this.top=this.getVirtualizedTop(),"scroll"===t&&0===this.lineAnnotations.length&&!this.isResizeDebuggingEnabled())return e;let n=this.getDiffStyle(),i="split"===n?[this.codeDeletions,this.codeAdditions]:[this.codeUnified],r=this.hasFileAnnotations(this.fileDiff);if(null!=this.renderRange&&r&&aB(this.renderRange)){let t=function(e){let t;for(let n of e){if(null==n)continue;let e=n.children[1];if(e instanceof HTMLElement)for(let n of e.children)n instanceof HTMLElement&&"-1,-1"===n.dataset.lineAnnotation&&(t=Math.max(t??0,n.getBoundingClientRect().height))}return t}(i)??0;this.setFileAnnotationHeight(t)&&(e=!0)}else!r&&this.setFileAnnotationHeight(0)&&(e=!0);for(let t of i){if(null==t)continue;let i=t.children[1];if(i instanceof HTMLElement)for(let t of i.children){if(!(t instanceof HTMLElement))continue;let i=t.dataset.lineIndex;if(null==i)continue;let r=function(e,t){let[n,i]=e.split(",").map(Number);return"split"===t?i:n}(i,n),o=t.getBoundingClientRect().height,a=!1;t.nextElementSibling instanceof HTMLElement&&("lineAnnotation"in t.nextElementSibling.dataset||"noNewline"in t.nextElementSibling.dataset)&&("noNewline"in t.nextElementSibling.dataset&&(a=!0),o+=t.nextElementSibling.getBoundingClientRect().height);let s=this.getEstimatedLineHeight(a),l=this.cache.heightDeltas.get(r)??0,d=o-s;d!==l&&(e=!0,this.cache.measuredHeightDeltaTotal+=d-l,0===d?this.cache.heightDeltas.delete(r):this.cache.heightDeltas.set(r,d))}}return(e||this.isResizeDebuggingEnabled())&&this.computeApproximateSize(!0),e}onRender=e=>null!=this.fileContainer&&(e&&(this.top=this.getVirtualizedTop()),this.render());prepareCodeViewItem(e,t,n,i){let r=!cd(this.fileDiff,e),o=this.syncLineAnnotations(i),a=n?.resetDiffLayoutCache===!0||r||o,s=r||n?.resetDiffLayoutCache===!0&&n.includeEstimatedDiffHeights;n?.metrics!=null&&(this.metrics=cu(n.metrics),a=!0,s=!0);let{collapsed:l=!1}=this.options;return this.currentCollapsed!==l&&(this.currentCollapsed=l,a=!0),a&&this.resetLayoutCache({includeEstimatedHeights:s}),this.fileDiff=e,this.top=t,this.computeApproximateSize(),this.height}getLinePosition(e,t="additions"){let n;if(null==this.fileDiff||e<1)return;let i=this.getLineIndex(e,t);if(null==i)return;let{disableFileHeader:r=!1,expandUnchanged:o=!1,collapsed:a=!1,collapsedContextThreshold:s=1}=this.options,l=this.getDiffStyle(),d=this.getHunkSeparatorType(),u="split"===l?i[1]:i[0];this.approximateLayoutCheckpoints();let c=cc(this.metrics,r),h=this.getLayoutCheckpointBeforeLineIndex(u),f=h?.top??c+this.cache.fileAnnotationHeight;return a?{top:c,height:0}:(cw({diff:this.fileDiff,diffStyle:l,startingLine:h?.renderedLineIndex??0,expandedHunks:!!o||this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:s,callback:({hunkIndex:e,hunk:t,collapsedBefore:i,collapsedAfter:r,deletionLine:o,additionLine:a})=>{let s="split"===l?a?.splitLineIndex??o?.splitLineIndex:a?.unifiedLineIndex??o?.unifiedLineIndex;if(null==s)throw Error("VirtualizedFileDiff.getLinePosition: missing line index data");if(i>0){let r=cy({type:d,metrics:this.metrics,hunkIndex:e,hunkSpecs:t?.hunkSpecs});if(null!=r){if(f+=r.gapBefore,u>=s-i&&u<s)return n={top:f,height:r.height},!0;f+=r.height+r.gapAfter}}let c=this.getLineHeight(s,(a?.noEOFCR??!1)||(o?.noEOFCR??!1));if(s===u)return n={top:f,height:c},!0;if(f+=c,r>0){let e=cv({type:d,metrics:this.metrics});if(null!=e){if(u>s&&u<=s+r)return n={top:f+e.gapBefore,height:e.height},!0;f+=e.totalHeight}}return!1}}),n)}getNumericScrollAnchor(e){let t;if(null==this.fileDiff)return;let{disableFileHeader:n=!1,expandUnchanged:i=!1,collapsed:r=!1,collapsedContextThreshold:o=1}=this.options;if(r)return;let a=this.getDiffStyle(),s=this.getHunkSeparatorType();this.approximateLayoutCheckpoints();let l=this.getLayoutCheckpointBeforeTop(e),d=l?.top??cc(this.metrics,n)+this.cache.fileAnnotationHeight;return cw({diff:this.fileDiff,diffStyle:a,startingLine:l?.renderedLineIndex??0,expandedHunks:!!i||this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:o,callback:({hunkIndex:n,hunk:i,collapsedBefore:r,collapsedAfter:o,deletionLine:l,additionLine:u})=>{let c="split"===a?u?.splitLineIndex??l?.splitLineIndex:u?.unifiedLineIndex??l?.unifiedLineIndex;if(null==c)throw Error("VirtualizedFileDiff.getNumericScrollAnchor: missing line index data");if(r>0){let e=cy({type:s,metrics:this.metrics,hunkIndex:n,hunkSpecs:i?.hunkSpecs});null!=e&&(d+=e.totalHeight)}if(d>=e&&(null!=l?t={lineNumber:l.lineNumber,side:"deletions",top:d}:null!=u&&(t={lineNumber:u.lineNumber,side:"additions",top:d}),null!=t))return!0;let h=this.getLineHeight(c,(u?.noEOFCR??!1)||(l?.noEOFCR??!1));if(d+=h,o>0){let e=cv({type:s,metrics:this.metrics});null!=e&&(d+=e.totalHeight)}return!1}}),t}getVirtualizedHeight(){return this.height}getAdvancedStickySpecs(e){if(null==this.top||null==this.fileDiff)return;if(!0===this.options.collapsed)return{topOffset:this.top,height:this.height};let t=null!=e?this.computeRenderRangeFromWindow(this.fileDiff,this.top,e):this.renderRange;if(null==t)return;let{bufferBefore:n,bufferAfter:i,totalLines:r}=t,o=0;if(0===r){let t=e??this.virtualizer.getWindowSpecs();this.top<t.top&&(o=i)}return{topOffset:this.top+n+o,height:this.height-(n+i)}}cleanUp(e=!1){null!=this.fileContainer&&this.isSimpleMode()&&this.getSimpleVirtualizer()?.disconnect(this.fileContainer),e||this.resetLayoutCache({includeEstimatedHeights:!0}),this.isSetup=!1,super.cleanUp(e)}expandHunk=(e,t,n)=>{this.hunksRenderer.expandHunk(e,t,n),this.forceRenderOverride=!0,this.resetLayoutCache({includeEstimatedHeights:!0}),this.isSimpleMode()&&this.computeApproximateSize(),this.virtualizer.instanceChanged(this,!0)};setVisibility(e){this.isAdvancedMode()||null==this.fileContainer||(this.renderRange=void 0,e&&!this.isVisible?(this.top=this.getVirtualizedTop(),this.isVisible=!0):!e&&this.isVisible&&(this.isVisible=!1,this.rerender()))}rerender(){this.enabled&&(null!=this.fileDiff||null!=this.additionFile||null!=this.deletionFile)&&(this.forceRenderOverride=!0,this.virtualizer.instanceChanged(this,!1))}computeApproximateSize(e=!1){let t=this.isResizeDebuggingEnabled();if(!e&&!this.layoutDirty&&!t)return;let n=0===this.height;if(this.height=0,this.cache.checkpoints=[],this.cache.totalLines=0,null==this.fileDiff){this.layoutDirty=!1;return}let{disableFileHeader:i=!1,collapsed:r=!1}=this.options,o=cc(this.metrics,i);if(this.height+=o,r){this.layoutDirty=!1;return}this.height=this.getActiveEstimatedHeight()+this.cache.measuredHeightDeltaTotal,t&&!n&&this.validateComputedHeight(),this.layoutDirty=!1}getActiveEstimatedHeight(){this.ensureEstimatedDiffHeights();let e="split"===this.getDiffStyle()?this.cache.estimatedSplitHeight:this.cache.estimatedUnifiedHeight;if(null==e)throw Error("VirtualizedFileDiff.getActiveEstimatedHeight: missing estimated height");return e}ensureEstimatedDiffHeights(){if(null==this.fileDiff){this.cache.estimatedSplitHeight=void 0,this.cache.estimatedUnifiedHeight=void 0;return}if(null!=this.cache.estimatedSplitHeight&&null!=this.cache.estimatedUnifiedHeight)return;let{disableFileHeader:e=!1,expandUnchanged:t=!1,collapsedContextThreshold:n=1}=this.options,{splitHeight:i,unifiedHeight:r}=function({fileDiff:e,metrics:t,disableFileHeader:n,hunkSeparators:i,expandUnchanged:r,expandedHunks:o,collapsedContextThreshold:a}){let s=cc(t,n),l=s,d=!!r||o,u=e.hunks.length-1;for(let n=0;n<e.hunks.length;n++){let r=e.hunks[n];if(null==r)throw Error("computeEstimatedDiffHeights: invalid hunk index");let o=cf({isPartial:e.isPartial,rangeSize:r.collapsedBefore,expandedHunks:d,hunkIndex:n,collapsedContextThreshold:a}),c=(o.fromStart+o.fromEnd)*t.lineHeight;if(s+=c,l+=c,o.collapsedLines>0){let e=cy({type:i,metrics:t,hunkIndex:n,hunkSpecs:r.hunkSpecs})?.totalHeight??0;s+=e,l+=e}s+=r.splitLineCount*t.lineHeight,l+=r.unifiedLineCount*t.lineHeight;let h=function(e){if(!e.noEOFCRAdditions&&!e.noEOFCRDeletions)return{split:0,unified:0};let t=e.hunkContent.at(-1);if(null==t)return{split:0,unified:0};if("context"===t.type){let e=+(t.lines>0);return{split:e,unified:e}}return function(e,t){let n=(t.deletions>0&&e.noEOFCRDeletions?1:0)+(t.additions>0&&e.noEOFCRAdditions?1:0),i=t.deletions>0&&e.noEOFCRDeletions,r=t.additions>0&&e.noEOFCRAdditions;return{split:i||r?1:0,unified:n}}(e,t)}(r);s+=h.split*t.lineHeight,l+=h.unified*t.lineHeight;let f=n===u?cm({fileDiff:e,hunkIndex:n,expandedHunks:d,collapsedContextThreshold:a,errorPrefix:"computeEstimatedDiffHeights"}):void 0;if(null!=f){let e=(f.fromStart+f.fromEnd)*t.lineHeight;if(s+=e,l+=e,f.collapsedLines>0){let e=cv({type:i,metrics:t})?.totalHeight??0;s+=e,l+=e}}}if(e.hunks.length>0){let e=ch(t);s+=e,l+=e}return{splitHeight:s,unifiedHeight:l}}({fileDiff:this.fileDiff,metrics:this.metrics,disableFileHeader:e,hunkSeparators:this.getHunkSeparatorType(),expandUnchanged:t,expandedHunks:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:n});this.cache.estimatedSplitHeight=i,this.cache.estimatedUnifiedHeight=r}validateComputedHeight(){if(null==this.fileContainer||null==this.fileDiff)return;let e=this.fileContainer.getBoundingClientRect();e.height!==this.height?console.log("VirtualizedFileDiff.computeApproximateSize: computed height doesnt match",{name:this.fileDiff.name,elementHeight:e.height,computedHeight:this.height}):console.log("VirtualizedFileDiff.computeApproximateSize: computed height IS CORRECT")}render({fileContainer:e,oldFile:t,newFile:n,fileDiff:i,forceRender:r=!1,lineAnnotations:o,...a}={}){let{forceRenderOverride:s,isSetup:l}=this;this.forceRenderOverride=void 0;let d=this.syncLineAnnotations(o);if(d&&this.resetLayoutCache({includeEstimatedHeights:!1}),this.fileDiff??=i??(null!=t&&null!=n?aP(t,n,this.options.parseDiffOptions):void 0),e=this.getOrCreateFileContainer(e),null==this.fileDiff)return console.error("VirtualizedFileDiff.render: attempting to virtually render when we dont have the correct data"),!1;if(l)this.top??=this.getVirtualizedTop();else{this.computeApproximateSize();let t=this.getSimpleVirtualizer();if(this.top??=this.getVirtualizedTop(),this.isAdvancedMode())this.isVisible=!0;else{if(null==t)throw Error("VirtualizedFileDiff.render: simple virtualizer is not available");t.connect(e,this),this.isVisible=t.isInstanceVisible(this.top??0,this.height)}this.isSetup=!0}if(!this.isVisible&&this.isSimpleMode())return this.renderPlaceholder(this.height);let u=this.virtualizer.getWindowSpecs(),c=this.top??0,h=this.computeRenderRangeFromWindow(this.fileDiff,c,u);return super.render({fileDiff:this.fileDiff,fileContainer:e,renderRange:h,oldFile:t,newFile:n,lineAnnotations:o,forceRender:(s??r)||d,...a})}syncVirtualizedTop(){this.top=this.getVirtualizedTop()}shouldDisableVirtualizationBuffers(){return this.isAdvancedMode()||super.shouldDisableVirtualizationBuffers()}isSimpleMode(){return"simple"===this.virtualizer.type}isAdvancedMode(){return"advanced"===this.virtualizer.type}getVirtualizedTop(){return"advanced"===this.virtualizer.type?this.virtualizer.getLocalTopForInstance(this):null!=this.fileContainer?this.virtualizer.getOffsetInScrollContainer(this.fileContainer):0}getSimpleVirtualizer(){return"simple"===this.virtualizer.type?this.virtualizer:void 0}isResizeDebuggingEnabled(){return this.getSimpleVirtualizer()?.config.resizeDebugging??!1}getDiffStyle(){return this.options.diffStyle??"split"}getHunkSeparatorType(){var e;return"function"==typeof(e=this.options.hunkSeparators)?"custom":e??"line-info"}approximateLayoutCheckpoints(){if(this.cache.checkpoints.length>0||null==this.fileDiff||0===this.fileDiff.hunks.length||!0===this.options.collapsed)return;let{disableFileHeader:e=!1,expandUnchanged:t=!1,collapsedContextThreshold:n=1}=this.options,i=this.fileDiff.hunks.length-1,r=this.getDiffStyle(),o=this.getHunkSeparatorType(),a=!!t||this.hunksRenderer.getExpandedHunksMap(),s=function(e){let t=Array.from(e).sort((e,t)=>e[0]-t[0]),n=[],i=[0],r=0;for(let[e,o]of t)n.push(e),r+=o,i.push(r);return{lineIndexes:n,prefixTotals:i}}(this.cache.heightDeltas),l=cc(this.metrics,e)+this.cache.fileAnnotationHeight,d=0,u=({rowCount:e,startLineIndex:t,preSeparatorHeight:n=0,postSeparatorHeight:i=0,metadataOffsets:r=[]})=>{if(e<=0)return;let o=d,a=d+e,u=5e3*Math.ceil(o/5e3);for(;u<a;){let e=u-o,i=l+(e>0?n:0)+e*this.metrics.lineHeight+function(e,t){let n=0;for(let i of e)i<t&&n++;return n}(r,e)*this.metrics.lineHeight+hf(s,t,t+e);this.cache.checkpoints.push({renderedLineIndex:u,lineIndex:t+e,top:i}),u+=5e3}l+=n+e*this.metrics.lineHeight+r.length*this.metrics.lineHeight+hf(s,t,t+e)+i,d=a};for(let e=0;e<this.fileDiff.hunks.length;e++){let t=this.fileDiff.hunks[e];if(null==t)throw Error("VirtualizedFileDiff.approximateLayoutCheckpoints: invalid hunk index");let s=cf({isPartial:this.fileDiff.isPartial,rangeSize:t.collapsedBefore,expandedHunks:a,hunkIndex:e,collapsedContextThreshold:n}),l=s.collapsedLines>0?cy({type:o,metrics:this.metrics,hunkIndex:e,hunkSpecs:t.hunkSpecs})?.totalHeight??0:0;u({rowCount:s.fromStart,startLineIndex:("split"===r?t.splitLineStart:t.unifiedLineStart)-s.rangeSize});let d=l;u({rowCount:s.fromEnd,startLineIndex:("split"===r?t.splitLineStart:t.unifiedLineStart)-s.fromEnd,preSeparatorHeight:d}),s.fromEnd>0&&(d=0);let c=e===i?cm({fileDiff:this.fileDiff,hunkIndex:e,expandedHunks:a,collapsedContextThreshold:n,errorPrefix:"VirtualizedFileDiff"}):void 0,h=null!=c&&c.collapsedLines>0?cv({type:o,metrics:this.metrics})?.totalHeight??0:0,f=null!=c?c.fromStart+c.fromEnd:0,p="split"===r?t.splitLineCount:t.unifiedLineCount,m="split"===r?t.splitLineStart:t.unifiedLineStart;u({rowCount:p,startLineIndex:m,preSeparatorHeight:d,postSeparatorHeight:0===f?h:0,metadataOffsets:function({diffStyle:e,hunk:t,rowCount:n}){if(n<=0||!t.noEOFCRAdditions&&!t.noEOFCRDeletions)return[];let i=t.hunkContent.at(-1);if(null==i)return[];if("context"===i.type)return[n-1];let r=Math.max(i.deletions,i.additions),o=i.deletions+i.additions;if("split"===e)return r>0&&(t.noEOFCRAdditions||t.noEOFCRDeletions)?[n-1]:[];let a=[];return i.deletions>0&&t.noEOFCRDeletions&&a.push(n-o+i.deletions-1),i.additions>0&&t.noEOFCRAdditions&&a.push(n-1),a}({diffStyle:r,hunk:t,rowCount:p})}),null!=c&&f>0&&u({rowCount:f,startLineIndex:m+p,postSeparatorHeight:h})}this.cache.totalLines=d}getLayoutCheckpointBeforeLineIndex(e){let t;if(e<=0||0===this.cache.checkpoints.length)return;let n=0,i=this.cache.checkpoints.length-1;for(;n<=i;){let r=n+i>>1,o=this.cache.checkpoints[r];if(null==o)throw Error("VirtualizedFileDiff: invalid checkpoint index");o.lineIndex<=e?(t=o,n=r+1):i=r-1}return t}getLayoutCheckpointBeforeTop(e,t){let n=0,i=this.cache.checkpoints.length-1,r=-1;for(;n<=i;){let t=n+i>>1,o=this.cache.checkpoints[t];if(null==o)throw Error("VirtualizedFileDiff: invalid checkpoint index");o.top<=e?(r=t,n=t+1):i=t-1}if(null==t)return r>=0?this.cache.checkpoints[r]:void 0;for(let e=r;e>=0;e--){let n=this.cache.checkpoints[e];if(null==n)throw Error("VirtualizedFileDiff: invalid checkpoint index");if(n.renderedLineIndex%t==0)return n}}getExpandedLineCount(e,t){let n=0;if(e.isPartial){for(let i of e.hunks)n+="split"===t?i.splitLineCount:i.unifiedLineCount;return n}let{expandUnchanged:i=!1,collapsedContextThreshold:r=1}=this.options,o=!!i||this.hunksRenderer.getExpandedHunksMap();for(let[i,a]of e.hunks.entries()){n+="split"===t?a.splitLineCount:a.unifiedLineCount;let s=Math.max(a.collapsedBefore,0),{fromStart:l,fromEnd:d,renderAll:u}=cf({isPartial:e.isPartial,rangeSize:s,expandedHunks:o,hunkIndex:i,collapsedContextThreshold:r});s>0&&(n+=u?s:l+d)}let a=cm({fileDiff:e,hunkIndex:e.hunks.length-1,expandedHunks:o,collapsedContextThreshold:r,errorPrefix:"VirtualizedFileDiff"});return null!=a&&(n+=a.fromStart+a.fromEnd),n}computeRenderRangeFromWindow(e,t,{top:n,bottom:i}){let r,o,a,{disableFileHeader:s=!1,expandUnchanged:l=!1,collapsedContextThreshold:d=1}=this.options,{hunkLineCount:u,lineHeight:c}=this.metrics,h=this.getDiffStyle(),f=this.getHunkSeparatorType(),p=this.height,m=this.cache.totalLines>0?this.cache.totalLines:this.getExpandedLineCount(e,h),g=cc(this.metrics,s),b=e.hunks.length>0?ch(this.metrics):0,{fileAnnotationHeight:y}=this.cache,v=g+y,w=Math.max(0,p-g-y-b),x=this.hasFileAnnotations(e),k=t+g;if(t<n-p||t>i)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:p-g-b};if(m<=u||0===e.hunks.length)return{startingLine:0,totalLines:u,bufferBefore:0,bufferAfter:0};this.approximateLayoutCheckpoints(),m=this.cache.totalLines>0?this.cache.totalLines:m;let S=Math.ceil(Math.ceil(Math.max(i-n,0)/c)/u)*u+u,C=S/u,A=[],E=(n+i)/2,_=this.getLayoutCheckpointBeforeTop(Math.max(0,n-t-S*c*2),u),L=t+(_?.top??v),N=_?.renderedLineIndex??0;if(cw({diff:e,diffStyle:h,startingLine:_?.renderedLineIndex??0,expandedHunks:!!l||this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:d,callback:({hunkIndex:e,hunk:s,collapsedBefore:l,collapsedAfter:d,deletionLine:c,additionLine:p})=>{let m=null!=p?p.splitLineIndex:c.splitLineIndex,g=null!=p?p.unifiedLineIndex:c.unifiedLineIndex,b=(p?.noEOFCR??!1)||(c?.noEOFCR??!1),y=(l>0?cy({type:f,metrics:this.metrics,hunkIndex:e,hunkSpecs:s?.hunkSpecs}):void 0)?.totalHeight??0;L+=y;let w=N%u==0,x=Math.floor(N/u);if(w&&(A[x]=L-(t+v+y),null!=a)){if(a<=0)return!0;a--}let k=this.getLineHeight("split"===h?m:g,b);return L>n-k&&L<i&&(r??=x),null==o&&L+k>E&&(o=x),null==a&&L>=i&&w&&(a=C),N++,L+=k,d>0&&(L+=cv({type:f,metrics:this.metrics})?.totalHeight??0),!1}}),null==r)if(!(y>0)||!x||!(k<i)||!(k+y>n))return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:p-g-b};else r=0,o=0;let T=Math.round((o??=r)-C/2),R=Math.max(0,Math.min(T,Math.max(0,Math.ceil(m/u)-C))),M=R*u,P=T<0?S+T*u:S,I=A[R]??0,D=R+P/u;return{startingLine:M,totalLines:P,bufferBefore:0===M?0:y+I,bufferAfter:Math.max(0,D<A.length?w-A[D]:w-(L-t-v))}}};function hf({lineIndexes:e,prefixTotals:t},n,i){if(n>=i||0===e.length)return 0;let r=hp(e,n);return(t[hp(e,i)]??0)-(t[r]??0)}function hp(e,t){let n=0,i=e.length;for(;n<i;){let r=n+i>>1,o=e[r];if(null==o)throw Error("VirtualizedFileDiff: invalid prefix index");o<t?n=r+1:i=r}return n}e.i(4135),Symbol("IGNORE_RESPONSE");let hm=(0,m.createContext)(void 0),hg=new Set,hb=null;function hy(e){hg.add(e),hb??=requestAnimationFrame(hv)}function hv(e){let t=new Set(hg);for(let n of(hg.clear(),t))try{n(e)}catch(e){console.error(e)}hb=hg.size>0?requestAnimationFrame(hv):null}function hw({scrollTop:e,scrollHeight:t,height:n,fitPerfectly:i=!1,fitPerfectlyOverscroll:r=0,overscrollSize:o}){let a=n+2*o,s=i?n+2*r:a;if(a>=(t=Math.max(t,s))||i){let n=Math.max(e-r,0);return{top:n,bottom:Math.max(Math.min(e+s,t),n)}}let l=e+n/2-a/2,d=l+a;return l<0&&(l=0),d>t&&(d=t),{top:l=Math.floor(Math.max(l,0)),bottom:Math.ceil(Math.max(Math.min(d,t),l))}}let hx=[0,1e-6,.99999,1],hk={overscrollSize:1e3,intersectionObserverMargin:4e3,resizeDebugging:!1},hS=0,hC=-1;function hA(e,t){let n=e.getBoundingClientRect(),i=t?.getBoundingClientRect().top??0;return n.top-i}(class e{static __STOP=!1;static __lastScrollPosition=0;__id=`virtualizer-${++hC}`;config;type="simple";intersectionObserver;scrollTop=0;height=0;scrollHeight=0;windowSpecs={top:0,bottom:0};root;contentContainer;resizeObserver;observers=new Map;visibleInstances=new Map;visibleInstancesDirty=!1;instancesChanged=new Set;scrollDirty=!0;heightDirty=!0;scrollHeightDirty=!0;renderedObservers=0;connectQueue=new Map;constructor(e){this.config={...hk,...e}}setup(t,n){if(null==this.root){for(let[i,r]of(this.root=t,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:hx,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),t instanceof Document?this.setupWindow():this.setupElement(n),window.__INSTANCE=this,window.__TOGGLE=()=>{e.__STOP?(e.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:e.__lastScrollPosition}),hy(this.computeRenderRangeAndEmit)):(e.__lastScrollPosition=this.getScrollTop(),e.__STOP=!0)},this.connectQueue.entries()))this.connect(i,r);this.connectQueue.clear(),this.markDOMDirty(),hy(this.computeRenderRangeAndEmit)}}instanceChanged(e,t){this.instancesChanged.add(e),t&&this.markDOMDirty(),hy(this.computeRenderRangeAndEmit)}getWindowSpecs(){return 0===this.windowSpecs.top&&0===this.windowSpecs.bottom&&(this.windowSpecs=hw({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}isInstanceVisible(e,t){let n=this.getScrollTop(),i=this.getHeight(),r=this.config.intersectionObserverMargin;return!(e<n-r-t||e>n+i+r)}handleContainerResize=e=>{if(null==this.root)return;let t=!1;for(let n of e){let e=n.borderBoxSize[0].blockSize;this.root instanceof Document?e!==this.scrollHeight&&(this.scrollHeightDirty=!0,t=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:e-hS,newSize:e}),hS=e)):n.target===this.root?e!==this.height&&(this.heightDirty=!0,t=!0):n.target===this.contentContainer&&(this.scrollHeightDirty=!0,t=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:e-hS,newSize:e}),hS=e))}t&&hy(this.computeRenderRangeAndEmit)};setupWindow(){if(null==this.root||!(this.root instanceof Document))throw Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(e){if(null==this.root||this.root instanceof Document)throw Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),(e??=this.root.firstElementChild??void 0)instanceof HTMLElement&&(this.contentContainer=e,this.resizeObserver?.observe(e))}cleanUp(){this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0}getOffsetInScrollContainer(e){return this.getScrollTop()+hA(e,this.getScrollContainerElement())}connect(e,t){if(this.observers.has(e))throw Error("Virtualizer.connect: instance is already connected...");return null==this.intersectionObserver?this.connectQueue.set(e,t):(this.intersectionObserver.observe(e),this.observers.set(e,t),this.instancesChanged.add(t),this.markDOMDirty(),hy(this.computeRenderRangeAndEmit)),()=>this.disconnect(e)}disconnect(e){let t=this.observers.get(e);this.connectQueue.delete(e),null!=t&&(this.intersectionObserver?.unobserve(e),this.observers.delete(e),this.visibleInstances.delete(e)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),hy(this.computeRenderRangeAndEmit))}handleWindowResize=()=>{e.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,hy(this.computeRenderRangeAndEmit))};handleWindowScroll=()=>{!e.__STOP&&null!=this.root&&this.root instanceof Document&&(this.scrollDirty=!0,hy(this.computeRenderRangeAndEmit))};handleElementScroll=()=>{e.__STOP||null==this.root||this.root instanceof Document||(this.scrollDirty=!0,hy(this.computeRenderRangeAndEmit))};computeRenderRangeAndEmit=()=>{if(e.__STOP)return;let t=this.heightDirty||this.scrollHeightDirty;if(!this.scrollDirty&&!this.scrollHeightDirty&&!this.heightDirty&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&0===this.instancesChanged.size)return;let n=this.instancesChanged.size>0;if(0===this.instancesChanged.size){var i;let e=hw({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!t&&(i=this.windowSpecs,null==i||null==e?i===e:i.top===e.top&&i.bottom===e.bottom)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty)return;this.windowSpecs=e}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;let r=this.getScrollAnchor(this.height),o=new Set;for(let e of t?this.observers.values():this.visibleInstances.values())e.onRender(t)&&o.add(e);for(let e of this.instancesChanged)!o.has(e)&&e.onRender(t)&&o.add(e);for(let e of(this.scrollFix(r),o))e.reconcileHeights();(n||=this.instancesChanged.size>0)&&this.markDOMDirty(),(n||t)&&hy(this.computeRenderRangeAndEmit),o.clear(),this.instancesChanged.clear()};scrollFix(e){if(null==e)return;let t=this.getScrollContainerElement(),{lineIndex:n,lineOffset:i,fileElement:r,fileOffset:o,fileTypeOffset:a}=e;if(null!=n&&null!=i){let e=r.shadowRoot?.querySelector(`[data-line][data-line-index="${n}"]`);if(e instanceof HTMLElement){let n=hA(e,t);n!==i&&this.applyScrollFix(n-i);return}}let s=hA(r,t);if("top"===a)s!==o&&this.applyScrollFix(s-o);else{let e=s+r.getBoundingClientRect().height;e!==o&&this.applyScrollFix(e-o)}}applyScrollFix(e){null==this.root||this.root instanceof Document?window.scrollTo({top:window.scrollY+e,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+e,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(e){let t,n=this.getScrollContainerElement();for(let[i]of this.visibleInstances.entries()){let r,o,a,s,l=hA(i,n),d=l+i.offsetHeight;if(d<=0?(r=d,o="bottom"):(r=l,o="top"),d>0&&l<e)for(let e of i.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(e instanceof HTMLElement))continue;let t=e.dataset.lineIndex;if(null==t)continue;let i=hA(e,n);if(!(i<0)){a=t,s=i;break}}if(t?.lineOffset!=null&&null==s)continue;let u=!1;null==t||null!=s&&(null==t.lineOffset||s<t.lineOffset)?u=!0:null==s&&null==t.lineOffset&&(r>=0&&(t.fileOffset<0||r<t.fileOffset)?u=!0:r<0&&t.fileOffset<0&&r>t.fileOffset&&(u=!0)),u&&(t={fileElement:i,fileTypeOffset:o,fileOffset:r,lineIndex:a,lineOffset:s})}return t}handleIntersectionChange=e=>{for(let{target:t,isIntersecting:n}of(this.scrollDirty=!0,e)){if(!(t instanceof HTMLElement))throw Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");let e=this.observers.get(t);null!=e&&(n&&!this.visibleInstances.has(t)?(e.setVisibility(!0),this.visibleInstances.set(t,e),this.visibleInstancesDirty=!0):!n&&this.visibleInstances.has(t)&&(e.setVisibility(!1),this.visibleInstances.delete(t),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&hy(this.computeRenderRangeAndEmit)};getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let e=null==this.root?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return e=Math.max(0,Math.min(e,this.getScrollHeight()-this.getHeight())),this.scrollTop=e,e}getScrollHeight(){return this.scrollHeightDirty&&(this.scrollHeightDirty=!1,this.scrollHeight=null==this.root?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight),this.scrollHeight}getHeight(){return this.heightDirty&&(this.heightDirty=!1,this.height=null==this.root?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height),this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return null==this.root||this.root instanceof Document?void 0:this.root}});let hE=(0,m.createContext)(void 0),h_="u"<typeof window?m.useEffect:m.useLayoutEffect;function hL({options:e,controlledSelection:t,hasCustomHeader:n,hasGutterRenderUtility:i}){return t||i||n?{...e,controlledSelection:t,renderCustomHeader:n?rF:e?.renderCustomHeader,renderGutterUtility:i?rF:e?.renderGutterUtility}:e}function hN({fileDiff:e,options:t,metrics:n,lineAnnotations:i,selectedLines:r,className:o,style:a,prerenderedHTML:s,renderAnnotation:l,renderCustomHeader:d,renderHeaderPrefix:u,renderHeaderMetadata:c,renderGutterUtility:h,disableWorkerPool:f=!1}){var g;let{ref:b,getHoveredLine:y}=function({fileDiff:e,options:t,lineAnnotations:n,selectedLines:i,prerenderedHTML:r,metrics:o,hasGutterRenderUtility:a,hasCustomHeader:s,disableWorkerPool:l}){var d;let u,c=(0,m.useContext)(hE),h=void 0!==i,f=(0,m.useContext)(hm),p=(0,m.useRef)(null),g=(d=i=>{if(null!=i){if(null!=p.current)throw Error("useFileDiffInstance: An instance should not already exist when a node is created");null!=c?p.current=new hh(hL({controlledSelection:h,hasCustomHeader:s,hasGutterRenderUtility:a,options:t}),c,o,!l?f:void 0,!0):p.current=new hd(hL({controlledSelection:h,hasCustomHeader:s,hasGutterRenderUtility:a,options:t}),!l?f:void 0,!0),p.current.hydrate({fileDiff:e,fileContainer:i,lineAnnotations:n,prerenderedHTML:r})}else{if(null==p.current)throw Error("useFileDiffInstance: A FileDiff instance should exist when unmounting");p.current.cleanUp(),p.current=null}},u=(0,m.useRef)(d),(0,m.useInsertionEffect)(()=>void(u.current=d)),(0,m.useCallback)((...e)=>u.current(...e),[]));return h_(()=>{let{current:r}=p;if(null==r)return;let o=hL({controlledSelection:h,hasCustomHeader:s,hasGutterRenderUtility:a,options:t}),l=!rq(r.options,o);r.setOptions(o),r.render({forceRender:l,fileDiff:e,lineAnnotations:n}),void 0!==i&&r.setSelectedLines(i)}),{ref:g,getHoveredLine:(0,m.useCallback)(()=>p.current?.getHoveredLine(),[])}}({fileDiff:e,options:t,metrics:n,lineAnnotations:i,selectedLines:r,prerenderedHTML:s,hasGutterRenderUtility:null!=h,hasCustomHeader:null!=d,disableWorkerPool:f});return(0,p.jsx)(rr,{ref:b,className:o,style:a,children:(g=function({fileDiff:e,actions:t,renderCustomHeader:n,renderHeaderPrefix:i,renderHeaderMetadata:r,renderAnnotation:o,renderGutterUtility:a,renderMergeConflictUtility:s,lineAnnotations:l,getHoveredLine:d,getInstance:u}){let c=n?.(e),h=i?.(e),f=r?.(e);return(0,p.jsxs)(p.Fragment,{children:[null!=c?(0,p.jsx)("div",{slot:rf,children:c}):(0,p.jsxs)(p.Fragment,{children:[null!=h&&(0,p.jsx)("div",{slot:"header-prefix",children:h}),null!=f&&(0,p.jsx)("div",{slot:"header-metadata",children:f})]}),null!=o&&l?.map((e,t)=>(0,p.jsx)("div",{slot:rB(e),children:o(e)},t)),null!=t&&null!=s&&null!=u&&t.map(t=>{var n;let i;if(null==t)return;let r=null!=(i=function(e,t){let n=t.hunks[e.hunkIndex];if(null!=n)return{hunkIndex:e.hunkIndex,lineIndex:function(e,t){let n=e.unifiedLineStart;for(let i=0;i<t;i++){let t=e.hunkContent[i];n+="context"===t.type?t.lines:t.deletions+t.additions}return n}(n,e.startContentIndex)}}(n=t,e))?function({hunkIndex:e,lineIndex:t,conflictIndex:n}){return`merge-conflict-action-${e}-${t}-${n}`}({hunkIndex:i.hunkIndex,lineIndex:i.lineIndex,conflictIndex:n.conflictIndex}):void 0;return(0,p.jsx)("div",{slot:r,style:rU,children:s(t,u)},r)}),null!=a&&(0,p.jsx)("div",{slot:"gutter-utility-slot",style:rH,children:a(d)})]})}({fileDiff:e,renderCustomHeader:d,renderHeaderPrefix:u,renderHeaderMetadata:c,renderAnnotation:l,renderGutterUtility:h,lineAnnotations:i,getHoveredLine:y}),"u"<typeof window&&null!=s?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:s}}),g]}):(0,p.jsx)(p.Fragment,{children:g}))})}let hT="devframe-git-theme",hR={light:"vitesse-light",dark:"vitesse-dark"};function hM({file:e,options:t,defaultOpen:n}){let[i,r]=(0,m.useState)(n),{additions:o,deletions:a}=function(e){let t=0,n=0;for(let i of e.hunks)t+=i.additionLines,n+=i.deletionLines;return{additions:t,deletions:n}}(e),s=function(e){switch(e){case"new":return{name:"i-ph-file-plus-duotone",className:"text-success"};case"deleted":return{name:"i-ph-file-x-duotone",className:"text-error"};case"rename-pure":case"rename-changed":return{name:"i-ph-file-arrow-up-duotone",className:"color-muted"};default:return{name:"i-ph-file-duotone",className:"color-muted"}}}(e.type),l=e.prevName?`${e.prevName} → ${e.name}`:e.name;return(0,p.jsxs)("div",{children:[(0,p.jsxs)("button",{type:"button",onClick:()=>r(e=>!e),"aria-expanded":i,className:"hover:bg-active bg-secondary flex w-full items-center gap-2 px-2.5 py-1.5 text-left font-mono text-xs transition-colors",children:[(0,p.jsx)(ik,{name:"i-ph-caret-right",className:eL("color-faint size-3 transition-transform",i&&"rotate-90")}),(0,p.jsx)(ik,{name:s.name,className:eL("size-3.5",s.className)}),(0,p.jsx)("span",{className:"min-w-0 flex-1 truncate",title:l,children:l}),e.hunks.length>0?(0,p.jsxs)("span",{className:"shrink-0 tabular-nums",children:[(0,p.jsx)("span",{className:"text-success",children:`+${o}`})," ",(0,p.jsx)("span",{className:"text-error",children:`−${a}`})]}):e.type.startsWith("rename")?(0,p.jsx)(iv,{variant:"secondary",className:"px-1.5 py-0 text-[10px]",children:"renamed"}):(0,p.jsx)(iv,{variant:"secondary",className:"px-1.5 py-0 text-[10px]",children:"bin"})]}),i&&(e.hunks.length>0?(0,p.jsx)(hN,{fileDiff:e,options:t,disableWorkerPool:!0}):(0,p.jsx)("p",{className:"color-muted px-3 py-2 text-xs",children:"No textual diff (binary or metadata-only change)."}))]})}function hP({patch:e,loading:t,truncated:n,scroll:i=!0,collapsible:r=!1}){let o=function(){let[e,t]=(0,m.useState)("dark");return(0,m.useEffect)(()=>{let e=document.documentElement,n=()=>t(e.classList.contains("dark")?"dark":"light");n();let i=new MutationObserver(n);return i.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>i.disconnect()},[]),e}(),a=(0,m.useMemo)(()=>e?function(e){try{return(function(e,t=!1){var n;let i=[];for(let r of(n=e).startsWith("From ")||n.includes("\nFrom ")?e.split(ro):[e])try{i.push(function(e,t,n){try{return function(e,t,n=!1){var i,r,o;let a,s=(i=e).startsWith("diff --git")||i.includes("\ndiff --git"),l=s?(r=e,rD(r,"diff --git")):function(e){if(0===e.length)return[""];let t=[],n=0,i=0,r=0,o=0,a=!1;for(;i<e.length;){let s=rM(e,i);if(r<=0&&o<=0){if(rT(e,i)){i>n&&t.push(e.slice(n,i)),n=i,a=!0,i=rM(e,s);continue}if(a&&e.startsWith("@@ -",i)){let t=rP(e.slice(i,s));null!=t&&(r=t.deletionCount,o=t.additionCount)}i=s;continue}let l=e[i];if("\\"===l){i=s;continue}" "===l?(r=Math.max(r-1,0),o=Math.max(o-1,0)):"-"===l?r=Math.max(r-1,0):"+"===l&&(o=Math.max(o-1,0)),i=s}return t.push(e.slice(n)),t}(e),d=[];for(let e of l){if(s&&!ra.test(e)){if(null==a)a=rE(e);else if(n)throw Error("parsePatchContent: unknown file blob");else console.error("parsePatchContent: unknown file blob:",e);continue}if(!s&&(o=e,!rT(o,0))){if(null==a)a=rE(e);else if(n)throw Error("parsePatchContent: unknown file blob");else console.error("parsePatchContent: unknown file blob:",e);continue}let i=r_(e,{cacheKey:null!=t?`${t}-${d.length}`:void 0,isGitDiff:s,throwOnError:n});null!=i&&d.push(i)}return{patchMetadata:a,files:d}}(e,t,n)}finally{rA()}}(r,void 0,t))}catch(e){if(t)throw e;console.error(e)}return i})(e).flatMap(e=>e.files)}catch{return[]}}(e):[],[e]),s=(0,m.useMemo)(()=>({theme:hR,themeType:o,diffStyle:"unified",diffIndicators:"classic",disableFileHeader:r}),[o,r]);if(t)return(0,p.jsx)(ri,{className:"h-40 w-full"});if(!e||0===a.length)return(0,p.jsx)("p",{className:"color-muted p-3 text-sm",children:"No textual diff available (binary or unchanged)."});if(r)return(0,p.jsxs)("div",{className:"flex flex-col [&>*+*]:border-t [&>*+*]:border-base",children:[a.map((e,t)=>(0,p.jsx)(hM,{file:e,options:s,defaultOpen:1===a.length},e.name||t)),n&&(0,p.jsx)("p",{className:"text-warning px-3 py-1 text-xs",children:"Patch truncated."})]});let l=(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"flex flex-col text-sm [&>*+*]:border-t [&>*+*]:border-base",children:a.map((e,t)=>(0,p.jsx)(hN,{fileDiff:e,options:s,disableWorkerPool:!0},e.name||t))}),n&&(0,p.jsx)("p",{className:"text-warning px-3 py-1 text-xs",children:"Patch truncated."})]});return i?(0,p.jsx)(rt,{className:"h-72 w-full",children:l}):(0,p.jsx)("div",{children:l})}function hI(e){let{data:t,loading:n,staged:i,selected:r,onSelectScope:o,onSelectFile:a,onRefresh:s,patchSlot:l}=e;return(0,p.jsxs)("div",{className:"space-y-3",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,p.jsx)("div",{className:"bg-secondary inline-flex rounded-lg p-[3px] text-sm",children:[["Working tree",!1],["Staged",!0]].map(([e,t])=>(0,p.jsx)("button",{type:"button",onClick:()=>o(t),className:eL("cursor-pointer rounded-md px-3 py-1 font-medium transition-colors",i===t?"bg-base color-base shadow-sm":"color-muted"),children:e},e))}),(0,p.jsxs)("div",{className:"flex items-center gap-2",children:[t?.isRepo&&(0,p.jsxs)("span",{className:"text-xs tabular-nums",children:[(0,p.jsxs)("span",{className:"text-success",children:["+",t.totalAdditions]})," ",(0,p.jsxs)("span",{className:"text-error",children:["−",t.totalDeletions]})]}),(0,p.jsx)(ix,{variant:"ghost",size:"sm",onClick:s,disabled:n,"aria-label":"Refresh diff",children:(0,p.jsx)(ik,{name:"i-ph-arrows-clockwise",className:`size-4 ${n?"animate-spin":""}`})})]})]}),!t&&(0,p.jsx)("div",{className:"space-y-2",children:Array.from({length:3}).map((e,t)=>(0,p.jsx)(ri,{className:"h-8 w-full"},t))}),t&&!t.isRepo&&(0,p.jsx)("p",{className:"color-muted text-sm",children:"The working directory is not a git repository."}),t?.isRepo&&0===t.files.length&&(0,p.jsxs)("p",{className:"color-muted text-sm",children:["No",i?" staged":" unstaged"," ","changes."]}),t?.isRepo&&t.files.length>0&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(rt,{className:"h-40 pr-3",children:(0,p.jsx)("ul",{children:t.files.map(e=>(0,p.jsx)("li",{children:(0,p.jsxs)("button",{type:"button",onClick:()=>a(e.path),className:eL("flex w-full items-center gap-2 rounded px-1 py-0.5 text-left font-mono text-xs",r===e.path?"bg-active":"hover:bg-active"),children:[(0,p.jsx)("span",{className:"flex-1 truncate",title:e.path,children:e.path}),e.binary?(0,p.jsx)(iv,{variant:"secondary",className:"px-1.5 py-0 text-[10px]",children:"bin"}):(0,p.jsxs)("span",{className:"shrink-0 tabular-nums",children:[(0,p.jsxs)("span",{className:"text-success",children:["+",e.additions]})," ",(0,p.jsxs)("span",{className:"text-error",children:["−",e.deletions]})]})]})},e.path))})}),r&&(0,p.jsx)("div",{className:"overflow-hidden rounded-md border",children:l})]})]})}function hD({label:e}){let t=e.startsWith("tag: "),n=t?e.slice(5):e;return(0,p.jsxs)(iv,{variant:"secondary",className:"gap-1 font-mono text-[10px]",children:[t&&(0,p.jsx)(ik,{name:"i-ph-tag-duotone",className:"size-3"}),n]})}function hj({data:e,loading:t,error:n,onClose:i}){var r;return(0,p.jsxs)("div",{className:"flex h-full flex-col",children:[(0,p.jsxs)("div",{className:"flex items-start justify-between gap-2 pb-2",children:[(0,p.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,p.jsx)(ik,{name:"i-ph-git-commit-duotone",className:"color-active size-4"}),(0,p.jsx)("h2",{className:"text-sm leading-none font-semibold",children:"Commit details"})]}),i&&(0,p.jsx)(ix,{variant:"ghost",size:"sm",onClick:i,"aria-label":"Close commit details",children:(0,p.jsx)(ik,{name:"i-ph-x",className:"size-4"})})]}),n&&(0,p.jsx)("p",{className:"text-error text-sm",children:n}),!n&&(t||!e)&&(0,p.jsxs)("div",{className:"space-y-2",children:[(0,p.jsx)(ri,{className:"h-5 w-3/4"}),(0,p.jsx)(ri,{className:"h-4 w-1/2"}),(0,p.jsx)(ri,{className:"h-24 w-full"})]}),!n&&e&&!e.found&&(0,p.jsx)("p",{className:"color-muted text-sm",children:"Commit not found."}),!n&&e&&e.found&&(0,p.jsx)(rt,{className:"min-h-0 flex-1 pr-2",children:(0,p.jsxs)("div",{className:"space-y-4",children:[(0,p.jsxs)("div",{className:"space-y-1.5",children:[(0,p.jsx)("p",{className:"text-sm leading-snug font-medium break-words",children:e.subject}),e.refs.length>0&&(0,p.jsx)("div",{className:"flex flex-wrap gap-1",children:e.refs.map(e=>(0,p.jsx)(hD,{label:e},e))})]}),(0,p.jsxs)("dl",{className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-1 text-xs",children:[(0,p.jsx)("dt",{className:"color-muted",children:"Commit"}),(0,p.jsx)("dd",{className:"truncate font-mono tabular-nums",title:e.hash,children:e.shortHash}),(0,p.jsx)("dt",{className:"color-muted",children:"Author"}),(0,p.jsxs)("dd",{className:"truncate",children:[e.author,(0,p.jsx)("span",{className:"color-muted",children:` <${e.email}>`})]}),(0,p.jsx)("dt",{className:"color-muted",children:"Authored"}),(0,p.jsx)("dd",{className:"truncate",children:(r=e.date)?new Date(r).toLocaleString():""}),e.committer!==e.author&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("dt",{className:"color-muted",children:"Committer"}),(0,p.jsx)("dd",{className:"truncate",children:e.committer})]}),e.parents.length>0&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("dt",{className:"color-muted",children:e.parents.length>1?"Parents":"Parent"}),(0,p.jsx)("dd",{className:"truncate font-mono tabular-nums",children:e.parents.map(e=>e.slice(0,7)).join(", ")})]})]}),e.body&&(0,p.jsx)("pre",{className:"bg-secondary max-h-48 overflow-auto rounded-md p-3 font-mono text-xs whitespace-pre-wrap",children:e.body}),(0,p.jsxs)("div",{className:"space-y-1.5",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between",children:[(0,p.jsx)("span",{className:"color-muted text-xs font-medium tracking-wide uppercase",children:`${e.files.length} ${1===e.files.length?"file":"files"} changed`}),(0,p.jsxs)("span",{className:"text-xs tabular-nums",children:[(0,p.jsx)("span",{className:"text-success",children:`+${e.totalAdditions}`})," ",(0,p.jsx)("span",{className:"text-error",children:`−${e.totalDeletions}`})]})]}),null!==e.patch?(0,p.jsx)("div",{className:"overflow-hidden rounded-md border",children:(0,p.jsx)(hP,{patch:e.patch,loading:!1,truncated:e.truncated,scroll:!1,collapsible:!0})}):(0,p.jsx)("ul",{className:"space-y-0.5",children:e.files.map(e=>(0,p.jsxs)("li",{className:"flex items-center gap-2 font-mono text-xs",children:[(0,p.jsx)("span",{className:"min-w-0 flex-1 truncate",title:e.path,children:e.path}),e.binary?(0,p.jsx)(iv,{variant:"secondary",className:"px-1.5 py-0 text-[10px]",children:"bin"}):(0,p.jsxs)("span",{className:"shrink-0 tabular-nums",children:[(0,p.jsx)("span",{className:"text-success",children:`+${e.additions}`})," ",(0,p.jsx)("span",{className:"text-error",children:`−${e.deletions}`})]})]},e.path))})]})]})})]})}function h$({hash:e,onClose:t}){let{data:n,loading:i,error:r}=ia((0,m.useCallback)(t=>t.call("git:show",{hash:e}),[e]));return(0,p.jsx)(hj,{data:n,loading:i,error:r,onClose:t})}function hO({staged:e,path:t}){let{data:n,loading:i}=ia((0,m.useCallback)(n=>n.call("git:diff",{staged:e,path:t}),[e,t]));return(0,p.jsx)(hP,{patch:n?.patch??null,loading:i||!n,truncated:n?.truncated??!1})}function hz(){let[e,t]=(0,m.useState)(!1),[n,i]=(0,m.useState)(null),{data:r,loading:o,refresh:a}=ia((0,m.useCallback)(t=>t.call("git:diff",{staged:e}),[e])),s=(0,m.useCallback)(e=>{t(e),i(null)},[]);return(0,p.jsx)(hI,{data:r,loading:o,staged:e,selected:n,onSelectScope:s,onSelectFile:i,onRefresh:a,patchSlot:n?(0,p.jsx)(hO,{staged:e,path:n},`${e}:${n}`):null})}let hB=["#a78bfa","#ec4899","#f5b14c","#34d399","#38bdf8","#22d3ee","#f87171","#a3e635"],hH={remote:0,head:1,tag:2,branch:3};function hU(e){return"branch"===e.kind&&e.current?4:hH[e.kind]}function hF(e,t){let n=Number.parseInt(e.slice(1,3),16),i=Number.parseInt(e.slice(3,5),16),r=Number.parseInt(e.slice(5,7),16);return`rgba(${n}, ${i}, ${r}, ${t})`}function hG(e){return 6+16*e+8}function hW(e,t,n,i){let r=hG(e),o=hG(n);if(e===n)return`M ${r} ${t} L ${o} ${i}`;let a=(t+i)/2;return`M ${r} ${t} C ${r} ${a} ${o} ${a} ${o} ${i}`}function hq({row:e,width:t,isHead:n,topStub:i}){return(0,p.jsxs)("svg",{width:t,height:46,className:"block shrink-0",style:{overflow:"visible"},"aria-hidden":!0,children:[i&&(0,p.jsx)("path",{d:hW(e.col,0,e.col,23),fill:"none",stroke:e.color,strokeWidth:2,strokeLinecap:"round"}),e.topLinks.map((e,t)=>(0,p.jsx)("path",{d:hW(e.from,0,e.to,23),fill:"none",stroke:e.color,strokeWidth:2,strokeLinecap:"round"},`t${t}`)),e.bottomLinks.map((e,t)=>(0,p.jsx)("path",{d:hW(e.from,23,e.to,46),fill:"none",stroke:e.color,strokeWidth:2,strokeLinecap:"round"},`b${t}`)),n&&(0,p.jsx)("circle",{cx:hG(e.col),cy:23,r:8.5,fill:"none",stroke:e.color,strokeWidth:1.5,opacity:.4}),(0,p.jsx)("circle",{cx:hG(e.col),cy:23,r:5,fill:n?e.color:"var(--color-card)",stroke:e.color,strokeWidth:2.5})]})}function hV({refToken:e,color:t}){if("tag"===e.kind)return(0,p.jsxs)("span",{className:"inline-flex max-w-[140px] items-center gap-1 rounded-full border px-2 py-0.5 text-[11px] leading-none font-medium",style:{color:t,borderColor:hF(t,.5),backgroundColor:hF(t,.12)},children:[(0,p.jsx)(ik,{name:"i-ph-tag-duotone",className:"size-3 shrink-0"}),(0,p.jsx)("span",{className:"truncate",title:e.name,children:e.name})]});if("head"===e.kind)return(0,p.jsx)("span",{className:"color-muted inline-flex items-center gap-1 rounded-full border px-2 py-0.5 font-mono text-[11px] leading-none font-medium",children:"HEAD"});let n="remote"===e.kind?`${e.remote}/${e.name}`:e.name,i="branch"===e.kind&&e.current;return(0,p.jsxs)("span",{className:"inline-flex max-w-[140px] items-center gap-1 rounded-full px-2 py-0.5 text-[11px] leading-none font-medium",style:i?{color:"#fff",backgroundColor:t}:{color:t,borderColor:hF(t,.5),backgroundColor:hF(t,.12),borderWidth:1,borderStyle:"solid"},children:[i?(0,p.jsx)(ik,{name:"i-ph-check",className:"size-3 shrink-0"}):(0,p.jsx)(ik,{name:"i-ph-git-branch-duotone",className:"size-3 shrink-0 opacity-70"}),(0,p.jsx)("span",{className:"truncate",title:n,children:n})]})}let hX=(0,m.memo)(({commit:e,row:t,gutter:n,currentBranch:i,isHead:r,topStub:o,selected:a,onSelect:s})=>{let l=(0,m.useMemo)(()=>(function(e,t){let n=[];for(let i of e){let e=i.trim();if(!e)continue;if(e.startsWith("tag: ")){n.push({kind:"tag",name:e.slice(5).trim()});continue}if(e.includes("->")){let t=e.split("->")[1]?.trim();t&&n.push({kind:"branch",name:t,current:!0});continue}if("HEAD"===e){n.push({kind:"head"});continue}let r=e.indexOf("/");if(r>0){let t=e.slice(0,r),i=e.slice(r+1);if("HEAD"===i)continue;n.push({kind:"remote",remote:t,name:i});continue}n.push({kind:"branch",name:e,current:t===e})}return n.sort((e,t)=>hU(e)-hU(t))})(e.refs,i),[e.refs,i]),d=l.some(e=>"branch"===e.kind&&e.current);return(0,p.jsx)("li",{children:(0,p.jsxs)("button",{type:"button",onClick:()=>s?.(e.hash),"aria-current":a?"true":void 0,className:eL("relative flex w-full items-stretch rounded-md text-left transition-colors","focus-visible:ring-primary-500/40 outline-none focus-visible:ring-2",a?"ring-primary/60 bg-active ring-1":"hover:bg-active"),style:{height:46},children:[(0,p.jsx)("div",{className:"pointer-events-none absolute inset-y-[5px] left-0 rounded-full",style:{width:152+n+12,background:`linear-gradient(90deg, ${hF(t.color,d?.34:.2)} 0%, ${hF(t.color,.04)} 100%)`}}),(0,p.jsx)("div",{className:"relative z-10 flex items-center justify-end gap-1 overflow-hidden pr-1.5",style:{width:152},children:l.map((e,n)=>(0,p.jsx)(hV,{refToken:e,color:t.color},n))}),(0,p.jsx)("div",{className:"relative z-10",children:(0,p.jsx)(hq,{row:t,width:n,isHead:r,topStub:o})}),(0,p.jsxs)("div",{className:"relative z-10 flex min-w-0 flex-1 flex-col justify-center gap-0.5 pl-4",children:[(0,p.jsx)("span",{className:"truncate text-sm font-medium",title:e.subject,children:e.subject}),(0,p.jsxs)("div",{className:"color-muted flex items-center gap-2 text-xs",children:[(0,p.jsx)("code",{className:"shrink-0 tabular-nums",children:e.shortHash}),(0,p.jsx)("span",{className:"truncate",children:e.author}),(0,p.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,p.jsx)("span",{className:"shrink-0 tabular-nums",title:new Date(e.date).toLocaleString(),children:function(e){let t=Math.round((Date.now()-e)/6e4);if(t<1)return"just now";if(t<60)return`${t}m ago`;let n=Math.round(t/60);if(n<24)return`${n}h ago`;let i=Math.round(n/24);return i<30?`${i}d ago`:new Date(e).toLocaleDateString()}(e.date)})]})]})]})})});function hK({col:e,color:t,gutter:n,changes:i}){return(0,p.jsxs)("li",{className:"relative flex items-stretch",style:{height:46},children:[(0,p.jsx)("div",{className:"pointer-events-none absolute inset-y-[5px] left-0 rounded-full",style:{width:152+n+12,background:`linear-gradient(90deg, ${hF(t,.16)} 0%, ${hF(t,.03)} 100%)`}}),(0,p.jsx)("div",{className:"relative z-10",style:{width:152}}),(0,p.jsx)("div",{className:"relative z-10",children:(0,p.jsxs)("svg",{width:n,height:46,className:"block shrink-0",style:{overflow:"visible"},"aria-hidden":!0,children:[(0,p.jsx)("path",{d:hW(e,23,e,46),fill:"none",stroke:t,strokeWidth:2,strokeDasharray:"2 3",strokeLinecap:"round"}),(0,p.jsx)("circle",{cx:hG(e),cy:23,r:5,fill:"var(--color-card)",stroke:t,strokeWidth:2,strokeDasharray:"2 2"})]})}),(0,p.jsxs)("div",{className:"relative z-10 flex min-w-0 flex-1 items-center gap-2 pl-4",children:[(0,p.jsx)(ik,{name:"i-ph-pencil-simple-duotone",className:"color-muted size-3.5 shrink-0"}),(0,p.jsx)("span",{className:"text-sm font-medium",children:"Work in Progress"}),(0,p.jsxs)("span",{className:"color-muted text-xs",children:[i," ",1===i?"change":"changes"]})]})]})}function hJ(e){let{rpcConnected:t,isRepo:n,commits:i,hasMore:r,loading:o,error:a,selectedRef:s,currentBranch:l,workingChanges:d,selectedHash:u,onRefresh:c,onLoadMore:h,onSelectCommit:f}=e,g=(0,m.useMemo)(()=>(function(e){let t=[],n=0,i=()=>hB[n++%hB.length],r=()=>{let e=t.indexOf(null);return -1===e?t.length:e},o=[];for(let n of e){let e,{hash:a}=n,s=n.parents,l=[];for(let e=0;e<t.length;e++){let n=t[e];n&&l.push({col:e,hash:n.hash,color:n.color})}let d=t.findIndex(e=>e?.hash===a);-1===d?(d=r(),e=i()):e=t[d].color;for(let e=0;e<t.length;e++)t[e]?.hash===a&&(t[e]=null);t[d]=null;let u=[];for(s.forEach((n,o)=>{if(0===o){t[d]={hash:n,color:e},u.push({col:d,color:e});return}let a=t.findIndex(e=>e?.hash===n);-1===a&&(t[a=r()]={hash:n,color:i()}),u.push({col:a,color:t[a].color})}),0===s.length&&(t[d]=null);t.length>0&&null==t[t.length-1];)t.pop();let c=l.map(e=>({from:e.col,to:e.hash===a?d:e.col,color:e.color})),h=[];for(let e of l)e.hash!==a&&h.push({from:e.col,to:e.col,color:e.color});for(let e of u)h.push({from:d,to:e.col,color:e.color});o.push({col:d,color:e,topLinks:c,bottomLinks:h})}let a=0;for(let e of o){for(let t of(a=Math.max(a,e.col+1),e.topLinks))a=Math.max(a,t.from+1,t.to+1);for(let t of e.bottomLinks)a=Math.max(a,t.from+1,t.to+1)}return{rows:o,columns:a}})(i),[i]),b=16*Math.max(g.columns,1)+8+6,y=(d??0)>0&&i.length>0&&(!s||s===l),v=g.rows[0],w=(0,m.useRef)(null),x=(0,m.useRef)(null),k=(0,m.useRef)(!1),S=(0,m.useRef)(h);return S.current=h,(0,m.useEffect)(()=>{o||(k.current=!1)},[o]),(0,m.useEffect)(()=>{let e=w.current,t=x.current;if(!e||!t||!r)return;let n=new IntersectionObserver(e=>{!e[0]?.isIntersecting||k.current||o||(k.current=!0,S.current())},{root:e,rootMargin:"120px"});return n.observe(t),()=>n.disconnect()},[r,o,i.length]),(0,p.jsxs)("div",{className:"flex h-full min-h-0 flex-col gap-3",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between",children:[(0,p.jsx)("span",{className:"color-muted text-xs tabular-nums",children:n?`${i.length}${r?"+":""} commits${s?` \xb7 ${s}`:""}`:" "}),(0,p.jsx)(ix,{variant:"ghost",size:"sm",onClick:c,disabled:o,"aria-label":"Refresh log",children:(0,p.jsx)(ik,{name:"i-ph-arrows-clockwise",className:eL("size-4",o&&"animate-spin")})})]}),!t&&(0,p.jsx)("div",{className:"space-y-2",children:Array.from({length:5}).map((e,t)=>(0,p.jsx)(ri,{className:"h-10 w-full"},t))}),a&&(0,p.jsx)("p",{className:"text-error text-sm",children:a}),!1===n&&(0,p.jsx)("p",{className:"color-muted text-sm",children:"The working directory is not a git repository."}),!0===n&&0===i.length&&(0,p.jsx)("p",{className:"color-muted text-sm",children:"No commits yet."}),!0===n&&i.length>0&&(0,p.jsxs)("div",{ref:w,className:"min-h-0 flex-1 overflow-y-auto pr-2",children:[(0,p.jsxs)("ul",{children:[y&&v&&(0,p.jsx)(hK,{col:v.col,color:v.color,gutter:b,changes:d??0}),i.map((e,t)=>(0,p.jsx)(hX,{commit:e,row:g.rows[t],gutter:b,currentBranch:l,isHead:0===t,topStub:0===t&&y,selected:e.hash===u,onSelect:f},e.hash))]}),r&&(0,p.jsxs)("div",{ref:x,className:"color-muted flex items-center justify-center gap-2 py-3 text-xs",children:[(0,p.jsx)(ik,{name:"i-ph-spinner-gap",className:"size-3.5 animate-spin"}),"Loading more…"]})]})]})}function hY({branch:e,selectedHash:t,onSelectCommit:n}){let{rpc:i}=ir(),[r,o]=(0,m.useState)(null),[a,s]=(0,m.useState)([]),[l,d]=(0,m.useState)(0),[u,c]=(0,m.useState)(!1),[h,f]=(0,m.useState)(!1),[g,b]=(0,m.useState)(null),[y,v]=(0,m.useState)(null),[w,x]=(0,m.useState)(null),k=(0,m.useRef)([]);(0,m.useEffect)(()=>{k.current=a},[a]);let S=(0,m.useCallback)(async(t,n,i)=>{f(!0),b(null);try{let r=await t.call("git:log",{limit:30,skip:n,ref:e??void 0});if(o(r.isRepo),"replace"===i)s(r.commits),d(r.commits.length);else{let e=new Set(k.current.map(e=>e.hash)),t=r.commits.filter(t=>!e.has(t.hash)&&(e.add(t.hash),!0));if(0===t.length)return void c(!1);s(e=>[...e,...t]),d(e=>e+t.length)}c(r.hasMore)}catch(e){b(e instanceof Error?e.message:String(e))}finally{f(!1)}},[e]),C=(0,m.useCallback)(async e=>{try{let t=await e.call("git:status");v(t.branch),x(t.staged.length+t.unstaged.length+t.untracked.length)}catch{}},[]);(0,m.useEffect)(()=>{i&&(S(i,0,"replace"),C(i))},[i,S,C]);let A=(0,m.useCallback)(async()=>{i&&await Promise.all([S(i,0,"replace"),C(i)])},[i,S,C]),E=(0,m.useCallback)(async()=>{i&&await S(i,l,"append")},[i,l,S]);return(0,p.jsx)(hJ,{rpcConnected:!!i,isRepo:r,commits:a,hasMore:u,loading:h,error:g,selectedRef:e??null,currentBranch:y,workingChanges:w,selectedHash:t,onRefresh:A,onLoadMore:E,onSelectCommit:n})}function hQ({className:e,...t}){return(0,p.jsx)("textarea",{"data-slot":"textarea",className:eL("border-base placeholder:color-muted focus-visible:ring-primary-500/40 flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t})}let hZ={modified:"M",added:"A",deleted:"D",renamed:"R",copied:"C","type-changed":"T",unmerged:"U",unknown:"?"};function h0({entry:e,action:t}){let n=e.from?`${e.from} → ${e.path}`:e.path;return(0,p.jsxs)("li",{className:"hover:bg-active flex items-center gap-2 rounded py-0.5 pl-1 font-mono text-xs transition-colors",children:[(0,p.jsx)("span",{className:`w-3 shrink-0 text-center font-semibold ${function(e){switch(e){case"added":return"text-success";case"deleted":case"unmerged":return"text-error";case"modified":return"text-warning";default:return"color-muted"}}(e.status)}`,children:hZ[e.status]}),(0,p.jsx)("span",{className:"flex-1 truncate",title:n,children:n}),t]})}function h1({title:e,count:t,headerAction:n,children:i}){return 0===t?null:(0,p.jsxs)("div",{className:"space-y-1",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between",children:[(0,p.jsxs)("div",{className:"color-muted flex items-center gap-2 text-xs font-medium tracking-wide uppercase",children:[e,(0,p.jsx)(iv,{variant:"secondary",className:"px-1.5 py-0 text-[10px] tabular-nums",children:t})]}),n]}),(0,p.jsx)("ul",{children:i})]})}function h2(e){let{data:t,loading:n,busy:i,canWrite:r,message:o,note:a,onRefresh:s,onStage:l,onUnstage:d,onCommit:u,onMessageChange:c}=e,h=(e,t)=>(0,p.jsx)(ix,{variant:"ghost",size:"sm",disabled:i,"aria-label":t,onClick:()=>l(e),children:(0,p.jsx)(ik,{name:"i-ph-plus",className:"size-4"})});return(0,p.jsxs)("div",{className:"flex h-full min-h-0 flex-col gap-3",children:[(0,p.jsxs)("div",{className:"flex shrink-0 items-center justify-between gap-2",children:[(0,p.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:t?.isRepo?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(iv,{variant:"outline",className:"gap-1 font-mono",children:[(0,p.jsx)(ik,{name:"i-ph-git-branch-duotone",className:"size-3"}),t.detached?`detached @ ${t.head}`:t.branch]}),t.upstream&&(0,p.jsxs)(iv,{variant:"secondary",className:"gap-1 font-mono",children:[t.upstream,t.ahead>0&&(0,p.jsxs)("span",{className:"text-success inline-flex items-center tabular-nums",children:[(0,p.jsx)(ik,{name:"i-ph-arrow-up",className:"size-3"}),t.ahead]}),t.behind>0&&(0,p.jsxs)("span",{className:"text-warning inline-flex items-center tabular-nums",children:[(0,p.jsx)(ik,{name:"i-ph-arrow-down",className:"size-3"}),t.behind]})]}),t.clean?(0,p.jsxs)(iv,{variant:"success",className:"gap-1",children:[(0,p.jsx)(ik,{name:"i-ph-check",className:"size-3"}),"clean"]}):(0,p.jsx)(iv,{variant:"warning",children:"working tree dirty"})]}):(0,p.jsx)(ri,{className:"h-5 w-40"})}),(0,p.jsx)(ix,{variant:"ghost",size:"sm",onClick:s,disabled:n||i,"aria-label":"Refresh status",children:(0,p.jsx)(ik,{name:"i-ph-arrows-clockwise",className:`size-4 ${n?"animate-spin":""}`})})]}),t&&!t.isRepo&&(0,p.jsx)("p",{className:"color-muted text-sm",children:"The working directory is not a git repository."}),t?.isRepo&&t.clean&&(0,p.jsx)("p",{className:"color-muted text-sm",children:"Nothing to commit. The working tree is clean."}),t?.isRepo&&!t.clean&&(0,p.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-3",children:[(0,p.jsx)(rt,{className:"min-h-0 flex-1 pr-3",children:(0,p.jsxs)("div",{className:"space-y-4",children:[(0,p.jsx)(h1,{title:"Staged",count:t.staged.length,headerAction:r&&t.staged.length>0?(0,p.jsx)(iw,{variant:"ghost",size:"sm",disabled:i,onClick:()=>d(t.staged.map(e=>e.path)),children:"Unstage all"}):void 0,children:t.staged.map(e=>{let t,n;return(0,p.jsx)(h0,{entry:e,action:r?(t=[e.path],n=`Unstage ${e.path}`,(0,p.jsx)(ix,{variant:"ghost",size:"sm",disabled:i,"aria-label":n,onClick:()=>d(t),children:(0,p.jsx)(ik,{name:"i-ph-minus",className:"size-4"})})):void 0},`s:${e.path}`)})}),(0,p.jsx)(h1,{title:"Unstaged",count:t.unstaged.length,headerAction:r&&t.unstaged.length>0?(0,p.jsx)(iw,{variant:"ghost",size:"sm",disabled:i,onClick:()=>l(t.unstaged.map(e=>e.path)),children:"Stage all"}):void 0,children:t.unstaged.map(e=>(0,p.jsx)(h0,{entry:e,action:r?h([e.path],`Stage ${e.path}`):void 0},`u:${e.path}`))}),(0,p.jsx)(h1,{title:"Untracked",count:t.untracked.length,headerAction:r&&t.untracked.length>0?(0,p.jsx)(iw,{variant:"ghost",size:"sm",disabled:i,onClick:()=>l(t.untracked),children:"Stage all"}):void 0,children:t.untracked.map(e=>(0,p.jsx)(h0,{entry:{path:e,status:"unknown"},action:r?h([e],`Stage ${e}`):void 0},`t:${e}`))})]})}),r&&t.staged.length>0&&(0,p.jsxs)("div",{className:"shrink-0 space-y-2 border-t pt-3",children:[(0,p.jsx)(hQ,{value:o,onChange:e=>c(e.target.value),placeholder:"Commit message",rows:2,disabled:i,"aria-label":"Commit message"}),a&&(0,p.jsx)("p",{className:"text-error text-xs",children:a}),(0,p.jsx)(iw,{size:"sm",className:"tabular-nums",onClick:u,disabled:i||0===o.trim().length,children:`Commit ${t.staged.length} file${1===t.staged.length?"":"s"}`})]})]})]})}function h8(){let{rpc:e}=ir(),{data:t,loading:n,refresh:i,setData:r}=ia((0,m.useCallback)(e=>e.call("git:status"),[])),[o,a]=(0,m.useState)(!1),[s,l]=(0,m.useState)(""),[d,u]=(0,m.useState)(null),c=!!t?.canWrite&&e?.connectionMeta.backend==="websocket",h=(0,m.useCallback)(async t=>{if(e&&0!==t.length){a(!0),u(null);try{r(await e.call("git:stage",{paths:t}))}finally{a(!1)}}},[e,r]),f=(0,m.useCallback)(async t=>{if(e&&0!==t.length){a(!0),u(null);try{r(await e.call("git:unstage",{paths:t}))}finally{a(!1)}}},[e,r]),g=(0,m.useCallback)(async()=>{if(e){a(!0),u(null);try{let t=await e.call("git:commit",{message:s});r(t.status),t.ok?l(""):u(t.message)}finally{a(!1)}}},[e,s,r]);return(0,p.jsx)(h2,{data:t,loading:n,busy:o,canWrite:!!c,message:s,note:d,onRefresh:i,onStage:h,onUnstage:f,onCommit:g,onMessageChange:l})}let h5=[{id:"status",label:"Status",icon:"i-ph-tree-view-duotone"},{id:"commits",label:"Commits",icon:"i-ph-git-commit-duotone"},{id:"diff",label:"Diff",icon:"i-ph-git-diff-duotone"}];function h6(e,t,n){return Math.min(Math.max(e,t),n)}function h3(e,t,n,i,r){let[o,a]=(0,m.useState)(t),s=(0,m.useRef)(t);return s.current=o,(0,m.useEffect)(()=>{try{let t=Number(localStorage.getItem(e));Number.isFinite(t)&&t>0&&a(h6(t,n,i))}catch{}},[e,n,i]),{width:o,onPointerDown:(0,m.useCallback)(t=>{t.preventDefault();let o=t.clientX,l=s.current,d=e=>a(h6(l+r*(e.clientX-o),n,i)),u=()=>{window.removeEventListener("pointermove",d),window.removeEventListener("pointerup",u),document.body.style.cursor="",document.body.style.userSelect="";try{localStorage.setItem(e,String(Math.round(s.current)))}catch{}};window.addEventListener("pointermove",d),window.addEventListener("pointerup",u),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[e,n,i,r])}}function h4({onPointerDown:e,label:t}){return(0,p.jsx)("div",{role:"separator","aria-orientation":"vertical","aria-label":t,onPointerDown:e,className:"group bg-[#8882] relative w-px shrink-0 cursor-col-resize",children:(0,p.jsx)("div",{className:"group-hover:bg-primary/40 group-active:bg-primary/60 absolute inset-y-0 -left-1 -right-1 z-10 transition-colors"})})}function h7(){let{rpc:e,error:t}=ir();if(t)return(0,p.jsx)(iv,{variant:"destructive",children:"disconnected"});if(!e)return(0,p.jsx)(iv,{variant:"secondary",children:"connecting…"});let n=e.connectionMeta.backend;return(0,p.jsx)(iv,{variant:"websocket"===n?"success":"secondary",className:"font-mono",children:"websocket"===n?"live":"static"})}function h9(){let{theme:e,toggle:t}=function(){let[e,t]=(0,m.useState)("dark");return(0,m.useEffect)(()=>{t(function(){try{let e=localStorage.getItem(hT);return"light"===e||"dark"===e?e:null}catch{return null}}()??(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"))},[]),(0,m.useEffect)(()=>{document.documentElement.classList.toggle("dark","dark"===e)},[e]),{theme:e,toggle:function(){t(e=>{let t="dark"===e?"light":"dark";try{localStorage.setItem(hT,t)}catch{}return t})}}}();return(0,p.jsx)(ix,{variant:"ghost",size:"sm",onClick:t,"aria-label":"Toggle light/dark theme",children:(0,p.jsx)(ik,{name:"dark"===e?"i-ph-sun-duotone":"i-ph-moon-duotone",className:"size-4"})})}function fe({branch:e,selected:t,onSelect:n}){return(0,p.jsx)("li",{children:(0,p.jsxs)("button",{type:"button",onClick:()=>n(e.name),className:eL("hover:bg-active w-full rounded-md px-2 py-1.5 text-left transition-colors",t&&"bg-active"),children:[(0,p.jsxs)("div",{className:"flex items-center gap-2",children:[(0,p.jsx)(ik,{name:"i-ph-git-branch-duotone",className:eL("size-3.5",e.current?"color-active":"color-muted")}),(0,p.jsx)("span",{className:"truncate font-mono text-xs",title:e.name,children:e.name}),e.current&&(0,p.jsx)(iv,{variant:"success",className:"px-1 py-0 text-[10px]",children:"current"})]}),(e.ahead>0||e.behind>0)&&(0,p.jsxs)("p",{className:"color-muted mt-0.5 text-[11px] tabular-nums",children:[e.ahead>0&&`ahead ${e.ahead}`,e.ahead>0&&e.behind>0&&" · ",e.behind>0&&`behind ${e.behind}`]})]})})}function ft({children:e}){return(0,p.jsx)("div",{className:"flex h-9 shrink-0 items-center justify-between gap-2 border-b px-3",children:e})}function fn(){let[e,t]=(0,m.useState)("commits"),[n,i]=(0,m.useState)(null),[r,o]=(0,m.useState)(null),a=h3("devframe-git:rail-left",264,200,420,1),s=h3("devframe-git:rail-right",360,280,560,-1),{data:l,loading:d,error:u,refresh:c}=ia((0,m.useCallback)(e=>e.call("git:branches"),[]));(0,m.useEffect)(()=>{if(!l?.isRepo)return void i(null);let e=l.branches.map(e=>e.name),t=l.current??l.branches.find(e=>e.current)?.name??null;i(n=>n&&e.includes(n)?n:t??e[0]??null)},[l]);let h=e=>{i(e),o(null),t("commits")},f="commits"===e&&null!==r;return(0,p.jsxs)("div",{className:"bg-base flex h-svh w-full flex-col overflow-hidden",children:[(0,p.jsxs)("header",{className:g("flex items-center gap-2 shrink-0 h-10 px-3 border-b border-base bg-base z-nav",void 0),children:[(0,p.jsxs)("div",{className:g("flex items-center gap-1.5 shrink-0 font-semibold text-sm select-none",void 0),children:[(0,p.jsx)(ik,{name:"i-ph-git-fork-duotone",className:"text-base color-active"}),(0,p.jsx)("span",{children:"Git Dashboard"})]}),(0,p.jsx)("nav",{className:g("inline-flex items-center gap-1 p-1 rounded-lg bg-secondary w-max",void 0),role:"tablist","aria-label":"Git views",children:h5.map(({id:n,label:i,icon:r})=>(0,p.jsxs)("button",{type:"button",role:"tab","aria-selected":e===n,"data-state":e===n?"active":"inactive",className:g("px-3 py-1 rounded-md text-sm color-muted inline-flex gap-1.5 items-center whitespace-nowrap select-none cursor-pointer transition outline-none hover:color-base focus-visible:ring-2 focus-visible:ring-primary-500/40 data-[state=active]:bg-base data-[state=active]:color-base data-[state=active]:shadow-sm",void 0),onClick:()=>t(n),children:[(0,p.jsx)(ik,{name:r,className:"size-4"}),i]},n))}),(0,p.jsx)("div",{className:"flex-1"}),(0,p.jsx)(h7,{}),(0,p.jsx)(h9,{})]}),(0,p.jsxs)("div",{className:"flex min-h-0 flex-1",children:[(0,p.jsxs)("aside",{className:"flex min-h-0 flex-col",style:{width:a.width},children:[(0,p.jsxs)("div",{className:"shrink-0 space-y-3 border-b p-3",children:[(0,p.jsxs)("div",{className:"space-y-1.5",children:[(0,p.jsx)("label",{htmlFor:"branch-select",className:"color-muted text-[11px] font-medium tracking-wide uppercase",children:"Branch"}),(0,p.jsxs)("select",{id:"branch-select",value:n??"",onChange:e=>h(e.target.value),disabled:d||!l?.isRepo||0===l.branches.length,className:"bg-base border-base focus:ring-primary-500/40 h-9 w-full rounded-md border px-2 text-sm outline-none focus:ring-2",children:[!l?.isRepo&&(0,p.jsx)("option",{value:"",children:"Not a repository"}),l?.isRepo&&0===l.branches.length&&(0,p.jsx)("option",{value:"",children:"No branches"}),l?.isRepo&&l.branches.map(e=>(0,p.jsx)("option",{value:e.name,children:e.name},e.name))]})]}),u&&(0,p.jsx)("p",{className:"text-error text-xs",children:u})]}),(0,p.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,p.jsxs)(ft,{children:[(0,p.jsx)("span",{className:"text-xs font-medium",children:"Branches"}),(0,p.jsxs)("div",{className:"flex items-center gap-1",children:[(0,p.jsx)("span",{className:"color-muted text-[11px] tabular-nums",children:l?.isRepo?l.branches.length:""}),(0,p.jsx)(ix,{variant:"ghost",size:"sm",onClick:c,disabled:d,"aria-label":"Refresh branches",children:(0,p.jsx)(ik,{name:"i-ph-arrows-clockwise",className:eL("size-4",d&&"animate-spin")})})]})]}),(0,p.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto p-2",children:[!l&&(0,p.jsx)("div",{className:"space-y-2",children:Array.from({length:6}).map((e,t)=>(0,p.jsx)(ri,{className:"h-9 w-full"},t))}),l&&!l.isRepo&&(0,p.jsx)("p",{className:"color-muted p-2 text-sm",children:"The working directory is not a git repository."}),l?.isRepo&&(0,p.jsx)("ul",{className:"space-y-0.5",children:l.branches.map(e=>(0,p.jsx)(fe,{branch:e,selected:e.name===n,onSelect:h},e.name))})]})]})]}),(0,p.jsx)(h4,{onPointerDown:a.onPointerDown,label:"Resize sidebar"}),(0,p.jsxs)("section",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:["commits"===e&&(0,p.jsx)("div",{className:"flex min-h-0 flex-1 flex-col p-3",children:(0,p.jsx)(hY,{branch:n,selectedHash:r,onSelectCommit:o})}),"status"===e&&(0,p.jsx)("div",{className:"flex min-h-0 flex-1 flex-col p-3",children:(0,p.jsx)(h8,{})}),"diff"===e&&(0,p.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto p-3",children:(0,p.jsx)(hz,{})})]}),f&&r&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(h4,{onPointerDown:s.onPointerDown,label:"Resize commit details"}),(0,p.jsx)("aside",{className:"flex min-h-0 flex-col p-3",style:{width:s.width},children:(0,p.jsx)(h$,{hash:r,onClose:()=>o(null)})})]})]})]})}e.s(["Dashboard",0,function(){return(0,p.jsx)(io,{children:(0,p.jsx)(fn,{})})}],53567)}]);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
a:I[66941,["./_next/static/chunks/3_r710jkdg-l1.js"],"MetadataBoundary"]
|
|
8
8
|
c:I[56872,["./_next/static/chunks/3_r710jkdg-l1.js"],"default",1]
|
|
9
9
|
:HL["./_next/static/chunks/1d96lhco1n2ew.css","style"]
|
|
10
|
-
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/1d96lhco1n2ew.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"./_next/static/chunks/3_r710jkdg-l1.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();"}}]}],["$","body",null,{"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:1: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:1: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:1: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:1: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/1d96lhco1n2ew.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"
|
|
10
|
+
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/1d96lhco1n2ew.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"./_next/static/chunks/3_r710jkdg-l1.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();"}}]}],["$","body",null,{"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:1: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:1: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:1: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:1: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/1d96lhco1n2ew.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"uS34ufSZByHrGXjUZ9qx8"}
|
|
11
11
|
d:[]
|
|
12
12
|
7:"$Wd"
|
|
13
13
|
9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
2:I[66941,["./_next/static/chunks/3_r710jkdg-l1.js"],"ViewportBoundary"]
|
|
3
3
|
3:I[66941,["./_next/static/chunks/3_r710jkdg-l1.js"],"MetadataBoundary"]
|
|
4
4
|
4:"$Sreact.suspense"
|
|
5
|
-
0:{"rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$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":"Git Dashboard"}],["$","meta","1",{"name":"description","content":"A devframe Git integration with a Next.js App Router + shadcn/ui SPA."}]]}]}]}],null]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"
|
|
5
|
+
0:{"rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$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":"Git Dashboard"}],["$","meta","1",{"name":"description","content":"A devframe Git integration with a Next.js App Router + shadcn/ui SPA."}]]}]}]}],null]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"uS34ufSZByHrGXjUZ9qx8"}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
2:I[89788,["./_next/static/chunks/3_r710jkdg-l1.js"],"default"]
|
|
3
3
|
3:I[14405,["./_next/static/chunks/3_r710jkdg-l1.js"],"default"]
|
|
4
4
|
:HL["./_next/static/chunks/1d96lhco1n2ew.css","style"]
|
|
5
|
-
0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/1d96lhco1n2ew.css","precedence":"next"}],["$","script","script-0",{"src":"./_next/static/chunks/3_r710jkdg-l1.js","async":true}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();"}}]}],["$","body",null,{"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":"
|
|
5
|
+
0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/1d96lhco1n2ew.css","precedence":"next"}],["$","script","script-0",{"src":"./_next/static/chunks/3_r710jkdg-l1.js","async":true}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();"}}]}],["$","body",null,{"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":"uS34ufSZByHrGXjUZ9qx8"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[66941,["./_next/static/chunks/3_r710jkdg-l1.js"],"OutletBoundary"]
|
|
3
3
|
3:"$Sreact.suspense"
|
|
4
|
-
0:{"rsc":["$","$1","c",{"children":[[["$","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."}]}]]}]}]],null,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"
|
|
4
|
+
0:{"rsc":["$","$1","c",{"children":[[["$","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."}]}]]}]}]],null,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"uS34ufSZByHrGXjUZ9qx8"}
|
|
5
5
|
4:null
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
2:I[89788,["./_next/static/chunks/3_r710jkdg-l1.js"],"default"]
|
|
3
3
|
3:I[14405,["./_next/static/chunks/3_r710jkdg-l1.js"],"default"]
|
|
4
4
|
4:[]
|
|
5
|
-
0:{"rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"isPartial":false,"staleTime":300,"varyParams":"$W4","buildId":"
|
|
5
|
+
0:{"rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"isPartial":false,"staleTime":300,"varyParams":"$W4","buildId":"uS34ufSZByHrGXjUZ9qx8"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
:HL["./_next/static/chunks/1d96lhco1n2ew.css","style"]
|
|
2
|
-
0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"/_not-found","param":null,"prefetchHints":0,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}}}},"staleTime":300,"buildId":"
|
|
2
|
+
0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"/_not-found","param":null,"prefetchHints":0,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}}}},"staleTime":300,"buildId":"uS34ufSZByHrGXjUZ9qx8"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="./_next/static/chunks/1d96lhco1n2ew.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="./_next/static/chunks/1axuz0ay3inwy.js"/><script src="./_next/static/chunks/16riauq6njyz7.js" async=""></script><script src="./_next/static/chunks/06fk_5mskx76l.js" async=""></script><script src="./_next/static/chunks/turbopack-0o8j879uo2h53.js" async=""></script><script src="./_next/static/chunks/3_r710jkdg-l1.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>Git Dashboard</title><meta name="description" content="A devframe Git integration with a Next.js App Router + shadcn/ui SPA."/><script>(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();</script><script src="./_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><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/1axuz0ay3inwy.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[89788,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\"]\n3:I[14405,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\"]\n4:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"ViewportBoundary\"]\na:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"MetadataBoundary\"]\nc:I[56872,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\",1]\n:HL[\"./_next/static/chunks/1d96lhco1n2ew.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/1d96lhco1n2ew.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"./_next/static/chunks/3_r710jkdg-l1.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'\u0026\u0026t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();\"}}]}],[\"$\",\"body\",null,{\"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:1: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:1: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:1: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:1: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/1d96lhco1n2ew.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="./_next/static/chunks/1d96lhco1n2ew.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="./_next/static/chunks/1axuz0ay3inwy.js"/><script src="./_next/static/chunks/16riauq6njyz7.js" async=""></script><script src="./_next/static/chunks/06fk_5mskx76l.js" async=""></script><script src="./_next/static/chunks/turbopack-0o8j879uo2h53.js" async=""></script><script src="./_next/static/chunks/3_r710jkdg-l1.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>Git Dashboard</title><meta name="description" content="A devframe Git integration with a Next.js App Router + shadcn/ui SPA."/><script>(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();</script><script src="./_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><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/1axuz0ay3inwy.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[89788,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\"]\n3:I[14405,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\"]\n4:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"ViewportBoundary\"]\na:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"MetadataBoundary\"]\nc:I[56872,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\",1]\n:HL[\"./_next/static/chunks/1d96lhco1n2ew.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/1d96lhco1n2ew.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"./_next/static/chunks/3_r710jkdg-l1.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'\u0026\u0026t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();\"}}]}],[\"$\",\"body\",null,{\"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:1: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:1: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:1: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:1: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/1d96lhco1n2ew.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"uS34ufSZByHrGXjUZ9qx8\"}\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,"6:null\nb:[[\"$\",\"title\",\"0\",{\"children\":\"Git Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"A devframe Git integration with a Next.js App Router + shadcn/ui SPA.\"}]]\n"])</script></body></html>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
a:I[66941,["./_next/static/chunks/3_r710jkdg-l1.js"],"MetadataBoundary"]
|
|
8
8
|
c:I[56872,["./_next/static/chunks/3_r710jkdg-l1.js"],"default",1]
|
|
9
9
|
:HL["./_next/static/chunks/1d96lhco1n2ew.css","style"]
|
|
10
|
-
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/1d96lhco1n2ew.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"./_next/static/chunks/3_r710jkdg-l1.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();"}}]}],["$","body",null,{"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:1: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:1: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:1: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:1: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/1d96lhco1n2ew.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"
|
|
10
|
+
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/1d96lhco1n2ew.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"./_next/static/chunks/3_r710jkdg-l1.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();"}}]}],["$","body",null,{"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:1: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:1: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:1: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:1: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/1d96lhco1n2ew.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"uS34ufSZByHrGXjUZ9qx8"}
|
|
11
11
|
d:[]
|
|
12
12
|
7:"$Wd"
|
|
13
13
|
9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
package/dist/client/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="./_next/static/chunks/1d96lhco1n2ew.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="./_next/static/chunks/1axuz0ay3inwy.js"/><script src="./_next/static/chunks/16riauq6njyz7.js" async=""></script><script src="./_next/static/chunks/06fk_5mskx76l.js" async=""></script><script src="./_next/static/chunks/turbopack-0o8j879uo2h53.js" async=""></script><script src="./_next/static/chunks/3_r710jkdg-l1.js" async=""></script><script src="./_next/static/chunks/1-i03okz33ydm.js" async=""></script><script src="./_next/static/chunks/1ve9y75k_w2tp.js" async=""></script><title>Git Dashboard</title><meta name="description" content="A devframe Git integration with a Next.js App Router + shadcn/ui SPA."/><script>(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();</script><script src="./_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div class="bg-base flex h-svh w-full flex-col overflow-hidden"><header class="flex items-center gap-2 shrink-0 h-10 px-3 border-b border-base bg-base z-nav"><div class="flex items-center gap-1.5 shrink-0 font-semibold text-sm select-none"><span aria-hidden="true" class="i-ph-git-fork-duotone inline-block shrink-0 text-base color-active"></span><span>Git Dashboard</span></div><nav class="inline-flex items-center gap-1 p-1 rounded-lg bg-secondary w-max" role="tablist" aria-label="Git views"><button type="button" role="tab" aria-selected="false" data-state="inactive" class="px-3 py-1 rounded-md text-sm color-muted inline-flex gap-1.5 items-center whitespace-nowrap select-none cursor-pointer transition outline-none hover:color-base focus-visible:ring-2 focus-visible:ring-primary-500/40 data-[state=active]:bg-base data-[state=active]:color-base data-[state=active]:shadow-sm"><span aria-hidden="true" class="i-ph-tree-view-duotone inline-block shrink-0 size-4"></span>Status</button><button type="button" role="tab" aria-selected="true" data-state="active" class="px-3 py-1 rounded-md text-sm color-muted inline-flex gap-1.5 items-center whitespace-nowrap select-none cursor-pointer transition outline-none hover:color-base focus-visible:ring-2 focus-visible:ring-primary-500/40 data-[state=active]:bg-base data-[state=active]:color-base data-[state=active]:shadow-sm"><span aria-hidden="true" class="i-ph-git-commit-duotone inline-block shrink-0 size-4"></span>Commits</button><button type="button" role="tab" aria-selected="false" data-state="inactive" class="px-3 py-1 rounded-md text-sm color-muted inline-flex gap-1.5 items-center whitespace-nowrap select-none cursor-pointer transition outline-none hover:color-base focus-visible:ring-2 focus-visible:ring-primary-500/40 data-[state=active]:bg-base data-[state=active]:color-base data-[state=active]:shadow-sm"><span aria-hidden="true" class="i-ph-git-diff-duotone inline-block shrink-0 size-4"></span>Diff</button></nav><div class="flex-1"></div><span data-slot="badge" class="badge-muted">connecting…</span><button data-slot="icon-button" class="btn-icon w-7! h-7! text-sm" aria-label="Toggle light/dark theme"><span aria-hidden="true" class="i-ph-sun-duotone inline-block shrink-0 size-4"></span></button></header><div class="flex min-h-0 flex-1"><aside class="flex min-h-0 flex-col" style="width:264px"><div class="shrink-0 space-y-3 border-b p-3"><div class="space-y-1.5"><label for="branch-select" class="color-muted text-[11px] font-medium tracking-wide uppercase">Branch</label><select id="branch-select" disabled="" class="bg-base border-base focus:ring-primary-500/40 h-9 w-full rounded-md border px-2 text-sm outline-none focus:ring-2"><option value="" selected="">Not a repository</option></select></div></div><div class="flex min-h-0 flex-1 flex-col"><div class="flex h-9 shrink-0 items-center justify-between gap-2 border-b px-3"><span class="text-xs font-medium">Branches</span><div class="flex items-center gap-1"><span class="color-muted text-[11px] tabular-nums"></span><button data-slot="icon-button" class="btn-icon w-7! h-7! text-sm" aria-label="Refresh branches"><span aria-hidden="true" class="i-ph-arrows-clockwise inline-block shrink-0 size-4"></span></button></div></div><div class="min-h-0 flex-1 overflow-y-auto p-2"><div class="space-y-2"><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-9 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-9 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-9 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-9 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-9 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-9 w-full"></div></div></div></div></aside><div role="separator" aria-orientation="vertical" aria-label="Resize sidebar" class="group bg-[#8882] relative w-px shrink-0 cursor-col-resize"><div class="group-hover:bg-primary/40 group-active:bg-primary/60 absolute inset-y-0 -left-1 -right-1 z-10 transition-colors"></div></div><section class="flex min-h-0 min-w-0 flex-1 flex-col"><div class="flex min-h-0 flex-1 flex-col p-3"><div class="flex h-full min-h-0 flex-col gap-3"><div class="flex items-center justify-between"><span class="color-muted text-xs tabular-nums"> </span><button data-slot="icon-button" class="btn-icon w-7! h-7! text-sm" aria-label="Refresh log"><span aria-hidden="true" class="i-ph-arrows-clockwise inline-block shrink-0 size-4"></span></button></div><div class="space-y-2"><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-10 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-10 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-10 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-10 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-10 w-full"></div></div></div></div></section></div></div><!--$--><!--/$--><script src="./_next/static/chunks/1axuz0ay3inwy.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[89788,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\"]\n3:I[14405,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\"]\n4:I[53567,[\"./_next/static/chunks/3_r710jkdg-l1.js\",\"./_next/static/chunks/1-i03okz33ydm.js\",\"./_next/static/chunks/1ve9y75k_w2tp.js\"],\"Dashboard\",1]\n5:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n8:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"ViewportBoundary\"]\na:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"MetadataBoundary\"]\nc:I[56872,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\",1]\n:HL[\"./_next/static/chunks/1d96lhco1n2ew.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"./_next/static/chunks/1d96lhco1n2ew.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"./_next/static/chunks/3_r710jkdg-l1.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'\u0026\u0026t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();\"}}]}],[\"$\",\"body\",null,{\"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,{}],[[\"$\",\"script\",\"script-0\",{\"src\":\"./_next/static/chunks/1-i03okz33ydm.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"./_next/static/chunks/1ve9y75k_w2tp.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,null]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"./_next/static/chunks/1d96lhco1n2ew.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"a8E2_Z1GAb00WAmxuTvEO\"}\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,"7:null\nb:[[\"$\",\"title\",\"0\",{\"children\":\"Git Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"A devframe Git integration with a Next.js App Router + shadcn/ui SPA.\"}]]\n"])</script></body></html>
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="./_next/static/chunks/1d96lhco1n2ew.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="./_next/static/chunks/1axuz0ay3inwy.js"/><script src="./_next/static/chunks/16riauq6njyz7.js" async=""></script><script src="./_next/static/chunks/06fk_5mskx76l.js" async=""></script><script src="./_next/static/chunks/turbopack-0o8j879uo2h53.js" async=""></script><script src="./_next/static/chunks/3_r710jkdg-l1.js" async=""></script><script src="./_next/static/chunks/1-i03okz33ydm.js" async=""></script><script src="./_next/static/chunks/2g7tuxbfeqdp6.js" async=""></script><title>Git Dashboard</title><meta name="description" content="A devframe Git integration with a Next.js App Router + shadcn/ui SPA."/><script>(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();</script><script src="./_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div class="bg-base flex h-svh w-full flex-col overflow-hidden"><header class="flex items-center gap-2 shrink-0 h-10 px-3 border-b border-base bg-base z-nav"><div class="flex items-center gap-1.5 shrink-0 font-semibold text-sm select-none"><span aria-hidden="true" class="i-ph-git-fork-duotone inline-block shrink-0 text-base color-active"></span><span>Git Dashboard</span></div><nav class="inline-flex items-center gap-1 p-1 rounded-lg bg-secondary w-max" role="tablist" aria-label="Git views"><button type="button" role="tab" aria-selected="false" data-state="inactive" class="px-3 py-1 rounded-md text-sm color-muted inline-flex gap-1.5 items-center whitespace-nowrap select-none cursor-pointer transition outline-none hover:color-base focus-visible:ring-2 focus-visible:ring-primary-500/40 data-[state=active]:bg-base data-[state=active]:color-base data-[state=active]:shadow-sm"><span aria-hidden="true" class="i-ph-tree-view-duotone inline-block shrink-0 size-4"></span>Status</button><button type="button" role="tab" aria-selected="true" data-state="active" class="px-3 py-1 rounded-md text-sm color-muted inline-flex gap-1.5 items-center whitespace-nowrap select-none cursor-pointer transition outline-none hover:color-base focus-visible:ring-2 focus-visible:ring-primary-500/40 data-[state=active]:bg-base data-[state=active]:color-base data-[state=active]:shadow-sm"><span aria-hidden="true" class="i-ph-git-commit-duotone inline-block shrink-0 size-4"></span>Commits</button><button type="button" role="tab" aria-selected="false" data-state="inactive" class="px-3 py-1 rounded-md text-sm color-muted inline-flex gap-1.5 items-center whitespace-nowrap select-none cursor-pointer transition outline-none hover:color-base focus-visible:ring-2 focus-visible:ring-primary-500/40 data-[state=active]:bg-base data-[state=active]:color-base data-[state=active]:shadow-sm"><span aria-hidden="true" class="i-ph-git-diff-duotone inline-block shrink-0 size-4"></span>Diff</button></nav><div class="flex-1"></div><span data-slot="badge" class="badge-muted">connecting…</span><button data-slot="icon-button" class="btn-icon w-7! h-7! text-sm" aria-label="Toggle light/dark theme"><span aria-hidden="true" class="i-ph-sun-duotone inline-block shrink-0 size-4"></span></button></header><div class="flex min-h-0 flex-1"><aside class="flex min-h-0 flex-col" style="width:264px"><div class="shrink-0 space-y-3 border-b p-3"><div class="space-y-1.5"><label for="branch-select" class="color-muted text-[11px] font-medium tracking-wide uppercase">Branch</label><select id="branch-select" disabled="" class="bg-base border-base focus:ring-primary-500/40 h-9 w-full rounded-md border px-2 text-sm outline-none focus:ring-2"><option value="" selected="">Not a repository</option></select></div></div><div class="flex min-h-0 flex-1 flex-col"><div class="flex h-9 shrink-0 items-center justify-between gap-2 border-b px-3"><span class="text-xs font-medium">Branches</span><div class="flex items-center gap-1"><span class="color-muted text-[11px] tabular-nums"></span><button data-slot="icon-button" class="btn-icon w-7! h-7! text-sm" aria-label="Refresh branches"><span aria-hidden="true" class="i-ph-arrows-clockwise inline-block shrink-0 size-4"></span></button></div></div><div class="min-h-0 flex-1 overflow-y-auto p-2"><div class="space-y-2"><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-9 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-9 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-9 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-9 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-9 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-9 w-full"></div></div></div></div></aside><div role="separator" aria-orientation="vertical" aria-label="Resize sidebar" class="group bg-[#8882] relative w-px shrink-0 cursor-col-resize"><div class="group-hover:bg-primary/40 group-active:bg-primary/60 absolute inset-y-0 -left-1 -right-1 z-10 transition-colors"></div></div><section class="flex min-h-0 min-w-0 flex-1 flex-col"><div class="flex min-h-0 flex-1 flex-col p-3"><div class="flex h-full min-h-0 flex-col gap-3"><div class="flex items-center justify-between"><span class="color-muted text-xs tabular-nums"> </span><button data-slot="icon-button" class="btn-icon w-7! h-7! text-sm" aria-label="Refresh log"><span aria-hidden="true" class="i-ph-arrows-clockwise inline-block shrink-0 size-4"></span></button></div><div class="space-y-2"><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-10 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-10 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-10 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-10 w-full"></div><div data-slot="skeleton" class="bg-active animate-pulse rounded-md h-10 w-full"></div></div></div></div></section></div></div><!--$--><!--/$--><script src="./_next/static/chunks/1axuz0ay3inwy.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[89788,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\"]\n3:I[14405,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\"]\n4:I[53567,[\"./_next/static/chunks/3_r710jkdg-l1.js\",\"./_next/static/chunks/1-i03okz33ydm.js\",\"./_next/static/chunks/2g7tuxbfeqdp6.js\"],\"Dashboard\",1]\n5:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n8:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"ViewportBoundary\"]\na:I[66941,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"MetadataBoundary\"]\nc:I[56872,[\"./_next/static/chunks/3_r710jkdg-l1.js\"],\"default\",1]\n:HL[\"./_next/static/chunks/1d96lhco1n2ew.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"./_next/static/chunks/1d96lhco1n2ew.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"./_next/static/chunks/3_r710jkdg-l1.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'\u0026\u0026t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();\"}}]}],[\"$\",\"body\",null,{\"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,{}],[[\"$\",\"script\",\"script-0\",{\"src\":\"./_next/static/chunks/1-i03okz33ydm.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"./_next/static/chunks/2g7tuxbfeqdp6.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,null]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"./_next/static/chunks/1d96lhco1n2ew.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"uS34ufSZByHrGXjUZ9qx8\"}\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,"7:null\nb:[[\"$\",\"title\",\"0\",{\"children\":\"Git Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"A devframe Git integration with a Next.js App Router + shadcn/ui SPA.\"}]]\n"])</script></body></html>
|
package/dist/client/index.txt
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[89788,["./_next/static/chunks/3_r710jkdg-l1.js"],"default"]
|
|
3
3
|
3:I[14405,["./_next/static/chunks/3_r710jkdg-l1.js"],"default"]
|
|
4
|
-
4:I[53567,["./_next/static/chunks/3_r710jkdg-l1.js","./_next/static/chunks/1-i03okz33ydm.js","./_next/static/chunks/
|
|
4
|
+
4:I[53567,["./_next/static/chunks/3_r710jkdg-l1.js","./_next/static/chunks/1-i03okz33ydm.js","./_next/static/chunks/2g7tuxbfeqdp6.js"],"Dashboard",1]
|
|
5
5
|
5:I[66941,["./_next/static/chunks/3_r710jkdg-l1.js"],"OutletBoundary"]
|
|
6
6
|
6:"$Sreact.suspense"
|
|
7
7
|
8:I[66941,["./_next/static/chunks/3_r710jkdg-l1.js"],"ViewportBoundary"]
|
|
8
8
|
a:I[66941,["./_next/static/chunks/3_r710jkdg-l1.js"],"MetadataBoundary"]
|
|
9
9
|
c:I[56872,["./_next/static/chunks/3_r710jkdg-l1.js"],"default",1]
|
|
10
10
|
:HL["./_next/static/chunks/1d96lhco1n2ew.css","style"]
|
|
11
|
-
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/1d96lhco1n2ew.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"./_next/static/chunks/3_r710jkdg-l1.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();"}}]}],["$","body",null,{"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,{}],[["$","script","script-0",{"src":"./_next/static/chunks/1-i03okz33ydm.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"./_next/static/chunks/
|
|
11
|
+
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/1d96lhco1n2ew.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"./_next/static/chunks/3_r710jkdg-l1.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var k='devframe-git-theme';var t=localStorage.getItem(k);if(t!=='light'&&t!=='dark'){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark')document.documentElement.classList.add('dark');}catch(e){document.documentElement.classList.add('dark');}})();"}}]}],["$","body",null,{"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,{}],[["$","script","script-0",{"src":"./_next/static/chunks/1-i03okz33ydm.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"./_next/static/chunks/2g7tuxbfeqdp6.js","async":true,"nonce":"$undefined"}]],["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],null]}],false]],"m":"$undefined","G":["$c",[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/1d96lhco1n2ew.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"uS34ufSZByHrGXjUZ9qx8"}
|
|
12
12
|
9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
13
13
|
7:null
|
|
14
14
|
b:[["$","title","0",{"children":"Git Dashboard"}],["$","meta","1",{"name":"description","content":"A devframe Git integration with a Next.js App Router + shadcn/ui SPA."}]]
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as src_default, t as createGitDevframe } from "./src-
|
|
1
|
+
import { n as src_default, t as createGitDevframe } from "./src-Ad1cLoVH.mjs";
|
|
2
2
|
export { createGitDevframe, src_default as default };
|
|
@@ -7,7 +7,7 @@ import { promisify } from "node:util";
|
|
|
7
7
|
import { defineRpcFunction } from "devframe";
|
|
8
8
|
//#region package.json
|
|
9
9
|
var name = "@devframes/plugin-git";
|
|
10
|
-
var version = "0.6.0
|
|
10
|
+
var version = "0.6.0";
|
|
11
11
|
var description = "Git integration for devframe — a read-only repository dashboard (status, log, branches, diff) with a Next.js + shadcn/ui SPA over type-safe RPC.";
|
|
12
12
|
var homepage = "https://github.com/devframes/devframe#readme";
|
|
13
13
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/plugin-git",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.0
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"description": "Git integration for devframe — a read-only repository dashboard (status, log, branches, diff) with a Next.js + shadcn/ui SPA over type-safe RPC.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"pathe": "^2.0.3",
|
|
37
|
-
"devframe": "0.6.0
|
|
37
|
+
"devframe": "0.6.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@antfu/design": "^0.2.1",
|
/package/dist/client/_next/static/{a8E2_Z1GAb00WAmxuTvEO → uS34ufSZByHrGXjUZ9qx8}/_buildManifest.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/client/_next/static/{a8E2_Z1GAb00WAmxuTvEO → uS34ufSZByHrGXjUZ9qx8}/_ssgManifest.js
RENAMED
|
File without changes
|