@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,10 +1,10 @@
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 { $s as i, Ag as a, Ar as o, Br as s, Dg as c, Dr as l, F as u, Fr as d, Gh as f, Gr as p, Hr as m, Ir as h, Lr as g, Mr as _, Oc as v, Or as y, Qs as b, S_ as ee, Tf as x, Ur as S, Vr as C, Wr as te, Xs as ne, b_ as re, ci as w, gr as T, hf as E, hr as D, jr as O, l as ie, rf as k, t as A, wf as ae, x_ as oe, y_ as j, yr as M } from "./utils-515nQ17G.js";
4
- import { Co as N, b as P, br as se, mr as ce, t as F } from "./keybindings-C5tK_GAk.js";
5
- import { mt as I } from "./themePalette-Dl_7omVL.js";
6
- import { u as L } from "./network-BbwqRm8c.js";
7
- import { F as R, M as z, N as B, On as le, Rt as ue, Sn as de, St as fe, Tt as pe, Z as V, bn as me, fn as he, gn as ge, hn as H, j as _e, nt as ve, pn as ye, tt as U, vn as be, wn as xe, xn as Se, yn as Ce } from "./threadSearch-BHyWwcV3.js";
3
+ import { $s as i, Ar as a, Br as o, C_ as s, Dr as c, Ef as l, F as u, Fr as d, Gr as f, Hr as p, Ir as m, Kh as h, Lr as g, Mr as _, Oc as v, Og as y, Or as b, Qs as x, S_ as ee, Tf as S, Ur as te, Vr as C, Wr as ne, Xs as re, b_ as w, ci as T, gf as E, gr as D, hr as O, if as k, jg as ie, jr as A, l as j, t as ae, x_ as oe, yr as M } from "./utils-DtKQl-D3.js";
4
+ import { Co as N, b as P, br as se, mr as ce, t as F } from "./keybindings-D0pBlT1k.js";
5
+ import { mt as I } from "./themePalette-C-GtwwqV.js";
6
+ import { u as L } from "./network-wuXD7-is.js";
7
+ import { F as R, M as z, N as B, On as le, Rt as ue, Sn as de, St as fe, Tt as pe, Z as V, bn as me, fn as he, gn as ge, hn as H, j as _e, nt as ve, pn as ye, tt as U, vn as be, wn as xe, xn as Se, yn as Ce } from "./threadSearch-CrtCof6n.js";
8
8
  import { i as we } from "./imageCompression-BVPdiGdq.js";
9
9
  import { n as Te, t as Ee } from "./external-link-BJbZG79p.js";
10
10
  import { i as De } from "./unlink-2-CRzwRyat.js";
@@ -17,21 +17,21 @@ import { t as Pe } from "./plus-CewHlT33.js";
17
17
  import { t as q } from "./radio-tower-DXL47IoZ.js";
18
18
  import { t as Fe } from "./rotate-ccw-D7iJyjIR.js";
19
19
  import { t as Ie } from "./x-Bjr9Dwvl.js";
20
- import "./errors-DrFQSJW3.js";
21
- import { M as Le, j as Re, r as ze, z as Be } from "./useSettings-DYG9Dmro.js";
22
- import { s as J, w as Ve } from "./presentation-D9mVPBHm.js";
20
+ import "./errors-D8_Zn8KN.js";
21
+ import { M as Le, j as Re, r as ze, z as Be } from "./useSettings-B_MtcTyD.js";
22
+ import { s as J, w as Ve } from "./presentation-68y8EAuH.js";
23
23
  import { t as He } from "./useStableCallback-kf0xbSaG.js";
24
24
  import { t as Ue } from "./toastHelpers-BzWu4Odu.js";
25
- import { t as We } from "./use-atom-command-ByoYq_K6.js";
26
- import { A as Ge, D as Ke, E as qe, O as Je, P as Ye, S as Xe, T as Ze, _ as Qe, b as $e, c as et, d as tt, f as nt, g as rt, h as it, i as at, j as Y, k as ot, l as st, n as ct, o as lt, r as ut, s as dt, x as ft, y as pt } from "./PreviewFaviconIcon-zFOuzIxe.js";
27
- import { o as mt, r as ht, s as gt, t as _t } from "./PreviewPanelShell-DhXLeN5j.js";
28
- import { F as vt } from "./workspaceFocus-BV1_9KiH.js";
29
- import { In as yt, V as bt, b as xt, i as St, rt as Ct, t as wt } from "./fileExplorerLabel-AikEChiS.js";
25
+ import { t as We } from "./use-atom-command-XemtT1Gv.js";
26
+ import { A as Ge, D as Ke, E as qe, O as Je, P as Ye, S as Xe, T as Ze, _ as Qe, b as $e, c as et, d as tt, f as nt, g as rt, h as it, i as at, j as Y, k as ot, l as st, n as ct, o as lt, r as ut, s as dt, x as ft, y as pt } from "./PreviewFaviconIcon-BwYKB-3e.js";
27
+ import { o as mt, r as ht, s as gt, t as _t } from "./PreviewPanelShell-Dezxjg0T.js";
28
+ import { F as vt } from "./workspaceFocus-MR1plm6A.js";
29
+ import { In as yt, V as bt, b as xt, i as St, rt as Ct, t as wt } from "./fileExplorerLabel-Cfz-3q1U.js";
30
30
  import { t as Tt } from "./observeResize-DRQ9DVLE.js";
31
- import { t as Et } from "./refresh-icon-BYx64to1.js";
32
- import { t as Dt } from "./RelativeTime-BMRprQS8.js";
33
- import { a as Ot, n as X, r as kt, t as At } from "./input-group-DEJEuwc9.js";
34
- import { a as jt, o as Z, r as Mt, t as Nt } from "./empty-Bm5EzcG8.js";
31
+ import { t as Et } from "./refresh-icon-Vo5ImiQL.js";
32
+ import { t as Dt } from "./RelativeTime-B_yprjav.js";
33
+ import { a as Ot, n as X, r as kt, t as At } from "./input-group-BZ_QN-y7.js";
34
+ import { a as jt, o as Z, r as Mt, t as Nt } from "./empty-ChM6gdzn.js";
35
35
  import { n as Pt, t as Ft } from "./discovery-list-BGCUTUmY.js";
36
36
  import { useEffect as It, useEffectEvent as Lt, useRef as Rt, useState as zt } from "react";
37
37
  import { c as Bt } from "react/compiler-runtime";
@@ -55,49 +55,49 @@ function Wt(e) {
55
55
  }
56
56
  // src/components/preview/PreviewAnnotationSpeech.tsx
