@hanzo/dev 4.1.0 → 4.2.1

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 (122) hide show
  1. package/dist/{BinaryViewer-CmFUK4zZ.js → BinaryViewer-BCDMNW2g.js} +19 -19
  2. package/dist/{ChatMarkdown-nvEI7iCv.js → ChatMarkdown-BUidXqSs.js} +2460 -2460
  3. package/dist/{DevicePanel-v5e3sEIf.js → DevicePanel-D-pksK3r.js} +532 -532
  4. package/dist/{DeviceStreamView-CCIfmbxH.js → DeviceStreamView-DsCoOzDV.js} +377 -377
  5. package/dist/{DiffCommentAnnotation-BPTN_2a6.js → DiffCommentAnnotation-2HD5qiyt.js} +227 -227
  6. package/dist/{DiffFileTree-B_br90vY.js → DiffFileTree-CuWvI5hS.js} +13 -13
  7. package/dist/{DiffPanel-V5R5TPuK.js → DiffPanel-Z2QVmBzu.js} +328 -328
  8. package/dist/{DiffWorkerPoolProvider-BwFR-Fc9.js → DiffWorkerPoolProvider-CEfiCIGR.js} +3 -3
  9. package/dist/{DocumentPages-VSn83vty.js → DocumentPages-glImt2JO.js} +3 -3
  10. package/dist/{ExpandedImageDialog-CAorLacL.js → ExpandedImageDialog-iqO3LiIj.js} +404 -404
  11. package/dist/{FileExplorerPane-CeHulcPz.js → FileExplorerPane-GwnRmXEh.js} +4 -4
  12. package/dist/{FilePreviewPanel-BVNLvWOc.js → FilePreviewPanel-CXWpTlfI.js} +1089 -1089
  13. package/dist/{FontFilePreview-Dj8Blcay.js → FontFilePreview-CDydHOXg.js} +2 -2
  14. package/dist/{FontViewer-CLDdwhSr.js → FontViewer-DDt9C5Cb.js} +5 -5
  15. package/dist/{HanzoConnectAccountPages-BEzYfu2l.js → HanzoConnectAccountPages-_sfrtw9j.js} +357 -357
  16. package/dist/{HanzoConnectSidebarSignIn-BhD6-Up5.js → HanzoConnectSidebarSignIn-coFQvyRw.js} +3 -3
  17. package/dist/{Icons-CvSmt8vD.js → Icons-CdegMw5l.js} +1 -1
  18. package/dist/{LargeTextViewer-DfFnYGCw.js → LargeTextViewer-D3RklYQB.js} +8 -8
  19. package/dist/{MermaidDiagram-CTolIzQD.js → MermaidDiagram-sVLnox7j.js} +8 -8
  20. package/dist/{MermaidFilePreview-CP2zP4FU.js → MermaidFilePreview-BmPdNxW5.js} +2 -2
  21. package/dist/{MermaidViewer-BDfYkS9E.js → MermaidViewer-BlKTevTF.js} +3 -3
  22. package/dist/{NotebookPreview-Cybs5uM0.js → NotebookPreview-C0gSEyeO.js} +10 -10
  23. package/dist/{OfficeFilePreview-7JsmSoKU.js → OfficeFilePreview-Ago_DWEt.js} +2 -2
  24. package/dist/{OfficeViewer-CJoojlJK.js → OfficeViewer-DBRqtLet.js} +10 -10
  25. package/dist/{OpenInPicker-BIMWUxBP.js → OpenInPicker-DD_h7VLv.js} +287 -287
  26. package/dist/{OpenXmlOfficeViewer-C24Kj8DM.js → OpenXmlOfficeViewer-B4dxjpba.js} +4 -4
  27. package/dist/{PdfViewer-Cf1iD759.js → PdfViewer-BanXvPmz.js} +16 -16
  28. package/dist/{PreviewFaviconIcon-zFOuzIxe.js → PreviewFaviconIcon-BwYKB-3e.js} +892 -892
  29. package/dist/{PreviewImage-oY5YnuTr.js → PreviewImage-6UU-M6_B.js} +3 -3
  30. package/dist/{PreviewImageContent-n6eLzY99.js → PreviewImageContent-D-00K-A9.js} +3 -3
  31. package/dist/{PreviewPanel-Bo4Lt02m.js → PreviewPanel-CiuHdDv8.js} +489 -489
  32. package/dist/{PreviewPanelShell-DhXLeN5j.js → PreviewPanelShell-Dezxjg0T.js} +71 -71
  33. package/dist/{ProjectIconPickerDialog-D0kFzt8f.js → ProjectIconPickerDialog-LomrzROv.js} +29 -29
  34. package/dist/{ProjectMonogram-D35xrrXQ.js → ProjectMonogram-D21--FQY.js} +1 -1
  35. package/dist/{ProviderAuthTerminal-DfsXnu7A.js → ProviderAuthTerminal-pQXIfodT.js} +3 -3
  36. package/dist/{PullRequestCodeTab-Dv_0kVad.js → PullRequestCodeTab-Cqfh5eN2.js} +476 -476
  37. package/dist/{PullRequestReviewAnnotation-LeuwO-iH.js → PullRequestReviewAnnotation-B4Lp8Ktf.js} +334 -334
  38. package/dist/{ReadOnlySourcePreview-D__IA5g1.js → ReadOnlySourcePreview-7xXUUySV.js} +5 -5
  39. package/dist/{RelativeTime-BMRprQS8.js → RelativeTime-B_yprjav.js} +2 -2
  40. package/dist/{RightPanelResizeHandle-BLbSz-gk.js → RightPanelResizeHandle-PumvYb9P.js} +2 -2
  41. package/dist/{ThemeEditorPanel-CUDdsRsE.js → ThemeEditorPanel-BmXXpaCI.js} +196 -196
  42. package/dist/{ThreadTerminalDrawer-BF3Ix0q_.js → ThreadTerminalDrawer-DCgE3ojz.js} +461 -461
  43. package/dist/{VirtualTablePreview-dajviAfu.js → VirtualTablePreview-mA6DOFwb.js} +1 -1
  44. package/dist/{anchoredCopyToast-DnUtg1n_.js → anchoredCopyToast-BVa_dlBU.js} +2 -2
  45. package/dist/{assetUrls-DkY7vXfM.js → assetUrls-D8lRk7Xd.js} +45 -45
  46. package/dist/{browserLinkTarget-CA46wnQC.js → browserLinkTarget-BbVlDQYx.js} +18 -18
  47. package/dist/builder/api/git.d.ts +32 -4
  48. package/dist/builder/api/git.js +74 -4
  49. package/dist/builder/api/github.d.ts +54 -0
  50. package/dist/builder/api/github.js +103 -1
  51. package/dist/builder/api/models.d.ts +2 -0
  52. package/dist/builder/api/models.js +6 -1
  53. package/dist/builder/api/sandbox.d.ts +2 -0
  54. package/dist/builder/api/sandbox.js +3 -1
  55. package/dist/builder/desk.d.ts +6 -0
  56. package/dist/builder/desk.js +79 -14
  57. package/dist/builder/forge.js +79 -10
  58. package/dist/builder/github-sync.d.ts +70 -0
  59. package/dist/builder/github-sync.js +435 -0
  60. package/dist/builder/mind.d.ts +5 -5
  61. package/dist/builder/mind.js +35 -14
  62. package/dist/builder/pane.d.ts +1 -1
  63. package/dist/builder/pane.js +1 -1
  64. package/dist/builder/panel.js +5 -5
  65. package/dist/builder/preview-fallback.d.ts +47 -0
  66. package/dist/builder/preview-fallback.js +341 -0
  67. package/dist/builder/project.js +17 -4
  68. package/dist/builder/sync.js +27 -4
  69. package/dist/{changedFileKind-D6QYvIez.js → changedFileKind-DrjqPCpz.js} +5 -5
  70. package/dist/{collapsible-DFT41MdC.js → collapsible-CDT6JKbk.js} +1 -1
  71. package/dist/{color-picker-CshqBbpY.js → color-picker-kSVcH92L.js} +16 -16
  72. package/dist/core.js +1 -1
  73. package/dist/{decodeImagePreview-DnfFEjhw.js → decodeImagePreview-ZtWU3urU.js} +2 -2
  74. package/dist/{delimitedPreview-BiEpdYOj.js → delimitedPreview-DbbXcqOT.js} +1 -1
  75. package/dist/{dialog-DhQtWGRa.js → dialog-EmpqFZiK.js} +40 -40
  76. package/dist/{embed-c030vUqM.js → embed-CPWZKyIW.js} +36098 -35677
  77. package/dist/{empty-Bm5EzcG8.js → empty-ChM6gdzn.js} +1 -1
  78. package/dist/{errors-DrFQSJW3.js → errors-D8_Zn8KN.js} +2 -2
  79. package/dist/{fileContextMenu-BBo91omq.js → fileContextMenu-DW94DZj4.js} +54 -54
  80. package/dist/{fileExplorerLabel-AikEChiS.js → fileExplorerLabel-Cfz-3q1U.js} +507 -507
  81. package/dist/{fileSurfaceChrome-Cqkvn8RQ.js → fileSurfaceChrome-BDyKklTq.js} +26 -26
  82. package/dist/{hanzoWebAnalytics-CCxpTzcI.js → hanzoWebAnalytics-B1eETW-7.js} +1 -1
  83. package/dist/index.css +1 -1
  84. package/dist/{input-group-DEJEuwc9.js → input-group-BZ_QN-y7.js} +1 -1
  85. package/dist/{keybindings-C5tK_GAk.js → keybindings-D0pBlT1k.js} +7812 -7806
  86. package/dist/keymap.js +1 -1
  87. package/dist/{lucideIconByName-DUaXKH0V.js → lucideIconByName-CXY44V8P.js} +6835 -6848
  88. package/dist/{mediaReference-Bt_mh-ag.js → mediaReference-3wc4ZfY8.js} +95 -95
  89. package/dist/mediaSource-jW5c7b4r.js +70 -0
  90. package/dist/{modelPickerVisibility-Jue3CLfc.js → modelPickerVisibility-DBTc5r1G.js} +1 -1
  91. package/dist/{network-BbwqRm8c.js → network-wuXD7-is.js} +1 -1
  92. package/dist/{popover-anNQdce7.js → popover-BAyP2Tdr.js} +1 -1
  93. package/dist/{presentation-D9mVPBHm.js → presentation-68y8EAuH.js} +299 -299
  94. package/dist/{previewFailureMessages-BKpsSGX5.js → previewFailureMessages-CFguipaK.js} +3 -3
  95. package/dist/query-BPk2W3QN.js +63 -0
  96. package/dist/{readBinaryPreview-BAQ4fFjm.js → readBinaryPreview-CjZdBNVR.js} +2 -2
  97. package/dist/{refresh-icon-BYx64to1.js → refresh-icon-Vo5ImiQL.js} +1 -1
  98. package/dist/{scroll-area-ChvX8uOh.js → scroll-area-CEoyjC7h.js} +1 -1
  99. package/dist/{select-DumYjny_.js → select-DLFnkZsI.js} +2 -2
  100. package/dist/{session-_kmiSv2A.js → session-Decc4Fo5.js} +1063 -1063
  101. package/dist/{skeleton-CJqwfMSF.js → skeleton-BOKpAZv6.js} +1 -1
  102. package/dist/{switch-COwevwaq.js → switch-DjpPjtQN.js} +2 -2
  103. package/dist/{themePalette-Dl_7omVL.js → themePalette-C-GtwwqV.js} +977 -977
  104. package/dist/{threadSearch-BHyWwcV3.js → threadSearch-CrtCof6n.js} +162 -162
  105. package/dist/{toggle-CEO6qTxB.js → toggle-B4F0EEtI.js} +1 -1
  106. package/dist/{toggle-group-BHovdMDl.js → toggle-group-l8hRPswr.js} +2 -2
  107. package/dist/{use-atom-command-ByoYq_K6.js → use-atom-command-XemtT1Gv.js} +1 -1
  108. package/dist/{useAriaLabelledBy-DPSISlnL.js → useAriaLabelledBy-CibvSz-b.js} +1 -1
  109. package/dist/{useFileMetadata-e7zsixVX.js → useFileMetadata-PesehDX0.js} +33 -33
  110. package/dist/{useFloatingRootContext-CJ9stHca.js → useFloatingRootContext-ppoGvqar.js} +1 -1
  111. package/dist/{useLiveRefresh-BkKJKXhH.js → useLiveRefresh-aHkPuz6N.js} +172 -172
  112. package/dist/{useNextRenderData-CyUmSAgz.js → useNextRenderData-CNhjWfP0.js} +1 -1
  113. package/dist/{useSettings-DYG9Dmro.js → useSettings-B_MtcTyD.js} +139 -139
  114. package/dist/{useTextFieldSpeech-COa9XcRx.js → useTextFieldSpeech-B1wCgLPO.js} +1404 -1404
  115. package/dist/{useTheme-D2ZM1gvV.js → useTheme-WlXpQRKG.js} +4 -4
  116. package/dist/{utils-515nQ17G.js → utils-DtKQl-D3.js} +6184 -6172
  117. package/dist/{wizard-i86ViMRc.js → wizard-DjD4UNew.js} +3 -3
  118. package/dist/{workspaceFocus-BV1_9KiH.js → workspaceFocus-MR1plm6A.js} +144 -144
  119. package/dist/{zap-e0OsRjBR.js → zap-iwsUKtvA.js} +30 -17
  120. package/package.json +1 -1
  121. package/dist/mediaSource-zI7JWid4.js +0 -70
  122. package/dist/query-BxrrBAp6.js +0 -63
@@ -1,11 +1,11 @@
1
- import { c as e, i as t } from "./session-_kmiSv2A.js";
1
+ import { c as e, i as t } from "./session-Decc4Fo5.js";
2
2
  import { c as n, n as r } from "./messages-yqmY7G5x.js";
