@qwen-code/web-shell 0.26.6 → 0.26.7-nightly.20261104.b9e20830f7

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 (32) hide show
  1. package/README.md +32 -0
  2. package/dist/{PierreFilePreview-Dotw1FUV.js → PierreFilePreview-5MGrUDic.js} +1 -1
  3. package/dist/{SpreadsheetPreview-BlItstJE.js → SpreadsheetPreview-9c0bupAT.js} +2 -2
  4. package/dist/{WorkspaceFileBrowser-do-tItX2.js → WorkspaceFileBrowser-DfPVJtDD.js} +189 -189
  5. package/dist/{agents-route-BczuxqIl.js → agents-route-DgiCLnxc.js} +2 -2
  6. package/dist/daemon-react-sdk.js +38 -37
  7. package/dist/{index-B-MJlZo9.js → index-DWnjEqGp.js} +53345 -52203
  8. package/dist/index.js +57 -56
  9. package/dist/sw.js +1 -1
  10. package/dist/transcript.js +6345 -6117
  11. package/dist/types/ManagedAgentWebShell.d.ts +13 -2
  12. package/dist/types/components/DaemonConnectionHelp.d.ts +5 -0
  13. package/dist/types/components/RemoteAccessSettingsCard.d.ts +1 -0
  14. package/dist/types/components/channels/ChannelEventsPage.d.ts +12 -0
  15. package/dist/types/components/channels/channel-editor-state.d.ts +59 -1
  16. package/dist/types/components/channels/channel-events-messages.d.ts +9 -0
  17. package/dist/types/components/channels/channel-platform.d.ts +26 -0
  18. package/dist/types/components/managed/ManagedSessionsPage.d.ts +2 -1
  19. package/dist/types/components/managed/generated/managed-agent-api.d.ts +19 -0
  20. package/dist/types/components/managed/managed-agent-provider.d.ts +1 -1
  21. package/dist/types/components/sidebar/WebShellSidebar.d.ts +5 -2
  22. package/dist/types/components/ui/collapsible.d.ts +5 -0
  23. package/dist/types/config/daemon.d.ts +1 -0
  24. package/dist/types/daemon/index.d.ts +2 -2
  25. package/dist/types/daemon/workspace/hooks/index.d.ts +1 -0
  26. package/dist/types/daemon/workspace/hooks/useDaemonChannelEvents.d.ts +31 -0
  27. package/dist/types/daemon/workspace/index.d.ts +2 -2
  28. package/dist/types/daemon/workspace/types.d.ts +7 -1
  29. package/dist/types/daemon-react-sdk.d.ts +2 -0
  30. package/dist/types/utils/navigationUrl.d.ts +1 -1
  31. package/dist/{useDaemonMidTurnInjected-D5dlDeW-.js → useDaemonMidTurnInjected-CvwWjzDV.js} +4473 -4170
  32. package/package.json +4 -2
@@ -1,16 +1,16 @@
1
- var Xu = Object.defineProperty;
1
+ var Yu = Object.defineProperty;
2
2
  var pl = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var Qu = (e, t, n) => t in e ? Xu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
5
+ var Qu = (e, t, n) => t in e ? Yu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
6
  var ct = (e, t, n) => Qu(e, typeof t != "symbol" ? t + "" : t, n), Oi = (e, t, n) => t.has(e) || pl("Cannot " + n);