57
57
  function Gt(e) {
58
- let t = Bt(76), { threadRef: n, tabId: i, config: a, keybindings: o } = e, s = ee(), l = oe(), d = Vt(), f = ue(n), p;
58
+ let t = Bt(76), { threadRef: n, tabId: i, config: a, keybindings: o } = e, c = s(), l = ee(), d = Vt(), f = ue(n), p;
59
59
  t[0] === n ? p = t[1] : (p = (e) => e.getDraftThreadByRef(n), t[0] = n, t[1] = p);
60
60
  let m = u(p), h = f?.projectId ?? m?.projectId ?? null, g;
61
- t[2] !== h || t[3] !== n.environmentId ? (g = h ? c(n.environmentId, h) : null, t[2] = h, t[3] = n.environmentId, t[4] = g) : g = t[4];
61
+ t[2] !== h || t[3] !== n.environmentId ? (g = h ? y(n.environmentId, h) : null, t[2] = h, t[3] = n.environmentId, t[4] = g) : g = t[4];
62
62
  let _ = pe(g), v;
63
63
  t[5] === Symbol.for("react.memo_cache_sentinel") ? (v = {
64
64
  text: "",
65
65
  cursor: 0,
66
66
  selectionEnd: 0
67
67
  }, t[5] = v) : v = t[5];
68
- let y = Rt(v), b = Rt(null), x = Rt(!1), S, C;
69
- t[6] === Symbol.for("react.memo_cache_sentinel") ? (S = () => {
68
+ let b = Rt(v), x = Rt(null), S = Rt(!1), te, C;
69
+ t[6] === Symbol.for("react.memo_cache_sentinel") ? (te = () => {
70
70
  let e = () => {
71
- x.current = !1;
71
+ S.current = !1;
72
72
  };
73
73
  return window.addEventListener("focus", e), window.addEventListener("focusin", e), () => {
74
74
  window.removeEventListener("focus", e), window.removeEventListener("focusin", e);
75
75
  };
76
- }, C = [], t[6] = S, t[7] = C) : (S = t[6], C = t[7]), It(S, C);
77
- let te = n.environmentId, ne;
78
- t[8] !== a.sessionId || t[9] !== i || t[10] !== n ? (ne = JSON.stringify([
76
+ }, C = [], t[6] = te, t[7] = C) : (te = t[6], C = t[7]), It(te, C);
77
+ let ne = n.environmentId, re;
78
+ t[8] !== a.sessionId || t[9] !== i || t[10] !== n ? (re = JSON.stringify([
79
79
  "preview-annotation",
80
80
  n,
81
81
  i,
82
82
  a.sessionId
83
- ]), t[8] = a.sessionId, t[9] = i, t[10] = n, t[11] = ne) : ne = t[11];
84
- let re;
85
- t[12] === Symbol.for("react.memo_cache_sentinel") ? (re = () => ({
86
- text: y.current.text,
83
+ ]), t[8] = a.sessionId, t[9] = i, t[10] = n, t[11] = re) : re = t[11];
84
+ let w;
85
+ t[12] === Symbol.for("react.memo_cache_sentinel") ? (w = () => ({
86
+ text: b.current.text,
87
87
  selection: {
88
- start: y.current.cursor,
89
- end: y.current.selectionEnd
88
+ start: b.current.cursor,
89
+ end: b.current.selectionEnd
90
90
  }
91
- }), t[12] = re) : re = t[12];
92
- let w = St({
93
- environmentId: te,
91
+ }), t[12] = w) : w = t[12];
92
+ let T = St({
93
+ environmentId: ne,
94
94
  projectId: h,
95
95
  projectName: _?.title,
96
- ownerKey: ne,
96
+ ownerKey: re,
97
97
  offerSetup: !1,
98
- readDraft: re,
98
+ readDraft: w,
99
99
  commitDraft: (e, t) => {
100
- y.current = {
100
+ b.current = {
101
101
  text: e,
102
102
  cursor: t.start,
103
103
  selectionEnd: t.end
@@ -106,53 +106,53 @@ function Gt(e) {
106
106
  cursor: t.start
107
107
  });
108
108
  }
109
- }), T;
110
- t[13] === Symbol.for("react.memo_cache_sentinel") ? (T = (e) => (b.current = e, () => {
111
- b.current = null;
112
- }), t[13] = T) : T = t[13];
113
- let E = He(T), D;
114
- t[14] === Symbol.for("react.memo_cache_sentinel") ? (D = () => x.current, t[14] = D) : D = t[14];
115
- let O;
116
- t[15] !== o || t[16] !== w || t[17] !== E ? (O = {
109
+ }), E;
110
+ t[13] === Symbol.for("react.memo_cache_sentinel") ? (E = (e) => (x.current = e, () => {
111
+ x.current = null;
112
+ }), t[13] = E) : E = t[13];
113
+ let D = He(E), O;
114
+ t[14] === Symbol.for("react.memo_cache_sentinel") ? (O = () => S.current, t[14] = O) : O = t[14];
115
+ let k;
116
+ t[15] !== o || t[16] !== T || t[17] !== D ? (k = {
117
117
  keybindings: o,
118
- speech: w,
118
+ speech: T,
119
119
  disabled: !1,
120
120
  terminalOpen: !1,
121
121
  modelPickerOpen: !1,
122
122
  previewFocus: !0,
123
- ownsFocus: D,
124
- subscribeKeys: E
125
- }, t[15] = o, t[16] = w, t[17] = E, t[18] = O) : O = t[18];
126
- let ie = xt(O), { available: k, state: A, preview: ae, freezesEditor: j, blocksSubmission: M, level: N } = w, P = a.sessionId, se = A.phase, ce = A.errorAction, F;
127
- t[19] !== l || t[20] !== A ? (F = Ct(A, null, l), t[19] = l, t[20] = A, t[21] = F) : F = t[21];
123
+ ownsFocus: O,
124
+ subscribeKeys: D
125
+ }, t[15] = o, t[16] = T, t[17] = D, t[18] = k) : k = t[18];
126
+ let ie = xt(k), { available: A, state: j, preview: ae, freezesEditor: oe, blocksSubmission: M, level: N } = T, P = a.sessionId, se = j.phase, ce = j.errorAction, F;
127
+ t[19] !== l || t[20] !== j ? (F = Ct(j, null, l), t[19] = l, t[20] = j, t[21] = F) : F = t[21];
128
128
  let I = ae ? ae.committed + ae.tentative : null, R;
129
- t[22] !== k || t[23] !== M || t[24] !== a.sessionId || t[25] !== j || t[26] !== N || t[27] !== ie || t[28] !== A.errorAction || t[29] !== A.phase || t[30] !== F.status || t[31] !== I || t[32] !== i ? (R = {
129
+ t[22] !== A || t[23] !== M || t[24] !== a.sessionId || t[25] !== oe || t[26] !== N || t[27] !== ie || t[28] !== j.errorAction || t[29] !== j.phase || t[30] !== F.status || t[31] !== I || t[32] !== i ? (R = {
130
130
  tabId: i,
131
131
  sessionId: P,
132
- available: k,
132
+ available: A,
133
133
  phase: se,
134
134
  errorAction: ce,
135
135
  status: F.status,
136
136
  preview: I,
137
137
  level: N,
138
138
  shortcutLabel: ie,
139
- freezesEditor: j,
139
+ freezesEditor: oe,
140
140
  blocksSubmission: M
141
- }, t[22] = k, t[23] = M, t[24] = a.sessionId, t[25] = j, t[26] = N, t[27] = ie, t[28] = A.errorAction, t[29] = A.phase, t[30] = F.status, t[31] = I, t[32] = i, t[33] = R) : R = t[33];
141
+ }, t[22] = A, t[23] = M, t[24] = a.sessionId, t[25] = oe, t[26] = N, t[27] = ie, t[28] = j.errorAction, t[29] = j.phase, t[30] = F.status, t[31] = I, t[32] = i, t[33] = R) : R = t[33];
142
142
  let z = R, B;
143
- t[34] !== w || t[35] !== z ? (B = {
144
- speech: w,
143
+ t[34] !== T || t[35] !== z ? (B = {
144
+ speech: T,
145
145
  voiceState: z
146
- }, t[34] = w, t[35] = z, t[36] = B) : B = t[36];
146
+ }, t[34] = T, t[35] = z, t[36] = B) : B = t[36];
147
147
  let le = Rt(B), de;
148
- t[37] !== w || t[38] !== z ? (de = () => {
148
+ t[37] !== T || t[38] !== z ? (de = () => {
149
149
  le.current = {
150
- speech: w,
150
+ speech: T,
151
151
  voiceState: z
152
152
  };
153
- }, t[37] = w, t[38] = z, t[39] = de) : de = t[39], It(de);
153
+ }, t[37] = T, t[38] = z, t[39] = de) : de = t[39], It(de);
154
154
  let fe;
155
- t[40] === s ? fe = t[41] : (fe = async (e, t) => {
155
+ t[40] === c ? fe = t[41] : (fe = async (e, t) => {
156
156
  try {
157
157
  await Y?.annotationVoice.update({
158
158
  ...e,
@@ -162,11 +162,11 @@ function Gt(e) {
162
162
  let t = e;
163
163
  le.current.speech.cancel(), J.add({
164
164
  type: "error",
165
- title: s("Could not update annotation voice input"),
165
+ title: c("Could not update annotation voice input"),
166
166
  description: L(t, r) ?? String(t)
167
167
  });
168
168
  }
169
- }, t[40] = s, t[41] = fe);
169
+ }, t[40] = c, t[41] = fe);
170
170
  let V = He(fe), me;
171
171
  t[42] !== V || t[43] !== z ? (me = () => {
172
172
  V(z, null);
@@ -176,11 +176,11 @@ function Gt(e) {
176
176
  let ge;
177
177
  t[48] !== a.sessionId || t[49] !== d || t[50] !== V || t[51] !== i ? (ge = () => Y?.annotationVoice.onEvent((e, t) => {
178
178
  if (e !== i || t.sessionId !== a.sessionId) return;
179
- y.current = {
179
+ b.current = {
180
180
  text: t.text,
181
181
  cursor: Math.min(t.cursor, t.text.length),
182
182
  selectionEnd: Math.min(t.selectionEnd ?? t.cursor, t.text.length)
183
- }, (t.action === "focus" || t.action === "key" || t.action === "start") && (x.current = !0), t.action === "blur" && (x.current = !1);
183
+ }, (t.action === "focus" || t.action === "key" || t.action === "start") && (S.current = !0), t.action === "blur" && (S.current = !1);
184
184
  let n = le.current.speech;
185
185
  bb112: switch (t.action) {
186
186
  case "focus":
@@ -203,11 +203,11 @@ function Gt(e) {
203
203
  n.skipPostProcessing();
204
204
  break bb112;
205
205
  case "blur":
206
- b.current?.blur();
206
+ x.current?.blur();
207
207
  break bb112;
208
208
  case "key":
209
209
  if (!t.keyboard) break bb112;
210
- b.current?.[t.keyboard.type](new KeyboardEvent(t.keyboard.type, t.keyboard));
210
+ x.current?.[t.keyboard.type](new KeyboardEvent(t.keyboard.type, t.keyboard));
211
211
  }
212
212
  }), t[48] = a.sessionId, t[49] = d, t[50] = V, t[51] = i, t[52] = ge) : ge = t[52];
213
213
  let H;
@@ -218,39 +218,39 @@ function Gt(e) {
218
218
  d
219
219
  ], t[53] = a.sessionId, t[54] = d, t[55] = V, t[56] = i, t[57] = H) : H = t[57], It(ge, H);
220
220
  let _e, ve, ye;
221
- t[58] === w.setup ? (_e = t[59], ve = t[60], ye = t[61]) : (_e = () => void w.setup.download(), ve = () => void w.setup.cancelDownload(), ye = () => void w.setup.startRecording(), t[58] = w.setup, t[59] = _e, t[60] = ve, t[61] = ye);
221
+ t[58] === T.setup ? (_e = t[59], ve = t[60], ye = t[61]) : (_e = () => void T.setup.download(), ve = () => void T.setup.cancelDownload(), ye = () => void T.setup.startRecording(), t[58] = T.setup, t[59] = _e, t[60] = ve, t[61] = ye);
222
222
  let U;
223
- return t[62] !== w.setup.downloading || t[63] !== w.setup.error || t[64] !== w.setup.language || t[65] !== w.setup.model || t[66] !== w.setup.open || t[67] !== w.setup.retryCatalog || t[68] !== w.setup.setOpen || t[69] !== w.setup.step || t[70] !== w.status || t[71] !== w.transcriptionEnvironmentId || t[72] !== _e || t[73] !== ve || t[74] !== ye ? (U = /* @__PURE__ */ Q(bt, {
224
- environmentId: w.transcriptionEnvironmentId,
225
- open: w.setup.open,
226
- step: w.setup.step,
227
- status: w.status,
228
- model: w.setup.model,
229
- language: w.setup.language,
230
- downloading: w.setup.downloading,
231
- error: w.setup.error,
232
- onOpenChange: w.setup.setOpen,
233
- onRetryCatalog: w.setup.retryCatalog,
223
+ return t[62] !== T.setup.downloading || t[63] !== T.setup.error || t[64] !== T.setup.language || t[65] !== T.setup.model || t[66] !== T.setup.open || t[67] !== T.setup.retryCatalog || t[68] !== T.setup.setOpen || t[69] !== T.setup.step || t[70] !== T.status || t[71] !== T.transcriptionEnvironmentId || t[72] !== _e || t[73] !== ve || t[74] !== ye ? (U = /* @__PURE__ */ Q(bt, {
224
+ environmentId: T.transcriptionEnvironmentId,
225
+ open: T.setup.open,
226
+ step: T.setup.step,
227
+ status: T.status,
228
+ model: T.setup.model,
229
+ language: T.setup.language,
230
+ downloading: T.setup.downloading,
231
+ error: T.setup.error,
232
+ onOpenChange: T.setup.setOpen,
233
+ onRetryCatalog: T.setup.retryCatalog,
234
234
  onDownload: _e,
235
235
  onCancelDownload: ve,
236
236
  onStartRecording: ye
237
- }), t[62] = w.setup.downloading, t[63] = w.setup.error, t[64] = w.setup.language, t[65] = w.setup.model, t[66] = w.setup.open, t[67] = w.setup.retryCatalog, t[68] = w.setup.setOpen, t[69] = w.setup.step, t[70] = w.status, t[71] = w.transcriptionEnvironmentId, t[72] = _e, t[73] = ve, t[74] = ye, t[75] = U) : U = t[75], U;
237
+ }), t[62] = T.setup.downloading, t[63] = T.setup.error, t[64] = T.setup.language, t[65] = T.setup.model, t[66] = T.setup.open, t[67] = T.setup.retryCatalog, t[68] = T.setup.setOpen, t[69] = T.setup.step, t[70] = T.status, t[71] = T.transcriptionEnvironmentId, t[72] = _e, t[73] = ve, t[74] = ye, t[75] = U) : U = t[75], U;
238
238
  }
239
239
  // src/components/preview/PreviewChromeRow.tsx
240
240
  var Kt = () => {};
241
241
  function qt(e) {
242
- let t = Bt(114), { url: n, loading: r, canGoBack: i, canGoForward: a, refreshDisabled: o, inputDisabled: s, urlInputRef: c, onBack: l, onForward: u, onRefresh: d, onStopLoading: f, onSubmit: p, onOpenInBrowser: m, onCapture: h, captureDisabled: g, recording: _, onPictureInPicture: v, pictureInPicture: y, pictureInPictureDisabled: b, onPickElement: x, pickActive: S, pickDisabled: C, pickDisabledReason: te, trailingActions: ne, leadingActions: re } = e, E = ee(), [O, ie] = zt(n), [k, ae] = zt(!1), oe;
243
- t[0] !== O || t[1] !== c || t[2] !== p ? (oe = (e) => {
242
+ let t = Bt(114), { url: n, loading: r, canGoBack: i, canGoForward: a, refreshDisabled: o, inputDisabled: c, urlInputRef: l, onBack: u, onForward: d, onRefresh: f, onStopLoading: p, onSubmit: m, onOpenInBrowser: h, onCapture: g, captureDisabled: _, recording: v, onPictureInPicture: y, pictureInPicture: b, pictureInPictureDisabled: x, onPickElement: ee, pickActive: S, pickDisabled: te, pickDisabledReason: C, trailingActions: ne, leadingActions: re } = e, E = s(), [k, ie] = zt(n), [A, j] = zt(!1), oe;
243
+ t[0] !== k || t[1] !== l || t[2] !== m ? (oe = (e) => {
244
244
  e?.preventDefault();
245
- let t = O.trim();
246
- t.length !== 0 && (p(t), c.current?.blur());
247
- }, t[0] = O, t[1] = c, t[2] = p, t[3] = oe) : oe = t[3];
245
+ let t = k.trim();
246
+ t.length !== 0 && (m(t), l.current?.blur());
247
+ }, t[0] = k, t[1] = l, t[2] = m, t[3] = oe) : oe = t[3];
248
248
  let N = oe, P;
249
249
  t[4] === E ? P = t[5] : (P = E("Navigation"), t[4] = E, t[5] = P);
250
- let se = i ? l : Kt, ce = !i, F;
250
+ let se = i ? u : Kt, ce = !i, F;
251
251
  t[6] === E ? F = t[7] : (F = E("Back", { $context: "browser navigation" }), t[6] = E, t[7] = F);
252
252
  let I;
253
- t[8] !== se || t[9] !== ce || t[10] !== F ? (I = /* @__PURE__ */ Q(w, {
253
+ t[8] !== se || t[9] !== ce || t[10] !== F ? (I = /* @__PURE__ */ Q(T, {
254
254
  variant: "ghost",
255
255
  size: "icon-xs",
256
256
  onClick: se,
@@ -266,16 +266,16 @@ function qt(e) {
266
266
  children: L
267
267
  }), t[13] = I, t[14] = R);
268
268
  let z;
269
- t[15] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ Q(T, { children: /* @__PURE__ */ Q(j, {
269
+ t[15] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ Q(D, { children: /* @__PURE__ */ Q(w, {
270
270
  context: "browser navigation",
271
271
  children: "Back"
272
272
  }) }), t[15] = z) : z = t[15];
273
273
  let B;
274
- t[16] === R ? B = t[17] : (B = /* @__PURE__ */ $(D, { children: [R, z] }), t[16] = R, t[17] = B);
275
- let le = a ? u : Kt, ue = !a, de;
274
+ t[16] === R ? B = t[17] : (B = /* @__PURE__ */ $(O, { children: [R, z] }), t[16] = R, t[17] = B);
275
+ let le = a ? d : Kt, ue = !a, de;
276
276
  t[18] === E ? de = t[19] : (de = E("Forward", { $context: "browser navigation" }), t[18] = E, t[19] = de);
277
277
  let fe;
278
- t[20] !== le || t[21] !== ue || t[22] !== de ? (fe = /* @__PURE__ */ Q(w, {
278
+ t[20] !== le || t[21] !== ue || t[22] !== de ? (fe = /* @__PURE__ */ Q(T, {
279
279
  variant: "ghost",
280
280
  size: "icon-xs",
281
281
  onClick: le,
@@ -291,16 +291,16 @@ function qt(e) {
291
291
  children: pe
292
292
  }), t[25] = fe, t[26] = V);
293
293
  let me;
294
- t[27] === Symbol.for("react.memo_cache_sentinel") ? (me = /* @__PURE__ */ Q(T, { children: /* @__PURE__ */ Q(j, {
294
+ t[27] === Symbol.for("react.memo_cache_sentinel") ? (me = /* @__PURE__ */ Q(D, { children: /* @__PURE__ */ Q(w, {
295
295
  context: "browser navigation",
296
296
  children: "Forward"
297
297
  }) }), t[27] = me) : me = t[27];
298
298
  let he;
299
- t[28] === V ? he = t[29] : (he = /* @__PURE__ */ $(D, { children: [V, me] }), t[28] = V, t[29] = he);
300
- let ge = o ? Kt : r ? f : d, H;
299
+ t[28] === V ? he = t[29] : (he = /* @__PURE__ */ $(O, { children: [V, me] }), t[28] = V, t[29] = he);
300
+ let ge = o ? Kt : r ? p : f, H;
301
301
  t[30] !== E || t[31] !== r ? (H = r ? E("Stop", { $context: "stop loading the page" }) : E("Refresh"), t[30] = E, t[31] = r, t[32] = H) : H = t[32];
302
302
  let _e;
303
- t[33] !== o || t[34] !== ge || t[35] !== H ? (_e = /* @__PURE__ */ Q(w, {
303
+ t[33] !== o || t[34] !== ge || t[35] !== H ? (_e = /* @__PURE__ */ Q(T, {
304
304
  variant: "ghost",
305
305
  size: "icon-xs",
306
306
  onClick: ge,
@@ -318,9 +318,9 @@ function qt(e) {
318
318
  let U;
319
319
  t[42] !== E || t[43] !== r ? (U = r ? E("Stop", { $context: "stop loading the page" }) : E("Refresh"), t[42] = E, t[43] = r, t[44] = U) : U = t[44];
320
320
  let be;
321
- t[45] === U ? be = t[46] : (be = /* @__PURE__ */ Q(T, { children: U }), t[45] = U, t[46] = be);
321
+ t[45] === U ? be = t[46] : (be = /* @__PURE__ */ Q(D, { children: U }), t[45] = U, t[46] = be);
322
322
  let xe;
323
- t[47] !== ye || t[48] !== be ? (xe = /* @__PURE__ */ $(D, { children: [ye, be] }), t[47] = ye, t[48] = be, t[49] = xe) : xe = t[49];
323
+ t[47] !== ye || t[48] !== be ? (xe = /* @__PURE__ */ $(O, { children: [ye, be] }), t[47] = ye, t[48] = be, t[49] = xe) : xe = t[49];
324
324
  let Se;
325
325
  t[50] !== B || t[51] !== he || t[52] !== P || t[53] !== xe ? (Se = /* @__PURE__ */ $("div", {
326
326
  className: "flex items-center gap-0.5",
@@ -332,27 +332,27 @@ function qt(e) {
332
332
  xe
333
333
  ]
334
334
  }), t[50] = B, t[51] = he, t[52] = P, t[53] = xe, t[54] = Se) : Se = t[54];
335
- let Ce = k ? O : n, we;
335
+ let Ce = A ? k : n, we;
336
336
  t[55] === Symbol.for("react.memo_cache_sentinel") ? (we = (e) => ie(e.target.value), t[55] = we) : we = t[55];
337
337
  let Ae;
338
- t[56] !== c || t[57] !== n ? (Ae = () => {
339
- ie(n), ae(!0), queueMicrotask(() => c.current?.select());
340
- }, t[56] = c, t[57] = n, t[58] = Ae) : Ae = t[58];
338
+ t[56] !== l || t[57] !== n ? (Ae = () => {
339
+ ie(n), j(!0), queueMicrotask(() => l.current?.select());
340
+ }, t[56] = l, t[57] = n, t[58] = Ae) : Ae = t[58];
341
341
  let je;
342
342
  t[59] === Symbol.for("react.memo_cache_sentinel") ? (je = () => {
343
- ae(!1);
343
+ j(!1);
344
344
  }, t[59] = je) : je = t[59];
345
345
  let Me;
346
- t[60] !== c || t[61] !== N || t[62] !== n ? (Me = (e) => {
347
- e.nativeEvent.isComposing || e.keyCode === 229 ? e.key === "Enter" && e.preventDefault() : (e.key === "Enter" && N(e), e.key === "Escape" && (e.preventDefault(), ie(n), c.current?.blur()));
348
- }, t[60] = c, t[61] = N, t[62] = n, t[63] = Me) : Me = t[63];
346
+ t[60] !== l || t[61] !== N || t[62] !== n ? (Me = (e) => {
347
+ e.nativeEvent.isComposing || e.keyCode === 229 ? e.key === "Enter" && e.preventDefault() : (e.key === "Enter" && N(e), e.key === "Escape" && (e.preventDefault(), ie(n), l.current?.blur()));
348
+ }, t[60] = l, t[61] = N, t[62] = n, t[63] = Me) : Me = t[63];
349
349
  let W;
350
350
  t[64] === E ? W = t[65] : (W = E("Search or enter URL"), t[64] = E, t[65] = W);
351
351
  let Ne;
352
352
  t[66] === E ? Ne = t[67] : (Ne = E("Search or enter URL"), t[66] = E, t[67] = Ne);
353
353
  let K;
354
- t[68] !== s || t[69] !== c || t[70] !== Ce || t[71] !== Ae || t[72] !== Me || t[73] !== W || t[74] !== Ne ? (K = /* @__PURE__ */ Q(D, { children: /* @__PURE__ */ Q(M, { render: /* @__PURE__ */ Q(kt, {
355
- ref: c,
354
+ t[68] !== c || t[69] !== l || t[70] !== Ce || t[71] !== Ae || t[72] !== Me || t[73] !== W || t[74] !== Ne ? (K = /* @__PURE__ */ Q(O, { children: /* @__PURE__ */ Q(M, { render: /* @__PURE__ */ Q(kt, {
355
+ ref: l,
356
356
  value: Ce,
357
357
  onChange: we,
358
358
  onFocus: Ae,
@@ -362,27 +362,27 @@ function qt(e) {
362
362
  "aria-label": Ne,
363
363
  "data-workspace-focus-default": !0,
364
364
  spellCheck: !1,
365
- disabled: s,
365
+ disabled: c,
366
366
  "data-preview-url-input": !0,
367
367
  size: "sm"
368
- }) }) }), t[68] = s, t[69] = c, t[70] = Ce, t[71] = Ae, t[72] = Me, t[73] = W, t[74] = Ne, t[75] = K) : K = t[75];
368
+ }) }) }), t[68] = c, t[69] = l, t[70] = Ce, t[71] = Ae, t[72] = Me, t[73] = W, t[74] = Ne, t[75] = K) : K = t[75];
369
369
  let Pe;
370
- t[76] !== E || t[77] !== k || t[78] !== m ? (Pe = m && !k ? /* @__PURE__ */ Q(X, {
370
+ t[76] !== E || t[77] !== A || t[78] !== h ? (Pe = h && !A ? /* @__PURE__ */ Q(X, {
371
371
  align: "inline-end",
372
372
  children: /* @__PURE__ */ Q("span", {
373
373
  className: "pointer-events-none flex opacity-0 transition-opacity focus-within:pointer-events-auto focus-within:opacity-100 group-hover/address:pointer-events-auto group-hover/address:opacity-100",
374
- children: /* @__PURE__ */ $(D, { children: [/* @__PURE__ */ Q(M, {
375
- render: /* @__PURE__ */ Q(w, {
374
+ children: /* @__PURE__ */ $(O, { children: [/* @__PURE__ */ Q(M, {
375
+ render: /* @__PURE__ */ Q(T, {
376
376
  variant: "ghost",
377
377
  size: "icon-xs",
378
- onClick: m,
378
+ onClick: h,
379
379
  "aria-label": E("Open in system browser"),
380
380
  type: "button"
381
381
  }),
382
382
  children: /* @__PURE__ */ Q(Ee, {})
383
- }), /* @__PURE__ */ Q(T, { children: /* @__PURE__ */ Q(j, { children: "Open in system browser" }) })] })
383
+ }), /* @__PURE__ */ Q(D, { children: /* @__PURE__ */ Q(w, { children: "Open in system browser" }) })] })
384
384
  })
385
- }) : null, t[76] = E, t[77] = k, t[78] = m, t[79] = Pe) : Pe = t[79];
385
+ }) : null, t[76] = E, t[77] = A, t[78] = h, t[79] = Pe) : Pe = t[79];
386
386
  let q;
387
387
  t[80] !== K || t[81] !== Pe ? (q = /* @__PURE__ */ $(At, {
388
388
  variant: "ghost",
@@ -390,44 +390,44 @@ function qt(e) {
390
390
  children: [K, Pe]
391
391
  }), t[80] = K, t[81] = Pe, t[82] = q) : q = t[82];
392
392
  let Fe;
393
- t[83] !== E || t[84] !== x || t[85] !== S || t[86] !== C || t[87] !== te ? (Fe = x ? /* @__PURE__ */ $(D, { children: [/* @__PURE__ */ Q(M, {
394
- render: /* @__PURE__ */ Q(w, {
393
+ t[83] !== E || t[84] !== ee || t[85] !== S || t[86] !== te || t[87] !== C ? (Fe = ee ? /* @__PURE__ */ $(O, { children: [/* @__PURE__ */ Q(M, {
394
+ render: /* @__PURE__ */ Q(T, {
395
395
  variant: S ? "secondary" : "ghost",
396
396
  size: "icon-xs",
397
- onClick: x,
398
- disabled: C,
397
+ onClick: ee,
398
+ disabled: te,
399
399
  "aria-label": E(S ? "Cancel annotation" : "Annotate preview"),
400
400
  "aria-pressed": S ? "true" : "false",
401
401
  type: "button"
402
402
  }),
403
- children: /* @__PURE__ */ Q(G, { className: A(S && "text-primary") })
404
- }), /* @__PURE__ */ Q(T, { children: C && te ? te : E(S ? "Cancel annotation (Esc)" : "Annotate elements, regions, and drawings") })] }) : null, t[83] = E, t[84] = x, t[85] = S, t[86] = C, t[87] = te, t[88] = Fe) : Fe = t[88];
403
+ children: /* @__PURE__ */ Q(G, { className: ae(S && "text-primary") })
404
+ }), /* @__PURE__ */ Q(D, { children: te && C ? C : E(S ? "Cancel annotation (Esc)" : "Annotate elements, regions, and drawings") })] }) : null, t[83] = E, t[84] = ee, t[85] = S, t[86] = te, t[87] = C, t[88] = Fe) : Fe = t[88];
405
405
  let Ie;
406
- t[89] !== g || t[90] !== E || t[91] !== h || t[92] !== _ ? (Ie = h ? /* @__PURE__ */ $(D, { children: [/* @__PURE__ */ $(M, {
407
- render: /* @__PURE__ */ Q(w, {
408
- variant: _ ? "secondary" : "ghost",
406
+ t[89] !== _ || t[90] !== E || t[91] !== g || t[92] !== v ? (Ie = g ? /* @__PURE__ */ $(O, { children: [/* @__PURE__ */ $(M, {
407
+ render: /* @__PURE__ */ Q(T, {
408
+ variant: v ? "secondary" : "ghost",
409
409
  size: "icon-xs",
410
- onClick: (e) => h(e.shiftKey),
411
- "aria-label": E(_ ? "Stop recording" : "Capture screenshot"),
410
+ onClick: (e) => g(e.shiftKey),
411
+ "aria-label": E(v ? "Stop recording" : "Capture screenshot"),
412
412
  type: "button",
413
413
  className: "relative",
414
- disabled: g
414
+ disabled: _
415
415
  }),
416
- children: [/* @__PURE__ */ Q(Oe, { className: A(_ && "text-destructive") }), _ ? /* @__PURE__ */ Q("span", { className: "absolute right-0.5 top-0.5 size-1.5 motion-safe:animate-status-pulse rounded-full bg-destructive" }) : null]
417
- }), /* @__PURE__ */ Q(T, { children: E(_ ? "Stop recording" : "Screenshot · Shift-click to record") })] }) : null, t[89] = g, t[90] = E, t[91] = h, t[92] = _, t[93] = Ie) : Ie = t[93];
416
+ children: [/* @__PURE__ */ Q(Oe, { className: ae(v && "text-destructive") }), v ? /* @__PURE__ */ Q("span", { className: "absolute right-0.5 top-0.5 size-1.5 motion-safe:animate-status-pulse rounded-full bg-destructive" }) : null]
417
+ }), /* @__PURE__ */ Q(D, { children: E(v ? "Stop recording" : "Screenshot · Shift-click to record") })] }) : null, t[89] = _, t[90] = E, t[91] = g, t[92] = v, t[93] = Ie) : Ie = t[93];
418
418
  let Le;
419
- t[94] !== E || t[95] !== v || t[96] !== y || t[97] !== b ? (Le = v ? /* @__PURE__ */ $(D, { children: [/* @__PURE__ */ Q(M, {
420
- render: /* @__PURE__ */ Q(w, {
421
- variant: y ? "secondary" : "ghost",
419
+ t[94] !== E || t[95] !== y || t[96] !== b || t[97] !== x ? (Le = y ? /* @__PURE__ */ $(O, { children: [/* @__PURE__ */ Q(M, {
420
+ render: /* @__PURE__ */ Q(T, {
421
+ variant: b ? "secondary" : "ghost",
422
422
  size: "icon-xs",
423
- onClick: v,
424
- "aria-label": E(y ? "Close floating preview" : "Float preview over chat"),
425
- "aria-pressed": y ? "true" : "false",
423
+ onClick: y,
424
+ "aria-label": E(b ? "Close floating preview" : "Float preview over chat"),
425
+ "aria-pressed": b ? "true" : "false",
426
426
  type: "button",
427
- disabled: b
427
+ disabled: x
428
428
  }),
429
- children: /* @__PURE__ */ Q(ke, { className: A(y && "text-primary") })
430
- }), /* @__PURE__ */ Q(T, { children: E(y ? "Close floating preview" : "Float preview over chat") })] }) : null, t[94] = E, t[95] = v, t[96] = y, t[97] = b, t[98] = Le) : Le = t[98];
429
+ children: /* @__PURE__ */ Q(ke, { className: ae(b && "text-primary") })
430
+ }), /* @__PURE__ */ Q(D, { children: E(b ? "Close floating preview" : "Float preview over chat") })] }) : null, t[94] = E, t[95] = y, t[96] = b, t[97] = x, t[98] = Le) : Le = t[98];
431
431
  let Re;
432
432
  t[99] !== re || t[100] !== N || t[101] !== Se || t[102] !== q || t[103] !== Fe || t[104] !== Ie || t[105] !== Le || t[106] !== ne ? (Re = /* @__PURE__ */ $("form", {
433
433
  onSubmit: N,
@@ -460,7 +460,7 @@ function qt(e) {
460
460
  }
461
461
  // src/components/preview/PreviewLocalServerCard.tsx
462
462
  function Jt(e) {
463
- let t = Bt(11), { threadRef: n, server: r, onOpen: i } = e, a = oe(), o;
463
+ let t = Bt(11), { threadRef: n, server: r, onOpen: i } = e, a = ee(), o;
464
464
  t[0] !== a || t[1] !== r ? (o = Yt(r, a), t[0] = a, t[1] = r, t[2] = o) : o = t[2];
465
465
  let s = o, c;
466
466
  t[3] !== r.requestedUrl || t[4] !== n ? (c = /* @__PURE__ */ Q(ct, {
@@ -480,54 +480,54 @@ function Yt(e, t) {
480
480
  }
481
481
  // src/components/preview/PreviewRecentUrlCard.tsx
482
482
  function Xt(e) {
483
- let t = Bt(29), { threadRef: n, entry: r, onOpen: i, onRemove: a } = e, o = ee(), s;
484
- t[0] === r.url ? s = t[1] : (s = new URL(r.url), t[0] = r.url, t[1] = s);
485
- let c = s, l = c.pathname === "/" ? "" : c.pathname, u = `${c.host}${l}${c.search}${c.hash}`, d;
486
- t[2] === r.lastVisitedAt ? d = t[3] : (d = _e(r.lastVisitedAt) ? /* @__PURE__ */ Q(Dt, { timestamp: new Date(r.lastVisitedAt).toISOString() }) : null, t[2] = r.lastVisitedAt, t[3] = d);
487
- let f = d, p;
488
- t[4] !== r.url || t[5] !== n ? (p = /* @__PURE__ */ Q(ct, {
483
+ let t = Bt(29), { threadRef: n, entry: r, onOpen: i, onRemove: a } = e, o = s(), c;
484
+ t[0] === r.url ? c = t[1] : (c = new URL(r.url), t[0] = r.url, t[1] = c);
485
+ let l = c, u = l.pathname === "/" ? "" : l.pathname, d = `${l.host}${u}${l.search}${l.hash}`, f;
486
+ t[2] === r.lastVisitedAt ? f = t[3] : (f = _e(r.lastVisitedAt) ? /* @__PURE__ */ Q(Dt, { timestamp: new Date(r.lastVisitedAt).toISOString() }) : null, t[2] = r.lastVisitedAt, t[3] = f);
487
+ let p = f, m;
488
+ t[4] !== r.url || t[5] !== n ? (m = /* @__PURE__ */ Q(ct, {
489
489
  threadRef: n,
490
490
  url: r.url
491
- }), t[4] = r.url, t[5] = n, t[6] = p) : p = t[6];
492
- let m = r.title ?? u, h;
493
- t[7] === m ? h = t[8] : (h = /* @__PURE__ */ Q("span", {
491
+ }), t[4] = r.url, t[5] = n, t[6] = m) : m = t[6];
492
+ let h = r.title ?? d, g;
493
+ t[7] === h ? g = t[8] : (g = /* @__PURE__ */ Q("span", {
494
494
  className: "truncate text-sm font-medium text-foreground",
495
- children: m
496
- }), t[7] = m, t[8] = h);
497
- let g = r.title ? `${u} · ` : "", _;
498
- t[9] !== g || t[10] !== f ? (_ = /* @__PURE__ */ $("span", {
495
+ children: h
496
+ }), t[7] = h, t[8] = g);
497
+ let _ = r.title ? `${d} · ` : "", v;
498
+ t[9] !== _ || t[10] !== p ? (v = /* @__PURE__ */ $("span", {
499
499
  className: "truncate text-xs text-muted-foreground",
500
- children: [g, f]
501
- }), t[9] = g, t[10] = f, t[11] = _) : _ = t[11];
502
- let v;
503
- t[12] !== h || t[13] !== _ ? (v = /* @__PURE__ */ $("div", {
504
- className: "flex min-w-0 flex-1 flex-col",
505
- children: [h, _]
506
- }), t[12] = h, t[13] = _, t[14] = v) : v = t[14];
500
+ children: [_, p]
501
+ }), t[9] = _, t[10] = p, t[11] = v) : v = t[11];
507
502
  let y;
508
- t[15] !== i || t[16] !== p || t[17] !== v ? (y = /* @__PURE__ */ $("button", {
503
+ t[12] !== g || t[13] !== v ? (y = /* @__PURE__ */ $("div", {
504
+ className: "flex min-w-0 flex-1 flex-col",
505
+ children: [g, v]
506
+ }), t[12] = g, t[13] = v, t[14] = y) : y = t[14];
507
+ let b;
508
+ t[15] !== i || t[16] !== m || t[17] !== y ? (b = /* @__PURE__ */ $("button", {
509
509
  type: "button",
510
510
  onClick: i,
511
511
  className: "flex w-full items-center gap-3 px-3 py-3 pr-10 text-left hover:bg-accent/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",
512
- children: [p, v]
513
- }), t[15] = i, t[16] = p, t[17] = v, t[18] = y) : y = t[18];
514
- let b;
515
- t[19] !== o || t[20] !== u ? (b = o("Remove {url} from history", { url: u }), t[19] = o, t[20] = u, t[21] = b) : b = t[21];
512
+ children: [m, y]
513
+ }), t[15] = i, t[16] = m, t[17] = y, t[18] = b) : b = t[18];
516
514
  let x;
517
- t[22] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ Q(Ie, { className: "size-3.5" }), t[22] = x) : x = t[22];
515
+ t[19] !== o || t[20] !== d ? (x = o("Remove {url} from history", { url: d }), t[19] = o, t[20] = d, t[21] = x) : x = t[21];
516
+ let ee;
517
+ t[22] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ Q(Ie, { className: "size-3.5" }), t[22] = ee) : ee = t[22];
518
518
  let S;
519
- t[23] !== a || t[24] !== b ? (S = /* @__PURE__ */ Q("button", {
519
+ t[23] !== a || t[24] !== x ? (S = /* @__PURE__ */ Q("button", {
520
520
  type: "button",
521
- "aria-label": b,
521
+ "aria-label": x,
522
522
  onClick: a,
523
523
  className: "absolute right-3 rounded p-1 text-muted-foreground opacity-0 hover:bg-accent hover:text-foreground focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring group-hover:opacity-100",
524
- children: x
525
- }), t[23] = a, t[24] = b, t[25] = S) : S = t[25];
526
- let C;
527
- return t[26] !== S || t[27] !== y ? (C = /* @__PURE__ */ $("div", {
524
+ children: ee
525
+ }), t[23] = a, t[24] = x, t[25] = S) : S = t[25];
526
+ let te;
527
+ return t[26] !== S || t[27] !== b ? (te = /* @__PURE__ */ $("div", {
528
528
  className: "group relative flex w-full items-center",
529
- children: [y, S]
530
- }), t[26] = S, t[27] = y, t[28] = C) : C = t[28], C;
529
+ children: [b, S]
530
+ }), t[26] = S, t[27] = b, t[28] = te) : te = t[28], te;
531
531
  }
532
532
  // src/components/preview/useDiscoveredLocalServers.ts
533
533
  function Zt(e) {
@@ -610,12 +610,12 @@ function tn(e) {
610
610
  children: /* @__PURE__ */ Q(Ne, { className: "size-4.5 text-muted-foreground" })
611
611
  }), t[12] = e) : e = t[12];
612
612
  let n;
613
- t[13] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Q(Z, { children: /* @__PURE__ */ Q(j, { children: "No preview yet" }) }), t[13] = n) : n = t[13];
613
+ t[13] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Q(Z, { children: /* @__PURE__ */ Q(w, { children: "No preview yet" }) }), t[13] = n) : n = t[13];
614
614
  let r;
615
615
  t[14] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ $(Nt, { children: [
616
616
  e,
617
617
  n,
618
- /* @__PURE__ */ Q(Mt, { children: /* @__PURE__ */ Q(j, { children: "Type a URL above, or run a dev script. Local servers this thread starts will show up here automatically." }) })
618
+ /* @__PURE__ */ Q(Mt, { children: /* @__PURE__ */ Q(w, { children: "Type a URL above, or run a dev script. Local servers this thread starts will show up here automatically." }) })
619
619
  ] }), t[14] = r) : r = t[14], p = r;
620
620
  break bb0;
621
621
  }
@@ -625,7 +625,7 @@ function tn(e) {
625
625
  className: "flex items-center gap-2 text-sm text-muted-foreground",
626
626
  children: [/* @__PURE__ */ Q(Me, { className: "size-4 shrink-0" }), /* @__PURE__ */ Q("h2", {
627
627
  className: "font-medium",
628
- children: /* @__PURE__ */ Q(j, { children: "Recently used" })
628
+ children: /* @__PURE__ */ Q(w, { children: "Recently used" })
629
629
  })]
630
630
  }), /* @__PURE__ */ Q(Ft, { children: e.map((e) => /* @__PURE__ */ Q(Xt, {
631
631
  threadRef: n,
@@ -646,7 +646,7 @@ function tn(e) {
646
646
  className: "flex items-center gap-2 text-sm text-muted-foreground",
647
647
  children: [/* @__PURE__ */ Q(q, { className: "size-4 shrink-0" }), /* @__PURE__ */ Q("h2", {
648
648
  className: "font-medium",
649
- children: /* @__PURE__ */ Q(j, { children: "Local servers" })
649
+ children: /* @__PURE__ */ Q(w, { children: "Local servers" })
650
650
  })]
651
651
  }),
652
652
  /* @__PURE__ */ Q(Ft, { children: l.map((e) => /* @__PURE__ */ Q(Jt, {
@@ -656,7 +656,7 @@ function tn(e) {
656
656
  }, `${e.host}:${e.port}`)) }),
657
657
  /* @__PURE__ */ Q("p", {
658
658
  className: "px-1 text-xs text-muted-foreground",
659
- children: /* @__PURE__ */ Q(j, { children: "Select a live local server to open it in this browser tab." })
659
+ children: /* @__PURE__ */ Q(w, { children: "Select a live local server to open it in this browser tab." })
660
660
  })
661
661
  ]
662
662
  }) : null, t[15] = s, t[16] = l, t[17] = n, t[18] = m) : m = t[18];
@@ -689,10 +689,10 @@ var rn = [
689
689
  label: n("Dark", { $context: "color scheme" })
690
690
  }
691
691
  ], an = () => {
692
- let e = Bt(10), t = ee(), n;
692
+ let e = Bt(10), t = s(), n;
693
693
  e[0] === t ? n = e[1] : (n = t("Preview menu"), e[0] = t, e[1] = n);
694
694
  let r;
695
- e[2] === n ? r = e[3] : (r = /* @__PURE__ */ Q(p, { render: /* @__PURE__ */ Q(w, {
695
+ e[2] === n ? r = e[3] : (r = /* @__PURE__ */ Q(f, { render: /* @__PURE__ */ Q(T, {
696
696
  variant: "ghost",
697
697
  size: "icon-xs",
698
698
  type: "button",
@@ -706,130 +706,130 @@ var rn = [
706
706
  children: i
707
707
  }), e[5] = r, e[6] = a);
708
708
  let o;
709
- e[7] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ Q(T, { children: /* @__PURE__ */ Q(j, {
709
+ e[7] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ Q(D, { children: /* @__PURE__ */ Q(w, {
710
710
  context: "more actions menu",
711
711
  children: "More"
712
712
  }) }), e[7] = o) : o = e[7];
713
- let s;
714
- return e[8] === a ? s = e[9] : (s = /* @__PURE__ */ $(D, { children: [a, o] }), e[8] = a, e[9] = s), s;
713
+ let c;
714
+ return e[8] === a ? c = e[9] : (c = /* @__PURE__ */ $(O, { children: [a, o] }), e[8] = a, e[9] = c), c;
715
715
  };
716
716
  function on(e) {
717
- let t = Bt(98), { enabled: n, actions: r, zoomFactor: i, colorScheme: a, deviceToolbarVisible: c, onToggleDeviceToolbar: l, nativePictureInPicture: u, profileName: f, findShortcutLabel: p, move: v } = e, b = ee(), x = oe(), ne;
718
- t[0] === i ? ne = t[1] : (ne = Math.round(i * 100), t[0] = i, t[1] = ne);
719
- let T = `${ne}%`, E = !n, D;
720
- t[2] === Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ Q(an, {}), t[2] = D) : D = t[2];
721
- let ie;
722
- t[3] !== r.find || t[4] !== E || t[5] !== p ? (ie = r.find ? /* @__PURE__ */ $(_, {
723
- onClick: r.find,
724
- disabled: E,
725
- children: [/* @__PURE__ */ Q(j, { children: "Find on page" }), p ? /* @__PURE__ */ Q(C, { children: p }) : null]
726
- }) : null, t[3] = r.find, t[4] = E, t[5] = p, t[6] = ie) : ie = t[6];
717
+ let t = Bt(98), { enabled: n, actions: r, zoomFactor: i, colorScheme: c, deviceToolbarVisible: l, onToggleDeviceToolbar: u, nativePictureInPicture: f, profileName: h, findShortcutLabel: v, move: y } = e, x = s(), S = ee(), re;
718
+ t[0] === i ? re = t[1] : (re = Math.round(i * 100), t[0] = i, t[1] = re);
719
+ let E = `${re}%`, D = !n, O;
720
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ Q(an, {}), t[2] = O) : O = t[2];
727
721
  let k;
728
- t[7] === Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ Q(j, { children: "Hard reload" }), t[7] = k) : k = t[7];
729
- let A;
730
- t[8] !== r.hardReload || t[9] !== E ? (A = /* @__PURE__ */ Q(_, {
722
+ t[3] !== r.find || t[4] !== D || t[5] !== v ? (k = r.find ? /* @__PURE__ */ $(_, {
723
+ onClick: r.find,
724
+ disabled: D,
725
+ children: [/* @__PURE__ */ Q(w, { children: "Find on page" }), v ? /* @__PURE__ */ Q(C, { children: v }) : null]
726
+ }) : null, t[3] = r.find, t[4] = D, t[5] = v, t[6] = k) : k = t[6];
727
+ let ie;
728
+ t[7] === Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ Q(w, { children: "Hard reload" }), t[7] = ie) : ie = t[7];
729
+ let j;
730
+ t[8] !== r.hardReload || t[9] !== D ? (j = /* @__PURE__ */ Q(_, {
731
731
  onClick: r.hardReload,
732
- disabled: E,
733
- children: k
734
- }), t[8] = r.hardReload, t[9] = E, t[10] = A) : A = t[10];
732
+ disabled: D,
733
+ children: ie
734
+ }), t[8] = r.hardReload, t[9] = D, t[10] = j) : j = t[10];
735
735
  let ae;
736
- t[11] !== r.openDevTools || t[12] !== E ? (ae = r.openDevTools ? /* @__PURE__ */ Q(_, {
736
+ t[11] !== r.openDevTools || t[12] !== D ? (ae = r.openDevTools ? /* @__PURE__ */ Q(_, {
737
737
  onClick: r.openDevTools,
738
- disabled: E,
739
- children: /* @__PURE__ */ Q(j, { children: "Open DevTools" })
740
- }) : null, t[11] = r.openDevTools, t[12] = E, t[13] = ae) : ae = t[13];
738
+ disabled: D,
739
+ children: /* @__PURE__ */ Q(w, { children: "Open DevTools" })
740
+ }) : null, t[11] = r.openDevTools, t[12] = D, t[13] = ae) : ae = t[13];
741
741
  let M;
742
- t[14] !== r.toggleNativePictureInPicture || t[15] !== E || t[16] !== b || t[17] !== u ? (M = r.toggleNativePictureInPicture ? /* @__PURE__ */ Q(_, {
742
+ t[14] !== r.toggleNativePictureInPicture || t[15] !== D || t[16] !== x || t[17] !== f ? (M = r.toggleNativePictureInPicture ? /* @__PURE__ */ Q(_, {
743
743
  onClick: r.toggleNativePictureInPicture,
744
- disabled: E,
745
- children: b(u ? "Close separate preview window" : "Open separate preview window")
746
- }) : null, t[14] = r.toggleNativePictureInPicture, t[15] = E, t[16] = b, t[17] = u, t[18] = M) : M = t[18];
744
+ disabled: D,
745
+ children: x(f ? "Close separate preview window" : "Open separate preview window")
746
+ }) : null, t[14] = r.toggleNativePictureInPicture, t[15] = D, t[16] = x, t[17] = f, t[18] = M) : M = t[18];
747
747
  let N;
748
- t[19] === v ? N = t[20] : (N = v ? /* @__PURE__ */ Q(_, {
749
- onClick: v.onMove,
750
- children: v.label
751
- }) : null, t[19] = v, t[20] = N);
748
+ t[19] === y ? N = t[20] : (N = y ? /* @__PURE__ */ Q(_, {
749
+ onClick: y.onMove,
750
+ children: y.label
751
+ }) : null, t[19] = y, t[20] = N);
752
752
  let P;
753
- t[21] !== c || t[22] !== b ? (P = b(c ? "Hide device toolbar" : "Show device toolbar"), t[21] = c, t[22] = b, t[23] = P) : P = t[23];
753
+ t[21] !== l || t[22] !== x ? (P = x(l ? "Hide device toolbar" : "Show device toolbar"), t[21] = l, t[22] = x, t[23] = P) : P = t[23];
754
754
  let se;
755
- t[24] !== E || t[25] !== l || t[26] !== P ? (se = /* @__PURE__ */ Q(_, {
756
- onClick: l,
757
- disabled: E,
755
+ t[24] !== D || t[25] !== u || t[26] !== P ? (se = /* @__PURE__ */ Q(_, {
756
+ onClick: u,
757
+ disabled: D,
758
758
  children: P
759
- }), t[24] = E, t[25] = l, t[26] = P, t[27] = se) : se = t[27];
759
+ }), t[24] = D, t[25] = u, t[26] = P, t[27] = se) : se = t[27];
760
760
  let ce;
761
- t[28] === Symbol.for("react.memo_cache_sentinel") ? (ce = /* @__PURE__ */ Q(j, { children: "Appearance" }), t[28] = ce) : ce = t[28];
761
+ t[28] === Symbol.for("react.memo_cache_sentinel") ? (ce = /* @__PURE__ */ Q(w, { children: "Appearance" }), t[28] = ce) : ce = t[28];
762
762
  let F;
763
- t[29] === E ? F = t[30] : (F = /* @__PURE__ */ Q(te, {
764
- disabled: E,
763
+ t[29] === D ? F = t[30] : (F = /* @__PURE__ */ Q(ne, {
764
+ disabled: D,
765
765
  children: ce
766
- }), t[29] = E, t[30] = F);
766
+ }), t[29] = D, t[30] = F);
767
767
  let I;
768
768
  t[31] === r ? I = t[32] : (I = (e) => r.setColorScheme(e), t[31] = r, t[32] = I);
769
769
  let L;
770
- t[33] === x ? L = t[34] : (L = rn.map((e) => /* @__PURE__ */ Q(g, {
770
+ t[33] === S ? L = t[34] : (L = rn.map((e) => /* @__PURE__ */ Q(g, {
771
771
  value: e.value,
772
- children: x(e.label)
773
- }, e.value)), t[33] = x, t[34] = L);
772
+ children: S(e.label)
773
+ }, e.value)), t[33] = S, t[34] = L);
774
774
  let R;
775
- t[35] !== a || t[36] !== I || t[37] !== L ? (R = /* @__PURE__ */ Q(S, { children: /* @__PURE__ */ Q(h, {
776
- value: a,
775
+ t[35] !== c || t[36] !== I || t[37] !== L ? (R = /* @__PURE__ */ Q(te, { children: /* @__PURE__ */ Q(m, {
776
+ value: c,
777
777
  onValueChange: I,
778
778
  children: L
779
- }) }), t[35] = a, t[36] = I, t[37] = L, t[38] = R) : R = t[38];
779
+ }) }), t[35] = c, t[36] = I, t[37] = L, t[38] = R) : R = t[38];
780
780
  let z;
781
- t[39] !== F || t[40] !== R ? (z = /* @__PURE__ */ $(m, { children: [F, R] }), t[39] = F, t[40] = R, t[41] = z) : z = t[41];
781
+ t[39] !== F || t[40] !== R ? (z = /* @__PURE__ */ $(p, { children: [F, R] }), t[39] = F, t[40] = R, t[41] = z) : z = t[41];
782
782
  let B;
783
- t[42] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ Q(s, {}), t[42] = B) : B = t[42];
783
+ t[42] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ Q(o, {}), t[42] = B) : B = t[42];
784
784
  let le;
785
- t[43] === Symbol.for("react.memo_cache_sentinel") ? (le = /* @__PURE__ */ Q("span", { children: /* @__PURE__ */ Q(j, { children: "Zoom" }) }), t[43] = le) : le = t[43];
785
+ t[43] === Symbol.for("react.memo_cache_sentinel") ? (le = /* @__PURE__ */ Q("span", { children: /* @__PURE__ */ Q(w, { children: "Zoom" }) }), t[43] = le) : le = t[43];
786
786
  let ue = r.zoomOut, de;
787
- t[44] === b ? de = t[45] : (de = b("Zoom out"), t[44] = b, t[45] = de);
787
+ t[44] === x ? de = t[45] : (de = x("Zoom out"), t[44] = x, t[45] = de);
788
788
  let fe;
789
789
  t[46] === Symbol.for("react.memo_cache_sentinel") ? (fe = /* @__PURE__ */ Q(K, {}), t[46] = fe) : fe = t[46];
790
790
  let pe;
791
- t[47] !== r.zoomOut || t[48] !== E || t[49] !== de ? (pe = /* @__PURE__ */ Q(w, {
791
+ t[47] !== r.zoomOut || t[48] !== D || t[49] !== de ? (pe = /* @__PURE__ */ Q(T, {
792
792
  variant: "outline",
793
793
  size: "icon-xs",
794
794
  type: "button",
795
795
  onClick: ue,
796
796
  "aria-label": de,
797
- disabled: E,
797
+ disabled: D,
798
798
  children: fe
799
- }), t[47] = r.zoomOut, t[48] = E, t[49] = de, t[50] = pe) : pe = t[50];
799
+ }), t[47] = r.zoomOut, t[48] = D, t[49] = de, t[50] = pe) : pe = t[50];
800
800
  let V;
801
- t[51] === T ? V = t[52] : (V = /* @__PURE__ */ Q("span", {
801
+ t[51] === E ? V = t[52] : (V = /* @__PURE__ */ Q("span", {
802
802
  className: "min-w-12 text-center text-xs tabular-nums text-muted-foreground",
803
- children: T
804
- }), t[51] = T, t[52] = V);
803
+ children: E
804
+ }), t[51] = E, t[52] = V);
805
805
  let me = r.zoomIn, he;
806
- t[53] === b ? he = t[54] : (he = b("Zoom in"), t[53] = b, t[54] = he);
806
+ t[53] === x ? he = t[54] : (he = x("Zoom in"), t[53] = x, t[54] = he);
807
807
  let ge;
808
808
  t[55] === Symbol.for("react.memo_cache_sentinel") ? (ge = /* @__PURE__ */ Q(Pe, {}), t[55] = ge) : ge = t[55];
809
809
  let H;
810
- t[56] !== r.zoomIn || t[57] !== E || t[58] !== he ? (H = /* @__PURE__ */ Q(w, {
810
+ t[56] !== r.zoomIn || t[57] !== D || t[58] !== he ? (H = /* @__PURE__ */ Q(T, {
811
811
  variant: "outline",
812
812
  size: "icon-xs",
813
813
  type: "button",
814
814
  onClick: me,
815
815
  "aria-label": he,
816
- disabled: E,
816
+ disabled: D,
817
817
  children: ge
818
- }), t[56] = r.zoomIn, t[57] = E, t[58] = he, t[59] = H) : H = t[59];
818
+ }), t[56] = r.zoomIn, t[57] = D, t[58] = he, t[59] = H) : H = t[59];
819
819
  let _e = r.resetZoom, ve;
820
- t[60] === b ? ve = t[61] : (ve = b("Reset zoom"), t[60] = b, t[61] = ve);
820
+ t[60] === x ? ve = t[61] : (ve = x("Reset zoom"), t[60] = x, t[61] = ve);
821
821
  let ye;
822
822
  t[62] === Symbol.for("react.memo_cache_sentinel") ? (ye = /* @__PURE__ */ Q(Fe, {}), t[62] = ye) : ye = t[62];
823
823
  let U;
824
- t[63] !== r.resetZoom || t[64] !== E || t[65] !== ve ? (U = /* @__PURE__ */ Q(w, {
824
+ t[63] !== r.resetZoom || t[64] !== D || t[65] !== ve ? (U = /* @__PURE__ */ Q(T, {
825
825
  variant: "ghost",
826
826
  size: "icon-xs",
827
827
  type: "button",
828
828
  onClick: _e,
829
829
  "aria-label": ve,
830
- disabled: E,
830
+ disabled: D,
831
831
  children: ye
832
- }), t[63] = r.resetZoom, t[64] = E, t[65] = ve, t[66] = U) : U = t[66];
832
+ }), t[63] = r.resetZoom, t[64] = D, t[65] = ve, t[66] = U) : U = t[66];
833
833
  let be;
834
834
  t[67] !== pe || t[68] !== V || t[69] !== H || t[70] !== U ? (be = /* @__PURE__ */ $("span", {
835
835
  className: "flex items-center gap-1",
@@ -841,50 +841,50 @@ function on(e) {
841
841
  ]
842
842
  }), t[67] = pe, t[68] = V, t[69] = H, t[70] = U, t[71] = be) : be = t[71];
843
843
  let xe;
844
- t[72] !== E || t[73] !== be ? (xe = /* @__PURE__ */ $(_, {
844
+ t[72] !== D || t[73] !== be ? (xe = /* @__PURE__ */ $(_, {
845
845
  closeOnClick: !1,
846
846
  onClick: sn,
847
847
  className: "justify-between",
848
- disabled: E,
848
+ disabled: D,
849
849
  children: [le, be]
850
- }), t[72] = E, t[73] = be, t[74] = xe) : xe = t[74];
850
+ }), t[72] = D, t[73] = be, t[74] = xe) : xe = t[74];
851
851
  let Se;
852
- t[75] === Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ Q(s, {}), t[75] = Se) : Se = t[75];
852
+ t[75] === Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ Q(o, {}), t[75] = Se) : Se = t[75];
853
853
  let Ce;
854
- t[76] === f ? Ce = t[77] : (Ce = f ? /* @__PURE__ */ Q(O, {
854
+ t[76] === h ? Ce = t[77] : (Ce = h ? /* @__PURE__ */ Q(A, {
855
855
  className: "max-w-64",
856
856
  children: /* @__PURE__ */ Q("span", {
857
857
  className: "block truncate",
858
- children: /* @__PURE__ */ $(j, { children: ["Profile: ", /* @__PURE__ */ Q(re, { children: f })] })
858
+ children: /* @__PURE__ */ $(w, { children: ["Profile: ", /* @__PURE__ */ Q(oe, { children: h })] })
859
859
  })
860
- }) : null, t[76] = f, t[77] = Ce);
860
+ }) : null, t[76] = h, t[77] = Ce);
861
861
  let we;
862
- t[78] === Symbol.for("react.memo_cache_sentinel") ? (we = /* @__PURE__ */ Q(j, { children: "Clear cookies" }), t[78] = we) : we = t[78];
862
+ t[78] === Symbol.for("react.memo_cache_sentinel") ? (we = /* @__PURE__ */ Q(w, { children: "Clear cookies" }), t[78] = we) : we = t[78];
863
863
  let Te;
864
864
  t[79] === r.clearCookies ? Te = t[80] : (Te = /* @__PURE__ */ Q(_, {
865
865
  onClick: r.clearCookies,
866
866
  children: we
867
867
  }), t[79] = r.clearCookies, t[80] = Te);
868
868
  let Ee;
869
- t[81] === Symbol.for("react.memo_cache_sentinel") ? (Ee = /* @__PURE__ */ Q(j, { children: "Clear cache" }), t[81] = Ee) : Ee = t[81];
869
+ t[81] === Symbol.for("react.memo_cache_sentinel") ? (Ee = /* @__PURE__ */ Q(w, { children: "Clear cache" }), t[81] = Ee) : Ee = t[81];
870
870
  let De;
871
871
  t[82] === r.clearCache ? De = t[83] : (De = /* @__PURE__ */ Q(_, {
872
872
  onClick: r.clearCache,
873
873
  children: Ee
874
874
  }), t[82] = r.clearCache, t[83] = De);
875
875
  let Oe;
876
- t[84] !== Ce || t[85] !== Te || t[86] !== De ? (Oe = /* @__PURE__ */ $(o, { children: [
876
+ t[84] !== Ce || t[85] !== Te || t[86] !== De ? (Oe = /* @__PURE__ */ $(a, { children: [
877
877
  Ce,
878
878
  Te,
879
879
  De
880
880
  ] }), t[84] = Ce, t[85] = Te, t[86] = De, t[87] = Oe) : Oe = t[87];
881
881
  let ke;
882
- return t[88] !== se || t[89] !== z || t[90] !== ie || t[91] !== xe || t[92] !== Oe || t[93] !== A || t[94] !== ae || t[95] !== M || t[96] !== N ? (ke = /* @__PURE__ */ $(y, { children: [D, /* @__PURE__ */ $(d, {
882
+ return t[88] !== se || t[89] !== z || t[90] !== k || t[91] !== xe || t[92] !== Oe || t[93] !== j || t[94] !== ae || t[95] !== M || t[96] !== N ? (ke = /* @__PURE__ */ $(b, { children: [O, /* @__PURE__ */ $(d, {
883
883
  align: "end",
884
884
  sideOffset: 6,
885
885
  children: [
886
- ie,
887
- A,
886
+ k,
887
+ j,
888
888
  ae,
889
889
  M,
890
890
  N,
@@ -895,7 +895,7 @@ function on(e) {
895
895
  Se,
896
896
  Oe
897
897
  ]
898
- })] }), t[88] = se, t[89] = z, t[90] = ie, t[91] = xe, t[92] = Oe, t[93] = A, t[94] = ae, t[95] = M, t[96] = N, t[97] = ke) : ke = t[97], ke;
898
+ })] }), t[88] = se, t[89] = z, t[90] = k, t[91] = xe, t[92] = Oe, t[93] = j, t[94] = ae, t[95] = M, t[96] = N, t[97] = ke) : ke = t[97], ke;
899
899
  }
900
900
  function sn(e) {
901
901
  return e.preventDefault();
@@ -914,7 +914,7 @@ function un(e) {
914
914
  let l;
915
915
  t[3] === n ? l = t[4] : (l = Math.round(n * 100), t[3] = n, t[4] = l);
916
916
  let u = `${l}%`, d = !r, f = r ? "opacity-100 translate-y-0" : "opacity-0 -translate-y-1", p;
917
- t[5] === f ? p = t[6] : (p = A("pointer-events-none absolute top-3 right-3 z-20 select-none rounded-full border border-border/70 bg-popover/95 px-2.5 py-1 text-xs font-medium text-foreground shadow-md/10 backdrop-blur transition-all duration-200 ease-out", f), t[5] = f, t[6] = p);
917
+ t[5] === f ? p = t[6] : (p = ae("pointer-events-none absolute top-3 right-3 z-20 select-none rounded-full border border-border/70 bg-popover/95 px-2.5 py-1 text-xs font-medium text-foreground shadow-md/10 backdrop-blur transition-all duration-200 ease-out", f), t[5] = f, t[6] = p);
918
918
  let m;
919
919
  return t[7] !== u || t[8] !== d || t[9] !== p ? (m = /* @__PURE__ */ Q("div", {
920
920
  "aria-hidden": d,
@@ -924,17 +924,17 @@ function un(e) {
924
924
  }
925
925
  // src/components/preview/PreviewFindBar.tsx
926
926
  function dn(e) {
927
- let t = Bt(69), { tabId: n, focusRequestId: r, onClose: i } = e, a = ee(), o = Rt(null), [s, c] = zt(""), [l, u] = zt(null), d;
928
- t[0] === Symbol.for("react.memo_cache_sentinel") ? (d = () => {
927
+ let t = Bt(69), { tabId: n, focusRequestId: r, onClose: i } = e, a = s(), o = Rt(null), [c, l] = zt(""), [u, d] = zt(null), f;
928
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (f = () => {
929
929
  o.current?.focus(), o.current?.select();
930
- }, t[0] = d) : d = t[0];
931
- let f;
932
- t[1] === r ? f = t[2] : (f = [r], t[1] = r, t[2] = f), It(d, f);
933
- let p, m;
934
- t[3] === n ? (p = t[4], m = t[5]) : (p = () => {
930
+ }, t[0] = f) : f = t[0];
931
+ let p;
932
+ t[1] === r ? p = t[2] : (p = [r], t[1] = r, t[2] = p), It(f, p);
933
+ let m, h;
934
+ t[3] === n ? (m = t[4], h = t[5]) : (m = () => {
935
935
  if (!Y) return;
936
936
  let e = Y.onFindResult((e) => {
937
- e.tabId === n && u((t) => ({
937
+ e.tabId === n && d((t) => ({
938
938
  active: e.activeMatchOrdinal >= 0 ? e.activeMatchOrdinal : t?.active ?? 0,
939
939
  matches: e.matches >= 0 ? e.matches : t?.matches ?? 0
940
940
  }));
@@ -942,43 +942,43 @@ function dn(e) {
942
942
  return () => {
943
943
  e(), Y?.stopFindInPage(n).catch(mn);
944
944
  };
945
- }, m = [n], t[3] = n, t[4] = p, t[5] = m), It(p, m);
946
- let h;
947
- t[6] === n ? h = t[7] : (h = (e, t) => {
945
+ }, h = [n], t[3] = n, t[4] = m, t[5] = h), It(m, h);
946
+ let g;
947
+ t[6] === n ? g = t[7] : (g = (e, t) => {
948
948
  Y && Y.findInPage(n, e, t).catch(pn);
949
- }, t[6] = n, t[7] = h);
950
- let g = h, _;
951
- t[8] !== g || t[9] !== n ? (_ = (e) => {
952
- c(e), e.length === 0 ? (u(null), Y?.stopFindInPage(n).catch(fn)) : g(e, {
949
+ }, t[6] = n, t[7] = g);
950
+ let _ = g, v;
951
+ t[8] !== _ || t[9] !== n ? (v = (e) => {
952
+ l(e), e.length === 0 ? (d(null), Y?.stopFindInPage(n).catch(fn)) : _(e, {
953
953
  forward: !0,
954
954
  newSession: !0
955
955
  });
956
- }, t[8] = g, t[9] = n, t[10] = _) : _ = t[10];
957
- let v = _, y;
958
- t[11] !== s || t[12] !== g ? (y = (e) => {
959
- s.length !== 0 && g(s, {
956
+ }, t[8] = _, t[9] = n, t[10] = v) : v = t[10];
957
+ let y = v, b;
958
+ t[11] !== c || t[12] !== _ ? (b = (e) => {
959
+ c.length !== 0 && _(c, {
960
960
  forward: e,
961
961
  newSession: !1
962
962
  });
963
- }, t[11] = s, t[12] = g, t[13] = y) : y = t[13];
964
- let b = y, x;
965
- t[14] !== i || t[15] !== b ? (x = (e) => {
966
- e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229 || (e.key === "Enter" ? (e.preventDefault(), e.stopPropagation(), b(!e.shiftKey)) : e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), i()));
967
- }, t[14] = i, t[15] = b, t[16] = x) : x = t[16];
968
- let S = x, C = s.length > 0, te = C && l !== null && l.matches === 0, ne = C && l ? `${l.matches === 0 ? 0 : l.active}/${l.matches}` : "", re = !l || l.matches === 0, T;
969
- t[17] === a ? T = t[18] : (T = a("Find in page"), t[17] = a, t[18] = T);
963
+ }, t[11] = c, t[12] = _, t[13] = b) : b = t[13];
964
+ let x = b, ee;
965
+ t[14] !== i || t[15] !== x ? (ee = (e) => {
966
+ e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229 || (e.key === "Enter" ? (e.preventDefault(), e.stopPropagation(), x(!e.shiftKey)) : e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), i()));
967
+ }, t[14] = i, t[15] = x, t[16] = ee) : ee = t[16];
968
+ let S = ee, te = c.length > 0, C = te && u !== null && u.matches === 0, ne = te && u ? `${u.matches === 0 ? 0 : u.active}/${u.matches}` : "", re = !u || u.matches === 0, w;
969
+ t[17] === a ? w = t[18] : (w = a("Find in page"), t[17] = a, t[18] = w);
970
970
  let E;
971
971
  t[19] === a ? E = t[20] : (E = a("Find in page"), t[19] = a, t[20] = E);
972
972
  let D;
973
973
  t[21] === a ? D = t[22] : (D = a("Find in page"), t[21] = a, t[22] = D);
974
974
  let O;
975
- t[23] === v ? O = t[24] : (O = (e) => v(e.target.value), t[23] = v, t[24] = O);
976
- let ie;
977
- t[25] !== S || t[26] !== s || t[27] !== E || t[28] !== D || t[29] !== O ? (ie = /* @__PURE__ */ Q(kt, {
975
+ t[23] === y ? O = t[24] : (O = (e) => y(e.target.value), t[23] = y, t[24] = O);
976
+ let k;
977
+ t[25] !== S || t[26] !== c || t[27] !== E || t[28] !== D || t[29] !== O ? (k = /* @__PURE__ */ Q(kt, {
978
978
  ref: o,
979
979
  type: "search",
980
980
  size: "sm",
981
- value: s,
981
+ value: c,
982
982
  "aria-label": E,
983
983
  placeholder: D,
984
984
  maxLength: 200,
@@ -986,38 +986,38 @@ function dn(e) {
986
986
  autoComplete: "off",
987
987
  onChange: O,
988
988
  onKeyDown: S
989
- }), t[25] = S, t[26] = s, t[27] = E, t[28] = D, t[29] = O, t[30] = ie) : ie = t[30];
990
- let k = te ? "text-destructive" : "text-muted-foreground", ae;
991
- t[31] === k ? ae = t[32] : (ae = A("min-w-10 text-center text-xs tabular-nums", k), t[31] = k, t[32] = ae);
992
- let oe;
993
- t[33] !== ne || t[34] !== ae ? (oe = /* @__PURE__ */ Q("span", {
989
+ }), t[25] = S, t[26] = c, t[27] = E, t[28] = D, t[29] = O, t[30] = k) : k = t[30];
990
+ let ie = C ? "text-destructive" : "text-muted-foreground", A;
991
+ t[31] === ie ? A = t[32] : (A = ae("min-w-10 text-center text-xs tabular-nums", ie), t[31] = ie, t[32] = A);
992
+ let j;
993
+ t[33] !== ne || t[34] !== A ? (j = /* @__PURE__ */ Q("span", {
994
994
  "aria-live": "polite",
995
- className: ae,
995
+ className: A,
996
996
  children: ne
997
- }), t[33] = ne, t[34] = ae, t[35] = oe) : oe = t[35];
998
- let j;
999
- t[36] === a ? j = t[37] : (j = a("Previous match"), t[36] = a, t[37] = j);
997
+ }), t[33] = ne, t[34] = A, t[35] = j) : j = t[35];
998
+ let oe;
999
+ t[36] === a ? oe = t[37] : (oe = a("Previous match"), t[36] = a, t[37] = oe);
1000
1000
  let M;
1001
- t[38] === b ? M = t[39] : (M = () => b(!1), t[38] = b, t[39] = M);
1001
+ t[38] === x ? M = t[39] : (M = () => x(!1), t[38] = x, t[39] = M);
1002
1002
  let N;
1003
1003
  t[40] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ Q(je, {}), t[40] = N) : N = t[40];
1004
1004
  let P;
1005
- t[41] !== re || t[42] !== j || t[43] !== M ? (P = /* @__PURE__ */ Q(w, {
1005
+ t[41] !== re || t[42] !== oe || t[43] !== M ? (P = /* @__PURE__ */ Q(T, {
1006
1006
  size: "icon-xs",
1007
1007
  variant: "ghost",
1008
- "aria-label": j,
1008
+ "aria-label": oe,
1009
1009
  disabled: re,
1010
1010
  onClick: M,
1011
1011
  children: N
1012
- }), t[41] = re, t[42] = j, t[43] = M, t[44] = P) : P = t[44];
1012
+ }), t[41] = re, t[42] = oe, t[43] = M, t[44] = P) : P = t[44];
1013
1013
  let se;
1014
1014
  t[45] === a ? se = t[46] : (se = a("Next match"), t[45] = a, t[46] = se);
1015
1015
  let ce;
1016
- t[47] === b ? ce = t[48] : (ce = () => b(!0), t[47] = b, t[48] = ce);
1016
+ t[47] === x ? ce = t[48] : (ce = () => x(!0), t[47] = x, t[48] = ce);
1017
1017
  let F;
1018
1018
  t[49] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ Q(Ae, {}), t[49] = F) : F = t[49];
1019
1019
  let I;
1020
- t[50] !== re || t[51] !== se || t[52] !== ce ? (I = /* @__PURE__ */ Q(w, {
1020
+ t[50] !== re || t[51] !== se || t[52] !== ce ? (I = /* @__PURE__ */ Q(T, {
1021
1021
  size: "icon-xs",
1022
1022
  variant: "ghost",
1023
1023
  "aria-label": se,
@@ -1030,7 +1030,7 @@ function dn(e) {
1030
1030
  let R;
1031
1031
  t[56] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ Q(Ie, {}), t[56] = R) : R = t[56];
1032
1032
  let z;
1033
- t[57] !== i || t[58] !== L ? (z = /* @__PURE__ */ Q(w, {
1033
+ t[57] !== i || t[58] !== L ? (z = /* @__PURE__ */ Q(T, {
1034
1034
  size: "icon-xs",
1035
1035
  variant: "ghost",
1036
1036
  "aria-label": L,
@@ -1038,28 +1038,28 @@ function dn(e) {
1038
1038
  children: R
1039
1039
  }), t[57] = i, t[58] = L, t[59] = z) : z = t[59];
1040
1040
  let B;
1041
- t[60] !== oe || t[61] !== P || t[62] !== I || t[63] !== z ? (B = /* @__PURE__ */ $(X, {
1041
+ t[60] !== j || t[61] !== P || t[62] !== I || t[63] !== z ? (B = /* @__PURE__ */ $(X, {
1042
1042
  align: "inline-end",
1043
1043
  inset: "pill",
1044
1044
  children: [
1045
- oe,
1045
+ j,
1046
1046
  P,
1047
1047
  I,
1048
1048
  z
1049
1049
  ]
1050
- }), t[60] = oe, t[61] = P, t[62] = I, t[63] = z, t[64] = B) : B = t[64];
1050
+ }), t[60] = j, t[61] = P, t[62] = I, t[63] = z, t[64] = B) : B = t[64];
1051
1051
  let le;
1052
- return t[65] !== ie || t[66] !== B || t[67] !== T ? (le = /* @__PURE__ */ Q("div", {
1052
+ return t[65] !== k || t[66] !== B || t[67] !== w ? (le = /* @__PURE__ */ Q("div", {
1053
1053
  className: "absolute top-3 right-3 z-40 w-[min(22rem,calc(100%-1.5rem))]",
1054
1054
  children: /* @__PURE__ */ $(At, {
1055
1055
  variant: "popover",
1056
1056
  size: "lg",
1057
1057
  role: "search",
1058
- "aria-label": T,
1058
+ "aria-label": w,
1059
1059
  className: "w-full",
1060
- children: [ie, B]
1060
+ children: [k, B]
1061
1061
  })
1062
- }), t[65] = ie, t[66] = B, t[67] = T, t[68] = le) : le = t[68], le;
1062
+ }), t[65] = k, t[66] = B, t[67] = w, t[68] = le) : le = t[68], le;
1063
1063
  }
1064
1064
  function fn() {}
1065
1065
  function pn() {}
@@ -1095,37 +1095,37 @@ function bn(e) {
1095
1095
  (!t || t === document.body || t.closest("[data-preview-panel-mode]")) && yn(e);
1096
1096
  }
1097
1097
  function xn(n) {
1098
- let o = Bt(207), { threadRef: s, tabId: c, configuredUrls: d, visible: p, onSendAnnotation: m } = n, h = ee(), g = oe(), _ = Rt(null), [y, S] = zt(null), [C, te] = zt(!1), re = e(s.environmentId, "orchestration:operate") && !!m, w = ot(), O = Rt(null), [k, N] = zt(null), ue = f(I), pe = i(s), H = R(s, 50), _e;
1099
- o[0] === s ? _e = o[1] : (_e = (e) => mt(e.byThreadKey, s), o[0] = s, o[1] = _e);
1100
- let U = gt(_e), we = u(Pn), Te = u(Nn), Ee = Le(s.environmentId), De = We(le.open), Oe = We(le.close, "preview close"), ke = Re(s.environmentId)?.label ?? null, Ae = Be(), je = fe(s.environmentId), Me = We(le.adjust, "preview appearance or zoom");
1101
- Ye(s);
1102
- let W = c ?? pe.activeTabId, G = W ? pt(s, pe.serverEpoch, W) : null;
1103
- y !== null && y.tabId !== G && S(null);
1104
- let Ne = W && G ? w.has(G) ? G : Ze(s, W) : null, K = W ? pe.sessions[W] ?? null : null, Pe = ve(s.environmentId, K), q = K?.runtime === "server" && !Pe, Fe = K?.runtime === "server", Ie = Rt(null), Ve = Rt(null), [He, tt] = zt(!1), [it, at] = zt(0), ct = K?.runtime === "server" && (K.viewport ?? ce)._tag !== "fill", dt = Rt(null), _t, bt;
1105
- o[2] === ct ? (_t = o[3], bt = o[4]) : (_t = () => {
1098
+ let a = Bt(207), { threadRef: o, tabId: d, configuredUrls: f, visible: p, onSendAnnotation: m } = n, g = s(), _ = ee(), y = Rt(null), [b, te] = zt(null), [C, ne] = zt(!1), T = e(o.environmentId, "orchestration:operate") && !!m, k = ot(), A = Rt(null), [oe, N] = zt(null), ue = h(I), pe = i(o), H = R(o, 50), _e;
1099
+ a[0] === o ? _e = a[1] : (_e = (e) => mt(e.byThreadKey, o), a[0] = o, a[1] = _e);
1100
+ let U = gt(_e), we = u(Pn), Te = u(Nn), Ee = Le(o.environmentId), De = We(le.open), Oe = We(le.close, "preview close"), ke = Re(o.environmentId)?.label ?? null, Ae = Be(), je = fe(o.environmentId), Me = We(le.adjust, "preview appearance or zoom");
1101
+ Ye(o);
1102
+ let W = d ?? pe.activeTabId, G = W ? pt(o, pe.serverEpoch, W) : null;
1103
+ b !== null && b.tabId !== G && te(null);
1104
+ let Ne = W && G ? k.has(G) ? G : Ze(o, W) : null, K = W ? pe.sessions[W] ?? null : null, Pe = ve(o.environmentId, K), q = K?.runtime === "server" && !Pe, Fe = K?.runtime === "server", Ie = Rt(null), Ve = Rt(null), [He, tt] = zt(!1), [it, at] = zt(0), ct = K?.runtime === "server" && (K.viewport ?? ce)._tag !== "fill", dt = Rt(null), _t, bt;
1105
+ a[2] === ct ? (_t = a[3], bt = a[4]) : (_t = () => {
1106
1106
  let e = dt.current;
1107
1107
  if (e && ct) return Tt(e, (e) => {
1108
1108
  let [t] = e;
1109
1109
  return at(Math.max(1, Math.round(t?.contentRect.width ?? 0)));
1110
1110
  });
1111
- }, bt = [ct], o[2] = ct, o[3] = _t, o[4] = bt), It(_t, bt);
1111
+ }, bt = [ct], a[2] = ct, a[3] = _t, a[4] = bt), It(_t, bt);
1112
1112
  let [xt, St] = zt(null), Ct = q && xt !== G, [Et, Dt] = zt(null), X = W && !q ? pe.desktopByTabId[W] ?? null : null, kt = ft(X?.zoomFactor ?? 1), At = !Fe && X?.navStatus._tag !== "Idle" ? X?.navStatus : void 0, jt;
1113
- o[5] !== At || o[6] !== K?.navStatus ? (jt = At ?? K?.navStatus ?? { _tag: "Idle" }, o[5] = At, o[6] = K?.navStatus, o[7] = jt) : jt = o[7];
1113
+ a[5] !== At || a[6] !== K?.navStatus ? (jt = At ?? K?.navStatus ?? { _tag: "Idle" }, a[5] = At, a[6] = K?.navStatus, a[7] = jt) : jt = a[7];
1114
1114
  let Z = jt, Mt = Z._tag === "Idle" ? "" : Z.url, Nt = X?.loading ?? Z._tag === "Loading", Pt = X?.canGoBack ?? K?.canGoBack ?? !1, Ft = X?.canGoForward ?? K?.canGoForward ?? !1, Vt = Z._tag === "Idle", Ut = Z._tag === "LoadFailed", Kt = Z._tag === "Idle", Jt = q && !Kt && !Ut && Et !== G, Yt = X?.controller ?? "none", Xt = K?.viewport ?? ce, Zt = xe(), Qt = K?.profileId ?? "default", $t;
1115
- o[8] !== Qt || o[9] !== Zt.profiles || o[10] !== g ? ($t = hn(Zt.profiles, Qt, g), o[8] = Qt, o[9] = Zt.profiles, o[10] = g, o[11] = $t) : $t = o[11];
1115
+ a[8] !== Qt || a[9] !== Zt.profiles || a[10] !== _ ? ($t = hn(Zt.profiles, Qt, _), a[8] = Qt, a[9] = Zt.profiles, a[10] = _, a[11] = $t) : $t = a[11];
1116
1116
  let en = $t, nn = Ge((e) => G ? e.byTabId[G]?.rect ?? null : null), rn = async (e) => {
1117
- if (q && Ie.current) return Ct ? null : (Ie.current.navigate(e), ne(s, e), Qt);
1118
- if (G && Y) return await Y.navigate(G, e), ne(s, e), bn(G), Qt;
1117
+ if (q && Ie.current) return Ct ? null : (Ie.current.navigate(e), re(o, e), Qt);
1118
+ if (G && Y) return await Y.navigate(G, e), re(o, e), bn(G), Qt;
1119
1119
  let t = await Qe({
1120
1120
  openPreview: De,
1121
- threadRef: s,
1121
+ threadRef: o,
1122
1122
  url: e
1123
1123
  });
1124
1124
  if (t._tag === "Failure" && !E(t)) {
1125
- let e = x(t);
1125
+ let e = l(t);
1126
1126
  yt(e) && J.add({
1127
1127
  type: "error",
1128
- title: h("Unable to open browser"),
1128
+ title: g("Unable to open browser"),
1129
1129
  description: e.message
1130
1130
  });
1131
1131
  }
@@ -1133,25 +1133,25 @@ function xn(n) {
1133
1133
  }, an = Mn, sn = async (e) => {
1134
1134
  try {
1135
1135
  let t = me(e, Se(ze()));
1136
- an(await rn(t)) && z(s, t);
1136
+ an(await rn(t)) && z(o, t);
1137
1137
  } catch (e) {
1138
1138
  let t = e;
1139
1139
  J.add({
1140
1140
  type: "error",
1141
- title: h("Could not open this address"),
1142
- description: ge(t) ? h("Enter an http or https URL.") : L(t, r) ?? h("An error occurred.")
1141
+ title: g("Could not open this address"),
1142
+ description: ge(t) ? g("Enter an http or https URL.") : L(t, r) ?? g("An error occurred.")
1143
1143
  });
1144
1144
  }
1145
1145
  }, cn = async (e) => {
1146
1146
  try {
1147
- let t = q || !Y ? be(e) : he(s.environmentId, e);
1148
- an(await rn(t)) && z(s, e);
1147
+ let t = q || !Y ? be(e) : he(o.environmentId, e);
1148
+ an(await rn(t)) && z(o, e);
1149
1149
  } catch (e) {
1150
1150
  let t = e;
1151
1151
  J.add({
1152
1152
  type: "error",
1153
- title: h("Could not open this address"),
1154
- description: ge(t) ? h("Enter an http or https URL.") : L(t, r) ?? h("An error occurred.")
1153
+ title: g("Could not open this address"),
1154
+ description: ge(t) ? g("Enter an http or https URL.") : L(t, r) ?? g("An error occurred.")
1155
1155
  });
1156
1156
  }
1157
1157
  }, ln = () => {
@@ -1159,40 +1159,40 @@ function xn(n) {
1159
1159
  }, fn = () => {
1160
1160
  q ? Ie.current?.stopLoading() : Y && G && Y.stopLoading(G);
1161
1161
  }, pn;
1162
- o[12] !== Me || o[13] !== h || o[14] !== W || o[15] !== s ? (pn = async (e) => {
1162
+ a[12] !== Me || a[13] !== g || a[14] !== W || a[15] !== o ? (pn = async (e) => {
1163
1163
  if (!W) return;
1164
1164
  let t = await Me({
1165
- environmentId: s.environmentId,
1165
+ environmentId: o.environmentId,
1166
1166
  input: {
1167
- threadId: s.threadId,
1167
+ threadId: o.threadId,
1168
1168
  tabId: W,
1169
1169
  ...e
1170
1170
  }
1171
1171
  });
1172
1172
  if (t._tag === "Failure") {
1173
- let e = x(t);
1173
+ let e = l(t);
1174
1174
  J.add({
1175
1175
  type: "error",
1176
- title: h("Unable to change the browser tab"),
1177
- description: L(e, r) ?? h("An error occurred.")
1176
+ title: g("Unable to change the browser tab"),
1177
+ description: L(e, r) ?? g("An error occurred.")
1178
1178
  });
1179
- } else b(s, t.value);
1180
- }, o[12] = Me, o[13] = h, o[14] = W, o[15] = s, o[16] = pn) : pn = o[16];
1179
+ } else x(o, t.value);
1180
+ }, a[12] = Me, a[13] = g, a[14] = W, a[15] = o, a[16] = pn) : pn = a[16];
1181
1181
  let mn = pn, vn = K?.zoomFactor ?? 1, xn;
1182
- o[17] !== mn || o[18] !== vn ? (xn = (e) => {
1182
+ a[17] !== mn || a[18] !== vn ? (xn = (e) => {
1183
1183
  let t = se.indexOf(vn), n = e === 0 ? 1 : se[Math.min(Math.max((t < 0 ? 7 : t) + e, 0), se.length - 1)];
1184
1184
  n !== vn && mn({ zoomFactor: n });
1185
- }, o[17] = mn, o[18] = vn, o[19] = xn) : xn = o[19];
1185
+ }, a[17] = mn, a[18] = vn, a[19] = xn) : xn = a[19];
1186
1186
  let Fn = xn, In = Y !== null && G !== null && X !== null && !q && !Kt && !Ut, Ln = () => {
1187
- In ? S((e) => ({
1187
+ In ? te((e) => ({
1188
1188
  tabId: G,
1189
1189
  requestId: (e?.requestId ?? 0) + 1
1190
1190
  })) : J.add({
1191
1191
  type: "info",
1192
- title: h("Find on page isn't available for this page")
1192
+ title: g("Find on page isn't available for this page")
1193
1193
  });
1194
1194
  }, Rn = () => {
1195
- S(null), G && bn(G);
1195
+ te(null), G && bn(G);
1196
1196
  }, zn = () => {
1197
1197
  Fe ? Fn(1) : Y && G && Y.zoomIn(G);
1198
1198
  }, Bn = () => {
@@ -1202,7 +1202,7 @@ function xn(n) {
1202
1202
  }, Hn = () => {
1203
1203
  if (!G || !W) return;
1204
1204
  let e = {
1205
- threadRef: s,
1205
+ threadRef: o,
1206
1206
  tabId: W,
1207
1207
  runtimeTabId: G
1208
1208
  };
@@ -1216,45 +1216,45 @@ function xn(n) {
1216
1216
  }, Wn = () => {
1217
1217
  q ? Ie.current?.history(1) : Y && G && Y.goForward(G);
1218
1218
  }, Gn;
1219
- o[20] !== q || o[21] !== s.environmentId || o[22] !== Mt ? (Gn = () => {
1219
+ a[20] !== q || a[21] !== o.environmentId || a[22] !== Mt ? (Gn = () => {
1220
1220
  if (!gn || !Mt) return;
1221
- let e = q ? Mt : ye(s.environmentId, Mt);
1221
+ let e = q ? Mt : ye(o.environmentId, Mt);
1222
1222
  gn.shell.openExternal(e).catch(kn);
1223
- }, o[20] = q, o[21] = s.environmentId, o[22] = Mt, o[23] = Gn) : Gn = o[23];
1223
+ }, a[20] = q, a[21] = o.environmentId, a[22] = Mt, a[23] = Gn) : Gn = a[23];
1224
1224
  let Kn = Gn, qn;
1225
- o[24] !== Ae || o[25] !== je || o[26] !== K || o[27] !== s.environmentId ? (qn = V(s.environmentId, Ae, je, K), o[24] = Ae, o[25] = je, o[26] = K, o[27] = s.environmentId, o[28] = qn) : qn = o[28];
1225
+ a[24] !== Ae || a[25] !== je || a[26] !== K || a[27] !== o.environmentId ? (qn = V(o.environmentId, Ae, je, K), a[24] = Ae, a[25] = je, a[26] = K, a[27] = o.environmentId, a[28] = qn) : qn = a[28];
1226
1226
  let Jn = qn, Yn;
1227
- o[29] !== ke || o[30] !== h || o[31] !== Jn ? (Yn = Jn === "server" ? ke === null ? h("Open in the environment's browser") : h("Open in {environment}''s browser", { environment: ke }) : h("Open on this computer"), o[29] = ke, o[30] = h, o[31] = Jn, o[32] = Yn) : Yn = o[32];
1227
+ a[29] !== ke || a[30] !== g || a[31] !== Jn ? (Yn = Jn === "server" ? ke === null ? g("Open in the environment's browser") : g("Open in {environment}''s browser", { environment: ke }) : g("Open on this computer"), a[29] = ke, a[30] = g, a[31] = Jn, a[32] = Yn) : Yn = a[32];
1228
1228
  let Xn = Yn, Zn;
1229
- o[33] !== Oe || o[34] !== h || o[35] !== Jn || o[36] !== De || o[37] !== K || o[38] !== W || o[39] !== s || o[40] !== Mt || o[41] !== Xt ? (Zn = async () => {
1229
+ a[33] !== Oe || a[34] !== g || a[35] !== Jn || a[36] !== De || a[37] !== K || a[38] !== W || a[39] !== o || a[40] !== Mt || a[41] !== Xt ? (Zn = async () => {
1230
1230
  if (!Jn || !W || !K) return;
1231
1231
  let e = await Qe({
1232
1232
  openPreview: De,
1233
- threadRef: s,
1234
- ...Mt ? { url: Jn === "desktop" ? he(s.environmentId, Mt) : Mt } : {},
1233
+ threadRef: o,
1234
+ ...Mt ? { url: Jn === "desktop" ? he(o.environmentId, Mt) : Mt } : {},
1235
1235
  viewport: Xt,
1236
1236
  ...K.profileId === void 0 ? {} : { profileId: K.profileId },
1237
1237
  runtime: Jn
1238
1238
  });
1239
1239
  if (e._tag === "Failure") {
1240
1240
  if (E(e)) return;
1241
- let t = x(e);
1241
+ let t = l(e);
1242
1242
  J.add({
1243
1243
  type: "error",
1244
- title: h("Unable to move the browser tab"),
1245
- description: L(t, r) ?? h("An error occurred.")
1244
+ title: g("Unable to move the browser tab"),
1245
+ description: L(t, r) ?? g("An error occurred.")
1246
1246
  });
1247
- } else vt.getState().openBrowser(s, e.value.tabId), await ut({
1247
+ } else vt.getState().openBrowser(o, e.value.tabId), await ut({
1248
1248
  closePreview: Oe,
1249
1249
  snapshot: K,
1250
1250
  tabId: W,
1251
- threadRef: s
1251
+ threadRef: o
1252
1252
  });
1253
- }, o[33] = Oe, o[34] = h, o[35] = Jn, o[36] = De, o[37] = K, o[38] = W, o[39] = s, o[40] = Mt, o[41] = Xt, o[42] = Zn) : Zn = o[42];
1253
+ }, a[33] = Oe, a[34] = g, a[35] = Jn, a[36] = De, a[37] = K, a[38] = W, a[39] = o, a[40] = Mt, a[41] = Xt, a[42] = Zn) : Zn = a[42];
1254
1254
  let Qn = Zn, $n;
1255
- o[43] !== U || o[44] !== W || o[45] !== s ? ($n = () => {
1256
- W && (U === W ? gt.getState().close(s) : (gt.getState().open(s, ht(W)), vt.getState().close(s)));
1257
- }, o[43] = U, o[44] = W, o[45] = s, o[46] = $n) : $n = o[46];
1255
+ a[43] !== U || a[44] !== W || a[45] !== o ? ($n = () => {
1256
+ W && (U === W ? gt.getState().close(o) : (gt.getState().open(o, ht(W)), vt.getState().close(o)));
1257
+ }, a[43] = U, a[44] = W, a[45] = o, a[46] = $n) : $n = a[46];
1258
1258
  let er = $n, tr = (e) => () => {
1259
1259
  e && G && e(G).catch(On);
1260
1260
  }, nr = Fe ? {
@@ -1278,8 +1278,8 @@ function xn(n) {
1278
1278
  zoomIn: zn,
1279
1279
  zoomOut: Bn,
1280
1280
  resetZoom: Vn,
1281
- clearCookies: () => void Y?.clearCookies(s.environmentId, Qt).catch(En),
1282
- clearCache: () => void Y?.clearCache(s.environmentId, Qt).catch(Tn),
1281
+ clearCookies: () => void Y?.clearCookies(o.environmentId, Qt).catch(En),
1282
+ clearCache: () => void Y?.clearCache(o.environmentId, Qt).catch(Tn),
1283
1283
  openDevTools: tr(Y.openDevTools),
1284
1284
  toggleNativePictureInPicture: () => rr(),
1285
1285
  ...In ? { find: Ln } : {}
@@ -1287,12 +1287,12 @@ function xn(n) {
1287
1287
  Y && G && (X?.pictureInPicture ? Y.pictureInPicture.close : Y.pictureInPicture.open)(G).catch((e) => {
1288
1288
  J.add({
1289
1289
  type: "error",
1290
- title: h("Unable to update popped-out preview"),
1291
- description: L(e, r) ?? h("An error occurred.")
1290
+ title: g("Unable to update popped-out preview"),
1291
+ description: L(e, r) ?? g("An error occurred.")
1292
1292
  });
1293
1293
  });
1294
1294
  }, ir;
1295
- o[47] !== h || o[48] !== g || o[49] !== Ne || o[50] !== G || o[51] !== W || o[52] !== s ? (ir = (e) => {
1295
+ a[47] !== g || a[48] !== _ || a[49] !== Ne || a[50] !== G || a[51] !== W || a[52] !== o ? (ir = (e) => {
1296
1296
  Y && G && W && (Ne ? Je(Ne).then((e) => {
1297
1297
  if (!e) return;
1298
1298
  let t = !1, n, i = () => {
@@ -1303,27 +1303,27 @@ function xn(n) {
1303
1303
  }, (e) => {
1304
1304
  J.update(n, Ue({
1305
1305
  type: "error",
1306
- title: h("Unable to copy recording path"),
1307
- description: L(e, r) ?? h("An error occurred."),
1306
+ title: g("Unable to copy recording path"),
1307
+ description: L(e, r) ?? g("An error occurred."),
1308
1308
  actionProps: a
1309
1309
  }));
1310
1310
  }) : J.update(n, Ue({
1311
1311
  type: "error",
1312
- title: h("Unable to copy recording path"),
1313
- description: h("Clipboard API unavailable."),
1312
+ title: g("Unable to copy recording path"),
1313
+ description: g("Clipboard API unavailable."),
1314
1314
  actionProps: a
1315
1315
  }));
1316
1316
  }, a = {
1317
- children: wt(navigator.platform, g),
1317
+ children: wt(navigator.platform, _),
1318
1318
  onClick: () => void Y.revealArtifact(e.path)
1319
1319
  }, o = () => {
1320
1320
  J.update(n, Ue({
1321
1321
  type: "success",
1322
- title: h("Recording saved"),
1322
+ title: g("Recording saved"),
1323
1323
  actionProps: a,
1324
1324
  data: {
1325
1325
  secondaryActionProps: {
1326
- children: h(t ? "Copied!" : "Copy path"),
1326
+ children: g(t ? "Copied!" : "Copy path"),
1327
1327
  disabled: t,
1328
1328
  onClick: i
1329
1329
  },
@@ -1333,11 +1333,11 @@ function xn(n) {
1333
1333
  };
1334
1334
  n = J.add(Ue({
1335
1335
  type: "success",
1336
- title: h("Recording saved"),
1336
+ title: g("Recording saved"),
1337
1337
  actionProps: a,
1338
1338
  data: {
1339
1339
  secondaryActionProps: {
1340
- children: h("Copy path"),
1340
+ children: g("Copy path"),
1341
1341
  onClick: i
1342
1342
  },
1343
1343
  secondaryActionVariant: "outline"
@@ -1346,28 +1346,28 @@ function xn(n) {
1346
1346
  }, (e) => {
1347
1347
  J.add({
1348
1348
  type: "error",
1349
- title: h("Unable to stop recording"),
1350
- description: L(e, r) ?? h("An error occurred.")
1349
+ title: g("Unable to stop recording"),
1350
+ description: L(e, r) ?? g("An error occurred.")
1351
1351
  });
1352
- }) : e ? Ke(G, s, W).catch((e) => {
1353
- let t = L(e, r) ?? h("An error occurred.");
1352
+ }) : e ? Ke(G, o, W).catch((e) => {
1353
+ let t = L(e, r) ?? g("An error occurred.");
1354
1354
  qe(e) || J.add({
1355
1355
  type: "error",
1356
- title: h("Unable to start recording"),
1356
+ title: g("Unable to start recording"),
1357
1357
  description: t
1358
1358
  });
1359
1359
  }) : Y.captureScreenshot(G).then((e) => {
1360
1360
  let t = {
1361
- children: wt(navigator.platform, g),
1361
+ children: wt(navigator.platform, _),
1362
1362
  onClick: () => void Y.revealArtifact(e.path)
1363
1363
  }, n = !1, i = !1, a, o = (e, r, o) => {
1364
- let l = e === void 0 ? "success" : e, u = r === void 0 ? h("Screenshot saved") : r;
1364
+ let l = e === void 0 ? "success" : e, u = r === void 0 ? g("Screenshot saved") : r;
1365
1365
  J.update(a, Ue({
1366
1366
  type: l,
1367
1367
  title: u,
1368
1368
  description: o,
1369
1369
  actionProps: {
1370
- children: h(i ? "Copied!" : "Copy image"),
1370
+ children: g(i ? "Copied!" : "Copy image"),
1371
1371
  disabled: i,
1372
1372
  onClick: c
1373
1373
  },
@@ -1375,7 +1375,7 @@ function xn(n) {
1375
1375
  additionalActions: [{
1376
1376
  id: "copy-path",
1377
1377
  props: {
1378
- children: h(n ? "Copied!" : "Copy path"),
1378
+ children: g(n ? "Copied!" : "Copy path"),
1379
1379
  disabled: n,
1380
1380
  onClick: s
1381
1381
  }
@@ -1390,29 +1390,29 @@ function xn(n) {
1390
1390
  n = !1, o();
1391
1391
  }, 2e3);
1392
1392
  }, (e) => {
1393
- o("error", h("Unable to copy screenshot path"), L(e, r) ?? h("An error occurred."));
1394
- }) : o("error", h("Unable to copy screenshot path"), h("Clipboard API unavailable."));
1393
+ o("error", g("Unable to copy screenshot path"), L(e, r) ?? g("An error occurred."));
1394
+ }) : o("error", g("Unable to copy screenshot path"), g("Clipboard API unavailable."));
1395
1395
  }, c = () => {
1396
1396
  Y.copyArtifactToClipboard(e.path).then(() => {
1397
1397
  i = !0, o(), window.setTimeout(() => {
1398
1398
  i = !1, o();
1399
1399
  }, 2e3);
1400
1400
  }, (e) => {
1401
- o("error", h("Unable to copy screenshot"), L(e, r) ?? h("An error occurred."));
1401
+ o("error", g("Unable to copy screenshot"), L(e, r) ?? g("An error occurred."));
1402
1402
  });
1403
1403
  };
1404
1404
  a = J.add(Ue({
1405
1405
  type: "success",
1406
- title: h("Screenshot saved"),
1406
+ title: g("Screenshot saved"),
1407
1407
  actionProps: {
1408
- children: h("Copy image"),
1408
+ children: g("Copy image"),
1409
1409
  onClick: c
1410
1410
  },
1411
1411
  data: {
1412
1412
  additionalActions: [{
1413
1413
  id: "copy-path",
1414
1414
  props: {
1415
- children: h("Copy path"),
1415
+ children: g("Copy path"),
1416
1416
  onClick: s
1417
1417
  }
1418
1418
  }],
@@ -1423,44 +1423,44 @@ function xn(n) {
1423
1423
  }, (e) => {
1424
1424
  J.add({
1425
1425
  type: "error",
1426
- title: h("Unable to capture screenshot"),
1427
- description: L(e, r) ?? h("An error occurred.")
1426
+ title: g("Unable to capture screenshot"),
1427
+ description: L(e, r) ?? g("An error occurred.")
1428
1428
  });
1429
1429
  }));
1430
- }, o[47] = h, o[48] = g, o[49] = Ne, o[50] = G, o[51] = W, o[52] = s, o[53] = ir) : ir = o[53];
1430
+ }, a[47] = g, a[48] = _, a[49] = Ne, a[50] = G, a[51] = W, a[52] = o, a[53] = ir) : ir = a[53];
1431
1431
  let ar = ir, or;
1432
- o[54] !== Te || o[55] !== we || o[56] !== h || o[57] !== ue || o[58] !== m || o[59] !== G || o[60] !== s ? (or = () => {
1432
+ a[54] !== Te || a[55] !== we || a[56] !== g || a[57] !== ue || a[58] !== m || a[59] !== G || a[60] !== o ? (or = () => {
1433
1433
  if (!Y || !G) return;
1434
- if (O.current) {
1435
- O.current.cancelled = !0, Y.cancelPickElement(G).catch(wn);
1434
+ if (A.current) {
1435
+ A.current.cancelled = !0, Y.cancelPickElement(G).catch(wn);
1436
1436
  return;
1437
1437
  }
1438
1438
  let e = typeof document < "u" ? document.activeElement : null, n = { cancelled: !1 }, r = !1;
1439
- O.current = n, te(!0);
1439
+ A.current = n, ne(!0);
1440
1440
  let i = {
1441
- sessionId: ie(),
1441
+ sessionId: j(),
1442
1442
  shortcuts: F(ue, "composer.dictation", { context: {
1443
1443
  previewFocus: !0,
1444
1444
  previewOpen: !0,
1445
1445
  editableFocus: !0
1446
1446
  } })
1447
1447
  };
1448
- N(i), ae(async () => {
1449
- if (await Y.setAnnotationSendEnabled(G, !!m && t(s.environmentId, "orchestration:operate")), n.cancelled) return;
1448
+ N(i), S(async () => {
1449
+ if (await Y.setAnnotationSendEnabled(G, !!m && t(o.environmentId, "orchestration:operate")), n.cancelled) return;
1450
1450
  yn(G);
1451
1451
  let e = await Y.pickElement(G, i);
1452
1452
  if (!e || n.cancelled) return;
1453
- O.current === n && (O.current = null, te(!1), N(null), r = !0);
1454
- let { annotation: a, submission: o, screenshotFailed: c } = e, l = c !== void 0 && c, u = Wt(a), d = l || u.status === "failed", f = u.status === "failed" ? {
1453
+ A.current === n && (A.current = null, ne(!1), N(null), r = !0);
1454
+ let { annotation: a, submission: s, screenshotFailed: c } = e, l = c !== void 0 && c, u = Wt(a), d = l || u.status === "failed", f = u.status === "failed" ? {
1455
1455
  ...a,
1456
1456
  screenshot: null
1457
1457
  } : a;
1458
- u.status === "captured" && await v(u.file), we(s, f), d && J.add(Ue({
1458
+ u.status === "captured" && await v(u.file), we(o, f), d && J.add(Ue({
1459
1459
  type: "error",
1460
- title: h("Could not capture the picked element"),
1461
- description: h("The annotation was kept without the screenshot.")
1460
+ title: g("Could not capture the picked element"),
1461
+ description: g("The annotation was kept without the screenshot.")
1462
1462
  }));
1463
- let p = u.status === "captured" ? u.file : null, g = p && f.screenshot ? {
1463
+ let p = u.status === "captured" ? u.file : null, h = p && f.screenshot ? {
1464
1464
  type: "image",
1465
1465
  id: f.id,
1466
1466
  name: p.name,
@@ -1469,28 +1469,28 @@ function xn(n) {
1469
1469
  previewUrl: f.screenshot.dataUrl,
1470
1470
  file: p
1471
1471
  } : null;
1472
- g && Te(s, g), o === "send" && t(s.environmentId, "orchestration:operate") && m?.(f, g);
1472
+ h && Te(o, h), s === "send" && t(o.environmentId, "orchestration:operate") && m?.(f, h);
1473
1473
  }).then(() => {
1474
- let t = O.current === n;
1475
- if (t && (O.current = null, te(!1), N(null)), (t || r) && e && e.isConnected && typeof e.focus == "function") try {
1474
+ let t = A.current === n;
1475
+ if (t && (A.current = null, ne(!1), N(null)), (t || r) && e && e.isConnected && typeof e.focus == "function") try {
1476
1476
  e.focus({ preventScroll: !0 });
1477
1477
  } catch {}
1478
1478
  });
1479
- }, o[54] = Te, o[55] = we, o[56] = h, o[57] = ue, o[58] = m, o[59] = G, o[60] = s, o[61] = or) : or = o[61];
1479
+ }, a[54] = Te, a[55] = we, a[56] = g, a[57] = ue, a[58] = m, a[59] = G, a[60] = o, a[61] = or) : or = a[61];
1480
1480
  let sr = or, cr, lr;
1481
- o[62] !== re || o[63] !== C || o[64] !== G ? (cr = () => {
1482
- C && Y && G && Y.setAnnotationSendEnabled(G, re).catch(Cn);
1481
+ a[62] !== T || a[63] !== C || a[64] !== G ? (cr = () => {
1482
+ C && Y && G && Y.setAnnotationSendEnabled(G, T).catch(Cn);
1483
1483
  }, lr = [
1484
- re,
1484
+ T,
1485
1485
  C,
1486
1486
  G
1487
- ], o[62] = re, o[63] = C, o[64] = G, o[65] = cr, o[66] = lr) : (cr = o[65], lr = o[66]), It(cr, lr);
1487
+ ], a[62] = T, a[63] = C, a[64] = G, a[65] = cr, a[66] = lr) : (cr = a[65], lr = a[66]), It(cr, lr);
1488
1488
  let ur, dr;
1489
- o[67] === G ? (ur = o[68], dr = o[69]) : (ur = () => () => {
1490
- O.current && (O.current.cancelled = !0, O.current = null, Y && G && Y.cancelPickElement(G).catch(Sn), te(!1), N(null));
1491
- }, dr = [G], o[67] = G, o[68] = ur, o[69] = dr), It(ur, dr);
1489
+ a[67] === G ? (ur = a[68], dr = a[69]) : (ur = () => () => {
1490
+ A.current && (A.current.cancelled = !0, A.current = null, Y && G && Y.cancelPickElement(G).catch(Sn), ne(!1), N(null));
1491
+ }, dr = [G], a[67] = G, a[68] = ur, a[69] = dr), It(ur, dr);
1492
1492
  let fr;
1493
- o[70] !== Un || o[71] !== Ln || o[72] !== Wn || o[73] !== ln || o[74] !== Vn || o[75] !== zn || o[76] !== Bn ? (fr = (e) => {
1493
+ a[70] !== Un || a[71] !== Ln || a[72] !== Wn || a[73] !== ln || a[74] !== Vn || a[75] !== zn || a[76] !== Bn ? (fr = (e) => {
1494
1494
  switch (e) {
1495
1495
  case "refresh":
1496
1496
  ln();
@@ -1502,7 +1502,7 @@ function xn(n) {
1502
1502
  Wn();
1503
1503
  return;
1504
1504
  case "focus-url":
1505
- _.current?.focus();
1505
+ y.current?.focus();
1506
1506
  return;
1507
1507
  case "zoom-in":
1508
1508
  zn();
@@ -1518,9 +1518,9 @@ function xn(n) {
1518
1518
  return;
1519
1519
  case "toggle-panel": return;
1520
1520
  }
1521
- }, o[70] = Un, o[71] = Ln, o[72] = Wn, o[73] = ln, o[74] = Vn, o[75] = zn, o[76] = Bn, o[77] = fr) : fr = o[77];
1521
+ }, a[70] = Un, a[71] = Ln, a[72] = Wn, a[73] = ln, a[74] = Vn, a[75] = zn, a[76] = Bn, a[77] = fr) : fr = a[77];
1522
1522
  let pr = Lt(fr), mr;
1523
- o[78] !== pr || o[79] !== p ? (mr = () => {
1523
+ a[78] !== pr || a[79] !== p ? (mr = () => {
1524
1524
  if (!p) return;
1525
1525
  let e = Ot((e) => pr(e)), t = window.desktopBridge?.onMenuAction((e) => {
1526
1526
  e === "preview.focusUrl" && pr("focus-url"), e === "preview.zoomIn" && pr("zoom-in"), e === "preview.zoomOut" && pr("zoom-out"), e === "preview.resetZoom" && pr("reset-zoom"), e === "preview.find" && pr("find");
@@ -1528,25 +1528,25 @@ function xn(n) {
1528
1528
  return () => {
1529
1529
  e(), t?.();
1530
1530
  };
1531
- }, o[78] = pr, o[79] = p, o[80] = mr) : mr = o[80];
1531
+ }, a[78] = pr, a[79] = p, a[80] = mr) : mr = a[80];
1532
1532
  let hr;
1533
- o[81] === p ? hr = o[82] : (hr = [p], o[81] = p, o[82] = hr), It(mr, hr);
1533
+ a[81] === p ? hr = a[82] : (hr = [p], a[81] = p, a[82] = hr), It(mr, hr);
1534
1534
  let gr;
1535
- o[83] === s ? gr = o[84] : (gr = a(s), o[83] = s, o[84] = gr);
1535
+ a[83] === o ? gr = a[84] : (gr = ie(o), a[83] = o, a[84] = gr);
1536
1536
  let _r;
1537
- o[85] !== k || o[86] !== ue || o[87] !== C || o[88] !== G || o[89] !== s ? (_r = C && G && k ? /* @__PURE__ */ Q(Gt, {
1538
- threadRef: s,
1537
+ a[85] !== oe || a[86] !== ue || a[87] !== C || a[88] !== G || a[89] !== o ? (_r = C && G && oe ? /* @__PURE__ */ Q(Gt, {
1538
+ threadRef: o,
1539
1539
  tabId: G,
1540
- config: k,
1540
+ config: oe,
1541
1541
  keybindings: ue
1542
- }, k.sessionId) : null, o[85] = k, o[86] = ue, o[87] = C, o[88] = G, o[89] = s, o[90] = _r) : _r = o[90];
1542
+ }, oe.sessionId) : null, a[85] = oe, a[86] = ue, a[87] = C, a[88] = G, a[89] = o, a[90] = _r) : _r = a[90];
1543
1543
  let vr = Nt || Jt, yr = Pt && !Ct, br = Ft && !Ct, xr = Vt || Ct, Sr;
1544
- o[91] === sn ? Sr = o[92] : (Sr = (e) => void sn(e), o[91] = sn, o[92] = Sr);
1544
+ a[91] === sn ? Sr = a[92] : (Sr = (e) => void sn(e), a[91] = sn, a[92] = Sr);
1545
1545
  let Cr = W ? Kn : void 0, wr = Y && W && !q ? ar : void 0, Tr = !X || Ut, Er = Ne !== null, Dr = W && (q || Y) ? er : void 0, Or = U === W, kr = Ut || !q && !X?.hasWebContents, Ar = Y && W && !q ? sr : void 0, jr = !W || Ut, Mr;
1546
- o[93] !== h || o[94] !== Ut ? (Mr = Ut ? h("Page didn't load. Pick is unavailable until the page renders") : void 0, o[93] = h, o[94] = Ut, o[95] = Mr) : Mr = o[95];
1546
+ a[93] !== g || a[94] !== Ut ? (Mr = Ut ? g("Page didn't load. Pick is unavailable until the page renders") : void 0, a[93] = g, a[94] = Ut, a[95] = Mr) : Mr = a[95];
1547
1547
  let Nr;
1548
- o[96] !== Qt || o[97] !== en || o[98] !== Zt.profileId ? (Nr = Qt === Zt.profileId ? null : /* @__PURE__ */ $(D, { children: [/* @__PURE__ */ Q(M, {
1549
- render: /* @__PURE__ */ Q(l, {
1548
+ a[96] !== Qt || a[97] !== en || a[98] !== Zt.profileId ? (Nr = Qt === Zt.profileId ? null : /* @__PURE__ */ $(O, { children: [/* @__PURE__ */ Q(M, {
1549
+ render: /* @__PURE__ */ Q(c, {
1550
1550
  variant: "outline",
1551
1551
  className: "max-w-28 shrink-0"
1552
1552
  }),
@@ -1554,12 +1554,12 @@ function xn(n) {
1554
1554
  className: "truncate",
1555
1555
  children: en
1556
1556
  })
1557
- }), /* @__PURE__ */ Q(T, {
1557
+ }), /* @__PURE__ */ Q(D, {
1558
1558
  side: "top",
1559
1559
  children: en
1560
- })] }), o[96] = Qt, o[97] = en, o[98] = Zt.profileId, o[99] = Nr) : Nr = o[99];
1560
+ })] }), a[96] = Qt, a[97] = en, a[98] = Zt.profileId, a[99] = Nr) : Nr = a[99];
1561
1561
  let Pr;
1562
- o[100] !== en || o[101] !== X?.colorScheme || o[102] !== X?.hasWebContents || o[103] !== X?.pictureInPicture || o[104] !== X?.zoomFactor || o[105] !== Qn || o[106] !== Hn || o[107] !== ue || o[108] !== nr || o[109] !== Xn || o[110] !== Jn || o[111] !== G || o[112] !== Fe || o[113] !== vn || o[114] !== K?.colorScheme || o[115] !== Xt ? (Pr = nr ? /* @__PURE__ */ Q(on, {
1562
+ a[100] !== en || a[101] !== X?.colorScheme || a[102] !== X?.hasWebContents || a[103] !== X?.pictureInPicture || a[104] !== X?.zoomFactor || a[105] !== Qn || a[106] !== Hn || a[107] !== ue || a[108] !== nr || a[109] !== Xn || a[110] !== Jn || a[111] !== G || a[112] !== Fe || a[113] !== vn || a[114] !== K?.colorScheme || a[115] !== Xt ? (Pr = nr ? /* @__PURE__ */ Q(on, {
1563
1563
  enabled: G !== null && (Fe || (X?.hasWebContents ?? !1)),
1564
1564
  actions: nr,
1565
1565
  ...Jn ? { move: {
@@ -1573,16 +1573,16 @@ function xn(n) {
1573
1573
  deviceToolbarVisible: Xt._tag !== "fill",
1574
1574
  onToggleDeviceToolbar: Hn,
1575
1575
  nativePictureInPicture: X?.pictureInPicture ?? !1
1576
- }) : null, o[100] = en, o[101] = X?.colorScheme, o[102] = X?.hasWebContents, o[103] = X?.pictureInPicture, o[104] = X?.zoomFactor, o[105] = Qn, o[106] = Hn, o[107] = ue, o[108] = nr, o[109] = Xn, o[110] = Jn, o[111] = G, o[112] = Fe, o[113] = vn, o[114] = K?.colorScheme, o[115] = Xt, o[116] = Pr) : Pr = o[116];
1576
+ }) : null, a[100] = en, a[101] = X?.colorScheme, a[102] = X?.hasWebContents, a[103] = X?.pictureInPicture, a[104] = X?.zoomFactor, a[105] = Qn, a[106] = Hn, a[107] = ue, a[108] = nr, a[109] = Xn, a[110] = Jn, a[111] = G, a[112] = Fe, a[113] = vn, a[114] = K?.colorScheme, a[115] = Xt, a[116] = Pr) : Pr = a[116];
1577
1577
  let Fr;
1578
- o[117] !== Un || o[118] !== Wn || o[119] !== ln || o[120] !== fn || o[121] !== C || o[122] !== Ct || o[123] !== vr || o[124] !== yr || o[125] !== br || o[126] !== xr || o[127] !== Sr || o[128] !== Cr || o[129] !== wr || o[130] !== Tr || o[131] !== Er || o[132] !== Dr || o[133] !== Or || o[134] !== kr || o[135] !== Ar || o[136] !== jr || o[137] !== Mr || o[138] !== Nr || o[139] !== Pr || o[140] !== Mt ? (Fr = /* @__PURE__ */ Q(qt, {
1578
+ a[117] !== Un || a[118] !== Wn || a[119] !== ln || a[120] !== fn || a[121] !== C || a[122] !== Ct || a[123] !== vr || a[124] !== yr || a[125] !== br || a[126] !== xr || a[127] !== Sr || a[128] !== Cr || a[129] !== wr || a[130] !== Tr || a[131] !== Er || a[132] !== Dr || a[133] !== Or || a[134] !== kr || a[135] !== Ar || a[136] !== jr || a[137] !== Mr || a[138] !== Nr || a[139] !== Pr || a[140] !== Mt ? (Fr = /* @__PURE__ */ Q(qt, {
1579
1579
  url: Mt,
1580
1580
  loading: vr,
1581
1581
  canGoBack: yr,
1582
1582
  canGoForward: br,
1583
1583
  refreshDisabled: xr,
1584
1584
  inputDisabled: Ct,
1585
- urlInputRef: _,
1585
+ urlInputRef: y,
1586
1586
  onBack: Un,
1587
1587
  onForward: Wn,
1588
1588
  onRefresh: ln,
@@ -1601,9 +1601,9 @@ function xn(n) {
1601
1601
  pickDisabledReason: Mr,
1602
1602
  leadingActions: Nr,
1603
1603
  trailingActions: Pr
1604
- }), o[117] = Un, o[118] = Wn, o[119] = ln, o[120] = fn, o[121] = C, o[122] = Ct, o[123] = vr, o[124] = yr, o[125] = br, o[126] = xr, o[127] = Sr, o[128] = Cr, o[129] = wr, o[130] = Tr, o[131] = Er, o[132] = Dr, o[133] = Or, o[134] = kr, o[135] = Ar, o[136] = jr, o[137] = Mr, o[138] = Nr, o[139] = Pr, o[140] = Mt, o[141] = Fr) : Fr = o[141];
1604
+ }), a[117] = Un, a[118] = Wn, a[119] = ln, a[120] = fn, a[121] = C, a[122] = Ct, a[123] = vr, a[124] = yr, a[125] = br, a[126] = xr, a[127] = Sr, a[128] = Cr, a[129] = wr, a[130] = Tr, a[131] = Er, a[132] = Dr, a[133] = Or, a[134] = kr, a[135] = Ar, a[136] = jr, a[137] = Mr, a[138] = Nr, a[139] = Pr, a[140] = Mt, a[141] = Fr) : Fr = a[141];
1605
1605
  let Ir;
1606
- o[142] !== Ee || o[143] !== q || o[144] !== Ut || o[145] !== Z._tag || o[146] !== G || o[147] !== He || o[148] !== Ve || o[149] !== Ie || o[150] !== it || o[151] !== tt || o[152] !== St || o[153] !== Dt || o[154] !== Kt || o[155] !== K || o[156] !== s || o[157] !== Mt || o[158] !== Xt || o[159] !== p ? (Ir = G && K && q ? /* @__PURE__ */ $(Ht, { children: [Xt._tag !== "fill" && !Kt && !Ut ? /* @__PURE__ */ Q("div", {
1606
+ a[142] !== Ee || a[143] !== q || a[144] !== Ut || a[145] !== Z._tag || a[146] !== G || a[147] !== He || a[148] !== Ve || a[149] !== Ie || a[150] !== it || a[151] !== tt || a[152] !== St || a[153] !== Dt || a[154] !== Kt || a[155] !== K || a[156] !== o || a[157] !== Mt || a[158] !== Xt || a[159] !== p ? (Ir = G && K && q ? /* @__PURE__ */ $(Ht, { children: [Xt._tag !== "fill" && !Kt && !Ut ? /* @__PURE__ */ Q("div", {
1607
1607
  className: "absolute inset-x-0 top-0 z-10",
1608
1608
  children: /* @__PURE__ */ Q(Xe, {
1609
1609
  setting: Xt,
@@ -1611,26 +1611,26 @@ function xn(n) {
1611
1611
  aspectRatio: He ? Xt.width / Xt.height : null,
1612
1612
  onAspectRatioChange: (e) => tt(e !== null),
1613
1613
  onChange: (e) => $e({
1614
- threadRef: s,
1614
+ threadRef: o,
1615
1615
  tabId: K.tabId,
1616
1616
  runtimeTabId: G
1617
1617
  }, e)
1618
1618
  })
1619
1619
  }) : null, /* @__PURE__ */ Q("div", {
1620
1620
  ref: Ve,
1621
- className: A("absolute inset-x-0 bottom-0", (Kt || Ut) && "invisible"),
1621
+ className: ae("absolute inset-x-0 bottom-0", (Kt || Ut) && "invisible"),
1622
1622
  style: { top: Xt._tag === "fill" ? 0 : 38 },
1623
1623
  children: /* @__PURE__ */ Q(st, {
1624
1624
  ref: Ie,
1625
- environmentId: s.environmentId,
1626
- threadId: s.threadId,
1625
+ environmentId: o.environmentId,
1626
+ threadId: o.threadId,
1627
1627
  tabId: K.tabId,
1628
1628
  pdfUrl: Z._tag === "Success" ? Ce(Mt, Ee) : null,
1629
1629
  visible: p,
1630
1630
  onFirstFrame: () => Dt(G),
1631
1631
  onNoFrames: () => Dt(G),
1632
1632
  onControl: (e) => St(e?.controller === "you" ? G : null),
1633
- onPopup: (e) => lt(s, e, "panel"),
1633
+ onPopup: (e) => lt(o, e, "panel"),
1634
1634
  className: "absolute inset-0 h-full w-full"
1635
1635
  }, G)
1636
1636
  })] }) : G && K && !Kt ? Y ? /* @__PURE__ */ Q(rt, {
@@ -1641,37 +1641,37 @@ function xn(n) {
1641
1641
  className: "flex h-full items-center justify-center p-8 text-center",
1642
1642
  children: /* @__PURE__ */ Q("p", {
1643
1643
  className: "max-w-sm text-sm text-muted-foreground",
1644
- children: /* @__PURE__ */ Q(j, { children: "This tab is open in the Hanzo Dev desktop app." })
1644
+ children: /* @__PURE__ */ Q(w, { children: "This tab is open in the Hanzo Dev desktop app." })
1645
1645
  })
1646
- }) : null, o[142] = Ee, o[143] = q, o[144] = Ut, o[145] = Z._tag, o[146] = G, o[147] = He, o[148] = Ve, o[149] = Ie, o[150] = it, o[151] = tt, o[152] = St, o[153] = Dt, o[154] = Kt, o[155] = K, o[156] = s, o[157] = Mt, o[158] = Xt, o[159] = p, o[160] = Ir) : Ir = o[160];
1646
+ }) : null, a[142] = Ee, a[143] = q, a[144] = Ut, a[145] = Z._tag, a[146] = G, a[147] = He, a[148] = Ve, a[149] = Ie, a[150] = it, a[151] = tt, a[152] = St, a[153] = Dt, a[154] = Kt, a[155] = K, a[156] = o, a[157] = Mt, a[158] = Xt, a[159] = p, a[160] = Ir) : Ir = a[160];
1647
1647
  let Lr;
1648
- o[161] !== d || o[162] !== cn || o[163] !== H || o[164] !== Kt || o[165] !== s ? (Lr = Kt ? /* @__PURE__ */ Q(tn, {
1649
- threadRef: s,
1650
- environmentId: s.environmentId,
1651
- configuredUrls: d,
1648
+ a[161] !== f || a[162] !== cn || a[163] !== H || a[164] !== Kt || a[165] !== o ? (Lr = Kt ? /* @__PURE__ */ Q(tn, {
1649
+ threadRef: o,
1650
+ environmentId: o.environmentId,
1651
+ configuredUrls: f,
1652
1652
  recentEntries: H,
1653
- onRemoveRecent: (e) => B(s, e),
1653
+ onRemoveRecent: (e) => B(o, e),
1654
1654
  onOpenUrl: (e) => void cn(e)
1655
- }) : null, o[161] = d, o[162] = cn, o[163] = H, o[164] = Kt, o[165] = s, o[166] = Lr) : Lr = o[166];
1655
+ }) : null, a[161] = f, a[162] = cn, a[163] = H, a[164] = Kt, a[165] = o, a[166] = Lr) : Lr = a[166];
1656
1656
  let Rr;
1657
- o[167] !== X || o[168] !== K ? (Rr = K && X ? /* @__PURE__ */ Q(un, { zoomFactor: X.zoomFactor }) : null, o[167] = X, o[168] = K, o[169] = Rr) : Rr = o[169];
1657
+ a[167] !== X || a[168] !== K ? (Rr = K && X ? /* @__PURE__ */ Q(un, { zoomFactor: X.zoomFactor }) : null, a[167] = X, a[168] = K, a[169] = Rr) : Rr = a[169];
1658
1658
  let zr;
1659
- o[170] !== w || o[171] !== Yt || o[172] !== X || o[173] !== Ut || o[174] !== kt || o[175] !== G || o[176] !== Kt ? (zr = G && X && !Kt && !Ut && !w.has(G) ? /* @__PURE__ */ Q(nt, {
1659
+ a[170] !== k || a[171] !== Yt || a[172] !== X || a[173] !== Ut || a[174] !== kt || a[175] !== G || a[176] !== Kt ? (zr = G && X && !Kt && !Ut && !k.has(G) ? /* @__PURE__ */ Q(nt, {
1660
1660
  tabId: G,
1661
1661
  zoomFactor: kt,
1662
1662
  controller: Yt
1663
- }) : null, o[170] = w, o[171] = Yt, o[172] = X, o[173] = Ut, o[174] = kt, o[175] = G, o[176] = Kt, o[177] = zr) : zr = o[177];
1663
+ }) : null, a[170] = k, a[171] = Yt, a[172] = X, a[173] = Ut, a[174] = kt, a[175] = G, a[176] = Kt, a[177] = zr) : zr = a[177];
1664
1664
  let Br;
1665
- o[178] !== In || o[179] !== Rn || o[180] !== y || o[181] !== G ? (Br = y && In && y.tabId === G ? /* @__PURE__ */ Q(dn, {
1666
- tabId: y.tabId,
1667
- focusRequestId: y.requestId,
1665
+ a[178] !== In || a[179] !== Rn || a[180] !== b || a[181] !== G ? (Br = b && In && b.tabId === G ? /* @__PURE__ */ Q(dn, {
1666
+ tabId: b.tabId,
1667
+ focusRequestId: b.requestId,
1668
1668
  onClose: Rn
1669
- }, y.tabId) : null, o[178] = In, o[179] = Rn, o[180] = y, o[181] = G, o[182] = Br) : Br = o[182];
1669
+ }, b.tabId) : null, a[178] = In, a[179] = Rn, a[180] = b, a[181] = G, a[182] = Br) : Br = a[182];
1670
1670
  let Vr;
1671
- o[183] !== Qn || o[184] !== ln || o[185] !== Xn || o[186] !== Jn || o[187] !== Z._tag || o[188] !== Z.code || o[189] !== Z.description || o[190] !== Z.download || o[191] !== Z.url || o[192] !== K?.tabId || o[193] !== s ? (Vr = Z._tag === "LoadFailed" && Z.download ? /* @__PURE__ */ Q("div", {
1671
+ a[183] !== Qn || a[184] !== ln || a[185] !== Xn || a[186] !== Jn || a[187] !== Z._tag || a[188] !== Z.code || a[189] !== Z.description || a[190] !== Z.download || a[191] !== Z.url || a[192] !== K?.tabId || a[193] !== o ? (Vr = Z._tag === "LoadFailed" && Z.download ? /* @__PURE__ */ Q("div", {
1672
1672
  className: "absolute inset-0 z-10 bg-background",
1673
1673
  children: /* @__PURE__ */ Q(_n, {
1674
- threadRef: s,
1674
+ threadRef: o,
1675
1675
  tabId: K?.tabId ?? "",
1676
1676
  url: Z.url,
1677
1677
  download: Z.download
@@ -1688,9 +1688,9 @@ function xn(n) {
1688
1688
  onMove: () => void Qn()
1689
1689
  } } : {}
1690
1690
  })
1691
- }) : null, o[183] = Qn, o[184] = ln, o[185] = Xn, o[186] = Jn, o[187] = Z._tag, o[188] = Z.code, o[189] = Z.description, o[190] = Z.download, o[191] = Z.url, o[192] = K?.tabId, o[193] = s, o[194] = Vr) : Vr = o[194];
1691
+ }) : null, a[183] = Qn, a[184] = ln, a[185] = Xn, a[186] = Jn, a[187] = Z._tag, a[188] = Z.code, a[189] = Z.description, a[190] = Z.download, a[191] = Z.url, a[192] = K?.tabId, a[193] = o, a[194] = Vr) : Vr = a[194];
1692
1692
  let Hr;
1693
- o[195] !== Ir || o[196] !== Lr || o[197] !== Rr || o[198] !== zr || o[199] !== Br || o[200] !== Vr ? (Hr = /* @__PURE__ */ $("div", {
1693
+ a[195] !== Ir || a[196] !== Lr || a[197] !== Rr || a[198] !== zr || a[199] !== Br || a[200] !== Vr ? (Hr = /* @__PURE__ */ $("div", {
1694
1694
  ref: dt,
1695
1695
  className: "relative min-h-0 flex-1 overflow-hidden",
1696
1696
  children: [
@@ -1701,9 +1701,9 @@ function xn(n) {
1701
1701
  Br,
1702
1702
  Vr
1703
1703
  ]
1704
- }), o[195] = Ir, o[196] = Lr, o[197] = Rr, o[198] = zr, o[199] = Br, o[200] = Vr, o[201] = Hr) : Hr = o[201];
1704
+ }), a[195] = Ir, a[196] = Lr, a[197] = Rr, a[198] = zr, a[199] = Br, a[200] = Vr, a[201] = Hr) : Hr = a[201];
1705
1705
  let Ur;
1706
- return o[202] !== gr || o[203] !== _r || o[204] !== Fr || o[205] !== Hr ? (Ur = /* @__PURE__ */ $("div", {
1706
+ return a[202] !== gr || a[203] !== _r || a[204] !== Fr || a[205] !== Hr ? (Ur = /* @__PURE__ */ $("div", {
1707
1707
  className: "flex min-h-0 flex-1 flex-col bg-background",
1708
1708
  "data-thread-key": gr,
1709
1709
  children: [
@@ -1711,7 +1711,7 @@ function xn(n) {
1711
1711
  Fr,
1712
1712
  Hr
1713
1713
  ]
1714
- }), o[202] = gr, o[203] = _r, o[204] = Fr, o[205] = Hr, o[206] = Ur) : Ur = o[206], Ur;
1714
+ }), a[202] = gr, a[203] = _r, a[204] = Fr, a[205] = Hr, a[206] = Ur) : Ur = a[206], Ur;
1715
1715
  }
1716
1716
  function Sn() {}
1717
1717
  function Cn() {}
@@ -1734,10 +1734,10 @@ function Pn(e) {
1734
1734
  }
1735
1735
  // src/components/preview/PreviewPanel.tsx
1736
1736
  function Fn(t) {
1737
- let n = Bt(21), { mode: r, threadRef: i, tabId: a, configuredUrls: o, visible: s, onSendAnnotation: c } = t, l = U(i.environmentId), u = ee(), d = e(i.environmentId, N);
1738
- if (!d || !l) {
1737
+ let n = Bt(21), { mode: r, threadRef: i, tabId: a, configuredUrls: o, visible: c, onSendAnnotation: l } = t, u = U(i.environmentId), d = s(), f = e(i.environmentId, N);
1738
+ if (!f || !u) {
1739
1739
  let e;
1740
- n[0] !== d || n[1] !== u ? (e = u(d ? "Preview is only available in the Hanzo Dev desktop app." : "Pair this client again with preview access to control browser previews."), n[0] = d, n[1] = u, n[2] = e) : e = n[2];
1740
+ n[0] !== f || n[1] !== d ? (e = d(f ? "Preview is only available in the Hanzo Dev desktop app." : "Pair this client again with preview access to control browser previews."), n[0] = f, n[1] = d, n[2] = e) : e = n[2];
1741
1741
  let t;
1742
1742
  n[3] === e ? t = n[4] : (t = /* @__PURE__ */ Q("div", {
1743
1743
  className: "flex min-h-0 flex-1 flex-col items-center justify-center gap-3 p-8 text-center",
@@ -1752,22 +1752,22 @@ function Fn(t) {
1752
1752
  children: t
1753
1753
  }), n[5] = r, n[6] = t, n[7] = i) : i = n[7], i;
1754
1754
  }
1755
- let f;
1756
- n[8] === a ? f = n[9] : (f = a === void 0 ? {} : { tabId: a }, n[8] = a, n[9] = f);
1757
1755
  let p;
1758
- n[10] === c ? p = n[11] : (p = c ? { onSendAnnotation: c } : {}, n[10] = c, n[11] = p);
1756
+ n[8] === a ? p = n[9] : (p = a === void 0 ? {} : { tabId: a }, n[8] = a, n[9] = p);
1759
1757
  let m;
1760
- n[12] !== o || n[13] !== f || n[14] !== p || n[15] !== i || n[16] !== s ? (m = /* @__PURE__ */ Q(xn, {
1758
+ n[10] === l ? m = n[11] : (m = l ? { onSendAnnotation: l } : {}, n[10] = l, n[11] = m);
1759
+ let h;
1760
+ n[12] !== o || n[13] !== p || n[14] !== m || n[15] !== i || n[16] !== c ? (h = /* @__PURE__ */ Q(xn, {
1761
1761
  threadRef: i,
1762
- ...f,
1762
+ ...p,
1763
1763
  configuredUrls: o,
1764
- visible: s,
1765
- ...p
1766
- }), n[12] = o, n[13] = f, n[14] = p, n[15] = i, n[16] = s, n[17] = m) : m = n[17];
1767
- let h;
1768
- return n[18] !== r || n[19] !== m ? (h = /* @__PURE__ */ Q(_t, {
1764
+ visible: c,
1765
+ ...m
1766
+ }), n[12] = o, n[13] = p, n[14] = m, n[15] = i, n[16] = c, n[17] = h) : h = n[17];
1767
+ let g;
1768
+ return n[18] !== r || n[19] !== h ? (g = /* @__PURE__ */ Q(_t, {
1769
1769
  mode: r,
1770
- children: m
1771
- }), n[18] = r, n[19] = m, n[20] = h) : h = n[20], h;
1770
+ children: h
1771
+ }), n[18] = r, n[19] = h, n[20] = g) : g = n[20], g;
1772
1772
  }
1773
1773
  export { Fn as PreviewPanel };