3
- import { Cg as i, Fr as a, Gh as o, Gr as s, Hh as c, Hr as l, Mr as u, Or as d, Pr as f, Qc as p, S_ as m, Ur as h, Vr as g, Wr as _, Zh as v, _g as y, ar as b, b_ as x, bg as S, ci as C, di as w, gg as T, gr as E, hr as D, nc as O, pi as k, r as A, sg as j, t as M, tl as ee, wf as te, x_ as ne, xs as N, y_ as P, yr as F } from "./utils-515nQ17G.js";
4
- import { Cr as re, G as I, Jd as ie, Jt as L, K as ae, N as oe, P as R, Qd as se, Rg as ce, Tr as le, a as ue, b as de, dy as fe, ea as pe, ef as me, nf as he, py as z, q as B, v as V, vu as ge, xo as _e, y as ve } from "./keybindings-C5tK_GAk.js";
5
- import { L as ye, V as be, W as xe, _ as H, bt as Se, m as U, mt as Ce, v as we } from "./themePalette-Dl_7omVL.js";
6
- import { f as W, u as Te } from "./network-BbwqRm8c.js";
7
- import { c as Ee, i as G, t as K } from "./modelPickerVisibility-Jue3CLfc.js";
8
- import { an as q, ln as De } from "./threadSearch-BHyWwcV3.js";
3
+ import { C_ as i, Fr as a, Gr as o, Hr as s, Kh as c, Mr as l, Or as u, Pr as d, Qc as f, Qh as p, S_ as m, Tf as h, Uh as g, Ur as _, Vr as v, Wr as y, _g as b, ar as x, b_ as S, cg as C, ci as w, di as ee, gr as T, hr as E, nc as D, pi as O, r as k, t as A, tl as j, vg as M, wg as te, x_ as ne, xg as re, xs as N, yr as P } from "./utils-DtKQl-D3.js";
4
+ import { Cr as ie, G as F, Jd as I, Jt as L, K as ae, N as oe, P as R, Qd as se, Rg as ce, Tr as le, a as ue, b as de, dy as fe, ea as pe, ef as me, nf as he, py as z, q as B, v as V, vu as ge, xo as _e, y as ve } from "./keybindings-D0pBlT1k.js";
5
+ import { L as ye, V as be, W as xe, _ as H, bt as Se, m as U, mt as Ce, v as we } from "./themePalette-C-GtwwqV.js";
6
+ import { f as W, u as Te } from "./network-wuXD7-is.js";
7
+ import { c as Ee, i as G, t as K } from "./modelPickerVisibility-DBTc5r1G.js";
8
+ import { an as q, ln as De } from "./threadSearch-CrtCof6n.js";
9
9
  import { a as Oe, i as ke } from "./search-3oqTSaO6.js";
10
10
  import { n as Ae } from "./chevron-up-B5PN0DAN.js";
11
11
  import { r as je } from "./triangle-alert-CpJvcOXh.js";
@@ -14,25 +14,25 @@ import { i as Ne, n as Pe, o as Fe, r as J, t as Ie } from "./table-2-CTB_FJbA.j
14
14
  import { r as Le } from "./text-align-start-DgfaKVRZ.js";
15
15
  import { t as Re } from "./trash-2-BSTDk3P8.js";
16
16
  import { t as ze } from "./x-Bjr9Dwvl.js";
17
- import { Bt as Y, _ as Be, g as Ve, gt as He, h as Ue, t as We, v as Ge, y as Ke } from "./ChatMarkdown-nvEI7iCv.js";
18
- import "./errors-DrFQSJW3.js";
19
- import { j as qe, p as Je } from "./useSettings-DYG9Dmro.js";
20
- import { S as Ye, T as Xe, b as Ze, s as Qe } from "./presentation-D9mVPBHm.js";
21
- import { t as $e } from "./use-atom-command-ByoYq_K6.js";
22
- import { p as et } from "./useTheme-D2ZM1gvV.js";
23
- import { o as tt, t as nt } from "./assetUrls-DkY7vXfM.js";
24
- import { v as rt } from "./workspaceFocus-BV1_9KiH.js";
25
- import { B as it } from "./fileExplorerLabel-AikEChiS.js";
26
- import { t as at } from "./ExpandedImageDialog-CAorLacL.js";
27
- import { A as ot, D as st, E as ct, F as lt, M as ut, N as dt, O as ft, P as pt, T as mt, b as ht, j as gt, k as _t, o as vt, x as yt, y as bt } from "./browserLinkTarget-CA46wnQC.js";
28
- import { t as xt } from "./scroll-area-ChvX8uOh.js";
29
- import { v as St } from "./useTextFieldSpeech-COa9XcRx.js";
30
- import { D as Ct, E as wt, S as Tt, T as Et, c as Dt, d as Ot, i as kt, l as At, p as jt, s as Mt, w as Nt } from "./Icons-CvSmt8vD.js";
31
- import { at as Pt } from "./DiffCommentAnnotation-BPTN_2a6.js";
32
- import { i as Ft } from "./fileContextMenu-BBo91omq.js";
33
- import { a as It, i as Lt, l as Rt, n as zt, t as Bt } from "./PreviewImage-oY5YnuTr.js";
34
- import { t as Vt } from "./delimitedPreview-BiEpdYOj.js";
35
- import { a as Ht, i as Ut, o as Wt, r as Gt, s as Kt } from "./fileSurfaceChrome-Cqkvn8RQ.js";
17
+ import { Bt as Y, _ as Be, g as Ve, gt as He, h as Ue, t as We, v as Ge, y as Ke } from "./ChatMarkdown-BUidXqSs.js";
18
+ import "./errors-D8_Zn8KN.js";
19
+ import { j as qe, p as Je } from "./useSettings-B_MtcTyD.js";
20
+ import { S as Ye, T as Xe, b as Ze, s as Qe } from "./presentation-68y8EAuH.js";
21
+ import { t as $e } from "./use-atom-command-XemtT1Gv.js";
22
+ import { p as et } from "./useTheme-WlXpQRKG.js";
23
+ import { o as tt, t as nt } from "./assetUrls-D8lRk7Xd.js";
24
+ import { v as rt } from "./workspaceFocus-MR1plm6A.js";
25
+ import { B as it } from "./fileExplorerLabel-Cfz-3q1U.js";
26
+ import { t as at } from "./ExpandedImageDialog-iqO3LiIj.js";
27
+ import { A as ot, D as st, E as ct, F as lt, M as ut, N as dt, O as ft, P as pt, T as mt, b as ht, j as gt, k as _t, o as vt, x as yt, y as bt } from "./browserLinkTarget-BbVlDQYx.js";
28
+ import { t as xt } from "./scroll-area-CEoyjC7h.js";
29
+ import { v as St } from "./useTextFieldSpeech-B1wCgLPO.js";
30
+ import { D as Ct, E as wt, S as Tt, T as Et, c as Dt, d as Ot, i as kt, l as At, p as jt, s as Mt, w as Nt } from "./Icons-CdegMw5l.js";
31
+ import { at as Pt } from "./DiffCommentAnnotation-2HD5qiyt.js";
32
+ import { i as Ft } from "./fileContextMenu-DW94DZj4.js";
33
+ import { a as It, i as Lt, l as Rt, n as zt, t as Bt } from "./PreviewImage-6UU-M6_B.js";
34
+ import { t as Vt } from "./delimitedPreview-DbbXcqOT.js";
35
+ import { a as Ht, i as Ut, o as Wt, r as Gt, s as Kt } from "./fileSurfaceChrome-BDyKklTq.js";
36
36
  import { Suspense as qt, createContext as Jt, lazy as Yt, memo as Xt, use as Zt, useEffect as Qt, useEffectEvent as $t, useId as en, useLayoutEffect as tn, useRef as nn, useState as X, useSyncExternalStore as rn } from "react";
37
37
  import { c as Z } from "react/compiler-runtime";
38
38
  import { Fragment as an, jsx as Q, jsxs as $ } from "react/jsx-runtime";
@@ -67,7 +67,7 @@ function vn(e) {
67
67
  ln = ln.filter((t) => t.source !== e), un.includes(e) && mn();
68
68
  }
69
69
  // src/components/files/projectFilesQueryState.ts
