tarsk 0.5.71 → 0.5.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +156990 -153745
- package/dist/public/assets/Combination-lwI_j-mU.js +41 -0
- package/dist/public/assets/account-view-DKQdyGPK.js +1 -0
- package/dist/public/assets/alert-dialog-Cb1PEgra.js +7 -0
- package/dist/public/assets/api-BMo_Lz8f.js +2 -0
- package/dist/public/assets/async-error-boundary-J8P6NVvc.js +1 -0
- package/dist/public/assets/async-loading-fallback-B_JNgWJR.js +1 -0
- package/dist/public/assets/browser-overlay-block-CiDtkfup.js +1 -0
- package/dist/public/assets/browser-tab-D_GXZ93G.js +12 -0
- package/dist/public/assets/button-DeNw35VZ.js +1 -0
- package/dist/public/assets/card-B4eI0NI-.js +1 -0
- package/dist/public/assets/chat-dock-context-BXoAs38w.js +1 -0
- package/dist/public/assets/chunk-QFMPRPBF-COsSkB7x.js +3 -0
- package/dist/public/assets/commit-dialog-DDLaQVzY.js +1 -0
- package/dist/public/assets/commit-error-dialog-Cp0Aic7I.js +1 -0
- package/dist/public/assets/commit-method-fields-CD3PTIox.js +1 -0
- package/dist/public/assets/context-menu-Dx5Jy21w.js +1 -0
- package/dist/public/assets/conversation-history-view-JymxZFJ2.js +1 -0
- package/dist/public/assets/create-project-dialog-qbwqSqGU.js +6 -0
- package/dist/public/assets/create-project-workspace-BcIx6FNf.js +1 -0
- package/dist/public/assets/create-repo-dialog-DcvSMy3g.js +1 -0
- package/dist/public/assets/delete-confirm-dialog-C9NASyh6.js +1 -0
- package/dist/public/assets/dialog-Do98zzAW.js +1 -0
- package/dist/public/assets/diff-view-ePD0sdsW.js +4 -0
- package/dist/public/assets/dist-BWuYHVi8.js +2 -0
- package/dist/public/assets/dist-BZvmHCxP.js +5 -0
- package/dist/public/assets/dist-CSssbxDI.js +1 -0
- package/dist/public/assets/dist-CWnEmdyL.js +1 -0
- package/dist/public/assets/dist-CWq9XRXF.js +1 -0
- package/dist/public/assets/dist-CjhvxqFU.js +1 -0
- package/dist/public/assets/dist-DIjomljy.js +1 -0
- package/dist/public/assets/dist-DiMgghKn.js +1 -0
- package/dist/public/assets/dist-DjKXDRW7.js +1 -0
- package/dist/public/assets/dist-OixawqbU.js +1 -0
- package/dist/public/assets/dist-mdooLpmq.js +1 -0
- package/dist/public/assets/explorer-tab-context-BxUVwWQQ.js +1 -0
- package/dist/public/assets/explorer-tab-view-D6hsKrXY.js +2 -0
- package/dist/public/assets/explorer-tree-BG8ShRwn.js +1 -0
- package/dist/public/assets/explorer-view-BZcNnLd9.js +75 -0
- package/dist/public/assets/git-history-dialog-DWhJ1-ba.js +1 -0
- package/dist/public/assets/index-DhOeeft5.css +1 -0
- package/dist/public/assets/index-DjaVbFDB.js +3386 -0
- package/dist/public/assets/main-tab-context-Byl1LybL.js +1 -0
- package/dist/public/assets/markdown-renderer-qLede1zH.js +8 -0
- package/dist/public/assets/mcp-server-card-zm-ss-7h.js +1 -0
- package/dist/public/assets/merged-pr-dialog-Due9WdB4.js +1 -0
- package/dist/public/assets/model-list-controls-D86_87E4.js +1 -0
- package/dist/public/assets/{monaco-D1hpqXQ0.js → monaco-lJcjGRXq.js} +189 -199
- package/dist/public/assets/monaco-setup-DU2h1v3K.js +11 -0
- package/dist/public/assets/onboarding-dialog-DlqbPvG0.js +1 -0
- package/dist/public/assets/pending-changes-Bn-0ak1d.js +1 -0
- package/dist/public/assets/project-env-vars-view-N1Io1Pau.js +1 -0
- package/dist/public/assets/project-model-aliases-view-B4FEze4g.js +1 -0
- package/dist/public/assets/project-settings-view-BalZ6Fe1.js +1 -0
- package/dist/public/assets/project-tools-view-OnCN0jKz.js +1 -0
- package/dist/public/assets/providers-list-view-DXvcxXDM.js +1 -0
- package/dist/public/assets/pull-request-dialog-BeeTNIN_.js +1 -0
- package/dist/public/assets/pull-with-changes-dialog-B9y2_lt_.js +1 -0
- package/dist/public/assets/push-before-pr-dialog-D3pMFe9A.js +1 -0
- package/dist/public/assets/query-keys-5QPW6Dv-.js +1 -0
- package/dist/public/assets/radio-group-CU59hGiA.js +1 -0
- package/dist/public/assets/react-vendor-Ee0-5T4I.js +9 -0
- package/dist/public/assets/scroll-area-nbNFO91g.js +1 -0
- package/dist/public/assets/settings-general-view-CAYlYs3J.js +1 -0
- package/dist/public/assets/settings-instructions-view-GjQivhLy.js +1 -0
- package/dist/public/assets/settings-list-DU82HNPX.js +1 -0
- package/dist/public/assets/settings-logs-view-DnQ_4O9b.js +5 -0
- package/dist/public/assets/settings-mcp-servers-view-C6OZHR3K.js +5 -0
- package/dist/public/assets/settings-models-view-CTjnBd74.js +1 -0
- package/dist/public/assets/settings-rules-view-DiTC-cBE.js +8 -0
- package/dist/public/assets/settings-skills-view-DHoSorOw.js +3 -0
- package/dist/public/assets/settings-slack-view-CiuJZ-9i.js +1 -0
- package/dist/public/assets/settings-slash-commands-view-CnXff39A.js +1 -0
- package/dist/public/assets/settings-statistics-view-D8SvAGE_.js +1 -0
- package/dist/public/assets/settings-storage-view-CUsa7Lwv.js +1 -0
- package/dist/public/assets/settings-subagents-view-B4HugfzU.js +2 -0
- package/dist/public/assets/settings-system-prompt-view-DNQKxcFg.js +1 -0
- package/dist/public/assets/settings-view-DoZmXguf.js +2 -0
- package/dist/public/assets/skeleton-DvLd14RU.js +1 -0
- package/dist/public/assets/sorting-DqwxPMRN.js +1 -0
- package/dist/public/assets/store-BaMSfYoJ.js +9 -0
- package/dist/public/assets/switch-pIBaqatj.js +1 -0
- package/dist/public/assets/table-B3fLagUj.js +1 -0
- package/dist/public/assets/tasks-view-BaMd8ZM0.js +2 -0
- package/dist/public/assets/{terminal-panel-CiCkzKHm.js → terminal-panel-BjD6z-3y.js} +3 -3
- package/dist/public/assets/toggle-group-5tREtjoW.js +1 -0
- package/dist/public/assets/tooltip-B6ziVyTv.js +1 -0
- package/dist/public/assets/{use-active-dock-panel-instance-BAHb-cSH.js → use-active-dock-panel-instance-BSch6-Fx.js} +1 -1
- package/dist/public/assets/use-browser-overlay-block-DyprQSIG.js +1 -0
- package/dist/public/assets/use-deferred-search-Dgxosq55.js +1 -0
- package/dist/public/assets/use-installed-ai-files-E4BAFIPG.js +1 -0
- package/dist/public/assets/use-open-chat-dock-panel-Cr1bQYOH.js +1 -0
- package/dist/public/assets/use-settings-page-loading-BTySlInF.js +1 -0
- package/dist/public/assets/use-suspense-resource-Dkz6ddFN.js +1 -0
- package/dist/public/assets/use-toast-xpb5jNtN.js +1 -0
- package/dist/public/assets/useInfiniteQuery-DUeUxDcu.js +1 -0
- package/dist/public/assets/utils-CT-Dw22R.js +1 -0
- package/dist/public/assets/{web-CkSlG6TA.js → web-BKpP7kYB.js} +1 -1
- package/dist/public/assets/{web-2RomPZ8n.js → web-CtDn8Ggo.js} +1 -1
- package/dist/public/assets/{web-DGsiH272.js → web-DaiDQ9WA.js} +1 -1
- package/dist/public/assets/{web-BRo_4CM5.js → web-W5CC9Cq4.js} +1 -1
- package/dist/public/index.html +37 -19
- package/dist/recommended-models.txt +2 -2
- package/package.json +4 -4
- package/dist/public/assets/account-view-P4Y5-Gf7.js +0 -1
- package/dist/public/assets/alert-dialog-CQsuxtcP.js +0 -1
- package/dist/public/assets/async-error-boundary-DajcyqVg.js +0 -1
- package/dist/public/assets/browser-tab-DLvnuyhT.js +0 -12
- package/dist/public/assets/card-BDQUHsPD.js +0 -1
- package/dist/public/assets/chat-dock-context-CUdrQKFm.js +0 -1
- package/dist/public/assets/commit-dialog-C98fYJ1d.js +0 -1
- package/dist/public/assets/commit-error-dialog-DjFWRUYh.js +0 -1
- package/dist/public/assets/commit-method-fields-CPKi4MLF.js +0 -1
- package/dist/public/assets/context-menu-D4UmleM5.js +0 -1
- package/dist/public/assets/conversation-history-view-CFq844ge.js +0 -1
- package/dist/public/assets/create-project-dialog-Du4yuSgt.js +0 -6
- package/dist/public/assets/create-project-workspace-Cw58bBNY.js +0 -1
- package/dist/public/assets/create-repo-dialog-DaCI6QrX.js +0 -1
- package/dist/public/assets/delete-confirm-dialog-V9X76h-2.js +0 -1
- package/dist/public/assets/diff-view-CzWiyJDW.js +0 -4
- package/dist/public/assets/explorer-tab-context-BdjTEbFh.js +0 -1
- package/dist/public/assets/explorer-tab-view-BbukFEig.js +0 -2
- package/dist/public/assets/explorer-tree-CKwkrTpU.js +0 -1
- package/dist/public/assets/explorer-view-DxvRAs1j.js +0 -75
- package/dist/public/assets/git-history-dialog-BIl7cN5L.js +0 -1
- package/dist/public/assets/index-BH6Ht-w_.js +0 -3356
- package/dist/public/assets/index-DpGlIV5v.css +0 -1
- package/dist/public/assets/interactive-BrHVRHmQ.js +0 -21
- package/dist/public/assets/main-tab-context-zQSuRQQG.js +0 -1
- package/dist/public/assets/markdown-renderer-BcGbfUdk.js +0 -8
- package/dist/public/assets/mcp-server-card-D8gWLGuB.js +0 -1
- package/dist/public/assets/merged-pr-dialog-BcMvxAAS.js +0 -1
- package/dist/public/assets/model-list-controls-8f6YNzoF.js +0 -1
- package/dist/public/assets/monaco-setup-B_kQVsDW.js +0 -1
- package/dist/public/assets/onboarding-CQV3cOCc.js +0 -46
- package/dist/public/assets/project-env-vars-view-DHLrARmp.js +0 -1
- package/dist/public/assets/project-model-aliases-view-NaGeOnLB.js +0 -1
- package/dist/public/assets/project-settings-view-DYx0Ejz_.js +0 -1
- package/dist/public/assets/project-tools-view-Dwh-9yLK.js +0 -1
- package/dist/public/assets/providers-list-view-BgHPRsyZ.js +0 -1
- package/dist/public/assets/pull-request-dialog-jiDTjl9S.js +0 -1
- package/dist/public/assets/pull-with-changes-dialog-tz5BKYLX.js +0 -1
- package/dist/public/assets/push-before-pr-dialog-CsCEcu3D.js +0 -1
- package/dist/public/assets/query-keys-CbACxUOr.js +0 -1
- package/dist/public/assets/react-vendor-CVjuv5OI.js +0 -22
- package/dist/public/assets/settings-general-view-DFuR-GEd.js +0 -1
- package/dist/public/assets/settings-instructions-view-DyHQ7P84.js +0 -1
- package/dist/public/assets/settings-list-CqAk8BOe.js +0 -1
- package/dist/public/assets/settings-logs-view-NuI1wC43.js +0 -5
- package/dist/public/assets/settings-mcp-servers-view-CzbsCA0X.js +0 -5
- package/dist/public/assets/settings-models-view-DC-v64Ua.js +0 -1
- package/dist/public/assets/settings-rules-view-F1cdLdbY.js +0 -8
- package/dist/public/assets/settings-skills-view-Ba8LIeWY.js +0 -3
- package/dist/public/assets/settings-slack-view-DQUSFcUo.js +0 -1
- package/dist/public/assets/settings-slash-commands-view-BRBxLk4J.js +0 -1
- package/dist/public/assets/settings-statistics-view-4uiJ9rwT.js +0 -1
- package/dist/public/assets/settings-storage-view-CuAI5fWL.js +0 -1
- package/dist/public/assets/settings-subagents-view-pSxxHmFV.js +0 -2
- package/dist/public/assets/settings-system-prompt-view-CrFpAHz1.js +0 -1
- package/dist/public/assets/settings-view-_YIXCuoG.js +0 -2
- package/dist/public/assets/skeleton-CJSNEi3C.js +0 -1
- package/dist/public/assets/store-fffs6-y9.js +0 -8
- package/dist/public/assets/table-Cb2C1rQy.js +0 -1
- package/dist/public/assets/tasks-view-f5xX4AVx.js +0 -2
- package/dist/public/assets/ui-components-DioWsrht.js +0 -1
- package/dist/public/assets/use-deferred-search-0sV7mSzX.js +0 -1
- package/dist/public/assets/use-installed-ai-files-D7Y1gZYc.js +0 -1
- package/dist/public/assets/use-open-chat-dock-panel-zpT9rr8C.js +0 -1
- package/dist/public/assets/use-settings-page-loading-BU2CDnfE.js +0 -1
- package/dist/public/assets/use-suspense-resource-BxOFFoEK.js +0 -1
- package/dist/public/assets/use-toast-hxHsVv6a.js +0 -1
- package/dist/public/assets/utils-SsF94Pkg.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{n as t,o as n,t as r}from"./react-vendor-Ee0-5T4I.js";var i=t(),a=e(n(),1),o=r(),s=(0,a.createContext)(null);function c(e){let t=(0,i.c)(12),{children:n}=e,[r,c]=(0,a.useState)(`chat`),[u,d]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m={},t[0]=m):m=t[0];let[h,g]=(0,a.useState)(m),[_,v]=(0,a.useState)(0),y;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>{e&&g(t=>({...t,[e]:(t[e]??0)+1}))},t[1]=y):y=t[1];let b=y,x;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(x=()=>{v(l)},t[2]=x):x=t[2];let S=x,C;t[3]!==r||t[4]!==f||t[5]!==h||t[6]!==_||t[7]!==u?(C={activeMainTab:r,setActiveMainTab:c,terminalNotification:u,setTerminalNotification:d,chatNotification:f,setChatNotification:p,reviewRefreshTickByThread:h,triggerReviewRefresh:b,tasksRefreshTick:_,triggerTasksRefresh:S},t[3]=r,t[4]=f,t[5]=h,t[6]=_,t[7]=u,t[8]=C):C=t[8];let w=C,T;return t[9]!==n||t[10]!==w?(T=(0,o.jsx)(s.Provider,{value:w,children:n}),t[9]=n,t[10]=w,t[11]=T):T=t[11],T}function l(e){return e+1}function u(){let e=(0,a.useContext)(s);if(!e)throw Error(`useMainTab must be used within a MainTabProvider`);return e}export{u as n,c as t};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-IeRYu0zQ.js","assets/rolldown-runtime-aKtaBQYM.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,o as r,r as i,t as a}from"./react-vendor-Ee0-5T4I.js";import{a as o,n as s,t as c}from"./query-keys-5QPW6Dv-.js";import{S as l,dt as u,ft as d,lt as f,ot as p,st as m,z as h}from"./dist-BWuYHVi8.js";import{$t as g,An as _,Z as v,_t as y,it as b,mn as x,rn as S,rt as C,vt as w,wt as T,y as E,yn as D}from"./dist-DIjomljy.js";import{t as O}from"./utils-CT-Dw22R.js";import{t as k}from"./button-DeNw35VZ.js";import{Ar as A,Ht as j,Lr as M,Ur as N,Xt as P,g as F,mn as I}from"./api-BMo_Lz8f.js";import{i as L,n as R,r as z,t as B}from"./tooltip-B6ziVyTv.js";import{t as V}from"./use-toast-xpb5jNtN.js";import{i as ee,n as H,r as te,s as ne,t as U}from"./dialog-Do98zzAW.js";import{n as W}from"./explorer-tab-context-BxUVwWQQ.js";import{t as G}from"./use-open-chat-dock-panel-Cr1bQYOH.js";function K(e,t){return s(e,o,t)}var q=n(),J=e(r(),1);function re(e,t){let n=(0,q.c)(6),[r,i]=(0,J.useState)(e),a=(0,J.useRef)(-1/0),o=(0,J.useRef)(null),s=(0,J.useRef)(e),c;n[0]!==r||n[1]!==t||n[2]!==e?(c=()=>{if(s.current=e,Object.is(e,r))return;let n=function(){o.current=null,a.current=Date.now(),i(s.current)},c=Date.now()-a.current;if(c>=t){n();return}o.current||=setTimeout(n,t-c)},n[0]=r,n[1]=t,n[2]=e,n[3]=c):c=n[3],(0,J.useEffect)(c);let l,u;return n[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>()=>{o.current&&=(clearTimeout(o.current),null)},u=[],n[4]=l,n[5]=u):(l=n[4],u=n[5]),(0,J.useEffect)(l,u),r}var ie=e(t(),1),ae=.1,Y=10,oe=1.25,X=.001;function se(){let e=(0,q.c)(15),[t,n]=(0,J.useState)(1),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={x:0,y:0},e[0]=r):r=e[0];let[i,a]=(0,J.useState)(r),[o,s]=(0,J.useState)(!1),c=(0,J.useRef)(null),l=Z,u;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>n(e=>l(e*oe)),e[1]=u):u=e[1];let d=u,f;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>n(e=>l(e/oe)),e[2]=f):f=e[2];let p=f,m;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(m=()=>{n(1),a({x:0,y:0})},e[3]=m):m=e[3];let h=m,g;e[4]===i?g=e[5]:(g=e=>{e.preventDefault(),s(!0),c.current={x:e.clientX,y:e.clientY,ox:i.x,oy:i.y}},e[4]=i,e[5]=g);let _=g,v;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(v=e=>{c.current&&a({x:c.current.ox+(e.clientX-c.current.x),y:c.current.oy+(e.clientY-c.current.y)})},e[6]=v):v=e[6];let y=v,b;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>{s(!1),c.current=null},e[7]=b):b=e[7];let x=b,S=(0,J.useRef)(null),C,w;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(C=()=>{let e=S.current;if(!e)return;let t=function(e){e.preventDefault();let t=-e.deltaY*X;n(e=>l(e*(1+t)))};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)},w=[],e[8]=C,e[9]=w):(C=e[8],w=e[9]),(0,J.useEffect)(C,w);let T;return e[10]!==o||e[11]!==i||e[12]!==_||e[13]!==t?(T={scale:t,offset:i,isDragging:o,containerRef:S,zoomIn:d,zoomOut:p,reset:h,onMouseDown:_,onMouseMove:y,onMouseUp:x},e[10]=o,e[11]=i,e[12]=_,e[13]=t,e[14]=T):T=e[14],T}function Z(e){return Math.min(Math.max(e,ae),Y)}var Q=a(),ce=l(`app.mermaid-renderer.ui`);function le(){let e=(0,q.c)(2),[t,n]=(0,J.useState)(!1),r,i;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=function(){n(document.documentElement.classList.contains(`dark`))};e();let t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`]}),()=>t.disconnect()},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,J.useEffect)(r,i),t}var ue=null;function de(){return ue||=i(()=>import(`./dist-IeRYu0zQ.js`),__vite__mapDeps([0,1])),ue}function fe(e,t){let[n,r]=(0,J.useState)(null),[i,a]=(0,J.useState)(null);return(0,J.useEffect)(()=>{let n=!1,i=setTimeout(()=>{let i=n=>{try{let i=n(e,{bg:t?`#18181B`:`#FFFFFF`,fg:t?`#FAFAFA`:`#27272A`,transparent:!1,padding:32});if(typeof i!=`string`||i.length===0)throw Error(`Mermaid renderer returned no SVG`);r(i),a(null)}catch(e){ce.error(`Mermaid render error:`,e),r(null),a(e instanceof Error?e.message:String(e))}};de().then(e=>{n||i(e.renderMermaidSVG)},e=>{n||(ce.error(`Mermaid renderer failed to load:`,e),a(e instanceof Error?e.message:String(e)))})},200);return()=>{n=!0,clearTimeout(i)}},[e,t]),{svgOutput:n,errorMessage:i}}function pe(e){let t=(0,q.c)(70),{svgOutput:n,onClose:r}=e,{scale:i,offset:a,isDragging:o,containerRef:s,zoomIn:c,zoomOut:l,reset:u,onMouseDown:d,onMouseMove:f,onMouseUp:m}=se(),h,g;t[0]===r?(h=t[1],g=t[2]):(h=()=>{let e=function(e){e.key===`Escape`&&r()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},g=[r],t[0]=r,t[1]=h,t[2]=g),(0,J.useEffect)(h,g);let _;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(_=[],t[3]=_):_=t[3],(0,J.useEffect)(me,_);let b;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,Q.jsx)(`span`,{className:O(p.compact,`font-mono text-muted-foreground`),children:`mermaid diagram`}),t[4]=b):b=t[4];let x,S;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,Q.jsx)(y,{className:`h-3.5 w-3.5`}),S=(0,Q.jsx)(`span`,{className:`sr-only`,children:`Zoom out`}),t[5]=x,t[6]=S):(x=t[5],S=t[6]);let w;t[7]===l?w=t[8]:(w=(0,Q.jsx)(L,{asChild:!0,children:(0,Q.jsxs)(k,{variant:`ghost`,size:`icon-xs`,onClick:l,children:[x,S]})}),t[7]=l,t[8]=w);let T;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,Q.jsx)(R,{children:`Zoom out`}),t[9]=T):T=t[9];let D;t[10]===w?D=t[11]:(D=(0,Q.jsxs)(B,{children:[w,T]}),t[10]=w,t[11]=D);let A;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(A=O(p.compact,`min-w-[3rem] px-2 py-1 font-mono text-muted-foreground hover:text-foreground hover:bg-muted rounded transition-colors`),t[12]=A):A=t[12];let j;t[13]===i?j=t[14]:(j=Math.round(i*100),t[13]=i,t[14]=j);let M;t[15]!==u||t[16]!==j?(M=(0,Q.jsx)(L,{asChild:!0,children:(0,Q.jsxs)(`button`,{type:`button`,onClick:u,className:A,children:[j,`%`]})}),t[15]=u,t[16]=j,t[17]=M):M=t[17];let N;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,Q.jsx)(R,{children:`Reset zoom`}),t[18]=N):N=t[18];let P;t[19]===M?P=t[20]:(P=(0,Q.jsxs)(B,{children:[M,N]}),t[19]=M,t[20]=P);let F,I;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,Q.jsx)(C,{className:`h-3.5 w-3.5`}),I=(0,Q.jsx)(`span`,{className:`sr-only`,children:`Zoom in`}),t[21]=F,t[22]=I):(F=t[21],I=t[22]);let V;t[23]===c?V=t[24]:(V=(0,Q.jsx)(L,{asChild:!0,children:(0,Q.jsxs)(k,{variant:`ghost`,size:`icon-xs`,onClick:c,children:[F,I]})}),t[23]=c,t[24]=V);let ee;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(ee=(0,Q.jsx)(R,{children:`Zoom in`}),t[25]=ee):ee=t[25];let H;t[26]===V?H=t[27]:(H=(0,Q.jsxs)(B,{children:[V,ee]}),t[26]=V,t[27]=H);let te,ne;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,Q.jsx)(v,{className:`h-3.5 w-3.5`}),ne=(0,Q.jsx)(`span`,{className:`sr-only`,children:`Reset view`}),t[28]=te,t[29]=ne):(te=t[28],ne=t[29]);let U;t[30]===u?U=t[31]:(U=(0,Q.jsx)(L,{asChild:!0,children:(0,Q.jsxs)(k,{variant:`ghost`,size:`icon-xs`,onClick:u,children:[te,ne]})}),t[30]=u,t[31]=U);let W;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,Q.jsx)(R,{children:`Reset view`}),t[32]=W):W=t[32];let G;t[33]===U?G=t[34]:(G=(0,Q.jsxs)(B,{children:[U,W]}),t[33]=U,t[34]=G);let K;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,Q.jsx)(`div`,{className:`w-px h-4 bg-border mx-1`}),t[35]=K):K=t[35];let re,ae;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,Q.jsx)(E,{className:`h-3.5 w-3.5`}),ae=(0,Q.jsx)(`span`,{className:`sr-only`,children:`Close`}),t[36]=re,t[37]=ae):(re=t[36],ae=t[37]);let Y;t[38]===r?Y=t[39]:(Y=(0,Q.jsx)(L,{asChild:!0,children:(0,Q.jsxs)(k,{variant:`ghost`,size:`icon-xs`,onClick:r,children:[re,ae]})}),t[38]=r,t[39]=Y);let oe;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,Q.jsx)(R,{children:`Close (Esc)`}),t[40]=oe):oe=t[40];let X;t[41]===Y?X=t[42]:(X=(0,Q.jsxs)(B,{children:[Y,oe]}),t[41]=Y,t[42]=X);let Z;t[43]!==P||t[44]!==H||t[45]!==G||t[46]!==X||t[47]!==D?(Z=(0,Q.jsxs)(`div`,{className:`flex items-center justify-between px-4 py-3 bg-background/90 border-b border-border shrink-0`,children:[b,(0,Q.jsxs)(`div`,{className:`flex items-center gap-1`,children:[D,P,H,G,K,X]})]}),t[43]=P,t[44]=H,t[45]=G,t[46]=X,t[47]=D,t[48]=Z):Z=t[48];let ce=o?`cursor-grabbing`:`cursor-grab`,le;t[49]===ce?le=t[50]:(le=O(`flex-1 overflow-hidden select-none`,ce),t[49]=ce,t[50]=le);let ue=`translate(${a.x}px, ${a.y}px) scale(${i})`,de=o?`none`:`transform 0.1s ease-out`,fe;t[51]!==ue||t[52]!==de?(fe={transform:ue,transformOrigin:`center center`,transition:de},t[51]=ue,t[52]=de,t[53]=fe):fe=t[53];let pe;t[54]===n?pe=t[55]:(pe={__html:n},t[54]=n,t[55]=pe);let he;t[56]!==fe||t[57]!==pe?(he=(0,Q.jsx)(`div`,{className:`w-full h-full flex items-center justify-center`,style:fe,dangerouslySetInnerHTML:pe}),t[56]=fe,t[57]=pe,t[58]=he):he=t[58];let ge;t[59]!==s||t[60]!==d||t[61]!==f||t[62]!==m||t[63]!==le||t[64]!==he?(ge=(0,Q.jsx)(`div`,{ref:s,className:le,onMouseDown:d,onMouseMove:f,onMouseUp:m,onMouseLeave:m,children:he}),t[59]=s,t[60]=d,t[61]=f,t[62]=m,t[63]=le,t[64]=he,t[65]=ge):ge=t[65];let $;t[66]===Symbol.for(`react.memo_cache_sentinel`)?($=(0,Q.jsx)(`div`,{className:O(p.compact,`shrink-0 px-4 py-2 text-center text-muted-foreground/60 bg-background/60 border-t border-border`),children:`Scroll to zoom · Drag to pan · Esc to close`}),t[66]=$):$=t[66];let _e;return t[67]!==Z||t[68]!==ge?(_e=(0,ie.createPortal)((0,Q.jsx)(z,{children:(0,Q.jsxs)(`div`,{className:`fixed inset-0 z-50 flex flex-col bg-black/85 backdrop-blur-sm`,role:`dialog`,"aria-modal":`true`,"aria-label":`Diagram fullscreen view`,children:[Z,ge,$]})}),document.body),t[67]=Z,t[68]=ge,t[69]=_e):_e=t[69],_e}function me(){return document.body.style.overflow=`hidden`,he}function he(){document.body.style.overflow=``}function ge(e){let t=(0,q.c)(57),{content:n,className:r}=e,[i,a]=(0,J.useState)(!1),[o,s]=(0,J.useState)(!1),{svgOutput:c,errorMessage:l}=fe(n,le()),u=l!==null,d;t[0]===n?d=t[1]:(d=async function(){await navigator.clipboard.writeText(n),a(!0),setTimeout(()=>a(!1),2e3)},t[0]=n,t[1]=d);let f=d,m;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=O(p.compact,`font-mono text-muted-foreground`),t[2]=m):m=t[2];let h=u?`mermaid (render error)`:`mermaid diagram`,g;t[3]===h?g=t[4]:(g=(0,Q.jsx)(`span`,{className:m,children:h}),t[3]=h,t[4]=g);let v;t[5]!==u||t[6]!==c?(v=c&&!u&&(0,Q.jsxs)(B,{children:[(0,Q.jsx)(L,{asChild:!0,children:(0,Q.jsxs)(k,{variant:`action`,size:`icon-xs`,onClick:()=>s(!0),children:[(0,Q.jsx)(T,{}),(0,Q.jsx)(`span`,{className:`sr-only`,children:`View fullscreen`})]})}),(0,Q.jsx)(R,{children:`View fullscreen`})]}),t[5]=u,t[6]=c,t[7]=v):v=t[7];let y;t[8]===i?y=t[9]:(y=i?(0,Q.jsx)(_,{}):(0,Q.jsx)(D,{}),t[8]=i,t[9]=y);let b;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,Q.jsx)(`span`,{className:`sr-only`,children:`Copy mermaid code`}),t[10]=b):b=t[10];let x;t[11]!==f||t[12]!==y?(x=(0,Q.jsxs)(k,{variant:`action`,size:`icon-xs`,onClick:f,children:[y,b]}),t[11]=f,t[12]=y,t[13]=x):x=t[13];let S;t[14]!==v||t[15]!==x?(S=(0,Q.jsxs)(`div`,{className:`flex items-center gap-1`,children:[v,x]}),t[14]=v,t[15]=x,t[16]=S):S=t[16];let C;t[17]!==g||t[18]!==S?(C=(0,Q.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border bg-muted/80 px-4 py-2`,children:[g,S]}),t[17]=g,t[18]=S,t[19]=C):C=t[19];let w=C;if(u){let e;t[20]===r?e=t[21]:(e=O(`group relative overflow-hidden rounded-lg border border-border bg-muted`,r),t[20]=r,t[21]=e);let i;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(i=O(p.compact,`border-b border-border bg-background/50 px-4 py-2 text-destructive`),t[22]=i):i=t[22];let a;t[23]===l?a=t[24]:(a=(0,Q.jsx)(`div`,{className:i,role:`alert`,children:l}),t[23]=l,t[24]=a);let o;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(o=O(p.compact,`font-mono text-foreground leading-relaxed`),t[25]=o):o=t[25];let s;t[26]===n?s=t[27]:(s=(0,Q.jsx)(`pre`,{className:`overflow-x-auto p-4 max-w-full`,children:(0,Q.jsx)(`code`,{className:o,children:n})}),t[26]=n,t[27]=s);let c;return t[28]!==w||t[29]!==e||t[30]!==a||t[31]!==s?(c=(0,Q.jsxs)(`div`,{className:e,children:[w,a,s]}),t[28]=w,t[29]=e,t[30]=a,t[31]=s,t[32]=c):c=t[32],c}if(!c){let e;t[33]===r?e=t[34]:(e=O(`group relative overflow-hidden rounded-lg border border-border bg-muted`,r),t[33]=r,t[34]=e);let n;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Q.jsx)(`div`,{className:O(p.compact,`p-4 text-muted-foreground`),children:`Rendering diagram…`}),t[35]=n):n=t[35];let i;return t[36]!==w||t[37]!==e?(i=(0,Q.jsxs)(`div`,{className:e,children:[w,n]}),t[36]=w,t[37]=e,t[38]=i):i=t[38],i}let E;t[39]===r?E=t[40]:(E=O(`group relative overflow-hidden rounded-lg border border-border bg-muted`,r),t[39]=r,t[40]=E);let A;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(A=()=>s(!0),t[41]=A):A=t[41];let j;t[42]===c?j=t[43]:(j=(0,Q.jsx)(L,{asChild:!0,children:(0,Q.jsx)(`button`,{type:`button`,className:`block w-full text-left cursor-zoom-in p-4 max-w-full overflow-hidden [&_svg]:max-w-full [&_svg]:h-auto hover:bg-muted/70 transition-colors`,onClick:A,dangerouslySetInnerHTML:{__html:c}})}),t[42]=c,t[43]=j);let M;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,Q.jsx)(R,{children:`Click to view fullscreen`}),t[44]=M):M=t[44];let N;t[45]===j?N=t[46]:(N=(0,Q.jsxs)(B,{children:[j,M]}),t[45]=j,t[46]=N);let P;t[47]!==w||t[48]!==E||t[49]!==N?(P=(0,Q.jsxs)(`div`,{className:E,children:[w,N]}),t[47]=w,t[48]=E,t[49]=N,t[50]=P):P=t[50];let F;t[51]!==o||t[52]!==c?(F=o&&(0,Q.jsx)(pe,{svgOutput:c,onClose:()=>s(!1)}),t[51]=o,t[52]=c,t[53]=F):F=t[53];let I;return t[54]!==P||t[55]!==F?(I=(0,Q.jsxs)(z,{children:[P,F]}),t[54]=P,t[55]=F,t[56]=I):I=t[56],I}function $(e){let t=e.trim();if(t.startsWith(`/`)){let e=A().replace(/\/$/,``);return u(`${e}${t}`,e)}return u(t,A())}function _e(e){let t=e.trim();if(t.startsWith(`/api/`))return!0;if(!/^https?:\/\//i.test(t))return!1;try{let e=new URL(t);if(f(e.hostname))return!0;let n=new URL(A());return e.origin===n.origin&&e.pathname.startsWith(`/api/`)}catch{return!1}}function ve(e){let t=e.trim();return!t||t.startsWith(`mailto:`)||t.startsWith(`tel:`)?!1:M()?/^https?:\/\//i.test(t)||t.startsWith(`/api/`):_e(t)}function ye(e){let t=$(e);return N()&&!M()?(window.open(t,`_blank`,`noopener,noreferrer`),Promise.resolve()):P(t)}function be(e){return!!(f(e.hostname)||typeof window<`u`&&e.origin===window.location.origin)}function xe(e){return decodeURIComponent(e.replace(/^\/+/,``))}function Se(e){let t=e.trim();if(!t||t.includes(`
|
|
3
|
+
`))return null;let n=h(t);if(!n)return null;let r=t.toLowerCase();return r.startsWith(`http://`)||r.startsWith(`https://`)||r.startsWith(`/`)||r.includes(`/explorer/media`)||t.includes(`/`)||t.includes(`\\`)?{kind:n,src:t}:null}function Ce(e,t){let n=e.trim();if(!n||n.startsWith(`data:`)||n.includes(`/explorer/media`))return null;let r;if(/^https?:\/\//i.test(n)){let e;try{e=new URL(n)}catch{return null}if(!be(e))return null;r=xe(e.pathname)}else r=xe(n);let i=h(r);return!i||t&&i!==t?null:{path:r,kind:i}}function we(e,t){return $(`/api/threads/${encodeURIComponent(e)}/explorer/media?path=${encodeURIComponent(t)}`)}function Te(e){if(!e.startsWith(`/`))return!1;let t=e.split(`/`)[1]??``;return[`Users`,`tmp`,`var`,`private`,`Volumes`,`home`].includes(t)}function Ee(e,t){if(!e||e.startsWith(`data:`))return e;if(t){if(Te(e)&&h(e))return we(t,e);let n=Ce(e);if(n)return we(t,n.path)}return e.startsWith(`/`)?$(e):u(e,A())}function De(e,t){return Ee(e,t)}function Oe(e){let t=d(e);if(!t?.imageUrl&&!t?.imageData)return null;let n;if(typeof e==`object`&&e){let t=e;if(typeof t.model==`string`)n=t.model;else if(typeof t.content==`string`)try{let e=JSON.parse(t.content);typeof e.model==`string`&&(n=e.model)}catch{}}else if(typeof e==`string`)try{let t=JSON.parse(e.trim());typeof t.model==`string`&&(n=t.model)}catch{}return{imageUrl:t.imageUrl,imageData:t.imageData,model:n}}function ke(e,t){let n=Oe(e)??Oe(t);if(!n?.imageUrl&&!n?.imageData)return null;let r,i=[e,t.content,t];for(let e of i)if(typeof e==`string`&&e.trim().startsWith(`{`))try{let t=JSON.parse(e);if(typeof t.savedPath==`string`){r=t.savedPath;break}}catch{}else if(e&&typeof e==`object`){let t=e;if(typeof t.savedPath==`string`){r=t.savedPath;break}if(typeof t.content==`string`)try{let e=JSON.parse(t.content);if(typeof e.savedPath==`string`){r=e.savedPath;break}}catch{}}return{...n,savedPath:r}}function Ae(e){let t=(0,q.c)(34),{imageUrl:n,imageData:r,alt:i,threadId:a}=e,o=i===void 0?`Generated image`:i,[s,c]=(0,J.useState)(!1),l;t[0]!==r||t[1]!==n||t[2]!==a?(l=r?`data:image/png;base64,${r}`:De(n??``,a),t[0]=r,t[1]=n,t[2]=a,t[3]=l):l=t[3];let u=l,d;t[4]===u?d=t[5]:(d=async()=>{let e=m(u)??`generated-image-${Date.now()}.png`,{path:t}=await I(u.startsWith(`data:`)?{imageData:u.replace(/^data:[^;]+;base64,/,``),filename:e}:{imageUrl:u,filename:e});V({title:`Saved to downloads: ${t.split(`/`).pop()}`})},t[4]=u,t[5]=d);let f=d,p;t[6]===u?p=t[7]:(p=async()=>{await F(u.startsWith(`data:`)?{imageData:u.replace(/^data:[^;]+;base64,/,``)}:{imageUrl:u}),c(!0),setTimeout(()=>c(!1),2e3)},t[6]=u,t[7]=p);let h=p;if(!u)return null;let g;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(g={maxHeight:`512px`},t[8]=g):g=t[8];let v;t[9]!==o||t[10]!==u?(v=(0,Q.jsx)(`img`,{src:u,alt:o,className:`max-w-full rounded-lg block`,style:g}),t[9]=o,t[10]=u,t[11]=v):v=t[11];let y;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Q.jsx)(x,{className:`h-3.5 w-3.5`}),t[12]=y):y=t[12];let b;t[13]===f?b=t[14]:(b=(0,Q.jsx)(L,{asChild:!0,children:(0,Q.jsx)(`button`,{onClick:f,className:`flex items-center justify-center h-7 w-7 rounded-md bg-background/80 backdrop-blur-sm border border-border text-foreground hover:bg-background transition-colors`,children:y})}),t[13]=f,t[14]=b);let S;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,Q.jsx)(R,{children:`Save image`}),t[15]=S):S=t[15];let C;t[16]===b?C=t[17]:(C=(0,Q.jsxs)(B,{children:[b,S]}),t[16]=b,t[17]=C);let w;t[18]===s?w=t[19]:(w=s?(0,Q.jsx)(_,{className:`h-3.5 w-3.5 text-green-500`}):(0,Q.jsx)(D,{className:`h-3.5 w-3.5`}),t[18]=s,t[19]=w);let T;t[20]!==h||t[21]!==w?(T=(0,Q.jsx)(L,{asChild:!0,children:(0,Q.jsx)(`button`,{onClick:h,className:`flex items-center justify-center h-7 w-7 rounded-md bg-background/80 backdrop-blur-sm border border-border text-foreground hover:bg-background transition-colors`,children:w})}),t[20]=h,t[21]=w,t[22]=T):T=t[22];let E=s?`Copied!`:`Copy to clipboard`,O;t[23]===E?O=t[24]:(O=(0,Q.jsx)(R,{children:E}),t[23]=E,t[24]=O);let k;t[25]!==T||t[26]!==O?(k=(0,Q.jsxs)(B,{children:[T,O]}),t[25]=T,t[26]=O,t[27]=k):k=t[27];let A;t[28]!==C||t[29]!==k?(A=(0,Q.jsx)(`div`,{className:`absolute top-2 right-2 flex gap-1 opacity-0 group-hover/img:opacity-100 transition-opacity`,children:(0,Q.jsxs)(z,{children:[C,k]})}),t[28]=C,t[29]=k,t[30]=A):A=t[30];let j;return t[31]!==A||t[32]!==v?(j=(0,Q.jsxs)(`div`,{className:`mb-3 relative group/img inline-block max-w-full`,children:[v,A]}),t[31]=A,t[32]=v,t[33]=j):j=t[33],j}var je=l(`chat.media`);function Me(e){if(!e)return`Unknown media error`;switch(e.code){case MediaError.MEDIA_ERR_ABORTED:return`Playback aborted`;case MediaError.MEDIA_ERR_NETWORK:return`Network error while fetching media`;case MediaError.MEDIA_ERR_DECODE:return`Media decode error`;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:return`Unsupported media format or inaccessible source`;default:return`Media error (code ${e.code})`}}async function Ne(e){try{let t=await fetch(e,{method:`GET`,headers:{Range:`bytes=0-0`}}),n=t.headers.get(`content-type`)??`unknown`,r=t.headers.get(`accept-ranges`)??`none`,i=t.headers.get(`content-range`),a=i?`, content-range=${i}`:``;return`HTTP ${t.status} ${t.statusText}, content-type=${n}, accept-ranges=${r}${a}`}catch(e){return e instanceof Error?e.message:`Fetch failed`}}function Pe(e){je.error(`Failed to load media`,{kind:e.kind,src:e.src,label:e.label,mediaError:e.mediaError?{code:e.mediaError.code,message:e.mediaError.message,label:Me(e.mediaError)}:void 0,probeResult:e.probeResult})}function Fe(e,t,n,r){let[i,a]=(0,J.useState)({objectUrl:null,loadError:null,loading:!1});return(0,J.useEffect)(()=>{if(!t){a(e=>(e.objectUrl&&URL.revokeObjectURL(e.objectUrl),{objectUrl:null,loadError:null,loading:!1}));return}let i=!1;a(e=>(e.objectUrl&&URL.revokeObjectURL(e.objectUrl),{objectUrl:null,loadError:null,loading:!0}));async function o(){try{let t=await fetch(e);if(!t.ok){let t=await Ne(e);throw Error(t)}let n=await t.blob();if(i)return;let r=URL.createObjectURL(n);if(i){URL.revokeObjectURL(r);return}a({objectUrl:r,loadError:null,loading:!1})}catch(t){if(i)return;let o=t instanceof Error?t.message:await Ne(e);Pe({kind:n,src:e,label:r,probeResult:o}),a({objectUrl:null,loadError:o,loading:!1})}}return o(),()=>{i=!0,a(e=>(e.objectUrl&&URL.revokeObjectURL(e.objectUrl),{objectUrl:null,loadError:null,loading:!1}))}},[e,t,n,r]),i}function Ie(e){let t=(0,q.c)(44),{src:n,label:r}=e,[i,a]=(0,J.useState)(!1),[o,s]=(0,J.useState)(!1),c=(0,J.useRef)(null),{objectUrl:l,loadError:u,loading:d}=Fe(n,i,`video`,r),f;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f=function(e){a(e),e||(s(!1),c.current&&c.current.pause())},t[0]=f):f=t[0];let m=f,h;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(h=function(){s(Le)},t[1]=h):h=t[1];let g=h,_;t[2]!==r||t[3]!==n?(_=async function(e){let t=e.currentTarget.error;Pe({kind:`video`,src:n,label:r,mediaError:t,probeResult:await Ne(n)})},t[2]=r,t[3]=n,t[4]=_):_=t[4];let v=_,y=r??`Video`,x;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(x=()=>a(!0),t[5]=x):x=t[5];let S=r?`Play ${r}`:`Play video`,C;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,Q.jsx)(`span`,{className:`flex h-14 w-14 items-center justify-center rounded-full bg-background/90 text-foreground shadow-sm`,children:(0,Q.jsx)(b,{className:`h-7 w-7 fill-current`})}),t[6]=C):C=t[6];let D;t[7]===S?D=t[8]:(D=(0,Q.jsx)(`button`,{type:`button`,onClick:x,"aria-label":S,className:`flex min-h-32 w-full items-center justify-center rounded-md bg-muted/30 transition-colors hover:bg-muted/50`,children:C}),t[7]=S,t[8]=D);let k=o?`h-dvh w-dvw max-w-none rounded-none`:`max-w-[min(92vw,960px)]`,A;t[9]===k?A=t[10]:(A=O(`gap-0 overflow-hidden border-none bg-black p-0 sm:rounded-lg`,k),t[9]=k,t[10]=A);let j;t[11]===y?j=t[12]:(j=(0,Q.jsx)(ne,{className:`sr-only`,children:y}),t[11]=y,t[12]=j);let M;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,Q.jsx)(ee,{className:`sr-only`,children:`Video player`}),t[13]=M):M=t[13];let N=o?`Shrink video`:`Expand video`,P;t[14]===o?P=t[15]:(P=o?(0,Q.jsx)(w,{className:`h-4 w-4`}):(0,Q.jsx)(T,{className:`h-4 w-4`}),t[14]=o,t[15]=P);let F;t[16]!==N||t[17]!==P?(F=(0,Q.jsx)(`button`,{type:`button`,onClick:g,"aria-label":N,className:`flex h-7 w-7 items-center justify-center rounded-full text-white/90 transition-colors hover:bg-white/15 hover:text-white`,children:P}),t[16]=N,t[17]=P,t[18]=F):F=t[18];let I;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,Q.jsxs)(H,{className:`flex h-7 w-7 items-center justify-center rounded-full text-white/90 transition-colors hover:bg-white/15 hover:text-white`,children:[(0,Q.jsx)(E,{className:`h-4 w-4`}),(0,Q.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[19]=I):I=t[19];let L;t[20]===F?L=t[21]:(L=(0,Q.jsxs)(`div`,{className:`absolute right-4 top-4 z-10 flex items-center gap-1`,children:[F,I]}),t[20]=F,t[21]=L);let R=o?`h-full`:`min-h-[240px]`,z;t[22]===R?z=t[23]:(z=O(`flex items-center justify-center p-3 pt-12 sm:p-4`,R),t[22]=R,t[23]=z);let B;t[24]!==o||t[25]!==v||t[26]!==u||t[27]!==d||t[28]!==l?(B=d?(0,Q.jsx)(`p`,{className:O(p.compact,`text-white/80`),children:`Loading video...`}):u?(0,Q.jsxs)(`p`,{className:O(p.compact,`px-4 text-center text-destructive`),children:[`Could not load video: `,u]}):l?(0,Q.jsx)(`video`,{ref:c,src:l,controls:!0,autoPlay:!0,playsInline:!0,className:O(`max-w-full rounded`,o?`max-h-full`:`max-h-[80vh]`),onError:v}):null,t[24]=o,t[25]=v,t[26]=u,t[27]=d,t[28]=l,t[29]=B):B=t[29];let V;t[30]!==z||t[31]!==B?(V=(0,Q.jsx)(`div`,{className:z,children:B}),t[30]=z,t[31]=B,t[32]=V):V=t[32];let W;t[33]!==j||t[34]!==L||t[35]!==V||t[36]!==A?(W=(0,Q.jsxs)(te,{hideClose:!0,className:A,children:[j,M,L,V]}),t[33]=j,t[34]=L,t[35]=V,t[36]=A,t[37]=W):W=t[37];let G;t[38]!==i||t[39]!==W?(G=(0,Q.jsx)(U,{open:i,onOpenChange:m,children:W}),t[38]=i,t[39]=W,t[40]=G):G=t[40];let K;return t[41]!==G||t[42]!==D?(K=(0,Q.jsxs)(Q.Fragment,{children:[D,G]}),t[41]=G,t[42]=D,t[43]=K):K=t[43],K}function Le(e){return!e}function Re(e){let t=(0,q.c)(12),{src:n,label:r}=e,{objectUrl:i,loadError:a,loading:o}=Fe(n,!0,`audio`,r),s;t[0]!==r||t[1]!==n?(s=async function(e){let t=e.currentTarget.error;Pe({kind:`audio`,src:n,label:r,mediaError:t,probeResult:await Ne(n)})},t[0]=r,t[1]=n,t[2]=s):s=t[2];let c=s,l;t[3]!==c||t[4]!==o||t[5]!==i?(l=o?(0,Q.jsx)(`p`,{className:O(p.compact,`text-muted-foreground`),children:`Loading audio...`}):i?(0,Q.jsx)(`audio`,{src:i,controls:!0,preload:`metadata`,className:`w-full`,onError:c}):null,t[3]=c,t[4]=o,t[5]=i,t[6]=l):l=t[6];let u;t[7]===a?u=t[8]:(u=a?(0,Q.jsxs)(`p`,{className:O(p.compact,`mt-2 text-destructive`),children:[`Could not load audio: `,a]}):null,t[7]=a,t[8]=u);let d;return t[9]!==l||t[10]!==u?(d=(0,Q.jsxs)(Q.Fragment,{children:[l,u]}),t[9]=l,t[10]=u,t[11]=d):d=t[11],d}function ze(e){let t=(0,q.c)(13),{src:n,kind:r,label:i}=e;if(!n)return null;let a=r===`video`?g:S,o=r===`video`?`p-2`:`p-3`,s;t[0]===o?s=t[1]:(s=O(`mt-2 max-w-full overflow-hidden rounded-lg border border-border bg-background`,o),t[0]=o,t[1]=s);let c;t[2]!==a||t[3]!==i?(c=i?(0,Q.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-muted-foreground`,children:[(0,Q.jsx)(a,{className:`h-4 w-4`}),(0,Q.jsx)(`span`,{className:O(p.compact,`truncate`),children:i})]}):null,t[2]=a,t[3]=i,t[4]=c):c=t[4];let l;t[5]!==r||t[6]!==i||t[7]!==n?(l=r===`video`?(0,Q.jsx)(Ie,{src:n,label:i}):(0,Q.jsx)(Re,{src:n,label:i}),t[5]=r,t[6]=i,t[7]=n,t[8]=l):l=t[8];let u;return t[9]!==s||t[10]!==c||t[11]!==l?(u=(0,Q.jsxs)(`div`,{className:s,children:[c,l]}),t[9]=s,t[10]=c,t[11]=l,t[12]=u):u=t[12],u}var Be=[`graph`,`flowchart`,`sequenceDiagram`,`classDiagram`,`stateDiagram`,`erDiagram`,`journey`,`gantt`,`pie`,`quadrantChart`,`requirementDiagram`,`gitgraph`,`mindmap`,`timeline`,`zenuml`,`sankey`,`block`,`architecture`,`c4`,`packet`,`circuit`],Ve=/```mermaid\s*\n([\s\S]*?)\n```/;function He(e){return e.split(`
|
|
4
|
+
`).find(e=>e.trim().length>0)??``}function Ue(e){let t=e.trim().toLowerCase();return t.length===0?!1:Be.some(e=>t===e.toLowerCase()||t.startsWith(e.toLowerCase()+` `))}function We(e){return!e||typeof e!=`string`?!1:Ve.test(e)?!0:Ue(He(e))}function Ge(e){let t=Ve.exec(e);return t?t[1].trim():Ue(He(e))?e.trim():null}function Ke(e){let t=(0,q.c)(14),{href:n,children:r}=e,i;t[0]===n?i=t[1]:(i=$(n),t[0]=n,t[1]=i);let a=i,o;t[2]===n?o=t[3]:(o=ve(n),t[2]=n,t[3]=o);let s=o,c;t[4]!==n||t[5]!==s?(c=function(e){s&&(e.preventDefault(),ye(n))},t[4]=n,t[5]=s,t[6]=c):c=t[6];let l=c,u;t[7]===s?u=t[8]:(u=s?{}:{target:`_blank`,rel:`noopener noreferrer`},t[7]=s,t[8]=u);let d;return t[9]!==r||t[10]!==l||t[11]!==a||t[12]!==u?(d=(0,Q.jsx)(`a`,{href:a,onClick:l,className:`text-inherit underline underline-offset-2 hover:text-inherit/80`,...u,children:r}),t[9]=r,t[10]=l,t[11]=a,t[12]=u,t[13]=d):d=t[13],d}function qe(e){let t=(0,q.c)(11),{path:n,children:r,className:i}=e,{openChatDockPanel:a}=G(),{setPendingExplorerPath:o}=W(),s;t[0]!==a||t[1]!==n||t[2]!==o?(s=function(e){e.preventDefault(),e.stopPropagation(),o(n),a(`explorer`)},t[0]=a,t[1]=n,t[2]=o,t[3]=s):s=t[3];let c=s,l;t[4]===i?l=t[5]:(l=O(`cursor-pointer underline decoration-border underline-offset-2 transition-colors hover:text-foreground hover:decoration-foreground/60`,i),t[4]=i,t[5]=l);let u;return t[6]!==r||t[7]!==c||t[8]!==n||t[9]!==l?(u=(0,Q.jsx)(`a`,{href:`#`,onClick:c,"data-file-path":n,className:l,children:r}),t[6]=r,t[7]=c,t[8]=n,t[9]=l,t[10]=u):u=t[10],u}var Je=`[a-z0-9_@~./\\\\+-]*[a-z0-9_@~-]\\.[a-z][a-z0-9-]{0,11}`,Ye=RegExp(`^(?:${Je})$`,`i`),Xe=/[:#]L?\d+(?:-\d+)?$/,Ze=/[.,;:!?)\]}'"]+$/;function Qe(e){let t=new Set,n=new Map;for(let r of e){let e=r.replace(/\\/g,`/`);if(!e||e.endsWith(`/`))continue;t.add(e);let i=e.slice(e.lastIndexOf(`/`)+1),a=n.get(i);a?a.push(e):n.set(i,[e])}for(let e of n.values())e.sort(nt);return{exact:t,byBasename:n}}function $e(e){let t=e.trim().replace(/\\/g,`/`);return t=t.replace(Ze,``),t=t.replace(Xe,``),t.startsWith(`@`)&&(t=t.slice(1)),t.startsWith(`./`)&&(t=t.slice(2)),t=t.replace(/^\/+/,``),t.length===0||t.length>512||/\s/.test(t)||t.includes(`://`)||!Ye.test(t)?null:t}function et(e,t){let n=$e(e);if(!n)return null;if(t.exact.has(n))return n;let r=n.slice(n.lastIndexOf(`/`)+1),i=t.byBasename.get(r);if(!i||i.length===0)return null;if(!n.includes(`/`))return i[0];let a=`/${n}`;return i.find(e=>e.endsWith(a))??null}function tt(e,t){let n=new RegExp(Je,`gi`),r=[],i=0,a;for(;(a=n.exec(e))!==null;)a.index>i&&r.push({text:e.slice(i,a.index),path:null}),r.push({text:a[0],path:et(a[0],t)}),i=a.index+a[0].length;return i<e.length&&r.push({text:e.slice(i),path:null}),r.length>0?r:[{text:e,path:null}]}function nt(e,t){let n=rt(e)-rt(t);return n===0?e.length-t.length||e.localeCompare(t):n}function rt(e){let t=1;for(let n=0;n<e.length;n+=1)e.charCodeAt(n)===47&&(t+=1);return t}var it=15e3,at=2e4;function ot(e){let t=(0,q.c)(10),n;t[0]===e?n=t[1]:(n=c.threads.files(e??``),t[0]=e,t[1]=n);let r;t[2]===e?r=t[3]:(r=()=>j(e),t[2]=e,t[3]=r);let i=!!e,a;t[4]!==n||t[5]!==r||t[6]!==i?(a={queryKey:n,queryFn:r,enabled:i,staleTime:it,refetchInterval:at},t[4]=n,t[5]=r,t[6]=i,t[7]=a):a=t[7];let o=K(a),s;return t[8]===o.data?s=t[9]:(s=o.data?Qe(o.data):null,t[8]=o.data,t[9]=s),s}var st=/^(\s*)([-*+]|\d+\.)\s+(.*)$/,ct=100,lt=/^!\[([^\]]*)\]\(([^)]+)\)\s*$/,ut=/[.,!?;:]+$/,dt=(0,J.memo)(function({content:e,className:t,enableMermaid:n=!1,threadId:r,compact:i=!1,bodyClassName:a,revealAnimation:o=!1}){let s=re(e,ct),c=ot(r),l=(0,J.useRef)(null),u=(0,J.useMemo)(()=>{if(!s||typeof s!=`string`)return l.current=null,[];let e=It(s,n,l.current);return l.current=e,e.blocks},[s,n]);return u.length===0?null:(0,Q.jsx)(`div`,{className:O(`prose-custom min-w-0 break-words`,t),children:u.map((e,t)=>(0,Q.jsx)(`div`,{className:O(Tt(t,u,i),o&&`animate-in fade-in duration-300 motion-reduce:animate-none`),children:(0,Q.jsx)(zt,{block:e,threadId:r,chatFileIndex:c,compact:i,bodyClassName:a})},t))})});function ft(e){let t=e.match(lt);return t?{alt:t[1],src:t[2]}:null}function pt(e,t,n){let r=e?`mt-0 space-y-0.5`:`mt-0 space-y-1`,i=n?`mt-1`:``;return t?O(r,i,`pl-6`):O(r,i,`pl-6 list-outside overflow-visible list-disc`)}function mt(e){return e.replace(/\t/g,` `).length}function ht(e){return/^\d+\.$/.test(e)?Number.parseInt(e,10):1}function gt(e,t){return mt(e)>t}function _t(e,t){let n=e[t]?.match(st);if(!n)return{block:{type:`paragraph`,text:``},nextIndex:t+1};let[,r,i,a]=n,o={ordered:/^\d+\.$/.test(i),start:ht(i),items:[{text:a,children:[]}]},s=[{indent:mt(r),item:o.items[0]}],c=t+1;for(;c<e.length;){let t=vt(e,c,s,o);if(c=t.nextIndex,t.stop)break}return{block:{type:`list`,list:o},nextIndex:c}}function vt(e,t,n,r){let i=e[t];return st.test(i)?yt(e,t,n,r):i.trim()===``?Ct(e,t):wt(e,t,n)}function yt(e,t,n,r){let[,i,a,o]=e[t].match(st),s=mt(i),c=/^\d+\.$/.test(a),l={text:o,children:[]};if(bt(n,s),n.length===0)return{nextIndex:t,stop:!0};let u=n[n.length-1],d=s===u.indent,f=gt(i,u.indent);return d?xt(n,r,c,s,l,t):f?St(n,u,c,a,s,l,t):{nextIndex:t,stop:!0}}function bt(e,t){for(;e.length>0&&t<e[e.length-1].indent;)e.pop()}function xt(e,t,n,r,i,a){let o=e[e.length-2]?.childList??t;return o.ordered===n?(o.items.push(i),e[e.length-1]={indent:r,item:i},{nextIndex:a+1,stop:!1}):{nextIndex:a,stop:!0}}function St(e,t,n,r,i,a,o){let s=t.childList;return(!s||s.ordered!==n)&&(s={ordered:n,start:ht(r),items:[]},t.item.children.push(s),t.childList=s),s.items.push(a),e.push({indent:i,item:a}),{nextIndex:o+1,stop:!1}}function Ct(e,t){let n=e[t+1];return!n||!st.test(n)?{nextIndex:t,stop:!0}:{nextIndex:t+1,stop:!1}}function wt(e,t,n){let r=mt(e[t].match(/^(\s*)/)?.[1]??``),i=n[n.length-1];return r>i.indent?(i.item.text=`${i.item.text}\n${e[t].trim()}`,{nextIndex:t+1,stop:!1}):{nextIndex:t,stop:!0}}function Tt(e,t,n=!1){if(e===0)return``;let r=t[e-1],i=t[e];return r.type===`list`||i.type===`list`?``:n?`mt-2`:`mt-3`}function Et(e,t,n){let r=e[t].trimStart().slice(3).trim(),i=[],a=t+1;for(;a<e.length&&!e[a].trimStart().startsWith("```");)i.push(e[a]),a++;let o=i.join(`
|
|
5
|
+
`);return n&&(r===`mermaid`||r===``&&We(o))?{block:{type:`mermaid`,code:o},nextIndex:a+1}:{block:{type:`code`,language:r,code:o},nextIndex:a+1}}function Dt(e){let t=e.match(/^(#{1,6})(\s.*)?$/);return t?{type:`heading`,level:t[1].length,text:t[2]?t[2].trim():``}:null}function Ot(e){return/^(---|\*\*\*|___)/.test(e.trim())}function kt(e,t){let n=e[t];if(!n.includes(`|`)||t+1>=e.length||!e[t+1].match(/^\|?\s*[-:]+/))return null;let r=n.split(`|`).map(e=>e.trim()).filter(Boolean),i=t+2,a=[];for(;i<e.length&&e[i].includes(`|`);)a.push(e[i].split(`|`).map(e=>e.trim()).filter(Boolean)),i++;return{block:{type:`table`,headers:r,rows:a},nextIndex:i}}function At(e,t){let n=[],r=t;for(;r<e.length&&e[r].startsWith(`> `);)n.push(e[r].slice(2)),r++;return{block:{type:`blockquote`,text:n.join(`
|
|
6
|
+
`)},nextIndex:r}}function jt(e){let t=ft(e);return t?{type:`image`,...t}:null}function Mt(e){let t=Se(e);return t?{type:`media`,kind:t.kind,src:t.src}:null}function Nt(e,t,n){let r=t,i=[];for(;r<e.length&&e[r].trim()!==``&&!e[r].startsWith(`#`)&&!e[r].startsWith("```")&&!e[r].startsWith(`> `)&&!st.test(e[r]);)i.push(e[r]),r++;let a=i.join(`
|
|
7
|
+
`);if(n&&We(a)){let e=Ge(a);if(e)return{block:{type:`mermaid`,code:e},nextIndex:r}}return{block:{type:`paragraph`,text:a},nextIndex:r}}function Pt(e){let t=[],n=0;for(let r=0;r<e.length;r++)t.push(n),n+=e[r].length+ +(r<e.length-1);return t}function Ft(e,t=!1){let n=e.split(`
|
|
8
|
+
`),r=Pt(n),i=[],a=[],o=0;for(;o<n.length;){let e=n[o],s=r[o]??0;if(e.trimStart().startsWith("```")){let{block:e,nextIndex:r}=Et(n,o,t);i.push(e),a.push(s),o=r;continue}let c=Dt(e);if(c){i.push(c),a.push(s),o++;continue}if(Ot(e)){i.push({type:`hr`}),a.push(s),o++;continue}let l=kt(n,o);if(l){i.push(l.block),a.push(s),o=l.nextIndex;continue}if(e.startsWith(`> `)){let{block:e,nextIndex:t}=At(n,o);i.push(e),a.push(s),o=t;continue}if(st.test(e)){let{block:e,nextIndex:t}=_t(n,o);i.push(e),a.push(s),o=t;continue}if(e.trim()===``){o++;continue}let u=jt(e);if(u){i.push(u),a.push(s),o++;continue}let d=Mt(e);if(d){i.push(d),a.push(s),o++;continue}let{block:f,nextIndex:p}=Nt(n,o,t);i.push(f),a.push(s),o=p}return{blocks:i,blockStarts:a}}function It(e,t,n){if(n&&n.enableMermaid===t&&n.md===e&&n.blocks.length>0)return n;if(n&&n.enableMermaid===t&&n.blocks.length>0&&e.startsWith(n.md)){let r=n.blockStarts[n.blockStarts.length-1]??0,i=n.blocks.slice(0,-1),a=n.blockStarts.slice(0,-1),o=Ft(e.slice(r),t);return{md:e,enableMermaid:t,blocks:[...i,...o.blocks],blockStarts:[...a,...o.blockStarts.map(e=>e+r)]}}let r=Ft(e,t);return{md:e,enableMermaid:t,blocks:r.blocks,blockStarts:r.blockStarts}}function Lt(e,t){return`${t}-${e.text}`}function Rt(e){let t=(0,q.c)(23),{list:n,compact:r,threadId:i,chatFileIndex:a,inlineCodeClass:o,bodyClassName:s,nested:c}=e,l=a===void 0?null:a,u=c===void 0?!1:c,d=s??(r?p.caption:p.body),f=n.ordered?`ol`:`ul`,m;t[0]!==d||t[1]!==r||t[2]!==n.ordered||t[3]!==u?(m=O(d,pt(r,n.ordered,u)),t[0]=d,t[1]=r,t[2]=n.ordered,t[3]=u,t[4]=m):m=t[4];let h=n.ordered?n.start:void 0,g;if(t[5]!==s||t[6]!==l||t[7]!==r||t[8]!==o||t[9]!==n.items||t[10]!==i){let e;t[12]!==s||t[13]!==l||t[14]!==r||t[15]!==o||t[16]!==i?(e=(e,t)=>(0,Q.jsx)(`li`,{children:(0,Q.jsxs)(`div`,{className:`min-w-0`,children:[(0,Q.jsx)(Bt,{text:e.text,threadId:i,chatFileIndex:l,inlineCodeClass:o}),e.children.map((n,a)=>(0,Q.jsx)(Rt,{list:n,compact:r,threadId:i,chatFileIndex:l,inlineCodeClass:o,bodyClassName:s,nested:!0},`${Lt(e,t)}-child-${a}`))]})},Lt(e,t)),t[12]=s,t[13]=l,t[14]=r,t[15]=o,t[16]=i,t[17]=e):e=t[17],g=n.items.map(e),t[5]=s,t[6]=l,t[7]=r,t[8]=o,t[9]=n.items,t[10]=i,t[11]=g}else g=t[11];let _;return t[18]!==f||t[19]!==m||t[20]!==h||t[21]!==g?(_=(0,Q.jsx)(f,{className:m,start:h,children:g}),t[18]=f,t[19]=m,t[20]=h,t[21]=g,t[22]=_):_=t[22],_}var zt=(0,J.memo)(function(e){let t=(0,q.c)(96),{block:n,threadId:r,chatFileIndex:i,compact:a,bodyClassName:o}=e,s=i===void 0?null:i,c=a===void 0?!1:a,l=o??(c?p.caption:p.body),u;t[0]!==o||t[1]!==c?(u=o?O(o,`font-mono`):c?O(p.compact,`font-mono`):p.mono,t[0]=o,t[1]=c,t[2]=u):u=t[2];let d=u;switch(n.type){case`heading`:{let e=`h${n.level}`,i,a;if(t[3]!==e||t[4]!==n.level||t[5]!==c){let r=c?{1:O(p.caption,`font-semibold`),2:O(p.caption,`font-semibold`),3:O(p.body,`font-semibold`),4:O(p.body,`font-semibold`),5:O(p.compact,`font-semibold`),6:O(p.compact,`font-semibold`)}:{1:p.sectionTitle,2:p.subSectionTitle,3:p.subSectionTitle,4:p.subSectionTitle,5:p.sectionSubtitle,6:p.sectionSubtitle};i=e,a=O(r[n.level]),t[3]=e,t[4]=n.level,t[5]=c,t[6]=i,t[7]=a}else i=t[6],a=t[7];let o;t[8]!==n.text||t[9]!==s||t[10]!==d||t[11]!==r?(o=(0,Q.jsx)(Bt,{text:n.text,threadId:r,chatFileIndex:s,inlineCodeClass:d}),t[8]=n.text,t[9]=s,t[10]=d,t[11]=r,t[12]=o):o=t[12];let l;return t[13]!==i||t[14]!==a||t[15]!==o?(l=(0,Q.jsx)(i,{className:a,children:o}),t[13]=i,t[14]=a,t[15]=o,t[16]=l):l=t[16],l}case`code`:{let e;return t[17]!==n.code||t[18]!==n.language||t[19]!==c?(e=(0,Q.jsx)(Ut,{language:n.language,code:n.code,compact:c}),t[17]=n.code,t[18]=n.language,t[19]=c,t[20]=e):e=t[20],e}case`blockquote`:{let e;t[21]===l?e=t[22]:(e=O(l,`border-l-2 border-border pl-4 text-muted-foreground italic`),t[21]=l,t[22]=e);let i;t[23]!==n.text||t[24]!==s||t[25]!==d||t[26]!==r?(i=(0,Q.jsx)(Bt,{text:n.text,threadId:r,chatFileIndex:s,inlineCodeClass:d}),t[23]=n.text,t[24]=s,t[25]=d,t[26]=r,t[27]=i):i=t[27];let a;return t[28]!==e||t[29]!==i?(a=(0,Q.jsx)(`blockquote`,{className:e,children:i}),t[28]=e,t[29]=i,t[30]=a):a=t[30],a}case`list`:{let e;return t[31]!==n.list||t[32]!==o||t[33]!==s||t[34]!==c||t[35]!==d||t[36]!==r?(e=(0,Q.jsx)(Rt,{list:n.list,compact:c,threadId:r,chatFileIndex:s,inlineCodeClass:d,bodyClassName:o}),t[31]=n.list,t[32]=o,t[33]=s,t[34]=c,t[35]=d,t[36]=r,t[37]=e):e=t[37],e}case`paragraph`:{let e;t[38]===l?e=t[39]:(e=O(l,`mt-0 whitespace-pre-wrap break-words`),t[38]=l,t[39]=e);let i;t[40]!==n.text||t[41]!==s||t[42]!==d||t[43]!==r?(i=(0,Q.jsx)(Bt,{text:n.text,threadId:r,chatFileIndex:s,inlineCodeClass:d}),t[40]=n.text,t[41]=s,t[42]=d,t[43]=r,t[44]=i):i=t[44];let a;return t[45]!==e||t[46]!==i?(a=(0,Q.jsx)(`p`,{className:e,children:i}),t[45]=e,t[46]=i,t[47]=a):a=t[47],a}case`hr`:{let e;return t[48]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Q.jsx)(`hr`,{className:`border-border`}),t[48]=e):e=t[48],e}case`table`:{let e;t[49]===l?e=t[50]:(e=O(l,`w-full`),t[49]=l,t[50]=e);let i;if(t[51]!==n.headers||t[52]!==s||t[53]!==d||t[54]!==r){let e;t[56]!==s||t[57]!==d||t[58]!==r?(e=(e,t)=>(0,Q.jsx)(`th`,{className:`px-3 py-2 text-left font-medium`,children:(0,Q.jsx)(Bt,{text:e,threadId:r,chatFileIndex:s,inlineCodeClass:d})},t),t[56]=s,t[57]=d,t[58]=r,t[59]=e):e=t[59],i=n.headers.map(e),t[51]=n.headers,t[52]=s,t[53]=d,t[54]=r,t[55]=i}else i=t[55];let a;t[60]===i?a=t[61]:(a=(0,Q.jsx)(`thead`,{children:(0,Q.jsx)(`tr`,{className:`border-b border-table-border`,children:i})}),t[60]=i,t[61]=a);let o;if(t[62]!==n.rows||t[63]!==s||t[64]!==d||t[65]!==r){let e;t[67]!==s||t[68]!==d||t[69]!==r?(e=(e,t)=>(0,Q.jsx)(`tr`,{children:e.map((e,t)=>(0,Q.jsx)(`td`,{className:`px-3 py-2`,children:(0,Q.jsx)(Bt,{text:e,threadId:r,chatFileIndex:s,inlineCodeClass:d})},t))},t),t[67]=s,t[68]=d,t[69]=r,t[70]=e):e=t[70],o=n.rows.map(e),t[62]=n.rows,t[63]=s,t[64]=d,t[65]=r,t[66]=o}else o=t[66];let c;t[71]===o?c=t[72]:(c=(0,Q.jsx)(`tbody`,{children:o}),t[71]=o,t[72]=c);let u;return t[73]!==e||t[74]!==a||t[75]!==c?(u=(0,Q.jsx)(`div`,{className:`overflow-x-auto rounded-md border border-table-border max-w-full`,children:(0,Q.jsxs)(`table`,{className:e,children:[a,c]})}),t[73]=e,t[74]=a,t[75]=c,t[76]=u):u=t[76],u}case`mermaid`:{let e;return t[77]===n.code?e=t[78]:(e=(0,Q.jsx)(ge,{content:n.code}),t[77]=n.code,t[78]=e),e}case`image`:{let e;t[79]!==n.src||t[80]!==r?(e=De(n.src,r),t[79]=n.src,t[80]=r,t[81]=e):e=t[81];let i=n.alt||`Image`,a;return t[82]!==e||t[83]!==i?(a=(0,Q.jsx)(Ae,{imageUrl:e,alt:i}),t[82]=e,t[83]=i,t[84]=a):a=t[84],a}case`media`:{let e;t[85]!==n.src||t[86]!==r?(e=Ee(n.src,r),t[85]=n.src,t[86]=r,t[87]=e):e=t[87];let i=e;if(n.kind===`image`){let e;return t[88]===i?e=t[89]:(e=(0,Q.jsx)(Ae,{imageUrl:i,alt:`Image`}),t[88]=i,t[89]=e),e}let a;t[90]===n.src?a=t[91]:(a=n.src.split(/[/\\]/).pop(),t[90]=n.src,t[91]=a);let o=a,s;return t[92]!==n.kind||t[93]!==o||t[94]!==i?(s=(0,Q.jsx)(ze,{src:i,kind:n.kind,label:o}),t[92]=n.kind,t[93]=o,t[94]=i,t[95]=s):s=t[95],s}default:return null}}),Bt=(0,J.memo)(function(e){let t=(0,q.c)(13),{text:n,threadId:r,chatFileIndex:i,inlineCodeClass:a}=e,o=i===void 0?null:i,s=a===void 0?p.mono:a,c;t[0]===n?c=t[1]:(c=Ht(n),t[0]=n,t[1]=c);let l=c,u;if(t[2]!==o||t[3]!==s||t[4]!==l||t[5]!==r){let e;t[7]!==o||t[8]!==s||t[9]!==r?(e=(e,t)=>{switch(e.type){case`bold`:return(0,Q.jsx)(`strong`,{className:`font-semibold`,children:e.text},t);case`italic`:return(0,Q.jsx)(`em`,{children:e.text},t);case`strikethrough`:return(0,Q.jsx)(`del`,{className:`text-muted-foreground`,children:e.text},t);case`code`:{let n=o?et(e.text,o):null;return n?(0,Q.jsx)(qe,{path:n,className:O(s,`rounded bg-muted/20 py-0.5`),children:e.text},t):(0,Q.jsx)(`code`,{className:O(s,`rounded bg-muted/20 py-0.5`),children:e.text},t)}case`link`:return(0,Q.jsx)(Ke,{href:e.href,children:e.text},t);case`image`:return(0,Q.jsx)(Ae,{imageUrl:De(e.src,r),alt:e.alt||`Image`},t);case`text`:return(0,Q.jsx)(J.Fragment,{children:Vt(e.text,o,s)},t);default:return null}},t[7]=o,t[8]=s,t[9]=r,t[10]=e):e=t[10],u=l.map(e),t[2]=o,t[3]=s,t[4]=l,t[5]=r,t[6]=u}else u=t[6];let d;return t[11]===u?d=t[12]:(d=(0,Q.jsx)(Q.Fragment,{children:u}),t[11]=u,t[12]=d),d});function Vt(e,t,n){return t?tt(e,t).map((e,t)=>e.path?(0,Q.jsx)(qe,{path:e.path,className:O(n,`rounded bg-muted/20 py-0.5`),children:e.text},t):(0,Q.jsx)(`span`,{children:e.text},t)):(0,Q.jsx)(`span`,{children:e})}function Ht(e){let t=[],n=/(`[^`]+`)|(!\[[^\]]*\]\([^)]+\))|(\*\*[^*]+\*\*)|(\*[^*]+\*)|(__[^_]+__)|(_[^_]+_)|(~~[^~]+~~)|(\[[^\]]+\]\([^)]+\))|(https?:\/\/[^\s<>"`]+)/gi,r=0,i;for(;(i=n.exec(e))!==null;){i.index>r&&t.push({type:`text`,text:e.slice(r,i.index)});let n=i[0];if(n.startsWith("`"))t.push({type:`code`,text:n.slice(1,-1)});else if(n.startsWith(`![`)){let e=n.match(/!\[([^\]]*)\]\(([^)]+)\)/);e&&t.push({type:`image`,alt:e[1],src:e[2]})}else if(n.startsWith(`**`)||n.startsWith(`__`))t.push({type:`bold`,text:n.slice(2,-2)});else if(n.startsWith(`~~`))t.push({type:`strikethrough`,text:n.slice(2,-2)});else if(n.startsWith(`*`)||n.startsWith(`_`))t.push({type:`italic`,text:n.slice(1,-1)});else if(n.startsWith(`[`)){let e=n.match(/\[([^\]]+)\]\(([^)]+)\)/);e&&t.push({type:`link`,text:e[1],href:e[2]})}else if(/^https?:\/\//i.test(n)){let e=n.replace(ut,``),r=n.slice(e.length);e&&t.push({type:`link`,text:e,href:e}),r&&t.push({type:`text`,text:r})}r=i.index+n.length}return r<e.length&&t.push({type:`text`,text:e.slice(r)}),t.length>0?t:[{type:`text`,text:e}]}function Ut(e){let t=(0,q.c)(27),{language:n,code:r,compact:i}=e,a=i===void 0?!1:i,[o,s]=(0,J.useState)(!1),c;t[0]===r?c=t[1]:(c=async function(){await navigator.clipboard.writeText(r),s(!0),setTimeout(()=>s(!1),2e3)},t[0]=r,t[1]=c);let l=c,u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=O(p.compact,`text-muted-foreground font-mono`),t[2]=u):u=t[2];let d=n||`text`,f;t[3]===d?f=t[4]:(f=(0,Q.jsx)(`span`,{className:u,children:d}),t[3]=d,t[4]=f);let m;t[5]===o?m=t[6]:(m=o?(0,Q.jsx)(_,{}):(0,Q.jsx)(D,{}),t[5]=o,t[6]=m);let h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Q.jsx)(`span`,{className:`sr-only`,children:`Copy code`}),t[7]=h):h=t[7];let g;t[8]!==l||t[9]!==m?(g=(0,Q.jsxs)(k,{variant:`action`,size:`icon-xs`,onClick:l,children:[m,h]}),t[8]=l,t[9]=m,t[10]=g):g=t[10];let v;t[11]!==f||t[12]!==g?(v=(0,Q.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border bg-muted/80 px-4 py-2`,children:[f,g]}),t[11]=f,t[12]=g,t[13]=v):v=t[13];let y=a?`p-2`:`p-4`,b;t[14]===y?b=t[15]:(b=O(`overflow-x-auto max-w-full`,y),t[14]=y,t[15]=b);let x;t[16]===a?x=t[17]:(x=O(a?O(p.compact,`font-mono`):p.mono,`text-foreground leading-relaxed`),t[16]=a,t[17]=x);let S;t[18]!==r||t[19]!==x?(S=(0,Q.jsx)(`code`,{className:x,children:r}),t[18]=r,t[19]=x,t[20]=S):S=t[20];let C;t[21]!==b||t[22]!==S?(C=(0,Q.jsx)(`pre`,{className:b,children:S}),t[21]=b,t[22]=S,t[23]=C):C=t[23];let w;return t[24]!==C||t[25]!==v?(w=(0,Q.jsxs)(`div`,{className:`group relative overflow-hidden rounded-lg border border-border bg-muted`,children:[v,C]}),t[24]=C,t[25]=v,t[26]=w):w=t[26],w}export{Oe as a,Se as c,ke as i,K as l,ze as n,De as o,Ae as r,Ee as s,dt as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./react-vendor-Ee0-5T4I.js";import{ot as n}from"./dist-BWuYHVi8.js";import{An as r,D as i,Dn as a,Et as o,dn as s}from"./dist-DIjomljy.js";import{t as c}from"./utils-CT-Dw22R.js";import{t as l}from"./button-DeNw35VZ.js";import{i as u,n as d,r as f,t as p}from"./tooltip-B6ziVyTv.js";var m=e(),h=t();function g(e){let t=(0,m.c)(6),{onContinue:n,disabled:r,creating:i}=e,s=r||i,c;t[0]===i?c=t[1]:(c=i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(o,{className:`mr-2 h-4 w-4 animate-spin`}),`Creating...`]}):(0,h.jsxs)(h.Fragment,{children:[`Continue`,(0,h.jsx)(a,{className:`ml-2 h-4 w-4`})]}),t[0]=i,t[1]=c);let u;return t[2]!==n||t[3]!==s||t[4]!==c?(u=(0,h.jsx)(`div`,{className:`mt-6 border-t pt-4 flex justify-end`,children:(0,h.jsx)(l,{onClick:n,disabled:s,children:c})}),t[2]=n,t[3]=s,t[4]=c,t[5]=u):u=t[5],u}function _(e){return e.toLowerCase().replace(/\s+/g,`-`).replace(/[^a-z0-9-]/g,``).replace(/-+/g,`-`).replace(/^-|-$/g,``)}function v(e){return e.replace(/-/g,` `).split(/\s+/).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function y(e){return e.length>0&&e.length<=64}function b(e){let t=(0,m.c)(29),{name:a,description:o,installed:g,onClick:_,onOpen:v,onUninstall:y,showInstalledControls:b,className:x}=e,S=b===void 0?!0:b,C=!g&&`cursor-pointer hover:bg-accent/50`,w;t[0]!==x||t[1]!==C?(w=c(`flex w-full flex-col gap-2 rounded-lg border border-border bg-card p-2.5 text-left transition-colors`,C,x),t[0]=x,t[1]=C,t[2]=w):w=t[2];let T=g?void 0:_,E=g?void 0:`button`,D;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(D=c(n.label,`truncate leading-normal`),t[3]=D):D=t[3];let O;t[4]===a?O=t[5]:(O=(0,h.jsx)(`span`,{className:D,children:a}),t[4]=a,t[5]=O);let k;t[6]!==g||t[7]!==S?(k=g&&S&&(0,h.jsx)(f,{delayDuration:300,children:(0,h.jsxs)(p,{children:[(0,h.jsx)(u,{asChild:!0,children:(0,h.jsx)(`span`,{className:`flex-shrink-0 h-4 w-4 rounded-full bg-green-500/15 flex items-center justify-center`,children:(0,h.jsx)(r,{className:`h-2.5 w-2.5 text-green-600 dark:text-green-400`})})}),(0,h.jsx)(d,{children:`Installed`})]})}),t[6]=g,t[7]=S,t[8]=k):k=t[8];let A;t[9]!==O||t[10]!==k?(A=(0,h.jsxs)(`div`,{className:`flex items-center gap-2 min-w-0`,children:[O,k]}),t[9]=O,t[10]=k,t[11]=A):A=t[11];let j;t[12]!==g||t[13]!==v||t[14]!==y||t[15]!==S?(j=g&&S&&(0,h.jsxs)(`div`,{className:`flex items-center gap-1 flex-shrink-0`,children:[v&&(0,h.jsx)(f,{delayDuration:300,children:(0,h.jsxs)(p,{children:[(0,h.jsx)(u,{asChild:!0,children:(0,h.jsx)(l,{variant:`ghost`,size:`icon-sm`,onClick:e=>{e.stopPropagation(),v()},children:(0,h.jsx)(s,{className:`h-3.5 w-3.5`})})}),(0,h.jsx)(d,{children:`Open in Explorer`})]})}),y&&(0,h.jsx)(f,{delayDuration:300,children:(0,h.jsxs)(p,{children:[(0,h.jsx)(u,{asChild:!0,children:(0,h.jsx)(l,{variant:`ghost`,size:`icon-sm`,onClick:e=>{e.stopPropagation(),y()},className:`text-destructive hover:text-destructive`,children:(0,h.jsx)(i,{className:`h-3.5 w-3.5`})})}),(0,h.jsx)(d,{children:`Remove`})]})})]}),t[12]=g,t[13]=v,t[14]=y,t[15]=S,t[16]=j):j=t[16];let M;t[17]!==j||t[18]!==A?(M=(0,h.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[A,j]}),t[17]=j,t[18]=A,t[19]=M):M=t[19];let N;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(N=c(n.caption,`line-clamp-3 select-text`),t[20]=N):N=t[20];let P;t[21]===o?P=t[22]:(P=(0,h.jsx)(`p`,{className:N,children:o}),t[21]=o,t[22]=P);let F;return t[23]!==M||t[24]!==P||t[25]!==w||t[26]!==T||t[27]!==E?(F=(0,h.jsxs)(`div`,{className:w,onClick:T,role:E,children:[M,P]}),t[23]=M,t[24]=P,t[25]=w,t[26]=T,t[27]=E,t[28]=F):F=t[28],F}export{g as a,_ as i,v as n,y as r,b as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./react-vendor-Ee0-5T4I.js";import{ot as n}from"./dist-BWuYHVi8.js";import{t as r}from"./button-DeNw35VZ.js";import{a as i,i as a,o,r as s,s as c,t as l}from"./dialog-Do98zzAW.js";import{Pt as u,o as d}from"./index-DjaVbFDB.js";var f=e(),p=t();function m(e){let t=(0,f.c)(30),{open:m,onOpenChange:h,onNewBranch:g,onJustOpen:_,newChatOnNewBranch:v,onNewChatOnNewBranchChange:y,isLoading:b,projectName:x}=e,S=b===void 0?!1:b,C;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,p.jsx)(c,{children:`Pull Request Merged`}),t[0]=C):C=t[0];let w=x?` for ${x}`:``,T;t[1]===w?T=t[2]:(T=(0,p.jsxs)(o,{children:[C,(0,p.jsxs)(a,{children:[`The PR has already been merged`,w,`. Create a new branch and PR?`]})]}),t[1]=w,t[2]=T);let E;t[3]===y?E=t[4]:(E=e=>y(e===!0),t[3]=y,t[4]=E);let D;t[5]!==v||t[6]!==E?(D=(0,p.jsx)(d,{id:`new-chat-on-new-branch`,checked:v,onCheckedChange:E}),t[5]=v,t[6]=E,t[7]=D):D=t[7];let O;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,p.jsx)(u,{htmlFor:`new-chat-on-new-branch`,className:n.labelNormal,children:`New Chat`}),t[8]=O):O=t[8];let k;t[9]===D?k=t[10]:(k=(0,p.jsxs)(`div`,{className:`flex items-center gap-2`,children:[D,O]}),t[9]=D,t[10]=k);let A;t[11]!==S||t[12]!==_?(A=(0,p.jsx)(r,{variant:`ghost`,onClick:_,disabled:S,children:`Just Open`}),t[11]=S,t[12]=_,t[13]=A):A=t[13];let j;t[14]!==S||t[15]!==g?(j=(0,p.jsx)(r,{onClick:g,disabled:S,children:`New Branch`}),t[14]=S,t[15]=g,t[16]=j):j=t[16];let M;t[17]!==j||t[18]!==A?(M=(0,p.jsxs)(`div`,{className:`flex w-full flex-col-reverse gap-2 sm:w-auto sm:flex-row`,children:[A,j]}),t[17]=j,t[18]=A,t[19]=M):M=t[19];let N;t[20]!==M||t[21]!==k?(N=(0,p.jsxs)(i,{className:`flex-col gap-4 sm:flex-row sm:items-center sm:justify-between`,children:[k,M]}),t[20]=M,t[21]=k,t[22]=N):N=t[22];let P;t[23]!==N||t[24]!==T?(P=(0,p.jsxs)(s,{children:[T,N]}),t[23]=N,t[24]=T,t[25]=P):P=t[25];let F;return t[26]!==h||t[27]!==m||t[28]!==P?(F=(0,p.jsx)(l,{open:m,onOpenChange:h,children:P}),t[26]=h,t[27]=m,t[28]=P,t[29]=F):F=t[29],F}export{m as MergedPRDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./rolldown-runtime-aKtaBQYM.js";import{n as e,o as t,t as n}from"./react-vendor-Ee0-5T4I.js";import{ot as r}from"./dist-BWuYHVi8.js";import{Bn as i,P as a,Y as o,gn as s}from"./dist-DIjomljy.js";import{t as c}from"./button-DeNw35VZ.js";import"./api-BMo_Lz8f.js";import{i as l,n as u,r as d,t as f}from"./tooltip-B6ziVyTv.js";import{o as p}from"./index-DjaVbFDB.js";import{n as m}from"./sorting-DqwxPMRN.js";var h=e(),g=n();function _(e){let t=(0,h.c)(9),{codingIndex:n,modelName:i}=e,o=m(n);if(o===0)return null;let s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=[1,2,3,4,5],t[0]=s):s=t[0];let c;t[1]===o?c=t[2]:(c=(0,g.jsx)(l,{asChild:!0,children:(0,g.jsx)(`div`,{className:`flex items-center gap-0.5`,children:s.map(e=>(0,g.jsx)(a,{className:`h-3 w-3 ${e<=o?`fill-yellow-400 text-yellow-400`:`text-gray-300`}`},e))})}),t[1]=o,t[2]=c);let p;t[3]!==n||t[4]!==i?(p=(0,g.jsx)(u,{children:(0,g.jsxs)(`p`,{className:r.body,children:[i,` was indexed `,n,` for coding intelligence`]})}),t[3]=n,t[4]=i,t[5]=p):p=t[5];let _;return t[6]!==c||t[7]!==p?(_=(0,g.jsx)(d,{children:(0,g.jsxs)(f,{children:[c,p]})}),t[6]=c,t[7]=p,t[8]=_):_=t[8],_}t();function v(e){let t=(0,h.c)(10),{id:n,checked:r,disabled:i,onChange:a}=e,o=i===void 0?!1:i,s;t[0]===a?s=t[1]:(s=e=>a(e===!0),t[0]=a,t[1]=s);let c;t[2]!==r||t[3]!==o||t[4]!==n||t[5]!==s?(c=(0,g.jsx)(l,{asChild:!0,children:(0,g.jsx)(`span`,{className:`inline-flex`,children:(0,g.jsx)(p,{id:n,disabled:o,checked:r,onCheckedChange:s,"aria-label":`Select All Models`})})}),t[2]=r,t[3]=o,t[4]=n,t[5]=s,t[6]=c):c=t[6];let m;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,g.jsx)(u,{children:`Select All Models`}),t[7]=m):m=t[7];let _;return t[8]===c?_=t[9]:(_=(0,g.jsx)(d,{children:(0,g.jsxs)(f,{children:[c,m]})}),t[8]=c,t[9]=_),_}function y(e){let t=(0,h.c)(31),{sortBy:n,onSortByChange:r,showCodingIndex:p,showIntelligenceByPrice:m}=e,_=p===void 0?!1:p,v=m===void 0?!1:m,y=n===`alphabetical`?`secondary`:`ghost`,b;t[0]===r?b=t[1]:(b=()=>r(`alphabetical`),t[0]=r,t[1]=b);let x;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,g.jsx)(i,{className:`h-4 w-4`}),t[2]=x):x=t[2];let S;t[3]!==y||t[4]!==b?(S=(0,g.jsx)(l,{asChild:!0,children:(0,g.jsx)(c,{type:`button`,variant:y,size:`icon`,className:`h-8 w-8`,onClick:b,children:x})}),t[3]=y,t[4]=b,t[5]=S):S=t[5];let C;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,g.jsx)(u,{children:`Sort A–Z`}),t[6]=C):C=t[6];let w;t[7]===S?w=t[8]:(w=(0,g.jsxs)(f,{children:[S,C]}),t[7]=S,t[8]=w);let T=n===`price-low`||n===`price-high`?`secondary`:`ghost`,E;t[9]===r?E=t[10]:(E=()=>r(`price-low`),t[9]=r,t[10]=E);let D;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,g.jsx)(s,{className:`h-4 w-4`}),t[11]=D):D=t[11];let O;t[12]!==E||t[13]!==T?(O=(0,g.jsx)(l,{asChild:!0,children:(0,g.jsx)(c,{type:`button`,variant:T,size:`icon`,className:`h-8 w-8`,onClick:E,children:D})}),t[12]=E,t[13]=T,t[14]=O):O=t[14];let k;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,g.jsx)(u,{children:`Sort by price`}),t[15]=k):k=t[15];let A;t[16]===O?A=t[17]:(A=(0,g.jsxs)(f,{children:[O,k]}),t[16]=O,t[17]=A);let j;t[18]!==r||t[19]!==_||t[20]!==n?(j=_?(0,g.jsxs)(f,{children:[(0,g.jsx)(l,{asChild:!0,children:(0,g.jsx)(c,{type:`button`,variant:n===`coding-index`?`secondary`:`ghost`,size:`icon`,className:`h-8 w-8`,onClick:()=>r(`coding-index`),children:(0,g.jsx)(a,{className:`h-4 w-4`})})}),(0,g.jsx)(u,{children:`Sort by coding intelligence`})]}):null,t[18]=r,t[19]=_,t[20]=n,t[21]=j):j=t[21];let M;t[22]!==r||t[23]!==v||t[24]!==n?(M=v?(0,g.jsxs)(f,{children:[(0,g.jsx)(l,{asChild:!0,children:(0,g.jsx)(c,{type:`button`,variant:n===`intelligence-by-price`?`secondary`:`ghost`,size:`icon`,className:`h-8 w-8`,onClick:()=>r(`intelligence-by-price`),children:(0,g.jsx)(o,{className:`h-4 w-4`})})}),(0,g.jsx)(u,{children:`Sort by price/intelligence`})]}):null,t[22]=r,t[23]=v,t[24]=n,t[25]=M):M=t[25];let N;return t[26]!==A||t[27]!==j||t[28]!==M||t[29]!==w?(N=(0,g.jsx)(d,{children:(0,g.jsxs)(`div`,{className:`flex items-center rounded-md p-0.5`,children:[w,A,j,M]})}),t[26]=A,t[27]=j,t[28]=M,t[29]=w,t[30]=N):N=t[30],N}export{y as n,_ as r,v as t};
|