conductor-oss 0.26.7 → 0.26.9
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/package.json +5 -5
- package/web/.next/standalone/packages/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/packages/web/.next/app-path-routes-manifest.json +5 -5
- package/web/.next/standalone/packages/web/.next/build-manifest.json +3 -3
- package/web/.next/standalone/packages/web/.next/prerender-manifest.json +3 -3
- package/web/.next/standalone/packages/web/.next/react-loadable-manifest.json +11 -11
- package/web/.next/standalone/packages/web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.html +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_not-found/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/bridge/connect/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/bridge/connect/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/bridge/connect/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/page.js +2 -2
- package/web/.next/standalone/packages/web/.next/server/app/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/settings/bridge/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/settings/bridge/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/settings/bridge/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/hosted/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/hosted/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/hosted/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/sso-callback/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/sso-callback/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/sso-callback/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/unlock/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/unlock/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/unlock/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app-paths-manifest.json +5 -5
- package/web/.next/standalone/packages/web/.next/server/chunks/3855.js +1 -0
- package/web/.next/standalone/packages/web/.next/server/chunks/5164.js +3 -3
- package/web/.next/standalone/packages/web/.next/server/chunks/6221.js +1 -0
- package/web/.next/standalone/packages/web/.next/server/chunks/6489.js +1 -0
- package/web/.next/standalone/packages/web/.next/server/chunks/69.js +1 -0
- package/web/.next/standalone/packages/web/.next/server/chunks/6956.js +2 -0
- package/web/.next/standalone/packages/web/.next/server/chunks/7164.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/9455.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/middleware-build-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/pages/500.html +1 -1
- package/web/.next/standalone/packages/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/server-reference-manifest.json +1 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/1265.20ac5c99aa952ab3.js +1 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/1874.4cbce11be5d46d0e.js +1 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/2148.352a0da16e29c3bb.js +1 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/{2228.bf1d2dd63a2ba8de.js → 2228.810adbeee03b4a23.js} +1 -1
- package/web/.next/{static/chunks/2452-dbb0e1dbd4032cd8.js → standalone/packages/web/.next/static/chunks/2452-c6e8306f50b6f426.js} +1 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/4443.d662241f66e1d060.js +1 -0
- package/web/.next/{static/chunks/4535.665fc994dd695727.js → standalone/packages/web/.next/static/chunks/4535.bd6377f18f4a51d5.js} +1 -1
- package/web/.next/{static/chunks/7220-923dce07cd543b45.js → standalone/packages/web/.next/static/chunks/7220-d63d57f871f839bc.js} +1 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/{9986.b060fb271bbeb200.js → 7605.278fa9614a1c4efc.js} +1 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/9702-104645628acfc1ca.js +2 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/app/bridge/connect/page-46a3ad20e3c8e755.js +1 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/app/layout-57d33c4c3707824b.js +1 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/app/page-369d1dec5d800a96.js +1 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/app/sessions/[id]/{page-714da5ecea6df958.js → page-29a31a33d7781f11.js} +1 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/webpack-d34bcf346c9c3de3.js +1 -0
- package/web/.next/standalone/packages/web/.next/static/css/2491f1d58201cc2c.css +3 -0
- package/web/.next/static/chunks/1265.20ac5c99aa952ab3.js +1 -0
- package/web/.next/static/chunks/1874.4cbce11be5d46d0e.js +1 -0
- package/web/.next/static/chunks/2148.352a0da16e29c3bb.js +1 -0
- package/web/.next/static/chunks/{2228.bf1d2dd63a2ba8de.js → 2228.810adbeee03b4a23.js} +1 -1
- package/web/.next/{standalone/packages/web/.next/static/chunks/2452-dbb0e1dbd4032cd8.js → static/chunks/2452-c6e8306f50b6f426.js} +1 -1
- package/web/.next/static/chunks/4443.d662241f66e1d060.js +1 -0
- package/web/.next/{standalone/packages/web/.next/static/chunks/4535.665fc994dd695727.js → static/chunks/4535.bd6377f18f4a51d5.js} +1 -1
- package/web/.next/{standalone/packages/web/.next/static/chunks/7220-923dce07cd543b45.js → static/chunks/7220-d63d57f871f839bc.js} +1 -1
- package/web/.next/static/chunks/{9986.b060fb271bbeb200.js → 7605.278fa9614a1c4efc.js} +1 -1
- package/web/.next/static/chunks/9702-104645628acfc1ca.js +2 -0
- package/web/.next/static/chunks/app/bridge/connect/page-46a3ad20e3c8e755.js +1 -0
- package/web/.next/static/chunks/app/layout-57d33c4c3707824b.js +1 -0
- package/web/.next/static/chunks/app/page-369d1dec5d800a96.js +1 -0
- package/web/.next/static/chunks/app/sessions/[id]/{page-714da5ecea6df958.js → page-29a31a33d7781f11.js} +1 -1
- package/web/.next/static/chunks/webpack-d34bcf346c9c3de3.js +1 -0
- package/web/.next/static/css/2491f1d58201cc2c.css +3 -0
- package/web/.next/standalone/packages/web/.next/server/chunks/2292.js +0 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/3156.js +0 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/5295.js +0 -2
- package/web/.next/standalone/packages/web/.next/server/chunks/5744.js +0 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/8.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/1665-1eff15a246cfce80.js +0 -2
- package/web/.next/standalone/packages/web/.next/static/chunks/3023.439ce27f91df1b5a.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/370.cf0044df047e274d.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/4443.53d21f68649bb0e6.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/7605.080bde72544b6331.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/app/bridge/connect/page-3d4e68f832274494.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/app/layout-6a755760a1d90bd8.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/app/page-03f40f7533deab29.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/webpack-56c6a44c66d39a63.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/css/ff1593e9d59f639a.css +0 -3
- package/web/.next/static/chunks/1665-1eff15a246cfce80.js +0 -2
- package/web/.next/static/chunks/3023.439ce27f91df1b5a.js +0 -1
- package/web/.next/static/chunks/370.cf0044df047e274d.js +0 -1
- package/web/.next/static/chunks/4443.53d21f68649bb0e6.js +0 -1
- package/web/.next/static/chunks/7605.080bde72544b6331.js +0 -1
- package/web/.next/static/chunks/app/bridge/connect/page-3d4e68f832274494.js +0 -1
- package/web/.next/static/chunks/app/layout-6a755760a1d90bd8.js +0 -1
- package/web/.next/static/chunks/app/page-03f40f7533deab29.js +0 -1
- package/web/.next/static/chunks/webpack-56c6a44c66d39a63.js +0 -1
- package/web/.next/static/css/ff1593e9d59f639a.css +0 -3
- /package/web/.next/standalone/packages/web/.next/static/{kCxrnGINOuGYK0ANNzpEj → oa6NzdUf5LtEvDx8sDVkE}/_buildManifest.js +0 -0
- /package/web/.next/standalone/packages/web/.next/static/{kCxrnGINOuGYK0ANNzpEj → oa6NzdUf5LtEvDx8sDVkE}/_ssgManifest.js +0 -0
- /package/web/.next/static/{kCxrnGINOuGYK0ANNzpEj → oa6NzdUf5LtEvDx8sDVkE}/_buildManifest.js +0 -0
- /package/web/.next/static/{kCxrnGINOuGYK0ANNzpEj → oa6NzdUf5LtEvDx8sDVkE}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2452],{40443:(e,t,s)=>{s.d(t,{Wu:()=>r,Zp:()=>i,aR:()=>l});var a=s(54568),n=s(46916);let i=(0,s(7620).forwardRef)(({className:e,...t},s)=>(0,a.jsx)("div",{ref:s,className:(0,n.cn)("surface-card rounded-[var(--radius-md)] border",e),...t}));function l({className:e,...t}){return(0,a.jsx)("div",{className:(0,n.cn)("flex items-center gap-2 border-b border-[var(--vk-border)] px-3 py-2",e),...t})}function r({className:e,...t}){return(0,a.jsx)("div",{className:(0,n.cn)("px-3 py-2",e),...t})}i.displayName="Card"},42452:(e,t,s)=>{s.r(t),s.d(t,{SessionDetail:()=>ed});var a=s(54568),n=s(42925),i=s(7620),l=s(79748),r=s(7920),c=s(69863),o=s(97380),d=s(46548),x=s(90466),u=s(35131),m=s(46916);let h=u.bL,f=(0,i.forwardRef)(({className:e,...t},s)=>(0,a.jsx)(u.B8,{ref:s,className:(0,m.cn)("inline-flex max-w-full items-center gap-0.5 overflow-x-auto rounded-[3px] border border-[var(--vk-border)] bg-[var(--vk-bg-panel)] p-0.5 whitespace-nowrap touch-pan-x [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",e),...t}));f.displayName="TabsList";let p=(0,i.forwardRef)(({className:e,...t},s)=>(0,a.jsx)(u.l9,{ref:s,className:(0,m.cn)("inline-flex min-h-[34px] shrink-0 items-center gap-1.5 rounded-[3px] px-2.5 py-1.5 text-[12px] text-[var(--vk-text-muted)]","data-[state=active]:bg-[var(--vk-bg-active)] data-[state=active]:text-[var(--vk-text-normal)]","hover:text-[var(--vk-text-normal)]","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--vk-orange)]",e),...t}));p.displayName="TabsTrigger";let v=(0,i.forwardRef)(({className:e,...t},s)=>(0,a.jsx)(u.UC,{ref:s,className:(0,m.cn)("focus-visible:outline-none",e),...t}));v.displayName="TabsContent";var g=s(40443),b=s(76081),j=s(35821),w=s(34309),k=s(59706),N=s(34041),y=s(76265),S=s(45894),C=s(26463),$=s(96249),A=s(58299),I=s(56050),E=s(23555),_=s(60527),F=s(58588),M=s(99844),R=s(5881),L=s(90124);let D=(0,n.default)(()=>s.e(4535).then(s.bind(s,74535)).then(e=>e.SessionDiff),{loadableGenerated:{webpack:()=>[74535]},loading:()=>(0,a.jsx)("div",{className:"flex h-32 items-center justify-center text-[12px] text-[var(--vk-text-muted)]",children:"Loading changes…"}),ssr:!1});function q({text:e}){let[t,s]=(0,i.useState)(!1);async function n(){try{await navigator.clipboard.writeText(e),s(!0),window.setTimeout(()=>s(!1),1400)}catch{}}return(0,a.jsxs)("button",{type:"button",onClick:()=>void n(),className:"inline-flex max-w-[180px] items-center gap-1 font-mono text-[11px] text-[var(--vk-text-muted)] transition-colors hover:text-[var(--vk-text-normal)]",children:[(0,a.jsx)("span",{className:"truncate",children:e}),t?(0,a.jsx)(w.A,{className:"h-3 w-3 shrink-0 text-emerald-400"}):(0,a.jsx)(k.A,{className:"h-3 w-3 shrink-0 opacity-50"})]})}function P(e,t){let s=e.metadata[t];return"string"==typeof s&&s.trim().length>0?s:void 0}function T(e){if(!e)return null;let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:null}function U({node:e,depth:t,selectedPath:s,expandedDirs:n,onToggleDir:i,onSelectFile:l}){let r=n.has(e.path),c=e.path===s,o=8+16*t;return e.isDir?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{type:"button",onClick:()=>i(e.path),className:"flex w-full items-center gap-1.5 py-1.5 text-left text-[12px] text-[var(--vk-text-muted)] hover:bg-white/4 active:bg-white/6",style:{paddingLeft:o},children:[r?(0,a.jsx)(N.A,{className:"h-3 w-3 shrink-0 opacity-50"}):(0,a.jsx)(y.A,{className:"h-3 w-3 shrink-0 opacity-50"}),r?(0,a.jsx)(S.A,{className:"h-3.5 w-3.5 shrink-0 text-amber-400/70"}):(0,a.jsx)(C.A,{className:"h-3.5 w-3.5 shrink-0 text-amber-400/70"}),(0,a.jsx)("span",{className:"truncate",children:e.name})]}),r?e.children.map(e=>(0,a.jsx)(U,{node:e,depth:t+1,selectedPath:s,expandedDirs:n,onToggleDir:i,onSelectFile:l},e.path)):null]}):(0,a.jsxs)("button",{type:"button",onClick:()=>l(e.path),className:`flex w-full items-center gap-1.5 py-1.5 pr-2 text-left text-[12px] transition-colors ${c?"bg-blue-500/10 text-[var(--vk-text-strong)]":"text-[var(--vk-text-normal)] hover:bg-white/4"}`,style:{paddingLeft:o+16},children:[(0,a.jsx)($.A,{className:"h-3.5 w-3.5 shrink-0 text-[var(--vk-text-muted)]"}),(0,a.jsx)("span",{className:"truncate",children:e.name})]})}let O={js:"javascript",jsx:"jsx",ts:"typescript",tsx:"tsx",mjs:"javascript",cjs:"javascript",mts:"typescript",cts:"typescript",html:"html",htm:"html",css:"css",scss:"scss",sass:"sass",less:"less",vue:"vue",svelte:"svelte",astro:"astro",json:"json",jsonc:"jsonc",json5:"json5",yaml:"yaml",yml:"yaml",toml:"toml",ini:"ini",xml:"xml",svg:"xml",plist:"xml",csv:"csv",tsv:"csv",md:"markdown",mdx:"mdx",tex:"latex",rst:"rst",rs:"rust",go:"go",c:"c",h:"c",cpp:"cpp",cc:"cpp",cxx:"cpp",hpp:"cpp",hh:"cpp",cs:"csharp",java:"java",kt:"kotlin",kts:"kotlin",scala:"scala",swift:"swift",m:"objective-c",mm:"objective-cpp",zig:"zig",nim:"nim",v:"v",d:"d",py:"python",pyi:"python",rb:"ruby",php:"php",pl:"perl",pm:"perl",lua:"lua",r:"r",R:"r",jl:"julia",ex:"elixir",exs:"elixir",erl:"erlang",hrl:"erlang",hs:"haskell",lhs:"haskell",clj:"clojure",cljs:"clojure",ml:"ocaml",mli:"ocaml",fs:"fsharp",fsx:"fsharp",sh:"bash",bash:"bash",zsh:"bash",fish:"fish",ps1:"powershell",psm1:"powershell",bat:"bat",cmd:"bat",dockerfile:"dockerfile",containerfile:"dockerfile",tf:"hcl",hcl:"hcl",nix:"nix",sql:"sql",graphql:"graphql",gql:"graphql",prisma:"prisma",proto:"protobuf",thrift:"thrift",makefile:"makefile",cmake:"cmake",asm:"asm",s:"asm",diff:"diff",patch:"diff",log:"log",txt:"plaintext",env:"dotenv",lock:"json"},z={makefile:"makefile",Makefile:"makefile",dockerfile:"dockerfile",Dockerfile:"dockerfile",containerfile:"dockerfile",Containerfile:"dockerfile",gemfile:"ruby",Gemfile:"ruby",rakefile:"ruby",Rakefile:"ruby",cmakelists:"cmake",CMakeLists:"cmake",".gitignore":"gitignore",".dockerignore":"gitignore",".editorconfig":"ini",".prettierrc":"json",".eslintrc":"json",".babelrc":"json",".env":"dotenv",".env.local":"dotenv",".env.production":"dotenv","tsconfig.json":"jsonc","jsconfig.json":"jsonc"},W=new Set(["png","jpg","jpeg","gif","webp","svg","ico","bmp","avif"]);function B(e){let t=e.split("/").pop()??"",s=t.lastIndexOf(".");return s>=0?t.slice(s+1).toLowerCase():""}function Z({code:e,lang:t}){let[n,l]=(0,i.useState)(null),r=(0,i.useRef)(e),c=(0,i.useRef)(t);if((0,i.useEffect)(()=>{r.current=e,c.current=t;let a=!1;return(async()=>{try{let{codeToHtml:n}=await s.e(2228).then(s.bind(s,42228));if(a)return;let i=await n(e,{lang:t,theme:"github-dark-default"});a||r.current!==e||c.current!==t||l(i)}catch{if(a)return;try{let{codeToHtml:t}=await s.e(2228).then(s.bind(s,42228));if(a)return;let n=await t(e,{lang:"plaintext",theme:"github-dark-default"});a||l(n)}catch{a||l(null)}}})(),()=>{a=!0}},[e,t]),!n){let t=e.split("\n"),s=String(t.length).length;return(0,a.jsx)("div",{className:"inline-block min-w-full align-top",children:(0,a.jsx)("table",{className:"min-w-full border-collapse font-mono text-[11px] leading-5",children:(0,a.jsx)("tbody",{children:t.map((e,t)=>(0,a.jsxs)("tr",{className:"hover:bg-white/3",children:[(0,a.jsx)("td",{className:"select-none whitespace-nowrap border-r border-white/6 px-2 text-right text-[var(--vk-text-muted)] opacity-40",style:{minWidth:`${s+2}ch`},children:t+1}),(0,a.jsx)("td",{className:"whitespace-pre px-3 text-[var(--vk-text-normal)]",children:e||"\xa0"})]},t))})})})}return(0,a.jsx)("div",{className:"shiki-viewer inline-block min-w-full align-top [&_.shiki]:!bg-transparent [&_.shiki]:p-0 [&_code]:text-[11px] [&_code]:leading-5 [&_pre]:!bg-transparent [&_pre]:!p-0",dangerouslySetInnerHTML:{__html:n}})}function G({sessionId:e,filePath:t}){let[s,n]=(0,i.useState)(null),[l,r]=(0,i.useState)(!0),[c,o]=(0,i.useState)(null),[d,x]=(0,i.useState)(!1),[u,m]=(0,i.useState)(!1),[h,f]=(0,i.useState)(0);if((0,i.useEffect)(()=>{let s=!1;r(!0),o(null),n(null),x(!1),m(!1),f(0);let a=new URLSearchParams({path:t});return fetch(`/api/sessions/${encodeURIComponent(e)}/files?${a.toString()}`,{cache:"no-store"}).then(async e=>{if(!e.ok)throw Error(`Failed to load file (${e.status})`);return e.json()}).then(e=>{s||(e.binary?x(!0):n("string"==typeof e.content?e.content:""),m(!!e.truncated),f("number"==typeof e.size?e.size:0))}).catch(e=>{s||o(e instanceof Error?e.message:"Failed to load file")}).finally(()=>{s||r(!1)}),()=>{s=!0}},[e,t]),l)return(0,a.jsxs)("div",{className:"flex h-full items-center justify-center gap-2 text-[12px] text-[var(--vk-text-muted)]",children:[(0,a.jsx)(A.A,{className:"h-4 w-4 animate-spin"}),"Loading…"]});if(c)return(0,a.jsx)("div",{className:"flex h-full items-center justify-center px-4 text-center text-[12px] text-red-400",children:c});if(d&&W.has(B(t))){let s=new URLSearchParams({path:t,raw:"1"}),n=`/api/sessions/${encodeURIComponent(e)}/files?${s.toString()}`;return(0,a.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-3 p-4",children:[(0,a.jsx)("img",{src:n,alt:t,className:"max-h-[60vh] max-w-full rounded-md object-contain"}),(0,a.jsxs)("span",{className:"text-[11px] text-[var(--vk-text-muted)]",children:[t.split("/").pop(),h>0?` \xb7 ${J(h)}`:""]})]})}if(d){let e=B(t);return(0,a.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 px-4 text-center",children:[(0,a.jsx)("div",{className:"rounded-lg bg-white/4 p-4",children:(0,a.jsx)($.A,{className:"mx-auto h-8 w-8 text-[var(--vk-text-muted)]"})}),(0,a.jsxs)("p",{className:"text-[12px] text-[var(--vk-text-muted)]",children:["Binary file",e?` (.${e})`:""," — preview not available"]}),h>0?(0,a.jsx)("p",{className:"text-[11px] text-[var(--vk-text-muted)] opacity-60",children:J(h)}):null]})}let p=function(e){let t=e.split("/").pop()??"";if(z[t])return z[t];let s=t.lastIndexOf(".");if(s>=0){let e=t.slice(s+1).toLowerCase();if(O[e])return O[e]}return"plaintext"}(t);return(0,a.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 flex-col",children:[u?(0,a.jsxs)("div",{className:"shrink-0 border-b border-amber-500/20 bg-amber-500/8 px-3 py-1 text-[11px] text-amber-300",children:["File truncated",h>0?` (${J(h)} total)`:""]}):null,(0,a.jsx)("div",{className:"min-h-0 min-w-0 flex-1 overflow-auto overscroll-contain touch-pan-x touch-pan-y py-2",children:(0,a.jsx)(Z,{code:s??"",lang:p})})]})}function J(e){return e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`}function V({sessionId:e,active:t}){let[s,n]=(0,i.useState)([]),[l,r]=(0,i.useState)(!0),[c,o]=(0,i.useState)(null),[d,x]=(0,i.useState)(!1),[u,m]=(0,i.useState)(""),[h,f]=(0,i.useState)(null),[p,v]=(0,i.useState)(new Set),g=(0,i.useRef)(!0),b=(0,i.useCallback)(async()=>{try{r(!0);let t=await fetch(`/api/sessions/${encodeURIComponent(e)}/files`,{cache:"no-store"});if(!t.ok)throw Error(`Failed to load files (${t.status})`);let s=await t.json();if(!g.current)return;n(s.files??[]),x(!!s.truncated),o(null)}catch(e){if(!g.current)return;o(e instanceof Error?e.message:"Failed to load files")}finally{g.current&&r(!1)}},[e]);(0,i.useEffect)(()=>(g.current=!0,t&&b(),()=>{g.current=!1}),[t,b]);let j=(0,i.useMemo)(()=>(function(e){let t={name:"",path:"",children:[],isDir:!0};for(let s of e){let e=s.split("/"),a=t,n="";for(let t=0;t<e.length;t++){let s=e[t];n=n?`${n}/${s}`:s;let i=t===e.length-1,l=a.children.find(e=>e.name===s);l||(l={name:s,path:n,children:[],isDir:!i},a.children.push(l)),a=l}}return function e(t){for(let s of(t.sort((e,t)=>e.isDir!==t.isDir?e.isDir?-1:1:e.name.localeCompare(t.name,void 0,{sensitivity:"base"})),t))s.children.length>0&&e(s.children);return t}(t.children)})(s),[s]),w=(0,i.useMemo)(()=>(function(e,t){if(!t)return e;let s=t.toLowerCase();return function e(t){let a=[];for(let n of t)(function e(t){return!!(t.name.toLowerCase().includes(s)||t.path.toLowerCase().includes(s))||t.children.some(e)})(n)&&(n.isDir?a.push({...n,children:e(n.children)}):a.push(n));return a}(e)})(j,u.trim()),[j,u]);(0,i.useEffect)(()=>{if(u.trim()){let e=new Set;!function t(s){for(let a of s)a.isDir&&(e.add(a.path),t(a.children))}(w),v(e)}},[w,u]);let k=(0,i.useCallback)(e=>{v(t=>{let s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})},[]),N=(0,i.useCallback)(e=>{f(e)},[]),y=(0,i.useCallback)(()=>{f(null)},[]);if(l&&0===s.length)return(0,a.jsxs)("div",{className:"flex h-full items-center justify-center gap-2 text-[12px] text-[var(--vk-text-muted)]",children:[(0,a.jsx)(A.A,{className:"h-4 w-4 animate-spin"}),"Loading workspace files…"]});if(c)return(0,a.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-4 text-center",children:[(0,a.jsx)("p",{className:"text-[12px] text-red-400",children:c}),(0,a.jsx)("button",{type:"button",onClick:()=>void b(),className:"text-[11px] text-[var(--vk-text-muted)] underline hover:text-[var(--vk-text-normal)]",children:"Retry"})]});let S=h?(0,a.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 flex-col lg:hidden",children:[(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-white/8 px-2 py-2",children:[(0,a.jsx)("button",{type:"button",onClick:y,className:"inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-[var(--vk-text-muted)] hover:bg-white/6","aria-label":"Back to file list",children:(0,a.jsx)(I.A,{className:"h-4 w-4"})}),(0,a.jsx)($.A,{className:"h-3.5 w-3.5 shrink-0 text-[var(--vk-text-muted)]"}),(0,a.jsx)("span",{className:"truncate font-mono text-[11px] text-[var(--vk-text-strong)]",children:h})]}),(0,a.jsx)("div",{className:"min-h-0 min-w-0 flex-1 overflow-hidden",children:(0,a.jsx)(G,{sessionId:e,filePath:h})})]}):null;return(0,a.jsxs)("div",{className:"flex h-full min-h-0 flex-col overflow-y-auto overscroll-contain lg:overflow-hidden",children:[S,(0,a.jsxs)("div",{className:`flex shrink-0 items-center gap-2 border-b border-white/8 px-2 py-1.5 ${h?"hidden lg:flex":""}`,children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-1.5 rounded-md bg-white/4 px-2 py-1.5",children:[(0,a.jsx)(E.A,{className:"h-3.5 w-3.5 shrink-0 text-[var(--vk-text-muted)]"}),(0,a.jsx)("input",{type:"text",value:u,onChange:e=>m(e.target.value),placeholder:"Search files…",className:"min-w-0 flex-1 bg-transparent text-[12px] text-[var(--vk-text-normal)] outline-none placeholder:text-[var(--vk-text-muted)]"})]}),(0,a.jsx)("button",{type:"button",onClick:()=>void b(),disabled:l,className:"inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-[var(--vk-text-muted)] hover:bg-white/6 disabled:opacity-50","aria-label":"Refresh files",children:(0,a.jsx)(_.A,{className:`h-3.5 w-3.5 ${l?"animate-spin":""}`})})]}),d?(0,a.jsx)("div",{className:`shrink-0 border-b border-amber-500/20 bg-amber-500/8 px-3 py-1.5 text-[11px] text-amber-300 ${h?"hidden lg:block":""}`,children:"File list truncated (4000 file limit)"}):null,(0,a.jsxs)("div",{className:`min-h-0 flex-1 lg:flex lg:flex-row ${h?"hidden lg:flex":"flex flex-col"}`,children:[(0,a.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain py-1 lg:max-w-[320px] lg:border-r lg:border-white/8",children:0===w.length?(0,a.jsx)("div",{className:"px-3 py-6 text-center text-[12px] text-[var(--vk-text-muted)]",children:u?"No files match your search.":"No files in workspace."}):w.map(e=>(0,a.jsx)(U,{node:e,depth:0,selectedPath:h,expandedDirs:p,onToggleDir:k,onSelectFile:N},e.path))}),(0,a.jsx)("div",{className:"hidden min-h-0 min-w-0 flex-1 lg:block",children:h?(0,a.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 flex-col",children:[(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-white/8 px-3 py-2",children:[(0,a.jsx)($.A,{className:"h-3.5 w-3.5 shrink-0 text-[var(--vk-text-muted)]"}),(0,a.jsx)("span",{className:"truncate font-mono text-[11px] text-[var(--vk-text-strong)]",children:h})]}),(0,a.jsx)("div",{className:"min-h-0 min-w-0 flex-1 overflow-hidden",children:(0,a.jsx)(G,{sessionId:e,filePath:h})})]}):(0,a.jsx)("div",{className:"flex h-full items-center justify-center text-[12px] text-[var(--vk-text-muted)]",children:"Select a file to view its contents"})})]})]})}function H({session:e,sessionId:t,active:s}){let[n,l]=(0,i.useState)("changes"),r=(0,i.useMemo)(()=>P(e,"task")??P(e,"prompt")??("string"==typeof e.task?e.task:"")??("string"==typeof e.prompt?e.prompt:""),[e]),c=(0,i.useMemo)(()=>P(e,"agent")??("string"==typeof e.agent?e.agent:""),[e]),o=(0,i.useMemo)(()=>(function(e,t){if(!e||!t)return"";let s=new Date(e).getTime(),a=new Date(t).getTime();if(!Number.isFinite(s)||!Number.isFinite(a)||a<s)return"";let n=Math.floor((a-s)/6e4);if(n<1)return"<1m";if(n<60)return`${n}m`;let i=Math.floor(n/60);return`${i}h ${n%60}m`})(P(e,"startedAt")??e.startedAt,P(e,"finishedAt")??e.finishedAt),[e]),d=(0,i.useMemo)(()=>(function(e){if("number"==typeof e.cost)return e.cost;let t=e.metadata.cost;if("string"!=typeof t)return 0;try{let e=JSON.parse(t),s="number"==typeof e.estimatedCostUsd?e.estimatedCostUsd:0,a="number"==typeof e.totalUSD?e.totalUSD:0;return s??a}catch{return 0}})(e),[e]),x=(0,i.useMemo)(()=>T(P(e,"queuePosition")),[e]),u=(0,i.useMemo)(()=>T(P(e,"queueDepth")),[e]),m=(0,i.useMemo)(()=>P(e,"recoveryState")??"",[e]),h=(0,i.useMemo)(()=>"queued"===e.status?x?`Waiting in queue at position ${x}${u?` of ${u}`:""}.`:"Waiting in the launch queue.":"requeued_after_restart"===m?"Session recovered after backend restart and requeued.":"reattach_pending"===m?"Recovering terminal runtime after backend restart.":"detached_runtime"===m?"Backend restarted while agent may still be running.":"resume_required"===m?"Session recovered after restart. Send a message to resume.":"",[u,x,m,e.status]);return(0,a.jsxs)("div",{className:"flex h-full min-h-0 flex-col overflow-y-auto overscroll-contain lg:overflow-hidden",children:[h?(0,a.jsx)("div",{className:"shrink-0 border-b border-amber-500/20 bg-amber-500/8 px-3 py-2",children:(0,a.jsx)("p",{className:"text-[12px] leading-snug text-amber-300",children:h})}):null,r?(0,a.jsx)("div",{className:"shrink-0 border-b border-white/8 px-3 py-2.5",children:(0,a.jsx)("p",{className:"line-clamp-3 whitespace-pre-wrap text-[13px] leading-relaxed text-[var(--vk-text-normal)]",children:r})}):null,(0,a.jsxs)("div",{className:"flex shrink-0 flex-wrap items-center gap-x-4 gap-y-1 border-b border-white/8 px-3 py-2 text-[11px] text-[var(--vk-text-muted)]",children:[c?(0,a.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(L.N,{seed:{label:c},className:"h-4 w-4"}),(0,a.jsx)("span",{children:c})]}):null,e.branch?(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(F.A,{className:"h-3 w-3 shrink-0"}),(0,a.jsx)(q,{text:e.branch})]}):null,o?(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(M.A,{className:"h-3 w-3 shrink-0"}),(0,a.jsx)("span",{children:o})]}):null,d>0?(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(R.A,{className:"h-3 w-3 shrink-0"}),(0,a.jsxs)("span",{children:["$",d.toFixed(3)]})]}):null]}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-0 border-b border-white/8 px-2",children:[(0,a.jsx)("button",{type:"button",onClick:()=>l("changes"),className:`px-3 py-2 text-[12px] font-medium transition-colors ${"changes"===n?"border-b-2 border-[var(--vk-orange)] text-[var(--vk-text-strong)]":"border-b-2 border-transparent text-[var(--vk-text-muted)] hover:text-[var(--vk-text-normal)]"}`,children:"Changes"}),(0,a.jsx)("button",{type:"button",onClick:()=>l("files"),className:`px-3 py-2 text-[12px] font-medium transition-colors ${"files"===n?"border-b-2 border-[var(--vk-orange)] text-[var(--vk-text-strong)]":"border-b-2 border-transparent text-[var(--vk-text-muted)] hover:text-[var(--vk-text-normal)]"}`,children:"Files"})]}),(0,a.jsx)("div",{className:"min-h-0 min-w-0 flex-1 overflow-hidden",children:"changes"===n?(0,a.jsx)(D,{sessionId:t,active:s},t):(0,a.jsx)(V,{sessionId:t,active:s&&"files"===n})})]})}var K=s(40448),Q=s(50549),X=s(26083),Y=s(31404),ee=s(59207);let et="block h-5 w-5 shrink-0 object-contain",es=[{id:"finder",label:"Finder"},{id:"cursor",label:"Cursor"},{id:"antigravity",label:"Antigravity"},{id:"windsurf",label:"Windsurf"},{id:"zed",label:"Zed"},{id:"xcode",label:"Xcode"},{id:"vscode",label:"VS Code"},{id:"vscode-insiders",label:"VS Code Insiders"},{id:"intellij-idea",label:"IntelliJ IDEA"},{id:"custom",label:"Custom"}],ea={finder:{kind:"image",imageSrc:"/icons/ide/finder.svg",className:et},vscode:{kind:"image",imageSrc:"/icons/ide/vscode-dark.svg",className:et},"vscode-insiders":{kind:"image",imageSrc:"/icons/ide/vscode-insiders.svg",className:et},cursor:{kind:"image",imageSrc:"/icons/ide/cursor-dark.svg",className:et},windsurf:{kind:"image",imageSrc:"/icons/ide/windsurf-dark.svg",className:et},"intellij-idea":{kind:"image",imageSrc:"/icons/ide/intellij.svg",className:et},zed:{kind:"image",imageSrc:"/icons/ide/zed-dark.svg",className:et},xcode:{kind:"image",imageSrc:"/icons/ide/xcode.svg",className:et},antigravity:{kind:"image",imageSrc:"/icons/ide/antigravity-dark.svg",className:et},custom:{kind:"icon",className:`${et} text-[var(--vk-text-muted)]`}};function en({editorId:e,label:t}){let s=ea[e];return s?"icon"===s.kind?(0,a.jsx)(Q.A,{className:s?.className??`${et} text-[var(--vk-text-muted)]`}):(0,a.jsx)("img",{src:s.imageSrc,alt:`${t} logo`,className:s.className}):(0,a.jsx)(Q.A,{className:`${et} text-[var(--vk-text-muted)]`})}function ei({projectId:e,bridgeId:t}){let{preferences:s}=(0,ee.g)(t),[n,l]=(0,i.useState)(null),r=(0,i.useMemo)(()=>{var e;return e=s?.ide??"vscode",es.find(t=>t.id===e)??{id:e,label:e}},[s?.ide]);async function c(s){if(e&&!n){l(s);try{let a=await fetch((0,Y.S)(`/api/projects/${encodeURIComponent(e)}/open`,t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ide:s})}),n=await a.json().catch(()=>null);if(!a.ok)throw Error(n?.error??`Failed to open project (${a.status})`)}catch(e){window.alert(e instanceof Error?e.message:"Failed to open project")}finally{l(null)}}}return(0,a.jsxs)(K.bL,{children:[(0,a.jsx)(K.l9,{asChild:!0,children:(0,a.jsxs)("button",{type:"button",disabled:!e||null!==n,className:"inline-flex h-9 items-center gap-2 rounded-[6px] border border-[rgba(255,255,255,0.08)] bg-[rgba(255,255,255,0.03)] px-3 text-[13px] text-[var(--vk-text-normal)] transition hover:bg-[rgba(255,255,255,0.06)] disabled:cursor-not-allowed disabled:opacity-60","aria-label":"Open project in code editor",title:e?`Open project in ${r.label}`:"No project selected",children:[n?(0,a.jsx)(A.A,{className:"h-4 w-4 animate-spin text-[var(--vk-text-muted)]"}):(0,a.jsx)(X.A,{className:"h-4 w-4 text-[var(--vk-text-muted)]"}),(0,a.jsx)("span",{className:"hidden font-medium sm:inline",children:"Open"}),(0,a.jsx)(N.A,{className:"h-3.5 w-3.5 text-[var(--vk-text-muted)]"})]})}),(0,a.jsx)(K.ZL,{children:(0,a.jsx)(K.UC,{align:"end",sideOffset:8,className:"z-50 min-w-[240px] rounded-[8px] border border-[rgba(255,255,255,0.08)] bg-[#1c1a19] p-2 shadow-[0_18px_50px_rgba(0,0,0,0.45)]",children:es.map(e=>(0,a.jsxs)(K.q7,{onSelect:()=>void c(e.id),className:"flex min-h-[44px] cursor-default items-center gap-3 rounded-[6px] px-3 py-2 text-[14px] text-[#f3efea] outline-none transition hover:bg-[rgba(255,255,255,0.06)] focus:bg-[rgba(255,255,255,0.06)]",children:[(0,a.jsx)(en,{editorId:e.id,label:e.label}),(0,a.jsx)("span",{className:"flex-1",children:e.label}),r.id===e.id?(0,a.jsx)(w.A,{className:"h-4 w-4 text-[var(--vk-text-muted)]"}):null]},e.id))})})]})}let el=(0,n.default)(()=>s.e(3954).then(s.bind(s,83954)).then(e=>e.SessionTerminal),{loadableGenerated:{webpack:()=>[83954]},loading:()=>(0,a.jsx)("div",{className:"flex h-full min-h-[240px] items-center justify-center text-[13px] text-[var(--vk-text-muted)]",children:"Loading terminal..."})}),er=(0,n.default)(()=>Promise.all([s.e(307),s.e(4089)]).then(s.bind(s,54089)).then(e=>e.SessionPreview),{loadableGenerated:{webpack:()=>[54089]},loading:()=>(0,a.jsx)("div",{className:"flex h-full min-h-[240px] items-center justify-center text-[13px] text-[var(--vk-text-muted)]",children:"Loading preview..."})}),ec=(0,n.default)(()=>s.e(370).then(s.bind(s,80370)).then(e=>e.SessionSkills),{loadableGenerated:{webpack:()=>[80370]},loading:()=>(0,a.jsx)("div",{className:"flex h-full min-h-[240px] items-center justify-center text-[13px] text-[var(--vk-text-muted)]",children:"Loading skills..."})});function eo(e){return"overview"===e||"terminal"===e||"preview"===e||"skills"===e?e:"terminal"}function ed({sessionId:e,initialSession:t=null,bridgeId:s=null,immersiveMobileMode:n=!1,active:u=!0,onOpenSidebar:m}){let w=(0,l.usePathname)(),k=(0,l.useRouter)(),N=(0,l.useSearchParams)(),{session:y,loading:S,error:C}=(0,j.w)(e,t,{enabled:u,bridgeId:s}),$=(0,i.useRef)(0),A=(0,i.useRef)(!1),[I,E]=(0,i.useState)(null),_=(0,i.useMemo)(()=>eo(N.get("tab")),[N]),F=(0,i.useCallback)(e=>{let t=eo(e),s=new URLSearchParams(N.toString());"terminal"===t?s.delete("tab"):s.set("tab",t);let a=s.toString(),n=a.length>0?`${w}?${a}`:w;k.replace(n,{scroll:!1})},[w,k,N]),M=(0,i.useCallback)(e=>{$.current+=1,E({nonce:$.current,...e})},[]);(0,i.useEffect)(()=>{A.current=!1,$.current=0,E(null)},[e]);let R=(0,i.useCallback)(e=>{e&&u&&"terminal"===_&&!A.current&&(A.current=!0,F("preview"))},[u,_,F]);if(S)return(0,a.jsx)("div",{className:"flex h-full items-center justify-center p-6",children:(0,a.jsx)(g.Zp,{className:"w-full max-w-md",children:(0,a.jsx)(g.Wu,{className:"py-7 text-center text-[13px] text-[var(--text-muted)]",children:"Loading session workspace..."})})});if(C)return(0,a.jsx)("div",{className:"flex h-full items-center justify-center p-6",children:(0,a.jsx)(g.Zp,{className:"w-full max-w-md border-[color:color-mix(in_srgb,var(--status-error)_45%,transparent)]",children:(0,a.jsx)(g.Wu,{className:"py-7 text-center text-[13px] text-[var(--status-error)]",children:C})})});if(!y)return(0,a.jsx)("div",{className:"flex h-full items-center justify-center p-6",children:(0,a.jsx)(g.Zp,{className:"w-full max-w-md",children:(0,a.jsx)(g.Wu,{className:"py-7 text-center text-[13px] text-[var(--text-muted)]",children:"Session not found"})})});let L="string"==typeof y.status?y.status:"unknown",D=function(e){switch(e){case"needs_input":return"needs input";case"working":return"working";case"running":return"running";case"spawning":return"spawning";case"queued":return"queued";default:return e.replace(/[_-]+/g," ")}}(L),q=function(e){switch(e){case"working":case"running":return"bg-amber-400";case"needs_input":return"bg-blue-400";case"spawning":case"queued":default:return"bg-gray-400";case"done":return"bg-emerald-400";case"errored":return"bg-red-400";case"stuck":return"bg-orange-500";case"terminated":case"killed":return"bg-gray-500"}}(L),P="working"===L||"running"===L||"spawning"===L||"queued"===L||"needs_input"===L,T="queued"!==L&&"spawning"!==L,U=u&&n&&"terminal"===_,O=u&&"preview"===_,z="min-h-[38px] gap-1.5 px-2.5 text-[12px] sm:min-h-0 sm:px-3",W=(0,a.jsxs)(f,{className:"flex w-full overflow-x-auto sm:w-fit sm:inline-flex",children:[(0,a.jsxs)(p,{value:"overview",className:z,children:[(0,a.jsx)(r.A,{className:"h-3.5 w-3.5"}),"Overview"]}),(0,a.jsxs)(p,{value:"terminal",className:z,children:[(0,a.jsx)(c.A,{className:"h-3.5 w-3.5"}),"Terminal"]}),(0,a.jsxs)(p,{value:"preview",className:z,children:[(0,a.jsx)(o.A,{className:"h-3.5 w-3.5"}),"Preview"]}),(0,a.jsxs)(p,{value:"skills",className:z,children:[(0,a.jsx)(d.A,{className:"h-3.5 w-3.5"}),"Skills"]})]});return(0,a.jsx)("div",{className:`flex h-full min-h-0 min-w-0 w-full flex-col ${U?"overflow-hidden bg-[#060404]":"overflow-y-auto overscroll-contain lg:overflow-hidden"}`,children:(0,a.jsxs)(h,{value:_,onValueChange:F,className:U?"flex min-h-0 min-w-0 w-full flex-1 flex-col gap-0 p-0":"flex min-h-0 min-w-0 w-full flex-1 flex-col gap-1 p-1 lg:gap-2 lg:p-3",children:[U?(0,a.jsxs)("div",{className:"flex shrink-0 flex-col border-b border-white/10 bg-[#0d0908]",children:[(0,a.jsxs)("div",{className:"flex h-10 items-center gap-2 px-2",children:[m?(0,a.jsx)(b.$,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8 shrink-0 text-[#8e847d] hover:text-[#c9c0b7]",onClick:m,"aria-label":"Open workspace panel",children:(0,a.jsx)(x.A,{className:"h-4 w-4"})}):null,(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-1.5",children:[(0,a.jsx)("span",{className:`inline-block h-2 w-2 shrink-0 rounded-full ${q}${P?" animate-pulse":""}`}),(0,a.jsx)("span",{className:"text-[12px] font-medium text-[#efe8e1]",children:D}),(0,a.jsxs)("span",{className:"font-mono text-[10px] text-[#8e847d]",children:["\xb7 ",e.slice(0,7)]})]}),T?(0,a.jsx)(ei,{projectId:y.projectId,bridgeId:y.bridgeId??null}):null]}),(0,a.jsx)("div",{className:"px-1.5 pb-1.5",children:W})]}):(0,a.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1.5 sm:flex-nowrap",children:[W,(0,a.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:ml-auto sm:w-auto sm:justify-end",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:`inline-block h-2 w-2 shrink-0 rounded-full ${q}${P?" animate-pulse":""}`}),(0,a.jsx)("span",{className:"text-[11px] text-[var(--vk-text-muted)]",children:D}),(0,a.jsxs)("span",{className:"hidden font-mono text-[10px] text-[var(--vk-text-muted)] sm:inline",children:["\xb7 ",e.slice(0,7)]})]}),T?(0,a.jsx)(ei,{projectId:y.projectId,bridgeId:y.bridgeId??null}):null]})]}),(0,a.jsxs)("div",{className:"relative min-h-0 min-w-0 flex-1 overflow-hidden",children:[(0,a.jsx)(v,{value:"overview",className:"min-h-0 h-full min-w-0 w-full overflow-hidden focus-visible:outline-none [&[hidden]]:block data-[state=inactive]:pointer-events-none data-[state=inactive]:absolute data-[state=inactive]:inset-0 data-[state=inactive]:invisible data-[state=inactive]:opacity-0",children:(0,a.jsx)(H,{session:y,sessionId:e,active:u&&"overview"===_})}),(0,a.jsx)(v,{value:"terminal",forceMount:!0,className:U?"flex min-h-0 h-full min-w-0 w-full flex-col overflow-hidden bg-[#060404] focus-visible:outline-none [&[hidden]]:block data-[state=inactive]:pointer-events-none data-[state=inactive]:absolute data-[state=inactive]:inset-0 data-[state=inactive]:invisible data-[state=inactive]:opacity-0":"flex min-h-0 h-full min-w-0 flex-col w-full overflow-hidden bg-transparent focus-visible:outline-none [&[hidden]]:block data-[state=inactive]:pointer-events-none data-[state=inactive]:absolute data-[state=inactive]:inset-0 data-[state=inactive]:invisible data-[state=inactive]:opacity-0",children:(0,a.jsx)(el,{sessionId:e,bridgeId:y.bridgeId??null,sessionState:L,runtimeMode:y.metadata.runtimeMode?.trim()??null,pendingInsert:I,immersiveMobileMode:U})}),(0,a.jsx)(v,{value:"preview",className:"min-h-0 h-full min-w-0 w-full overflow-hidden focus-visible:outline-none [&[hidden]]:block data-[state=inactive]:pointer-events-none data-[state=inactive]:absolute data-[state=inactive]:inset-0 data-[state=inactive]:invisible data-[state=inactive]:opacity-0",children:O?(0,a.jsx)(er,{sessionId:e,active:O,onQueueTerminalInsert:M,onConnectionChange:R},e):null}),(0,a.jsx)(v,{value:"skills",className:"min-h-0 h-full min-w-0 w-full overflow-y-auto overscroll-contain focus-visible:outline-none lg:overflow-hidden [&[hidden]]:block data-[state=inactive]:pointer-events-none data-[state=inactive]:absolute data-[state=inactive]:inset-0 data-[state=inactive]:invisible data-[state=inactive]:opacity-0",children:(0,a.jsx)(ec,{session:y,sessionId:e,active:u&&"skills"===_})})]})]},e)})}},59207:(e,t,s)=>{s.d(t,{g:()=>l});var a=s(7620),n=s(31404);function i(e){return!e||"object"!=typeof e||Array.isArray(e)?{}:{...e}}function l(e,t){let s=t?.enabled??!0,[l,r]=(0,a.useState)(null),[c,o]=(0,a.useState)(s),[d,x]=(0,a.useState)(null),u=(0,a.useCallback)(async()=>{if(!s){r(null),x(null),o(!1);return}try{var t;let s,a,l,c=await fetch((0,n.S)("/api/preferences",e)),o=await c.json().catch(()=>null);if(!c.ok)throw Error(o?.error??o?.reason??`Failed to load preferences: ${c.status}`);r((t=o?.preferences,s=i(t),l=(a=i(s.notifications)).soundFile,{onboardingAcknowledged:!0===s.onboardingAcknowledged,codingAgent:"string"==typeof s.codingAgent&&s.codingAgent.trim().length>0?s.codingAgent.trim():"claude-code",ide:"string"==typeof s.ide&&s.ide.trim().length>0?s.ide.trim():"vscode",markdownEditor:"string"==typeof s.markdownEditor&&s.markdownEditor.trim().length>0?s.markdownEditor.trim():"obsidian",markdownEditorPath:"string"==typeof s.markdownEditorPath?s.markdownEditorPath.trim():"",notifications:{soundEnabled:!1!==a.soundEnabled,soundFile:null===l?null:"string"==typeof l&&l.trim().length>0?l.trim():"abstract-sound-4"}})),x(null)}catch(e){r(null),x(e instanceof Error?e.message:"Failed to load preferences")}finally{o(!1)}},[e,s]);return(0,a.useEffect)(()=>{s&&u()},[s,u]),{preferences:s?l:null,loading:!!s&&c,error:s?d:null,refresh:u}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2452],{40443:(e,t,s)=>{s.d(t,{Wu:()=>r,Zp:()=>i,aR:()=>l});var a=s(54568),n=s(46916);let i=(0,s(7620).forwardRef)(({className:e,...t},s)=>(0,a.jsx)("div",{ref:s,className:(0,n.cn)("surface-card rounded-[var(--radius-md)] border",e),...t}));function l({className:e,...t}){return(0,a.jsx)("div",{className:(0,n.cn)("flex items-center gap-2 border-b border-[var(--vk-border)] px-3 py-2",e),...t})}function r({className:e,...t}){return(0,a.jsx)("div",{className:(0,n.cn)("px-3 py-2",e),...t})}i.displayName="Card"},42452:(e,t,s)=>{s.r(t),s.d(t,{SessionDetail:()=>ed});var a=s(54568),n=s(42925),i=s(7620),l=s(79748),r=s(7920),c=s(69863),o=s(97380),d=s(46548),x=s(90466),u=s(35131),m=s(46916);let h=u.bL,p=(0,i.forwardRef)(({className:e,...t},s)=>(0,a.jsx)(u.B8,{ref:s,className:(0,m.cn)("inline-flex max-w-full items-center gap-0.5 overflow-x-auto rounded-[3px] border border-[var(--vk-border)] bg-[var(--vk-bg-panel)] p-0.5 whitespace-nowrap touch-pan-x [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",e),...t}));p.displayName="TabsList";let f=(0,i.forwardRef)(({className:e,...t},s)=>(0,a.jsx)(u.l9,{ref:s,className:(0,m.cn)("inline-flex min-h-[34px] shrink-0 items-center gap-1.5 rounded-[3px] px-2.5 py-1.5 text-[12px] text-[var(--vk-text-muted)]","data-[state=active]:bg-[var(--vk-bg-active)] data-[state=active]:text-[var(--vk-text-normal)]","hover:text-[var(--vk-text-normal)]","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--vk-orange)]",e),...t}));f.displayName="TabsTrigger";let v=(0,i.forwardRef)(({className:e,...t},s)=>(0,a.jsx)(u.UC,{ref:s,className:(0,m.cn)("focus-visible:outline-none",e),...t}));v.displayName="TabsContent";var g=s(40443),b=s(76081),j=s(35821),w=s(34309),k=s(59706),N=s(34041),y=s(76265),S=s(45894),C=s(26463),$=s(96249),A=s(58299),I=s(56050),E=s(23555),_=s(60527),F=s(58588),M=s(99844),R=s(5881),L=s(90124);let D=(0,n.default)(()=>s.e(4535).then(s.bind(s,74535)).then(e=>e.SessionDiff),{loadableGenerated:{webpack:()=>[74535]},loading:()=>(0,a.jsx)("div",{className:"flex h-32 items-center justify-center text-[12px] text-[var(--vk-text-muted)]",children:"Loading changes…"}),ssr:!1});function q({text:e}){let[t,s]=(0,i.useState)(!1);async function n(){try{await navigator.clipboard.writeText(e),s(!0),window.setTimeout(()=>s(!1),1400)}catch{}}return(0,a.jsxs)("button",{type:"button",onClick:()=>void n(),className:"inline-flex max-w-[180px] items-center gap-1 font-mono text-[11px] text-[var(--vk-text-muted)] transition-colors hover:text-[var(--vk-text-normal)]",children:[(0,a.jsx)("span",{className:"truncate",children:e}),t?(0,a.jsx)(w.A,{className:"h-3 w-3 shrink-0 text-emerald-400"}):(0,a.jsx)(k.A,{className:"h-3 w-3 shrink-0 opacity-50"})]})}function P(e,t){let s=e.metadata[t];return"string"==typeof s&&s.trim().length>0?s:void 0}function T(e){if(!e)return null;let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:null}function U({node:e,depth:t,selectedPath:s,expandedDirs:n,onToggleDir:i,onSelectFile:l}){let r=n.has(e.path),c=e.path===s,o=8+16*t;return e.isDir?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{type:"button",onClick:()=>i(e.path),className:"flex w-full items-center gap-1.5 py-1.5 text-left text-[12px] text-[var(--vk-text-muted)] hover:bg-white/4 active:bg-white/6",style:{paddingLeft:o},children:[r?(0,a.jsx)(N.A,{className:"h-3 w-3 shrink-0 opacity-50"}):(0,a.jsx)(y.A,{className:"h-3 w-3 shrink-0 opacity-50"}),r?(0,a.jsx)(S.A,{className:"h-3.5 w-3.5 shrink-0 text-amber-400/70"}):(0,a.jsx)(C.A,{className:"h-3.5 w-3.5 shrink-0 text-amber-400/70"}),(0,a.jsx)("span",{className:"truncate",children:e.name})]}),r?e.children.map(e=>(0,a.jsx)(U,{node:e,depth:t+1,selectedPath:s,expandedDirs:n,onToggleDir:i,onSelectFile:l},e.path)):null]}):(0,a.jsxs)("button",{type:"button",onClick:()=>l(e.path),className:`flex w-full items-center gap-1.5 py-1.5 pr-2 text-left text-[12px] transition-colors ${c?"bg-blue-500/10 text-[var(--vk-text-strong)]":"text-[var(--vk-text-normal)] hover:bg-white/4"}`,style:{paddingLeft:o+16},children:[(0,a.jsx)($.A,{className:"h-3.5 w-3.5 shrink-0 text-[var(--vk-text-muted)]"}),(0,a.jsx)("span",{className:"truncate",children:e.name})]})}let O={js:"javascript",jsx:"jsx",ts:"typescript",tsx:"tsx",mjs:"javascript",cjs:"javascript",mts:"typescript",cts:"typescript",html:"html",htm:"html",css:"css",scss:"scss",sass:"sass",less:"less",vue:"vue",svelte:"svelte",astro:"astro",json:"json",jsonc:"jsonc",json5:"json5",yaml:"yaml",yml:"yaml",toml:"toml",ini:"ini",xml:"xml",svg:"xml",plist:"xml",csv:"csv",tsv:"csv",md:"markdown",mdx:"mdx",tex:"latex",rst:"rst",rs:"rust",go:"go",c:"c",h:"c",cpp:"cpp",cc:"cpp",cxx:"cpp",hpp:"cpp",hh:"cpp",cs:"csharp",java:"java",kt:"kotlin",kts:"kotlin",scala:"scala",swift:"swift",m:"objective-c",mm:"objective-cpp",zig:"zig",nim:"nim",v:"v",d:"d",py:"python",pyi:"python",rb:"ruby",php:"php",pl:"perl",pm:"perl",lua:"lua",r:"r",R:"r",jl:"julia",ex:"elixir",exs:"elixir",erl:"erlang",hrl:"erlang",hs:"haskell",lhs:"haskell",clj:"clojure",cljs:"clojure",ml:"ocaml",mli:"ocaml",fs:"fsharp",fsx:"fsharp",sh:"bash",bash:"bash",zsh:"bash",fish:"fish",ps1:"powershell",psm1:"powershell",bat:"bat",cmd:"bat",dockerfile:"dockerfile",containerfile:"dockerfile",tf:"hcl",hcl:"hcl",nix:"nix",sql:"sql",graphql:"graphql",gql:"graphql",prisma:"prisma",proto:"protobuf",thrift:"thrift",makefile:"makefile",cmake:"cmake",asm:"asm",s:"asm",diff:"diff",patch:"diff",log:"log",txt:"plaintext",env:"dotenv",lock:"json"},z={makefile:"makefile",Makefile:"makefile",dockerfile:"dockerfile",Dockerfile:"dockerfile",containerfile:"dockerfile",Containerfile:"dockerfile",gemfile:"ruby",Gemfile:"ruby",rakefile:"ruby",Rakefile:"ruby",cmakelists:"cmake",CMakeLists:"cmake",".gitignore":"gitignore",".dockerignore":"gitignore",".editorconfig":"ini",".prettierrc":"json",".eslintrc":"json",".babelrc":"json",".env":"dotenv",".env.local":"dotenv",".env.production":"dotenv","tsconfig.json":"jsonc","jsconfig.json":"jsonc"},W=new Set(["png","jpg","jpeg","gif","webp","svg","ico","bmp","avif"]);function B(e){let t=e.split("/").pop()??"",s=t.lastIndexOf(".");return s>=0?t.slice(s+1).toLowerCase():""}function Z({code:e,lang:t}){let[n,l]=(0,i.useState)(null),r=(0,i.useRef)(e),c=(0,i.useRef)(t);if((0,i.useEffect)(()=>{r.current=e,c.current=t;let a=!1;return(async()=>{try{let{codeToHtml:n}=await s.e(2228).then(s.bind(s,42228));if(a)return;let i=await n(e,{lang:t,theme:"github-dark-default"});a||r.current!==e||c.current!==t||l(i)}catch{if(a)return;try{let{codeToHtml:t}=await s.e(2228).then(s.bind(s,42228));if(a)return;let n=await t(e,{lang:"plaintext",theme:"github-dark-default"});a||l(n)}catch{a||l(null)}}})(),()=>{a=!0}},[e,t]),!n){let t=e.split("\n"),s=String(t.length).length;return(0,a.jsx)("div",{className:"inline-block min-w-full align-top",children:(0,a.jsx)("table",{className:"min-w-full border-collapse font-mono text-[11px] leading-5",children:(0,a.jsx)("tbody",{children:t.map((e,t)=>(0,a.jsxs)("tr",{className:"hover:bg-white/3",children:[(0,a.jsx)("td",{className:"select-none whitespace-nowrap border-r border-white/6 px-2 text-right text-[var(--vk-text-muted)] opacity-40",style:{minWidth:`${s+2}ch`},children:t+1}),(0,a.jsx)("td",{className:"whitespace-pre px-3 text-[var(--vk-text-normal)]",children:e||"\xa0"})]},t))})})})}return(0,a.jsx)("div",{className:"shiki-viewer inline-block min-w-full align-top [&_.shiki]:!bg-transparent [&_.shiki]:p-0 [&_code]:text-[11px] [&_code]:leading-5 [&_pre]:!bg-transparent [&_pre]:!p-0",dangerouslySetInnerHTML:{__html:n}})}function G({sessionId:e,filePath:t}){let[s,n]=(0,i.useState)(null),[l,r]=(0,i.useState)(!0),[c,o]=(0,i.useState)(null),[d,x]=(0,i.useState)(!1),[u,m]=(0,i.useState)(!1),[h,p]=(0,i.useState)(0);if((0,i.useEffect)(()=>{let s=!1;r(!0),o(null),n(null),x(!1),m(!1),p(0);let a=new URLSearchParams({path:t});return fetch(`/api/sessions/${encodeURIComponent(e)}/files?${a.toString()}`,{cache:"no-store"}).then(async e=>{if(!e.ok)throw Error(`Failed to load file (${e.status})`);return e.json()}).then(e=>{s||(e.binary?x(!0):n("string"==typeof e.content?e.content:""),m(!!e.truncated),p("number"==typeof e.size?e.size:0))}).catch(e=>{s||o(e instanceof Error?e.message:"Failed to load file")}).finally(()=>{s||r(!1)}),()=>{s=!0}},[e,t]),l)return(0,a.jsxs)("div",{className:"flex h-full items-center justify-center gap-2 text-[12px] text-[var(--vk-text-muted)]",children:[(0,a.jsx)(A.A,{className:"h-4 w-4 animate-spin"}),"Loading…"]});if(c)return(0,a.jsx)("div",{className:"flex h-full items-center justify-center px-4 text-center text-[12px] text-red-400",children:c});if(d&&W.has(B(t))){let s=new URLSearchParams({path:t,raw:"1"}),n=`/api/sessions/${encodeURIComponent(e)}/files?${s.toString()}`;return(0,a.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-3 p-4",children:[(0,a.jsx)("img",{src:n,alt:t,className:"max-h-[60vh] max-w-full rounded-md object-contain"}),(0,a.jsxs)("span",{className:"text-[11px] text-[var(--vk-text-muted)]",children:[t.split("/").pop(),h>0?` \xb7 ${J(h)}`:""]})]})}if(d){let e=B(t);return(0,a.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 px-4 text-center",children:[(0,a.jsx)("div",{className:"rounded-lg bg-white/4 p-4",children:(0,a.jsx)($.A,{className:"mx-auto h-8 w-8 text-[var(--vk-text-muted)]"})}),(0,a.jsxs)("p",{className:"text-[12px] text-[var(--vk-text-muted)]",children:["Binary file",e?` (.${e})`:""," — preview not available"]}),h>0?(0,a.jsx)("p",{className:"text-[11px] text-[var(--vk-text-muted)] opacity-60",children:J(h)}):null]})}let f=function(e){let t=e.split("/").pop()??"";if(z[t])return z[t];let s=t.lastIndexOf(".");if(s>=0){let e=t.slice(s+1).toLowerCase();if(O[e])return O[e]}return"plaintext"}(t);return(0,a.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 flex-col",children:[u?(0,a.jsxs)("div",{className:"shrink-0 border-b border-amber-500/20 bg-amber-500/8 px-3 py-1 text-[11px] text-amber-300",children:["File truncated",h>0?` (${J(h)} total)`:""]}):null,(0,a.jsx)("div",{className:"min-h-0 min-w-0 flex-1 overflow-auto overscroll-contain touch-pan-x touch-pan-y py-2",children:(0,a.jsx)(Z,{code:s??"",lang:f})})]})}function J(e){return e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`}function V({sessionId:e,active:t}){let[s,n]=(0,i.useState)([]),[l,r]=(0,i.useState)(!0),[c,o]=(0,i.useState)(null),[d,x]=(0,i.useState)(!1),[u,m]=(0,i.useState)(""),[h,p]=(0,i.useState)(null),[f,v]=(0,i.useState)(new Set),g=(0,i.useRef)(!0),b=(0,i.useCallback)(async()=>{try{r(!0);let t=await fetch(`/api/sessions/${encodeURIComponent(e)}/files`,{cache:"no-store"});if(!t.ok)throw Error(`Failed to load files (${t.status})`);let s=await t.json();if(!g.current)return;n(s.files??[]),x(!!s.truncated),o(null)}catch(e){if(!g.current)return;o(e instanceof Error?e.message:"Failed to load files")}finally{g.current&&r(!1)}},[e]);(0,i.useEffect)(()=>(g.current=!0,t&&b(),()=>{g.current=!1}),[t,b]);let j=(0,i.useMemo)(()=>(function(e){let t={name:"",path:"",children:[],isDir:!0};for(let s of e){let e=s.split("/"),a=t,n="";for(let t=0;t<e.length;t++){let s=e[t];n=n?`${n}/${s}`:s;let i=t===e.length-1,l=a.children.find(e=>e.name===s);l||(l={name:s,path:n,children:[],isDir:!i},a.children.push(l)),a=l}}return function e(t){for(let s of(t.sort((e,t)=>e.isDir!==t.isDir?e.isDir?-1:1:e.name.localeCompare(t.name,void 0,{sensitivity:"base"})),t))s.children.length>0&&e(s.children);return t}(t.children)})(s),[s]),w=(0,i.useMemo)(()=>(function(e,t){if(!t)return e;let s=t.toLowerCase();return function e(t){let a=[];for(let n of t)(function e(t){return!!(t.name.toLowerCase().includes(s)||t.path.toLowerCase().includes(s))||t.children.some(e)})(n)&&(n.isDir?a.push({...n,children:e(n.children)}):a.push(n));return a}(e)})(j,u.trim()),[j,u]);(0,i.useEffect)(()=>{if(u.trim()){let e=new Set;!function t(s){for(let a of s)a.isDir&&(e.add(a.path),t(a.children))}(w),v(e)}},[w,u]);let k=(0,i.useCallback)(e=>{v(t=>{let s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})},[]),N=(0,i.useCallback)(e=>{p(e)},[]),y=(0,i.useCallback)(()=>{p(null)},[]);if(l&&0===s.length)return(0,a.jsxs)("div",{className:"flex h-full items-center justify-center gap-2 text-[12px] text-[var(--vk-text-muted)]",children:[(0,a.jsx)(A.A,{className:"h-4 w-4 animate-spin"}),"Loading workspace files…"]});if(c)return(0,a.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-4 text-center",children:[(0,a.jsx)("p",{className:"text-[12px] text-red-400",children:c}),(0,a.jsx)("button",{type:"button",onClick:()=>void b(),className:"text-[11px] text-[var(--vk-text-muted)] underline hover:text-[var(--vk-text-normal)]",children:"Retry"})]});let S=h?(0,a.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 flex-col lg:hidden",children:[(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-white/8 px-2 py-2",children:[(0,a.jsx)("button",{type:"button",onClick:y,className:"inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-[var(--vk-text-muted)] hover:bg-white/6","aria-label":"Back to file list",children:(0,a.jsx)(I.A,{className:"h-4 w-4"})}),(0,a.jsx)($.A,{className:"h-3.5 w-3.5 shrink-0 text-[var(--vk-text-muted)]"}),(0,a.jsx)("span",{className:"truncate font-mono text-[11px] text-[var(--vk-text-strong)]",children:h})]}),(0,a.jsx)("div",{className:"min-h-0 min-w-0 flex-1 overflow-hidden",children:(0,a.jsx)(G,{sessionId:e,filePath:h})})]}):null;return(0,a.jsxs)("div",{className:"flex h-full min-h-0 flex-col overflow-y-auto overscroll-contain lg:overflow-hidden",children:[S,(0,a.jsxs)("div",{className:`flex shrink-0 items-center gap-2 border-b border-white/8 px-2 py-1.5 ${h?"hidden lg:flex":""}`,children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-1.5 rounded-md bg-white/4 px-2 py-1.5",children:[(0,a.jsx)(E.A,{className:"h-3.5 w-3.5 shrink-0 text-[var(--vk-text-muted)]"}),(0,a.jsx)("input",{type:"text",value:u,onChange:e=>m(e.target.value),placeholder:"Search files…",className:"min-w-0 flex-1 bg-transparent text-[12px] text-[var(--vk-text-normal)] outline-none placeholder:text-[var(--vk-text-muted)]"})]}),(0,a.jsx)("button",{type:"button",onClick:()=>void b(),disabled:l,className:"inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-[var(--vk-text-muted)] hover:bg-white/6 disabled:opacity-50","aria-label":"Refresh files",children:(0,a.jsx)(_.A,{className:`h-3.5 w-3.5 ${l?"animate-spin":""}`})})]}),d?(0,a.jsx)("div",{className:`shrink-0 border-b border-amber-500/20 bg-amber-500/8 px-3 py-1.5 text-[11px] text-amber-300 ${h?"hidden lg:block":""}`,children:"File list truncated (4000 file limit)"}):null,(0,a.jsxs)("div",{className:`min-h-0 flex-1 lg:flex lg:flex-row ${h?"hidden lg:flex":"flex flex-col"}`,children:[(0,a.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain py-1 lg:max-w-[320px] lg:border-r lg:border-white/8",children:0===w.length?(0,a.jsx)("div",{className:"px-3 py-6 text-center text-[12px] text-[var(--vk-text-muted)]",children:u?"No files match your search.":"No files in workspace."}):w.map(e=>(0,a.jsx)(U,{node:e,depth:0,selectedPath:h,expandedDirs:f,onToggleDir:k,onSelectFile:N},e.path))}),(0,a.jsx)("div",{className:"hidden min-h-0 min-w-0 flex-1 lg:block",children:h?(0,a.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 flex-col",children:[(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-white/8 px-3 py-2",children:[(0,a.jsx)($.A,{className:"h-3.5 w-3.5 shrink-0 text-[var(--vk-text-muted)]"}),(0,a.jsx)("span",{className:"truncate font-mono text-[11px] text-[var(--vk-text-strong)]",children:h})]}),(0,a.jsx)("div",{className:"min-h-0 min-w-0 flex-1 overflow-hidden",children:(0,a.jsx)(G,{sessionId:e,filePath:h})})]}):(0,a.jsx)("div",{className:"flex h-full items-center justify-center text-[12px] text-[var(--vk-text-muted)]",children:"Select a file to view its contents"})})]})]})}function H({session:e,sessionId:t,active:s}){let[n,l]=(0,i.useState)("changes"),r=(0,i.useMemo)(()=>P(e,"task")??P(e,"prompt")??("string"==typeof e.task?e.task:"")??("string"==typeof e.prompt?e.prompt:""),[e]),c=(0,i.useMemo)(()=>P(e,"agent")??("string"==typeof e.agent?e.agent:""),[e]),o=(0,i.useMemo)(()=>(function(e,t){if(!e||!t)return"";let s=new Date(e).getTime(),a=new Date(t).getTime();if(!Number.isFinite(s)||!Number.isFinite(a)||a<s)return"";let n=Math.floor((a-s)/6e4);if(n<1)return"<1m";if(n<60)return`${n}m`;let i=Math.floor(n/60);return`${i}h ${n%60}m`})(P(e,"startedAt")??e.startedAt,P(e,"finishedAt")??e.finishedAt),[e]),d=(0,i.useMemo)(()=>(function(e){if("number"==typeof e.cost)return e.cost;let t=e.metadata.cost;if("string"!=typeof t)return 0;try{let e=JSON.parse(t),s="number"==typeof e.estimatedCostUsd?e.estimatedCostUsd:0,a="number"==typeof e.totalUSD?e.totalUSD:0;return s??a}catch{return 0}})(e),[e]),x=(0,i.useMemo)(()=>T(P(e,"queuePosition")),[e]),u=(0,i.useMemo)(()=>T(P(e,"queueDepth")),[e]),m=(0,i.useMemo)(()=>P(e,"recoveryState")??"",[e]),h=(0,i.useMemo)(()=>"queued"===e.status?x?`Waiting in queue at position ${x}${u?` of ${u}`:""}.`:"Waiting in the launch queue.":"requeued_after_restart"===m?"Session recovered after backend restart and requeued.":"reattach_pending"===m?"Recovering terminal runtime after backend restart.":"detached_runtime"===m?"Backend restarted while agent may still be running.":"resume_required"===m?"Session recovered after restart. Send a message to resume.":"",[u,x,m,e.status]);return(0,a.jsxs)("div",{className:"flex h-full min-h-0 flex-col overflow-y-auto overscroll-contain lg:overflow-hidden",children:[h?(0,a.jsx)("div",{className:"shrink-0 border-b border-amber-500/20 bg-amber-500/8 px-3 py-2",children:(0,a.jsx)("p",{className:"text-[12px] leading-snug text-amber-300",children:h})}):null,r?(0,a.jsx)("div",{className:"shrink-0 border-b border-white/8 px-3 py-2.5",children:(0,a.jsx)("p",{className:"line-clamp-3 whitespace-pre-wrap text-[13px] leading-relaxed text-[var(--vk-text-normal)]",children:r})}):null,(0,a.jsxs)("div",{className:"flex shrink-0 flex-wrap items-center gap-x-4 gap-y-1 border-b border-white/8 px-3 py-2 text-[11px] text-[var(--vk-text-muted)]",children:[c?(0,a.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(L.N,{seed:{label:c},className:"h-4 w-4"}),(0,a.jsx)("span",{children:c})]}):null,e.branch?(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(F.A,{className:"h-3 w-3 shrink-0"}),(0,a.jsx)(q,{text:e.branch})]}):null,o?(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(M.A,{className:"h-3 w-3 shrink-0"}),(0,a.jsx)("span",{children:o})]}):null,d>0?(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(R.A,{className:"h-3 w-3 shrink-0"}),(0,a.jsxs)("span",{children:["$",d.toFixed(3)]})]}):null]}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-0 border-b border-white/8 px-2",children:[(0,a.jsx)("button",{type:"button",onClick:()=>l("changes"),className:`px-3 py-2 text-[12px] font-medium transition-colors ${"changes"===n?"border-b-2 border-[var(--vk-orange)] text-[var(--vk-text-strong)]":"border-b-2 border-transparent text-[var(--vk-text-muted)] hover:text-[var(--vk-text-normal)]"}`,children:"Changes"}),(0,a.jsx)("button",{type:"button",onClick:()=>l("files"),className:`px-3 py-2 text-[12px] font-medium transition-colors ${"files"===n?"border-b-2 border-[var(--vk-orange)] text-[var(--vk-text-strong)]":"border-b-2 border-transparent text-[var(--vk-text-muted)] hover:text-[var(--vk-text-normal)]"}`,children:"Files"})]}),(0,a.jsx)("div",{className:"min-h-0 min-w-0 flex-1 overflow-y-auto overscroll-contain",children:"changes"===n?(0,a.jsx)(D,{sessionId:t,active:s},t):(0,a.jsx)(V,{sessionId:t,active:s&&"files"===n})})]})}var K=s(40448),Q=s(50549),X=s(26083),Y=s(31404),ee=s(59207);let et="block h-5 w-5 shrink-0 object-contain",es=[{id:"finder",label:"Finder"},{id:"cursor",label:"Cursor"},{id:"antigravity",label:"Antigravity"},{id:"windsurf",label:"Windsurf"},{id:"zed",label:"Zed"},{id:"xcode",label:"Xcode"},{id:"vscode",label:"VS Code"},{id:"vscode-insiders",label:"VS Code Insiders"},{id:"intellij-idea",label:"IntelliJ IDEA"},{id:"custom",label:"Custom"}],ea={finder:{kind:"image",imageSrc:"/icons/ide/finder.svg",className:et},vscode:{kind:"image",imageSrc:"/icons/ide/vscode-dark.svg",className:et},"vscode-insiders":{kind:"image",imageSrc:"/icons/ide/vscode-insiders.svg",className:et},cursor:{kind:"image",imageSrc:"/icons/ide/cursor-dark.svg",className:et},windsurf:{kind:"image",imageSrc:"/icons/ide/windsurf-dark.svg",className:et},"intellij-idea":{kind:"image",imageSrc:"/icons/ide/intellij.svg",className:et},zed:{kind:"image",imageSrc:"/icons/ide/zed-dark.svg",className:et},xcode:{kind:"image",imageSrc:"/icons/ide/xcode.svg",className:et},antigravity:{kind:"image",imageSrc:"/icons/ide/antigravity-dark.svg",className:et},custom:{kind:"icon",className:`${et} text-[var(--vk-text-muted)]`}};function en({editorId:e,label:t}){let s=ea[e];return s?"icon"===s.kind?(0,a.jsx)(Q.A,{className:s?.className??`${et} text-[var(--vk-text-muted)]`}):(0,a.jsx)("img",{src:s.imageSrc,alt:`${t} logo`,className:s.className}):(0,a.jsx)(Q.A,{className:`${et} text-[var(--vk-text-muted)]`})}function ei({projectId:e,bridgeId:t}){let{preferences:s}=(0,ee.g)(t),[n,l]=(0,i.useState)(null),r=(0,i.useMemo)(()=>{var e;return e=s?.ide??"vscode",es.find(t=>t.id===e)??{id:e,label:e}},[s?.ide]);async function c(s){if(e&&!n){l(s);try{let a=await fetch((0,Y.S)(`/api/projects/${encodeURIComponent(e)}/open`,t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ide:s})}),n=await a.json().catch(()=>null);if(!a.ok)throw Error(n?.error??`Failed to open project (${a.status})`)}catch(e){window.alert(e instanceof Error?e.message:"Failed to open project")}finally{l(null)}}}return(0,a.jsxs)(K.bL,{children:[(0,a.jsx)(K.l9,{asChild:!0,children:(0,a.jsxs)("button",{type:"button",disabled:!e||null!==n,className:"inline-flex h-9 items-center gap-2 rounded-[6px] border border-[rgba(255,255,255,0.08)] bg-[rgba(255,255,255,0.03)] px-3 text-[13px] text-[var(--vk-text-normal)] transition hover:bg-[rgba(255,255,255,0.06)] disabled:cursor-not-allowed disabled:opacity-60","aria-label":"Open project in code editor",title:e?`Open project in ${r.label}`:"No project selected",children:[n?(0,a.jsx)(A.A,{className:"h-4 w-4 animate-spin text-[var(--vk-text-muted)]"}):(0,a.jsx)(X.A,{className:"h-4 w-4 text-[var(--vk-text-muted)]"}),(0,a.jsx)("span",{className:"hidden font-medium sm:inline",children:"Open"}),(0,a.jsx)(N.A,{className:"h-3.5 w-3.5 text-[var(--vk-text-muted)]"})]})}),(0,a.jsx)(K.ZL,{children:(0,a.jsx)(K.UC,{align:"end",sideOffset:8,className:"z-50 min-w-[240px] rounded-[8px] border border-[rgba(255,255,255,0.08)] bg-[#1c1a19] p-2 shadow-[0_18px_50px_rgba(0,0,0,0.45)]",children:es.map(e=>(0,a.jsxs)(K.q7,{onSelect:()=>void c(e.id),className:"flex min-h-[44px] cursor-default items-center gap-3 rounded-[6px] px-3 py-2 text-[14px] text-[#f3efea] outline-none transition hover:bg-[rgba(255,255,255,0.06)] focus:bg-[rgba(255,255,255,0.06)]",children:[(0,a.jsx)(en,{editorId:e.id,label:e.label}),(0,a.jsx)("span",{className:"flex-1",children:e.label}),r.id===e.id?(0,a.jsx)(w.A,{className:"h-4 w-4 text-[var(--vk-text-muted)]"}):null]},e.id))})})]})}let el=(0,n.default)(()=>s.e(3954).then(s.bind(s,83954)).then(e=>e.SessionTerminal),{loadableGenerated:{webpack:()=>[83954]},loading:()=>(0,a.jsx)("div",{className:"flex h-full min-h-[240px] items-center justify-center text-[13px] text-[var(--vk-text-muted)]",children:"Loading terminal..."})}),er=(0,n.default)(()=>Promise.all([s.e(307),s.e(4089)]).then(s.bind(s,54089)).then(e=>e.SessionPreview),{loadableGenerated:{webpack:()=>[54089]},loading:()=>(0,a.jsx)("div",{className:"flex h-full min-h-[240px] items-center justify-center text-[13px] text-[var(--vk-text-muted)]",children:"Loading preview..."})}),ec=(0,n.default)(()=>s.e(1874).then(s.bind(s,81874)).then(e=>e.SessionSkills),{loadableGenerated:{webpack:()=>[81874]},loading:()=>(0,a.jsx)("div",{className:"flex h-full min-h-[240px] items-center justify-center text-[13px] text-[var(--vk-text-muted)]",children:"Loading skills..."})});function eo(e){return"overview"===e||"terminal"===e||"preview"===e||"skills"===e?e:"terminal"}function ed({sessionId:e,initialSession:t=null,bridgeId:s=null,immersiveMobileMode:n=!1,active:u=!0,onOpenSidebar:m}){let w=(0,l.usePathname)(),k=(0,l.useRouter)(),N=(0,l.useSearchParams)(),{session:y,loading:S,error:C}=(0,j.w)(e,t,{enabled:u,bridgeId:s}),$=(0,i.useRef)(0),A=(0,i.useRef)(!1),[I,E]=(0,i.useState)(null),_=(0,i.useMemo)(()=>eo(N.get("tab")),[N]),F=(0,i.useCallback)(e=>{let t=eo(e),s=new URLSearchParams(N.toString());"terminal"===t?s.delete("tab"):s.set("tab",t);let a=s.toString(),n=a.length>0?`${w}?${a}`:w;k.replace(n,{scroll:!1})},[w,k,N]),M=(0,i.useCallback)(e=>{$.current+=1,E({nonce:$.current,...e})},[]);(0,i.useEffect)(()=>{A.current=!1,$.current=0,E(null)},[e]);let R=(0,i.useCallback)(e=>{e&&u&&"terminal"===_&&!A.current&&(A.current=!0,F("preview"))},[u,_,F]);if(S)return(0,a.jsx)("div",{className:"flex h-full items-center justify-center p-6",children:(0,a.jsx)(g.Zp,{className:"w-full max-w-md",children:(0,a.jsx)(g.Wu,{className:"py-7 text-center text-[13px] text-[var(--text-muted)]",children:"Loading session workspace..."})})});if(C)return(0,a.jsx)("div",{className:"flex h-full items-center justify-center p-6",children:(0,a.jsx)(g.Zp,{className:"w-full max-w-md border-[color:color-mix(in_srgb,var(--status-error)_45%,transparent)]",children:(0,a.jsx)(g.Wu,{className:"py-7 text-center text-[13px] text-[var(--status-error)]",children:C})})});if(!y)return(0,a.jsx)("div",{className:"flex h-full items-center justify-center p-6",children:(0,a.jsx)(g.Zp,{className:"w-full max-w-md",children:(0,a.jsx)(g.Wu,{className:"py-7 text-center text-[13px] text-[var(--text-muted)]",children:"Session not found"})})});let L="string"==typeof y.status?y.status:"unknown",D=function(e){switch(e){case"needs_input":return"needs input";case"working":return"working";case"running":return"running";case"spawning":return"spawning";case"queued":return"queued";default:return e.replace(/[_-]+/g," ")}}(L),q=function(e){switch(e){case"working":case"running":return"bg-amber-400";case"needs_input":return"bg-blue-400";case"spawning":case"queued":default:return"bg-gray-400";case"done":return"bg-emerald-400";case"errored":return"bg-red-400";case"stuck":return"bg-orange-500";case"terminated":case"killed":return"bg-gray-500"}}(L),P="working"===L||"running"===L||"spawning"===L||"queued"===L||"needs_input"===L,T="queued"!==L&&"spawning"!==L,U=u&&n&&"terminal"===_,O=u&&"preview"===_,z="min-h-[38px] gap-1.5 px-2.5 text-[12px] sm:min-h-0 sm:px-3",W=(0,a.jsxs)(p,{className:"flex w-full overflow-x-auto sm:w-fit sm:inline-flex",children:[(0,a.jsxs)(f,{value:"overview",className:z,children:[(0,a.jsx)(r.A,{className:"h-3.5 w-3.5"}),"Overview"]}),(0,a.jsxs)(f,{value:"terminal",className:z,children:[(0,a.jsx)(c.A,{className:"h-3.5 w-3.5"}),"Terminal"]}),(0,a.jsxs)(f,{value:"preview",className:z,children:[(0,a.jsx)(o.A,{className:"h-3.5 w-3.5"}),"Preview"]}),(0,a.jsxs)(f,{value:"skills",className:z,children:[(0,a.jsx)(d.A,{className:"h-3.5 w-3.5"}),"Skills"]})]});return(0,a.jsx)("div",{className:`flex h-full min-h-0 min-w-0 w-full flex-col ${U?"overflow-hidden bg-[#060404]":"overflow-y-auto overscroll-contain lg:overflow-hidden"}`,children:(0,a.jsxs)(h,{value:_,onValueChange:F,className:U?"flex min-h-0 min-w-0 w-full flex-1 flex-col gap-0 p-0":"flex min-h-0 min-w-0 w-full flex-1 flex-col gap-1 p-1 lg:gap-2 lg:p-3",children:[U?(0,a.jsxs)("div",{className:"flex shrink-0 flex-col border-b border-white/10 bg-[#0d0908]",children:[(0,a.jsxs)("div",{className:"flex h-10 items-center gap-2 px-2",children:[m?(0,a.jsx)(b.$,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8 shrink-0 text-[#8e847d] hover:text-[#c9c0b7]",onClick:m,"aria-label":"Open workspace panel",children:(0,a.jsx)(x.A,{className:"h-4 w-4"})}):null,(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-1.5",children:[(0,a.jsx)("span",{className:`inline-block h-2 w-2 shrink-0 rounded-full ${q}${P?" animate-pulse":""}`}),(0,a.jsx)("span",{className:"text-[12px] font-medium text-[#efe8e1]",children:D}),(0,a.jsxs)("span",{className:"font-mono text-[10px] text-[#8e847d]",children:["\xb7 ",e.slice(0,7)]})]}),T?(0,a.jsx)(ei,{projectId:y.projectId,bridgeId:y.bridgeId??null}):null]}),(0,a.jsx)("div",{className:"px-1.5 pb-1.5",children:W})]}):(0,a.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1.5 sm:flex-nowrap",children:[W,(0,a.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:ml-auto sm:w-auto sm:justify-end",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:`inline-block h-2 w-2 shrink-0 rounded-full ${q}${P?" animate-pulse":""}`}),(0,a.jsx)("span",{className:"text-[11px] text-[var(--vk-text-muted)]",children:D}),(0,a.jsxs)("span",{className:"hidden font-mono text-[10px] text-[var(--vk-text-muted)] sm:inline",children:["\xb7 ",e.slice(0,7)]})]}),T?(0,a.jsx)(ei,{projectId:y.projectId,bridgeId:y.bridgeId??null}):null]})]}),(0,a.jsxs)("div",{className:"relative min-h-0 min-w-0 flex-1 overflow-hidden",children:[(0,a.jsx)(v,{value:"overview",className:"min-h-0 h-full min-w-0 w-full overflow-hidden focus-visible:outline-none [&[hidden]]:block data-[state=inactive]:pointer-events-none data-[state=inactive]:absolute data-[state=inactive]:inset-0 data-[state=inactive]:invisible data-[state=inactive]:opacity-0",children:(0,a.jsx)(H,{session:y,sessionId:e,active:u&&"overview"===_})}),(0,a.jsx)(v,{value:"terminal",forceMount:!0,className:U?"flex min-h-0 h-full min-w-0 w-full flex-col overflow-hidden bg-[#060404] focus-visible:outline-none [&[hidden]]:block data-[state=inactive]:pointer-events-none data-[state=inactive]:absolute data-[state=inactive]:inset-0 data-[state=inactive]:invisible data-[state=inactive]:opacity-0":"flex min-h-0 h-full min-w-0 flex-col w-full overflow-hidden bg-transparent focus-visible:outline-none [&[hidden]]:block data-[state=inactive]:pointer-events-none data-[state=inactive]:absolute data-[state=inactive]:inset-0 data-[state=inactive]:invisible data-[state=inactive]:opacity-0",children:(0,a.jsx)(el,{sessionId:e,bridgeId:y.bridgeId??null,sessionState:L,runtimeMode:y.metadata.runtimeMode?.trim()??null,pendingInsert:I,immersiveMobileMode:U})}),(0,a.jsx)(v,{value:"preview",className:"min-h-0 h-full min-w-0 w-full overflow-hidden focus-visible:outline-none [&[hidden]]:block data-[state=inactive]:pointer-events-none data-[state=inactive]:absolute data-[state=inactive]:inset-0 data-[state=inactive]:invisible data-[state=inactive]:opacity-0",children:O?(0,a.jsx)(er,{sessionId:e,active:O,onQueueTerminalInsert:M,onConnectionChange:R},e):null}),(0,a.jsx)(v,{value:"skills",className:"min-h-0 h-full min-w-0 w-full overflow-hidden focus-visible:outline-none [&[hidden]]:block data-[state=inactive]:pointer-events-none data-[state=inactive]:absolute data-[state=inactive]:inset-0 data-[state=inactive]:invisible data-[state=inactive]:opacity-0",children:(0,a.jsx)(ec,{session:y,sessionId:e,active:u&&"skills"===_})})]})]},e)})}},59207:(e,t,s)=>{s.d(t,{g:()=>l});var a=s(7620),n=s(31404);function i(e){return!e||"object"!=typeof e||Array.isArray(e)?{}:{...e}}function l(e,t){let s=t?.enabled??!0,[l,r]=(0,a.useState)(null),[c,o]=(0,a.useState)(s),[d,x]=(0,a.useState)(null),u=(0,a.useCallback)(async()=>{if(!s){r(null),x(null),o(!1);return}try{var t;let s,a,l,c=await fetch((0,n.S)("/api/preferences",e)),o=await c.json().catch(()=>null);if(!c.ok)throw Error(o?.error??o?.reason??`Failed to load preferences: ${c.status}`);r((t=o?.preferences,s=i(t),l=(a=i(s.notifications)).soundFile,{onboardingAcknowledged:!0===s.onboardingAcknowledged,codingAgent:"string"==typeof s.codingAgent&&s.codingAgent.trim().length>0?s.codingAgent.trim():"claude-code",ide:"string"==typeof s.ide&&s.ide.trim().length>0?s.ide.trim():"vscode",markdownEditor:"string"==typeof s.markdownEditor&&s.markdownEditor.trim().length>0?s.markdownEditor.trim():"obsidian",markdownEditorPath:"string"==typeof s.markdownEditorPath?s.markdownEditorPath.trim():"",notifications:{soundEnabled:!1!==a.soundEnabled,soundFile:null===l?null:"string"==typeof l&&l.trim().length>0?l.trim():"abstract-sound-4"}})),x(null)}catch(e){r(null),x(e instanceof Error?e.message:"Failed to load preferences")}finally{o(!1)}},[e,s]);return(0,a.useEffect)(()=>{s&&u()},[s,u]),{preferences:s?l:null,loading:!!s&&c,error:s?d:null,refresh:u}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4443],{12999:(e,l,s)=>{s.d(l,{a:()=>n});var a=s(5974);let n=(0,a.createServerReference)("00ffefc77f6733e1efe7d08986c8d24105eec97ff2",a.callServer,void 0,a.findSourceMapURL,"createOrReadKeylessAction")},34443:(e,l,s)=>{s.r(l),s.d(l,{KeylessCreatorOrReader:()=>r});var a=s(79748),n=s(7620),t=s(12999);let r=e=>{var l;let{children:s}=e,r=(null==(l=(0,a.useSelectedLayoutSegments)()[0])?void 0:l.startsWith("/_not-found"))||!1,[i,c]=n.useActionState(t.a,null);return((0,n.useEffect)(()=>{r||n.startTransition(()=>{c()})},[r]),n.isValidElement(s))?n.cloneElement(s,{key:null==i?void 0:i.publishableKey,publishableKey:null==i?void 0:i.publishableKey,__internal_keyless_claimKeylessApplicationUrl:null==i?void 0:i.claimUrl,__internal_keyless_copyInstanceKeysUrl:null==i?void 0:i.apiKeysUrl,__internal_bypassMissingPublishableKey:!0}):s}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4535],{14796:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},74535:(e,t,r)=>{r.r(t),r.d(t,{SessionDiff:()=>R});var n=r(54568);class a{diff(e,t,r={}){let n;"function"==typeof r?(n=r,r={}):"callback"in r&&(n=r.callback);let a=this.castInput(e,r),s=this.castInput(t,r),i=this.removeEmpty(this.tokenize(a,r)),l=this.removeEmpty(this.tokenize(s,r));return this.diffWithOptionsObj(i,l,r,n)}diffWithOptionsObj(e,t,r,n){var a;let s=e=>(e=this.postProcess(e,r),n)?void setTimeout(function(){n(e)},0):e,i=t.length,l=e.length,d=1,o=i+l;null!=r.maxEditLength&&(o=Math.min(o,r.maxEditLength));let c=null!=(a=r.timeout)?a:1/0,u=Date.now()+c,x=[{oldPos:-1,lastComponent:void 0}],m=this.extractCommon(x[0],t,e,0,r);if(x[0].oldPos+1>=l&&m+1>=i)return s(this.buildValues(x[0].lastComponent,t,e));let p=-1/0,v=1/0,h=()=>{for(let n=Math.max(p,-d);n<=Math.min(v,d);n+=2){let a,d=x[n-1],o=x[n+1];d&&(x[n-1]=void 0);let c=!1;if(o){let e=o.oldPos-n;c=o&&0<=e&&e<i}let u=d&&d.oldPos+1<l;if(!c&&!u){x[n]=void 0;continue}if(a=!u||c&&d.oldPos<o.oldPos?this.addToPath(o,!0,!1,0,r):this.addToPath(d,!1,!0,1,r),m=this.extractCommon(a,t,e,n,r),a.oldPos+1>=l&&m+1>=i)return s(this.buildValues(a.lastComponent,t,e))||!0;x[n]=a,a.oldPos+1>=l&&(v=Math.min(v,n-1)),m+1>=i&&(p=Math.max(p,n+1))}d++};if(n)!function e(){setTimeout(function(){if(d>o||Date.now()>u)return n(void 0);h()||e()},0)}();else for(;d<=o&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,r,n,a){let s=e.lastComponent;return s&&!a.oneChangePerToken&&s.added===t&&s.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:s.count+1,added:t,removed:r,previousComponent:s.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:s}}}extractCommon(e,t,r,n,a){let s=t.length,i=r.length,l=e.oldPos,d=l-n,o=0;for(;d+1<s&&l+1<i&&this.equals(r[l+1],t[d+1],a);)d++,l++,o++,a.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return o&&!a.oneChangePerToken&&(e.lastComponent={count:o,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=l,d}equals(e,t,r){return r.comparator?r.comparator(e,t):e===t||!!r.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,r){let n,a=[];for(;e;)a.push(e),n=e.previousComponent,delete e.previousComponent,e=n;a.reverse();let s=a.length,i=0,l=0,d=0;for(;i<s;i++){let e=a[i];if(e.removed)e.value=this.join(r.slice(d,d+e.count)),d+=e.count;else{if(!e.added&&this.useLongestToken){let n=t.slice(l,l+e.count);n=n.map(function(e,t){let n=r[d+t];return n.length>e.length?n:e}),e.value=this.join(n)}else e.value=this.join(t.slice(l,l+e.count));l+=e.count,e.added||(d+=e.count)}}return a}}class s extends a{constructor(){super(...arguments),this.tokenize=l}equals(e,t,r){return r.ignoreWhitespace?(r.newlineIsToken&&e.includes("\n")||(e=e.trim()),r.newlineIsToken&&t.includes("\n")||(t=t.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(e.endsWith("\n")&&(e=e.slice(0,-1)),t.endsWith("\n")&&(t=t.slice(0,-1))),super.equals(e,t,r)}}let i=new s;function l(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));let r=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(let e=0;e<n.length;e++){let a=n[e];e%2&&!t.newlineIsToken?r[r.length-1]+=a:r.push(a)}return r}var d=r(7620),o=r(13454);let c=(0,o.A)("git-compare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]);var u=r(60527),x=r(23555),m=r(14796),p=r(76265),v=r(34041);let h=(0,o.A)("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]]);var f=r(58299),g=r(90986),b=r(46916),k=r(17210),y=r(77522);let w={loading:!1,loaded:!1,error:null,data:null},j={hasDiff:!1,generatedAt:"",source:"not-found",truncated:!1,branch:"",defaultBranch:"",files:[],untracked:[],sections:{againstBase:[],staged:[],unstaged:[],untracked:[]}},N="conductor-session-diff-view-mode",C="conductor-session-diff-hide-unchanged",P=["against-base","staged","unstaged","untracked"],L={"against-base":"Against base",staged:"Staged",unstaged:"Unstaged",untracked:"Untracked"};function _(e){return"string"!=typeof e?"":e.trim().replace(/^\/+/,"").replace(/\/+/g,"/")}function S(e){return"modified"===e||"added"===e||"deleted"===e||"renamed"===e||"copy"===e||"binary"===e||"untracked"===e?e:"unknown"}function A(e){let t=_(e.path);return t?{path:t,oldPath:_(e.oldPath??"")||null,status:S(e.status),additions:Number.isFinite(e.additions)?Math.max(0,Number(e.additions)):0,deletions:Number.isFinite(e.deletions)?Math.max(0,Number(e.deletions)):0}:null}function B(e,t){return"against-base"===t?e.againstBase:e[t]}function E(e,t){return`${e}:${t.oldPath??""}:${t.path}`}function M(e){return"added"===e.status?"Added":"deleted"===e.status?"Deleted":"renamed"===e.status?"Renamed":"copy"===e.status?"Copied":"binary"===e.status?"Binary":"untracked"===e.status?"Untracked":"modified"===e.status?"Modified":"Changed"}function T(e){return"added"===e.status||"untracked"===e.status?"border-[rgba(84,176,79,0.35)] bg-[rgba(84,176,79,0.08)] text-[var(--vk-green)]":"deleted"===e.status?"border-[rgba(210,81,81,0.35)] bg-[rgba(210,81,81,0.08)] text-[var(--vk-red)]":"renamed"===e.status||"copy"===e.status?"border-[rgba(108,168,255,0.35)] bg-[rgba(108,168,255,0.08)] text-[var(--status-working)]":"binary"===e.status?"border-[rgba(210,160,59,0.35)] bg-[rgba(210,160,59,0.08)] text-[var(--status-attention)]":"border-[var(--vk-border)] bg-[rgba(255,255,255,0.02)] text-[var(--vk-text-muted)]"}function K(e){return!Number.isFinite(e)||e<=0?"0 B":e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`}function $(e){if(!e)return[];let t=e.replace(/\r\n/g,"\n");if(0===t.length)return[];let r=t.split("\n");return t.endsWith("\n")&&r.pop(),r}function D(e,t,r,n,a,s){return{kind:"content",oldKind:e,newKind:t,oldLine:r,newLine:n,oldText:a,newText:s}}function z(e){return"add"===e?"bg-[rgba(84,176,79,0.12)] text-[var(--vk-green)]":"remove"===e?"bg-[rgba(210,81,81,0.12)] text-[var(--vk-red)]":"context"===e?"text-[var(--vk-text-normal)]":"text-[var(--vk-text-muted)]"}function I({rows:e}){return(0,n.jsxs)("div",{className:"min-w-[480px] sm:min-w-[720px] overflow-hidden rounded-[12px] border border-[var(--vk-border)] bg-[rgba(0,0,0,0.12)]",children:[(0,n.jsxs)("div",{className:"grid grid-cols-[2.5rem_minmax(0,1fr)_2.5rem_minmax(0,1fr)] sm:grid-cols-[4rem_minmax(0,1fr)_4rem_minmax(0,1fr)] border-b border-[var(--vk-border)] bg-[rgba(255,255,255,0.03)] text-[10px] font-medium uppercase tracking-[0.12em] text-[var(--vk-text-muted)]",children:[(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-2 py-2",children:"Old"}),(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-3 py-2",children:"Before"}),(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-2 py-2",children:"New"}),(0,n.jsx)("div",{className:"px-3 py-2",children:"After"})]}),(0,n.jsx)("div",{className:"font-mono text-[11px] sm:text-[12px] leading-6",children:e.map((e,t)=>"skip"===e.kind?(0,n.jsx)("div",{className:"border-b border-[var(--vk-border)] bg-[rgba(255,255,255,0.03)] px-3 py-2 text-center text-[11px] text-[var(--vk-text-muted)] last:border-b-0",children:e.message},`skip-${t}`):(0,n.jsxs)("div",{className:"grid grid-cols-[2.5rem_minmax(0,1fr)_2.5rem_minmax(0,1fr)] sm:grid-cols-[4rem_minmax(0,1fr)_4rem_minmax(0,1fr)] border-b border-[var(--vk-border)] last:border-b-0",children:[(0,n.jsx)("div",{className:(0,b.cn)("border-r border-[var(--vk-border)] px-2 py-1 text-right text-[11px] text-[var(--vk-text-muted)]",z(e.oldKind)),children:e.oldLine??""}),(0,n.jsx)("div",{className:(0,b.cn)("border-r border-[var(--vk-border)] px-3 py-1 whitespace-pre overflow-x-auto",z(e.oldKind)),children:e.oldText||" "}),(0,n.jsx)("div",{className:(0,b.cn)("border-r border-[var(--vk-border)] px-2 py-1 text-right text-[11px] text-[var(--vk-text-muted)]",z(e.newKind)),children:e.newLine??""}),(0,n.jsx)("div",{className:(0,b.cn)("px-3 py-1 whitespace-pre overflow-x-auto",z(e.newKind)),children:e.newText||" "})]},`${e.oldLine??"x"}:${e.newLine??"y"}:${t}`))})]})}function F({rows:e}){return(0,n.jsxs)("div",{className:"overflow-hidden rounded-[12px] border border-[var(--vk-border)] bg-[rgba(0,0,0,0.12)]",children:[(0,n.jsxs)("div",{className:"grid grid-cols-[2rem_2rem_1rem_minmax(0,1fr)] sm:grid-cols-[4rem_4rem_1.5rem_minmax(0,1fr)] border-b border-[var(--vk-border)] bg-[rgba(255,255,255,0.03)] text-[10px] font-medium uppercase tracking-[0.12em] text-[var(--vk-text-muted)]",children:[(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-2 py-2",children:"Old"}),(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-2 py-2",children:"New"}),(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-2 py-2",children:"Op"}),(0,n.jsx)("div",{className:"px-3 py-2",children:"Content"})]}),(0,n.jsx)("div",{className:"font-mono text-[11px] sm:text-[12px] leading-6",children:e.map((e,t)=>{var r,a;return"skip"===e.kind?(0,n.jsx)("div",{className:"border-b border-[var(--vk-border)] bg-[rgba(255,255,255,0.03)] px-3 py-2 text-center text-[11px] text-[var(--vk-text-muted)] last:border-b-0",children:e.message},`skip-${t}`):(0,n.jsxs)("div",{className:(0,b.cn)("grid grid-cols-[2rem_2rem_1rem_minmax(0,1fr)] sm:grid-cols-[4rem_4rem_1.5rem_minmax(0,1fr)] border-b border-[var(--vk-border)] last:border-b-0","add"===(r=e.lineKind)?"bg-[rgba(84,176,79,0.12)] text-[var(--vk-green)]":"remove"===r?"bg-[rgba(210,81,81,0.12)] text-[var(--vk-red)]":"text-[var(--vk-text-normal)]"),children:[(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-2 py-1 text-right text-[11px] text-[var(--vk-text-muted)]",children:e.oldLine??""}),(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-2 py-1 text-right text-[11px] text-[var(--vk-text-muted)]",children:e.newLine??""}),(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-2 py-1 text-center",children:"add"===(a=e.lineKind)?"+":"remove"===a?"-":" "}),(0,n.jsx)("div",{className:"px-3 py-1 whitespace-pre overflow-x-auto",children:e.text||" "})]},`${e.oldLine??"x"}:${e.newLine??"y"}:${t}`)})})]})}function R({sessionId:e,active:t}){var r;let a=encodeURIComponent(e),[s,l]=(0,d.useState)(j),[o,_]=(0,d.useState)(!0),[z,O]=(0,d.useState)(null),[q,U]=(0,d.useState)(()=>"side-by-side"===window.localStorage.getItem(N)?"side-by-side":"inline"),[W,V]=(0,d.useState)(()=>"true"===window.localStorage.getItem(C)),[H,J]=(0,d.useState)(""),[Z,G]=(0,d.useState)({"against-base":!1,staged:!1,unstaged:!1,untracked:!0}),[Q,X]=(0,d.useState)(null),[Y,ee]=(0,d.useState)({}),et=(0,d.useRef)(!0),er=(0,d.useRef)(""),en=(0,d.useRef)(null),ea=(0,d.useRef)(!1),es=(0,d.useDeferredValue)(H.trim().toLowerCase()),ei=(0,d.useCallback)(async()=>{try{let e=await fetch(`/api/sessions/${a}/diff`,{cache:"no-store"});if(!e.ok){if(404===e.status){if(!et.current)return;l(j),O(null),ee({});return}let t=`Failed to fetch diff (${e.status})`;try{let r=await e.json();"string"==typeof r.error&&r.error.length>0&&(t=r.error)}catch{}throw Error(t)}let t=await e.json();if(!et.current)return;if(t.error)throw Error(t.error);let r={hasDiff:!!t.hasDiff,generatedAt:"string"==typeof t.generatedAt?t.generatedAt:"",source:"working-tree"===t.source||"remote-pr"===t.source?t.source:"not-found",truncated:!!t.truncated,branch:"string"==typeof t.branch?t.branch:"",defaultBranch:"string"==typeof t.defaultBranch?t.defaultBranch:"",files:Array.isArray(t.files)?t.files:[],untracked:Array.isArray(t.untracked)?t.untracked.filter(e=>"string"==typeof e):[],sections:t.sections},n=JSON.stringify({hasDiff:r.hasDiff,source:r.source,truncated:r.truncated,branch:r.branch,defaultBranch:r.defaultBranch,files:r.files,untracked:r.untracked,sections:r.sections});l(r),er.current!==n&&(er.current=n,ee({})),O(null)}catch(e){if(!et.current)return;l(j),O(e instanceof Error?e.message:"Failed to load diff")}finally{et.current&&_(!1)}},[a]),el=(0,d.useCallback)(async(e,t)=>{let{category:r,file:n,fileKey:s}=e;ee(e=>{let t=e[s];return t?.loading||t?.loaded?e:{...e,[s]:{loading:!0,loaded:!1,error:null,data:null}}});try{let e=new URLSearchParams({path:n.path,category:r,status:n.status});n.oldPath&&e.set("oldPath",n.oldPath),t&&e.set("baseBranch",t);let i=await fetch(`/api/sessions/${a}/diff?${e.toString()}`,{cache:"no-store"});if(!i.ok){let e=`Failed to load diff contents (${i.status})`;try{let t=await i.json();"string"==typeof t.error&&t.error.length>0&&(e=t.error)}catch{}throw Error(e)}let l=await i.json();if(!et.current)return;if(l.error)throw Error(l.error);ee(e=>({...e,[s]:{loading:!1,loaded:!0,error:null,data:{path:"string"==typeof l.path?l.path:n.path,oldPath:"string"==typeof l.oldPath?l.oldPath:null,status:S(l.status),category:"staged"===l.category||"unstaged"===l.category||"untracked"===l.category?l.category:"against-base",baseBranch:"string"==typeof l.baseBranch?l.baseBranch:t,binary:!!l.binary,truncated:!!l.truncated,originalSize:Number.isFinite(l.originalSize)?Math.max(0,Number(l.originalSize)):0,modifiedSize:Number.isFinite(l.modifiedSize)?Math.max(0,Number(l.modifiedSize)):0,original:"string"==typeof l.original||null===l.original?l.original:"",modified:"string"==typeof l.modified||null===l.modified?l.modified:""}}}))}catch(e){if(!et.current)return;ee(t=>({...t,[s]:{loading:!1,loaded:!0,error:e instanceof Error?e.message:"Failed to load diff contents",data:null}}))}},[a]);(0,d.useEffect)(()=>{if(et.current=!0,en.current=null,ea.current=!1,!t)return()=>{et.current=!1};ei();let r=(0,k.L)(t=>{if(!et.current)return;let r=t.sessions.find(t=>t.id===e);if(!r)return;ea.current=y.C.has(r.status);let n=`${r.status}:${r.lastActivityAt}`;en.current!==n&&(en.current=n,ei())}),n=null,a=()=>{let e="visible"!==document.visibilityState||ea.current?3e4:15e3;n=window.setTimeout(async()=>{et.current&&(await ei(),et.current&&a())},e)};a();let s=()=>{en.current=null,ei()},i=()=>{"visible"===document.visibilityState&&s()};return window.addEventListener("focus",s),document.addEventListener("visibilitychange",i),()=>{et.current=!1,r(),null!=n&&window.clearTimeout(n),window.removeEventListener("focus",s),document.removeEventListener("visibilitychange",i)}},[t,ei,e]),(0,d.useEffect)(()=>{window.localStorage.setItem(N,q)},[q]),(0,d.useEffect)(()=>{window.localStorage.setItem(C,W?"true":"false")},[W]),(0,d.useEffect)(()=>{_(!0),O(null),er.current="",J(""),X(null),ee({}),G({"against-base":!1,staged:!1,unstaged:!1,untracked:!0})},[e]);let ed=(0,d.useMemo)(()=>{let e,t,r,n,a,i;return t=(e=e=>Array.isArray(e)?e.map(e=>A(e)).filter(e=>null!==e):[])(s.sections?.againstBase??s.files??[]),r=e(s.sections?.staged??[]),n=e(s.sections?.unstaged??[]),a=e(s.sections?.untracked??[]).concat(Array.isArray(s.untracked)?s.untracked.map(e=>A({path:e,status:"untracked",additions:0,deletions:0})).filter(e=>null!==e):[]),{againstBase:(i=e=>{let t=new Map;for(let r of e)t.set(`${r.path}:${r.oldPath??""}:${r.status}`,r);return[...t.values()].sort((e,t)=>e.path.localeCompare(t.path,void 0,{sensitivity:"base"}))})(t),staged:i(r),unstaged:i(n),untracked:i(a)}},[s]),eo=(0,d.useMemo)(()=>{if(!es)return ed;let e=e=>e.filter(e=>{let t=e.oldPath??"";return e.path.toLowerCase().includes(es)||t.toLowerCase().includes(es)});return{againstBase:e(ed.againstBase),staged:e(ed.staged),unstaged:e(ed.unstaged),untracked:e(ed.untracked)}},[es,ed]),ec=(0,d.useMemo)(()=>{let e=new Map;for(let t of P)for(let r of B(ed,t)){let n=E(t,r);e.has(n)||e.set(n,r)}let t=0,r=0;for(let n of e.values())t+=n.additions,r+=n.deletions;return{files:e.size,additions:t,deletions:r}},[ed]),eu=(0,d.useMemo)(()=>{let e=[];for(let t of P)for(let r of B(eo,t))e.push({category:t,file:r,fileKey:E(t,r)});return e},[eo]),ex=(0,d.useMemo)(()=>{let e=new Map;for(let t of P)for(let r of B(ed,t)){let n=E(t,r);e.set(n,{category:t,file:r,fileKey:n})}return e},[ed]);(0,d.useEffect)(()=>{0===eu.length?X(null):X(e=>e&&eu.some(t=>t.fileKey===e)?e:eu[0]?.fileKey??null)},[eu]);let em=Q?ex.get(Q)??null:null,ep=em?Y[em.fileKey]??w:w,ev=eu.length>0,eh=s.defaultBranch?.trim()||"main";(0,d.useEffect)(()=>{if(!t||!em)return;let e=Y[em.fileKey];e?.loading||e?.loaded||el(em,eh)},[t,eh,Y,el,em]);let ef=(0,d.useMemo)(()=>{let e=ep.data;if(!e||e.binary)return[];let t=function(e,t){let r=i.diff(e,t,void 0),n=[],a=1,s=1;for(let e=0;e<r.length;e+=1){let t=r[e],i=$(t.value);if(t.removed){let t=r[e+1],l=t?.added?$(t.value):[],d=Math.max(i.length,l.length);for(let e=0;e<d;e+=1){let t=i[e]??"",r=l[e]??"",d=e<i.length,o=e<l.length;n.push(D(d?"remove":"empty",o?"add":"empty",d?a+e:null,o?s+e:null,t,r))}a+=i.length,t?.added&&(s+=l.length,e+=1);continue}if(t.added){for(let e=0;e<i.length;e+=1)n.push(D("empty","add",null,s,"",i[e]??"")),s+=1;continue}for(let e of i)n.push(D("context","context",a,s,e,e)),a+=1,s+=1}return n}(e.original??"",e.modified??"");return W?function(e){if(0===e.length)return e;let t=[],r=0;for(;r<e.length;){let n=e[r];if("content"!==n.kind||"context"!==n.oldKind||"context"!==n.newKind){t.push(n),r+=1;continue}let a=r;for(;a<e.length;){let t=e[a];if("content"!==t.kind||"context"!==t.oldKind||"context"!==t.newKind)break;a+=1}let s=e.slice(r,a);s.length<=7?t.push(...s):(t.push(...s.slice(0,3)),t.push({kind:"skip",oldKind:"empty",newKind:"empty",oldLine:null,newLine:null,oldText:"",newText:"",message:`${s.length-6} unchanged lines hidden`}),t.push(...s.slice(-3))),r=a}return t}(t):t},[W,ep.data]),eg=(0,d.useMemo)(()=>(function(e){let t=[];for(let r of e){if("skip"===r.kind){t.push({kind:"skip",lineKind:"context",oldLine:null,newLine:null,text:"",message:r.message});continue}if("context"===r.oldKind&&"context"===r.newKind){t.push({kind:"content",lineKind:"context",oldLine:r.oldLine,newLine:r.newLine,text:r.oldText});continue}"remove"===r.oldKind&&t.push({kind:"content",lineKind:"remove",oldLine:r.oldLine,newLine:null,text:r.oldText}),"add"===r.newKind&&t.push({kind:"content",lineKind:"add",oldLine:null,newLine:r.newLine,text:r.newText})}return t})(ef),[ef]),eb=(0,d.useCallback)(e=>{G(t=>({...t,[e]:!t[e]}))},[]);return(0,n.jsxs)("div",{className:"flex h-full min-h-0 flex-col overflow-hidden rounded-[10px] border border-[var(--vk-border)] bg-[var(--vk-bg-panel)]",children:[(0,n.jsxs)("div",{className:"flex min-h-[42px] shrink-0 items-center gap-2 border-b border-[var(--vk-border)] px-3",children:[(0,n.jsx)(c,{className:"h-[15px] w-[15px] text-[var(--vk-text-muted)]"}),(0,n.jsx)("span",{className:"truncate text-[13px] font-medium text-[var(--vk-text-strong)]",children:"Review Diff"}),(0,n.jsx)(g.E,{variant:"outline",children:"working-tree"===(r=s.source)?"Working tree":"remote-pr"===r?"Remote PR":"Not found"}),s.branch?(0,n.jsx)(g.E,{variant:"outline",children:s.branch}):null,s.defaultBranch?(0,n.jsxs)(g.E,{variant:"outline",children:["base ",s.defaultBranch]}):null,(0,n.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,n.jsx)("span",{className:"hidden text-[11px] text-[var(--vk-text-muted)] lg:inline",children:function(e){if(!e)return"Not generated";let t=new Date(e);return Number.isNaN(t.getTime())?"Not generated":new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZone:"UTC"}).format(t)}(s.generatedAt)}),(0,n.jsx)("button",{type:"button",onClick:()=>void ei(),disabled:o,className:"inline-flex h-[24px] w-[24px] items-center justify-center rounded-[6px] text-[var(--vk-text-muted)] hover:bg-[var(--vk-bg-hover)] disabled:opacity-60","aria-label":"Refresh diff",children:(0,n.jsx)(u.A,{className:(0,b.cn)("h-[14px] w-[14px]",o&&"animate-spin")})})]})]}),(0,n.jsxs)("div",{className:"sticky top-0 z-10 flex shrink-0 items-center gap-3 border-b border-[var(--vk-border)] bg-[var(--vk-bg-panel)] px-3 py-2.5",children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3 text-[12px] text-[var(--vk-text-muted)]",children:[(0,n.jsxs)("span",{children:[ec.files," files"]}),(0,n.jsxs)("span",{className:"font-mono text-[var(--vk-green)]",children:["+",ec.additions]}),(0,n.jsxs)("span",{className:"font-mono text-[var(--vk-red)]",children:["-",ec.deletions]}),s.truncated?(0,n.jsx)("span",{className:"text-[var(--status-attention)]",children:"Summary truncated"}):null]}),(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)("button",{type:"button",onClick:()=>U("side-by-side"),className:(0,b.cn)("rounded-[6px] px-2 py-1 text-[11px]","side-by-side"===q?"bg-[var(--vk-bg-active)] text-[var(--vk-text-strong)]":"text-[var(--vk-text-muted)] hover:bg-[var(--vk-bg-hover)]"),children:"Split"}),(0,n.jsx)("button",{type:"button",onClick:()=>U("inline"),className:(0,b.cn)("rounded-[6px] px-2 py-1 text-[11px]","inline"===q?"bg-[var(--vk-bg-active)] text-[var(--vk-text-strong)]":"text-[var(--vk-text-muted)] hover:bg-[var(--vk-bg-hover)]"),children:"Inline"}),(0,n.jsx)("button",{type:"button",onClick:()=>V(e=>!e),className:(0,b.cn)("rounded-[6px] px-2 py-1 text-[11px]",W?"bg-[var(--vk-bg-active)] text-[var(--vk-text-strong)]":"text-[var(--vk-text-muted)] hover:bg-[var(--vk-bg-hover)]"),children:W?"Show all":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"hidden sm:inline",children:"Hide unchanged"}),(0,n.jsx)("span",{className:"sm:hidden",children:"Hide"})]})})]})]}),(0,n.jsx)("div",{className:"shrink-0 border-b border-[var(--vk-border)] p-2",children:(0,n.jsxs)("label",{className:"flex items-center gap-2 rounded-[8px] border border-[var(--vk-border)] bg-[rgba(255,255,255,0.02)] px-2.5 py-2",children:[(0,n.jsx)(x.A,{className:"h-4 w-4 text-[var(--vk-text-muted)]"}),(0,n.jsx)("input",{type:"text",value:H,onChange:e=>J(e.target.value),placeholder:"Search changed files...",className:"w-full bg-transparent text-[13px] text-[var(--vk-text-normal)] outline-none placeholder:text-[var(--vk-text-muted)]"})]})}),(0,n.jsxs)("div",{className:"min-h-0 flex-1 overflow-hidden",children:[!o||s.hasDiff||z?null:(0,n.jsx)("div",{className:"flex h-full items-center justify-center p-8 text-[13px] text-[var(--vk-text-muted)]",children:"Loading session diff..."}),z?(0,n.jsx)("div",{className:"flex h-full items-center justify-center p-8 text-center text-[13px] text-[var(--status-error)]",children:z}):null,o||z||ev?null:(0,n.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-8 text-center",children:[(0,n.jsx)(m.A,{className:"h-7 w-7 text-[var(--vk-text-muted)]"}),(0,n.jsx)("p",{className:"text-[13px] text-[var(--vk-text-muted)]",children:es?"No files match the current search.":"No changed files in this session yet."})]}),!z&&ev?(0,n.jsxs)("div",{className:"grid h-full min-h-0 grid-rows-[minmax(10rem,14rem)_minmax(0,1fr)] sm:grid-rows-[minmax(14rem,18rem)_minmax(0,1fr)] lg:grid-cols-[320px_minmax(0,1fr)] lg:grid-rows-1",children:[(0,n.jsx)("div",{className:"min-h-0 overflow-y-auto border-b border-[var(--vk-border)] lg:border-b-0 lg:border-r",children:P.map(e=>{let t=B(eo,e);if(0===t.length)return null;let r=Z[e];return(0,n.jsxs)("section",{className:"border-b border-[var(--vk-border)] last:border-b-0",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>eb(e),className:"sticky top-0 z-[5] flex w-full items-center gap-2 bg-[var(--vk-bg-panel)] px-3 py-2 text-left text-[12px] text-[var(--vk-text-muted)]",children:[r?(0,n.jsx)(p.A,{className:"h-4 w-4"}):(0,n.jsx)(v.A,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"font-medium text-[var(--vk-text-normal)]",children:L[e]}),(0,n.jsx)("span",{className:"font-mono text-[var(--vk-text-muted)]",children:t.length})]}),r?null:(0,n.jsx)("div",{className:"py-1",children:t.map(t=>{let r=E(e,t),a=r===Q;return(0,n.jsxs)("button",{type:"button",onClick:()=>X(r),className:(0,b.cn)("flex w-full items-start gap-2 border-l-2 px-3 py-2.5 text-left transition",a?"border-l-[var(--status-working)] bg-[rgba(108,168,255,0.08)]":"border-l-transparent hover:bg-[var(--vk-bg-hover)]"),children:[(0,n.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,n.jsx)("span",{className:"block truncate font-mono text-[12px] text-[var(--vk-text-strong)]",children:t.path}),(0,n.jsxs)("span",{className:"mt-0.5 flex items-center gap-2",children:[(0,n.jsx)("span",{className:(0,b.cn)("inline-flex h-[20px] items-center rounded-[6px] border px-1.5 text-[10px]",T(t)),children:M(t)}),t.oldPath?(0,n.jsx)("span",{className:"truncate font-mono text-[10px] text-[var(--vk-text-muted)]",children:t.oldPath}):(0,n.jsx)("span",{className:"text-[10px] text-[var(--vk-text-muted)]",children:L[e]})]})]}),(0,n.jsxs)("span",{className:"shrink-0 font-mono text-[11px]",children:[t.additions>0?(0,n.jsxs)("span",{className:"block text-right text-[var(--vk-green)]",children:["+",t.additions]}):null,t.deletions>0?(0,n.jsxs)("span",{className:"block text-right text-[var(--vk-red)]",children:["-",t.deletions]}):null,0===t.additions&&0===t.deletions?(0,n.jsx)("span",{className:"block text-right text-[var(--vk-text-muted)]",children:"0"}):null]})]},r)})})]},e)})}),(0,n.jsx)("div",{className:"min-h-0 overflow-hidden",children:em?(0,n.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,n.jsxs)("div",{className:"border-b border-[var(--vk-border)] px-4 py-3",children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,n.jsx)("span",{className:(0,b.cn)("inline-flex h-[24px] items-center rounded-[6px] border px-2 text-[11px]",T(em.file)),children:M(em.file)}),(0,n.jsx)("span",{className:"truncate font-mono text-[13px] text-[var(--vk-text-strong)]",children:em.file.path})]}),(0,n.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-[11px] text-[var(--vk-text-muted)]",children:[(0,n.jsx)("span",{children:L[em.category]}),em.file.oldPath?(0,n.jsxs)("span",{className:"font-mono",children:[em.file.oldPath," -> ",em.file.path]}):null,(0,n.jsxs)("span",{className:"font-mono text-[var(--vk-green)]",children:["+",em.file.additions]}),(0,n.jsxs)("span",{className:"font-mono text-[var(--vk-red)]",children:["-",em.file.deletions]})]})]}),(0,n.jsxs)("div",{className:"min-h-0 flex-1 overflow-auto px-4 py-4",children:[ep.loading?(0,n.jsxs)("div",{className:"flex h-full min-h-[240px] items-center justify-center gap-2 text-[13px] text-[var(--vk-text-muted)]",children:[(0,n.jsx)(f.A,{className:"h-4 w-4 animate-spin"}),(0,n.jsx)("span",{children:"Loading diff..."})]}):null,ep.error?(0,n.jsx)("div",{className:"flex min-h-[180px] items-center justify-center px-4 py-8 text-center text-[13px] text-[var(--status-error)]",children:ep.error}):null,!ep.loading&&!ep.error&&ep.data?.binary?(0,n.jsxs)("div",{className:"flex min-h-[180px] items-center justify-center px-4 py-8 text-center text-[12px] text-[var(--vk-text-muted)]",children:["Binary file preview is not available for ",e.slice(0,6),"."]}):null,ep.loading||ep.error||!ep.data||ep.data.binary?null:(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-3 text-[11px] text-[var(--vk-text-muted)]",children:[(0,n.jsxs)("span",{children:["Base: ",ep.data.baseBranch||eh]}),(0,n.jsxs)("span",{children:["Original: ",K(ep.data.originalSize)]}),(0,n.jsxs)("span",{children:["Modified: ",K(ep.data.modifiedSize)]}),ep.data.truncated?(0,n.jsx)("span",{className:"text-[var(--status-attention)]",children:"Preview truncated to 1 MB."}):null]}),(0,n.jsx)("div",{className:"overflow-auto pb-4",children:"side-by-side"===q?(0,n.jsx)(I,{rows:ef}):(0,n.jsx)(F,{rows:eg})})]}),ep.loading||ep.error||ep.data?null:(0,n.jsx)("div",{className:"flex min-h-[180px] items-center justify-center px-4 py-8 text-center text-[12px] text-[var(--vk-text-muted)]",children:"No diff content available for this file."})]})]}):(0,n.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-3 p-8 text-center",children:[(0,n.jsx)(h,{className:"h-8 w-8 text-[var(--vk-text-muted)]"}),(0,n.jsx)("p",{className:"text-[13px] text-[var(--vk-text-muted)]",children:"Select a file to inspect its diff."})]})})]}):null]})]})}},77522:(e,t,r)=>{r.d(t,{C:()=>n,n:()=>a});let n=new Set(["archived","done","killed","errored","terminated","merged","cleanup"]);function a(e){return"merged"===e.status||"archived"===e.status||"killed"===e.status||"errored"===e.status||"cleanup"===e.status||"done"===e.status||"terminated"===e.status||e.pr&&("merged"===e.pr.state||"closed"===e.pr.state)?"done":"mergeable"===e.status||"approved"===e.status||e.pr?.mergeability.mergeable?"merge":"waiting_input"===e.activity||"blocked"===e.activity||"needs_input"===e.status||"stuck"===e.status?"respond":"queued"===e.status?"pending":"exited"===e.activity?"respond":"ci_failed"===e.status||"changes_requested"===e.status||e.pr&&("failing"===e.pr.ciStatus||"changes_requested"===e.pr.reviewDecision||!e.pr.mergeability.noConflicts)?"review":"review_pending"===e.status||e.pr&&!e.pr.isDraft&&("pending"===e.pr.reviewDecision||"none"===e.pr.reviewDecision)?"pending":"working"}},90986:(e,t,r)=>{r.d(t,{E:()=>i});var n=r(54568),a=r(46916);let s={default:"border-[var(--vk-border)] bg-[var(--vk-bg-panel)] text-[var(--vk-text-muted)]",success:"border-transparent bg-transparent text-[var(--vk-green)]",warning:"border-transparent bg-transparent text-[var(--vk-orange)]",error:"border-transparent bg-transparent text-[var(--vk-red)]",info:"border-transparent bg-transparent text-[var(--vk-text-muted)]",outline:"border-[var(--vk-border)] bg-transparent text-[var(--vk-text-muted)]"};function i({variant:e="default",className:t,children:r}){return(0,n.jsx)("span",{className:(0,a.cn)("inline-flex items-center gap-1 rounded-[3px] border px-1.5 py-0.5 text-[11px] leading-none",s[e],t),children:r})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4535],{14796:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},74535:(e,t,r)=>{r.r(t),r.d(t,{SessionDiff:()=>R});var n=r(54568);class a{diff(e,t,r={}){let n;"function"==typeof r?(n=r,r={}):"callback"in r&&(n=r.callback);let a=this.castInput(e,r),s=this.castInput(t,r),i=this.removeEmpty(this.tokenize(a,r)),l=this.removeEmpty(this.tokenize(s,r));return this.diffWithOptionsObj(i,l,r,n)}diffWithOptionsObj(e,t,r,n){var a;let s=e=>(e=this.postProcess(e,r),n)?void setTimeout(function(){n(e)},0):e,i=t.length,l=e.length,d=1,o=i+l;null!=r.maxEditLength&&(o=Math.min(o,r.maxEditLength));let c=null!=(a=r.timeout)?a:1/0,u=Date.now()+c,x=[{oldPos:-1,lastComponent:void 0}],m=this.extractCommon(x[0],t,e,0,r);if(x[0].oldPos+1>=l&&m+1>=i)return s(this.buildValues(x[0].lastComponent,t,e));let p=-1/0,v=1/0,h=()=>{for(let n=Math.max(p,-d);n<=Math.min(v,d);n+=2){let a,d=x[n-1],o=x[n+1];d&&(x[n-1]=void 0);let c=!1;if(o){let e=o.oldPos-n;c=o&&0<=e&&e<i}let u=d&&d.oldPos+1<l;if(!c&&!u){x[n]=void 0;continue}if(a=!u||c&&d.oldPos<o.oldPos?this.addToPath(o,!0,!1,0,r):this.addToPath(d,!1,!0,1,r),m=this.extractCommon(a,t,e,n,r),a.oldPos+1>=l&&m+1>=i)return s(this.buildValues(a.lastComponent,t,e))||!0;x[n]=a,a.oldPos+1>=l&&(v=Math.min(v,n-1)),m+1>=i&&(p=Math.max(p,n+1))}d++};if(n)!function e(){setTimeout(function(){if(d>o||Date.now()>u)return n(void 0);h()||e()},0)}();else for(;d<=o&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,r,n,a){let s=e.lastComponent;return s&&!a.oneChangePerToken&&s.added===t&&s.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:s.count+1,added:t,removed:r,previousComponent:s.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:s}}}extractCommon(e,t,r,n,a){let s=t.length,i=r.length,l=e.oldPos,d=l-n,o=0;for(;d+1<s&&l+1<i&&this.equals(r[l+1],t[d+1],a);)d++,l++,o++,a.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return o&&!a.oneChangePerToken&&(e.lastComponent={count:o,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=l,d}equals(e,t,r){return r.comparator?r.comparator(e,t):e===t||!!r.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,r){let n,a=[];for(;e;)a.push(e),n=e.previousComponent,delete e.previousComponent,e=n;a.reverse();let s=a.length,i=0,l=0,d=0;for(;i<s;i++){let e=a[i];if(e.removed)e.value=this.join(r.slice(d,d+e.count)),d+=e.count;else{if(!e.added&&this.useLongestToken){let n=t.slice(l,l+e.count);n=n.map(function(e,t){let n=r[d+t];return n.length>e.length?n:e}),e.value=this.join(n)}else e.value=this.join(t.slice(l,l+e.count));l+=e.count,e.added||(d+=e.count)}}return a}}class s extends a{constructor(){super(...arguments),this.tokenize=l}equals(e,t,r){return r.ignoreWhitespace?(r.newlineIsToken&&e.includes("\n")||(e=e.trim()),r.newlineIsToken&&t.includes("\n")||(t=t.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(e.endsWith("\n")&&(e=e.slice(0,-1)),t.endsWith("\n")&&(t=t.slice(0,-1))),super.equals(e,t,r)}}let i=new s;function l(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));let r=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(let e=0;e<n.length;e++){let a=n[e];e%2&&!t.newlineIsToken?r[r.length-1]+=a:r.push(a)}return r}var d=r(7620),o=r(13454);let c=(0,o.A)("git-compare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]);var u=r(60527),x=r(23555),m=r(14796),p=r(76265),v=r(34041);let h=(0,o.A)("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]]);var f=r(58299),g=r(90986),b=r(46916),k=r(17210),y=r(77522);let w={loading:!1,loaded:!1,error:null,data:null},j={hasDiff:!1,generatedAt:"",source:"not-found",truncated:!1,branch:"",defaultBranch:"",files:[],untracked:[],sections:{againstBase:[],staged:[],unstaged:[],untracked:[]}},N="conductor-session-diff-view-mode",C="conductor-session-diff-hide-unchanged",P=["against-base","staged","unstaged","untracked"],L={"against-base":"Against base",staged:"Staged",unstaged:"Unstaged",untracked:"Untracked"};function _(e){return"string"!=typeof e?"":e.trim().replace(/^\/+/,"").replace(/\/+/g,"/")}function S(e){return"modified"===e||"added"===e||"deleted"===e||"renamed"===e||"copy"===e||"binary"===e||"untracked"===e?e:"unknown"}function A(e){let t=_(e.path);return t?{path:t,oldPath:_(e.oldPath??"")||null,status:S(e.status),additions:Number.isFinite(e.additions)?Math.max(0,Number(e.additions)):0,deletions:Number.isFinite(e.deletions)?Math.max(0,Number(e.deletions)):0}:null}function B(e,t){return"against-base"===t?e.againstBase:e[t]}function E(e,t){return`${e}:${t.oldPath??""}:${t.path}`}function M(e){return"added"===e.status?"Added":"deleted"===e.status?"Deleted":"renamed"===e.status?"Renamed":"copy"===e.status?"Copied":"binary"===e.status?"Binary":"untracked"===e.status?"Untracked":"modified"===e.status?"Modified":"Changed"}function T(e){return"added"===e.status||"untracked"===e.status?"border-[rgba(84,176,79,0.35)] bg-[rgba(84,176,79,0.08)] text-[var(--vk-green)]":"deleted"===e.status?"border-[rgba(210,81,81,0.35)] bg-[rgba(210,81,81,0.08)] text-[var(--vk-red)]":"renamed"===e.status||"copy"===e.status?"border-[rgba(108,168,255,0.35)] bg-[rgba(108,168,255,0.08)] text-[var(--status-working)]":"binary"===e.status?"border-[rgba(210,160,59,0.35)] bg-[rgba(210,160,59,0.08)] text-[var(--status-attention)]":"border-[var(--vk-border)] bg-[rgba(255,255,255,0.02)] text-[var(--vk-text-muted)]"}function K(e){return!Number.isFinite(e)||e<=0?"0 B":e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`}function $(e){if(!e)return[];let t=e.replace(/\r\n/g,"\n");if(0===t.length)return[];let r=t.split("\n");return t.endsWith("\n")&&r.pop(),r}function D(e,t,r,n,a,s){return{kind:"content",oldKind:e,newKind:t,oldLine:r,newLine:n,oldText:a,newText:s}}function z(e){return"add"===e?"bg-[rgba(84,176,79,0.12)] text-[var(--vk-green)]":"remove"===e?"bg-[rgba(210,81,81,0.12)] text-[var(--vk-red)]":"context"===e?"text-[var(--vk-text-normal)]":"text-[var(--vk-text-muted)]"}function I({rows:e}){return(0,n.jsxs)("div",{className:"min-w-[480px] sm:min-w-[720px] overflow-hidden rounded-[12px] border border-[var(--vk-border)] bg-[rgba(0,0,0,0.12)]",children:[(0,n.jsxs)("div",{className:"grid grid-cols-[2.5rem_minmax(0,1fr)_2.5rem_minmax(0,1fr)] sm:grid-cols-[4rem_minmax(0,1fr)_4rem_minmax(0,1fr)] border-b border-[var(--vk-border)] bg-[rgba(255,255,255,0.03)] text-[10px] font-medium uppercase tracking-[0.12em] text-[var(--vk-text-muted)]",children:[(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-2 py-2",children:"Old"}),(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-3 py-2",children:"Before"}),(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-2 py-2",children:"New"}),(0,n.jsx)("div",{className:"px-3 py-2",children:"After"})]}),(0,n.jsx)("div",{className:"font-mono text-[11px] sm:text-[12px] leading-6",children:e.map((e,t)=>"skip"===e.kind?(0,n.jsx)("div",{className:"border-b border-[var(--vk-border)] bg-[rgba(255,255,255,0.03)] px-3 py-2 text-center text-[11px] text-[var(--vk-text-muted)] last:border-b-0",children:e.message},`skip-${t}`):(0,n.jsxs)("div",{className:"grid grid-cols-[2.5rem_minmax(0,1fr)_2.5rem_minmax(0,1fr)] sm:grid-cols-[4rem_minmax(0,1fr)_4rem_minmax(0,1fr)] border-b border-[var(--vk-border)] last:border-b-0",children:[(0,n.jsx)("div",{className:(0,b.cn)("border-r border-[var(--vk-border)] px-2 py-1 text-right text-[11px] text-[var(--vk-text-muted)]",z(e.oldKind)),children:e.oldLine??""}),(0,n.jsx)("div",{className:(0,b.cn)("border-r border-[var(--vk-border)] px-3 py-1 whitespace-pre overflow-x-auto",z(e.oldKind)),children:e.oldText||" "}),(0,n.jsx)("div",{className:(0,b.cn)("border-r border-[var(--vk-border)] px-2 py-1 text-right text-[11px] text-[var(--vk-text-muted)]",z(e.newKind)),children:e.newLine??""}),(0,n.jsx)("div",{className:(0,b.cn)("px-3 py-1 whitespace-pre overflow-x-auto",z(e.newKind)),children:e.newText||" "})]},`${e.oldLine??"x"}:${e.newLine??"y"}:${t}`))})]})}function F({rows:e}){return(0,n.jsxs)("div",{className:"overflow-hidden rounded-[12px] border border-[var(--vk-border)] bg-[rgba(0,0,0,0.12)]",children:[(0,n.jsxs)("div",{className:"grid grid-cols-[2rem_2rem_1rem_minmax(0,1fr)] sm:grid-cols-[4rem_4rem_1.5rem_minmax(0,1fr)] border-b border-[var(--vk-border)] bg-[rgba(255,255,255,0.03)] text-[10px] font-medium uppercase tracking-[0.12em] text-[var(--vk-text-muted)]",children:[(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-2 py-2",children:"Old"}),(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-2 py-2",children:"New"}),(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-2 py-2",children:"Op"}),(0,n.jsx)("div",{className:"px-3 py-2",children:"Content"})]}),(0,n.jsx)("div",{className:"font-mono text-[11px] sm:text-[12px] leading-6",children:e.map((e,t)=>{var r,a;return"skip"===e.kind?(0,n.jsx)("div",{className:"border-b border-[var(--vk-border)] bg-[rgba(255,255,255,0.03)] px-3 py-2 text-center text-[11px] text-[var(--vk-text-muted)] last:border-b-0",children:e.message},`skip-${t}`):(0,n.jsxs)("div",{className:(0,b.cn)("grid grid-cols-[2rem_2rem_1rem_minmax(0,1fr)] sm:grid-cols-[4rem_4rem_1.5rem_minmax(0,1fr)] border-b border-[var(--vk-border)] last:border-b-0","add"===(r=e.lineKind)?"bg-[rgba(84,176,79,0.12)] text-[var(--vk-green)]":"remove"===r?"bg-[rgba(210,81,81,0.12)] text-[var(--vk-red)]":"text-[var(--vk-text-normal)]"),children:[(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-2 py-1 text-right text-[11px] text-[var(--vk-text-muted)]",children:e.oldLine??""}),(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-2 py-1 text-right text-[11px] text-[var(--vk-text-muted)]",children:e.newLine??""}),(0,n.jsx)("div",{className:"border-r border-[var(--vk-border)] px-2 py-1 text-center",children:"add"===(a=e.lineKind)?"+":"remove"===a?"-":" "}),(0,n.jsx)("div",{className:"px-3 py-1 whitespace-pre overflow-x-auto",children:e.text||" "})]},`${e.oldLine??"x"}:${e.newLine??"y"}:${t}`)})})]})}function R({sessionId:e,active:t}){var r;let a=encodeURIComponent(e),[s,l]=(0,d.useState)(j),[o,_]=(0,d.useState)(!0),[z,O]=(0,d.useState)(null),[q,U]=(0,d.useState)(()=>"side-by-side"===window.localStorage.getItem(N)?"side-by-side":"inline"),[W,V]=(0,d.useState)(()=>"true"===window.localStorage.getItem(C)),[H,J]=(0,d.useState)(""),[Z,G]=(0,d.useState)({"against-base":!1,staged:!1,unstaged:!1,untracked:!0}),[Q,X]=(0,d.useState)(null),[Y,ee]=(0,d.useState)({}),et=(0,d.useRef)(!0),er=(0,d.useRef)(""),en=(0,d.useRef)(null),ea=(0,d.useRef)(!1),es=(0,d.useDeferredValue)(H.trim().toLowerCase()),ei=(0,d.useCallback)(async()=>{try{let e=await fetch(`/api/sessions/${a}/diff`,{cache:"no-store"});if(!e.ok){if(404===e.status){if(!et.current)return;l(j),O(null),ee({});return}let t=`Failed to fetch diff (${e.status})`;try{let r=await e.json();"string"==typeof r.error&&r.error.length>0&&(t=r.error)}catch{}throw Error(t)}let t=await e.json();if(!et.current)return;if(t.error)throw Error(t.error);let r={hasDiff:!!t.hasDiff,generatedAt:"string"==typeof t.generatedAt?t.generatedAt:"",source:"working-tree"===t.source||"remote-pr"===t.source?t.source:"not-found",truncated:!!t.truncated,branch:"string"==typeof t.branch?t.branch:"",defaultBranch:"string"==typeof t.defaultBranch?t.defaultBranch:"",files:Array.isArray(t.files)?t.files:[],untracked:Array.isArray(t.untracked)?t.untracked.filter(e=>"string"==typeof e):[],sections:t.sections},n=JSON.stringify({hasDiff:r.hasDiff,source:r.source,truncated:r.truncated,branch:r.branch,defaultBranch:r.defaultBranch,files:r.files,untracked:r.untracked,sections:r.sections});l(r),er.current!==n&&(er.current=n,ee({})),O(null)}catch(e){if(!et.current)return;l(j),O(e instanceof Error?e.message:"Failed to load diff")}finally{et.current&&_(!1)}},[a]),el=(0,d.useCallback)(async(e,t)=>{let{category:r,file:n,fileKey:s}=e;ee(e=>{let t=e[s];return t?.loading||t?.loaded?e:{...e,[s]:{loading:!0,loaded:!1,error:null,data:null}}});try{let e=new URLSearchParams({path:n.path,category:r,status:n.status});n.oldPath&&e.set("oldPath",n.oldPath),t&&e.set("baseBranch",t);let i=await fetch(`/api/sessions/${a}/diff?${e.toString()}`,{cache:"no-store"});if(!i.ok){let e=`Failed to load diff contents (${i.status})`;try{let t=await i.json();"string"==typeof t.error&&t.error.length>0&&(e=t.error)}catch{}throw Error(e)}let l=await i.json();if(!et.current)return;if(l.error)throw Error(l.error);ee(e=>({...e,[s]:{loading:!1,loaded:!0,error:null,data:{path:"string"==typeof l.path?l.path:n.path,oldPath:"string"==typeof l.oldPath?l.oldPath:null,status:S(l.status),category:"staged"===l.category||"unstaged"===l.category||"untracked"===l.category?l.category:"against-base",baseBranch:"string"==typeof l.baseBranch?l.baseBranch:t,binary:!!l.binary,truncated:!!l.truncated,originalSize:Number.isFinite(l.originalSize)?Math.max(0,Number(l.originalSize)):0,modifiedSize:Number.isFinite(l.modifiedSize)?Math.max(0,Number(l.modifiedSize)):0,original:"string"==typeof l.original||null===l.original?l.original:"",modified:"string"==typeof l.modified||null===l.modified?l.modified:""}}}))}catch(e){if(!et.current)return;ee(t=>({...t,[s]:{loading:!1,loaded:!0,error:e instanceof Error?e.message:"Failed to load diff contents",data:null}}))}},[a]);(0,d.useEffect)(()=>{if(et.current=!0,en.current=null,ea.current=!1,!t)return()=>{et.current=!1};ei();let r=(0,k.L)(t=>{if(!et.current)return;let r=t.sessions.find(t=>t.id===e);if(!r)return;ea.current=y.C.has(r.status);let n=`${r.status}:${r.lastActivityAt}`;en.current!==n&&(en.current=n,ei())}),n=null,a=()=>{let e="visible"!==document.visibilityState||ea.current?3e4:15e3;n=window.setTimeout(async()=>{et.current&&(await ei(),et.current&&a())},e)};a();let s=()=>{en.current=null,ei()},i=()=>{"visible"===document.visibilityState&&s()};return window.addEventListener("focus",s),document.addEventListener("visibilitychange",i),()=>{et.current=!1,r(),null!=n&&window.clearTimeout(n),window.removeEventListener("focus",s),document.removeEventListener("visibilitychange",i)}},[t,ei,e]),(0,d.useEffect)(()=>{window.localStorage.setItem(N,q)},[q]),(0,d.useEffect)(()=>{window.localStorage.setItem(C,W?"true":"false")},[W]),(0,d.useEffect)(()=>{_(!0),O(null),er.current="",J(""),X(null),ee({}),G({"against-base":!1,staged:!1,unstaged:!1,untracked:!0})},[e]);let ed=(0,d.useMemo)(()=>{let e,t,r,n,a,i;return t=(e=e=>Array.isArray(e)?e.map(e=>A(e)).filter(e=>null!==e):[])(s.sections?.againstBase??s.files??[]),r=e(s.sections?.staged??[]),n=e(s.sections?.unstaged??[]),a=e(s.sections?.untracked??[]).concat(Array.isArray(s.untracked)?s.untracked.map(e=>A({path:e,status:"untracked",additions:0,deletions:0})).filter(e=>null!==e):[]),{againstBase:(i=e=>{let t=new Map;for(let r of e)t.set(`${r.path}:${r.oldPath??""}:${r.status}`,r);return[...t.values()].sort((e,t)=>e.path.localeCompare(t.path,void 0,{sensitivity:"base"}))})(t),staged:i(r),unstaged:i(n),untracked:i(a)}},[s]),eo=(0,d.useMemo)(()=>{if(!es)return ed;let e=e=>e.filter(e=>{let t=e.oldPath??"";return e.path.toLowerCase().includes(es)||t.toLowerCase().includes(es)});return{againstBase:e(ed.againstBase),staged:e(ed.staged),unstaged:e(ed.unstaged),untracked:e(ed.untracked)}},[es,ed]),ec=(0,d.useMemo)(()=>{let e=new Map;for(let t of P)for(let r of B(ed,t)){let n=E(t,r);e.has(n)||e.set(n,r)}let t=0,r=0;for(let n of e.values())t+=n.additions,r+=n.deletions;return{files:e.size,additions:t,deletions:r}},[ed]),eu=(0,d.useMemo)(()=>{let e=[];for(let t of P)for(let r of B(eo,t))e.push({category:t,file:r,fileKey:E(t,r)});return e},[eo]),ex=(0,d.useMemo)(()=>{let e=new Map;for(let t of P)for(let r of B(ed,t)){let n=E(t,r);e.set(n,{category:t,file:r,fileKey:n})}return e},[ed]);(0,d.useEffect)(()=>{0===eu.length?X(null):X(e=>e&&eu.some(t=>t.fileKey===e)?e:eu[0]?.fileKey??null)},[eu]);let em=Q?ex.get(Q)??null:null,ep=em?Y[em.fileKey]??w:w,ev=eu.length>0,eh=s.defaultBranch?.trim()||"main";(0,d.useEffect)(()=>{if(!t||!em)return;let e=Y[em.fileKey];e?.loading||e?.loaded||el(em,eh)},[t,eh,Y,el,em]);let ef=(0,d.useMemo)(()=>{let e=ep.data;if(!e||e.binary)return[];let t=function(e,t){let r=i.diff(e,t,void 0),n=[],a=1,s=1;for(let e=0;e<r.length;e+=1){let t=r[e],i=$(t.value);if(t.removed){let t=r[e+1],l=t?.added?$(t.value):[],d=Math.max(i.length,l.length);for(let e=0;e<d;e+=1){let t=i[e]??"",r=l[e]??"",d=e<i.length,o=e<l.length;n.push(D(d?"remove":"empty",o?"add":"empty",d?a+e:null,o?s+e:null,t,r))}a+=i.length,t?.added&&(s+=l.length,e+=1);continue}if(t.added){for(let e=0;e<i.length;e+=1)n.push(D("empty","add",null,s,"",i[e]??"")),s+=1;continue}for(let e of i)n.push(D("context","context",a,s,e,e)),a+=1,s+=1}return n}(e.original??"",e.modified??"");return W?function(e){if(0===e.length)return e;let t=[],r=0;for(;r<e.length;){let n=e[r];if("content"!==n.kind||"context"!==n.oldKind||"context"!==n.newKind){t.push(n),r+=1;continue}let a=r;for(;a<e.length;){let t=e[a];if("content"!==t.kind||"context"!==t.oldKind||"context"!==t.newKind)break;a+=1}let s=e.slice(r,a);s.length<=7?t.push(...s):(t.push(...s.slice(0,3)),t.push({kind:"skip",oldKind:"empty",newKind:"empty",oldLine:null,newLine:null,oldText:"",newText:"",message:`${s.length-6} unchanged lines hidden`}),t.push(...s.slice(-3))),r=a}return t}(t):t},[W,ep.data]),eg=(0,d.useMemo)(()=>(function(e){let t=[];for(let r of e){if("skip"===r.kind){t.push({kind:"skip",lineKind:"context",oldLine:null,newLine:null,text:"",message:r.message});continue}if("context"===r.oldKind&&"context"===r.newKind){t.push({kind:"content",lineKind:"context",oldLine:r.oldLine,newLine:r.newLine,text:r.oldText});continue}"remove"===r.oldKind&&t.push({kind:"content",lineKind:"remove",oldLine:r.oldLine,newLine:null,text:r.oldText}),"add"===r.newKind&&t.push({kind:"content",lineKind:"add",oldLine:null,newLine:r.newLine,text:r.newText})}return t})(ef),[ef]),eb=(0,d.useCallback)(e=>{G(t=>({...t,[e]:!t[e]}))},[]);return(0,n.jsxs)("div",{className:"flex h-full min-h-0 flex-col overflow-hidden rounded-[10px] border border-[var(--vk-border)] bg-[var(--vk-bg-panel)]",children:[(0,n.jsxs)("div",{className:"flex min-h-[42px] shrink-0 items-center gap-2 border-b border-[var(--vk-border)] px-3",children:[(0,n.jsx)(c,{className:"h-[15px] w-[15px] text-[var(--vk-text-muted)]"}),(0,n.jsx)("span",{className:"truncate text-[13px] font-medium text-[var(--vk-text-strong)]",children:"Review Diff"}),(0,n.jsx)(g.E,{variant:"outline",children:"working-tree"===(r=s.source)?"Working tree":"remote-pr"===r?"Remote PR":"Not found"}),s.branch?(0,n.jsx)(g.E,{variant:"outline",children:s.branch}):null,s.defaultBranch?(0,n.jsxs)(g.E,{variant:"outline",children:["base ",s.defaultBranch]}):null,(0,n.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,n.jsx)("span",{className:"hidden text-[11px] text-[var(--vk-text-muted)] lg:inline",children:function(e){if(!e)return"Not generated";let t=new Date(e);return Number.isNaN(t.getTime())?"Not generated":new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZone:"UTC"}).format(t)}(s.generatedAt)}),(0,n.jsx)("button",{type:"button",onClick:()=>void ei(),disabled:o,className:"inline-flex h-[24px] w-[24px] items-center justify-center rounded-[6px] text-[var(--vk-text-muted)] hover:bg-[var(--vk-bg-hover)] disabled:opacity-60","aria-label":"Refresh diff",children:(0,n.jsx)(u.A,{className:(0,b.cn)("h-[14px] w-[14px]",o&&"animate-spin")})})]})]}),(0,n.jsxs)("div",{className:"sticky top-0 z-10 flex shrink-0 items-center gap-3 border-b border-[var(--vk-border)] bg-[var(--vk-bg-panel)] px-3 py-2.5",children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3 text-[12px] text-[var(--vk-text-muted)]",children:[(0,n.jsxs)("span",{children:[ec.files," files"]}),(0,n.jsxs)("span",{className:"font-mono text-[var(--vk-green)]",children:["+",ec.additions]}),(0,n.jsxs)("span",{className:"font-mono text-[var(--vk-red)]",children:["-",ec.deletions]}),s.truncated?(0,n.jsx)("span",{className:"text-[var(--status-attention)]",children:"Summary truncated"}):null]}),(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)("button",{type:"button",onClick:()=>U("side-by-side"),className:(0,b.cn)("rounded-[6px] px-2 py-1 text-[11px]","side-by-side"===q?"bg-[var(--vk-bg-active)] text-[var(--vk-text-strong)]":"text-[var(--vk-text-muted)] hover:bg-[var(--vk-bg-hover)]"),children:"Split"}),(0,n.jsx)("button",{type:"button",onClick:()=>U("inline"),className:(0,b.cn)("rounded-[6px] px-2 py-1 text-[11px]","inline"===q?"bg-[var(--vk-bg-active)] text-[var(--vk-text-strong)]":"text-[var(--vk-text-muted)] hover:bg-[var(--vk-bg-hover)]"),children:"Inline"}),(0,n.jsx)("button",{type:"button",onClick:()=>V(e=>!e),className:(0,b.cn)("rounded-[6px] px-2 py-1 text-[11px]",W?"bg-[var(--vk-bg-active)] text-[var(--vk-text-strong)]":"text-[var(--vk-text-muted)] hover:bg-[var(--vk-bg-hover)]"),children:W?"Show all":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"hidden sm:inline",children:"Hide unchanged"}),(0,n.jsx)("span",{className:"sm:hidden",children:"Hide"})]})})]})]}),(0,n.jsx)("div",{className:"shrink-0 border-b border-[var(--vk-border)] p-2",children:(0,n.jsxs)("label",{className:"flex items-center gap-2 rounded-[8px] border border-[var(--vk-border)] bg-[rgba(255,255,255,0.02)] px-2.5 py-2",children:[(0,n.jsx)(x.A,{className:"h-4 w-4 text-[var(--vk-text-muted)]"}),(0,n.jsx)("input",{type:"text",value:H,onChange:e=>J(e.target.value),placeholder:"Search changed files...",className:"w-full bg-transparent text-[13px] text-[var(--vk-text-normal)] outline-none placeholder:text-[var(--vk-text-muted)]"})]})}),(0,n.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain",children:[!o||s.hasDiff||z?null:(0,n.jsx)("div",{className:"flex h-full items-center justify-center p-8 text-[13px] text-[var(--vk-text-muted)]",children:"Loading session diff..."}),z?(0,n.jsx)("div",{className:"flex h-full items-center justify-center p-8 text-center text-[13px] text-[var(--status-error)]",children:z}):null,o||z||ev?null:(0,n.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-8 text-center",children:[(0,n.jsx)(m.A,{className:"h-7 w-7 text-[var(--vk-text-muted)]"}),(0,n.jsx)("p",{className:"text-[13px] text-[var(--vk-text-muted)]",children:es?"No files match the current search.":"No changed files in this session yet."})]}),!z&&ev?(0,n.jsxs)("div",{className:"grid h-full min-h-0 grid-rows-[minmax(10rem,14rem)_minmax(0,1fr)] sm:grid-rows-[minmax(14rem,18rem)_minmax(0,1fr)] lg:grid-cols-[320px_minmax(0,1fr)] lg:grid-rows-1",children:[(0,n.jsx)("div",{className:"min-h-0 overflow-y-auto border-b border-[var(--vk-border)] lg:border-b-0 lg:border-r",children:P.map(e=>{let t=B(eo,e);if(0===t.length)return null;let r=Z[e];return(0,n.jsxs)("section",{className:"border-b border-[var(--vk-border)] last:border-b-0",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>eb(e),className:"sticky top-0 z-[5] flex w-full items-center gap-2 bg-[var(--vk-bg-panel)] px-3 py-2 text-left text-[12px] text-[var(--vk-text-muted)]",children:[r?(0,n.jsx)(p.A,{className:"h-4 w-4"}):(0,n.jsx)(v.A,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"font-medium text-[var(--vk-text-normal)]",children:L[e]}),(0,n.jsx)("span",{className:"font-mono text-[var(--vk-text-muted)]",children:t.length})]}),r?null:(0,n.jsx)("div",{className:"py-1",children:t.map(t=>{let r=E(e,t),a=r===Q;return(0,n.jsxs)("button",{type:"button",onClick:()=>X(r),className:(0,b.cn)("flex w-full items-start gap-2 border-l-2 px-3 py-2.5 text-left transition",a?"border-l-[var(--status-working)] bg-[rgba(108,168,255,0.08)]":"border-l-transparent hover:bg-[var(--vk-bg-hover)]"),children:[(0,n.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,n.jsx)("span",{className:"block truncate font-mono text-[12px] text-[var(--vk-text-strong)]",children:t.path}),(0,n.jsxs)("span",{className:"mt-0.5 flex items-center gap-2",children:[(0,n.jsx)("span",{className:(0,b.cn)("inline-flex h-[20px] items-center rounded-[6px] border px-1.5 text-[10px]",T(t)),children:M(t)}),t.oldPath?(0,n.jsx)("span",{className:"truncate font-mono text-[10px] text-[var(--vk-text-muted)]",children:t.oldPath}):(0,n.jsx)("span",{className:"text-[10px] text-[var(--vk-text-muted)]",children:L[e]})]})]}),(0,n.jsxs)("span",{className:"shrink-0 font-mono text-[11px]",children:[t.additions>0?(0,n.jsxs)("span",{className:"block text-right text-[var(--vk-green)]",children:["+",t.additions]}):null,t.deletions>0?(0,n.jsxs)("span",{className:"block text-right text-[var(--vk-red)]",children:["-",t.deletions]}):null,0===t.additions&&0===t.deletions?(0,n.jsx)("span",{className:"block text-right text-[var(--vk-text-muted)]",children:"0"}):null]})]},r)})})]},e)})}),(0,n.jsx)("div",{className:"min-h-0 overflow-y-auto overscroll-contain",children:em?(0,n.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,n.jsxs)("div",{className:"border-b border-[var(--vk-border)] px-4 py-3",children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,n.jsx)("span",{className:(0,b.cn)("inline-flex h-[24px] items-center rounded-[6px] border px-2 text-[11px]",T(em.file)),children:M(em.file)}),(0,n.jsx)("span",{className:"truncate font-mono text-[13px] text-[var(--vk-text-strong)]",children:em.file.path})]}),(0,n.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-[11px] text-[var(--vk-text-muted)]",children:[(0,n.jsx)("span",{children:L[em.category]}),em.file.oldPath?(0,n.jsxs)("span",{className:"font-mono",children:[em.file.oldPath," -> ",em.file.path]}):null,(0,n.jsxs)("span",{className:"font-mono text-[var(--vk-green)]",children:["+",em.file.additions]}),(0,n.jsxs)("span",{className:"font-mono text-[var(--vk-red)]",children:["-",em.file.deletions]})]})]}),(0,n.jsxs)("div",{className:"min-h-0 flex-1 overflow-auto px-4 py-4",children:[ep.loading?(0,n.jsxs)("div",{className:"flex h-full min-h-[240px] items-center justify-center gap-2 text-[13px] text-[var(--vk-text-muted)]",children:[(0,n.jsx)(f.A,{className:"h-4 w-4 animate-spin"}),(0,n.jsx)("span",{children:"Loading diff..."})]}):null,ep.error?(0,n.jsx)("div",{className:"flex min-h-[180px] items-center justify-center px-4 py-8 text-center text-[13px] text-[var(--status-error)]",children:ep.error}):null,!ep.loading&&!ep.error&&ep.data?.binary?(0,n.jsxs)("div",{className:"flex min-h-[180px] items-center justify-center px-4 py-8 text-center text-[12px] text-[var(--vk-text-muted)]",children:["Binary file preview is not available for ",e.slice(0,6),"."]}):null,ep.loading||ep.error||!ep.data||ep.data.binary?null:(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-3 text-[11px] text-[var(--vk-text-muted)]",children:[(0,n.jsxs)("span",{children:["Base: ",ep.data.baseBranch||eh]}),(0,n.jsxs)("span",{children:["Original: ",K(ep.data.originalSize)]}),(0,n.jsxs)("span",{children:["Modified: ",K(ep.data.modifiedSize)]}),ep.data.truncated?(0,n.jsx)("span",{className:"text-[var(--status-attention)]",children:"Preview truncated to 1 MB."}):null]}),(0,n.jsx)("div",{className:"overflow-auto pb-4",children:"side-by-side"===q?(0,n.jsx)(I,{rows:ef}):(0,n.jsx)(F,{rows:eg})})]}),ep.loading||ep.error||ep.data?null:(0,n.jsx)("div",{className:"flex min-h-[180px] items-center justify-center px-4 py-8 text-center text-[12px] text-[var(--vk-text-muted)]",children:"No diff content available for this file."})]})]}):(0,n.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-3 p-8 text-center",children:[(0,n.jsx)(h,{className:"h-8 w-8 text-[var(--vk-text-muted)]"}),(0,n.jsx)("p",{className:"text-[13px] text-[var(--vk-text-muted)]",children:"Select a file to inspect its diff."})]})})]}):null]})]})}},77522:(e,t,r)=>{r.d(t,{C:()=>n,n:()=>a});let n=new Set(["archived","done","killed","errored","terminated","merged","cleanup"]);function a(e){return"merged"===e.status||"archived"===e.status||"killed"===e.status||"errored"===e.status||"cleanup"===e.status||"done"===e.status||"terminated"===e.status||e.pr&&("merged"===e.pr.state||"closed"===e.pr.state)?"done":"mergeable"===e.status||"approved"===e.status||e.pr?.mergeability.mergeable?"merge":"waiting_input"===e.activity||"blocked"===e.activity||"needs_input"===e.status||"stuck"===e.status?"respond":"queued"===e.status?"pending":"exited"===e.activity?"respond":"ci_failed"===e.status||"changes_requested"===e.status||e.pr&&("failing"===e.pr.ciStatus||"changes_requested"===e.pr.reviewDecision||!e.pr.mergeability.noConflicts)?"review":"review_pending"===e.status||e.pr&&!e.pr.isDraft&&("pending"===e.pr.reviewDecision||"none"===e.pr.reviewDecision)?"pending":"working"}},90986:(e,t,r)=>{r.d(t,{E:()=>i});var n=r(54568),a=r(46916);let s={default:"border-[var(--vk-border)] bg-[var(--vk-bg-panel)] text-[var(--vk-text-muted)]",success:"border-transparent bg-transparent text-[var(--vk-green)]",warning:"border-transparent bg-transparent text-[var(--vk-orange)]",error:"border-transparent bg-transparent text-[var(--vk-red)]",info:"border-transparent bg-transparent text-[var(--vk-text-muted)]",outline:"border-[var(--vk-border)] bg-transparent text-[var(--vk-text-muted)]"};function i({variant:e="default",className:t,children:r}){return(0,n.jsx)("span",{className:(0,a.cn)("inline-flex items-center gap-1 rounded-[3px] border px-1.5 py-0.5 text-[11px] leading-none",s[e],t),children:r})}}}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7220],{2609:(e,t,r)=>{"use strict";r.d(t,{T5:()=>s.T5,hP:()=>n.hP,nO:()=>s.nO,yC:()=>o}),r(16744);var n=r(70590),s=r(87835);function o(e,t,r){let s=t.path||(null==r?void 0:r.path);return"path"===(t.routing||(null==r?void 0:r.routing)||"path")?s?{...r,...t,routing:"path"}:n.sb.throw((0,n.kd)(e)):t.path?n.sb.throw((0,n.s7)(e)):{...r,...t,path:void 0}}},5974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={callServer:function(){return o.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var s in n)Object.defineProperty(t,s,{enumerable:!0,get:n[s]});let o=r(34273),a=r(16409),i=r(97102)},6974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(74468)._(r(7620)).default.createContext(null)},10594:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return h},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return y}};for(var s in n)Object.defineProperty(t,s,{enumerable:!0,get:n[s]});let o=r(74468),a=r(99649),i=r(54568),l=o._(r(97509)),c=a._(r(7620)),u=r(2737),d=r(66161),p=r(71341),f=new Map,b=new Set,m=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:s=null,dangerouslySetInnerHTML:o,children:a="",strategy:i="afterInteractive",onError:c,stylesheets:u}=e,p=r||t;if(p&&b.has(p))return;if(f.has(t)){b.add(p),f.get(t).then(n,c);return}let m=()=>{s&&s(),b.add(p)},v=document.createElement("script"),y=new Promise((e,t)=>{v.addEventListener("load",function(t){e(),n&&n.call(this,t),m()}),v.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});o?(v.innerHTML=o.__html||"",m()):a?(v.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",m()):t&&(v.src=t,f.set(t,y)),(0,d.setAttributesFromProps)(v,e),"worker"===i&&v.setAttribute("type","text/partytown"),v.setAttribute("data-nscript",i),u&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(u),document.body.appendChild(v)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>m(e))}):m(e)}function y(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");b.add(t)})}function _(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:s=null,strategy:o="afterInteractive",onError:a,stylesheets:d,...f}=e,{updateScripts:v,scripts:y,getIsSsr:_,appDir:h,nonce:g}=(0,c.useContext)(u.HeadManagerContext);g=f.nonce||g;let w=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||r;w.current||(s&&e&&b.has(e)&&s(),w.current=!0)},[s,t,r]);let E=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!E.current){if("afterInteractive"===o)m(e);else"lazyOnload"===o&&("complete"===document.readyState?(0,p.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>m(e))}));E.current=!0}},[e,o]),("beforeInteractive"===o||"worker"===o)&&(v?(y[o]=(y[o]||[]).concat([{id:t,src:r,onLoad:n,onReady:s,onError:a,...f,nonce:g}]),v(y)):_&&_()?b.add(t||r):_&&!_()&&m({...e,nonce:g})),h){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===o)if(!r)return f.dangerouslySetInnerHTML&&(f.children=f.dangerouslySetInnerHTML.__html,delete f.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:g,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...f,id:t}])})`}});else return l.default.preload(r,f.integrity?{as:"script",integrity:f.integrity,nonce:g,crossOrigin:f.crossOrigin}:{as:"script",nonce:g,crossOrigin:f.crossOrigin}),(0,i.jsx)("script",{nonce:g,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([r,{...f,id:t}])})`}});"afterInteractive"===o&&r&&l.default.preload(r,f.integrity?{as:"script",integrity:f.integrity,nonce:g,crossOrigin:f.crossOrigin}:{as:"script",nonce:g,crossOrigin:f.crossOrigin})}return null}Object.defineProperty(_,"__nextScript",{value:!0});let h=_;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30679:(e,t,r)=>{"use strict";r.d(t,{PromisifiedAuthProvider:()=>l,d:()=>c});var n=r(30524),s=r(2609),o=r(45836),a=r(7620);let i=a.createContext(null);function l({authPromise:e,children:t}){return a.createElement(i.Provider,{value:e},t)}function c(e={}){let t=(0,o.useRouter)(),r=a.useContext(i),l=r;return(r&&"then"in r&&(l=a.use(r)),"u"<typeof window)?t?(0,n.As)(e):(0,s.hP)({...l,...e}):(0,n.As)({...l,...e})}},31008:e=>{e.exports={style:{fontFamily:"'JetBrains Mono', 'JetBrains Mono Fallback'",fontStyle:"normal"},className:"__className_6d24ac",variable:"__variable_6d24ac"}},36727:(e,t,r)=>{"use strict";r.r(t),r.d(t,{KeylessCookieSync:()=>a});var n=r(79748),s=r(7620),o=r(38036);function a(e){var t;let a=(null==(t=(0,n.useSelectedLayoutSegments)()[0])?void 0:t.startsWith("/_not-found"))||!1;return(0,s.useEffect)(()=>{o.I&&!a&&r.e(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7220],{2609:(e,t,r)=>{"use strict";r.d(t,{T5:()=>s.T5,hP:()=>n.hP,nO:()=>s.nO,yC:()=>o}),r(16744);var n=r(70590),s=r(87835);function o(e,t,r){let s=t.path||(null==r?void 0:r.path);return"path"===(t.routing||(null==r?void 0:r.routing)||"path")?s?{...r,...t,routing:"path"}:n.sb.throw((0,n.kd)(e)):t.path?n.sb.throw((0,n.s7)(e)):{...r,...t,path:void 0}}},5974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={callServer:function(){return o.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var s in n)Object.defineProperty(t,s,{enumerable:!0,get:n[s]});let o=r(34273),a=r(16409),i=r(97102)},6974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(74468)._(r(7620)).default.createContext(null)},10594:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return h},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return y}};for(var s in n)Object.defineProperty(t,s,{enumerable:!0,get:n[s]});let o=r(74468),a=r(99649),i=r(54568),l=o._(r(97509)),c=a._(r(7620)),u=r(2737),d=r(66161),p=r(71341),f=new Map,b=new Set,m=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:s=null,dangerouslySetInnerHTML:o,children:a="",strategy:i="afterInteractive",onError:c,stylesheets:u}=e,p=r||t;if(p&&b.has(p))return;if(f.has(t)){b.add(p),f.get(t).then(n,c);return}let m=()=>{s&&s(),b.add(p)},v=document.createElement("script"),y=new Promise((e,t)=>{v.addEventListener("load",function(t){e(),n&&n.call(this,t),m()}),v.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});o?(v.innerHTML=o.__html||"",m()):a?(v.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",m()):t&&(v.src=t,f.set(t,y)),(0,d.setAttributesFromProps)(v,e),"worker"===i&&v.setAttribute("type","text/partytown"),v.setAttribute("data-nscript",i),u&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(u),document.body.appendChild(v)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>m(e))}):m(e)}function y(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");b.add(t)})}function _(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:s=null,strategy:o="afterInteractive",onError:a,stylesheets:d,...f}=e,{updateScripts:v,scripts:y,getIsSsr:_,appDir:h,nonce:g}=(0,c.useContext)(u.HeadManagerContext);g=f.nonce||g;let w=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||r;w.current||(s&&e&&b.has(e)&&s(),w.current=!0)},[s,t,r]);let E=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!E.current){if("afterInteractive"===o)m(e);else"lazyOnload"===o&&("complete"===document.readyState?(0,p.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>m(e))}));E.current=!0}},[e,o]),("beforeInteractive"===o||"worker"===o)&&(v?(y[o]=(y[o]||[]).concat([{id:t,src:r,onLoad:n,onReady:s,onError:a,...f,nonce:g}]),v(y)):_&&_()?b.add(t||r):_&&!_()&&m({...e,nonce:g})),h){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===o)if(!r)return f.dangerouslySetInnerHTML&&(f.children=f.dangerouslySetInnerHTML.__html,delete f.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:g,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...f,id:t}])})`}});else return l.default.preload(r,f.integrity?{as:"script",integrity:f.integrity,nonce:g,crossOrigin:f.crossOrigin}:{as:"script",nonce:g,crossOrigin:f.crossOrigin}),(0,i.jsx)("script",{nonce:g,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([r,{...f,id:t}])})`}});"afterInteractive"===o&&r&&l.default.preload(r,f.integrity?{as:"script",integrity:f.integrity,nonce:g,crossOrigin:f.crossOrigin}:{as:"script",nonce:g,crossOrigin:f.crossOrigin})}return null}Object.defineProperty(_,"__nextScript",{value:!0});let h=_;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30679:(e,t,r)=>{"use strict";r.d(t,{PromisifiedAuthProvider:()=>l,d:()=>c});var n=r(30524),s=r(2609),o=r(45836),a=r(7620);let i=a.createContext(null);function l({authPromise:e,children:t}){return a.createElement(i.Provider,{value:e},t)}function c(e={}){let t=(0,o.useRouter)(),r=a.useContext(i),l=r;return(r&&"then"in r&&(l=a.use(r)),"u"<typeof window)?t?(0,n.As)(e):(0,s.hP)({...l,...e}):(0,n.As)({...l,...e})}},31008:e=>{e.exports={style:{fontFamily:"'JetBrains Mono', 'JetBrains Mono Fallback'",fontStyle:"normal"},className:"__className_6d24ac",variable:"__variable_6d24ac"}},36727:(e,t,r)=>{"use strict";r.r(t),r.d(t,{KeylessCookieSync:()=>a});var n=r(79748),s=r(7620),o=r(38036);function a(e){var t;let a=(null==(t=(0,n.useSelectedLayoutSegments)()[0])?void 0:t.startsWith("/_not-found"))||!1;return(0,s.useEffect)(()=>{o.I&&!a&&r.e(2148).then(r.bind(r,32148)).then(t=>t.syncKeylessConfigAction({...e,returnUrl:window.location.href}))},[a]),e.children}},37204:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ClientClerkProvider:()=>U});var n=r(30524),s=r(20602);let o=new Set;var a=r(42925),i=r(79748),l=r(99321),c=r(7620);let u="u">typeof window?c.useLayoutEffect:c.useEffect,d=c.createContext(void 0);d.displayName="ClerkNextOptionsCtx";let p=()=>{let e=c.useContext(d);return null==e?void 0:e.value},f=e=>{let{children:t,options:r}=e;return c.createElement(d.Provider,{value:{value:r}},t)};var b=r(2609),m=r(10594),v=r.n(m);function y(e){let{publishableKey:t,clerkJSUrl:r,clerkJSVersion:s,clerkJSVariant:o,nonce:a}=p(),{domain:i,proxyUrl:l}=(0,n.ho)();if(!t)return null;let u={domain:i,proxyUrl:l,publishableKey:t,clerkJSUrl:r,clerkJSVersion:s,clerkJSVariant:o,nonce:a},d=(0,b.nO)(u),f="app"===e.router?"script":v();return c.createElement(f,{src:d,"data-clerk-js-script":!0,async:!0,defer:"pages"!==e.router&&void 0,crossOrigin:"anonymous",strategy:"pages"===e.router?"beforeInteractive":void 0,...(0,b.T5)(u)})}var _=r(38036),h=r(76975),g=r(67160),w=r(63680);let E=e=>{var t;return{...e,publishableKey:e.publishableKey||w.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY||"",clerkJSUrl:e.clerkJSUrl||w.env.NEXT_PUBLIC_CLERK_JS_URL,clerkJSVersion:e.clerkJSVersion||w.env.NEXT_PUBLIC_CLERK_JS_VERSION,proxyUrl:e.proxyUrl||w.env.NEXT_PUBLIC_CLERK_PROXY_URL||"",domain:e.domain||w.env.NEXT_PUBLIC_CLERK_DOMAIN||"",isSatellite:e.isSatellite||(0,h.zz)(w.env.NEXT_PUBLIC_CLERK_IS_SATELLITE),signInUrl:e.signInUrl||w.env.NEXT_PUBLIC_CLERK_SIGN_IN_URL||"",signUpUrl:e.signUpUrl||w.env.NEXT_PUBLIC_CLERK_SIGN_UP_URL||"",signInForceRedirectUrl:e.signInForceRedirectUrl||w.env.NEXT_PUBLIC_CLERK_SIGN_IN_FORCE_REDIRECT_URL||"",signUpForceRedirectUrl:e.signUpForceRedirectUrl||w.env.NEXT_PUBLIC_CLERK_SIGN_UP_FORCE_REDIRECT_URL||"",signInFallbackRedirectUrl:e.signInFallbackRedirectUrl||w.env.NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL||"",signUpFallbackRedirectUrl:e.signUpFallbackRedirectUrl||w.env.NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL||"",afterSignInUrl:e.afterSignInUrl||w.env.NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL||"",afterSignUpUrl:e.afterSignUpUrl||w.env.NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL||"",newSubscriptionRedirectUrl:e.newSubscriptionRedirectUrl||w.env.NEXT_PUBLIC_CLERK_CHECKOUT_CONTINUE_URL||"",telemetry:null!=(t=e.telemetry)?t:{disabled:(0,h.zz)(w.env.NEXT_PUBLIC_CLERK_TELEMETRY_DISABLED),debug:(0,h.zz)(w.env.NEXT_PUBLIC_CLERK_TELEMETRY_DEBUG)},sdkMetadata:g.tm}};var x=r(3102),C=r(57042);let k=()=>{var e,t;let r=(0,n.ho)(),{pagesRouter:s}=(0,C.r)();return null==(t=r.telemetry)||t.record((0,x.YF)({router:s?"pages":"app",...(null==(e=null==globalThis?void 0:globalThis.next)?void 0:e.version)?{nextjsVersion:globalThis.next.version}:{}})),null};var L=r(43458),R=r(33587),T=r(40138);let I=e=>{var t;return null!=window.__clerk_internal_navigations||(window.__clerk_internal_navigations={}),null!=(t=window.__clerk_internal_navigations)[e]||(t[e]={}),window.__clerk_internal_navigations[e]},S=e=>{let{windowNav:t,routerNav:r,name:n}=e,s=(0,i.usePathname)(),[o,a]=(0,c.useTransition)();t&&(I(n).fun=(e,s)=>new Promise(o=>{var i,l;null!=(i=I(n)).promisesBuffer||(i.promisesBuffer=[]),null==(l=I(n).promisesBuffer)||l.push(o),a(()=>{var n,o,a;if((null==(n=null==s?void 0:s.__internal_metadata)?void 0:n.navigationType)==="internal")t((null!=(a=null==(o=window.next)?void 0:o.version)?a:"")<"14.1.0"?history.state:null,"",e);else r(e)})}));let l=()=>{var e;null==(e=I(n).promisesBuffer)||e.forEach(e=>e()),I(n).promisesBuffer=[]};return(0,c.useEffect)(()=>(l(),l),[]),(0,c.useEffect)(()=>{o||l()},[s,o]),(0,c.useCallback)((e,t)=>I(n).fun(e,t),[])},j=(0,a.default)(()=>r.e(4443).then(r.bind(r,34443)).then(e=>e.KeylessCreatorOrReader),{loadableGenerated:{webpack:()=>[34443]}}),P=e=>{let t,r;if(L.M0){var a,d;let e=`Clerk:
|
|
2
2
|
Your current Next.js version (${l.version}) will be deprecated in the next major release of "@clerk/nextjs". Please upgrade to next@14.1.0 or later.`;(0,s.M)()?(a=e,o.has(a)||(o.add(a),console.warn(a))):(d=`
|
|
3
3
|
\x1b[43m----------
|
|
4
4
|
${e}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9986],{97605:(e,o,r)=>{r.r(o),r.d(o,{default:()=>t});let t=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#1d2021","activityBar.border":"#3c3836","activityBar.foreground":"#ebdbb2","activityBarBadge.background":"#458588","activityBarBadge.foreground":"#ebdbb2","activityBarTop.background":"#1d2021","activityBarTop.foreground":"#ebdbb2","badge.background":"#b16286","badge.foreground":"#ebdbb2","button.background":"#45858880","button.foreground":"#ebdbb2","button.hoverBackground":"#45858860","debugToolBar.background":"#1d2021","diffEditor.insertedTextBackground":"#b8bb2630","diffEditor.removedTextBackground":"#fb493430","dropdown.background":"#1d2021","dropdown.border":"#3c3836","dropdown.foreground":"#ebdbb2","editor.background":"#1d2021","editor.findMatchBackground":"#83a59870","editor.findMatchHighlightBackground":"#fe801930","editor.findRangeHighlightBackground":"#83a59870","editor.foreground":"#ebdbb2","editor.hoverHighlightBackground":"#689d6a50","editor.lineHighlightBackground":"#3c383660","editor.lineHighlightBorder":"#0000","editor.selectionBackground":"#689d6a40","editor.selectionHighlightBackground":"#fabd2f40","editorBracketHighlight.foreground1":"#b16286","editorBracketHighlight.foreground2":"#458588","editorBracketHighlight.foreground3":"#689d6a","editorBracketHighlight.foreground4":"#98971a","editorBracketHighlight.foreground5":"#d79921","editorBracketHighlight.foreground6":"#d65d0e","editorBracketHighlight.unexpectedBracket.foreground":"#cc241d","editorBracketMatch.background":"#92837480","editorBracketMatch.border":"#0000","editorCodeLens.foreground":"#a8998490","editorCursor.foreground":"#ebdbb2","editorError.foreground":"#cc241d","editorGhostText.background":"#665c5460","editorGroup.border":"#3c3836","editorGroup.dropBackground":"#3c383660","editorGroupHeader.noTabsBackground":"#1d2021","editorGroupHeader.tabsBackground":"#1d2021","editorGroupHeader.tabsBorder":"#3c3836","editorGutter.addedBackground":"#b8bb26","editorGutter.background":"#0000","editorGutter.deletedBackground":"#fb4934","editorGutter.modifiedBackground":"#83a598","editorHoverWidget.background":"#1d2021","editorHoverWidget.border":"#3c3836","editorIndentGuide.activeBackground":"#665c54","editorInfo.foreground":"#458588","editorLineNumber.foreground":"#665c54","editorLink.activeForeground":"#ebdbb2","editorOverviewRuler.addedForeground":"#83a598","editorOverviewRuler.border":"#0000","editorOverviewRuler.commonContentForeground":"#928374","editorOverviewRuler.currentContentForeground":"#458588","editorOverviewRuler.deletedForeground":"#83a598","editorOverviewRuler.errorForeground":"#fb4934","editorOverviewRuler.findMatchForeground":"#bdae93","editorOverviewRuler.incomingContentForeground":"#689d6a","editorOverviewRuler.infoForeground":"#d3869b","editorOverviewRuler.modifiedForeground":"#83a598","editorOverviewRuler.rangeHighlightForeground":"#bdae93","editorOverviewRuler.selectionHighlightForeground":"#665c54","editorOverviewRuler.warningForeground":"#d79921","editorOverviewRuler.wordHighlightForeground":"#665c54","editorOverviewRuler.wordHighlightStrongForeground":"#665c54","editorRuler.foreground":"#a8998440","editorStickyScroll.shadow":"#50494599","editorStickyScrollHover.background":"#3c383660","editorSuggestWidget.background":"#1d2021","editorSuggestWidget.border":"#3c3836","editorSuggestWidget.foreground":"#ebdbb2","editorSuggestWidget.highlightForeground":"#689d6a","editorSuggestWidget.selectedBackground":"#3c383660","editorWarning.foreground":"#d79921","editorWhitespace.foreground":"#a8998420","editorWidget.background":"#1d2021","editorWidget.border":"#3c3836","errorForeground":"#fb4934","extensionButton.prominentBackground":"#b8bb2680","extensionButton.prominentHoverBackground":"#b8bb2630","focusBorder":"#3c3836","foreground":"#ebdbb2","gitDecoration.addedResourceForeground":"#ebdbb2","gitDecoration.conflictingResourceForeground":"#b16286","gitDecoration.deletedResourceForeground":"#cc241d","gitDecoration.ignoredResourceForeground":"#7c6f64","gitDecoration.modifiedResourceForeground":"#d79921","gitDecoration.untrackedResourceForeground":"#98971a","gitlens.closedAutolinkedIssueIconColor":"#b16286","gitlens.closedPullRequestIconColor":"#cc241d","gitlens.decorations.branchAheadForegroundColor":"#98971a","gitlens.decorations.branchBehindForegroundColor":"#d65d0e","gitlens.decorations.branchDivergedForegroundColor":"#d79921","gitlens.decorations.branchMissingUpstreamForegroundColor":"#cc241d","gitlens.decorations.statusMergingOrRebasingConflictForegroundColor":"#cc241d","gitlens.decorations.statusMergingOrRebasingForegroundColor":"#d79921","gitlens.decorations.workspaceCurrentForegroundColor":"#98971a","gitlens.decorations.workspaceRepoMissingForegroundColor":"#7c6f64","gitlens.decorations.workspaceRepoOpenForegroundColor":"#98971a","gitlens.decorations.worktreeHasUncommittedChangesForegroundColor":"#928374","gitlens.decorations.worktreeMissingForegroundColor":"#cc241d","gitlens.graphChangesColumnAddedColor":"#98971a","gitlens.graphChangesColumnDeletedColor":"#cc241d","gitlens.graphLane10Color":"#98971a","gitlens.graphLane1Color":"#83a598","gitlens.graphLane2Color":"#458588","gitlens.graphLane3Color":"#d3869b","gitlens.graphLane4Color":"#b16286","gitlens.graphLane5Color":"#8ec07c","gitlens.graphLane6Color":"#689d6a","gitlens.graphLane7Color":"#fabd2f","gitlens.graphLane8Color":"#d79921","gitlens.graphLane9Color":"#b8bb26","gitlens.graphMinimapMarkerHeadColor":"#98971a","gitlens.graphMinimapMarkerHighlightsColor":"#b8bb26","gitlens.graphMinimapMarkerLocalBranchesColor":"#83a598","gitlens.graphMinimapMarkerPullRequestsColor":"#fe8019","gitlens.graphMinimapMarkerRemoteBranchesColor":"#458588","gitlens.graphMinimapMarkerStashesColor":"#b16286","gitlens.graphMinimapMarkerTagsColor":"#7c6f64","gitlens.graphMinimapMarkerUpstreamColor":"#689d6a","gitlens.graphScrollMarkerHeadColor":"#b8bb26","gitlens.graphScrollMarkerHighlightsColor":"#d79921","gitlens.graphScrollMarkerLocalBranchesColor":"#83a598","gitlens.graphScrollMarkerPullRequestsColor":"#fe8019","gitlens.graphScrollMarkerRemoteBranchesColor":"#458588","gitlens.graphScrollMarkerStashesColor":"#b16286","gitlens.graphScrollMarkerTagsColor":"#7c6f64","gitlens.graphScrollMarkerUpstreamColor":"#8ec07c","gitlens.gutterBackgroundColor":"#3c3836","gitlens.gutterForegroundColor":"#ebdbb2","gitlens.gutterUncommittedForegroundColor":"#458588","gitlens.launchpadIndicatorAttentionColor":"#fabd2f","gitlens.launchpadIndicatorAttentionHoverColor":"#d79921","gitlens.launchpadIndicatorBlockedColor":"#fb4934","gitlens.launchpadIndicatorBlockedHoverColor":"#cc241d","gitlens.launchpadIndicatorMergeableColor":"#b8bb26","gitlens.launchpadIndicatorMergeableHoverColor":"#98971a","gitlens.lineHighlightBackgroundColor":"#3c3836","gitlens.lineHighlightOverviewRulerColor":"#458588","gitlens.mergedPullRequestIconColor":"#b16286","gitlens.openAutolinkedIssueIconColor":"#98971a","gitlens.openPullRequestIconColor":"#98971a","gitlens.trailingLineBackgroundColor":"#1d2021a0","gitlens.trailingLineForegroundColor":"#928374a0","gitlens.unpublishedChangesIconColor":"#98971a","gitlens.unpublishedCommitIconColor":"#98971a","gitlens.unpulledChangesIconColor":"#fe8019","icon.foreground":"#ebdbb2","input.background":"#1d2021","input.border":"#3c3836","input.foreground":"#ebdbb2","input.placeholderForeground":"#ebdbb260","inputOption.activeBorder":"#ebdbb260","inputValidation.errorBackground":"#cc241d","inputValidation.errorBorder":"#fb4934","inputValidation.infoBackground":"#45858880","inputValidation.infoBorder":"#83a598","inputValidation.warningBackground":"#d79921","inputValidation.warningBorder":"#fabd2f","list.activeSelectionBackground":"#3c383680","list.activeSelectionForeground":"#8ec07c","list.dropBackground":"#3c3836","list.focusBackground":"#3c3836","list.focusForeground":"#ebdbb2","list.highlightForeground":"#689d6a","list.hoverBackground":"#3c383680","list.hoverForeground":"#d5c4a1","list.inactiveSelectionBackground":"#3c383680","list.inactiveSelectionForeground":"#689d6a","menu.border":"#3c3836","menu.separatorBackground":"#3c3836","merge.border":"#0000","merge.currentContentBackground":"#45858820","merge.currentHeaderBackground":"#45858840","merge.incomingContentBackground":"#689d6a20","merge.incomingHeaderBackground":"#689d6a40","notebook.cellBorderColor":"#504945","notebook.cellEditorBackground":"#3c3836","notebook.focusedCellBorder":"#a89984","notebook.focusedEditorBorder":"#504945","panel.border":"#3c3836","panelTitle.activeForeground":"#ebdbb2","peekView.border":"#3c3836","peekViewEditor.background":"#3c383670","peekViewEditor.matchHighlightBackground":"#504945","peekViewEditorGutter.background":"#3c383670","peekViewResult.background":"#3c383670","peekViewResult.fileForeground":"#ebdbb2","peekViewResult.lineForeground":"#ebdbb2","peekViewResult.matchHighlightBackground":"#504945","peekViewResult.selectionBackground":"#45858820","peekViewResult.selectionForeground":"#ebdbb2","peekViewTitle.background":"#3c383670","peekViewTitleDescription.foreground":"#bdae93","peekViewTitleLabel.foreground":"#ebdbb2","progressBar.background":"#689d6a","scmGraph.historyItemHoverDefaultLabelForeground":"#ebdbb2","scmGraph.historyItemHoverLabelForeground":"#ebdbb2","scrollbar.shadow":"#1d2021","scrollbarSlider.activeBackground":"#689d6a","scrollbarSlider.background":"#50494599","scrollbarSlider.hoverBackground":"#665c54","selection.background":"#689d6a80","sideBar.background":"#1d2021","sideBar.border":"#3c3836","sideBar.foreground":"#d5c4a1","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.foreground":"#ebdbb2","sideBarTitle.foreground":"#ebdbb2","statusBar.background":"#1d2021","statusBar.border":"#3c3836","statusBar.debuggingBackground":"#fe8019","statusBar.debuggingBorder":"#0000","statusBar.debuggingForeground":"#1d2021","statusBar.foreground":"#ebdbb2","statusBar.noFolderBackground":"#1d2021","statusBar.noFolderBorder":"#0000","tab.activeBackground":"#3c3836","tab.activeBorder":"#689d6a","tab.activeForeground":"#ebdbb2","tab.border":"#0000","tab.inactiveBackground":"#1d2021","tab.inactiveForeground":"#a89984","tab.unfocusedActiveBorder":"#0000","tab.unfocusedActiveForeground":"#a89984","tab.unfocusedInactiveForeground":"#928374","terminal.ansiBlack":"#3c3836","terminal.ansiBlue":"#458588","terminal.ansiBrightBlack":"#928374","terminal.ansiBrightBlue":"#83a598","terminal.ansiBrightCyan":"#8ec07c","terminal.ansiBrightGreen":"#b8bb26","terminal.ansiBrightMagenta":"#d3869b","terminal.ansiBrightRed":"#fb4934","terminal.ansiBrightWhite":"#ebdbb2","terminal.ansiBrightYellow":"#fabd2f","terminal.ansiCyan":"#689d6a","terminal.ansiGreen":"#98971a","terminal.ansiMagenta":"#b16286","terminal.ansiRed":"#cc241d","terminal.ansiWhite":"#a89984","terminal.ansiYellow":"#d79921","terminal.background":"#1d2021","terminal.foreground":"#ebdbb2","textLink.activeForeground":"#458588","textLink.foreground":"#83a598","titleBar.activeBackground":"#1d2021","titleBar.activeForeground":"#ebdbb2","titleBar.inactiveBackground":"#1d2021","widget.border":"#3c3836","widget.shadow":"#1d202130"},"displayName":"Gruvbox Dark Hard","name":"gruvbox-dark-hard","semanticHighlighting":true,"semanticTokenColors":{"component":"#fe8019","constant.builtin":"#d3869b","function":"#8ec07c","function.builtin":"#fe8019","method":"#8ec07c","parameter":"#83a598","property":"#83a598","property:python":"#ebdbb2","variable":"#ebdbb2"},"tokenColors":[{"settings":{"foreground":"#ebdbb2"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"header","settings":{"foreground":"#458588"}},{"scope":["comment","punctuation.definition.comment"],"settings":{"fontStyle":"italic","foreground":"#928374"}},{"scope":["constant","support.constant","variable.arguments"],"settings":{"foreground":"#d3869b"}},{"scope":"constant.rgb-value","settings":{"foreground":"#ebdbb2"}},{"scope":"entity.name.selector","settings":{"foreground":"#8ec07c"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#fabd2f"}},{"scope":["entity.name.tag","punctuation.tag"],"settings":{"foreground":"#8ec07c"}},{"scope":["invalid","invalid.illegal"],"settings":{"foreground":"#cc241d"}},{"scope":"invalid.deprecated","settings":{"foreground":"#b16286"}},{"scope":"meta.selector","settings":{"foreground":"#8ec07c"}},{"scope":"meta.preprocessor","settings":{"foreground":"#fe8019"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#b8bb26"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#b8bb26"}},{"scope":"meta.header.diff","settings":{"foreground":"#fe8019"}},{"scope":"storage","settings":{"foreground":"#fb4934"}},{"scope":["storage.type","storage.modifier"],"settings":{"foreground":"#fe8019"}},{"scope":"string","settings":{"foreground":"#b8bb26"}},{"scope":"string.tag","settings":{"foreground":"#b8bb26"}},{"scope":"string.value","settings":{"foreground":"#b8bb26"}},{"scope":"string.regexp","settings":{"foreground":"#fe8019"}},{"scope":"string.escape","settings":{"foreground":"#fb4934"}},{"scope":"string.quasi","settings":{"foreground":"#8ec07c"}},{"scope":"string.entity","settings":{"foreground":"#b8bb26"}},{"scope":"object","settings":{"foreground":"#ebdbb2"}},{"scope":"module.node","settings":{"foreground":"#83a598"}},{"scope":"support.type.property-name","settings":{"foreground":"#689d6a"}},{"scope":"keyword","settings":{"foreground":"#fb4934"}},{"scope":"keyword.control","settings":{"foreground":"#fb4934"}},{"scope":"keyword.control.module","settings":{"foreground":"#8ec07c"}},{"scope":"keyword.control.less","settings":{"foreground":"#d79921"}},{"scope":"keyword.operator","settings":{"foreground":"#8ec07c"}},{"scope":"keyword.operator.new","settings":{"foreground":"#fe8019"}},{"scope":"keyword.other.unit","settings":{"foreground":"#b8bb26"}},{"scope":"metatag.php","settings":{"foreground":"#fe8019"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#689d6a"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#b8bb26"}},{"scope":["meta.type.name","meta.return.type","meta.return-type","meta.cast","meta.type.annotation","support.type","storage.type.cs","variable.class"],"settings":{"foreground":"#fabd2f"}},{"scope":["variable.this","support.variable"],"settings":{"foreground":"#d3869b"}},{"scope":["entity.name","entity.static","entity.name.class.static.function","entity.name.function","entity.name.class","entity.name.type"],"settings":{"foreground":"#fabd2f"}},{"scope":["entity.function","entity.name.function.static"],"settings":{"foreground":"#8ec07c"}},{"scope":"entity.name.function.function-call","settings":{"foreground":"#8ec07c"}},{"scope":"support.function.builtin","settings":{"foreground":"#fe8019"}},{"scope":["entity.name.method","entity.name.method.function-call","entity.name.static.function-call"],"settings":{"foreground":"#689d6a"}},{"scope":"brace","settings":{"foreground":"#d5c4a1"}},{"scope":["meta.parameter.type.variable","variable.parameter","variable.name","variable.other","variable","string.constant.other.placeholder"],"settings":{"foreground":"#83a598"}},{"scope":"prototype","settings":{"foreground":"#d3869b"}},{"scope":["punctuation"],"settings":{"foreground":"#a89984"}},{"scope":"punctuation.quoted","settings":{"foreground":"#ebdbb2"}},{"scope":"punctuation.quasi","settings":{"foreground":"#fb4934"}},{"scope":["*url*","*link*","*uri*"],"settings":{"fontStyle":"underline"}},{"scope":["meta.function.python","entity.name.function.python"],"settings":{"foreground":"#8ec07c"}},{"scope":["storage.type.function.python","storage.modifier.declaration","storage.type.class.python","storage.type.string.python"],"settings":{"foreground":"#fb4934"}},{"scope":["storage.type.function.async.python"],"settings":{"foreground":"#fb4934"}},{"scope":"meta.function-call.generic","settings":{"foreground":"#83a598"}},{"scope":"meta.function-call.arguments","settings":{"foreground":"#d5c4a1"}},{"scope":"entity.name.function.decorator","settings":{"fontStyle":"bold","foreground":"#fabd2f"}},{"scope":"constant.other.caps","settings":{"fontStyle":"bold"}},{"scope":"keyword.operator.logical","settings":{"foreground":"#fb4934"}},{"scope":"punctuation.definition.logical-expression","settings":{"foreground":"#fe8019"}},{"scope":["string.interpolated.dollar.shell","string.interpolated.backtick.shell"],"settings":{"foreground":"#8ec07c"}},{"scope":"keyword.control.directive","settings":{"foreground":"#8ec07c"}},{"scope":"support.function.C99","settings":{"foreground":"#fabd2f"}},{"scope":["meta.function.cs","entity.name.function.cs","entity.name.type.namespace.cs"],"settings":{"foreground":"#b8bb26"}},{"scope":["keyword.other.using.cs","entity.name.variable.field.cs","entity.name.variable.local.cs","variable.other.readwrite.cs"],"settings":{"foreground":"#8ec07c"}},{"scope":["keyword.other.this.cs","keyword.other.base.cs"],"settings":{"foreground":"#d3869b"}},{"scope":"meta.scope.prerequisites","settings":{"foreground":"#fabd2f"}},{"scope":"entity.name.function.target","settings":{"fontStyle":"bold","foreground":"#b8bb26"}},{"scope":["storage.modifier.import.java","storage.modifier.package.java"],"settings":{"foreground":"#bdae93"}},{"scope":["keyword.other.import.java","keyword.other.package.java"],"settings":{"foreground":"#8ec07c"}},{"scope":"storage.type.java","settings":{"foreground":"#fabd2f"}},{"scope":"storage.type.annotation","settings":{"fontStyle":"bold","foreground":"#83a598"}},{"scope":"keyword.other.documentation.javadoc","settings":{"foreground":"#8ec07c"}},{"scope":"comment.block.javadoc variable.parameter.java","settings":{"fontStyle":"bold","foreground":"#b8bb26"}},{"scope":["source.java variable.other.object","source.java variable.other.definition.java"],"settings":{"foreground":"#ebdbb2"}},{"scope":"meta.function-parameters.lisp","settings":{"foreground":"#fabd2f"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"string.other.link.title.markdown","settings":{"fontStyle":"underline","foreground":"#928374"}},{"scope":"markup.underline.link","settings":{"foreground":"#d3869b"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#fe8019"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#fe8019"}},{"scope":"heading.1.markdown entity.name.section.markdown","settings":{"fontStyle":"bold","foreground":"#fb4934"}},{"scope":"heading.2.markdown entity.name.section.markdown","settings":{"fontStyle":"bold","foreground":"#fe8019"}},{"scope":"heading.3.markdown entity.name.section.markdown","settings":{"fontStyle":"bold","foreground":"#fabd2f"}},{"scope":"heading.4.markdown entity.name.section.markdown","settings":{"fontStyle":"bold","foreground":"#b8bb26"}},{"scope":"heading.5.markdown entity.name.section.markdown","settings":{"fontStyle":"bold","foreground":"#83a598"}},{"scope":"heading.6.markdown entity.name.section.markdown","settings":{"fontStyle":"bold","foreground":"#d3869b"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.inserted","settings":{"foreground":"#b8bb26"}},{"scope":"markup.deleted","settings":{"foreground":"#d65d0e"}},{"scope":"markup.changed","settings":{"foreground":"#fe8019"}},{"scope":"markup.punctuation.quote.beginning","settings":{"foreground":"#98971a"}},{"scope":"markup.punctuation.list.beginning","settings":{"foreground":"#83a598"}},{"scope":["markup.inline.raw","markup.fenced_code.block"],"settings":{"foreground":"#8ec07c"}},{"scope":"string.quoted.double.json","settings":{"foreground":"#83a598"}},{"scope":"entity.other.attribute-name.css","settings":{"foreground":"#fe8019"}},{"scope":"source.css meta.selector","settings":{"foreground":"#ebdbb2"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#fe8019"}},{"scope":"entity.other.attribute-name.class","settings":{"foreground":"#b8bb26"}},{"scope":["source.css support.function.transform","source.css support.function.timing-function","source.css support.function.misc"],"settings":{"foreground":"#fb4934"}},{"scope":["support.property-value","constant.rgb-value","support.property-value.scss","constant.rgb-value.scss"],"settings":{"foreground":"#d65d0e"}},{"scope":["entity.name.tag.css"],"settings":{"fontStyle":""}},{"scope":["punctuation.definition.tag"],"settings":{"foreground":"#83a598"}},{"scope":["text.html entity.name.tag","text.html punctuation.tag"],"settings":{"fontStyle":"bold","foreground":"#8ec07c"}},{"scope":["source.js variable.language"],"settings":{"foreground":"#fe8019"}},{"scope":["source.ts variable.language"],"settings":{"foreground":"#fe8019"}},{"scope":["source.go storage.type"],"settings":{"foreground":"#fabd2f"}},{"scope":["source.go entity.name.import"],"settings":{"foreground":"#b8bb26"}},{"scope":["source.go keyword.package","source.go keyword.import"],"settings":{"foreground":"#8ec07c"}},{"scope":["source.go keyword.interface","source.go keyword.struct"],"settings":{"foreground":"#83a598"}},{"scope":["source.go entity.name.type"],"settings":{"foreground":"#ebdbb2"}},{"scope":["source.go entity.name.function"],"settings":{"foreground":"#d3869b"}},{"scope":["keyword.control.cucumber.table"],"settings":{"foreground":"#83a598"}},{"scope":["source.reason string.double","source.reason string.regexp"],"settings":{"foreground":"#b8bb26"}},{"scope":["source.reason keyword.control.less"],"settings":{"foreground":"#8ec07c"}},{"scope":["source.reason entity.name.function"],"settings":{"foreground":"#83a598"}},{"scope":["source.reason support.property-value","source.reason entity.name.filename"],"settings":{"foreground":"#fe8019"}},{"scope":["source.powershell variable.other.member.powershell"],"settings":{"foreground":"#fe8019"}},{"scope":["source.powershell support.function.powershell"],"settings":{"foreground":"#fabd2f"}},{"scope":["source.powershell support.function.attribute.powershell"],"settings":{"foreground":"#bdae93"}},{"scope":["source.powershell meta.hashtable.assignment.powershell variable.other.readwrite.powershell"],"settings":{"foreground":"#fe8019"}},{"scope":["support.function.be.latex","support.function.general.tex","support.function.section.latex","support.function.textbf.latex","support.function.textit.latex","support.function.texttt.latex","support.function.emph.latex","support.function.url.latex"],"settings":{"foreground":"#fb4934"}},{"scope":["support.class.math.block.tex","support.class.math.block.environment.latex"],"settings":{"foreground":"#fe8019"}},{"scope":["keyword.control.preamble.latex","keyword.control.include.latex"],"settings":{"foreground":"#d3869b"}},{"scope":["support.class.latex"],"settings":{"foreground":"#8ec07c"}}],"type":"dark"}'))}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7605],{97605:(e,o,r)=>{r.r(o),r.d(o,{default:()=>t});let t=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#1d2021","activityBar.border":"#3c3836","activityBar.foreground":"#ebdbb2","activityBarBadge.background":"#458588","activityBarBadge.foreground":"#ebdbb2","activityBarTop.background":"#1d2021","activityBarTop.foreground":"#ebdbb2","badge.background":"#b16286","badge.foreground":"#ebdbb2","button.background":"#45858880","button.foreground":"#ebdbb2","button.hoverBackground":"#45858860","debugToolBar.background":"#1d2021","diffEditor.insertedTextBackground":"#b8bb2630","diffEditor.removedTextBackground":"#fb493430","dropdown.background":"#1d2021","dropdown.border":"#3c3836","dropdown.foreground":"#ebdbb2","editor.background":"#1d2021","editor.findMatchBackground":"#83a59870","editor.findMatchHighlightBackground":"#fe801930","editor.findRangeHighlightBackground":"#83a59870","editor.foreground":"#ebdbb2","editor.hoverHighlightBackground":"#689d6a50","editor.lineHighlightBackground":"#3c383660","editor.lineHighlightBorder":"#0000","editor.selectionBackground":"#689d6a40","editor.selectionHighlightBackground":"#fabd2f40","editorBracketHighlight.foreground1":"#b16286","editorBracketHighlight.foreground2":"#458588","editorBracketHighlight.foreground3":"#689d6a","editorBracketHighlight.foreground4":"#98971a","editorBracketHighlight.foreground5":"#d79921","editorBracketHighlight.foreground6":"#d65d0e","editorBracketHighlight.unexpectedBracket.foreground":"#cc241d","editorBracketMatch.background":"#92837480","editorBracketMatch.border":"#0000","editorCodeLens.foreground":"#a8998490","editorCursor.foreground":"#ebdbb2","editorError.foreground":"#cc241d","editorGhostText.background":"#665c5460","editorGroup.border":"#3c3836","editorGroup.dropBackground":"#3c383660","editorGroupHeader.noTabsBackground":"#1d2021","editorGroupHeader.tabsBackground":"#1d2021","editorGroupHeader.tabsBorder":"#3c3836","editorGutter.addedBackground":"#b8bb26","editorGutter.background":"#0000","editorGutter.deletedBackground":"#fb4934","editorGutter.modifiedBackground":"#83a598","editorHoverWidget.background":"#1d2021","editorHoverWidget.border":"#3c3836","editorIndentGuide.activeBackground":"#665c54","editorInfo.foreground":"#458588","editorLineNumber.foreground":"#665c54","editorLink.activeForeground":"#ebdbb2","editorOverviewRuler.addedForeground":"#83a598","editorOverviewRuler.border":"#0000","editorOverviewRuler.commonContentForeground":"#928374","editorOverviewRuler.currentContentForeground":"#458588","editorOverviewRuler.deletedForeground":"#83a598","editorOverviewRuler.errorForeground":"#fb4934","editorOverviewRuler.findMatchForeground":"#bdae93","editorOverviewRuler.incomingContentForeground":"#689d6a","editorOverviewRuler.infoForeground":"#d3869b","editorOverviewRuler.modifiedForeground":"#83a598","editorOverviewRuler.rangeHighlightForeground":"#bdae93","editorOverviewRuler.selectionHighlightForeground":"#665c54","editorOverviewRuler.warningForeground":"#d79921","editorOverviewRuler.wordHighlightForeground":"#665c54","editorOverviewRuler.wordHighlightStrongForeground":"#665c54","editorRuler.foreground":"#a8998440","editorStickyScroll.shadow":"#50494599","editorStickyScrollHover.background":"#3c383660","editorSuggestWidget.background":"#1d2021","editorSuggestWidget.border":"#3c3836","editorSuggestWidget.foreground":"#ebdbb2","editorSuggestWidget.highlightForeground":"#689d6a","editorSuggestWidget.selectedBackground":"#3c383660","editorWarning.foreground":"#d79921","editorWhitespace.foreground":"#a8998420","editorWidget.background":"#1d2021","editorWidget.border":"#3c3836","errorForeground":"#fb4934","extensionButton.prominentBackground":"#b8bb2680","extensionButton.prominentHoverBackground":"#b8bb2630","focusBorder":"#3c3836","foreground":"#ebdbb2","gitDecoration.addedResourceForeground":"#ebdbb2","gitDecoration.conflictingResourceForeground":"#b16286","gitDecoration.deletedResourceForeground":"#cc241d","gitDecoration.ignoredResourceForeground":"#7c6f64","gitDecoration.modifiedResourceForeground":"#d79921","gitDecoration.untrackedResourceForeground":"#98971a","gitlens.closedAutolinkedIssueIconColor":"#b16286","gitlens.closedPullRequestIconColor":"#cc241d","gitlens.decorations.branchAheadForegroundColor":"#98971a","gitlens.decorations.branchBehindForegroundColor":"#d65d0e","gitlens.decorations.branchDivergedForegroundColor":"#d79921","gitlens.decorations.branchMissingUpstreamForegroundColor":"#cc241d","gitlens.decorations.statusMergingOrRebasingConflictForegroundColor":"#cc241d","gitlens.decorations.statusMergingOrRebasingForegroundColor":"#d79921","gitlens.decorations.workspaceCurrentForegroundColor":"#98971a","gitlens.decorations.workspaceRepoMissingForegroundColor":"#7c6f64","gitlens.decorations.workspaceRepoOpenForegroundColor":"#98971a","gitlens.decorations.worktreeHasUncommittedChangesForegroundColor":"#928374","gitlens.decorations.worktreeMissingForegroundColor":"#cc241d","gitlens.graphChangesColumnAddedColor":"#98971a","gitlens.graphChangesColumnDeletedColor":"#cc241d","gitlens.graphLane10Color":"#98971a","gitlens.graphLane1Color":"#83a598","gitlens.graphLane2Color":"#458588","gitlens.graphLane3Color":"#d3869b","gitlens.graphLane4Color":"#b16286","gitlens.graphLane5Color":"#8ec07c","gitlens.graphLane6Color":"#689d6a","gitlens.graphLane7Color":"#fabd2f","gitlens.graphLane8Color":"#d79921","gitlens.graphLane9Color":"#b8bb26","gitlens.graphMinimapMarkerHeadColor":"#98971a","gitlens.graphMinimapMarkerHighlightsColor":"#b8bb26","gitlens.graphMinimapMarkerLocalBranchesColor":"#83a598","gitlens.graphMinimapMarkerPullRequestsColor":"#fe8019","gitlens.graphMinimapMarkerRemoteBranchesColor":"#458588","gitlens.graphMinimapMarkerStashesColor":"#b16286","gitlens.graphMinimapMarkerTagsColor":"#7c6f64","gitlens.graphMinimapMarkerUpstreamColor":"#689d6a","gitlens.graphScrollMarkerHeadColor":"#b8bb26","gitlens.graphScrollMarkerHighlightsColor":"#d79921","gitlens.graphScrollMarkerLocalBranchesColor":"#83a598","gitlens.graphScrollMarkerPullRequestsColor":"#fe8019","gitlens.graphScrollMarkerRemoteBranchesColor":"#458588","gitlens.graphScrollMarkerStashesColor":"#b16286","gitlens.graphScrollMarkerTagsColor":"#7c6f64","gitlens.graphScrollMarkerUpstreamColor":"#8ec07c","gitlens.gutterBackgroundColor":"#3c3836","gitlens.gutterForegroundColor":"#ebdbb2","gitlens.gutterUncommittedForegroundColor":"#458588","gitlens.launchpadIndicatorAttentionColor":"#fabd2f","gitlens.launchpadIndicatorAttentionHoverColor":"#d79921","gitlens.launchpadIndicatorBlockedColor":"#fb4934","gitlens.launchpadIndicatorBlockedHoverColor":"#cc241d","gitlens.launchpadIndicatorMergeableColor":"#b8bb26","gitlens.launchpadIndicatorMergeableHoverColor":"#98971a","gitlens.lineHighlightBackgroundColor":"#3c3836","gitlens.lineHighlightOverviewRulerColor":"#458588","gitlens.mergedPullRequestIconColor":"#b16286","gitlens.openAutolinkedIssueIconColor":"#98971a","gitlens.openPullRequestIconColor":"#98971a","gitlens.trailingLineBackgroundColor":"#1d2021a0","gitlens.trailingLineForegroundColor":"#928374a0","gitlens.unpublishedChangesIconColor":"#98971a","gitlens.unpublishedCommitIconColor":"#98971a","gitlens.unpulledChangesIconColor":"#fe8019","icon.foreground":"#ebdbb2","input.background":"#1d2021","input.border":"#3c3836","input.foreground":"#ebdbb2","input.placeholderForeground":"#ebdbb260","inputOption.activeBorder":"#ebdbb260","inputValidation.errorBackground":"#cc241d","inputValidation.errorBorder":"#fb4934","inputValidation.infoBackground":"#45858880","inputValidation.infoBorder":"#83a598","inputValidation.warningBackground":"#d79921","inputValidation.warningBorder":"#fabd2f","list.activeSelectionBackground":"#3c383680","list.activeSelectionForeground":"#8ec07c","list.dropBackground":"#3c3836","list.focusBackground":"#3c3836","list.focusForeground":"#ebdbb2","list.highlightForeground":"#689d6a","list.hoverBackground":"#3c383680","list.hoverForeground":"#d5c4a1","list.inactiveSelectionBackground":"#3c383680","list.inactiveSelectionForeground":"#689d6a","menu.border":"#3c3836","menu.separatorBackground":"#3c3836","merge.border":"#0000","merge.currentContentBackground":"#45858820","merge.currentHeaderBackground":"#45858840","merge.incomingContentBackground":"#689d6a20","merge.incomingHeaderBackground":"#689d6a40","notebook.cellBorderColor":"#504945","notebook.cellEditorBackground":"#3c3836","notebook.focusedCellBorder":"#a89984","notebook.focusedEditorBorder":"#504945","panel.border":"#3c3836","panelTitle.activeForeground":"#ebdbb2","peekView.border":"#3c3836","peekViewEditor.background":"#3c383670","peekViewEditor.matchHighlightBackground":"#504945","peekViewEditorGutter.background":"#3c383670","peekViewResult.background":"#3c383670","peekViewResult.fileForeground":"#ebdbb2","peekViewResult.lineForeground":"#ebdbb2","peekViewResult.matchHighlightBackground":"#504945","peekViewResult.selectionBackground":"#45858820","peekViewResult.selectionForeground":"#ebdbb2","peekViewTitle.background":"#3c383670","peekViewTitleDescription.foreground":"#bdae93","peekViewTitleLabel.foreground":"#ebdbb2","progressBar.background":"#689d6a","scmGraph.historyItemHoverDefaultLabelForeground":"#ebdbb2","scmGraph.historyItemHoverLabelForeground":"#ebdbb2","scrollbar.shadow":"#1d2021","scrollbarSlider.activeBackground":"#689d6a","scrollbarSlider.background":"#50494599","scrollbarSlider.hoverBackground":"#665c54","selection.background":"#689d6a80","sideBar.background":"#1d2021","sideBar.border":"#3c3836","sideBar.foreground":"#d5c4a1","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.foreground":"#ebdbb2","sideBarTitle.foreground":"#ebdbb2","statusBar.background":"#1d2021","statusBar.border":"#3c3836","statusBar.debuggingBackground":"#fe8019","statusBar.debuggingBorder":"#0000","statusBar.debuggingForeground":"#1d2021","statusBar.foreground":"#ebdbb2","statusBar.noFolderBackground":"#1d2021","statusBar.noFolderBorder":"#0000","tab.activeBackground":"#3c3836","tab.activeBorder":"#689d6a","tab.activeForeground":"#ebdbb2","tab.border":"#0000","tab.inactiveBackground":"#1d2021","tab.inactiveForeground":"#a89984","tab.unfocusedActiveBorder":"#0000","tab.unfocusedActiveForeground":"#a89984","tab.unfocusedInactiveForeground":"#928374","terminal.ansiBlack":"#3c3836","terminal.ansiBlue":"#458588","terminal.ansiBrightBlack":"#928374","terminal.ansiBrightBlue":"#83a598","terminal.ansiBrightCyan":"#8ec07c","terminal.ansiBrightGreen":"#b8bb26","terminal.ansiBrightMagenta":"#d3869b","terminal.ansiBrightRed":"#fb4934","terminal.ansiBrightWhite":"#ebdbb2","terminal.ansiBrightYellow":"#fabd2f","terminal.ansiCyan":"#689d6a","terminal.ansiGreen":"#98971a","terminal.ansiMagenta":"#b16286","terminal.ansiRed":"#cc241d","terminal.ansiWhite":"#a89984","terminal.ansiYellow":"#d79921","terminal.background":"#1d2021","terminal.foreground":"#ebdbb2","textLink.activeForeground":"#458588","textLink.foreground":"#83a598","titleBar.activeBackground":"#1d2021","titleBar.activeForeground":"#ebdbb2","titleBar.inactiveBackground":"#1d2021","widget.border":"#3c3836","widget.shadow":"#1d202130"},"displayName":"Gruvbox Dark Hard","name":"gruvbox-dark-hard","semanticHighlighting":true,"semanticTokenColors":{"component":"#fe8019","constant.builtin":"#d3869b","function":"#8ec07c","function.builtin":"#fe8019","method":"#8ec07c","parameter":"#83a598","property":"#83a598","property:python":"#ebdbb2","variable":"#ebdbb2"},"tokenColors":[{"settings":{"foreground":"#ebdbb2"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"header","settings":{"foreground":"#458588"}},{"scope":["comment","punctuation.definition.comment"],"settings":{"fontStyle":"italic","foreground":"#928374"}},{"scope":["constant","support.constant","variable.arguments"],"settings":{"foreground":"#d3869b"}},{"scope":"constant.rgb-value","settings":{"foreground":"#ebdbb2"}},{"scope":"entity.name.selector","settings":{"foreground":"#8ec07c"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#fabd2f"}},{"scope":["entity.name.tag","punctuation.tag"],"settings":{"foreground":"#8ec07c"}},{"scope":["invalid","invalid.illegal"],"settings":{"foreground":"#cc241d"}},{"scope":"invalid.deprecated","settings":{"foreground":"#b16286"}},{"scope":"meta.selector","settings":{"foreground":"#8ec07c"}},{"scope":"meta.preprocessor","settings":{"foreground":"#fe8019"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#b8bb26"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#b8bb26"}},{"scope":"meta.header.diff","settings":{"foreground":"#fe8019"}},{"scope":"storage","settings":{"foreground":"#fb4934"}},{"scope":["storage.type","storage.modifier"],"settings":{"foreground":"#fe8019"}},{"scope":"string","settings":{"foreground":"#b8bb26"}},{"scope":"string.tag","settings":{"foreground":"#b8bb26"}},{"scope":"string.value","settings":{"foreground":"#b8bb26"}},{"scope":"string.regexp","settings":{"foreground":"#fe8019"}},{"scope":"string.escape","settings":{"foreground":"#fb4934"}},{"scope":"string.quasi","settings":{"foreground":"#8ec07c"}},{"scope":"string.entity","settings":{"foreground":"#b8bb26"}},{"scope":"object","settings":{"foreground":"#ebdbb2"}},{"scope":"module.node","settings":{"foreground":"#83a598"}},{"scope":"support.type.property-name","settings":{"foreground":"#689d6a"}},{"scope":"keyword","settings":{"foreground":"#fb4934"}},{"scope":"keyword.control","settings":{"foreground":"#fb4934"}},{"scope":"keyword.control.module","settings":{"foreground":"#8ec07c"}},{"scope":"keyword.control.less","settings":{"foreground":"#d79921"}},{"scope":"keyword.operator","settings":{"foreground":"#8ec07c"}},{"scope":"keyword.operator.new","settings":{"foreground":"#fe8019"}},{"scope":"keyword.other.unit","settings":{"foreground":"#b8bb26"}},{"scope":"metatag.php","settings":{"foreground":"#fe8019"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#689d6a"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#b8bb26"}},{"scope":["meta.type.name","meta.return.type","meta.return-type","meta.cast","meta.type.annotation","support.type","storage.type.cs","variable.class"],"settings":{"foreground":"#fabd2f"}},{"scope":["variable.this","support.variable"],"settings":{"foreground":"#d3869b"}},{"scope":["entity.name","entity.static","entity.name.class.static.function","entity.name.function","entity.name.class","entity.name.type"],"settings":{"foreground":"#fabd2f"}},{"scope":["entity.function","entity.name.function.static"],"settings":{"foreground":"#8ec07c"}},{"scope":"entity.name.function.function-call","settings":{"foreground":"#8ec07c"}},{"scope":"support.function.builtin","settings":{"foreground":"#fe8019"}},{"scope":["entity.name.method","entity.name.method.function-call","entity.name.static.function-call"],"settings":{"foreground":"#689d6a"}},{"scope":"brace","settings":{"foreground":"#d5c4a1"}},{"scope":["meta.parameter.type.variable","variable.parameter","variable.name","variable.other","variable","string.constant.other.placeholder"],"settings":{"foreground":"#83a598"}},{"scope":"prototype","settings":{"foreground":"#d3869b"}},{"scope":["punctuation"],"settings":{"foreground":"#a89984"}},{"scope":"punctuation.quoted","settings":{"foreground":"#ebdbb2"}},{"scope":"punctuation.quasi","settings":{"foreground":"#fb4934"}},{"scope":["*url*","*link*","*uri*"],"settings":{"fontStyle":"underline"}},{"scope":["meta.function.python","entity.name.function.python"],"settings":{"foreground":"#8ec07c"}},{"scope":["storage.type.function.python","storage.modifier.declaration","storage.type.class.python","storage.type.string.python"],"settings":{"foreground":"#fb4934"}},{"scope":["storage.type.function.async.python"],"settings":{"foreground":"#fb4934"}},{"scope":"meta.function-call.generic","settings":{"foreground":"#83a598"}},{"scope":"meta.function-call.arguments","settings":{"foreground":"#d5c4a1"}},{"scope":"entity.name.function.decorator","settings":{"fontStyle":"bold","foreground":"#fabd2f"}},{"scope":"constant.other.caps","settings":{"fontStyle":"bold"}},{"scope":"keyword.operator.logical","settings":{"foreground":"#fb4934"}},{"scope":"punctuation.definition.logical-expression","settings":{"foreground":"#fe8019"}},{"scope":["string.interpolated.dollar.shell","string.interpolated.backtick.shell"],"settings":{"foreground":"#8ec07c"}},{"scope":"keyword.control.directive","settings":{"foreground":"#8ec07c"}},{"scope":"support.function.C99","settings":{"foreground":"#fabd2f"}},{"scope":["meta.function.cs","entity.name.function.cs","entity.name.type.namespace.cs"],"settings":{"foreground":"#b8bb26"}},{"scope":["keyword.other.using.cs","entity.name.variable.field.cs","entity.name.variable.local.cs","variable.other.readwrite.cs"],"settings":{"foreground":"#8ec07c"}},{"scope":["keyword.other.this.cs","keyword.other.base.cs"],"settings":{"foreground":"#d3869b"}},{"scope":"meta.scope.prerequisites","settings":{"foreground":"#fabd2f"}},{"scope":"entity.name.function.target","settings":{"fontStyle":"bold","foreground":"#b8bb26"}},{"scope":["storage.modifier.import.java","storage.modifier.package.java"],"settings":{"foreground":"#bdae93"}},{"scope":["keyword.other.import.java","keyword.other.package.java"],"settings":{"foreground":"#8ec07c"}},{"scope":"storage.type.java","settings":{"foreground":"#fabd2f"}},{"scope":"storage.type.annotation","settings":{"fontStyle":"bold","foreground":"#83a598"}},{"scope":"keyword.other.documentation.javadoc","settings":{"foreground":"#8ec07c"}},{"scope":"comment.block.javadoc variable.parameter.java","settings":{"fontStyle":"bold","foreground":"#b8bb26"}},{"scope":["source.java variable.other.object","source.java variable.other.definition.java"],"settings":{"foreground":"#ebdbb2"}},{"scope":"meta.function-parameters.lisp","settings":{"foreground":"#fabd2f"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"string.other.link.title.markdown","settings":{"fontStyle":"underline","foreground":"#928374"}},{"scope":"markup.underline.link","settings":{"foreground":"#d3869b"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#fe8019"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#fe8019"}},{"scope":"heading.1.markdown entity.name.section.markdown","settings":{"fontStyle":"bold","foreground":"#fb4934"}},{"scope":"heading.2.markdown entity.name.section.markdown","settings":{"fontStyle":"bold","foreground":"#fe8019"}},{"scope":"heading.3.markdown entity.name.section.markdown","settings":{"fontStyle":"bold","foreground":"#fabd2f"}},{"scope":"heading.4.markdown entity.name.section.markdown","settings":{"fontStyle":"bold","foreground":"#b8bb26"}},{"scope":"heading.5.markdown entity.name.section.markdown","settings":{"fontStyle":"bold","foreground":"#83a598"}},{"scope":"heading.6.markdown entity.name.section.markdown","settings":{"fontStyle":"bold","foreground":"#d3869b"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.inserted","settings":{"foreground":"#b8bb26"}},{"scope":"markup.deleted","settings":{"foreground":"#d65d0e"}},{"scope":"markup.changed","settings":{"foreground":"#fe8019"}},{"scope":"markup.punctuation.quote.beginning","settings":{"foreground":"#98971a"}},{"scope":"markup.punctuation.list.beginning","settings":{"foreground":"#83a598"}},{"scope":["markup.inline.raw","markup.fenced_code.block"],"settings":{"foreground":"#8ec07c"}},{"scope":"string.quoted.double.json","settings":{"foreground":"#83a598"}},{"scope":"entity.other.attribute-name.css","settings":{"foreground":"#fe8019"}},{"scope":"source.css meta.selector","settings":{"foreground":"#ebdbb2"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#fe8019"}},{"scope":"entity.other.attribute-name.class","settings":{"foreground":"#b8bb26"}},{"scope":["source.css support.function.transform","source.css support.function.timing-function","source.css support.function.misc"],"settings":{"foreground":"#fb4934"}},{"scope":["support.property-value","constant.rgb-value","support.property-value.scss","constant.rgb-value.scss"],"settings":{"foreground":"#d65d0e"}},{"scope":["entity.name.tag.css"],"settings":{"fontStyle":""}},{"scope":["punctuation.definition.tag"],"settings":{"foreground":"#83a598"}},{"scope":["text.html entity.name.tag","text.html punctuation.tag"],"settings":{"fontStyle":"bold","foreground":"#8ec07c"}},{"scope":["source.js variable.language"],"settings":{"foreground":"#fe8019"}},{"scope":["source.ts variable.language"],"settings":{"foreground":"#fe8019"}},{"scope":["source.go storage.type"],"settings":{"foreground":"#fabd2f"}},{"scope":["source.go entity.name.import"],"settings":{"foreground":"#b8bb26"}},{"scope":["source.go keyword.package","source.go keyword.import"],"settings":{"foreground":"#8ec07c"}},{"scope":["source.go keyword.interface","source.go keyword.struct"],"settings":{"foreground":"#83a598"}},{"scope":["source.go entity.name.type"],"settings":{"foreground":"#ebdbb2"}},{"scope":["source.go entity.name.function"],"settings":{"foreground":"#d3869b"}},{"scope":["keyword.control.cucumber.table"],"settings":{"foreground":"#83a598"}},{"scope":["source.reason string.double","source.reason string.regexp"],"settings":{"foreground":"#b8bb26"}},{"scope":["source.reason keyword.control.less"],"settings":{"foreground":"#8ec07c"}},{"scope":["source.reason entity.name.function"],"settings":{"foreground":"#83a598"}},{"scope":["source.reason support.property-value","source.reason entity.name.filename"],"settings":{"foreground":"#fe8019"}},{"scope":["source.powershell variable.other.member.powershell"],"settings":{"foreground":"#fe8019"}},{"scope":["source.powershell support.function.powershell"],"settings":{"foreground":"#fabd2f"}},{"scope":["source.powershell support.function.attribute.powershell"],"settings":{"foreground":"#bdae93"}},{"scope":["source.powershell meta.hashtable.assignment.powershell variable.other.readwrite.powershell"],"settings":{"foreground":"#fe8019"}},{"scope":["support.function.be.latex","support.function.general.tex","support.function.section.latex","support.function.textbf.latex","support.function.textit.latex","support.function.texttt.latex","support.function.emph.latex","support.function.url.latex"],"settings":{"foreground":"#fb4934"}},{"scope":["support.class.math.block.tex","support.class.math.block.environment.latex"],"settings":{"foreground":"#fe8019"}},{"scope":["keyword.control.preamble.latex","keyword.control.include.latex"],"settings":{"foreground":"#d3869b"}},{"scope":["support.class.latex"],"settings":{"foreground":"#8ec07c"}}],"type":"dark"}'))}}]);
|