7
7
  var s = (e, t, n) => (Oi(e, t, "read from private field"), n ? n.call(e) : t.get(e)), M = (e, t, n) => t.has(e) ? pl("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), b = (e, t, n, r) => (Oi(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), m = (e, t, n) => (Oi(e, t, "access private method"), n);
8
8
  import { jsx as V, jsxs as xe, Fragment as ti } from "react/jsx-runtime";
9
- import { N as Zu, O as Ju, P as ed, Q as td, q as nd, s as rd, t as od, v as cn, R as id, S as sd, U as ld, V as ad, D as cd, f as ud, g as dd, h as hd, i as fd, W as ro, X as pd, I as ml, k as md, B as Jt, Y as gd, Z as vd, _ as yd, $ as bd, a0 as Id, a1 as wd, a2 as xd, a3 as Sd, a4 as Cd, a5 as gl, a6 as _d, w as vl, d as kd } from "./index-B-MJlZo9.js";
9
+ import { N as Zu, O as Ju, P as ed, Q as td, q as nd, s as rd, t as od, v as cn, R as id, S as sd, U as ld, V as ad, D as cd, f as ud, g as dd, h as hd, i as fd, W as ro, X as pd, I as ml, k as md, B as Jt, Y as gd, Z as vd, _ as yd, $ as bd, a0 as Id, a1 as wd, a2 as xd, a3 as Sd, a4 as Cd, a5 as gl, a6 as _d, w as vl, d as kd } from "./index-DWnjEqGp.js";
10
10
  import { usePanelRef as yl } from "react-resizable-panels";
11
11
  import { EyeIcon as Pd, Code2Icon as Ed, StickyNotePlusIcon as Dd, FolderPlusIcon as Md, RotateCwIcon as Td, FolderIcon as Nd, XIcon as bl, SearchIcon as Ad } from "lucide-react";
12
12
  import { useMemo as Rd, useRef as it, useState as We, useId as Vd, useEffect as oo } from "react";
13
- import { W as Fd, T as Ld } from "./useDaemonMidTurnInjected-D5dlDeW-.js";
13
+ import { X as Fd, U as Ld } from "./useDaemonMidTurnInjected-CvwWjzDV.js";
14
14
  import "@qwen-code/sdk/daemon";
15
15
  function gr(e) {
16
16
  return Zu(
@@ -62,11 +62,11 @@ const Oa = `<svg data-icon-sprite aria-hidden="true" width="0" height="0">
62
62
  </symbol>`, Gd = `<symbol id="file-tree-builtin-css" viewBox="0 0 16 16">
63
63
  <path fill="currentColor" d="M8 15c-5.76 0-7-1.24-7-7V2a1 1 0 0 1 1-1h6c5.77 0 7 1.24 7 7s-1.24 7-7 7" class="vector" opacity=".2"/>
64
64
  <path fill="currentColor" d="M10.1 9.19h.73c.03.49.22.6 1 .6.76 0 .93-.12.93-.68 0-.52-.17-.67-.94-.85-1.38-.3-1.68-.56-1.68-1.47 0-1.05.3-1.29 1.67-1.29 1.29 0 1.57.2 1.6 1.13h-.74c-.01-.34-.17-.42-.85-.42-.77 0-.94.1-.94.58 0 .42.17.55.96.73 1.36.3 1.66.58 1.66 1.59 0 1.14-.31 1.39-1.73 1.39-1.39 0-1.69-.24-1.67-1.31m-3.9 0h.74c.03.49.21.6.99.6.76 0 .93-.12.93-.68 0-.52-.17-.67-.93-.85-1.39-.3-1.69-.56-1.69-1.47 0-1.05.3-1.29 1.67-1.29 1.3 0 1.58.2 1.6 1.13h-.73c-.02-.34-.18-.42-.85-.42-.78 0-.95.1-.95.58 0 .42.17.55.96.73 1.37.3 1.67.58 1.67 1.59 0 1.14-.32 1.39-1.74 1.39-1.38 0-1.68-.24-1.66-1.31m-1.22 0h.75c-.09 1.07-.37 1.31-1.56 1.31-1.37 0-1.68-.45-1.68-2.5 0-1.96.36-2.5 1.68-2.5 1.16 0 1.44.25 1.52 1.35h-.76c-.08-.52-.22-.64-.76-.64-.74 0-.9.33-.9 1.78 0 1.47.16 1.8.9 1.8.58 0 .74-.11.8-.6"/>
65
- </symbol>`, Yd = `<symbol id="file-tree-builtin-database" viewBox="0 0 16 16">
65
+ </symbol>`, Xd = `<symbol id="file-tree-builtin-database" viewBox="0 0 16 16">
66
66
  <path fill="currentColor" d="M14.953 9.733a12.4 12.4 0 0 1-.244 1.936c-.207.933-.532 1.58-.996 2.044s-1.11.789-2.044.996C10.73 14.918 9.533 15 8 15s-2.73-.082-3.669-.291c-.933-.207-1.58-.532-2.044-.996s-.789-1.11-.996-2.044c-.122-.547-.2-1.182-.244-1.92q.23.364.532.667c.64.639 1.482 1.031 2.533 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265a4 4 0 0 0 .541-.683"/>
67
67
  <path fill="currentColor" d="M14.93 5.924c-.046.663-.118 1.24-.23 1.743-.207.932-.532 1.579-.995 2.042s-1.11.789-2.042.996c-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997s-.789-1.11-.996-2.042a12 12 0 0 1-.227-1.683l.016-.188a4 4 0 0 0 .5.62c.638.639 1.48 1.031 2.532 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265.192-.192.357-.404.506-.633z"/>
68
68
  <path fill="currentColor" d="M8 1c1.533 0 2.73.082 3.669.291.933.207 1.58.533 2.044.996.403.404.904.944.91 1.695.004.764-.509 1.318-.918 1.727-.463.463-1.11.789-2.042.996-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997-.406-.406-.915-.953-.915-1.71 0-.758.509-1.305.915-1.712.464-.463 1.11-.789 2.044-.996C5.27 1.082 6.467 1 8 1"/>
69
- </symbol>`, Xd = `<symbol id="file-tree-builtin-default" viewBox="0 0 16 16">
69
+ </symbol>`, Yd = `<symbol id="file-tree-builtin-default" viewBox="0 0 16 16">
70
70
  <path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".4"/>
71
71
  <path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
72
72
  </symbol>`, Qd = `<symbol id="file-tree-builtin-docker" viewBox="0 0 16 16">
@@ -185,8 +185,8 @@ const Oa = `<svg data-icon-sprite aria-hidden="true" width="0" height="0">
185
185
  Ud,
186
186
  Kd,
187
187
  Gd,
188
- Yd,
189
188
  Xd,
189
+ Yd,
190
190
  Jd,
191
191
  eh,
192
192
  th,
@@ -530,8 +530,8 @@ function Wh(e, t, n) {
530
530
  }
531
531
  return "default";
532
532
  }
533
- const xl = "file-tree-container", Sl = "data-file-tree-style", Cl = "data-file-tree-unsafe-css", Kh = "data-file-tree-scrollbar-measure", _l = "data-file-tree-scrollbar-gutter-measured", Gh = "--trees-scrollbar-gutter-measured", Qi = "header", ni = "context-menu", Yh = "context-menu-trigger";
534
- function Xh(e) {
533
+ const xl = "file-tree-container", Sl = "data-file-tree-style", Cl = "data-file-tree-unsafe-css", Kh = "data-file-tree-scrollbar-measure", _l = "data-file-tree-scrollbar-gutter-measured", Gh = "--trees-scrollbar-gutter-measured", Qi = "header", ni = "context-menu", Xh = "context-menu-trigger";
534
+ function Yh(e) {
535
535
  return e.spriteSheet != null || e.remap != null || e.byFileName != null || e.byFileExtension != null || e.byFileNameContains != null;
536
536
  }
537
537
  function li(e) {
@@ -543,7 +543,7 @@ function li(e) {
543
543
  colored: !0
544
544
  } : {
545
545
  ...e,
546
- set: e.set ?? (Xh(e) ? "none" : "complete"),
546
+ set: e.set ?? (Yh(e) ? "none" : "complete"),
547
547
  colored: e.colored ?? !0
548
548
  };
549
549
  }
@@ -763,9 +763,9 @@ function Ti(e, t) {
763
763
  function sf(e, t) {
764
764
  e.depthAndFlags = Et(t, Ga(e), Mi(e));
765
765
  }
766
- const Ya = Symbol("benchmarkInstrumentation");
766
+ const Xa = Symbol("benchmarkInstrumentation");
767
767
  function lf(e, t) {
768
- return t == null || Object.defineProperty(e, Ya, {
768
+ return t == null || Object.defineProperty(e, Xa, {
769
769
  configurable: !0,
770
770
  enumerable: !1,
771
771
  value: t,
@@ -773,7 +773,7 @@ function lf(e, t) {
773
773
  }), e;
774
774
  }
775
775
  function zs(e) {
776
- return e == null ? null : e[Ya] ?? null;
776
+ return e == null ? null : e[Xa] ?? null;
777
777
  }
778
778
  function R(e, t, n) {
779
779
  return e == null ? n() : e.measurePhase(t, n);
@@ -822,12 +822,12 @@ function Hs(e, t) {
822
822
  const n = cf(e.tokens, t.tokens);
823
823
  return n !== 0 ? n : e.lowerValue !== t.lowerValue ? e.lowerValue < t.lowerValue ? -1 : 1 : 0;
824
824
  }
825
- function Xa(e, t, n) {
825
+ function Ya(e, t, n) {
826
826
  const r = Hs(n(e), n(t));
827
827
  return r !== 0 ? r : e === t ? 0 : e < t ? -1 : 1;
828
828
  }
829
829
  function uf(e, t) {
830
- return Xa(e, t, Bo);
830
+ return Ya(e, t, Bo);
831
831
  }
832
832
  function Si(e, t) {
833
833
  return t !== e.segments.length - 1 || e.isDirectory ? 1 : 0;
@@ -856,7 +856,7 @@ function ff(e, t, n) {
856
856
  const l = e.segments[i], a = t.segments[i];
857
857
  if (l === a) continue;
858
858
  const c = Si(e, i);
859
- return c !== Si(t, i) ? c === 1 ? -1 : 1 : Xa(l, a, r);
859
+ return c !== Si(t, i) ? c === 1 ? -1 : 1 : Ya(l, a, r);
860
860
  }
861
861
  return e.segments.length !== t.segments.length ? e.segments.length < t.segments.length ? -1 : 1 : e.isDirectory === t.isDirectory ? 0 : e.isDirectory ? -1 : 1;
862
862
  }
@@ -1705,7 +1705,7 @@ function Ci(e, t) {
1705
1705
  }
1706
1706
  function ic(e, t) {
1707
1707
  const n = t == null ? e.snapshot.rootId : Ft(e, t);
1708
- return n == null ? [] : Xf(e, n);
1708
+ return n == null ? [] : Yf(e, n);
1709
1709
  }
1710
1710
  function Rl(e, t) {
1711
1711
  const n = vo(t), r = n.isDirectory ? n.segments : n.segments.slice(0, -1), o = jn(e, i1(e, r)), { createdNodeIds: i, directoryId: l } = Qf(e, r), a = new Set(i);
@@ -1767,7 +1767,7 @@ function Fl(e, t, n, r) {
1767
1767
  to: Se(e, o)
1768
1768
  });
1769
1769
  }
1770
- function Yf(e, t) {
1770
+ function Xf(e, t) {
1771
1771
  const n = e.pathCacheByNodeId.get(t);
1772
1772
  return n != null && n.version === e.pathCacheVersion ? n.path : null;
1773
1773
  }
@@ -1778,7 +1778,7 @@ function Ll(e, t, n) {
1778
1778
  }), n;
1779
1779
  }
1780
1780
  function Se(e, t) {
1781
- const n = L(e, t), r = Yf(e, t);
1781
+ const n = L(e, t), r = Xf(e, t);
1782
1782
  if (r != null) return r;
1783
1783
  if ($e(n, 2)) return Ll(e, t, "");
1784
1784
  const o = Se(e, n.parentId), i = sn(e.snapshot.segmentTable, n.nameId), l = o.length === 0 ? i : `${o}${i}`;
@@ -1846,7 +1846,7 @@ function L(e, t) {
1846
1846
  if (n === void 0 || $e(n, 4)) throw new Error(`Unknown node ID: ${String(t)}`);
1847
1847
  return n;
1848
1848
  }
1849
- function Xf(e, t) {
1849
+ function Yf(e, t) {
1850
1850
  const n = e.snapshot.nodes[t];
1851
1851
  if (n === void 0 || $e(n, 4)) return [];
1852
1852
  if (!z(n)) return [Se(e, t)];
@@ -2299,7 +2299,7 @@ function w1(e, t) {
2299
2299
  const o = new Int32Array(r);
2300
2300
  return o.fill(-1), o.set(e), o;
2301
2301
  }
2302
- function Ye(e) {
2302
+ function Xe(e) {
2303
2303
  return L(e, e.snapshot.rootId).visibleSubtreeCount;
2304
2304
  }
2305
2305
  function mc(e, t, n, r) {
@@ -2354,7 +2354,7 @@ function S1(e, t, n, r, o, i, l, a) {
2354
2354
  }]);
2355
2355
  }
2356
2356
  function C1(e, t) {
2357
- const n = Ye(e);
2357
+ const n = Xe(e);
2358
2358
  if (t < 0 || t >= n) return null;
2359
2359
  const r = gc(e, e.snapshot.rootId, t, 0, -1, []), o = r.ancestors.map((l) => Se(e, l.cursor.terminalNodeId));
2360
2360
  let i = null;
@@ -2377,7 +2377,7 @@ function C1(e, t) {
2377
2377
  };
2378
2378
  }
2379
2379
  function _1(e, t, n) {
2380
- const r = e.instrumentation, o = Ye(e);
2380
+ const r = e.instrumentation, o = Xe(e);
2381
2381
  if (o <= 0 || n < t) return [];
2382
2382
  const i = Math.max(0, Math.min(t, o - 1)), l = Math.max(i, Math.min(n, o - 1));
2383
2383
  if (r == null) {
@@ -2398,7 +2398,7 @@ function _1(e, t, n) {
2398
2398
  }
2399
2399
  return ai(r, "workload.visibleRowsRead", a.length), ai(r, "workload.flattenedRowsRead", c), ai(r, "workload.flattenedSegmentsRead", h), a;
2400
2400
  }
2401
- function vc(e, t = Ye(e)) {
2401
+ function vc(e, t = Xe(e)) {
2402
2402
  const n = e.instrumentation;
2403
2403
  return n == null ? jl(e, t) : R(n, "store.getVisibleTreeProjection", () => jl(e, t));
2404
2404
  }
@@ -2445,7 +2445,7 @@ function D1(e, t) {
2445
2445
  })) : null;
2446
2446
  }
2447
2447
  function ql(e, t) {
2448
- return t < 0 || t >= Ye(e) ? null : yc(e, e.snapshot.rootId, t, -1);
2448
+ return t < 0 || t >= Xe(e) ? null : yc(e, e.snapshot.rootId, t, -1);
2449
2449
  }
2450
2450
  function yc(e, t, n, r) {
2451
2451
  const o = Ce(e, t), i = e.instrumentation, { childIndex: l, localVisibleIndex: a } = i == null ? Zi(e.snapshot.nodes, o, n) : R(i, "store.getVisibleSlice.selectChildIndex", () => Zi(e.snapshot.nodes, o, n)), c = o.childIds[l];
@@ -2818,19 +2818,19 @@ var w, xr, Ic = (xr = class {
2818
2818
  }
2819
2819
  add(t) {
2820
2820
  R(s(this, w).instrumentation, "store.add", () => {
2821
- const n = Ye(s(this, w));
2821
+ const n = Xe(s(this, w));
2822
2822
  jt(s(this, w), pt(s(this, w), n, Rl(s(this, w), t)));
2823
2823
  });
2824
2824
  }
2825
2825
  remove(t, n = {}) {
2826
2826
  R(s(this, w).instrumentation, "store.remove", () => {
2827
- const r = Ye(s(this, w));
2827
+ const r = Xe(s(this, w));
2828
2828
  jt(s(this, w), pt(s(this, w), r, Vl(s(this, w), t, n)));
2829
2829
  });
2830
2830
  }
2831
2831
  move(t, n, r = {}) {
2832
2832
  R(s(this, w).instrumentation, "store.move", () => {
2833
- const o = Ye(s(this, w)), i = Fl(s(this, w), t, n, r);
2833
+ const o = Xe(s(this, w)), i = Fl(s(this, w), t, n, r);
2834
2834
  i != null && jt(s(this, w), pt(s(this, w), o, i));
2835
2835
  });
2836
2836
  }
@@ -2854,7 +2854,7 @@ var w, xr, Ic = (xr = class {
2854
2854
  });
2855
2855
  }
2856
2856
  getVisibleCount() {
2857
- return R(s(this, w).instrumentation, "store.getVisibleCount", () => Ye(s(this, w)));
2857
+ return R(s(this, w).instrumentation, "store.getVisibleCount", () => Xe(s(this, w)));
2858
2858
  }
2859
2859
  getVisibleSlice(t, n) {
2860
2860
  return R(s(this, w).instrumentation, "store.getVisibleSlice", () => _1(s(this, w), t, n));
@@ -2900,13 +2900,13 @@ var w, xr, Ic = (xr = class {
2900
2900
  }
2901
2901
  expand(t) {
2902
2902
  R(s(this, w).instrumentation, "store.expand", () => {
2903
- const n = Ye(s(this, w)), r = E1(s(this, w), t);
2903
+ const n = Xe(s(this, w)), r = E1(s(this, w), t);
2904
2904
  r != null && jt(s(this, w), pt(s(this, w), n, r));
2905
2905
  });
2906
2906
  }
2907
2907
  collapse(t) {
2908
2908
  R(s(this, w).instrumentation, "store.collapse", () => {
2909
- const n = Ye(s(this, w)), r = D1(s(this, w), t);
2909
+ const n = Xe(s(this, w)), r = D1(s(this, w), t);
2910
2910
  r != null && jt(s(this, w), pt(s(this, w), n, r));
2911
2911
  });
2912
2912
  }
@@ -2921,7 +2921,7 @@ var w, xr, Ic = (xr = class {
2921
2921
  R(s(this, w).instrumentation, "store.markDirectoryUnloaded", () => {
2922
2922
  const n = this.requireDirectoryNodeId(t);
2923
2923
  if (Ce(s(this, w), n).childIds.length > 0) throw new Error(`Cannot mark a directory with known children as unloaded: "${t}"`);
2924
- const r = Ye(s(this, w));
2924
+ const r = Xe(s(this, w));
2925
2925
  Ef(s(this, w), n), jt(s(this, w), pt(s(this, w), r, zf({
2926
2926
  affectedAncestorIds: Kt(s(this, w), n),
2927
2927
  affectedNodeIds: [n],
@@ -2932,7 +2932,7 @@ var w, xr, Ic = (xr = class {
2932
2932
  }
2933
2933
  beginChildLoad(t) {
2934
2934
  return R(s(this, w).instrumentation, "store.beginChildLoad", () => {
2935
- const n = this.requireDirectoryNodeId(t), r = Ye(s(this, w)), o = Pf(s(this, w), n);
2935
+ const n = this.requireDirectoryNodeId(t), r = Xe(s(this, w)), o = Pf(s(this, w), n);
2936
2936
  return jt(s(this, w), pt(s(this, w), r, Hf({
2937
2937
  affectedAncestorIds: Kt(s(this, w), n),
2938
2938
  affectedNodeIds: [n],
@@ -2949,10 +2949,10 @@ var w, xr, Ic = (xr = class {
2949
2949
  if (r == null || wo(s(this, w), r) !== "loading" || !Mf(s(this, w), r, t.attemptId)) return !1;
2950
2950
  const o = Se(s(this, w), r);
2951
2951
  this.validateChildPatch(o, n);
2952
- const i = Ye(s(this, w)), l = [];
2952
+ const i = Xe(s(this, w)), l = [];
2953
2953
  for (const c of n.operations) {
2954
2954
  z1(o, c);
2955
- const h = Ye(s(this, w));
2955
+ const h = Xe(s(this, w));
2956
2956
  switch (c.type) {
2957
2957
  case "add":
2958
2958
  l.push(pt(s(this, w), h, Rl(s(this, w), c.path)));
@@ -2982,7 +2982,7 @@ var w, xr, Ic = (xr = class {
2982
2982
  return R(s(this, w).instrumentation, "store.completeChildLoad", () => {
2983
2983
  const n = this.resolveActiveDirectoryNodeId(t.nodeId);
2984
2984
  if (n == null) return !1;
2985
- const r = Ye(s(this, w)), o = Df(s(this, w), n, t.attemptId);
2985
+ const r = Xe(s(this, w)), o = Df(s(this, w), n, t.attemptId);
2986
2986
  return jt(s(this, w), pt(s(this, w), r, qf({
2987
2987
  affectedAncestorIds: Kt(s(this, w), n),
2988
2988
  affectedNodeIds: [n],
@@ -2997,7 +2997,7 @@ var w, xr, Ic = (xr = class {
2997
2997
  return R(s(this, w).instrumentation, "store.failChildLoad", () => {
2998
2998
  const r = this.resolveActiveDirectoryNodeId(t.nodeId);
2999
2999
  if (r == null) return !1;
3000
- const o = Ye(s(this, w)), i = Tf(s(this, w), r, t.attemptId, n);
3000
+ const o = Xe(s(this, w)), i = Tf(s(this, w), r, t.attemptId, n);
3001
3001
  return jt(s(this, w), pt(s(this, w), o, Of({
3002
3002
  affectedAncestorIds: Kt(s(this, w), r),
3003
3003
  affectedNodeIds: [r],
@@ -3013,7 +3013,7 @@ var w, xr, Ic = (xr = class {
3013
3013
  return R(s(this, w).instrumentation, "store.cleanup", () => {
3014
3014
  if (s(this, w).transactionStack.length > 0) throw new Error("Cleanup cannot run during an open batch or transaction.");
3015
3015
  if (y1(s(this, w))) throw new Error("Cleanup cannot run while directory loads are active.");
3016
- const n = Ye(s(this, w)), r = b1(s(this, w), t.mode ?? "stable");
3016
+ const n = Xe(s(this, w)), r = b1(s(this, w), t.mode ?? "stable");
3017
3017
  return jt(s(this, w), pt(s(this, w), n, jf({
3018
3018
  ...r,
3019
3019
  affectedAncestorIds: [],
@@ -3060,10 +3060,10 @@ var w, xr, Ic = (xr = class {
3060
3060
  p.set(P, ue);
3061
3061
  const Ee = (be, pe) => {
3062
3062
  for (oe = be; oe < pe; oe += 1) {
3063
- const _e = j[oe], Xe = h[_e], ke = c[Xe.nameId];
3063
+ const _e = j[oe], Ye = h[_e], ke = c[Ye.nameId];
3064
3064
  if (ke === P)
3065
3065
  return ye = _e, !0;
3066
- const ae = Hs(Ji(a, Xe.nameId), ue);
3066
+ const ae = Hs(Ji(a, Ye.nameId), ue);
3067
3067
  if (ae > 0 || ae === 0 && ke > P) return !1;
3068
3068
  }
3069
3069
  return !1;
@@ -4348,7 +4348,7 @@ function K1(e) {
4348
4348
  function G1(e, t) {
4349
4349
  return e === "" ? t : `${e}/${t}`;
4350
4350
  }
4351
- function Y1({ files: e, path: t, isFolder: n, nextBasename: r }) {
4351
+ function X1({ files: e, path: t, isFolder: n, nextBasename: r }) {
4352
4352
  const o = W1(t), i = r.trim();
4353
4353
  if (i.length === 0) return { error: "Name cannot be empty." };
4354
4354
  if (i.includes("/")) return { error: 'Name cannot include "/".' };
@@ -4393,7 +4393,7 @@ function Y1({ files: e, path: t, isFolder: n, nextBasename: r }) {
4393
4393
  isFolder: n
4394
4394
  };
4395
4395
  }
4396
- function X1(e) {
4396
+ function Y1(e) {
4397
4397
  return e.endsWith("/");
4398
4398
  }
4399
4399
  function Q1(e) {
@@ -4425,16 +4425,16 @@ function J1(e, t) {
4425
4425
  function e0(e, t) {
4426
4426
  return e === t ? !0 : e == null || t == null ? !1 : e.kind === t.kind && e.directoryPath === t.directoryPath && e.flattenedSegmentPath === t.flattenedSegmentPath && e.hoveredPath === t.hoveredPath;
4427
4427
  }
4428
- function Yl(e, t) {
4428
+ function Xl(e, t) {
4429
4429
  return {
4430
4430
  draggedPaths: e,
4431
4431
  target: t
4432
4432
  };
4433
4433
  }
4434
- function Xl(e, t) {
4434
+ function Yl(e, t) {
4435
4435
  if (t.kind !== "directory" || t.directoryPath == null) return !1;
4436
4436
  for (const n of e)
4437
- if (X1(n) && (t.directoryPath === n || t.directoryPath.startsWith(n)))
4437
+ if (Y1(n) && (t.directoryPath === n || t.directoryPath.startsWith(n)))
4438
4438
  return !0;
4439
4439
  return !1;
4440
4440
  }
@@ -4975,8 +4975,8 @@ var Sr, Jn, nn, At, Ke, Cr, _r, Ct, ne, dn, _o, Nn, An, Rn, Vn, Fn, Ln, ko, Po,
4975
4975
  if (n == null) return;
4976
4976
  let r = t;
4977
4977
  if (r != null) {
4978
- const o = Yl(n.draggedPaths, r);
4979
- (Xl(n.draggedPaths, r) || s(this, At)?.canDrop?.(o) === !1) && (r = null);
4978
+ const o = Xl(n.draggedPaths, r);
4979
+ (Yl(n.draggedPaths, r) || s(this, At)?.canDrop?.(o) === !1) && (r = null);
4980
4980
  }
4981
4981
  e0(n.target, r) || (b(this, Ke, {
4982
4982
  ...n,
@@ -4993,8 +4993,8 @@ var Sr, Jn, nn, At, Ke, Cr, _r, Ct, ne, dn, _o, Nn, An, Rn, Vn, Fn, Ln, ko, Po,
4993
4993
  const n = t.target == null ? null : { ...t.target };
4994
4994
  if (n == null)
4995
4995
  return m(this, f, qe).call(this), !1;
4996
- const r = Yl(t.draggedPaths, n);
4997
- if (Xl(t.draggedPaths, n) || s(this, At)?.canDrop?.(r) === !1)
4996
+ const r = Xl(t.draggedPaths, n);
4997
+ if (Yl(t.draggedPaths, n) || s(this, At)?.canDrop?.(r) === !1)
4998
4998
  return m(this, f, qe).call(this), !1;
4999
4999
  const o = n0(t.draggedPaths, n);
5000
5000
  if (o == null)
@@ -5111,7 +5111,7 @@ var Sr, Jn, nn, At, Ke, Cr, _r, Ct, ne, dn, _o, Nn, An, Rn, Vn, Fn, Ln, ko, Po,
5111
5111
  b(this, Oe, null), b(this, mt, ""), b(this, rn, !1), this.remove(t, oi(t) ? { recursive: !0 } : void 0);
5112
5112
  return;
5113
5113
  }
5114
- const n = oi(t), r = Y1({
5114
+ const n = oi(t), r = X1({
5115
5115
  files: s(this, O).list(),
5116
5116
  isFolder: n,
5117
5117
  nextBasename: s(this, mt),
@@ -5585,7 +5585,7 @@ function S0(e) {
5585
5585
  return t;
5586
5586
  }
5587
5587
  var fe, Oc, Zn, ra, ki, jc, Uc, Ks, Cs, _s, So = {}, Wc = [], Ni = Array.isArray, Gs = Wc.slice, Un = Object.assign;
5588
- function Ys(e) {
5588
+ function Xs(e) {
5589
5589
  e && e.parentNode && e.remove();
5590
5590
  }
5591
5591
  function ks(e, t, n) {
@@ -5622,12 +5622,12 @@ function oa(e) {
5622
5622
  (8 & e.__g || !(e.__g |= 8) || !Zn.push(e) || ki++) && ra == fe.debounceRendering || ((ra = fe.debounceRendering) || queueMicrotask)(C0);
5623
5623
  }
5624
5624
  function C0() {
5625
- for (var e, t, n, r, o, i, l, a, c = 1; Zn.length; ) Zn.length > c && Zn.sort(jc), e = Zn.shift(), c = Zn.length, 8 & e.__g && (n = void 0, o = (r = (t = e).__v).__e, i = [], l = [], (a = t.__P) && ((n = Un({}, r)).__v = r.__v + 1, fe.vnode && fe.vnode(n), Xs(a, n, r, t.__n, a.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? zr(r), !!(32 & r.__u), l, a.ownerDocument), n.__v = r.__v, n.__.__k[n.__i] = n, Xc(i, n, l), n.__e != o && Kc(n)));
5625
+ for (var e, t, n, r, o, i, l, a, c = 1; Zn.length; ) Zn.length > c && Zn.sort(jc), e = Zn.shift(), c = Zn.length, 8 & e.__g && (n = void 0, o = (r = (t = e).__v).__e, i = [], l = [], (a = t.__P) && ((n = Un({}, r)).__v = r.__v + 1, fe.vnode && fe.vnode(n), Ys(a, n, r, t.__n, a.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? zr(r), !!(32 & r.__u), l, a.ownerDocument), n.__v = r.__v, n.__.__k[n.__i] = n, Yc(i, n, l), n.__e != o && Kc(n)));
5626
5626
  ki = 0;
5627
5627
  }
5628
5628
  function Gc(e, t, n, r, o, i, l, a, c, h, p, g) {
5629
5629
  var u, I, y, x, _, E, D, k = r && r.__k || Wc, C = t.length;
5630
- for (c = _0(n, t, k, c, C), u = 0; u < C; u++) (y = n.__k[u]) != null && (I = y.__i == -1 ? So : k[y.__i] || So, y.__i = u, E = Xs(e, y, I, o, i, l, a, c, h, p, g), x = y.__e, y.ref && I.ref != y.ref && (I.ref && Qs(I.ref, null, y), p.push(y.ref, y.__c || x, y)), _ == null && x != null && (_ = x), (D = !!(4 & y.__u)) || I.__k === y.__k ? c = Yc(y, c, e, D) : typeof y.type == "function" && E !== void 0 ? c = E : x && (c = x.nextSibling), y.__u &= -7);
5630
+ for (c = _0(n, t, k, c, C), u = 0; u < C; u++) (y = n.__k[u]) != null && (I = y.__i == -1 ? So : k[y.__i] || So, y.__i = u, E = Ys(e, y, I, o, i, l, a, c, h, p, g), x = y.__e, y.ref && I.ref != y.ref && (I.ref && Qs(I.ref, null, y), p.push(y.ref, y.__c || x, y)), _ == null && x != null && (_ = x), (D = !!(4 & y.__u)) || I.__k === y.__k ? c = Xc(y, c, e, D) : typeof y.type == "function" && E !== void 0 ? c = E : x && (c = x.nextSibling), y.__u &= -7);
5631
5631
  return n.__e = _, c;
5632
5632
  }
5633
5633
  function _0(e, t, n, r, o) {
@@ -5636,10 +5636,10 @@ function _0(e, t, n, r, o) {
5636
5636
  if (g) for (i = 0; i < p; i++) (a = n[i]) != null && !(2 & a.__u) && (a.__e == r && (r = zr(a)), Zc(a, a));
5637
5637
  return r;
5638
5638
  }
5639
- function Yc(e, t, n, r) {
5639
+ function Xc(e, t, n, r) {
5640
5640
  var o, i;
5641
5641
  if (typeof e.type == "function") {
5642
- for (o = e.__k, i = 0; o && i < o.length; i++) o[i] && (o[i].__ = e, t = Yc(o[i], t, n, r));
5642
+ for (o = e.__k, i = 0; o && i < o.length; i++) o[i] && (o[i].__ = e, t = Xc(o[i], t, n, r));
5643
5643
  return t;
5644
5644
  }
5645
5645
  e.__e != t && (r && (t && e.type && !t.parentNode && (t = zr(e)), n.insertBefore(e.__e, t || null)), t = e.__e);
@@ -5687,8 +5687,8 @@ function sa(e) {
5687
5687
  }
5688
5688
  };
5689
5689
  }
5690
- function Xs(e, t, n, r, o, i, l, a, c, h, p) {
5691
- var g, u, I, y, x, _, E, D, k, C, P, j, q, oe, ye, ue, Ee, be, pe, _e, Xe, ke = t.type;
5690
+ function Ys(e, t, n, r, o, i, l, a, c, h, p) {
5691
+ var g, u, I, y, x, _, E, D, k, C, P, j, q, oe, ye, ue, Ee, be, pe, _e, Ye, ke = t.type;
5692
5692
  if (t.constructor != null) return null;
5693
5693
  128 & n.__u && (c = !!(32 & n.__u), n.__c.__z && (a = t.__e = n.__e = (i = n.__c.__z)[0], n.__c.__z = null)), (g = fe.__b) && g(t);
5694
5694
  e: if (typeof ke == "function") try {
@@ -5721,7 +5721,7 @@ function Xs(e, t, n, r, o, i, l, a, c, h, p) {
5721
5721
  }
5722
5722
  t.__e = a;
5723
5723
  } else {
5724
- for (Xe = i.length; Xe--; ) Ys(i[Xe]);
5724
+ for (Ye = i.length; Ye--; ) Xs(i[Ye]);
5725
5725
  Ps(t);
5726
5726
  }
5727
5727
  else t.__e = n.__e, t.__k = n.__k, ae.then || Ps(t);
@@ -5733,7 +5733,7 @@ function Xs(e, t, n, r, o, i, l, a, c, h, p) {
5733
5733
  function Ps(e) {
5734
5734
  e && e.__c && (e.__c.__g |= 4), e && e.__k && e.__k.forEach(Ps);
5735
5735
  }
5736
- function Xc(e, t, n) {
5736
+ function Yc(e, t, n) {
5737
5737
  for (var r = 0; r < n.length; r++) Qs(n[r], n[++r], n[++r]);
5738
5738
  fe.__c && fe.__c(t, e), e.some(function(o) {
5739
5739
  try {
@@ -5772,7 +5772,7 @@ function P0(e, t, n, r, o, i, l, a, c, h) {
5772
5772
  }
5773
5773
  for (p in E = 1 & n.__u, k) y = k[p], p == "children" ? I = y : p == "dangerouslySetInnerHTML" ? g = y : p == "value" ? x = y : p == "checked" ? _ = y : a && typeof y != "function" || D[p] === y && !E || ii(e, p, y, D[p], o);
5774
5774
  if (g) a || u && (g.__html == u.__html || g.__html == e.innerHTML) || (e.innerHTML = g.__html), t.__k = [];
5775
- else if (u && (e.innerHTML = ""), Gc(C == "template" ? e.content : e, Ni(I) ? I : [I], t, n, r, C == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, l, i ? i[0] : n.__k && zr(n, 0), a, c, h), i != null) for (p = i.length; p--; ) Ys(i[p]);
5775
+ else if (u && (e.innerHTML = ""), Gc(C == "template" ? e.content : e, Ni(I) ? I : [I], t, n, r, C == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, l, i ? i[0] : n.__k && zr(n, 0), a, c, h), i != null) for (p = i.length; p--; ) Xs(i[p]);
5776
5776
  a || (p = "value", C == "progress" && x == null ? e.removeAttribute("value") : x == null || x === e[p] && (C !== "progress" || x) || ii(e, p, x, D[p], o), p = "checked", _ != null && _ != e[p] && ii(e, p, _, D[p], o));
5777
5777
  }
5778
5778
  return e;
@@ -5798,14 +5798,14 @@ function Zc(e, t, n) {
5798
5798
  r.__P = null;
5799
5799
  }
5800
5800
  if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && Zc(r[o], t, n || typeof e.type != "function");
5801
- n || Ys(e.__e), e.__e && e.__e.__l && (e.__e.__l = null), e.__e = e.__c = e.__ = null;
5801
+ n || Xs(e.__e), e.__e && e.__e.__l && (e.__e.__l = null), e.__e = e.__c = e.__ = null;
5802
5802
  }
5803
5803
  function E0(e, t, n) {
5804
5804
  return this.constructor(e, n);
5805
5805
  }
5806
5806
  function Es(e, t) {
5807
5807
  var n, r, o, i;
5808
- t == document && (t = document.documentElement), fe.__ && fe.__(e, t), r = (n = !!(e && 32 & e.__u)) ? null : t.__k, e = t.__k = ks(qr, null, [e]), o = [], i = [], Xs(t, e, r || So, So, t.namespaceURI, r ? null : t.firstChild ? Gs.call(t.childNodes) : null, o, r ? r.__e : t.firstChild, n, i, t.ownerDocument), Xc(o, e, i);
5808
+ t == document && (t = document.documentElement), fe.__ && fe.__(e, t), r = (n = !!(e && 32 & e.__u)) ? null : t.__k, e = t.__k = ks(qr, null, [e]), o = [], i = [], Ys(t, e, r || So, So, t.namespaceURI, r ? null : t.firstChild ? Gs.call(t.childNodes) : null, o, r ? r.__e : t.firstChild, n, i, t.ownerDocument), Yc(o, e, i);
5809
5809
  }
5810
5810
  function D0(e, t) {
5811
5811
  e.__u |= 32, Es(e, t);
@@ -6139,7 +6139,7 @@ function tu(e, t, n) {
6139
6139
  };
6140
6140
  }).filter((l) => l.top + n > 0);
6141
6141
  }
6142
- function Y0(e, t) {
6142
+ function X0(e, t) {
6143
6143
  const n = t.totalRowCount ?? e.length, r = n * t.itemHeight, o = Math.max(0, t.viewportHeight), i = Math.max(0, Math.floor(t.overscan)), l = Math.max(0, r - o), a = O0(t.scrollTop, 0, l), c = t.stickyRows ?? tu(e, a, t.itemHeight), h = c.reduce((j, q) => Math.max(j, q.top + t.itemHeight), 0), p = Math.min(r, a + h), g = Math.max(0, o - h), u = Math.max(0, r - p), I = ua(a, n, t.itemHeight), y = ua(p, n, t.itemHeight), x = h <= 0 || I < 0 || I >= n ? -1 : I, _ = x === -1 ? -1 : Math.min(n - 1, y - 1), E = x === -1 || _ < x ? 0 : _ - x + 1, D = g <= 0 || y >= n ? Ds : ca(y, U0(p + g, n, t.itemHeight)), k = _ + 1, C = Ms(D) ? Ds : ca(Math.max(k, D.startIndex - i), Math.min(n - 1, D.endIndex + i)), P = j0(C, t.itemHeight);
6144
6144
  return {
6145
6145
  occlusion: {
@@ -6174,7 +6174,7 @@ function Y0(e, t) {
6174
6174
  }
6175
6175
  };
6176
6176
  }
6177
- const X0 = {
6177
+ const Y0 = {
6178
6178
  added: "A",
6179
6179
  deleted: "D",
6180
6180
  ignored: null,
@@ -6522,8 +6522,8 @@ function Sa(e, t, n, r) {
6522
6522
  };
6523
6523
  }).filter((o) => o.top + n > 0);
6524
6524
  }
6525
- function Yi({ controller: e, itemHeight: t, overscan: n, scrollTop: r, stickyFolders: o, viewportHeight: i }) {
6526
- const l = e.getVisibleCount(), a = o && l > 0 ? e.getStickyRowCandidates(r, t) : [], c = a == null && o && l > 0 ? e.getVisibleRows(0, l - 1) : [], h = Y0(c, {
6525
+ function Xi({ controller: e, itemHeight: t, overscan: n, scrollTop: r, stickyFolders: o, viewportHeight: i }) {
6526
+ const l = e.getVisibleCount(), a = o && l > 0 ? e.getStickyRowCandidates(r, t) : [], c = a == null && o && l > 0 ? e.getVisibleRows(0, l - 1) : [], h = X0(c, {
6527
6527
  itemHeight: t,
6528
6528
  overscan: n,
6529
6529
  scrollTop: r,
@@ -6606,7 +6606,7 @@ function gp(e, t) {
6606
6606
  }
6607
6607
  function vp(e, t) {
6608
6608
  if (e != null) {
6609
- const n = X0[e];
6609
+ const n = Y0[e];
6610
6610
  return n == null ? null : {
6611
6611
  text: n,
6612
6612
  title: Q0[e]
@@ -6834,7 +6834,7 @@ function bi(e, t, n, r = {}) {
6834
6834
  name: e.formatItemName(t.name),
6835
6835
  flattenedSegments: t.flattenedSegments?.map((ee) => ({ ...ee, name: e.formatItemName(ee.name) }))
6836
6836
  });
6837
- const { controller: o, renameView: i, visualFocusPath: l, contextHoverPath: a, draggedPathSet: c, dragTarget: h, dragAndDropEnabled: p, shouldSuppressContextMenu: g, handleRowDragStart: u, handleRowDragEnd: I, handleRowTouchStart: y, instanceId: x, itemHeight: _, gitStatusByPath: E, ignoredGitDirectories: D, ignoredInheritanceCache: k, directoriesWithGitChanges: C, gitLaneActive: P, contextMenuEnabled: j, contextMenuTriggerMode: q, contextMenuButtonTriggerEnabled: oe, contextMenuButtonVisibility: ye, contextMenuRightClickEnabled: ue, registerRenameInput: Ee, registerButton: be, resolveIcon: pe, renderDecorationForRow: _e, openContextMenuForRow: Xe, onRowClick: ke, onKeyDown: ae } = e, te = wr(t), { isParked: Qe = !1, mode: Ze = "flow", style: vt } = r, ht = Ze === "sticky", Je = E?.get(te) ?? null ?? yp(t.ancestorPaths, D, k), Lt = t.kind === "directory" && (C?.has(te) ?? !1), ln = _e(t, te), yt = vp(Je, Lt), Be = j && oe, Bt = ln != null || P || Be, ze = Be && ye === "always", zt = i.getPath() === te, et = zt ? i.getValue() : "", bt = ht || !zt ? null : /* @__PURE__ */ N(ip, {
6837
+ const { controller: o, renameView: i, visualFocusPath: l, contextHoverPath: a, draggedPathSet: c, dragTarget: h, dragAndDropEnabled: p, shouldSuppressContextMenu: g, handleRowDragStart: u, handleRowDragEnd: I, handleRowTouchStart: y, instanceId: x, itemHeight: _, gitStatusByPath: E, ignoredGitDirectories: D, ignoredInheritanceCache: k, directoriesWithGitChanges: C, gitLaneActive: P, contextMenuEnabled: j, contextMenuTriggerMode: q, contextMenuButtonTriggerEnabled: oe, contextMenuButtonVisibility: ye, contextMenuRightClickEnabled: ue, registerRenameInput: Ee, registerButton: be, resolveIcon: pe, renderDecorationForRow: _e, openContextMenuForRow: Ye, onRowClick: ke, onKeyDown: ae } = e, te = wr(t), { isParked: Qe = !1, mode: Ze = "flow", style: vt } = r, ht = Ze === "sticky", Je = E?.get(te) ?? null ?? yp(t.ancestorPaths, D, k), Lt = t.kind === "directory" && (C?.has(te) ?? !1), ln = _e(t, te), yt = vp(Je, Lt), Be = j && oe, Bt = ln != null || P || Be, ze = Be && ye === "always", zt = i.getPath() === te, et = zt ? i.getValue() : "", bt = ht || !zt ? null : /* @__PURE__ */ N(ip, {
6838
6838
  ref: Ee,
6839
6839
  ariaLabel: `Rename ${As(t)}`,
6840
6840
  isFlattened: t.isFlattened,
@@ -6886,7 +6886,7 @@ function bi(e, t, n, r = {}) {
6886
6886
  ee.preventDefault();
6887
6887
  return;
6888
6888
  }
6889
- j && (ee.preventDefault(), ue && (o.focusMountedPathFromInput(te), Xe(t, te, {
6889
+ j && (ee.preventDefault(), ue && (o.focusMountedPathFromInput(te), Ye(t, te, {
6890
6890
  anchorRect: Cp(ee.clientX, ee.clientY),
6891
6891
  source: "right-click"
6892
6892
  })));
@@ -6932,11 +6932,11 @@ function Tp(e, t, n) {
6932
6932
  function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirectories: r, directoriesWithGitChanges: o, icons: i, instanceId: l, itemHeight: a = wc, overscan: c = 10, renamingEnabled: h = !1, formatItemName: p, renderRowDecoration: g, searchBlurBehavior: u = "close", searchEnabled: I = !1, searchFakeFocus: y = !1, slotHost: x, stickyFolders: _ = !1, initialViewportHeight: E = 420 }) {
6933
6933
  "use no memo";
6934
6934
  const D = W(null), k = W(null), C = W(!1), P = W(null), j = W(null), q = W(null), oe = W(null), ye = W(null), ue = W(/* @__PURE__ */ new Map()), Ee = W(/* @__PURE__ */ new Map()), be = W(() => {
6935
- }), pe = W(null), _e = W(0), Xe = W(!1), ke = W(null);
6936
- ke.current !== t && (Xe.current = !1, ke.current = t);
6935
+ }), pe = W(null), _e = W(0), Ye = W(!1), ke = W(null);
6936
+ ke.current !== t && (Ye.current = !1, ke.current = t);
6937
6937
  const ae = W(!1), te = W(null), Qe = W(null), Ze = W(!1), vt = W(null), ht = W(null), Je = W(null), Lt = W(null), ln = W(null), yt = W(null), Be = W(null), Bt = W(null), ze = W(!1), zt = W(null), et = W(null), bt = W(null), tt = W(null), ft = Tn(() => /* @__PURE__ */ new Map(), []), [, ee] = en(0), It = W(!1), [ar, Ht] = en(null), [Mt, cr] = en(null), [In, Or] = en(null), [zo, Gt] = en(null), [jr, Ri] = en(0), [ie, ur] = en(null), re = W(ie);
6938
6938
  re.current = ie;
6939
- const Yt = W(null), wn = W(null), xn = W(null), Ie = W(null), Sn = W(null), Wn = W(!1), Vi = () => {
6939
+ const Xt = W(null), wn = W(null), xn = W(null), Ie = W(null), Sn = W(null), Wn = W(!1), Vi = () => {
6940
6940
  wn.current = null, xn.current = null, Ie.current = null;
6941
6941
  }, Ur = (d, S) => {
6942
6942
  wn.current = d, xn.current = null, Ie.current = S == null ? null : {
@@ -6954,18 +6954,18 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
6954
6954
  }, [y]);
6955
6955
  const Gr = W(!1), dr = st(() => {
6956
6956
  Gr.current = !0, Kr((d) => d && !1);
6957
- }, []), [qo, $t] = en(() => Yi({
6957
+ }, []), [qo, $t] = en(() => Xi({
6958
6958
  controller: t,
6959
6959
  itemHeight: a,
6960
6960
  overscan: c,
6961
6961
  scrollTop: 0,
6962
6962
  stickyFolders: _,
6963
6963
  viewportHeight: E
6964
- })), [Yr, hr] = en(!1);
6964
+ })), [Xr, hr] = en(!1);
6965
6965
  wa(() => {
6966
6966
  hr(!0);
6967
6967
  }, []);
6968
- const nt = e?.contextMenu?.enabled === !0 || e?.contextMenu?.render != null || e?.contextMenu?.onOpen != null || e?.contextMenu?.onClose != null, Cn = e?.contextMenu?.triggerMode ?? (nt ? "right-click" : "both"), Xt = Cn === "both" || Cn === "button", Kn = e?.contextMenu?.buttonVisibility ?? "when-needed", Oo = Cn === "both" || Cn === "right-click";
6968
+ const nt = e?.contextMenu?.enabled === !0 || e?.contextMenu?.render != null || e?.contextMenu?.onOpen != null || e?.contextMenu?.onClose != null, Cn = e?.contextMenu?.triggerMode ?? (nt ? "right-click" : "both"), Yt = Cn === "both" || Cn === "button", Kn = e?.contextMenu?.buttonVisibility ?? "when-needed", Oo = Cn === "both" || Cn === "right-click";
6969
6969
  xt(() => {
6970
6970
  const d = q.current;
6971
6971
  if (d == null) return;
@@ -6986,7 +6986,7 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
6986
6986
  Ma(Ee.current, d, S);
6987
6987
  }, []), jo = st((d) => {
6988
6988
  j.current = d;
6989
- }, []), v = st((d) => Ta(d, Ee.current, ue.current), []), K = n != null || r != null || o != null, { resolveIcon: me } = Tn(() => ef(i), [i]), G = t[Cc](), Ae = G.getPath(), wt = Ae != null, Me = t.isSearchOpen(), rt = t.getSearchValue(), Q = t.getFocusedPath(), U = t.getFocusedIndex(), qt = t.getScrollRequest(), Tt = t.isDragAndDropEnabled(), _n = t.getDragSession(), Gn = Tn(() => _n == null ? null : new Set(_n.draggedPaths), [_n]), Xr = _n?.target ?? null, Yn = _n?.primaryPath ?? null, F = Dp(l), { overlayHeight: se, overlayRows: J, snapshot: Z, visibleRows: ge } = qo, Re = Z.physical.viewportHeight, Ue = Tn(() => ({
6989
+ }, []), v = st((d) => Ta(d, Ee.current, ue.current), []), K = n != null || r != null || o != null, { resolveIcon: me } = Tn(() => ef(i), [i]), G = t[Cc](), Ae = G.getPath(), wt = Ae != null, Me = t.isSearchOpen(), rt = t.getSearchValue(), Q = t.getFocusedPath(), U = t.getFocusedIndex(), qt = t.getScrollRequest(), Tt = t.isDragAndDropEnabled(), _n = t.getDragSession(), Gn = Tn(() => _n == null ? null : new Set(_n.draggedPaths), [_n]), Yr = _n?.target ?? null, Xn = _n?.primaryPath ?? null, F = Dp(l), { overlayHeight: se, overlayRows: J, snapshot: Z, visibleRows: ge } = qo, Re = Z.physical.viewportHeight, Ue = Tn(() => ({
6990
6990
  end: Z.window.endIndex,
6991
6991
  start: Z.window.startIndex
6992
6992
  }), [Z.window.endIndex, Z.window.startIndex]), Ve = J, an = Z.sticky.rows, Qt = Z.physical.totalHeight, fr = Z.sticky.height, Uo = Tn(() => new Set(an.map((d) => wr(d.row))), [an]), Bi = U >= 0 && U >= Ue.start && U <= Ue.end, vu = st((d, S) => g?.({
@@ -7045,7 +7045,7 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7045
7045
  if (A < 0) return !1;
7046
7046
  const $ = t.getVisibleRows(A, A)[0] ?? null;
7047
7047
  if ($ == null) return !1;
7048
- const we = lo(T, Re), H = t.getVisibleCount() * a, ce = B === "sticky-parents" ? $.ancestorPaths.length * a : Yi({
7048
+ const we = lo(T, Re), H = t.getVisibleCount() * a, ce = B === "sticky-parents" ? $.ancestorPaths.length * a : Xi({
7049
7049
  controller: t,
7050
7050
  itemHeight: a,
7051
7051
  overscan: c,
@@ -7053,7 +7053,7 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7053
7053
  stickyFolders: _,
7054
7054
  viewportHeight: we
7055
7055
  }).snapshot.sticky.height;
7056
- return ae.current = !0, ao(T, A, a, we, H, ce), be.current(), Yt.current = S ? d : null, !0;
7056
+ return ae.current = !0, ao(T, A, a, we, H, ce), be.current(), Xt.current = S ? d : null, !0;
7057
7057
  }, [
7058
7058
  t,
7059
7059
  a,
@@ -7085,7 +7085,7 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7085
7085
  document.body.append(d);
7086
7086
  }, Jr = () => {
7087
7087
  Bt.current?.(), Bt.current = null, tt.current != null && (clearTimeout(tt.current), tt.current = null), ze.current = !1, zt.current = null, bt.current = null, et.current != null && (et.current.setAttribute("draggable", "true"), et.current.style.removeProperty("touch-action"), et.current = null), Go(), kn(), Zr(), Be.current = null;
7088
- }, Yo = (d, S) => {
7088
+ }, Xo = (d, S) => {
7089
7089
  const B = q.current?.getRootNode(), T = ka(fp(B instanceof ShadowRoot ? B : document, d, S));
7090
7090
  return t.setDragTarget(T), t.getDragSession()?.target ?? null;
7091
7091
  }, Hi = (d) => {
@@ -7111,7 +7111,7 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7111
7111
  const B = S.getBoundingClientRect(), T = gp(d.clientY, B);
7112
7112
  if (T === 0) return;
7113
7113
  const A = Math.max(0, S.scrollHeight - S.clientHeight), $ = Math.max(0, Math.min(A, S.scrollTop + T));
7114
- $ !== S.scrollTop && (S.scrollTop = $, be.current()), Hi(Yo(d.clientX, d.clientY)), ht.current = rl(il);
7114
+ $ !== S.scrollTop && (S.scrollTop = $, be.current()), Hi(Xo(d.clientX, d.clientY)), ht.current = rl(il);
7115
7115
  }, sl = (d, S) => {
7116
7116
  ln.current = {
7117
7117
  clientX: d,
@@ -7176,10 +7176,10 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7176
7176
  if (He == null) return;
7177
7177
  Ot.preventDefault();
7178
7178
  const le = zt.current;
7179
- le != null && yt.current != null && (yt.current.style.transform = `translate3d(${He.clientX - le.x}px, ${He.clientY - le.y}px, 0)`), Hi(Yo(He.clientX, He.clientY)), sl(He.clientX, He.clientY);
7179
+ le != null && yt.current != null && (yt.current.style.transform = `translate3d(${He.clientX - le.x}px, ${He.clientY - le.y}px, 0)`), Hi(Xo(He.clientX, He.clientY)), sl(He.clientX, He.clientY);
7180
7180
  }, Pe = (Ot) => {
7181
7181
  const He = Ot.changedTouches[0];
7182
- He != null && Yo(He.clientX, He.clientY), t.completeDrag(), Jr();
7182
+ He != null && Xo(He.clientX, He.clientY), t.completeDrag(), Jr();
7183
7183
  }, ot = () => {
7184
7184
  t.cancelDrag(), Jr();
7185
7185
  };
@@ -7302,7 +7302,7 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7302
7302
  case "ignore":
7303
7303
  return;
7304
7304
  case "focus-input":
7305
- d != null && (Yt.current = null, Qe.current = Ae, Ir(d), d.select());
7305
+ d != null && (Xt.current = null, Qe.current = Ae, Ir(d), d.select());
7306
7306
  return;
7307
7307
  }
7308
7308
  }, [
@@ -7354,7 +7354,7 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7354
7354
  pe.current = lo(S, E);
7355
7355
  const A = () => {
7356
7356
  const le = t.getVisibleCount(), De = da(pe.current, E), at = Math.max(0, le * a - De);
7357
- S.scrollTop > at && (S.scrollTop = at), $t(Yi({
7357
+ S.scrollTop > at && (S.scrollTop = at), $t(Xi({
7358
7358
  controller: t,
7359
7359
  itemHeight: a,
7360
7360
  overscan: c,
@@ -7363,8 +7363,8 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7363
7363
  viewportHeight: De
7364
7364
  }));
7365
7365
  };
7366
- if (!Xe.current) {
7367
- Xe.current = !0;
7366
+ if (!Ye.current) {
7367
+ Ye.current = !0;
7368
7368
  const le = t.getFocusedIndex();
7369
7369
  if (le >= 0) {
7370
7370
  const De = da(pe.current, E), at = t.getVisibleRows(le, le)[0] ?? null;
@@ -7481,14 +7481,14 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7481
7481
  te.current = Q;
7482
7482
  return;
7483
7483
  }
7484
- const B = Q == null ? null : ue.current.get(Q) ?? null, T = si(S), A = T?.dataset.itemPath ?? null, $ = wt && j.current === T, we = I && ye.current === T, H = Ze.current && !Me, ce = vt.current ?? 0, ve = Yt.current, de = wn.current, Pe = xn.current, ot = Ie.current, Ot = T != null, He = ae.current || Ot, le = te.current !== Q, De = de != null && de === Q && Q != null;
7484
+ const B = Q == null ? null : ue.current.get(Q) ?? null, T = si(S), A = T?.dataset.itemPath ?? null, $ = wt && j.current === T, we = I && ye.current === T, H = Ze.current && !Me, ce = vt.current ?? 0, ve = Xt.current, de = wn.current, Pe = xn.current, ot = Ie.current, Ot = T != null, He = ae.current || Ot, le = te.current !== Q, De = de != null && de === Q && Q != null;
7485
7485
  let at = !1, Zo = !1;
7486
7486
  if (qt != null && qt.id !== _e.current) {
7487
7487
  _e.current = qt.id;
7488
7488
  const qi = qt.visibleIndex, fl = t.getVisibleRows(qi, qi)[0] ?? null;
7489
7489
  if (fl != null) {
7490
- const Yu = _ ? Math.max(0, Math.min(fl.ancestorPaths.length * a, Math.max(0, Re - a))) : fr;
7491
- at = !0, Zo = rp(d, qi, a, Re, Qt, qt.offset, Yu);
7490
+ const Xu = _ ? Math.max(0, Math.min(fl.ancestorPaths.length * a, Math.max(0, Re - a))) : fr;
7491
+ at = !0, Zo = rp(d, qi, a, Re, Qt, qt.offset, Xu);
7492
7492
  }
7493
7493
  t.clearScrollRequest(qt.id);
7494
7494
  }
@@ -7513,7 +7513,7 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7513
7513
  H && U >= 0 && (ao(d, U, a, Re, Qt, ce), be.current()), te.current = Q;
7514
7514
  return;
7515
7515
  }
7516
- (le || H || ve === Q || de === Q || Pe?.path === Q || ot?.path === Q || A == null || A !== Q) && (Ir(B), ve === Q && (Yt.current = null), de === Q && (wn.current = null), Pe?.path === Q && (xn.current = null), ot?.path === Q && (Ie.current = null), Ze.current = !1, vt.current = null), te.current = Q;
7516
+ (le || H || ve === Q || de === Q || Pe?.path === Q || ot?.path === Q || A == null || A !== Q) && (Ir(B), ve === Q && (Xt.current = null), de === Q && (wn.current = null), Pe?.path === Q && (xn.current = null), ot?.path === Q && (Ie.current = null), Ze.current = !1, vt.current = null), te.current = Q;
7517
7517
  }, [
7518
7518
  t,
7519
7519
  U,
@@ -7531,9 +7531,9 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7531
7531
  Qt,
7532
7532
  ge
7533
7533
  ]);
7534
- const Cu = U >= 0 && U >= Z.visible.startIndex && U <= Z.visible.endIndex, _u = Q != null && Ve.some((d) => wr(d.row) === Q), ku = Cu || _u, Pu = Xt && ae.current === !0 && ku ? Q : null, Eu = zo === "pointer" ? Mt : null, Xn = ie?.path ?? Sn.current ?? Eu ?? Pu ?? Mt, cl = ie?.source === "right-click";
7534
+ const Cu = U >= 0 && U >= Z.visible.startIndex && U <= Z.visible.endIndex, _u = Q != null && Ve.some((d) => wr(d.row) === Q), ku = Cu || _u, Pu = Yt && ae.current === !0 && ku ? Q : null, Eu = zo === "pointer" ? Mt : null, Yn = ie?.path ?? Sn.current ?? Eu ?? Pu ?? Mt, cl = ie?.source === "right-click";
7535
7535
  xt(() => {
7536
- C.current && ie == null || Qr(v(Xn));
7536
+ C.current && ie == null || Qr(v(Yn));
7537
7537
  }, [
7538
7538
  ie,
7539
7539
  v,
@@ -7541,7 +7541,7 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7541
7541
  Re,
7542
7542
  jr,
7543
7543
  Ve,
7544
- Xn,
7544
+ Yn,
7545
7545
  Qr,
7546
7546
  ge
7547
7547
  ]);
@@ -7572,12 +7572,12 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7572
7572
  const S = d.relatedTarget;
7573
7573
  S instanceof Node && q.current?.contains(S) === !0 || (kn(), Zr(), t.setDragTarget(null));
7574
7574
  }, Au = (d) => {
7575
- !Tt || t.getDragSession() == null || ze.current || (d.preventDefault(), Yo(d.clientX, d.clientY), t.completeDrag(), Go(), kn(), Zr(), Be.current = null);
7576
- }, eo = Z.window.height, Ru = Z.window.offsetTop, Vu = Math.min(0, Re - eo), Fu = Math.min(0, Re - eo - fr), Lu = ar === Q || Ze.current, mr = Q != null && Lu && !Bi && U >= 0 ? ge[U] ?? t.getVisibleRows(U, U)[0] ?? null : null, ul = mr == null ? null : fa(U, a, Ue, eo), Pn = Be.current, Bu = Yn != null && Pn != null && Pn.path === Yn && Pn.index >= Ue.start && Pn.index <= Ue.end, to = Yn != null && Pn != null && Pn.path === Yn && !Bu && Pn.path !== mr?.path ? Pn : null, dl = to == null ? null : fa(to.index, a, Ue, eo), zu = Ip((U >= 0 ? ge[U] ?? t.getVisibleRows(U, U)[0] ?? null : null)?.ancestorPaths.at(-1) ?? null), Hu = Me && Q != null ? lu(l, Q, !Bi) : void 0, $u = ie?.path ?? (Me ? Q : ar), qu = ie?.path ?? Mt, no = v(Xn), $i = nt && Xt && !cl && !wt && no != null && In != null && Xn != null, Ou = nt && ($i || ie != null), Xo = ie?.anchorRect, hl = Xo == null && no != null && In != null && (ie != null || $i) ? In : null, ju = Xo != null ? {
7577
- left: `${Xo.left}px`,
7575
+ !Tt || t.getDragSession() == null || ze.current || (d.preventDefault(), Xo(d.clientX, d.clientY), t.completeDrag(), Go(), kn(), Zr(), Be.current = null);
7576
+ }, eo = Z.window.height, Ru = Z.window.offsetTop, Vu = Math.min(0, Re - eo), Fu = Math.min(0, Re - eo - fr), Lu = ar === Q || Ze.current, mr = Q != null && Lu && !Bi && U >= 0 ? ge[U] ?? t.getVisibleRows(U, U)[0] ?? null : null, ul = mr == null ? null : fa(U, a, Ue, eo), Pn = Be.current, Bu = Xn != null && Pn != null && Pn.path === Xn && Pn.index >= Ue.start && Pn.index <= Ue.end, to = Xn != null && Pn != null && Pn.path === Xn && !Bu && Pn.path !== mr?.path ? Pn : null, dl = to == null ? null : fa(to.index, a, Ue, eo), zu = Ip((U >= 0 ? ge[U] ?? t.getVisibleRows(U, U)[0] ?? null : null)?.ancestorPaths.at(-1) ?? null), Hu = Me && Q != null ? lu(l, Q, !Bi) : void 0, $u = ie?.path ?? (Me ? Q : ar), qu = ie?.path ?? Mt, no = v(Yn), $i = nt && Yt && !cl && !wt && no != null && In != null && Yn != null, Ou = nt && ($i || ie != null), Yo = ie?.anchorRect, hl = Yo == null && no != null && In != null && (ie != null || $i) ? In : null, ju = Yo != null ? {
7577
+ left: `${Yo.left}px`,
7578
7578
  position: "fixed",
7579
7579
  right: "auto",
7580
- top: `${Xo.top}px`
7580
+ top: `${Yo.top}px`
7581
7581
  } : hl != null ? { top: `${hl}px` } : void 0, Uu = cl ? { opacity: "0" } : void 0, Wu = st((d, S, B, T) => {
7582
7582
  const A = lp({
7583
7583
  event: {
@@ -7611,13 +7611,13 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7611
7611
  Z.visible.startIndex,
7612
7612
  Ko
7613
7613
  ]), Ku = () => {
7614
- if (C.current || !Xt || Xn == null || no == null) return;
7615
- const d = t.getItem(Xn);
7614
+ if (C.current || !Yt || Yn == null || no == null) return;
7615
+ const d = t.getItem(Yn);
7616
7616
  d != null && (Qr(no), pr.current = !0, ur({
7617
7617
  anchorRect: null,
7618
7618
  item: {
7619
7619
  kind: d.isDirectory() ? "directory" : "file",
7620
- name: no.getAttribute("aria-label") ?? Xn,
7620
+ name: no.getAttribute("aria-label") ?? Yn,
7621
7621
  path: d.getPath()
7622
7622
  },
7623
7623
  path: d.getPath(),
@@ -7625,7 +7625,7 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7625
7625
  }));
7626
7626
  }, Qo = {
7627
7627
  contextHoverPath: qu,
7628
- contextMenuButtonTriggerEnabled: Xt,
7628
+ contextMenuButtonTriggerEnabled: Yt,
7629
7629
  contextMenuButtonVisibility: Kn,
7630
7630
  contextMenuEnabled: nt,
7631
7631
  contextMenuRightClickEnabled: Oo,
@@ -7634,7 +7634,7 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7634
7634
  directoriesWithGitChanges: o,
7635
7635
  dragAndDropEnabled: Tt,
7636
7636
  draggedPathSet: Gn,
7637
- dragTarget: Xr,
7637
+ dragTarget: Yr,
7638
7638
  gitLaneActive: K,
7639
7639
  gitStatusByPath: n,
7640
7640
  handleRowDragEnd: xu,
@@ -7662,9 +7662,9 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7662
7662
  return /* @__PURE__ */ N("div", {
7663
7663
  ref: q,
7664
7664
  id: F,
7665
- "data-file-tree-context-menu-button-visibility": nt && Xt ? Kn : void 0,
7665
+ "data-file-tree-context-menu-button-visibility": nt && Yt ? Kn : void 0,
7666
7666
  "data-file-tree-context-menu-trigger-mode": nt ? Cn : void 0,
7667
- "data-file-tree-has-context-menu-action-lane": nt && Xt ? "true" : void 0,
7667
+ "data-file-tree-has-context-menu-action-lane": nt && Yt ? "true" : void 0,
7668
7668
  "data-file-tree-has-git-lane": K ? "true" : void 0,
7669
7669
  "data-file-tree-virtualized-root": "true",
7670
7670
  onDragLeave: Tt ? Nu : void 0,
@@ -7714,7 +7714,7 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7714
7714
  /* @__PURE__ */ N("div", {
7715
7715
  ref: oe,
7716
7716
  "data-file-tree-virtualized-scroll": "true",
7717
- children: [_ && Yr && Ve.length > 0 ? /* @__PURE__ */ N("div", {
7717
+ children: [_ && Xr && Ve.length > 0 ? /* @__PURE__ */ N("div", {
7718
7718
  "aria-hidden": "true",
7719
7719
  "data-file-tree-sticky-overlay": "true",
7720
7720
  children: /* @__PURE__ */ N("div", {
@@ -7753,7 +7753,7 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7753
7753
  style: {
7754
7754
  left: "0",
7755
7755
  opacity: "0",
7756
- pointerEvents: Yn === mr.path ? "none" : void 0,
7756
+ pointerEvents: Xn === mr.path ? "none" : void 0,
7757
7757
  position: "absolute",
7758
7758
  right: "0",
7759
7759
  top: `${ul}px`
@@ -7782,7 +7782,7 @@ function Fa({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
7782
7782
  children: [/* @__PURE__ */ N("button", {
7783
7783
  ref: k,
7784
7784
  type: "button",
7785
- "data-type": Yh,
7785
+ "data-type": Xh,
7786
7786
  "aria-label": "Options",
7787
7787
  "aria-haspopup": "menu",
7788
7788
  "aria-expanded": ie != null ? "true" : "false",
@@ -7926,11 +7926,11 @@ function za(e) {
7926
7926
  function Ha(e) {
7927
7927
  return Array.from(e.children).filter((t) => t instanceof SVGElement);
7928
7928
  }
7929
- var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, Nr, Ar, Rr, Ge, Vr, Fr, Y, cu, Qn, go, Rs, uu, wi, du, hu, fu, pu, Vs, Fs, mu, gu, Lp = (Xi = class {
7929
+ var Yi, fn, Y, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, Nr, Ar, Rr, Ge, Vr, Fr, X, cu, Qn, go, Rs, uu, wi, du, hu, fu, pu, Vs, Fs, mu, gu, Lp = (Yi = class {
7930
7930
  constructor(e) {
7931
- M(this, Y);
7932
- M(this, fn);
7933
7931
  M(this, X);
7932
+ M(this, fn);
7933
+ M(this, Y);
7934
7934
  M(this, pn);
7935
7935
  M(this, Tr);
7936
7936
  M(this, No);
@@ -7959,47 +7959,47 @@ var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, N
7959
7959
  overscan: g,
7960
7960
  stickyFolders: D,
7961
7961
  initialVisibleRowCount: C
7962
- }), b(this, X, new m0({
7962
+ }), b(this, Y, new m0({
7963
7963
  ...P,
7964
7964
  formatItemName: u,
7965
7965
  fileTreeSearchMode: r,
7966
7966
  initialSearchQuery: l,
7967
7967
  onSearchChange: h,
7968
7968
  renaming: y
7969
- })), b(this, Ar, s(this, X).getSelectionVersion()), b(this, Rr, s(this, Tr) == null ? null : this.subscribe(() => {
7970
- m(this, Y, uu).call(this);
7969
+ })), b(this, Ar, s(this, Y).getSelectionVersion()), b(this, Rr, s(this, Tr) == null ? null : this.subscribe(() => {
7970
+ m(this, X, uu).call(this);
7971
7971
  }));
7972
7972
  }
7973
7973
  unmount() {
7974
- s(this, Ge) != null && (Ap(s(this, Ge)), delete s(this, Ge).dataset.fileTreeVirtualizedWrapper, b(this, Ge, void 0)), s(this, mn).clearAll(), s(this, mn).setHost(null), s(this, Vt) != null && (delete s(this, Vt).dataset.fileTreeVirtualized, m(this, Y, gu).call(this, s(this, Vt)), b(this, Vt, void 0));
7974
+ s(this, Ge) != null && (Ap(s(this, Ge)), delete s(this, Ge).dataset.fileTreeVirtualizedWrapper, b(this, Ge, void 0)), s(this, mn).clearAll(), s(this, mn).setHost(null), s(this, Vt) != null && (delete s(this, Vt).dataset.fileTreeVirtualized, m(this, X, gu).call(this, s(this, Vt)), b(this, Vt, void 0));
7975
7975
  }
7976
7976
  cleanUp() {
7977
7977
  var e;
7978
- this.unmount(), (e = s(this, Rr)) == null || e.call(this), b(this, Rr, null), s(this, X).destroy();
7978
+ this.unmount(), (e = s(this, Rr)) == null || e.call(this), b(this, Rr, null), s(this, Y).destroy();
7979
7979
  }
7980
7980
  getFileTreeContainer() {
7981
7981
  return s(this, Vt);
7982
7982
  }
7983
7983
  getItem(e) {
7984
- return s(this, X).getItem(e);
7984
+ return s(this, Y).getItem(e);
7985
7985
  }
7986
7986
  getFocusedItem() {
7987
- return s(this, X).getFocusedItem();
7987
+ return s(this, Y).getFocusedItem();
7988
7988
  }
7989
7989
  getFocusedPath() {
7990
- return s(this, X).getFocusedPath();
7990
+ return s(this, Y).getFocusedPath();
7991
7991
  }
7992
7992
  getFocusedIndex() {
7993
- return s(this, X).getFocusedIndex();
7993
+ return s(this, Y).getFocusedIndex();
7994
7994
  }
7995
7995
  getVisibleCount() {
7996
- return s(this, X).getVisibleCount();
7996
+ return s(this, Y).getVisibleCount();
7997
7997
  }
7998
7998
  getVisibleRows(e, t) {
7999
- return s(this, X).getVisibleRows(e, t);
7999
+ return s(this, Y).getVisibleRows(e, t);
8000
8000
  }
8001
8001
  getSelectedPaths() {
8002
- return s(this, X).getSelectedPaths();
8002
+ return s(this, Y).getSelectedPaths();
8003
8003
  }
8004
8004
  getComposition() {
8005
8005
  return s(this, fn);
@@ -8012,7 +8012,7 @@ var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, N
8012
8012
  }
8013
8013
  subscribe(e) {
8014
8014
  let t = !1;
8015
- return s(this, X).subscribe(() => {
8015
+ return s(this, Y).subscribe(() => {
8016
8016
  if (!t) {
8017
8017
  t = !0;
8018
8018
  return;
@@ -8021,107 +8021,107 @@ var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, N
8021
8021
  });
8022
8022
  }
8023
8023
  focusPath(e) {
8024
- s(this, X).focusPath(e);
8024
+ s(this, Y).focusPath(e);
8025
8025
  }
8026
8026
  focusFirstItem() {
8027
- s(this, X).focusFirstItem();
8027
+ s(this, Y).focusFirstItem();
8028
8028
  }
8029
8029
  focusLastItem() {
8030
- s(this, X).focusLastItem();
8030
+ s(this, Y).focusLastItem();
8031
8031
  }
8032
8032
  focusNextItem() {
8033
- s(this, X).focusNextItem();
8033
+ s(this, Y).focusNextItem();
8034
8034
  }
8035
8035
  focusPreviousItem() {
8036
- s(this, X).focusPreviousItem();
8036
+ s(this, Y).focusPreviousItem();
8037
8037
  }
8038
8038
  focusParentItem() {
8039
- s(this, X).focusParentItem();
8039
+ s(this, Y).focusParentItem();
8040
8040
  }
8041
8041
  scrollToPath(e, t) {
8042
- s(this, X).scrollToPath(e, t);
8042
+ s(this, Y).scrollToPath(e, t);
8043
8043
  }
8044
8044
  focusNearestPath(e) {
8045
- return s(this, X).focusNearestPath(e);
8045
+ return s(this, Y).focusNearestPath(e);
8046
8046
  }
8047
8047
  add(e) {
8048
- s(this, X).add(e);
8048
+ s(this, Y).add(e);
8049
8049
  }
8050
8050
  batch(e) {
8051
- s(this, X).batch(e);
8051
+ s(this, Y).batch(e);
8052
8052
  }
8053
8053
  applyGitStatusPatch(e) {
8054
8054
  const t = b0(s(this, kt), e);
8055
8055
  if (t === s(this, kt)) return;
8056
8056
  b(this, kt, t);
8057
- const n = m(this, Y, go).call(this);
8058
- n != null && co(n.wrapper, m(this, Y, Qn).call(this));
8057
+ const n = m(this, X, go).call(this);
8058
+ n != null && co(n.wrapper, m(this, X, Qn).call(this));
8059
8059
  }
8060
8060
  move(e, t, n) {
8061
- s(this, X).move(e, t, n);
8061
+ s(this, Y).move(e, t, n);
8062
8062
  }
8063
8063
  onMutation(e, t) {
8064
- return s(this, X).onMutation(e, t);
8064
+ return s(this, Y).onMutation(e, t);
8065
8065
  }
8066
8066
  setSearch(e) {
8067
- s(this, X).setSearch(e);
8067
+ s(this, Y).setSearch(e);
8068
8068
  }
8069
8069
  openSearch(e) {
8070
- s(this, X).openSearch(e);
8070
+ s(this, Y).openSearch(e);
8071
8071
  }
8072
8072
  closeSearch() {
8073
- s(this, X).closeSearch();
8073
+ s(this, Y).closeSearch();
8074
8074
  }
8075
8075
  isSearchOpen() {
8076
- return s(this, X).isSearchOpen();
8076
+ return s(this, Y).isSearchOpen();
8077
8077
  }
8078
8078
  getSearchValue() {
8079
- return s(this, X).getSearchValue();
8079
+ return s(this, Y).getSearchValue();
8080
8080
  }
8081
8081
  getSearchMatchingPaths() {
8082
- return s(this, X).getSearchMatchingPaths();
8082
+ return s(this, Y).getSearchMatchingPaths();
8083
8083
  }
8084
8084
  focusNextSearchMatch() {
8085
- s(this, X).focusNextSearchMatch();
8085
+ s(this, Y).focusNextSearchMatch();
8086
8086
  }
8087
8087
  focusPreviousSearchMatch() {
8088
- s(this, X).focusPreviousSearchMatch();
8088
+ s(this, Y).focusPreviousSearchMatch();
8089
8089
  }
8090
8090
  startRenaming(e, t) {
8091
- return s(this, X).startRenaming(e, t);
8091
+ return s(this, Y).startRenaming(e, t);
8092
8092
  }
8093
8093
  remove(e, t) {
8094
- s(this, X).remove(e, t);
8094
+ s(this, Y).remove(e, t);
8095
8095
  }
8096
8096
  resetPaths(e, t) {
8097
- Array.isArray(e) ? s(this, X).resetPaths(e, t) : s(this, X).resetPaths(e);
8097
+ Array.isArray(e) ? s(this, Y).resetPaths(e, t) : s(this, Y).resetPaths(e);
8098
8098
  }
8099
8099
  setComposition(e) {
8100
8100
  b(this, fn, e);
8101
- const t = m(this, Y, go).call(this);
8102
- t != null && (m(this, Y, wi).call(this), co(t.wrapper, m(this, Y, Qn).call(this)));
8101
+ const t = m(this, X, go).call(this);
8102
+ t != null && (m(this, X, wi).call(this), co(t.wrapper, m(this, X, Qn).call(this)));
8103
8103
  }
8104
8104
  setGitStatus(e) {
8105
8105
  const t = na(e, s(this, kt));
8106
8106
  if (t === s(this, kt)) return;
8107
8107
  b(this, kt, t);
8108
- const n = m(this, Y, go).call(this);
8109
- n != null && co(n.wrapper, m(this, Y, Qn).call(this));
8108
+ const n = m(this, X, go).call(this);
8109
+ n != null && co(n.wrapper, m(this, X, Qn).call(this));
8110
8110
  }
8111
8111
  setIcons(e) {
8112
8112
  b(this, yn, e);
8113
- const t = m(this, Y, go).call(this);
8114
- t != null && (m(this, Y, Rs).call(this, t.host, t.wrapper), co(t.wrapper, m(this, Y, Qn).call(this)));
8113
+ const t = m(this, X, go).call(this);
8114
+ t != null && (m(this, X, Rs).call(this, t.host, t.wrapper), co(t.wrapper, m(this, X, Qn).call(this)));
8115
8115
  }
8116
8116
  hydrate({ fileTreeContainer: e }) {
8117
- const t = m(this, Y, Fs).call(this, e), n = m(this, Y, Vs).call(this, t);
8118
- m(this, Y, wi).call(this), Np(n, m(this, Y, Qn).call(this));
8117
+ const t = m(this, X, Fs).call(this, e), n = m(this, X, Vs).call(this, t);
8118
+ m(this, X, wi).call(this), Np(n, m(this, X, Qn).call(this));
8119
8119
  }
8120
8120
  render({ containerWrapper: e, fileTreeContainer: t }) {
8121
- const n = m(this, Y, Fs).call(this, t ?? s(this, Vt), e), r = m(this, Y, Vs).call(this, n);
8122
- m(this, Y, wi).call(this), co(r, m(this, Y, Qn).call(this));
8121
+ const n = m(this, X, Fs).call(this, t ?? s(this, Vt), e), r = m(this, X, Vs).call(this, n);
8122
+ m(this, X, wi).call(this), co(r, m(this, X, Qn).call(this));
8123
8123
  }
8124
- }, fn = new WeakMap(), X = new WeakMap(), pn = new WeakMap(), Tr = new WeakMap(), No = new WeakMap(), Ao = new WeakMap(), Ro = new WeakMap(), Vo = new WeakMap(), Fo = new WeakMap(), Lo = new WeakMap(), mn = new WeakMap(), gn = new WeakMap(), vn = new WeakMap(), Vt = new WeakMap(), kt = new WeakMap(), yn = new WeakMap(), bn = new WeakMap(), Pt = new WeakMap(), Nr = new WeakMap(), Ar = new WeakMap(), Rr = new WeakMap(), Ge = new WeakMap(), Vr = new WeakMap(), Fr = new WeakMap(), Y = new WeakSet(), cu = function() {
8124
+ }, fn = new WeakMap(), Y = new WeakMap(), pn = new WeakMap(), Tr = new WeakMap(), No = new WeakMap(), Ao = new WeakMap(), Ro = new WeakMap(), Vo = new WeakMap(), Fo = new WeakMap(), Lo = new WeakMap(), mn = new WeakMap(), gn = new WeakMap(), vn = new WeakMap(), Vt = new WeakMap(), kt = new WeakMap(), yn = new WeakMap(), bn = new WeakMap(), Pt = new WeakMap(), Nr = new WeakMap(), Ar = new WeakMap(), Rr = new WeakMap(), Ge = new WeakMap(), Vr = new WeakMap(), Fr = new WeakMap(), X = new WeakSet(), cu = function() {
8125
8125
  return {
8126
8126
  initialViewportHeight: Fp({
8127
8127
  initialVisibleRowCount: s(this, vn).initialVisibleRowCount,
@@ -8134,7 +8134,7 @@ var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, N
8134
8134
  }, Qn = function() {
8135
8135
  return {
8136
8136
  composition: s(this, fn),
8137
- controller: s(this, X),
8137
+ controller: s(this, Y),
8138
8138
  gitStatusByPath: s(this, kt)?.statusByPath,
8139
8139
  ignoredGitDirectories: s(this, kt)?.ignoredDirectoryPaths,
8140
8140
  directoriesWithGitChanges: s(this, kt)?.directoriesWithChanges,
@@ -8147,7 +8147,7 @@ var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, N
8147
8147
  searchEnabled: s(this, Fo),
8148
8148
  searchFakeFocus: s(this, Lo),
8149
8149
  slotHost: s(this, mn),
8150
- ...m(this, Y, cu).call(this)
8150
+ ...m(this, X, cu).call(this)
8151
8151
  };
8152
8152
  }, go = function() {
8153
8153
  const e = s(this, Vt), t = s(this, Ge);
@@ -8157,12 +8157,12 @@ var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, N
8157
8157
  };
8158
8158
  }, Rs = function(e, t) {
8159
8159
  const n = e.shadowRoot;
8160
- n != null && (m(this, Y, du).call(this, n), m(this, Y, hu).call(this, n)), m(this, Y, fu).call(this, t);
8160
+ n != null && (m(this, X, du).call(this, n), m(this, X, hu).call(this, n)), m(this, X, fu).call(this, t);
8161
8161
  }, uu = function() {
8162
8162
  const e = s(this, Tr);
8163
8163
  if (e == null) return;
8164
- const t = s(this, X).getSelectionVersion();
8165
- t !== s(this, Ar) && (b(this, Ar, t), e(s(this, X).getSelectedPaths()));
8164
+ const t = s(this, Y).getSelectionVersion();
8165
+ t !== s(this, Ar) && (b(this, Ar, t), e(s(this, Y).getSelectedPaths()));
8166
8166
  }, wi = function() {
8167
8167
  const e = s(this, fn)?.header?.render;
8168
8168
  if (e != null) {
@@ -8203,18 +8203,18 @@ var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, N
8203
8203
  const t = e.shadowRoot;
8204
8204
  if (t == null) throw new Error("FileTree requires a shadow root");
8205
8205
  const n = Array.from(t.children).filter((o) => o instanceof HTMLDivElement && typeof o.dataset.fileTreeId == "string" && o.dataset.fileTreeId.length > 0), r = n.find((o) => o.dataset.fileTreeId === s(this, pn)) ?? n[0];
8206
- return r != null && b(this, pn, r.dataset.fileTreeId ?? s(this, pn)), b(this, Ge, r ?? document.createElement("div")), s(this, Ge).dataset.fileTreeId = s(this, pn), s(this, Ge).dataset.fileTreeVirtualizedWrapper = "true", m(this, Y, Rs).call(this, e, s(this, Ge)), s(this, Ge).parentNode !== t && t.appendChild(s(this, Ge)), s(this, Ge);
8206
+ return r != null && b(this, pn, r.dataset.fileTreeId ?? s(this, pn)), b(this, Ge, r ?? document.createElement("div")), s(this, Ge).dataset.fileTreeId = s(this, pn), s(this, Ge).dataset.fileTreeVirtualizedWrapper = "true", m(this, X, Rs).call(this, e, s(this, Ge)), s(this, Ge).parentNode !== t && t.appendChild(s(this, Ge)), s(this, Ge);
8207
8207
  }, Fs = function(e, t) {
8208
8208
  const n = e ?? s(this, Vt) ?? document.createElement("file-tree-container");
8209
8209
  t != null && n.parentNode !== t && t.appendChild(n);
8210
8210
  const r = n.shadowRoot ?? n.attachShadow({ mode: "open" });
8211
- return ss(n, r), m(this, Y, pu).call(this, r), n.dataset.fileTreeVirtualized = "true", n.style.display = "flex", m(this, Y, mu).call(this, n), s(this, mn).setHost(n), b(this, Vt, n), n;
8211
+ return ss(n, r), m(this, X, pu).call(this, r), n.dataset.fileTreeVirtualized = "true", n.style.display = "flex", m(this, X, mu).call(this, n), s(this, mn).setHost(n), b(this, Vt, n), n;
8212
8212
  }, mu = function(e) {
8213
8213
  e.style.getPropertyValue("--trees-item-height") === "" && (e.style.setProperty("--trees-item-height", `${String(s(this, gn).itemHeight)}px`), b(this, Vr, !0)), e.style.getPropertyValue("--trees-density-override") === "" && (e.style.setProperty("--trees-density-override", String(s(this, gn).factor)), b(this, Fr, !0));
8214
8214
  }, gu = function(e) {
8215
8215
  s(this, Vr) && (e.style.removeProperty("--trees-item-height"), b(this, Vr, !1)), s(this, Fr) && (e.style.removeProperty("--trees-density-override"), b(this, Fr, !1));
8216
- }, ct(Xi, "LoadedCustomComponent", !0), Xi);
8217
- const Bp = "_browser_pgoiu_1", zp = "_toolbar_pgoiu_10", Hp = "_path_pgoiu_19", $p = "_columns_pgoiu_29", qp = "_content_pgoiu_36", Op = "_sidebar_pgoiu_46", jp = "_splitHandle_pgoiu_56", Up = "_search_pgoiu_66", Wp = "_tree_pgoiu_86", Kp = "_notices_pgoiu_100", Gp = "_noMatches_pgoiu_111", Yp = "_dropHint_pgoiu_118", Xp = "_uploadProgress_pgoiu_131", Qp = "_uploadError_pgoiu_145", lt = {
8216
+ }, ct(Yi, "LoadedCustomComponent", !0), Yi);
8217
+ const Bp = "_browser_pgoiu_1", zp = "_toolbar_pgoiu_10", Hp = "_path_pgoiu_19", $p = "_columns_pgoiu_29", qp = "_content_pgoiu_36", Op = "_sidebar_pgoiu_46", jp = "_splitHandle_pgoiu_56", Up = "_search_pgoiu_66", Wp = "_tree_pgoiu_86", Kp = "_notices_pgoiu_100", Gp = "_noMatches_pgoiu_111", Xp = "_dropHint_pgoiu_118", Yp = "_uploadProgress_pgoiu_131", Qp = "_uploadError_pgoiu_145", lt = {
8218
8218
  browser: Bp,
8219
8219
  toolbar: zp,
8220
8220
  path: Hp,
@@ -8226,8 +8226,8 @@ const Bp = "_browser_pgoiu_1", zp = "_toolbar_pgoiu_10", Hp = "_path_pgoiu_19",
8226
8226
  tree: Wp,
8227
8227
  notices: Kp,
8228
8228
  noMatches: Gp,
8229
- dropHint: Yp,
8230
- uploadProgress: Xp,
8229
+ dropHint: Xp,
8230
+ uploadProgress: Yp,
8231
8231
  uploadError: Qp
8232
8232
  };
8233
8233
  function $a(e) {
@@ -8252,7 +8252,7 @@ function sm({
8252
8252
  /* @__PURE__ */ new Map()
8253
8253
  ), _ = it(/* @__PURE__ */ new Set()), [E, D] = We(), k = it(void 0), C = yl(), P = yl(), j = it(null), q = it(null), oe = it(!1), ye = it(i("files.title"));
8254
8254
  ye.current = i("files.title");
8255
- const ue = it(void 0), Ee = Vd(), be = it(null), pe = it(!1), _e = it(void 0), Xe = it(void 0), [ke, ae] = We(), te = it(void 0), [Qe, Ze] = We(), [vt, ht] = We("file"), [Je, Lt] = We(!1), [ln, yt] = We(), [Be, Bt] = We(""), [ze, zt] = We(!1), [et, bt] = We(), tt = it(void 0), [ft, ee] = We(), It = ft !== void 0, [ar, Ht] = We(!1), [Mt, cr] = We(!0), [In, Or] = We(""), [zo, Gt] = We(!1), [jr, Ri] = We(0), [ie, ur] = We([]), [re, Yt] = We(), [wn, xn] = We(), Ie = it(void 0), Sn = it(!1);
8255
+ const ue = it(void 0), Ee = Vd(), be = it(null), pe = it(!1), _e = it(void 0), Ye = it(void 0), [ke, ae] = We(), te = it(void 0), [Qe, Ze] = We(), [vt, ht] = We("file"), [Je, Lt] = We(!1), [ln, yt] = We(), [Be, Bt] = We(""), [ze, zt] = We(!1), [et, bt] = We(), tt = it(void 0), [ft, ee] = We(), It = ft !== void 0, [ar, Ht] = We(!1), [Mt, cr] = We(!0), [In, Or] = We(""), [zo, Gt] = We(!1), [jr, Ri] = We(0), [ie, ur] = We([]), [re, Xt] = We(), [wn, xn] = We(), Ie = it(void 0), Sn = it(!1);
8256
8256
  oo(() => {
8257
8257
  const v = requestAnimationFrame(() => {
8258
8258
  It ? P.current?.resize("70%") : C.current?.resize("100%");
@@ -8270,7 +8270,7 @@ function sm({
8270
8270
  if (!v) return;
8271
8271
  let K = !1;
8272
8272
  const me = {};
8273
- Ie.current = me, Yt(void 0), ae(void 0), zt(!1), Ze(void 0), Lt(!1);
8273
+ Ie.current = me, Xt(void 0), ae(void 0), zt(!1), Ze(void 0), Lt(!1);
8274
8274
  const G = /* @__PURE__ */ new Set(), Ae = /* @__PURE__ */ new Map(), wt = /* @__PURE__ */ new Map(), Me = /* @__PURE__ */ new Map(), rt = /* @__PURE__ */ new Map(), Q = !!(t.createFile || t.createDirectory || t.deleteDirectory), U = new Lp({
8275
8275
  paths: [],
8276
8276
  initialExpansion: "closed",
@@ -8301,10 +8301,10 @@ function sm({
8301
8301
  buttonVisibility: "when-needed",
8302
8302
  onOpen(F, se) {
8303
8303
  const J = Me.get(F.path);
8304
- J && (J.kind === "file" || J.kind === "symlink" || J.kind === "directory" && Q) ? (Sn.current = !1, pe.current = !1, xn(void 0), Yt({ path: F.path, kind: J.kind, context: se })) : se.close();
8304
+ J && (J.kind === "file" || J.kind === "symlink" || J.kind === "directory" && Q) ? (Sn.current = !1, pe.current = !1, xn(void 0), Xt({ path: F.path, kind: J.kind, context: se })) : se.close();
8305
8305
  },
8306
8306
  onClose() {
8307
- Sn.current = !0, K || Yt(void 0);
8307
+ Sn.current = !0, K || Xt(void 0);
8308
8308
  }
8309
8309
  }
8310
8310
  },
@@ -8321,7 +8321,7 @@ function sm({
8321
8321
  qt && _n.observe(qt, { childList: !0, subtree: !0 }), Tt();
8322
8322
  const Gn = () => {
8323
8323
  K || ur([...rt.values()]);
8324
- }, Xr = async (F) => {
8324
+ }, Yr = async (F) => {
8325
8325
  if (K || rt.has(F)) return;
8326
8326
  const se = {};
8327
8327
  Ae.set(F, se), rt.set(F, { path: F }), Gn();
@@ -8354,18 +8354,18 @@ function sm({
8354
8354
  });
8355
8355
  }
8356
8356
  Gn();
8357
- }, Yn = U.subscribe(() => {
8357
+ }, Xn = U.subscribe(() => {
8358
8358
  const F = !!U.getSearchValue();
8359
8359
  if (Gt(F && U.getSearchMatchingPaths().length === 0), !F)
8360
8360
  for (const [se, J] of Me) {
8361
8361
  if (J.kind !== "directory") continue;
8362
8362
  const Z = U.getItem(se);
8363
- Z && "isExpanded" in Z && Z.isExpanded() && Xr(se.slice(0, -1));
8363
+ Z && "isExpanded" in Z && Z.isExpanded() && Yr(se.slice(0, -1));
8364
8364
  }
8365
8365
  });
8366
8366
  return tt.current = (F) => {
8367
- rt.delete(F), Xr(F);
8368
- }, Xe.current = (F, se) => {
8367
+ rt.delete(F), Yr(F);
8368
+ }, Ye.current = (F, se) => {
8369
8369
  const J = `${F}${se === "directory" ? "/" : ""}`;
8370
8370
  se === "directory" && U.getItem(J) && (te.current?.(F), ee(
8371
8371
  (Ve) => Ve?.startsWith(J) ? void 0 : Ve
@@ -8410,8 +8410,8 @@ function sm({
8410
8410
  }
8411
8411
  const J = rt.get(se);
8412
8412
  J && rt.set(se, { ...J, empty: !1 }), Gn();
8413
- }, Xr(""), () => {
8414
- K = !0, Ie.current === me && (Ie.current = void 0), _n.disconnect(), Yn(), U.cleanUp(), v.replaceChildren(), ue.current = void 0, tt.current = void 0, Xe.current = void 0, te.current = void 0, k.current = void 0;
8413
+ }, Yr(""), () => {
8414
+ K = !0, Ie.current === me && (Ie.current = void 0), _n.disconnect(), Xn(), U.cleanUp(), v.replaceChildren(), ue.current = void 0, tt.current = void 0, Ye.current = void 0, te.current = void 0, k.current = void 0;
8415
8415
  };
8416
8416
  }, [t, jr]), oo(() => {
8417
8417
  ue.current?.setSearch(In || null);
@@ -8468,13 +8468,13 @@ function sm({
8468
8468
  v.dataTransfer.types.includes("Files") && (v.preventDefault(), v.stopPropagation(), v.dataTransfer.dropEffect = "none");
8469
8469
  }, $t = async (v, K = !1) => {
8470
8470
  const me = Ie.current;
8471
- Sn.current = !0, pe.current = K, re?.context.close({ restoreFocus: !K }), Yt(void 0);
8471
+ Sn.current = !0, pe.current = K, re?.context.close({ restoreFocus: !K }), Xt(void 0);
8472
8472
  try {
8473
8473
  await v();
8474
8474
  } catch (G) {
8475
8475
  Ie.current === me && xn(G instanceof Error ? G.message : String(G));
8476
8476
  }
8477
- }, Yr = () => {
8477
+ }, Xr = () => {
8478
8478
  const v = document.activeElement, K = re?.path, me = Ie.current;
8479
8479
  _e.current = () => {
8480
8480
  if (Ie.current === me)
@@ -8488,7 +8488,7 @@ function sm({
8488
8488
  } else v instanceof HTMLElement && v.isConnected && v.focus();
8489
8489
  };
8490
8490
  }, hr = (v, K) => {
8491
- Yr(), Bt(""), bt(void 0), ae({ kind: v, parent: K.replace(/\/$/, "") });
8491
+ Xr(), Bt(""), bt(void 0), ae({ kind: v, parent: K.replace(/\/$/, "") });
8492
8492
  }, nt = async () => {
8493
8493
  if (!ke || ze) return;
8494
8494
  if (!Be.trim() || Be === "." || Be === ".." || /[\\/\p{Cc}]/u.test(Be)) {
@@ -8501,7 +8501,7 @@ function sm({
8501
8501
  zt(!0), bt(void 0);
8502
8502
  try {
8503
8503
  if (await K(me), Ie.current !== G) return;
8504
- Xe.current?.(me, v.kind), ae(void 0);
8504
+ Ye.current?.(me, v.kind), ae(void 0);
8505
8505
  } catch (Ae) {
8506
8506
  Ie.current === G && bt(Ae instanceof Error ? Ae.message : String(Ae));
8507
8507
  } finally {
@@ -8522,7 +8522,7 @@ function sm({
8522
8522
  } finally {
8523
8523
  Ie.current === me && Lt(!1);
8524
8524
  }
8525
- }, Xt = /^(?:[a-z]:[\\/]|\\\\)/i.test(e) ? "\\" : "/", Kn = (v) => v ? `${e.replace(Xt === "\\" ? /[\\/]+$/ : /\/+$/, "")}${Xt}${v.replaceAll("/", Xt)}` : e, Oo = gr(
8525
+ }, Yt = /^(?:[a-z]:[\\/]|\\\\)/i.test(e) ? "\\" : "/", Kn = (v) => v ? `${e.replace(Yt === "\\" ? /[\\/]+$/ : /\/+$/, "")}${Yt}${v.replaceAll("/", Yt)}` : e, Oo = gr(
8526
8526
  e.split(/[\\/]/).filter(Boolean).at(-1) ?? e
8527
8527
  ), Fi = Kn(re?.path ?? ""), Li = ft && /\.(?:md|markdown|html?)$/i.test(ft), jo = ie.filter(
8528
8528
  (v) => v.error || v.empty || v.truncated
@@ -8542,7 +8542,7 @@ function sm({
8542
8542
  open: !0,
8543
8543
  modal: !1,
8544
8544
  onOpenChange: (v) => {
8545
- !v && !Sn.current && (Sn.current = !0, re.context.close(), Yt(void 0));
8545
+ !v && !Sn.current && (Sn.current = !0, re.context.close(), Xt(void 0));
8546
8546
  },
8547
8547
  children: [
8548
8548
  /* @__PURE__ */ V(rd, { asChild: !0, children: /* @__PURE__ */ V(
@@ -8596,7 +8596,7 @@ function sm({
8596
8596
  {
8597
8597
  variant: "destructive",
8598
8598
  onSelect: () => {
8599
- Yr();
8599
+ Xr();
8600
8600
  const v = re.path.replace(/\/$/, "");
8601
8601
  $t(() => {
8602
8602
  yt(void 0), ht("directory"), Ze(v);
@@ -8659,7 +8659,7 @@ function sm({
8659
8659
  {
8660
8660
  variant: "destructive",
8661
8661
  onSelect: () => {
8662
- Yr();
8662
+ Xr();
8663
8663
  const v = re.path;
8664
8664
  $t(() => {
8665
8665
  yt(void 0), ht("file"), Ze(v);