blade-code 0.11.1 → 0.11.2

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.
Files changed (131) hide show
  1. package/dist/blade.js +2 -2
  2. package/dist/{chunk-2ftyzk83.js → chunk-04qhtx2w.js} +1 -1
  3. package/dist/{chunk-4cdk4mds.js → chunk-0eajnhrj.js} +1 -1
  4. package/dist/{chunk-a74ynw4t.js → chunk-0kxya4ye.js} +1 -1
  5. package/dist/{chunk-5034apfz.js → chunk-0wxnrjes.js} +2 -2
  6. package/dist/{chunk-vbjgcn49.js → chunk-1cy4ab77.js} +1 -1
  7. package/dist/chunk-21qsfewd.js +1 -0
  8. package/dist/{chunk-pm5ssr7m.js → chunk-290p3r7a.js} +1 -1
  9. package/dist/{chunk-xcj23spc.js → chunk-2fdghgmf.js} +2 -2
  10. package/dist/chunk-3d4wgfkr.js +1 -0
  11. package/dist/{chunk-25s0c8km.js → chunk-3ee357pw.js} +3 -3
  12. package/dist/{chunk-9ydrwcpy.js → chunk-4e4qtpca.js} +2 -2
  13. package/dist/{chunk-0wcnkxe8.js → chunk-5s2x98rx.js} +2 -2
  14. package/dist/chunk-634ymwg5.js +1 -0
  15. package/dist/chunk-65v1vjvg.js +1 -0
  16. package/dist/{chunk-8sth12hd.js → chunk-6v23hdt8.js} +1 -1
  17. package/dist/{chunk-xseh3f4m.js → chunk-6x5f6she.js} +1 -1
  18. package/dist/{chunk-06hkf59s.js → chunk-7ajvrtb3.js} +1 -1
  19. package/dist/chunk-7p8r4q6f.js +1 -0
  20. package/dist/{chunk-hmw99nm1.js → chunk-7rz5dt79.js} +27 -27
  21. package/dist/{chunk-8n3jythp.js → chunk-8q6zsznc.js} +2 -2
  22. package/dist/{chunk-s1cch8tt.js → chunk-a3dz41pd.js} +1 -1
  23. package/dist/{chunk-gzbb747a.js → chunk-a95jmx2j.js} +1 -1
  24. package/dist/{chunk-n8qg68y2.js → chunk-amabfzc8.js} +1 -1
  25. package/dist/{chunk-m30qwpe9.js → chunk-b22ab7yw.js} +1 -1
  26. package/dist/{chunk-0b83mt1c.js → chunk-crv3sghv.js} +2 -2
  27. package/dist/chunk-d4xsrx3z.js +357 -0
  28. package/dist/{chunk-7eset766.js → chunk-ebvzp8tn.js} +6 -6
  29. package/dist/chunk-eg0s155w.js +1 -0
  30. package/dist/chunk-enmn892r.js +10 -0
  31. package/dist/{chunk-9yn01a90.js → chunk-er6zghgg.js} +1 -1
  32. package/dist/{chunk-30p7aff1.js → chunk-f9qrjd2f.js} +1 -1
  33. package/dist/{chunk-2vrsfb8p.js → chunk-fb2x1026.js} +55 -55
  34. package/dist/{chunk-xcy45yxx.js → chunk-g0xtk1yy.js} +2 -2
  35. package/dist/{chunk-h8w3ahnk.js → chunk-g2295k8s.js} +2 -2
  36. package/dist/{chunk-m8te4s8f.js → chunk-g7pjgspy.js} +2 -2
  37. package/dist/chunk-gff7a5q0.js +1 -0
  38. package/dist/chunk-gymecxcc.js +1 -0
  39. package/dist/{chunk-yrr9mdjn.js → chunk-h4b4fn3t.js} +2 -2
  40. package/dist/{chunk-ta99scbr.js → chunk-jbpasjg9.js} +1 -1
  41. package/dist/{chunk-xzva8y4e.js → chunk-k2rgg45h.js} +3 -3
  42. package/dist/chunk-kaj8jaj5.js +6 -0
  43. package/dist/{chunk-3kszepm6.js → chunk-kehgewqh.js} +1 -1
  44. package/dist/{chunk-wcps5gjm.js → chunk-kkzznz4w.js} +1 -1
  45. package/dist/chunk-m2x6pb4f.js +2 -0
  46. package/dist/{chunk-tqt5c2f5.js → chunk-n30najxq.js} +2 -2
  47. package/dist/{chunk-80946c9a.js → chunk-p36k2e96.js} +1 -1
  48. package/dist/chunk-p665f6pn.js +1 -0
  49. package/dist/chunk-pjeks4cz.js +1 -0
  50. package/dist/{chunk-zfxcef0z.js → chunk-pm163dfm.js} +1 -1
  51. package/dist/{chunk-zjezws85.js → chunk-px45q235.js} +2 -2
  52. package/dist/{chunk-5bc4hwt9.js → chunk-q6sr4979.js} +2 -2
  53. package/dist/{chunk-447ps2te.js → chunk-qa86anwd.js} +2 -2
  54. package/dist/{chunk-sa9fxss4.js → chunk-qhcd0ww0.js} +1 -1
  55. package/dist/chunk-qyfbeg5h.js +1 -0
  56. package/dist/{chunk-v1k6nvth.js → chunk-re8p2y22.js} +1 -1
  57. package/dist/{chunk-xz7dddaj.js → chunk-s7x4x6xw.js} +1 -1
  58. package/dist/{chunk-f552hzcx.js → chunk-sdapqhj0.js} +1 -1
  59. package/dist/{chunk-a731hdwa.js → chunk-skktstg8.js} +1 -1
  60. package/dist/chunk-sqsfztrv.js +1 -0
  61. package/dist/chunk-t3pkk95s.js +1 -0
  62. package/dist/{chunk-ts5xzefm.js → chunk-tx9tb485.js} +2 -2
  63. package/dist/{chunk-m70cnaeg.js → chunk-v0eanse2.js} +1 -1
  64. package/dist/{chunk-ms0wve9g.js → chunk-vemyfx92.js} +2 -2
  65. package/dist/{chunk-dxq7462e.js → chunk-wan9q99y.js} +2 -2
  66. package/dist/{chunk-f6hc7t65.js → chunk-wnzr9h84.js} +1 -1
  67. package/dist/{chunk-5yyp6njq.js → chunk-x6k5ye1z.js} +1 -1
  68. package/dist/{chunk-1beqtjsw.js → chunk-xnys4bgs.js} +1 -1
  69. package/dist/{chunk-27bjk35b.js → chunk-xrgeakpy.js} +1 -1
  70. package/dist/{chunk-fqxzzsgr.js → chunk-yeandcre.js} +1 -1
  71. package/dist/{chunk-a1tt14a2.js → chunk-yjcp8jk1.js} +2 -2
  72. package/dist/{chunk-3y2x6fb6.js → chunk-ys8gysg8.js} +1 -1
  73. package/dist/{chunk-rt3f4xjz.js → chunk-zf72e5w8.js} +14 -6
  74. package/dist/{chunk-g0hhqxpg.js → chunk-zwe1a7xe.js} +2 -2
  75. package/dist/web/assets/{ChatView-BA3kB_z1.js → ChatView-DysPZPwF.js} +5 -5
  76. package/dist/web/assets/{CodeBlockHighlighter-B5kcdVCA.js → CodeBlockHighlighter-OvLyFs9U.js} +1 -1
  77. package/dist/web/assets/{FilePreview-BQid6G2-.js → FilePreview-CkSPwPdW.js} +3 -3
  78. package/dist/web/assets/{KanbanBoard-CTR7bMLa.js → KanbanBoard-DH1wApt6.js} +1 -1
  79. package/dist/web/assets/{MarkdownRenderer-d7DdyYdx.js → MarkdownRenderer-BTxnqChi.js} +3 -3
  80. package/dist/web/assets/{ScrollArea-D1tPWHKZ.js → ScrollArea-BdOqyQ3g.js} +1 -1
  81. package/dist/web/assets/{SessionHistorySurface-Cv_jRoJr.js → SessionHistorySurface-DaKE2oKU.js} +1 -1
  82. package/dist/web/assets/{SettingsModal-CFa2uCzI.js → SettingsModal-CWlSSO_E.js} +1 -1
  83. package/dist/web/assets/{Sidebar-DrRNJOgU.js → Sidebar-Dirk-XAQ.js} +1 -1
  84. package/dist/web/assets/{TaskSwitcher-C9AKJrl-.js → TaskSwitcher-DKelLFZm.js} +1 -1
  85. package/dist/web/assets/{TerminalPanel-BxBGcuB9.js → TerminalPanel-D5Rieq62.js} +1 -1
  86. package/dist/web/assets/{archive-DNa9b1YE.js → archive-CsFSEMp9.js} +1 -1
  87. package/dist/web/assets/{arrow-left-BQh8jlfT.js → arrow-left-gaino9Tb.js} +1 -1
  88. package/dist/web/assets/{calendar-clock-CC7FeYTg.js → calendar-clock-DfHUrEw9.js} +1 -1
  89. package/dist/web/assets/chevron-right-Bvu2j6hB.js +1 -0
  90. package/dist/web/assets/{clock-3-P2q6i6vm.js → clock-3-dWIDc9IF.js} +1 -1
  91. package/dist/web/assets/{copy-C-KvzjCC.js → copy-BPfhyh47.js} +1 -1
  92. package/dist/web/assets/{dist-DiQNoDMg.js → dist-RGayDvc-.js} +1 -1
  93. package/dist/web/assets/{download-CJHn20x1.js → download-BR2L5Wme.js} +1 -1
  94. package/dist/web/assets/{folder-DmyFehXD.js → folder-8dmZJ2a6.js} +1 -1
  95. package/dist/web/assets/{index-BVEiHNFk.css → index-B7RyuO2x.css} +1 -1
  96. package/dist/web/assets/{index-D-oma3Je.js → index-DSa8Dzp7.js} +4 -4
  97. package/dist/web/assets/{message-square-plus-CKu9bFq3.js → message-square-plus-BgC981WF.js} +1 -1
  98. package/dist/web/assets/{pause-D2FxNG-w.js → pause-DLZIDFMB.js} +1 -1
  99. package/dist/web/assets/{pencil-D6HI7KC8.js → pencil-DkC0bPYD.js} +1 -1
  100. package/dist/web/assets/{play-4jKCDYR-.js → play-BVeNn6fv.js} +1 -1
  101. package/dist/web/assets/plus-kzdwas-3.js +1 -0
  102. package/dist/web/assets/{preload-helper-BC9Zf9qO.js → preload-helper-DvgLbiBV.js} +1 -1
  103. package/dist/web/assets/{session-events-CvFfHkFA.js → session-events-BuMTbIwu.js} +6 -6
  104. package/dist/web/assets/{settings-fWlqCZ-U.js → settings-msYyNDKx.js} +1 -1
  105. package/dist/web/assets/{team-qGS2kixH.js → team-D3XOVbxL.js} +1 -1
  106. package/dist/web/assets/{teamService-DfIvlI2_.js → teamService-Bus5RDi1.js} +1 -1
  107. package/dist/web/assets/{terminal-DZkEoiSb.js → terminal-Cp5WYo8w.js} +1 -1
  108. package/dist/web/assets/{triangle-alert-Detl9fRQ.js → triangle-alert-cGqHxFsZ.js} +1 -1
  109. package/dist/web/assets/{vendor-radix-CHeA_3Pt.js → vendor-radix-L0yJCKJX.js} +1 -1
  110. package/dist/web/assets/{vendor-react-hNfZDUf2.js → vendor-react-CHEIQMI-.js} +1 -1
  111. package/dist/web/index.html +5 -5
  112. package/package.json +1 -1
  113. package/dist/chunk-1kxpnt9q.js +0 -1
  114. package/dist/chunk-2g3v9qpz.js +0 -1
  115. package/dist/chunk-43gg1wdc.js +0 -1
  116. package/dist/chunk-72wn385d.js +0 -1
  117. package/dist/chunk-7vzz3rsx.js +0 -332
  118. package/dist/chunk-8emp6ysb.js +0 -1
  119. package/dist/chunk-8evyh5t0.js +0 -1
  120. package/dist/chunk-8hdtssvs.js +0 -1
  121. package/dist/chunk-b36egepz.js +0 -1
  122. package/dist/chunk-hrtf7dba.js +0 -2
  123. package/dist/chunk-j7dx054r.js +0 -1
  124. package/dist/chunk-j9ppeg6v.js +0 -1
  125. package/dist/chunk-jemb0vwa.js +0 -1
  126. package/dist/chunk-r9m3b170.js +0 -1
  127. package/dist/chunk-tf1qz4q6.js +0 -1
  128. package/dist/chunk-v17q4bsd.js +0 -6
  129. package/dist/chunk-y0wc0hef.js +0 -10
  130. package/dist/web/assets/chevron-right-6ZTOJE0p.js +0 -1
  131. package/dist/web/assets/plus-C4p8E1Nk.js +0 -1
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{d as t,dt as n,i as r,u as i}from"./session-events-CvFfHkFA.js";import{C as a}from"./vendor-radix-CHeA_3Pt.js";import{c as o,l as s,n as c}from"./preload-helper-BC9Zf9qO.js";import{t as l}from"./terminal-DZkEoiSb.js";import{U as u,W as d,y as f}from"./index-D-oma3Je.js";import{n as p,r as m,t as h}from"./vendor-xterm-CANZO_wP.js";var g={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};g.node;var _=s(g),v=e(n(),1),y=a(),b=({workspacePath:e})=>{let n=o(),a=f(e=>e.historySurfaceSelection),{isTerminalOpen:s,toggleTerminal:g}=r(),[b,x]=(0,v.useState)(!1),[S,C]=(0,v.useState)(!1),w=c(),T=(0,v.useRef)(null),E=(0,v.useRef)(null),D=(0,v.useRef)(null),O=(0,v.useRef)(null),k=(0,v.useRef)(null),A=(0,v.useCallback)(()=>{if(t(f.getState())||O.current?.readyState===WebSocket.OPEN)return;let n=`${window.location.protocol===`https:`?`wss:`:`ws:`}//${window.location.host}/terminal/ws`,r=e?`${n}?cwd=${encodeURIComponent(e)}`:n,i=new WebSocket(r);O.current=i,i.onopen=()=>{C(!0)},i.onmessage=e=>{E.current?.write(e.data)},i.onclose=()=>{C(!1)},i.onerror=()=>{C(!1)}},[e]),j=(0,v.useCallback)(()=>{O.current&&=(O.current.close(),null),C(!1)},[]),M=(0,v.useCallback)(e=>{i(f.getState().historySurfaceSelection)||O.current?.readyState===WebSocket.OPEN&&O.current.send(e)},[]);return(0,v.useEffect)(()=>(k.current=document.activeElement instanceof HTMLElement?document.activeElement:null,()=>k.current?.focus({preventScroll:!0})),[]),(0,v.useEffect)(()=>{if(!s||!T.current||E.current)return;let e=new h({cursorBlink:!0,cursorStyle:`bar`,fontSize:14,fontFamily:`JetBrains Mono, Menlo, Monaco, Consolas, monospace`,allowTransparency:!0,scrollback:1e4,theme:w?{background:`#0a0a0a`,foreground:`#e4e4e7`,cursor:`#e4e4e7`,cursorAccent:`#0a0a0a`,selectionBackground:`#3f3f46`,black:`#18181b`,red:`#ef4444`,green:`#22c55e`,yellow:`#eab308`,blue:`#3b82f6`,magenta:`#a855f7`,cyan:`#06b6d4`,white:`#e4e4e7`,brightBlack:`#52525b`,brightRed:`#f87171`,brightGreen:`#4ade80`,brightYellow:`#facc15`,brightBlue:`#60a5fa`,brightMagenta:`#c084fc`,brightCyan:`#22d3ee`,brightWhite:`#fafafa`}:{background:`#ffffff`,foreground:`#111827`,cursor:`#111827`,cursorAccent:`#ffffff`,selectionBackground:`#E5E7EB`,black:`#111827`,red:`#dc2626`,green:`#16a34a`,yellow:`#ca8a04`,blue:`#2563eb`,magenta:`#7c3aed`,cyan:`#0891b2`,white:`#111827`,brightBlack:`#6b7280`,brightRed:`#ef4444`,brightGreen:`#22c55e`,brightYellow:`#facc15`,brightBlue:`#60a5fa`,brightMagenta:`#a855f7`,brightCyan:`#22d3ee`,brightWhite:`#111827`}}),t=new m,n=new p;e.loadAddon(t),e.loadAddon(n),e.open(T.current),t.fit();let r=requestAnimationFrame(()=>e.focus());return e.onData(e=>{M(e)}),E.current=e,D.current=t,A(),()=>{cancelAnimationFrame(r),j(),e.dispose(),E.current=null,D.current=null}},[a,s,A,j,M]),(0,v.useEffect)(()=>{E.current&&(E.current.options.theme=w?{background:`#0a0a0a`,foreground:`#e4e4e7`,cursor:`#e4e4e7`,cursorAccent:`#0a0a0a`,selectionBackground:`#3f3f46`,black:`#18181b`,red:`#ef4444`,green:`#22c55e`,yellow:`#eab308`,blue:`#3b82f6`,magenta:`#a855f7`,cyan:`#06b6d4`,white:`#e4e4e7`,brightBlack:`#52525b`,brightRed:`#f87171`,brightGreen:`#4ade80`,brightYellow:`#facc15`,brightBlue:`#60a5fa`,brightMagenta:`#c084fc`,brightCyan:`#22d3ee`,brightWhite:`#fafafa`}:{background:`#ffffff`,foreground:`#111827`,cursor:`#111827`,cursorAccent:`#ffffff`,selectionBackground:`#E5E7EB`,black:`#111827`,red:`#dc2626`,green:`#16a34a`,yellow:`#ca8a04`,blue:`#2563eb`,magenta:`#7c3aed`,cyan:`#0891b2`,white:`#111827`,brightBlack:`#6b7280`,brightRed:`#ef4444`,brightGreen:`#22c55e`,brightYellow:`#facc15`,brightBlue:`#60a5fa`,brightMagenta:`#a855f7`,brightCyan:`#22d3ee`,brightWhite:`#111827`})},[w]),(0,v.useEffect)(()=>{if(!s||b)return;let e=()=>{D.current?.fit()};window.addEventListener(`resize`,e);let t=setTimeout(e,100);return()=>{window.removeEventListener(`resize`,e),clearTimeout(t)}},[s,b]),!s||i(a)?null:(0,y.jsxs)(`div`,{role:`region`,"aria-label":n(`terminal.title`),className:u(`fixed bottom-0 left-0 right-0 z-40 bg-white dark:bg-[#0a0a0a] border-t border-[#E5E7EB] dark:border-zinc-800 transition-all duration-200`,b?`h-10`:`h-[min(18rem,45dvh)]`),children:[(0,y.jsxs)(`div`,{className:`flex items-center justify-between h-10 px-3 border-b border-[#E5E7EB] dark:border-zinc-800 bg-[#F9FAFB] dark:bg-zinc-900/50`,children:[(0,y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,y.jsx)(l,{className:`h-4 w-4 text-[#9CA3AF] dark:text-zinc-400`}),(0,y.jsx)(`span`,{className:`text-sm text-[#6B7280] dark:text-zinc-400`,children:n(`terminal.title`)}),(0,y.jsx)(`span`,{role:`status`,"aria-label":n(S?`terminal.status.connected`:`terminal.status.disconnected`),className:u(`w-2 h-2 rounded-full`,S?`bg-green-500`:`bg-zinc-600`)})]}),(0,y.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,y.jsx)(`button`,{type:`button`,onClick:()=>x(!b),"aria-label":n(b?`terminal.action.restore`:`terminal.action.minimize`),className:`p-1.5 rounded hover:bg-[#E5E7EB] text-[#9CA3AF] hover:text-[#111827] dark:hover:bg-zinc-800 dark:text-zinc-400 dark:hover:text-zinc-200 transition-colors`,children:(0,y.jsx)(_,{className:`h-4 w-4`})}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>{j(),g()},"aria-label":n(`terminal.action.close`),className:`p-1.5 rounded hover:bg-[#E5E7EB] text-[#9CA3AF] hover:text-[#111827] dark:hover:bg-zinc-800 dark:text-zinc-400 dark:hover:text-zinc-200 transition-colors`,children:(0,y.jsx)(d,{className:`h-4 w-4`})})]})]}),(0,y.jsx)(`div`,{ref:T,className:u(`h-[calc(100%-40px)] p-2`,b&&`hidden`)})]})};export{b as TerminalPanel};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{d as t,dt as n,i as r,u as i}from"./session-events-BuMTbIwu.js";import{C as a}from"./vendor-radix-L0yJCKJX.js";import{c as o,l as s,n as c}from"./preload-helper-DvgLbiBV.js";import{t as l}from"./terminal-Cp5WYo8w.js";import{U as u,W as d,y as f}from"./index-DSa8Dzp7.js";import{n as p,r as m,t as h}from"./vendor-xterm-CANZO_wP.js";var g={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};g.node;var _=s(g),v=e(n(),1),y=a(),b=({workspacePath:e})=>{let n=o(),a=f(e=>e.historySurfaceSelection),{isTerminalOpen:s,toggleTerminal:g}=r(),[b,x]=(0,v.useState)(!1),[S,C]=(0,v.useState)(!1),w=c(),T=(0,v.useRef)(null),E=(0,v.useRef)(null),D=(0,v.useRef)(null),O=(0,v.useRef)(null),k=(0,v.useRef)(null),A=(0,v.useCallback)(()=>{if(t(f.getState())||O.current?.readyState===WebSocket.OPEN)return;let n=`${window.location.protocol===`https:`?`wss:`:`ws:`}//${window.location.host}/terminal/ws`,r=e?`${n}?cwd=${encodeURIComponent(e)}`:n,i=new WebSocket(r);O.current=i,i.onopen=()=>{C(!0)},i.onmessage=e=>{E.current?.write(e.data)},i.onclose=()=>{C(!1)},i.onerror=()=>{C(!1)}},[e]),j=(0,v.useCallback)(()=>{O.current&&=(O.current.close(),null),C(!1)},[]),M=(0,v.useCallback)(e=>{i(f.getState().historySurfaceSelection)||O.current?.readyState===WebSocket.OPEN&&O.current.send(e)},[]);return(0,v.useEffect)(()=>(k.current=document.activeElement instanceof HTMLElement?document.activeElement:null,()=>k.current?.focus({preventScroll:!0})),[]),(0,v.useEffect)(()=>{if(!s||!T.current||E.current)return;let e=new h({cursorBlink:!0,cursorStyle:`bar`,fontSize:14,fontFamily:`JetBrains Mono, Menlo, Monaco, Consolas, monospace`,allowTransparency:!0,scrollback:1e4,theme:w?{background:`#0a0a0a`,foreground:`#e4e4e7`,cursor:`#e4e4e7`,cursorAccent:`#0a0a0a`,selectionBackground:`#3f3f46`,black:`#18181b`,red:`#ef4444`,green:`#22c55e`,yellow:`#eab308`,blue:`#3b82f6`,magenta:`#a855f7`,cyan:`#06b6d4`,white:`#e4e4e7`,brightBlack:`#52525b`,brightRed:`#f87171`,brightGreen:`#4ade80`,brightYellow:`#facc15`,brightBlue:`#60a5fa`,brightMagenta:`#c084fc`,brightCyan:`#22d3ee`,brightWhite:`#fafafa`}:{background:`#ffffff`,foreground:`#111827`,cursor:`#111827`,cursorAccent:`#ffffff`,selectionBackground:`#E5E7EB`,black:`#111827`,red:`#dc2626`,green:`#16a34a`,yellow:`#ca8a04`,blue:`#2563eb`,magenta:`#7c3aed`,cyan:`#0891b2`,white:`#111827`,brightBlack:`#6b7280`,brightRed:`#ef4444`,brightGreen:`#22c55e`,brightYellow:`#facc15`,brightBlue:`#60a5fa`,brightMagenta:`#a855f7`,brightCyan:`#22d3ee`,brightWhite:`#111827`}}),t=new m,n=new p;e.loadAddon(t),e.loadAddon(n),e.open(T.current),t.fit();let r=requestAnimationFrame(()=>e.focus());return e.onData(e=>{M(e)}),E.current=e,D.current=t,A(),()=>{cancelAnimationFrame(r),j(),e.dispose(),E.current=null,D.current=null}},[a,s,A,j,M]),(0,v.useEffect)(()=>{E.current&&(E.current.options.theme=w?{background:`#0a0a0a`,foreground:`#e4e4e7`,cursor:`#e4e4e7`,cursorAccent:`#0a0a0a`,selectionBackground:`#3f3f46`,black:`#18181b`,red:`#ef4444`,green:`#22c55e`,yellow:`#eab308`,blue:`#3b82f6`,magenta:`#a855f7`,cyan:`#06b6d4`,white:`#e4e4e7`,brightBlack:`#52525b`,brightRed:`#f87171`,brightGreen:`#4ade80`,brightYellow:`#facc15`,brightBlue:`#60a5fa`,brightMagenta:`#c084fc`,brightCyan:`#22d3ee`,brightWhite:`#fafafa`}:{background:`#ffffff`,foreground:`#111827`,cursor:`#111827`,cursorAccent:`#ffffff`,selectionBackground:`#E5E7EB`,black:`#111827`,red:`#dc2626`,green:`#16a34a`,yellow:`#ca8a04`,blue:`#2563eb`,magenta:`#7c3aed`,cyan:`#0891b2`,white:`#111827`,brightBlack:`#6b7280`,brightRed:`#ef4444`,brightGreen:`#22c55e`,brightYellow:`#facc15`,brightBlue:`#60a5fa`,brightMagenta:`#a855f7`,brightCyan:`#22d3ee`,brightWhite:`#111827`})},[w]),(0,v.useEffect)(()=>{if(!s||b)return;let e=()=>{D.current?.fit()};window.addEventListener(`resize`,e);let t=setTimeout(e,100);return()=>{window.removeEventListener(`resize`,e),clearTimeout(t)}},[s,b]),!s||i(a)?null:(0,y.jsxs)(`div`,{role:`region`,"aria-label":n(`terminal.title`),className:u(`fixed bottom-0 left-0 right-0 z-40 bg-white dark:bg-[#0a0a0a] border-t border-[#E5E7EB] dark:border-zinc-800 transition-all duration-200`,b?`h-10`:`h-[min(18rem,45dvh)]`),children:[(0,y.jsxs)(`div`,{className:`flex items-center justify-between h-10 px-3 border-b border-[#E5E7EB] dark:border-zinc-800 bg-[#F9FAFB] dark:bg-zinc-900/50`,children:[(0,y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,y.jsx)(l,{className:`h-4 w-4 text-[#9CA3AF] dark:text-zinc-400`}),(0,y.jsx)(`span`,{className:`text-sm text-[#6B7280] dark:text-zinc-400`,children:n(`terminal.title`)}),(0,y.jsx)(`span`,{role:`status`,"aria-label":n(S?`terminal.status.connected`:`terminal.status.disconnected`),className:u(`w-2 h-2 rounded-full`,S?`bg-green-500`:`bg-zinc-600`)})]}),(0,y.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,y.jsx)(`button`,{type:`button`,onClick:()=>x(!b),"aria-label":n(b?`terminal.action.restore`:`terminal.action.minimize`),className:`p-1.5 rounded hover:bg-[#E5E7EB] text-[#9CA3AF] hover:text-[#111827] dark:hover:bg-zinc-800 dark:text-zinc-400 dark:hover:text-zinc-200 transition-colors`,children:(0,y.jsx)(_,{className:`h-4 w-4`})}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>{j(),g()},"aria-label":n(`terminal.action.close`),className:`p-1.5 rounded hover:bg-[#E5E7EB] text-[#9CA3AF] hover:text-[#111827] dark:hover:bg-zinc-800 dark:text-zinc-400 dark:hover:text-zinc-200 transition-colors`,children:(0,y.jsx)(d,{className:`h-4 w-4`})})]})]}),(0,y.jsx)(`div`,{ref:T,className:u(`h-[calc(100%-40px)] p-2`,b&&`hidden`)})]})};export{b as TerminalPanel};
@@ -1 +1 @@
1
- import{l as e}from"./preload-helper-BC9Zf9qO.js";var t={name:`archive`,size:24,node:[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]};t.node;var n=e(t);export{n as t};
1
+ import{l as e}from"./preload-helper-DvgLbiBV.js";var t={name:`archive`,size:24,node:[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]};t.node;var n=e(t);export{n as t};
@@ -1 +1 @@
1
- import{l as e}from"./preload-helper-BC9Zf9qO.js";var t={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};t.node;var n=e(t);export{n as t};
1
+ import{l as e}from"./preload-helper-DvgLbiBV.js";var t={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};t.node;var n=e(t);export{n as t};
@@ -1 +1 @@
1
- import{l as e}from"./preload-helper-BC9Zf9qO.js";var t={name:`calendar-clock`,size:24,node:[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338`,key:`7hb8p4`}],[`path`,{d:`M3 9h5.859`,key:`numkqi`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]};t.node;var n=e(t);export{n as t};
1
+ import{l as e}from"./preload-helper-DvgLbiBV.js";var t={name:`calendar-clock`,size:24,node:[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338`,key:`7hb8p4`}],[`path`,{d:`M3 9h5.859`,key:`numkqi`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]};t.node;var n=e(t);export{n as t};
@@ -0,0 +1 @@
1
+ import{l as e}from"./preload-helper-DvgLbiBV.js";var t={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};t.node;var n=e(t);export{n as t};
@@ -1 +1 @@
1
- import{l as e}from"./preload-helper-BC9Zf9qO.js";var t={name:`clock-3`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]};t.node;var n=e(t);export{n as t};
1
+ import{l as e}from"./preload-helper-DvgLbiBV.js";var t={name:`clock-3`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]};t.node;var n=e(t);export{n as t};
@@ -1 +1 @@
1
- import{l as e}from"./preload-helper-BC9Zf9qO.js";var t={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};t.node;var n=e(t);export{n as t};
1
+ import{l as e}from"./preload-helper-DvgLbiBV.js";var t={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};t.node;var n=e(t);export{n as t};
@@ -1,4 +1,4 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{dt as t}from"./session-events-CvFfHkFA.js";function n(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function r(e){if(Array.isArray(e))return e}function i(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function o(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{dt as t}from"./session-events-BuMTbIwu.js";function n(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function r(e){if(Array.isArray(e))return e}function i(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function o(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?s(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t){if(e==null)return{};var n,r,i=u(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function d(e,t){return r(e)||a(e,t)||m(e,t)||o()}function f(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function p(e){var t=f(e,`string`);return typeof t==`symbol`?t:t+``}function m(e,t){if(e){if(typeof e==`string`)return n(e,t);var r={}.toString.call(e).slice(8,-1);return r===`Object`&&e.constructor&&(r=e.constructor.name),r===`Map`||r===`Set`?Array.from(e):r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?g(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(){var e=[...arguments];return function(t){return e.reduceRight(function(e,t){return t(e)},t)}}function y(e){return function t(){var n=this,r=[...arguments];return r.length>=e.length?e.apply(this,r):function(){var e=[...arguments];return t.apply(n,[].concat(r,e))}}}function b(e){return{}.toString.call(e).includes(`Object`)}function x(e){return!Object.keys(e).length}function S(e){return typeof e==`function`}function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function w(e,t){return b(t)||k(`changeType`),Object.keys(t).some(function(t){return!C(e,t)})&&k(`changeField`),t}function T(e){S(e)||k(`selectorType`)}function E(e){S(e)||b(e)||k(`handlerType`),b(e)&&Object.values(e).some(function(e){return!S(e)})&&k(`handlersType`)}function D(e){e||k(`initialIsRequired`),b(e)||k(`initialType`),x(e)&&k(`initialContent`)}function O(e,t){throw Error(e[t]||e.default)}var k=y(O)({initialIsRequired:`initial state is required`,initialType:`initial state should be an object`,initialContent:`initial state shouldn't be an empty object`,handlerType:`handler should be an object or a function`,handlersType:`all handlers should be a functions`,selectorType:`selector should be a function`,changeType:`provided value of changes should be an object`,changeField:`it seams you want to change a field in the state which is not specified in the "initial" state`,default:"an unknown error accured in `state-local` package"}),A={changes:w,selector:T,handler:E,initial:D};function j(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};A.initial(e),A.handler(t);var n={current:e},r=y(P)(n,t),i=y(N)(n),a=y(A.changes)(e),o=y(M)(n);function s(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(e){return e};return A.selector(e),e(n.current)}function c(e){v(r,i,a,o)(e)}return[s,c]}function M(e,t){return S(t)?t(e.current):t}function N(e,t){return e.current=_(_({},e.current),t),t}function P(e,t,n){return S(t)?t(e.current):Object.keys(n).forEach(function(n){return t[n]?.call(t,e.current[n])}),n}var F={create:j},ee={paths:{vs:`https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs`}};function te(e){return function t(){var n=this,r=[...arguments];return r.length>=e.length?e.apply(this,r):function(){var e=[...arguments];return t.apply(n,[].concat(r,e))}}}function ne(e){return{}.toString.call(e).includes(`Object`)}function re(e){return e||L(`configIsRequired`),ne(e)||L(`configType`),e.urls?(ie(),{paths:{vs:e.urls.monacoBase}}):e}function ie(){console.warn(I.deprecation)}function ae(e,t){throw Error(e[t]||e.default)}var I={configIsRequired:`the configuration object is required`,configType:`the configuration object should be an object`,default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
3
3
  You are using deprecated way of configuration.
4
4
 
@@ -1 +1 @@
1
- import{l as e}from"./preload-helper-BC9Zf9qO.js";var t={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};t.node;var n=e(t);export{n as t};
1
+ import{l as e}from"./preload-helper-DvgLbiBV.js";var t={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};t.node;var n=e(t);export{n as t};
@@ -1 +1 @@
1
- import{l as e}from"./preload-helper-BC9Zf9qO.js";var t={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};t.node;var n=e(t),r={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};r.node;var i=e(r);export{n,i as t};
1
+ import{l as e}from"./preload-helper-DvgLbiBV.js";var t={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};t.node;var n=e(t),r={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};r.node;var i=e(r);export{n,i as t};