70
- var yn = "", bn = v(y(!1)), xn = v(y(!1)).pipe(j("project-file-query:empty"));
70
+ var yn = "", bn = p(M(!1)), xn = p(M(!1)).pipe(C("project-file-query:empty"));
71
71
  function Sn(e, t, n) {
72
72
  return q.optimisticFile({
73
73
  environmentId: e,
@@ -101,7 +101,7 @@ function En(e, t, n) {
101
101
  }
102
102
  function Dn(e, t, n, r) {
103
103
  let i = Sn(e, t, n);
104
- Cn.has(i) || Cn.set(i, O.mount(i)), O.set(i, {
104
+ Cn.has(i) || Cn.set(i, D.mount(i)), D.set(i, {
105
105
  saved: !1,
106
106
  data: {
107
107
  relativePath: n,
@@ -112,30 +112,30 @@ function Dn(e, t, n, r) {
112
112
  });
113
113
  }
114
114
  function On(e, t, n) {
115
- return O.get(Sn(e, t, n))?.data ?? null;
115
+ return D.get(Sn(e, t, n))?.data ?? null;
116
116
  }
117
117
  function kn(e, t, n) {
118
118
  let r = On(e, t, n);
119
119
  if (r) return r.contents;
120
- let a = O.get(En(e, t, n)), o = fe(i(a));
121
- return o?.exists === !1 ? void 0 : o?.contents;
120
+ let i = D.get(En(e, t, n)), a = fe(te(i));
121
+ return a?.exists === !1 ? void 0 : a?.contents;
122
122
  }
123
123
  function An(e, t, n) {
124
- let r = O.get(Sn(e, t, n));
124
+ let r = D.get(Sn(e, t, n));
125
125
  return r?.saved ? null : r?.data ?? null;
126
126
  }
127
127
  function jn(e, t, n, r) {
128
- let i = Sn(e, t, n), a = O.get(i);
128
+ let i = Sn(e, t, n), a = D.get(i);
129
129
  if (a?.data.contents !== r) return !1;
130
130
  let o = En(e, t, n);
131
- return O.set(i, {
131
+ return D.set(i, {
132
132
  ...a,
133
133
  saved: !0,
134
134
  confirmingQuery: o
135
- }), wn(i), O.refresh(o), !0;
135
+ }), wn(i), D.refresh(o), !0;
136
136
  }
137
137
  function Mn(e, t, n, r) {
138
- return n === null ? r : O.get(Sn(e, t, n))?.data ?? r;
138
+ return n === null ? r : D.get(Sn(e, t, n))?.data ?? r;
139
139
  }
140
140
  function Nn(e) {
141
141
  return e._tag === "Failure" ? ce(e.cause) : null;
@@ -144,22 +144,22 @@ function Pn(e, t) {
144
144
  return e === null ? null : Te(e, t) ?? t(n("Workspace query failed."));
145
145
  }
146
146
  var Fn = he(pe);
147
- function In(e, t, i, a, s) {
148
- let l = Z(23), u = s === void 0 ? r : s, d = tt(e, u), { canReadFiles: f } = d, p, m, h;
149
- l[0] !== f || l[1] !== t || l[2] !== i || l[3] !== e || l[4] !== a ? (p = f ? Tn(e, t, i) : bn, m = o, h = Ft(p, f ? a : void 0), l[0] = f, l[1] = t, l[2] = i, l[3] = e, l[4] = a, l[5] = p, l[6] = m, l[7] = h) : (p = l[5], m = l[6], h = l[7]);
150
- let g = m(h), _ = c(p), v;
151
- l[8] === _ ? v = l[9] : (v = () => _(), l[8] = _, l[9] = v);
152
- let y = v, b;
153
- l[10] === g ? b = l[11] : (b = T(g, Ln), l[10] = g, l[11] = b);
154
- let x;
155
- l[12] !== f || l[13] !== d.error || l[14] !== d.isPending || l[15] !== u || l[16] !== g ? (x = d.isPending ? null : f ? Pn(Nn(g), u) : d.error ?? u(n("This connection cannot read host files.")), l[12] = f, l[13] = d.error, l[14] = d.isPending, l[15] = u, l[16] = g, l[17] = x) : x = l[17];
156
- let S = d.isPending || g.waiting, C;
157
- return l[18] !== y || l[19] !== b || l[20] !== x || l[21] !== S ? (C = {
158
- data: b,
159
- error: x,
160
- isPending: S,
147
+ function In(e, t, i, a, o) {
148
+ let s = Z(23), l = o === void 0 ? r : o, u = tt(e, l), { canReadFiles: d } = u, f, p, m;
149
+ s[0] !== d || s[1] !== t || s[2] !== i || s[3] !== e || s[4] !== a ? (f = d ? Tn(e, t, i) : bn, p = c, m = Ft(f, d ? a : void 0), s[0] = d, s[1] = t, s[2] = i, s[3] = e, s[4] = a, s[5] = f, s[6] = p, s[7] = m) : (f = s[5], p = s[6], m = s[7]);
150
+ let h = p(m), _ = g(f), v;
151
+ s[8] === _ ? v = s[9] : (v = () => _(), s[8] = _, s[9] = v);
152
+ let y = v, x;
153
+ s[10] === h ? x = s[11] : (x = b(h, Ln), s[10] = h, s[11] = x);
154
+ let S;
155
+ s[12] !== d || s[13] !== u.error || s[14] !== u.isPending || s[15] !== l || s[16] !== h ? (S = u.isPending ? null : d ? Pn(Nn(h), l) : u.error ?? l(n("This connection cannot read host files.")), s[12] = d, s[13] = u.error, s[14] = u.isPending, s[15] = l, s[16] = h, s[17] = S) : S = s[17];
156
+ let C = u.isPending || h.waiting, w;
157
+ return s[18] !== y || s[19] !== x || s[20] !== S || s[21] !== C ? (w = {
158
+ data: x,
159
+ error: S,
160
+ isPending: C,
161
161
  refresh: y
162
- }, l[18] = y, l[19] = b, l[20] = x, l[21] = S, l[22] = C) : C = l[22], C;
162
+ }, s[18] = y, s[19] = x, s[20] = S, s[21] = C, s[22] = w) : w = s[22], w;
163
163
  }
164
164
  function Ln() {
165
165
  return null;
@@ -187,30 +187,30 @@ function Rn(e, t, n, i, a, o) {
187
187
  matchedQuery: f.searchedQuery
188
188
  }, s[11] = f.error, s[12] = f.isPending, s[13] = f.searchedQuery, s[14] = p, s[15] = m) : m = s[15], m;
189
189
  }
190
- function zn(e, t, i, a, s) {
191
- let l = Z(37), u = a === void 0 || a, d = s === void 0 ? r : s, f = tt(e, d), { canReadFiles: p } = f, m = u, h;
192
- l[0] !== p || l[1] !== t || l[2] !== u || l[3] !== e || l[4] !== i ? (h = u && p ? En(e, t, i) : xn, l[0] = p, l[1] = t, l[2] = u, l[3] = e, l[4] = i, l[5] = h) : h = l[5];
193
- let g = h, _ = o(g), v = c(g), y;
194
- l[6] === v ? y = l[7] : (y = () => v(), l[6] = v, l[7] = y);
195
- let b = y, x;
196
- l[8] === _ ? x = l[9] : (x = T(_, Bn), l[8] = _, l[9] = x);
197
- let S = x, C = S?.exists === !1, w = i ?? yn, E;
198
- l[10] !== t || l[11] !== e || l[12] !== w ? (E = Sn(e, t, w), l[10] = t, l[11] = e, l[12] = w, l[13] = E) : E = l[13];
199
- let D = o(E), O = i === null ? null : D, k, A, j, M, ee;
200
- if (l[14] !== p || l[15] !== f.error || l[16] !== f.isPending || l[17] !== C || l[18] !== m || l[19] !== O || l[20] !== S || l[21] !== i || l[22] !== d || l[23] !== _) {
190
+ function zn(e, t, i, a, o) {
191
+ let s = Z(37), l = a === void 0 || a, u = o === void 0 ? r : o, d = tt(e, u), { canReadFiles: f } = d, p = l, m;
192
+ s[0] !== f || s[1] !== t || s[2] !== l || s[3] !== e || s[4] !== i ? (m = l && f ? En(e, t, i) : xn, s[0] = f, s[1] = t, s[2] = l, s[3] = e, s[4] = i, s[5] = m) : m = s[5];
193
+ let h = m, _ = c(h), v = g(h), y;
194
+ s[6] === v ? y = s[7] : (y = () => v(), s[6] = v, s[7] = y);
195
+ let x = y, S;
196
+ s[8] === _ ? S = s[9] : (S = b(_, Bn), s[8] = _, s[9] = S);
197
+ let C = S, w = C?.exists === !1, ee = i ?? yn, T;
198
+ s[10] !== t || s[11] !== e || s[12] !== ee ? (T = Sn(e, t, ee), s[10] = t, s[11] = e, s[12] = ee, s[13] = T) : T = s[13];
199
+ let E = c(T), D = i === null ? null : E, O, k, A, j, M;
200
+ if (s[14] !== f || s[15] !== d.error || s[16] !== d.isPending || s[17] !== w || s[18] !== p || s[19] !== D || s[20] !== C || s[21] !== i || s[22] !== u || s[23] !== _) {
201
201
  let e = Nn(_);
202
- j = Fn(e) ? e : null, k = p ? O?.data ?? (C ? null : S) : null, A = j?.failure === "path_not_file", M = k, ee = !m || f.isPending ? null : p ? C && !O ? d(n("''{path}'' does not exist.", { path: i })) : Pn(e, d) : f.error ?? d(n("This connection cannot read host files.")), l[14] = p, l[15] = f.error, l[16] = f.isPending, l[17] = C, l[18] = m, l[19] = O, l[20] = S, l[21] = i, l[22] = d, l[23] = _, l[24] = k, l[25] = A, l[26] = j, l[27] = M, l[28] = ee;
203
- } else k = l[24], A = l[25], j = l[26], M = l[27], ee = l[28];
204
- let te = m && (f.isPending || _.waiting), ne = !A && (k !== null || j?.failure === "binary_file"), N;
205
- return l[29] !== A || l[30] !== j || l[31] !== b || l[32] !== ne || l[33] !== M || l[34] !== ee || l[35] !== te ? (N = {
206
- data: M,
207
- error: ee,
202
+ A = Fn(e) ? e : null, O = f ? D?.data ?? (w ? null : C) : null, k = A?.failure === "path_not_file", j = O, M = !p || d.isPending ? null : f ? w && !D ? u(n("''{path}'' does not exist.", { path: i })) : Pn(e, u) : d.error ?? u(n("This connection cannot read host files.")), s[14] = f, s[15] = d.error, s[16] = d.isPending, s[17] = w, s[18] = p, s[19] = D, s[20] = C, s[21] = i, s[22] = u, s[23] = _, s[24] = O, s[25] = k, s[26] = A, s[27] = j, s[28] = M;
203
+ } else O = s[24], k = s[25], A = s[26], j = s[27], M = s[28];
204
+ let te = p && (d.isPending || _.waiting), ne = !k && (O !== null || A?.failure === "binary_file"), re;
205
+ return s[29] !== k || s[30] !== A || s[31] !== x || s[32] !== ne || s[33] !== j || s[34] !== M || s[35] !== te ? (re = {
206
+ data: j,
207
+ error: M,
208
208
  isPending: te,
209
- readError: j,
210
- isNotFile: A,
209
+ readError: A,
210
+ isNotFile: k,
211
211
  isFile: ne,
212
- refresh: b
213
- }, l[29] = A, l[30] = j, l[31] = b, l[32] = ne, l[33] = M, l[34] = ee, l[35] = te, l[36] = N) : N = l[36], N;
212
+ refresh: x
213
+ }, s[29] = k, s[30] = A, s[31] = x, s[32] = ne, s[33] = j, s[34] = M, s[35] = te, s[36] = re) : re = s[36], re;
214
214
  }
215
215
  function Bn() {
216
216
  return null;
@@ -218,7 +218,7 @@ function Bn() {
218
218
  // src/components/chat/threadDetailsPanelStyles.ts
219
219
  var Vn = "bg-transparent shadow-none", Hn = "hover:!bg-black/[0.035] data-pressed:!bg-black/[0.035] dark:hover:!bg-white/[0.08] dark:data-pressed:!bg-white/[0.08]", Un = "hover:bg-black/[0.035] dark:hover:bg-white/[0.08]", Wn = `${Vn} ${Hn}`, Gn = `${Wn} data-popup-open:!bg-black/[0.035] dark:data-popup-open:!bg-white/[0.08]`, Kn = `${Hn} has-[[data-popup-open]]:bg-black/[0.035] dark:has-[[data-popup-open]]:bg-white/[0.08]`, qn = "gap-2.5 px-2.5 text-left", Jn = "[text-box:trim-both_cap_alphabetic] overflow-x-clip overflow-y-visible", Yn = `h-8 min-w-0 rounded-lg border-transparent ${qn} text-[13px] font-medium text-foreground/80`, Xn = `${Yn} w-full justify-start ${Wn}`, Zn = `${Xn} gap-0 px-0 [&_[data-slot=select-icon]]:-me-px [&_[data-slot=select-icon]]:relative [&_[data-slot=select-icon]]:flex [&_[data-slot=select-icon]]:h-full [&_[data-slot=select-icon]]:w-8 [&_[data-slot=select-icon]]:shrink-0 [&_[data-slot=select-icon]]:items-center [&_[data-slot=select-icon]]:justify-center [&_[data-slot=select-icon]]:before:absolute [&_[data-slot=select-icon]]:before:-left-px [&_[data-slot=select-icon]]:before:top-1/2 [&_[data-slot=select-icon]]:before:h-4 [&_[data-slot=select-icon]]:before:w-px [&_[data-slot=select-icon]]:before:-translate-y-1/2 [&_[data-slot=select-icon]]:before:bg-transparent hover:[&_[data-slot=select-icon]]:before:bg-border/65 data-popup-open:[&_[data-slot=select-icon]]:before:bg-border/65 [&_[data-slot=select-icon]>svg]:me-0 [&_[data-slot=select-icon]>svg]:size-4 [&_[data-slot=select-icon]>svg]:text-muted-foreground [&_[data-slot=select-icon]>svg]:opacity-100`, Qn = `flex h-full min-w-0 flex-1 items-center rounded-s-lg ${qn} ${Un}`, $n = `rounded-e-lg ${Un}`, er = `h-8 w-full min-w-0 justify-start rounded-lg border border-transparent ${qn} text-[13px] font-medium text-foreground/80 sm:h-8 sm:text-[13px]`, tr = "size-4 shrink-0 text-muted-foreground", nr = "size-4 shrink-0 text-muted-foreground", rr = `size-6 justify-center rounded-md border-transparent bg-transparent p-0 sm:size-6 ${Wn}`, ir = `h-6 gap-1 rounded-md border-transparent px-1.5 text-xs font-medium text-muted-foreground ${Wn}`, ar = `group/details-split flex w-full items-center rounded-lg ${Kn}`, or = `${Yn} flex-1 justify-start rounded-e-none ${Gn}`, sr = `${Yn} h-auto min-h-8 w-8 self-stretch justify-center rounded-s-none px-0 ${Gn}`, cr = "h-4 w-px shrink-0 bg-transparent group-hover/details-split:bg-border/65 group-has-[[data-popup-open]]/details-split:bg-border/65", lr = {
220
220
  row: Xn,
221
- title: M(Xn, "h-auto min-h-8 items-start pt-1.5 pb-0 disabled:opacity-100 sm:h-auto [&>svg]:mt-px"),
221
+ title: A(Xn, "h-auto min-h-8 items-start pt-1.5 pb-0 disabled:opacity-100 sm:h-auto [&>svg]:mt-px"),
222
222
  select: Zn,
223
223
  primary: or,
224
224
  secondary: sr,
@@ -230,12 +230,12 @@ function ur(e) {
230
230
  if (t[0] !== e) {
231
231
  let { panel: m, part: h, multiline: g, tone: _, className: v, children: y, size: b, variant: x, render: S, ...C } = e;
232
232
  r = v, n = y, s = S, o = C, a = m === void 0 || m;
233
- let T = h === void 0 ? "row" : h;
233
+ let w = h === void 0 ? "row" : h;
234
234
  i = g !== void 0 && g;
235
- let E = _ === void 0 ? "default" : _;
236
- c = b === void 0 ? "default" : b, p = x === void 0 ? "default" : x, f = w, l = "button", u = s;
237
- let D;
238
- t[13] !== n || t[14] !== T ? (D = T === "select" ? /* @__PURE__ */ $(an, { children: [/* @__PURE__ */ Q("span", {
235
+ let T = _ === void 0 ? "default" : _;
236
+ c = b === void 0 ? "default" : b, p = x === void 0 ? "default" : x, f = ee, l = "button", u = s;
237
+ let E;
238
+ t[13] !== n || t[14] !== w ? (E = w === "select" ? /* @__PURE__ */ $(an, { children: [/* @__PURE__ */ Q("span", {
239
239
  "data-slot": "select-label",
240
240
  className: Qn,
241
241
  children: n
@@ -243,10 +243,10 @@ function ur(e) {
243
243
  "data-slot": "select-icon",
244
244
  className: $n,
245
245
  children: /* @__PURE__ */ Q(Ae, { className: nr })
246
- })] }) : n, t[13] = n, t[14] = T, t[15] = D) : D = t[15], d = N({
246
+ })] }) : n, t[13] = n, t[14] = w, t[15] = E) : E = t[15], d = N({
247
247
  type: s ? void 0 : "button",
248
- className: M("relative inline-flex shrink-0 cursor-pointer items-center whitespace-nowrap border outline-none transition-[box-shadow,scale] [&:not([aria-haspopup]):not(:disabled):not([aria-disabled=true])]:will-change-[scale] [&:active:not([aria-haspopup])]:scale-[0.97] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background pointer-coarse:after:absolute pointer-coarse:after:top-1/2 pointer-coarse:after:left-1/2 pointer-coarse:after:size-full pointer-coarse:after:min-h-8 pointer-coarse:after:min-w-8 pointer-coarse:after:-translate-x-1/2 pointer-coarse:after:-translate-y-1/2 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 disabled:pointer-events-none disabled:opacity-64 aria-disabled:cursor-not-allowed aria-disabled:opacity-64 [&_svg]:shrink-0", lr[T], i && "h-auto min-h-8 py-1.5 disabled:opacity-100 sm:h-auto", E === "muted" && "text-muted-foreground hover:text-foreground/80", E === "primary" && "bg-black/[0.035] text-foreground/80 hover:text-foreground hover:!bg-black/[0.06] data-pressed:!bg-black/[0.06] dark:bg-white/[0.08] dark:hover:!bg-white/[0.12] dark:data-pressed:!bg-white/[0.12]", E === "destructive" && "text-destructive hover:text-destructive data-pressed:text-destructive", T === "meta" && (E === "primary" || E === "destructive") && "h-5 focus-visible:ring-1 focus-visible:ring-offset-0", T === "meta" && E === "destructive" && "bg-destructive/10 hover:!bg-destructive/16 data-pressed:!bg-destructive/16 dark:hover:!bg-destructive/16 dark:data-pressed:!bg-destructive/16", r)
249
- }, o, { children: D }), t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o, t[6] = s, t[7] = c, t[8] = l, t[9] = u, t[10] = d, t[11] = f, t[12] = p;
248
+ className: A("relative inline-flex shrink-0 cursor-pointer items-center whitespace-nowrap border outline-none transition-[box-shadow,scale] [&:not([aria-haspopup]):not(:disabled):not([aria-disabled=true])]:will-change-[scale] [&:active:not([aria-haspopup])]:scale-[0.97] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background pointer-coarse:after:absolute pointer-coarse:after:top-1/2 pointer-coarse:after:left-1/2 pointer-coarse:after:size-full pointer-coarse:after:min-h-8 pointer-coarse:after:min-w-8 pointer-coarse:after:-translate-x-1/2 pointer-coarse:after:-translate-y-1/2 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 disabled:pointer-events-none disabled:opacity-64 aria-disabled:cursor-not-allowed aria-disabled:opacity-64 [&_svg]:shrink-0", lr[w], i && "h-auto min-h-8 py-1.5 disabled:opacity-100 sm:h-auto", T === "muted" && "text-muted-foreground hover:text-foreground/80", T === "primary" && "bg-black/[0.035] text-foreground/80 hover:text-foreground hover:!bg-black/[0.06] data-pressed:!bg-black/[0.06] dark:bg-white/[0.08] dark:hover:!bg-white/[0.12] dark:data-pressed:!bg-white/[0.12]", T === "destructive" && "text-destructive hover:text-destructive data-pressed:text-destructive", w === "meta" && (T === "primary" || T === "destructive") && "h-5 focus-visible:ring-1 focus-visible:ring-offset-0", w === "meta" && T === "destructive" && "bg-destructive/10 hover:!bg-destructive/16 data-pressed:!bg-destructive/16 dark:hover:!bg-destructive/16 dark:data-pressed:!bg-destructive/16", r)
249
+ }, o, { children: E }), t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o, t[6] = s, t[7] = c, t[8] = l, t[9] = u, t[10] = d, t[11] = f, t[12] = p;
250
250
  } else n = t[1], r = t[2], i = t[3], a = t[4], o = t[5], s = t[6], c = t[7], l = t[8], u = t[9], d = t[10], f = t[11], p = t[12];
251
251
  let m;
252
252
  t[16] !== l || t[17] !== u || t[18] !== d ? (m = {
@@ -257,7 +257,7 @@ function ur(e) {
257
257
  let h = f(m);
258
258
  if (!a) {
259
259
  let e = i ? "sm-multiline" : c, a;
260
- return t[20] !== n || t[21] !== r || t[22] !== o || t[23] !== s || t[24] !== e || t[25] !== p ? (a = /* @__PURE__ */ Q(C, {
260
+ return t[20] !== n || t[21] !== r || t[22] !== o || t[23] !== s || t[24] !== e || t[25] !== p ? (a = /* @__PURE__ */ Q(w, {
261
261
  ...o,
262
262
  render: s,
263
263
  size: e,
@@ -282,7 +282,7 @@ function hr(e) {
282
282
  return e instanceof Element && e.closest("[role=\"alertdialog\"]") !== null;
283
283
  }
284
284
  function gr(e, t) {
285
- let { commands: n, options: r } = e, i = V(t, r.keybindings?.() ?? O.get(Ce), { context: {
285
+ let { commands: n, options: r } = e, i = V(t, r.keybindings?.() ?? D.get(Ce), { context: {
286
286
  ...mr(t),
287
287
  ...r.context?.()
288
288
  } });
@@ -381,7 +381,7 @@ function Fr(e) {
381
381
  return e.replace(Pr, (e) => e.replace(/[^\r\n]/g, " "));
382
382
  }
383
383
  // src/components/files/BinaryFilePreview.tsx
384
- var Ir = Yt(() => import("./BinaryViewer-CmFUK4zZ.js"));
384
+ var Ir = Yt(() => import("./BinaryViewer-BCDMNW2g.js"));
385
385
  function Lr(e) {
386
386
  let t = Z(3), n;
387
387
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Q(Wt, {}), t[0] = n) : n = t[0];
@@ -434,8 +434,8 @@ var Ur = /* @__PURE__ */ new Set([
434
434
  "thread.previous",
435
435
  "thread.next",
436
436
  ...le,
437
- ...re
438
- ]), Wr = (e) => /\.pdf$/i.test(e.split(/[?#]/, 1)[0] ?? ""), Gr = Yt(() => import("./PdfViewer-Cf1iD759.js"));
437
+ ...ie
438
+ ]), Wr = (e) => /\.pdf$/i.test(e.split(/[?#]/, 1)[0] ?? ""), Gr = Yt(() => import("./PdfViewer-BanXvPmz.js"));
439
439
  function Kr(e) {
440
440
  let t = Z(7), n;
441
441
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {
@@ -556,15 +556,15 @@ function Zr(e) {
556
556
  function Qr(e) {
557
557
  let t = Z(55), n = zr(), r = nn(null), i;
558
558
  t[0] !== e.containScroll || t[1] !== e.src || t[2] !== n ? (i = () => `${e.src.split("#", 1)[0]}${ft(n)}${e.containScroll ? bt : ""}`, t[0] = e.containScroll, t[1] = e.src, t[2] = n, t[3] = i) : i = t[3];
559
- let [a] = X(i), [s, c] = X(!1), [l, u] = X(null), d;
559
+ let [a] = X(i), [o, s] = X(!1), [l, u] = X(null), d;
560
560
  t[4] === n ? d = t[5] : (d = () => {
561
561
  r.current?.contentWindow?.postMessage(_t(n), "*");
562
562
  }, t[4] = n, t[5] = d);
563
563
  let f = d, p;
564
564
  t[6] === n ? p = t[7] : (p = [n], t[6] = n, t[7] = p), Qt(f, p);
565
- let m = o(Ce), h = o(Se.configValueAtom(e.threadRef?.environmentId ?? null))?.keybindings, g, _;
565
+ let m = c(Ce), h = c(Se.configValueAtom(e.threadRef?.environmentId ?? null))?.keybindings, g, _;
566
566
  if (t[8] !== h || t[9] !== m) {
567
- let e = I(navigator.platform), n = (t) => ({
567
+ let e = F(navigator.platform), n = (t) => ({
568
568
  key: t.key,
569
569
  metaKey: t.metaKey || t.modKey && e,
570
570
  ctrlKey: t.ctrlKey || t.modKey && !e,
@@ -590,20 +590,20 @@ function Qr(e) {
590
590
  }, navigator.platform), n = v.filter(t);
591
591
  return n.length > 0 && !g.some(t) && (e.key.length === 1 || e.key === "Dead" || n.some((t) => t.key === B(e.key)));
592
592
  }, t[18] = g, t[19] = v, t[20] = S) : S = t[20];
593
- let C = $t(S), w = Y(e.threadRef), T = St(e.threadRef), E;
594
- t[21] !== w || t[22] !== T || t[23] !== e.threadRef ? (E = (t, n) => {
593
+ let C = $t(S), w = Y(e.threadRef), ee = St(e.threadRef), T;
594
+ t[21] !== w || t[22] !== ee || t[23] !== e.threadRef ? (T = (t, n) => {
595
595
  n.metaKey || n.ctrlKey ? Xe()?.shell.openExternal(t).catch(ni) : e.threadRef !== void 0 && w({
596
596
  ...n,
597
597
  preventDefault: ti,
598
598
  stopPropagation: ei
599
- }, t, void 0, e.threadRef.environmentId) || T(t, { event: n }).catch($r);
600
- }, t[21] = w, t[22] = T, t[23] = e.threadRef, t[24] = E) : E = t[24];
601
- let D = $t(E), { onFullscreenChange: O } = e, k, A;
602
- t[25] !== l || t[26] !== O ? (k = () => {
603
- if (l !== null) return O?.(!0), () => O?.(!1);
604
- }, A = [l, O], t[25] = l, t[26] = O, t[27] = k, t[28] = A) : (k = t[27], A = t[28]), Qt(k, A);
599
+ }, t, void 0, e.threadRef.environmentId) || ee(t, { event: n }).catch($r);
600
+ }, t[21] = w, t[22] = ee, t[23] = e.threadRef, t[24] = T) : T = t[24];
601
+ let E = $t(T), { onFullscreenChange: D } = e, O, k;
602
+ t[25] !== l || t[26] !== D ? (O = () => {
603
+ if (l !== null) return D?.(!0), () => D?.(!1);
604
+ }, k = [l, D], t[25] = l, t[26] = D, t[27] = O, t[28] = k) : (O = t[27], k = t[28]), Qt(O, k);
605
605
  let j;
606
- t[29] !== C || t[30] !== D || t[31] !== e ? (j = (t, n) => {
606
+ t[29] !== C || t[30] !== E || t[31] !== e ? (j = (t, n) => {
607
607
  let r = ut(n.data);
608
608
  if (r !== void 0) {
609
609
  e.onContentHeight?.(r);
@@ -612,7 +612,7 @@ function Qr(e) {
612
612
  if (document.activeElement !== t || navigator.userActivation?.isActive === !1) return;
613
613
  let i = lt(n.data);
614
614
  if (i !== void 0) {
615
- D(i.url, i), t.contentWindow?.postMessage(mt(i.id), "*");
615
+ E(i.url, i), t.contentWindow?.postMessage(mt(i.id), "*");
616
616
  return;
617
617
  }
618
618
  let a = pt(n.data);
@@ -629,45 +629,45 @@ function Qr(e) {
629
629
  images: [...o.images],
630
630
  index: o.index
631
631
  });
632
- }, t[29] = C, t[30] = D, t[31] = e, t[32] = j) : j = t[32];
633
- let ee = $t(j), te;
634
- t[33] === ee ? te = t[34] : (te = () => {
632
+ }, t[29] = C, t[30] = E, t[31] = e, t[32] = j) : j = t[32];
633
+ let M = $t(j), te;
634
+ t[33] === M ? te = t[34] : (te = () => {
635
635
  let e = r.current;
636
636
  if (e === null) return;
637
637
  let t = (t) => {
638
- t.source === e.contentWindow && ee(e, t);
638
+ t.source === e.contentWindow && M(e, t);
639
639
  };
640
640
  return window.addEventListener("message", t), () => window.removeEventListener("message", t);
641
- }, t[33] = ee, t[34] = te);
641
+ }, t[33] = M, t[34] = te);
642
642
  let ne;
643
643
  t[35] === Symbol.for("react.memo_cache_sentinel") ? (ne = [], t[35] = ne) : ne = t[35], tn(te, ne);
644
- let N = e.title, P;
645
- t[36] !== b || t[37] !== f ? (P = () => {
646
- c(!0), f(), b();
647
- }, t[36] = b, t[37] = f, t[38] = P) : P = t[38];
648
- let F;
649
- t[39] === e.className ? F = t[40] : (F = M("border-0 scheme-light", e.className), t[39] = e.className, t[40] = F);
650
- let re;
651
- t[41] !== s || t[42] !== n ? (re = s ? { colorScheme: n.appearance } : void 0, t[41] = s, t[42] = n, t[43] = re) : re = t[43];
644
+ let re = e.title, N;
645
+ t[36] !== b || t[37] !== f ? (N = () => {
646
+ s(!0), f(), b();
647
+ }, t[36] = b, t[37] = f, t[38] = N) : N = t[38];
648
+ let P;
649
+ t[39] === e.className ? P = t[40] : (P = A("border-0 scheme-light", e.className), t[39] = e.className, t[40] = P);
652
650
  let ie;
653
- t[44] !== e.title || t[45] !== a || t[46] !== P || t[47] !== F || t[48] !== re ? (ie = /* @__PURE__ */ Q("iframe", {
651
+ t[41] !== o || t[42] !== n ? (ie = o ? { colorScheme: n.appearance } : void 0, t[41] = o, t[42] = n, t[43] = ie) : ie = t[43];
652
+ let I;
653
+ t[44] !== e.title || t[45] !== a || t[46] !== N || t[47] !== P || t[48] !== ie ? (I = /* @__PURE__ */ Q("iframe", {
654
654
  ref: r,
655
655
  src: a,
656
- title: N,
656
+ title: re,
657
657
  sandbox: "allow-scripts allow-forms",
658
658
  allow: "fullscreen",
659
659
  loading: "lazy",
660
- onLoad: P,
661
- className: F,
662
- style: re
663
- }), t[44] = e.title, t[45] = a, t[46] = P, t[47] = F, t[48] = re, t[49] = ie) : ie = t[49];
660
+ onLoad: N,
661
+ className: P,
662
+ style: ie
663
+ }), t[44] = e.title, t[45] = a, t[46] = N, t[47] = P, t[48] = ie, t[49] = I) : I = t[49];
664
664
  let L;
665
665
  t[50] === l ? L = t[51] : (L = l === null ? null : /* @__PURE__ */ Q(at, {
666
666
  preview: l,
667
667
  onClose: () => u(null)
668
668
  }), t[50] = l, t[51] = L);
669
669
  let oe;
670
- return t[52] !== ie || t[53] !== L ? (oe = /* @__PURE__ */ $(an, { children: [ie, L] }), t[52] = ie, t[53] = L, t[54] = oe) : oe = t[54], oe;
670
+ return t[52] !== I || t[53] !== L ? (oe = /* @__PURE__ */ $(an, { children: [I, L] }), t[52] = I, t[53] = L, t[54] = oe) : oe = t[54], oe;
671
671
  }
672
672
  function $r(e) {
673
673
  return console.error(e);
@@ -681,7 +681,7 @@ function ri(e) {
681
681
  return !Ur.has(e.command);
682
682
  }
683
683
  // src/components/files/DelimitedTablePreview.tsx
684
- var ii = Yt(() => import("./LargeTextViewer-DfFnYGCw.js"));
684
+ var ii = Yt(() => import("./LargeTextViewer-D3RklYQB.js"));
685
685
  function ai(e) {
686
686
  let t = Z(3), n;
687
687
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Q(Wt, {}), t[0] = n) : n = t[0];
@@ -692,7 +692,7 @@ function ai(e) {
692
692
  }), t[1] = e, t[2] = r), r;
693
693
  }
694
694
  // src/components/files/AttachmentFilePreview.tsx
695
- var oi = Yt(() => import("./LargeTextViewer-DfFnYGCw.js")), si = Yt(() => import("./OfficeFilePreview-7JsmSoKU.js").then((e) => ({ default: e.OfficeFilePreview }))), ci = Yt(() => import("./FontFilePreview-Dj8Blcay.js").then((e) => ({ default: e.FontFilePreview }))), li = Yt(() => import("./MermaidFilePreview-CP2zP4FU.js").then((e) => ({ default: e.MermaidFilePreview }))), ui = Yt(() => import("./ReadOnlySourcePreview-D__IA5g1.js").then((e) => e.n)), di = 3e5, fi = /* @__PURE__ */ new WeakMap(), pi = 0;
695
+ var oi = Yt(() => import("./LargeTextViewer-D3RklYQB.js")), si = Yt(() => import("./OfficeFilePreview-Ago_DWEt.js").then((e) => ({ default: e.OfficeFilePreview }))), ci = Yt(() => import("./FontFilePreview-CDydHOXg.js").then((e) => ({ default: e.FontFilePreview }))), li = Yt(() => import("./MermaidFilePreview-BmPdNxW5.js").then((e) => ({ default: e.MermaidFilePreview }))), ui = Yt(() => import("./ReadOnlySourcePreview-7xXUUySV.js").then((e) => e.n)), di = 3e5, fi = /* @__PURE__ */ new WeakMap(), pi = 0;
696
696
  function mi(e) {
697
697
  let t = fi.get(e) ?? `blob:${pi++}`;
698
698
  return fi.set(e, t), t;
@@ -710,34 +710,34 @@ function gi(e, t, r) {
710
710
  return r(n(e === "mermaid" ? t ? "Show Mermaid source" : "Show rendered diagram" : e === "markdown" ? t ? "Show markdown source" : "Show rendered markdown" : e === "table" ? t ? "Show source" : "Show table" : t ? "Show HTML source" : "Show rendered page"));
711
711
  }
712
712
  function _i(e) {
713
- let t = Z(118), i;
714
- t[0] === e ? i = t[1] : (i = It(e), t[0] = e, t[1] = i);
715
- let a = i, o;
716
- t[2] === e ? o = t[3] : (o = Rt(e), t[2] = e, t[3] = o);
717
- let s = o, c;
718
- t[4] === e ? c = t[5] : (c = Vt(e), t[4] = e, t[5] = c);
719
- let l = c, u = a === "mermaid" ? "mermaid" : a === "markdown" ? "markdown" : a === "html" ? "html" : l ? "table" : null, d = e.asset && "attachmentId" in e.asset ? e.asset.attachmentId : void 0, f = m(), h = ne(), g;
720
- t[6] === e.name ? g = t[7] : (g = Ze(e.name), t[6] = e.name, t[7] = g);
721
- let _;
722
- t[8] === g ? _ = t[9] : (_ = { target: g }, t[8] = g, t[9] = _);
723
- let { copyToClipboard: v, isCopied: y } = Ye(_), b;
724
- t[10] !== d || t[11] !== e.asset || t[12] !== e.mimeType || t[13] !== e.name ? (b = e.asset && "resource" in e.asset ? e.asset.resource : d ? {
713
+ let t = Z(118), a;
714
+ t[0] === e ? a = t[1] : (a = It(e), t[0] = e, t[1] = a);
715
+ let o = a, s;
716
+ t[2] === e ? s = t[3] : (s = Rt(e), t[2] = e, t[3] = s);
717
+ let c = s, l;
718
+ t[4] === e ? l = t[5] : (l = Vt(e), t[4] = e, t[5] = l);
719
+ let u = l, d = o === "mermaid" ? "mermaid" : o === "markdown" ? "markdown" : o === "html" ? "html" : u ? "table" : null, p = e.asset && "attachmentId" in e.asset ? e.asset.attachmentId : void 0, g = i(), _ = m(), v;
720
+ t[6] === e.name ? v = t[7] : (v = Ze(e.name), t[6] = e.name, t[7] = v);
721
+ let y;
722
+ t[8] === v ? y = t[9] : (y = { target: v }, t[8] = v, t[9] = y);
723
+ let { copyToClipboard: b, isCopied: x } = Ye(y), C;
724
+ t[10] !== p || t[11] !== e.asset || t[12] !== e.mimeType || t[13] !== e.name ? (C = e.asset && "resource" in e.asset ? e.asset.resource : p ? {
725
725
  _tag: "attachment",
726
- attachmentId: d,
726
+ attachmentId: p,
727
727
  fileName: e.name,
728
728
  mimeType: e.mimeType,
729
729
  disposition: "inline"
730
- } : null, t[10] = d, t[11] = e.asset, t[12] = e.mimeType, t[13] = e.name, t[14] = b) : b = t[14];
731
- let C = b, w;
732
- t[15] === C ? w = t[16] : (w = C ? C._tag === "draft-workspace-file" ? C : {
733
- ...C,
730
+ } : null, t[10] = p, t[11] = e.asset, t[12] = e.mimeType, t[13] = e.name, t[14] = C) : C = t[14];
731
+ let w = C, ee;
732
+ t[15] === w ? ee = t[16] : (ee = w ? w._tag === "draft-workspace-file" ? w : {
733
+ ...w,
734
734
  disposition: "attachment"
735
- } : null, t[15] = C, t[16] = w);
736
- let T = w, E = nt(e.file ? null : e.asset?.environmentId ?? null, e.file ? null : C), D = nt(e.asset?.environmentId ?? null, T), [O, k] = X(!1), [A, j] = X(null), [ee, N] = X(null), [F, re] = X(!0), [I, ie] = X(0), [L, ae] = X(null), [oe, R] = X(null), [se, le] = X(null), ue = nn(null), de = nn(0), fe, pe;
735
+ } : null, t[15] = w, t[16] = ee);
736
+ let T = ee, E = nt(e.file ? null : e.asset?.environmentId ?? null, e.file ? null : w), D = nt(e.asset?.environmentId ?? null, T), [O, k] = X(!1), [j, M] = X(null), [te, N] = X(null), [P, ie] = X(!0), [F, I] = X(0), [L, ae] = X(null), [oe, R] = X(null), [se, le] = X(null), ue = nn(null), de = nn(0), fe, pe;
737
737
  t[17] === e.file ? (fe = t[18], pe = t[19]) : (fe = () => {
738
738
  if (!e.file) return;
739
739
  let t = URL.createObjectURL(e.file);
740
- return j(t), () => URL.revokeObjectURL(t);
740
+ return M(t), () => URL.revokeObjectURL(t);
741
741
  }, pe = [e.file], t[17] = e.file, t[18] = fe, t[19] = pe), Qt(fe, pe);
742
742
  let me;
743
743
  t[20] !== e.file || t[21] !== E ? (me = () => {
@@ -755,13 +755,13 @@ function _i(e) {
755
755
  };
756
756
  }, t[20] = e.file, t[21] = E, t[22] = me) : me = t[22];
757
757
  let he;
758
- t[23] !== e.file || t[24] !== E || t[25] !== I ? (he = [
758
+ t[23] !== e.file || t[24] !== E || t[25] !== F ? (he = [
759
759
  e.file,
760
760
  E,
761
- I
762
- ], t[23] = e.file, t[24] = E, t[25] = I, t[26] = he) : he = t[26], Qt(me, he);
763
- let z = e.file ? A : ee, B = a === "text" && (e.sizeBytes > 1048576 || e.sizeBytes === 0 && (!C || C._tag === "attachment")), V = a === "text" || a === "markdown" || a === "mermaid" || a === "html" && !F, ge, _e;
764
- t[27] !== V || t[28] !== e.file || t[29] !== e.sizeBytes || t[30] !== E || t[31] !== I || t[32] !== B || t[33] !== z ? (ge = () => {
761
+ F
762
+ ], t[23] = e.file, t[24] = E, t[25] = F, t[26] = he) : he = t[26], Qt(me, he);
763
+ let z = e.file ? j : te, B = o === "text" && (e.sizeBytes > 1048576 || e.sizeBytes === 0 && (!w || w._tag === "attachment")), V = o === "text" || o === "markdown" || o === "mermaid" || o === "html" && !P, ge, _e;
764
+ t[27] !== V || t[28] !== e.file || t[29] !== e.sizeBytes || t[30] !== E || t[31] !== F || t[32] !== B || t[33] !== z ? (ge = () => {
765
765
  if (!V || B || !z) return;
766
766
  let t = new AbortController();
767
767
  ae(null), le(null);
@@ -782,7 +782,7 @@ function _i(e) {
782
782
  } : await fetch(z, {
783
783
  signal: t.signal,
784
784
  ...e.sizeBytes > 0 ? { headers: { Range: `bytes=0-${zt}` } } : {},
785
- cache: I === 0 ? "default" : "reload"
785
+ cache: F === 0 ? "default" : "reload"
786
786
  }), t.signal);
787
787
  t.signal.aborted || ae(a);
788
788
  })().catch((e) => {
@@ -792,20 +792,20 @@ function _i(e) {
792
792
  z,
793
793
  V,
794
794
  B,
795
- I,
795
+ F,
796
796
  e.sizeBytes,
797
797
  e.file,
798
798
  E
799
- ], t[27] = V, t[28] = e.file, t[29] = e.sizeBytes, t[30] = E, t[31] = I, t[32] = B, t[33] = z, t[34] = ge, t[35] = _e) : (ge = t[34], _e = t[35]), Qt(ge, _e);
800
- let ve = oe ?? (V ? se : null), ye = Je(Si), [be, xe] = X(null), H = be ?? ye, Se = ve === null && V && (L !== null || B) && !(l && F) && (a !== "markdown" && a !== "mermaid" || !F), U;
801
- t[36] !== f || t[37] !== D || t[38] !== e.file || t[39] !== e.name ? (U = () => {
802
- k(!0), te(async () => {
799
+ ], t[27] = V, t[28] = e.file, t[29] = e.sizeBytes, t[30] = E, t[31] = F, t[32] = B, t[33] = z, t[34] = ge, t[35] = _e) : (ge = t[34], _e = t[35]), Qt(ge, _e);
800
+ let ve = oe ?? (V ? se : null), ye = Je(Si), [be, xe] = X(null), H = be ?? ye, Se = ve === null && V && (L !== null || B) && !(u && P) && (o !== "markdown" && o !== "mermaid" || !P), U;
801
+ t[36] !== g || t[37] !== D || t[38] !== e.file || t[39] !== e.name ? (U = () => {
802
+ k(!0), h(async () => {
803
803
  let t = e.file;
804
804
  if (!t) {
805
805
  let e = await D();
806
- if (!e) throw Error(f("Reconnect to the environment and try again."));
806
+ if (!e) throw Error(g("Reconnect to the environment and try again."));
807
807
  let n = await fetch(e);
808
- if (!n.ok) throw Error(f("The file could not be loaded. Try again."));
808
+ if (!n.ok) throw Error(g("The file could not be loaded. Try again."));
809
809
  t = await n.blob();
810
810
  }
811
811
  let n = URL.createObjectURL(t);
@@ -813,22 +813,22 @@ function _i(e) {
813
813
  let r = document.createElement("a");
814
814
  r.href = n, r.download = e.name, r.click();
815
815
  }).then((e) => {
816
- if (!S(e)) {
816
+ if (!re(e)) {
817
817
  let t = ce(e.cause);
818
818
  Qe.add({
819
819
  type: "error",
820
- title: f("Could not save file"),
821
- description: Te(t, r) ?? f("Please try again.")
820
+ title: g("Could not save file"),
821
+ description: Te(t, r) ?? g("Please try again.")
822
822
  });
823
823
  }
824
824
  k(!1);
825
825
  });
826
- }, t[36] = f, t[37] = D, t[38] = e.file, t[39] = e.name, t[40] = U) : U = t[40];
826
+ }, t[36] = g, t[37] = D, t[38] = e.file, t[39] = e.name, t[40] = U) : U = t[40];
827
827
  let Ce = U, we;
828
- t[41] !== L || t[42] !== l || t[43] !== ve || t[44] !== f || t[45] !== a || t[46] !== V || t[47] !== s || t[48] !== e.asset || t[49] !== e.file || t[50] !== e.htmlRender || t[51] !== e.mimeType || t[52] !== e.name || t[53] !== e.sizeBytes || t[54] !== e.threadRef || t[55] !== F || t[56] !== I || t[57] !== B || t[58] !== z || t[59] !== H ? (we = ve ? /* @__PURE__ */ Q(Ht, {
828
+ t[41] !== L || t[42] !== u || t[43] !== ve || t[44] !== g || t[45] !== o || t[46] !== V || t[47] !== c || t[48] !== e.asset || t[49] !== e.file || t[50] !== e.htmlRender || t[51] !== e.mimeType || t[52] !== e.name || t[53] !== e.sizeBytes || t[54] !== e.threadRef || t[55] !== P || t[56] !== F || t[57] !== B || t[58] !== z || t[59] !== H ? (we = ve ? /* @__PURE__ */ Q(Ht, {
829
829
  message: ve,
830
830
  onRetry: () => {
831
- R(null), ie(xi);
831
+ R(null), I(xi);
832
832
  }
833
833
  }) : B && z ? /* @__PURE__ */ Q(qt, {
834
834
  fallback: /* @__PURE__ */ Q(Wt, {}),
@@ -836,19 +836,19 @@ function _i(e) {
836
836
  name: e.name,
837
837
  src: z,
838
838
  sizeBytes: e.sizeBytes,
839
- onRetry: () => ie(bi),
840
- delimiter: F ? l : null,
839
+ onRetry: () => I(bi),
840
+ delimiter: P ? u : null,
841
841
  copyContents: ue,
842
842
  wordWrap: H
843
- }, `${z}:${F}:${I}`)
844
- }) : !z || V && !L ? /* @__PURE__ */ Q(Wt, {}) : V && L ? l && F ? /* @__PURE__ */ Q(ai, {
843
+ }, `${z}:${P}:${F}`)
844
+ }) : !z || V && !L ? /* @__PURE__ */ Q(Wt, {}) : V && L ? u && P ? /* @__PURE__ */ Q(ai, {
845
845
  name: e.name,
846
846
  text: L.text,
847
- delimiter: l
848
- }) : a === "mermaid" && F ? /* @__PURE__ */ Q(qt, {
847
+ delimiter: u
848
+ }) : o === "mermaid" && P ? /* @__PURE__ */ Q(qt, {
849
849
  fallback: /* @__PURE__ */ Q(Wt, {}),
850
850
  children: /* @__PURE__ */ Q(li, { text: L.text })
851
- }) : a === "markdown" && F ? /* @__PURE__ */ Q(xt, {
851
+ }) : o === "markdown" && P ? /* @__PURE__ */ Q(xt, {
852
852
  className: "min-h-0 flex-1",
853
853
  children: /* @__PURE__ */ Q(We, {
854
854
  text: Fr(L.text),
@@ -859,37 +859,37 @@ function _i(e) {
859
859
  name: e.name,
860
860
  text: L.text,
861
861
  wordWrap: H
862
- }) : a === "archive" || a === "sqlite" ? /* @__PURE__ */ Q(Lr, {
862
+ }) : o === "archive" || o === "sqlite" ? /* @__PURE__ */ Q(Lr, {
863
863
  src: z,
864
864
  name: e.name,
865
- kind: a,
866
- onRetry: () => ie(yi)
867
- }, I) : a === "font" ? /* @__PURE__ */ Q(qt, {
865
+ kind: o,
866
+ onRetry: () => I(yi)
867
+ }, F) : o === "font" ? /* @__PURE__ */ Q(qt, {
868
868
  fallback: /* @__PURE__ */ Q(Wt, {}),
869
869
  children: /* @__PURE__ */ Q(ci, {
870
870
  src: z,
871
871
  name: e.name
872
872
  })
873
- }) : s ? /* @__PURE__ */ Q(qt, {
873
+ }) : c ? /* @__PURE__ */ Q(qt, {
874
874
  fallback: /* @__PURE__ */ Q(Wt, {}),
875
875
  children: /* @__PURE__ */ Q(si, {
876
876
  src: z,
877
877
  name: e.name,
878
- kind: s,
878
+ kind: c,
879
879
  sizeBytes: e.sizeBytes
880
880
  })
881
- }) : a === "pdf" || a === "html" ? /* @__PURE__ */ Q(Jr, {
881
+ }) : o === "pdf" || o === "html" ? /* @__PURE__ */ Q(Jr, {
882
882
  src: z,
883
883
  title: e.name,
884
- pdf: a === "pdf",
884
+ pdf: o === "pdf",
885
885
  htmlRender: e.htmlRender === !0,
886
886
  threadRef: e.threadRef,
887
- documentKey: a === "pdf" ? e.file ? mi(e.file) : e.asset && "attachmentId" in e.asset ? `${e.asset.environmentId}:${e.asset.attachmentId}` : void 0 : void 0
888
- }) : a === "audio" ? /* @__PURE__ */ Q(He, {
887
+ documentKey: o === "pdf" ? e.file ? mi(e.file) : e.asset && "attachmentId" in e.asset ? `${e.asset.environmentId}:${e.asset.attachmentId}` : void 0 : void 0
888
+ }) : o === "audio" ? /* @__PURE__ */ Q(He, {
889
889
  src: z,
890
890
  name: e.name,
891
- onError: () => R(f("Unable to load audio."))
892
- }) : a === "video" ? /* @__PURE__ */ Q("div", {
891
+ onError: () => R(g("Unable to load audio."))
892
+ }) : o === "video" ? /* @__PURE__ */ Q("div", {
893
893
  className: "flex min-h-0 flex-1 items-center justify-center bg-black",
894
894
  children: /* @__PURE__ */ Q("video", {
895
895
  controls: !0,
@@ -897,31 +897,31 @@ function _i(e) {
897
897
  src: z,
898
898
  "aria-label": e.name,
899
899
  className: "max-h-full max-w-full",
900
- onError: () => R(f("Unable to load video."))
900
+ onError: () => R(g("Unable to load video."))
901
901
  })
902
- }) : a === "image" ? /* @__PURE__ */ Q(Bt, {
902
+ }) : o === "image" ? /* @__PURE__ */ Q(Bt, {
903
903
  src: z,
904
904
  name: e.name,
905
905
  mimeType: e.mimeType,
906
- onError: () => R(f("Unable to load image."))
906
+ onError: () => R(g("Unable to load image."))
907
907
  }, z) : /* @__PURE__ */ $("div", {
908
908
  className: "flex min-h-0 flex-1 flex-col items-center justify-center gap-1 px-6 text-center",
909
909
  children: [/* @__PURE__ */ Q("p", {
910
910
  className: "text-sm font-medium",
911
- children: /* @__PURE__ */ Q(P, { children: "No preview for this file" })
911
+ children: /* @__PURE__ */ Q(S, { children: "No preview for this file" })
912
912
  }), /* @__PURE__ */ Q("p", {
913
913
  className: "max-w-sm text-xs leading-relaxed text-muted-foreground",
914
- children: e.name.split(".").at(-1) ? /* @__PURE__ */ $(P, { children: [
914
+ children: e.name.split(".").at(-1) ? /* @__PURE__ */ $(S, { children: [
915
915
  "Save it to open in an app that supports ",
916
- /* @__PURE__ */ Q(x, { children: e.name.split(".").at(-1) }),
916
+ /* @__PURE__ */ Q(ne, { children: e.name.split(".").at(-1) }),
917
917
  " files."
918
- ] }) : /* @__PURE__ */ Q(P, { children: "Save it to open in an app that supports this format files." })
918
+ ] }) : /* @__PURE__ */ Q(S, { children: "Save it to open in an app that supports this format files." })
919
919
  })]
920
- }), t[41] = L, t[42] = l, t[43] = ve, t[44] = f, t[45] = a, t[46] = V, t[47] = s, t[48] = e.asset, t[49] = e.file, t[50] = e.htmlRender, t[51] = e.mimeType, t[52] = e.name, t[53] = e.sizeBytes, t[54] = e.threadRef, t[55] = F, t[56] = I, t[57] = B, t[58] = z, t[59] = H, t[60] = we) : we = t[60];
920
+ }), t[41] = L, t[42] = u, t[43] = ve, t[44] = g, t[45] = o, t[46] = V, t[47] = c, t[48] = e.asset, t[49] = e.file, t[50] = e.htmlRender, t[51] = e.mimeType, t[52] = e.name, t[53] = e.sizeBytes, t[54] = e.threadRef, t[55] = P, t[56] = F, t[57] = B, t[58] = z, t[59] = H, t[60] = we) : we = t[60];
921
921
  let W = we, Ee;
922
- t[61] === Symbol.for("react.memo_cache_sentinel") ? (Ee = M(Gt), t[61] = Ee) : Ee = t[61];
922
+ t[61] === Symbol.for("react.memo_cache_sentinel") ? (Ee = A(Gt), t[61] = Ee) : Ee = t[61];
923
923
  let G;
924
- t[62] !== f || t[63] !== e.origin ? (G = e.origin ?? f("Attachment"), t[62] = f, t[63] = e.origin, t[64] = G) : G = t[64];
924
+ t[62] !== g || t[63] !== e.origin ? (G = e.origin ?? g("Attachment"), t[62] = g, t[63] = e.origin, t[64] = G) : G = t[64];
925
925
  let K;
926
926
  t[65] === G ? K = t[66] : (K = /* @__PURE__ */ Q("span", {
927
927
  className: "shrink-0 px-0.5 text-muted-foreground",
@@ -936,10 +936,10 @@ function _i(e) {
936
936
  children: e.name
937
937
  }), t[68] = e.name, t[69] = De);
938
938
  let Ae;
939
- t[70] !== h || t[71] !== e.sizeBytes ? (Ae = e.sizeBytes > 0 ? /* @__PURE__ */ Q("span", {
939
+ t[70] !== _ || t[71] !== e.sizeBytes ? (Ae = e.sizeBytes > 0 ? /* @__PURE__ */ Q("span", {
940
940
  className: "ml-2 shrink-0 text-muted-foreground",
941
- children: p(e.sizeBytes, h)
942
- }) : null, t[70] = h, t[71] = e.sizeBytes, t[72] = Ae) : Ae = t[72];
941
+ children: f(e.sizeBytes, _)
942
+ }) : null, t[70] = _, t[71] = e.sizeBytes, t[72] = Ae) : Ae = t[72];
943
943
  let Pe;
944
944
  t[73] !== K || t[74] !== De || t[75] !== Ae ? (Pe = /* @__PURE__ */ $("div", {
945
945
  className: "flex min-w-0 flex-1 items-center text-xs",
@@ -951,59 +951,59 @@ function _i(e) {
951
951
  ]
952
952
  }), t[73] = K, t[74] = De, t[75] = Ae, t[76] = Pe) : Pe = t[76];
953
953
  let J;
954
- t[77] !== h || t[78] !== F || t[79] !== u ? (J = u ? /* @__PURE__ */ Q(Ut, {
955
- label: gi(u, F, h),
956
- pressed: F,
957
- onPress: () => re(vi),
958
- children: Q(F ? Fe : u === "table" ? Ie : Ne, { className: "size-3.5" })
959
- }) : null, t[77] = h, t[78] = F, t[79] = u, t[80] = J) : J = t[80];
954
+ t[77] !== _ || t[78] !== P || t[79] !== d ? (J = d ? /* @__PURE__ */ Q(Ut, {
955
+ label: gi(d, P, _),
956
+ pressed: P,
957
+ onPress: () => ie(vi),
958
+ children: Q(P ? Fe : d === "table" ? Ie : Ne, { className: "size-3.5" })
959
+ }) : null, t[77] = _, t[78] = P, t[79] = d, t[80] = J) : J = t[80];
960
960
  let Y;
961
- t[81] !== f || t[82] !== Se || t[83] !== H ? (Y = Se ? /* @__PURE__ */ Q(Ut, {
962
- label: f(H ? "Disable word wrap" : "Enable word wrap"),
961
+ t[81] !== g || t[82] !== Se || t[83] !== H ? (Y = Se ? /* @__PURE__ */ Q(Ut, {
962
+ label: g(H ? "Disable word wrap" : "Enable word wrap"),
963
963
  pressed: H,
964
964
  onPress: () => xe(!H),
965
965
  children: /* @__PURE__ */ Q(Me, { className: "size-3.5" })
966
- }) : null, t[81] = f, t[82] = Se, t[83] = H, t[84] = Y) : Y = t[84];
966
+ }) : null, t[81] = g, t[82] = Se, t[83] = H, t[84] = Y) : Y = t[84];
967
967
  let Be;
968
- t[85] !== L || t[86] !== v || t[87] !== f || t[88] !== y || t[89] !== B ? (Be = L || B ? /* @__PURE__ */ Q(Ut, {
969
- label: y ? f("Copied") : L?.truncated ? f("Copy preview") : f("Copy contents"),
968
+ t[85] !== L || t[86] !== b || t[87] !== g || t[88] !== x || t[89] !== B ? (Be = L || B ? /* @__PURE__ */ Q(Ut, {
969
+ label: x ? g("Copied") : L?.truncated ? g("Copy preview") : g("Copy contents"),
970
970
  onPress: () => {
971
971
  if (L) {
972
- v(L.text, void 0);
972
+ b(L.text, void 0);
973
973
  return;
974
974
  }
975
975
  let e = ue.current;
976
- e ? e().then((e) => v(e, void 0)).catch((e) => Qe.add({
976
+ e ? e().then((e) => b(e, void 0)).catch((e) => Qe.add({
977
977
  type: "error",
978
- title: f("Could not copy file"),
979
- description: Te(e, r) ?? f("Try again.")
978
+ title: g("Could not copy file"),
979
+ description: Te(e, r) ?? g("Try again.")
980
980
  })) : Qe.add({
981
981
  type: "error",
982
- title: f("Could not copy file"),
983
- description: f("Wait for the file to finish loading before copying.")
982
+ title: g("Could not copy file"),
983
+ description: g("Wait for the file to finish loading before copying.")
984
984
  });
985
985
  },
986
- children: Q(y ? Oe : je, { className: "size-3.5" })
987
- }) : null, t[85] = L, t[86] = v, t[87] = f, t[88] = y, t[89] = B, t[90] = Be) : Be = t[90];
986
+ children: Q(x ? Oe : je, { className: "size-3.5" })
987
+ }) : null, t[85] = L, t[86] = b, t[87] = g, t[88] = x, t[89] = B, t[90] = Be) : Be = t[90];
988
988
  let Ve;
989
- t[91] !== f || t[92] !== Ce || t[93] !== O || t[94] !== z ? (Ve = z ? /* @__PURE__ */ Q(Ut, {
990
- label: f(O ? "Preparing file…" : "Save file"),
989
+ t[91] !== g || t[92] !== Ce || t[93] !== O || t[94] !== z ? (Ve = z ? /* @__PURE__ */ Q(Ut, {
990
+ label: g(O ? "Preparing file…" : "Save file"),
991
991
  disabled: O,
992
992
  onPress: Ce,
993
993
  children: /* @__PURE__ */ Q(Le, { className: "size-3.5" })
994
- }) : null, t[91] = f, t[92] = Ce, t[93] = O, t[94] = z, t[95] = Ve) : Ve = t[95];
994
+ }) : null, t[91] = g, t[92] = Ce, t[93] = O, t[94] = z, t[95] = Ve) : Ve = t[95];
995
995
  let Ue;
996
- t[96] !== f || t[97] !== e.onRemove ? (Ue = e.onRemove ? /* @__PURE__ */ Q(Ut, {
997
- label: f("Remove from draft"),
996
+ t[96] !== g || t[97] !== e.onRemove ? (Ue = e.onRemove ? /* @__PURE__ */ Q(Ut, {
997
+ label: g("Remove from draft"),
998
998
  onPress: e.onRemove,
999
999
  children: /* @__PURE__ */ Q(Re, { className: "size-3.5" })
1000
- }) : null, t[96] = f, t[97] = e.onRemove, t[98] = Ue) : Ue = t[98];
1000
+ }) : null, t[96] = g, t[97] = e.onRemove, t[98] = Ue) : Ue = t[98];
1001
1001
  let Ge;
1002
- t[99] !== f || t[100] !== e.onClose ? (Ge = e.onClose ? /* @__PURE__ */ Q(Ut, {
1003
- label: f("Close", { $context: "button, closes the file preview" }),
1002
+ t[99] !== g || t[100] !== e.onClose ? (Ge = e.onClose ? /* @__PURE__ */ Q(Ut, {
1003
+ label: g("Close", { $context: "button, closes the file preview" }),
1004
1004
  onPress: e.onClose,
1005
1005
  children: /* @__PURE__ */ Q(ze, { className: "size-3.5" })
1006
- }) : null, t[99] = f, t[100] = e.onClose, t[101] = Ge) : Ge = t[101];
1006
+ }) : null, t[99] = g, t[100] = e.onClose, t[101] = Ge) : Ge = t[101];
1007
1007
  let Ke;
1008
1008
  t[102] !== Pe || t[103] !== J || t[104] !== Y || t[105] !== Be || t[106] !== Ve || t[107] !== Ue || t[108] !== Ge ? (Ke = /* @__PURE__ */ $("div", {
1009
1009
  className: Ee,
@@ -1019,7 +1019,7 @@ function _i(e) {
1019
1019
  ]
1020
1020
  }), t[102] = Pe, t[103] = J, t[104] = Y, t[105] = Be, t[106] = Ve, t[107] = Ue, t[108] = Ge, t[109] = Ke) : Ke = t[109];
1021
1021
  let qe;
1022
- t[110] !== L?.truncated || t[111] !== f || t[112] !== e.sizeBytes ? (qe = L?.truncated ? /* @__PURE__ */ Q(Kt, { children: e.sizeBytes > 0 ? f("Preview limited to the first 1 MB of a {size} byte file. Save the file to read it in full.", { size: e.sizeBytes.toLocaleString() }) : f("Preview limited to the first 1 MB. Save the file to read it in full.") }) : null, t[110] = L?.truncated, t[111] = f, t[112] = e.sizeBytes, t[113] = qe) : qe = t[113];
1022
+ t[110] !== L?.truncated || t[111] !== g || t[112] !== e.sizeBytes ? (qe = L?.truncated ? /* @__PURE__ */ Q(Kt, { children: e.sizeBytes > 0 ? g("Preview limited to the first 1 MB of a {size} byte file. Save the file to read it in full.", { size: e.sizeBytes.toLocaleString() }) : g("Preview limited to the first 1 MB. Save the file to read it in full.") }) : null, t[110] = L?.truncated, t[111] = g, t[112] = e.sizeBytes, t[113] = qe) : qe = t[113];
1023
1023
  let Xe;
1024
1024
  return t[114] !== W || t[115] !== Ke || t[116] !== qe ? (Xe = /* @__PURE__ */ $("div", {
1025
1025
  className: "flex min-h-0 flex-1 flex-col overflow-hidden bg-background",
@@ -1046,7 +1046,7 @@ function Si(e) {
1046
1046
  return e.wordWrap;
1047
1047
  }
1048
1048
  // src/components/chat/composerMentionDrag.ts
1049
- var Ci = "application/x-hanzodev-composer-mention", wi = "application/x-hanzodev-pull-request", Ti = me(ge), Ei = ie(Ti), Di = se(Ti);
1049
+ var Ci = "application/x-hanzodev-composer-mention", wi = "application/x-hanzodev-pull-request", Ti = me(ge), Ei = I(Ti), Di = se(Ti);
1050
1050
  function Oi(e) {
1051
1051
  let t = e.replace(/\/+$/, "");
1052
1052
  return t.length === 0 ? null : it(t);
@@ -1097,9 +1097,9 @@ function Ni(e) {
1097
1097
  let t = Z(10), n, r, i;
1098
1098
  t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({className: n, orientation: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
1099
1099
  let a = i === void 0 ? "horizontal" : i, o;
1100
- t[4] === n ? o = t[5] : (o = M("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:not-[[class^='h-']]:not-[[class*='_h-']]:self-stretch", n), t[4] = n, t[5] = o);
1100
+ t[4] === n ? o = t[5] : (o = A("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:not-[[class^='h-']]:not-[[class*='_h-']]:self-stretch", n), t[4] = n, t[5] = o);
1101
1101
  let s;
1102
- return t[6] !== a || t[7] !== r || t[8] !== o ? (s = /* @__PURE__ */ Q(k, {
1102
+ return t[6] !== a || t[7] !== r || t[8] !== o ? (s = /* @__PURE__ */ Q(O, {
1103
1103
  className: o,
1104
1104
  "data-slot": "separator",
1105
1105
  orientation: a,
@@ -1158,7 +1158,7 @@ function Ii(e) {
1158
1158
  ], t[9] = i, t[10] = a, t[11] = o, t[12] = c, t[13] = l, t[14] = f, t[15] = u, t[16] = m) : m = t[16], Qt(p, m);
1159
1159
  }
1160
1160
  // src/components/ui/group.tsx
1161
- var Li = ee("flex w-fit *:focus-visible:z-1 has-[>[data-slot=group]]:gap-2 *:has-focus-visible:z-1 dark:*:[[data-slot=button]:hover~[data-slot=separator]:not([data-slot]:hover~[data-slot=separator]~[data-slot=separator]),[data-slot][data-pressed]~[data-slot=separator]:not([data-slot][data-pressed]~[data-slot=separator]~[data-slot=separator])]:before:bg-input/64 dark:*:[[data-slot=separator]:has(~[data-slot=button]:hover):not(:has(~[data-slot=separator]~[data-slot]:hover)),[data-slot=separator]:has(~[data-slot][data-pressed]):not(:has(~[data-slot=separator]~[data-slot][data-pressed]))]:before:bg-input/64", {
1161
+ var Li = j("flex w-fit *:focus-visible:z-1 has-[>[data-slot=group]]:gap-2 *:has-focus-visible:z-1 dark:*:[[data-slot=button]:hover~[data-slot=separator]:not([data-slot]:hover~[data-slot=separator]~[data-slot=separator]),[data-slot][data-pressed]~[data-slot=separator]:not([data-slot][data-pressed]~[data-slot=separator]~[data-slot=separator])]:before:bg-input/64 dark:*:[[data-slot=separator]:has(~[data-slot=button]:hover):not(:has(~[data-slot=separator]~[data-slot]:hover)),[data-slot=separator]:has(~[data-slot][data-pressed]):not(:has(~[data-slot=separator]~[data-slot][data-pressed]))]:before:bg-input/64", {
1162
1162
  defaultVariants: { orientation: "horizontal" },
1163
1163
  variants: { orientation: {
1164
1164
  horizontal: "*:[[data-slot]~[data-slot]:not([data-slot=separator])]:before:-start-[0.5px] *:data-slot:not-data-[slot=separator]:has-[~[data-slot]]:before:-end-[0.5px] *:pointer-coarse:after:min-w-auto *:data-slot:has-[~[data-slot]]:rounded-e-none *:data-slot:has-[~[data-slot]]:border-e-0 *:data-slot:has-[~[data-slot]]:before:rounded-e-none *:[[data-slot]~[data-slot]]:rounded-s-none *:[[data-slot]~[data-slot]]:border-s-0 *:[[data-slot]~[data-slot]]:before:rounded-s-none",
@@ -1169,7 +1169,7 @@ function Ri(e) {
1169
1169
  let t = Z(13), n, r, i, a;
1170
1170
  t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4]) : ({className: r, orientation: i, children: n, ...a} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a);
1171
1171
  let o;
1172
- t[5] !== r || t[6] !== i ? (o = M(Li({ orientation: i }), r), t[5] = r, t[6] = i, t[7] = o) : o = t[7];
1172
+ t[5] !== r || t[6] !== i ? (o = A(Li({ orientation: i }), r), t[5] = r, t[6] = i, t[7] = o) : o = t[7];
1173
1173
  let s;
1174
1174
  return t[8] !== n || t[9] !== i || t[10] !== a || t[11] !== o ? (s = /* @__PURE__ */ Q("div", {
1175
1175
  className: o,
@@ -1184,7 +1184,7 @@ function zi(e) {
1184
1184
  let t = Z(10), n, r, i;
1185
1185
  t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({className: n, orientation: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
1186
1186
  let a = i === void 0 ? "vertical" : i, o;
1187
- t[4] === n ? o = t[5] : (o = M("[[data-slot=input-control]:focus-within+&,[data-slot=input-group]:focus-within+&,[data-slot=select-trigger]:focus-visible+*+&,[data-slot=number-field]:focus-within+input+&]:-translate-x-px pointer-events-none relative z-2 bg-input before:absolute before:inset-0 has-[+[data-slot=input-control]:focus-within,+[data-slot=input-group]:focus-within,+[data-slot=select-trigger]:focus-visible+*,+[data-slot=number-field]:focus-within]:translate-x-px has-[+[data-slot=input-control]:focus-within,+[data-slot=input-group]:focus-within,+[data-slot=select-trigger]:focus-visible+*,+[data-slot=number-field]:focus-within]:bg-ring dark:before:bg-input/32 [[data-slot=input-control]:focus-within+&,[data-slot=input-group]:focus-within+&,[data-slot=select-trigger]:focus-visible+*+&,[data-slot=number-field]:focus-within+&,[data-slot=number-field]:focus-within+input+&]:bg-ring", n), t[4] = n, t[5] = o);
1187
+ t[4] === n ? o = t[5] : (o = A("[[data-slot=input-control]:focus-within+&,[data-slot=input-group]:focus-within+&,[data-slot=select-trigger]:focus-visible+*+&,[data-slot=number-field]:focus-within+input+&]:-translate-x-px pointer-events-none relative z-2 bg-input before:absolute before:inset-0 has-[+[data-slot=input-control]:focus-within,+[data-slot=input-group]:focus-within,+[data-slot=select-trigger]:focus-visible+*,+[data-slot=number-field]:focus-within]:translate-x-px has-[+[data-slot=input-control]:focus-within,+[data-slot=input-group]:focus-within,+[data-slot=select-trigger]:focus-visible+*,+[data-slot=number-field]:focus-within]:bg-ring dark:before:bg-input/32 [[data-slot=input-control]:focus-within+&,[data-slot=input-group]:focus-within+&,[data-slot=select-trigger]:focus-visible+*+&,[data-slot=number-field]:focus-within+&,[data-slot=number-field]:focus-within+input+&]:bg-ring", n), t[4] = n, t[5] = o);
1188
1188
  let s;
1189
1189
  return t[6] !== a || t[7] !== r || t[8] !== o ? (s = /* @__PURE__ */ Q(Ni, {
1190
1190
  className: o,
@@ -2210,9 +2210,9 @@ var Bi = (e, t) => {
2210
2210
  kind: "brand"
2211
2211
  },
2212
2212
  {
2213
- Icon: I(e) ? At : A(e) ? Dt : J,
2213
+ Icon: F(e) ? At : k(e) ? Dt : J,
2214
2214
  value: "file-manager",
2215
- kind: I(e) || A(e) ? "brand" : "generic"
2215
+ kind: F(e) || k(e) ? "brand" : "generic"
2216
2216
  }
2217
2217
  ], i = new Set(t);
2218
2218
  return r.filter((e) => i.has(e.value)).map((t) => ({
@@ -2221,56 +2221,56 @@ var Bi = (e, t) => {
2221
2221
  }));
2222
2222
  };
2223
2223
  function ea(e) {
2224
- return M(e === "brand" ? "text-foreground opacity-100" : "text-muted-foreground");
2224
+ return A(e === "brand" ? "text-foreground opacity-100" : "text-muted-foreground");
2225
2225
  }
2226
2226
  var ta = Xt(function(n) {
2227
- let r = Z(133), { environmentId: i, keybindings: o, availableEditors: c, openInCwd: p, openInCwdIsFile: v, presentation: y, compact: S, enableShortcut: C, displayMode: w, revealFileManager: T } = n, O = v !== void 0 && v, k = y === void 0 ? "toolbar" : y, A = S !== void 0 && S, j = C === void 0 || C, ee = w === void 0 ? "toolbar" : w, te = T !== void 0 && T, N = m(), re = ne(), I = ee === "panel", ie = I ? "div" : Ri, ae = nn(null), oe = $e(De.openInEditor, "open in editor"), R = Ge(i), se = e(i, _e), ce = R.mode === "local-exec" && !se, le = R.mode !== "remote-unavailable" && !ce, [ue, fe] = b(ce), pe = Ve(), [me, he] = Be(), z = qe(i)?.label ?? null, B = R.mode === "local-exec" ? c : pe, [V, ge] = vt(B), ve;
2228
- r[0] !== i || r[1] !== he || r[2] !== p || r[3] !== O || r[4] !== oe || r[5] !== V || r[6] !== R.host || r[7] !== R.mode || r[8] !== te || r[9] !== ge ? (ve = async (e) => {
2229
- if (!p) return !1;
2227
+ let r = Z(133), { environmentId: c, keybindings: f, availableEditors: p, openInCwd: h, openInCwdIsFile: g, presentation: b, compact: C, enableShortcut: w, displayMode: ee, revealFileManager: D } = n, O = g !== void 0 && g, k = b === void 0 ? "toolbar" : b, j = C !== void 0 && C, M = w === void 0 || w, te = ee === void 0 ? "toolbar" : ee, re = D !== void 0 && D, N = i(), ie = m(), F = te === "panel", I = F ? "div" : Ri, ae = nn(null), oe = $e(De.openInEditor, "open in editor"), R = Ge(c), se = e(c, _e), ce = R.mode === "local-exec" && !se, le = R.mode !== "remote-unavailable" && !ce, [ue, fe] = x(ce), pe = Ve(), [me, he] = Be(), z = qe(c)?.label ?? null, B = R.mode === "local-exec" ? p : pe, [V, ge] = vt(B), ve;
2228
+ r[0] !== c || r[1] !== he || r[2] !== h || r[3] !== O || r[4] !== oe || r[5] !== V || r[6] !== R.host || r[7] !== R.mode || r[8] !== re || r[9] !== ge ? (ve = async (e) => {
2229
+ if (!h) return !1;
2230
2230
  let n = e ?? V;
2231
2231
  if (!n || R.mode === "remote-unavailable") return !1;
2232
2232
  if (R.mode === "remote-links") {
2233
2233
  let e = L({
2234
2234
  editor: n,
2235
2235
  ...R.host,
2236
- absolutePath: p,
2236
+ absolutePath: h,
2237
2237
  isFile: O
2238
2238
  });
2239
2239
  return e === void 0 || !await Ue(e) ? !1 : (he(), ge(n), !0);
2240
2240
  }
2241
- if (!t(i, "orchestration:operate")) return !1;
2241
+ if (!t(c, "orchestration:operate")) return !1;
2242
2242
  let r = oe({
2243
- environmentId: i,
2243
+ environmentId: c,
2244
2244
  input: {
2245
- cwd: p,
2245
+ cwd: h,
2246
2246
  editor: n,
2247
- ...te && n === "file-manager" ? { reveal: !0 } : {}
2247
+ ...re && n === "file-manager" ? { reveal: !0 } : {}
2248
2248
  }
2249
2249
  });
2250
2250
  return ge(n), (await r)._tag === "Success";
2251
- }, r[0] = i, r[1] = he, r[2] = p, r[3] = O, r[4] = oe, r[5] = V, r[6] = R.host, r[7] = R.mode, r[8] = te, r[9] = ge, r[10] = ve) : ve = r[10];
2251
+ }, r[0] = c, r[1] = he, r[2] = h, r[3] = O, r[4] = oe, r[5] = V, r[6] = R.host, r[7] = R.mode, r[8] = re, r[9] = ge, r[10] = ve) : ve = r[10];
2252
2252
  let ye = ve, be;
2253
- r[11] === o ? be = r[12] : (be = de(o, "editor.openFavorite"), r[11] = o, r[12] = be);
2253
+ r[11] === f ? be = r[12] : (be = de(f, "editor.openFavorite"), r[11] = f, r[12] = be);
2254
2254
  let xe = be, H = Zt(jr), Se, U, Ce, we, W, Te, Ee, G, K, q, Oe, ke, je, Me, Ne;
2255
- if (r[13] !== H || r[14] !== le || r[15] !== A || r[16] !== B || r[17] !== j || r[18] !== z || r[19] !== N || r[20] !== ce || r[21] !== I || r[22] !== re || r[23] !== xe || r[24] !== p || r[25] !== ye || r[26] !== V || r[27] !== k || r[28] !== R.mode || r[29] !== me || r[30] !== ge) {
2255
+ if (r[13] !== H || r[14] !== le || r[15] !== j || r[16] !== B || r[17] !== M || r[18] !== z || r[19] !== N || r[20] !== ce || r[21] !== F || r[22] !== ie || r[23] !== xe || r[24] !== h || r[25] !== ye || r[26] !== V || r[27] !== k || r[28] !== R.mode || r[29] !== me || r[30] !== ge) {
2256
2256
  Me = Symbol.for("react.early_return_sentinel");
2257
2257
  bb0: {
2258
- let e = $i(navigator.platform, B, re), t = e.find((e) => {
2258
+ let e = $i(navigator.platform, B, ie), t = e.find((e) => {
2259
2259
  let { value: t } = e;
2260
2260
  return t === V;
2261
2261
  }) ?? null;
2262
- we = I ? t ? N("Open in {editor}", { editor: t.label }) : N("Open in editor") : N("Open", { $context: "verb, opens the project in the preferred editor" });
2262
+ we = F ? t ? N("Open in {editor}", { editor: t.label }) : N("Open in editor") : N("Open", { $context: "verb, opens the project in the preferred editor" });
2263
2263
  let n = R.mode === "remote-unavailable" ? z === null ? N("No SSH route to this machine") : N("No SSH route to {environment}", { environment: z }) : R.mode === "remote-links" && e.length === 0 ? z === null ? N("Open from a computer to edit on this machine") : N("Open from a computer to edit on {environment}", { environment: z }) : null, i = n === null ? /* @__PURE__ */ $(an, { children: [
2264
- e.length === 0 && /* @__PURE__ */ Q(u, {
2264
+ e.length === 0 && /* @__PURE__ */ Q(l, {
2265
2265
  density: k === "menu" ? "touch" : "default",
2266
2266
  disabled: !0,
2267
- children: /* @__PURE__ */ Q(P, { children: "No installed editors found" })
2267
+ children: /* @__PURE__ */ Q(S, { children: "No installed editors found" })
2268
2268
  }),
2269
2269
  e.map((e) => {
2270
2270
  let { label: t, Icon: n, value: r, kind: i } = e;
2271
- return /* @__PURE__ */ $(u, {
2271
+ return /* @__PURE__ */ $(l, {
2272
2272
  density: k === "menu" ? "touch" : "default",
2273
- disabled: !p || !le,
2273
+ disabled: !h || !le,
2274
2274
  onClick: () => {
2275
2275
  k === "menu" ? ye(r) : ge(r);
2276
2276
  },
@@ -2279,17 +2279,17 @@ var ta = Xt(function(n) {
2279
2279
  "aria-hidden": "true",
2280
2280
  className: ea(i)
2281
2281
  }),
2282
- /* @__PURE__ */ Q(f, { children: t }),
2283
- r === V && xe && /* @__PURE__ */ Q(g, { children: xe })
2282
+ /* @__PURE__ */ Q(d, { children: t }),
2283
+ r === V && xe && /* @__PURE__ */ Q(v, { children: xe })
2284
2284
  ]
2285
2285
  }, r);
2286
2286
  }),
2287
- R.mode === "remote-links" && !me && /* @__PURE__ */ Q(u, {
2287
+ R.mode === "remote-links" && !me && /* @__PURE__ */ Q(l, {
2288
2288
  density: k === "menu" ? "touch" : "default",
2289
2289
  disabled: !0,
2290
2290
  children: z === null ? N("Opens over SSH. Needs your key on this machine") : N("Opens over SSH. Needs your key on {environment}", { environment: z })
2291
2291
  })
2292
- ] }) : /* @__PURE__ */ Q(u, {
2292
+ ] }) : /* @__PURE__ */ Q(l, {
2293
2293
  density: k === "menu" ? "touch" : "default",
2294
2294
  disabled: !0,
2295
2295
  children: n
@@ -2298,29 +2298,29 @@ var ta = Xt(function(n) {
2298
2298
  let e;
2299
2299
  r[48] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Q(Pe, { className: "size-4" }), r[48] = e) : e = r[48];
2300
2300
  let n;
2301
- r[49] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Q(f, { children: /* @__PURE__ */ Q(P, { children: "Open in…" }) }), r[49] = n) : n = r[49];
2301
+ r[49] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Q(d, { children: /* @__PURE__ */ Q(S, { children: "Open in…" }) }), r[49] = n) : n = r[49];
2302
2302
  let i;
2303
- r[50] === ce ? i = r[51] : (i = /* @__PURE__ */ $(_, {
2303
+ r[50] === ce ? i = r[51] : (i = /* @__PURE__ */ $(y, {
2304
2304
  density: "touch",
2305
2305
  disabled: ce,
2306
2306
  children: [e, n]
2307
2307
  }), r[50] = ce, r[51] = i);
2308
2308
  let a;
2309
- r[52] === U ? a = r[53] : (a = /* @__PURE__ */ Q(h, { children: U }), r[52] = U, r[53] = a);
2309
+ r[52] === U ? a = r[53] : (a = /* @__PURE__ */ Q(_, { children: U }), r[52] = U, r[53] = a);
2310
2310
  let o;
2311
- r[54] !== i || r[55] !== a ? (o = /* @__PURE__ */ $(l, { children: [i, a] }), r[54] = i, r[55] = a, r[56] = o) : o = r[56], Me = /* @__PURE__ */ $(an, { children: [t && /* @__PURE__ */ $(u, {
2311
+ r[54] !== i || r[55] !== a ? (o = /* @__PURE__ */ $(s, { children: [i, a] }), r[54] = i, r[55] = a, r[56] = o) : o = r[56], Me = /* @__PURE__ */ $(an, { children: [t && /* @__PURE__ */ $(l, {
2312
2312
  density: k === "menu" ? "touch" : "default",
2313
- disabled: !p || !le,
2313
+ disabled: !h || !le,
2314
2314
  onClick: () => ye(V),
2315
2315
  children: [
2316
- /* @__PURE__ */ Q(t.Icon, { className: M("size-4", ea(t.kind)) }),
2317
- /* @__PURE__ */ Q(f, { children: /* @__PURE__ */ $(P, { children: ["Open in ", /* @__PURE__ */ Q(x, { children: t.label })] }) }),
2318
- xe && /* @__PURE__ */ Q(g, { children: xe })
2316
+ /* @__PURE__ */ Q(t.Icon, { className: A("size-4", ea(t.kind)) }),
2317
+ /* @__PURE__ */ Q(d, { children: /* @__PURE__ */ $(S, { children: ["Open in ", /* @__PURE__ */ Q(ne, { children: t.label })] }) }),
2318
+ xe && /* @__PURE__ */ Q(v, { children: xe })
2319
2319
  ]
2320
2320
  }), o] });
2321
2321
  break bb0;
2322
2322
  }
2323
- Ce = A ? N("Open file in preferred editor") : we, Se = ur, Ne = Ce, W = "", Te = I ? "sm" : "xs", Ee = I ? "ghost" : "outline", G = "primary", K = I, q = !V || !p || !le, r[57] !== H || r[58] !== j ? (Oe = j && !H ? { [Pi]: "" } : {}, r[57] = H, r[58] = j, r[59] = Oe) : Oe = r[59], r[60] !== N || r[61] !== ye || r[62] !== V ? (ke = () => {
2323
+ Ce = j ? N("Open file in preferred editor") : we, Se = ur, Ne = Ce, W = "", Te = F ? "sm" : "xs", Ee = F ? "ghost" : "outline", G = "primary", K = F, q = !V || !h || !le, r[57] !== H || r[58] !== M ? (Oe = M && !H ? { [Pi]: "" } : {}, r[57] = H, r[58] = M, r[59] = Oe) : Oe = r[59], r[60] !== N || r[61] !== ye || r[62] !== V ? (ke = () => {
2324
2324
  if (!V) return;
2325
2325
  let e = Ke(V, navigator.platform);
2326
2326
  ye(V).then((t) => {
@@ -2328,17 +2328,17 @@ var ta = Xt(function(n) {
2328
2328
  });
2329
2329
  }, r[60] = N, r[61] = ye, r[62] = V, r[63] = ke) : ke = r[63], je = t?.Icon ? /* @__PURE__ */ Q(t.Icon, {
2330
2330
  "aria-hidden": "true",
2331
- className: M(I ? tr : "size-3.5", ea(t.kind))
2332
- }) : I ? /* @__PURE__ */ Q(Pe, {
2331
+ className: A(F ? tr : "size-3.5", ea(t.kind))
2332
+ }) : F ? /* @__PURE__ */ Q(Pe, {
2333
2333
  "aria-hidden": "true",
2334
2334
  className: tr
2335
2335
  }) : null;
2336
2336
  }
2337
- r[13] = H, r[14] = le, r[15] = A, r[16] = B, r[17] = j, r[18] = z, r[19] = N, r[20] = ce, r[21] = I, r[22] = re, r[23] = xe, r[24] = p, r[25] = ye, r[26] = V, r[27] = k, r[28] = R.mode, r[29] = me, r[30] = ge, r[31] = Se, r[32] = U, r[33] = Ce, r[34] = we, r[35] = W, r[36] = Te, r[37] = Ee, r[38] = G, r[39] = K, r[40] = q, r[41] = Oe, r[42] = ke, r[43] = je, r[44] = Me, r[45] = Ne;
2337
+ r[13] = H, r[14] = le, r[15] = j, r[16] = B, r[17] = M, r[18] = z, r[19] = N, r[20] = ce, r[21] = F, r[22] = ie, r[23] = xe, r[24] = h, r[25] = ye, r[26] = V, r[27] = k, r[28] = R.mode, r[29] = me, r[30] = ge, r[31] = Se, r[32] = U, r[33] = Ce, r[34] = we, r[35] = W, r[36] = Te, r[37] = Ee, r[38] = G, r[39] = K, r[40] = q, r[41] = Oe, r[42] = ke, r[43] = je, r[44] = Me, r[45] = Ne;
2338
2338
  } else Se = r[31], U = r[32], Ce = r[33], we = r[34], W = r[35], Te = r[36], Ee = r[37], G = r[38], K = r[39], q = r[40], Oe = r[41], ke = r[42], je = r[43], Me = r[44], Ne = r[45];
2339
2339
  if (Me !== Symbol.for("react.early_return_sentinel")) return Me;
2340
- let Fe = A ? "sr-only" : "sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5", J;
2341
- r[64] !== I || r[65] !== Fe ? (J = M(Fe, I && M("not-sr-only ml-0 min-w-0 truncate", "[text-box:trim-both_cap_alphabetic] overflow-x-clip overflow-y-visible")), r[64] = I, r[65] = Fe, r[66] = J) : J = r[66];
2340
+ let Fe = j ? "sr-only" : "sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5", J;
2341
+ r[64] !== F || r[65] !== Fe ? (J = A(Fe, F && A("not-sr-only ml-0 min-w-0 truncate", "[text-box:trim-both_cap_alphabetic] overflow-x-clip overflow-y-visible")), r[64] = F, r[65] = Fe, r[66] = J) : J = r[66];
2342
2342
  let Ie;
2343
2343
  r[67] !== we || r[68] !== J ? (Ie = /* @__PURE__ */ Q("span", {
2344
2344
  className: J,
@@ -2360,60 +2360,60 @@ var ta = Xt(function(n) {
2360
2360
  let Re = Le, ze;
2361
2361
  r[83] === N ? ze = r[84] : (ze = N("Open in editor"), r[83] = N, r[84] = ze);
2362
2362
  let Y;
2363
- r[85] === I ? Y = r[86] : (Y = I ? {
2363
+ r[85] === F ? Y = r[86] : (Y = F ? {
2364
2364
  className: ar,
2365
2365
  ref: ae
2366
- } : {}, r[85] = I, r[86] = Y);
2366
+ } : {}, r[85] = F, r[86] = Y);
2367
2367
  let He;
2368
- r[87] === Re ? He = r[88] : (He = /* @__PURE__ */ Q(F, { render: Re }), r[87] = Re, r[88] = He);
2368
+ r[87] === Re ? He = r[88] : (He = /* @__PURE__ */ Q(P, { render: Re }), r[87] = Re, r[88] = He);
2369
2369
  let We;
2370
- r[89] === Ce ? We = r[90] : (We = /* @__PURE__ */ Q(E, {
2370
+ r[89] === Ce ? We = r[90] : (We = /* @__PURE__ */ Q(T, {
2371
2371
  side: "top",
2372
2372
  children: Ce
2373
2373
  }), r[89] = Ce, r[90] = We);
2374
2374
  let Je;
2375
- r[91] !== He || r[92] !== We ? (Je = /* @__PURE__ */ $(D, { children: [He, We] }), r[91] = He, r[92] = We, r[93] = Je) : Je = r[93];
2375
+ r[91] !== He || r[92] !== We ? (Je = /* @__PURE__ */ $(E, { children: [He, We] }), r[91] = He, r[92] = We, r[93] = Je) : Je = r[93];
2376
2376
  let Ye;
2377
- r[94] !== A || r[95] !== I ? (Ye = I ? /* @__PURE__ */ Q("span", {
2377
+ r[94] !== j || r[95] !== F ? (Ye = F ? /* @__PURE__ */ Q("span", {
2378
2378
  "aria-hidden": "true",
2379
2379
  className: cr
2380
- }) : /* @__PURE__ */ Q(zi, { ...A ? {} : { className: "hidden @3xl/header-actions:block" } }), r[94] = A, r[95] = I, r[96] = Ye) : Ye = r[96];
2380
+ }) : /* @__PURE__ */ Q(zi, { ...j ? {} : { className: "hidden @3xl/header-actions:block" } }), r[94] = j, r[95] = F, r[96] = Ye) : Ye = r[96];
2381
2381
  let Xe;
2382
2382
  r[97] === N ? Xe = r[98] : (Xe = N("Choose editor"), r[97] = N, r[98] = Xe);
2383
- let Ze = I ? "sm" : "icon-xs", Qe = I ? "ghost" : "outline", et;
2384
- r[99] !== I || r[100] !== Xe || r[101] !== Ze || r[102] !== Qe ? (et = /* @__PURE__ */ Q(ur, {
2383
+ let Ze = F ? "sm" : "icon-xs", Qe = F ? "ghost" : "outline", et;
2384
+ r[99] !== F || r[100] !== Xe || r[101] !== Ze || r[102] !== Qe ? (et = /* @__PURE__ */ Q(ur, {
2385
2385
  "aria-label": Xe,
2386
2386
  "data-toolbar-control": "",
2387
2387
  size: Ze,
2388
2388
  variant: Qe,
2389
2389
  part: "secondary",
2390
- panel: I
2391
- }), r[99] = I, r[100] = Xe, r[101] = Ze, r[102] = Qe, r[103] = et) : et = r[103];
2390
+ panel: F
2391
+ }), r[99] = F, r[100] = Xe, r[101] = Ze, r[102] = Qe, r[103] = et) : et = r[103];
2392
2392
  let tt;
2393
- r[104] !== ce || r[105] !== et ? (tt = /* @__PURE__ */ Q(s, {
2393
+ r[104] !== ce || r[105] !== et ? (tt = /* @__PURE__ */ Q(o, {
2394
2394
  disabled: ce,
2395
2395
  render: et
2396
2396
  }), r[104] = ce, r[105] = et, r[106] = tt) : tt = r[106];
2397
- let nt = I ? nr : "size-4", rt;
2397
+ let nt = F ? nr : "size-4", rt;
2398
2398
  r[107] === nt ? rt = r[108] : (rt = /* @__PURE__ */ Q(Ae, {
2399
2399
  "aria-hidden": "true",
2400
2400
  className: nt
2401
2401
  }), r[107] = nt, r[108] = rt);
2402
2402
  let it;
2403
- r[109] !== tt || r[110] !== rt ? (it = /* @__PURE__ */ Q(F, {
2403
+ r[109] !== tt || r[110] !== rt ? (it = /* @__PURE__ */ Q(P, {
2404
2404
  render: tt,
2405
2405
  children: rt
2406
2406
  }), r[109] = tt, r[110] = rt, r[111] = it) : it = r[111];
2407
2407
  let at;
2408
- r[112] === Symbol.for("react.memo_cache_sentinel") ? (at = /* @__PURE__ */ Q(E, {
2408
+ r[112] === Symbol.for("react.memo_cache_sentinel") ? (at = /* @__PURE__ */ Q(T, {
2409
2409
  side: "top",
2410
- children: /* @__PURE__ */ Q(P, { children: "Choose editor" })
2410
+ children: /* @__PURE__ */ Q(S, { children: "Choose editor" })
2411
2411
  }), r[112] = at) : at = r[112];
2412
2412
  let ot;
2413
- r[113] === it ? ot = r[114] : (ot = /* @__PURE__ */ $(D, { children: [it, at] }), r[113] = it, r[114] = ot);
2413
+ r[113] === it ? ot = r[114] : (ot = /* @__PURE__ */ $(E, { children: [it, at] }), r[113] = it, r[114] = ot);
2414
2414
  let st;
2415
- r[115] === I ? st = r[116] : (st = I ? { anchor: ae } : {}, r[115] = I, r[116] = st);
2416
- let ct = I ? "w-(--anchor-width)" : void 0, lt;
2415
+ r[115] === F ? st = r[116] : (st = F ? { anchor: ae } : {}, r[115] = F, r[116] = st);
2416
+ let ct = F ? "w-(--anchor-width)" : void 0, lt;
2417
2417
  r[117] !== U || r[118] !== st || r[119] !== ct ? (lt = /* @__PURE__ */ Q(a, {
2418
2418
  align: "end",
2419
2419
  ...st,
@@ -2421,13 +2421,13 @@ var ta = Xt(function(n) {
2421
2421
  children: U
2422
2422
  }), r[117] = U, r[118] = st, r[119] = ct, r[120] = lt) : lt = r[120];
2423
2423
  let ut;
2424
- r[121] !== ue || r[122] !== fe || r[123] !== ot || r[124] !== lt ? (ut = /* @__PURE__ */ $(d, {
2424
+ r[121] !== ue || r[122] !== fe || r[123] !== ot || r[124] !== lt ? (ut = /* @__PURE__ */ $(u, {
2425
2425
  open: ue,
2426
2426
  onOpenChange: fe,
2427
2427
  children: [ot, lt]
2428
2428
  }), r[121] = ue, r[122] = fe, r[123] = ot, r[124] = lt, r[125] = ut) : ut = r[125];
2429
2429
  let dt;
2430
- return r[126] !== ie || r[127] !== ze || r[128] !== Y || r[129] !== Je || r[130] !== Ye || r[131] !== ut ? (dt = /* @__PURE__ */ $(ie, {
2430
+ return r[126] !== I || r[127] !== ze || r[128] !== Y || r[129] !== Je || r[130] !== Ye || r[131] !== ut ? (dt = /* @__PURE__ */ $(I, {
2431
2431
  "aria-label": ze,
2432
2432
  role: "group",
2433
2433
  ...Y,
@@ -2436,6 +2436,6 @@ var ta = Xt(function(n) {
2436
2436
  Ye,
2437
2437
  ut
2438
2438
  ]
2439
- }), r[126] = ie, r[127] = ze, r[128] = Y, r[129] = Je, r[130] = Ye, r[131] = ut, r[132] = dt) : dt = r[132], dt;
2439
+ }), r[126] = I, r[127] = ze, r[128] = Y, r[129] = Je, r[130] = Ye, r[131] = ut, r[132] = dt) : dt = r[132], dt;
2440
2440
  });
2441
2441
  export { Jn as A, Sn as B, Mr as C, ur as D, Ar as E, jn as F, zn as G, Dn as H, On as I, vn as J, sn as K, kn as L, qn as M, ar as N, nr as O, cr as P, En as R, jr as S, Tr as T, In as U, Mn as V, Rn as W, Jr as _, Ii as a, zr as b, Ci as c, ki as d, Di as f, ai as g, hi as h, Fi as i, er as j, tr as k, wi as l, _i as m, Ri as n, Ni as o, Ai as p, _n as q, zi as r, Mi as s, ta as t, Oi as u, Qr as v, vr as w, Fr as x, Wr as y, An as z };