@aiquants/directory-tree 6.1.2 → 6.1.3

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 (3) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +1457 -1052
  3. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,77 +1,482 @@
1
- import { jsx as u, jsxs as Ne, Fragment as cr } from "react/jsx-runtime";
2
- import { VIRTUAL_SCROLL_LABEL_KEYS as ht, VIRTUAL_SCROLL_LABEL_CATALOGS as In, resolveVirtualScrollLocale as An, resolveVirtualScrollLabels as dr, VirtualScroll as ur, ScrollBar as hr } from "@aiquants/virtualscroll";
3
- import * as ae from "react";
4
- import { useRef as H, useEffect as Ae, useCallback as E, memo as zt, useState as de, useMemo as O, useSyncExternalStore as fr, useLayoutEffect as En, useImperativeHandle as mr, useTransition as pr } from "react";
5
- import { twMerge as j } from "tailwind-merge";
6
- import { FileIcon as yr, FileText as gr, FileCode as br, FileZip as Sr, FileVideo as vr, FileAudio as wr, FileImage as Ir, FilePpt as Er, FileDoc as xr, FileCsv as Nr, FileXls as Rr, FilePdf as kr, FileMd as Cr } from "@phosphor-icons/react";
7
- function Pr({
1
+ import { jsx as m, jsxs as b0, Fragment as y2 } from "react/jsx-runtime";
2
+ import { VIRTUAL_SCROLL_LABEL_KEYS as m1, VIRTUAL_SCROLL_LABEL_CATALOGS as ye, resolveVirtualScrollLocale as Re, resolveVirtualScrollLabels as M2, VirtualScroll as E2, ScrollBar as w2 } from "@aiquants/virtualscroll";
3
+ import * as t from "react";
4
+ import { createContext as b2, useRef as _, useEffect as k0, useCallback as b, memo as T1, useState as h0, useMemo as F, useSyncExternalStore as S2, useLayoutEffect as Me, useImperativeHandle as L2, useTransition as I2 } from "react";
5
+ import { twMerge as W } from "tailwind-merge";
6
+ function C2({
8
7
  title: e,
9
- titleId: t,
8
+ titleId: a,
10
9
  ...n
11
10
  }, r) {
12
- return /* @__PURE__ */ ae.createElement("svg", Object.assign({
11
+ return /* @__PURE__ */ t.createElement("svg", Object.assign({
13
12
  xmlns: "http://www.w3.org/2000/svg",
14
13
  viewBox: "0 0 24 24",
15
14
  fill: "currentColor",
16
15
  "aria-hidden": "true",
17
16
  "data-slot": "icon",
18
17
  ref: r,
19
- "aria-labelledby": t
20
- }, n), e ? /* @__PURE__ */ ae.createElement("title", {
21
- id: t
22
- }, e) : null, /* @__PURE__ */ ae.createElement("path", {
18
+ "aria-labelledby": a
19
+ }, n), e ? /* @__PURE__ */ t.createElement("title", {
20
+ id: a
21
+ }, e) : null, /* @__PURE__ */ t.createElement("path", {
23
22
  fillRule: "evenodd",
24
23
  d: "M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",
25
24
  clipRule: "evenodd"
26
25
  }));
27
26
  }
28
- const Tr = /* @__PURE__ */ ae.forwardRef(Pr);
29
- function Or({
27
+ const x2 = /* @__PURE__ */ t.forwardRef(C2);
28
+ function F2({
30
29
  title: e,
31
- titleId: t,
30
+ titleId: a,
32
31
  ...n
33
32
  }, r) {
34
- return /* @__PURE__ */ ae.createElement("svg", Object.assign({
33
+ return /* @__PURE__ */ t.createElement("svg", Object.assign({
35
34
  xmlns: "http://www.w3.org/2000/svg",
36
35
  viewBox: "0 0 24 24",
37
36
  fill: "currentColor",
38
37
  "aria-hidden": "true",
39
38
  "data-slot": "icon",
40
39
  ref: r,
41
- "aria-labelledby": t
42
- }, n), e ? /* @__PURE__ */ ae.createElement("title", {
43
- id: t
44
- }, e) : null, /* @__PURE__ */ ae.createElement("path", {
40
+ "aria-labelledby": a
41
+ }, n), e ? /* @__PURE__ */ t.createElement("title", {
42
+ id: a
43
+ }, e) : null, /* @__PURE__ */ t.createElement("path", {
45
44
  fillRule: "evenodd",
46
45
  d: "M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",
47
46
  clipRule: "evenodd"
48
47
  }));
49
48
  }
50
- const Lr = /* @__PURE__ */ ae.forwardRef(Or);
51
- function Dr({
49
+ const N2 = /* @__PURE__ */ t.forwardRef(F2);
50
+ function R2({
52
51
  title: e,
53
- titleId: t,
52
+ titleId: a,
54
53
  ...n
55
54
  }, r) {
56
- return /* @__PURE__ */ ae.createElement("svg", Object.assign({
55
+ return /* @__PURE__ */ t.createElement("svg", Object.assign({
57
56
  xmlns: "http://www.w3.org/2000/svg",
58
57
  viewBox: "0 0 24 24",
59
58
  fill: "currentColor",
60
59
  "aria-hidden": "true",
61
60
  "data-slot": "icon",
62
61
  ref: r,
63
- "aria-labelledby": t
64
- }, n), e ? /* @__PURE__ */ ae.createElement("title", {
65
- id: t
66
- }, e) : null, /* @__PURE__ */ ae.createElement("path", {
62
+ "aria-labelledby": a
63
+ }, n), e ? /* @__PURE__ */ t.createElement("title", {
64
+ id: a
65
+ }, e) : null, /* @__PURE__ */ t.createElement("path", {
67
66
  d: "M19.5 21a3 3 0 0 0 3-3v-4.5a3 3 0 0 0-3-3h-15a3 3 0 0 0-3 3V18a3 3 0 0 0 3 3h15ZM1.5 10.146V6a3 3 0 0 1 3-3h5.379a2.25 2.25 0 0 1 1.59.659l2.122 2.121c.14.141.331.22.53.22H19.5a3 3 0 0 1 3 3v1.146A4.483 4.483 0 0 0 19.5 9h-15a4.483 4.483 0 0 0-3 1.146Z"
68
67
  }));
69
68
  }
70
- const Ar = /* @__PURE__ */ ae.forwardRef(Dr), _r = {
69
+ const k2 = /* @__PURE__ */ t.forwardRef(R2), P2 = b2({
70
+ color: "currentColor",
71
+ size: "1em",
72
+ weight: "regular",
73
+ mirrored: !1
74
+ }), a0 = t.forwardRef(
75
+ (e, a) => {
76
+ const {
77
+ alt: n,
78
+ color: r,
79
+ size: o,
80
+ weight: s,
81
+ mirrored: c,
82
+ children: d,
83
+ weights: h,
84
+ ...A
85
+ } = e, {
86
+ color: M = "currentColor",
87
+ size: Z,
88
+ weight: E = "regular",
89
+ mirrored: u = !1,
90
+ ...p
91
+ } = t.useContext(P2);
92
+ return /* @__PURE__ */ t.createElement(
93
+ "svg",
94
+ {
95
+ ref: a,
96
+ xmlns: "http://www.w3.org/2000/svg",
97
+ width: o ?? Z,
98
+ height: o ?? Z,
99
+ fill: r ?? M,
100
+ viewBox: "0 0 256 256",
101
+ transform: c || u ? "scale(-1, 1)" : void 0,
102
+ ...p,
103
+ ...A
104
+ },
105
+ !!n && /* @__PURE__ */ t.createElement("title", null, n),
106
+ d,
107
+ h.get(s ?? E)
108
+ );
109
+ }
110
+ );
111
+ a0.displayName = "IconBase";
112
+ const T2 = /* @__PURE__ */ new Map([
113
+ [
114
+ "bold",
115
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Z" }))
116
+ ],
117
+ [
118
+ "duotone",
119
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z" }))
120
+ ],
121
+ [
122
+ "fill",
123
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z" }))
124
+ ],
125
+ [
126
+ "light",
127
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z" }))
128
+ ],
129
+ [
130
+ "regular",
131
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z" }))
132
+ ],
133
+ [
134
+ "thin",
135
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z" }))
136
+ ]
137
+ ]), ke = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: T2 }));
138
+ ke.displayName = "FileIcon";
139
+ const O2 = /* @__PURE__ */ new Map([
140
+ [
141
+ "bold",
142
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M96.59,124.91a12,12,0,0,0-13.08,2.6L63,148H44a12,12,0,0,0-12,12v40a12,12,0,0,0,12,12H63l20.48,20.48A12,12,0,0,0,104,224V136A12,12,0,0,0,96.59,124.91ZM80,195l-3.51-3.52A12,12,0,0,0,68,188H56V172H68a12,12,0,0,0,8.49-3.51L80,165Zm80-15a44.55,44.55,0,0,1-21.95,38.36A12,12,0,1,1,126,197.64a20.51,20.51,0,0,0,0-35.28,12,12,0,1,1,12.1-20.72A44.55,44.55,0,0,1,160,180ZM216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v72a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212H180a12,12,0,0,0,0,24h20a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Z" }))
143
+ ],
144
+ [
145
+ "duotone",
146
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M72,160l24-24v88L72,200H48V160ZM152,32V88h56Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M99.06,128.61a8,8,0,0,0-8.72,1.73L68.69,152H48a8,8,0,0,0-8,8v40a8,8,0,0,0,8,8H68.69l21.65,21.66A8,8,0,0,0,104,224V136A8,8,0,0,0,99.06,128.61ZM88,204.69,77.66,194.34A8,8,0,0,0,72,192H56V168H72a8,8,0,0,0,5.66-2.34L88,155.31ZM152,180a40.55,40.55,0,0,1-20,34.91A8,8,0,0,1,124,201.09a24.49,24.49,0,0,0,0-42.18A8,8,0,0,1,132,145.09,40.55,40.55,0,0,1,152,180Zm61.66-97.66-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v80a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H168a8,8,0,0,0,0,16h32a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Z" }))
147
+ ],
148
+ [
149
+ "fill",
150
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M152,180a40.55,40.55,0,0,1-20,34.91A8,8,0,0,1,124,201.09a24.49,24.49,0,0,0,0-42.18A8,8,0,0,1,132,145.09,40.55,40.55,0,0,1,152,180ZM99.06,128.61a8,8,0,0,0-8.72,1.73L68.69,152H48a8,8,0,0,0-8,8v40a8,8,0,0,0,8,8H68.69l21.65,21.66A8,8,0,0,0,104,224V136A8,8,0,0,0,99.06,128.61ZM216,88V216a16,16,0,0,1-16,16H168a8,8,0,0,1,0-16h32V96H152a8,8,0,0,1-8-8V40H56v80a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Z" }))
151
+ ],
152
+ [
153
+ "light",
154
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M98.3,130.46a6,6,0,0,0-6.54,1.3L69.51,154H48a6,6,0,0,0-6,6v40a6,6,0,0,0,6,6H69.51l22.25,22.24A6,6,0,0,0,102,224V136A6,6,0,0,0,98.3,130.46Zm-8.3,79L76.24,195.76A6,6,0,0,0,72,194H54V166H72a6,6,0,0,0,4.24-1.76L90,150.49ZM150,180a38.53,38.53,0,0,1-19,33.18A6,6,0,0,1,125,202.82a26.5,26.5,0,0,0,0-45.64A6,6,0,0,1,131,146.82,38.53,38.53,0,0,1,150,180Zm62.24-96.24-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v80a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2H168a6,6,0,0,0,0,12h32a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158Z" }))
155
+ ],
156
+ [
157
+ "regular",
158
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M99.06,128.61a8,8,0,0,0-8.72,1.73L68.69,152H48a8,8,0,0,0-8,8v40a8,8,0,0,0,8,8H68.69l21.65,21.66A8,8,0,0,0,104,224V136A8,8,0,0,0,99.06,128.61ZM88,204.69,77.66,194.34A8,8,0,0,0,72,192H56V168H72a8,8,0,0,0,5.66-2.34L88,155.31ZM152,180a40.55,40.55,0,0,1-20,34.91A8,8,0,0,1,124,201.09a24.49,24.49,0,0,0,0-42.18A8,8,0,0,1,132,145.09,40.55,40.55,0,0,1,152,180Zm61.66-97.66-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v80a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H168a8,8,0,0,0,0,16h32a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Z" }))
159
+ ],
160
+ [
161
+ "thin",
162
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M97.53,132.3a4,4,0,0,0-4.36.87L70.34,156H48a4,4,0,0,0-4,4v40a4,4,0,0,0,4,4H70.34l22.83,22.83A4,4,0,0,0,100,224V136A4,4,0,0,0,97.53,132.3Zm-5.53,82L74.83,197.17A4,4,0,0,0,72,196H52V164H72a4,4,0,0,0,2.83-1.17L92,145.66ZM148,180a36.52,36.52,0,0,1-18,31.45,4,4,0,0,1-4-6.9,28.5,28.5,0,0,0,0-49.1,4,4,0,0,1,4-6.9A36.52,36.52,0,0,1,148,180Zm62.83-94.83-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v80a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4H168a4,4,0,0,0,0,8h32a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156Z" }))
163
+ ]
164
+ ]), Pe = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: O2 }));
165
+ Pe.displayName = "FileAudioIcon";
166
+ const $2 = /* @__PURE__ */ new Map([
167
+ [
168
+ "bold",
169
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M180.49,143.51a12,12,0,0,1,0,17l-24,24a12,12,0,0,1-17-17L155,152l-15.52-15.51a12,12,0,1,1,17-17Zm-64-24a12,12,0,0,0-17,0l-24,24a12,12,0,0,0,0,17l24,24a12,12,0,0,0,17-17L101,152l15.52-15.51A12,12,0,0,0,116.49,119.51ZM220,88V216a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88ZM160,57V80h23Zm36,155V104H148a12,12,0,0,1-12-12V44H60V212Z" }))
170
+ ],
171
+ [
172
+ "duotone",
173
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z" }))
174
+ ],
175
+ [
176
+ "fill",
177
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34Zm-104,88a8,8,0,0,1-11.32,11.32l-24-24a8,8,0,0,1,0-11.32l24-24a8,8,0,0,1,11.32,11.32L91.31,152Zm72-12.68-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32l24,24A8,8,0,0,1,181.66,157.66ZM152,88V44l44,44Z" }))
178
+ ],
179
+ [
180
+ "light",
181
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M180.24,147.76a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48-8.48L167.51,152l-19.75-19.76a6,6,0,1,1,8.48-8.48Zm-72-24a6,6,0,0,0-8.48,0l-24,24a6,6,0,0,0,0,8.48l24,24a6,6,0,1,0,8.48-8.48L88.49,152l19.75-19.76A6,6,0,0,0,108.24,123.76ZM214,88V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88Zm-56-6h35.52L158,46.48Zm44,134V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200A2,2,0,0,0,202,216Z" }))
182
+ ],
183
+ [
184
+ "regular",
185
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z" }))
186
+ ],
187
+ [
188
+ "thin",
189
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M178.83,149.17a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66-5.66L170.34,152l-21.17-21.17a4,4,0,1,1,5.66-5.66Zm-72-24a4,4,0,0,0-5.66,0l-24,24a4,4,0,0,0,0,5.66l24,24a4,4,0,1,0,5.66-5.66L85.66,152l21.17-21.17A4,4,0,0,0,106.83,125.17ZM212,88V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-56-4h42.34L156,41.65Zm48,132V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200A4,4,0,0,0,204,216Z" }))
190
+ ]
191
+ ]), Te = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: $2 }));
192
+ Te.displayName = "FileCodeIcon";
193
+ const D2 = /* @__PURE__ */ new Map([
194
+ [
195
+ "bold",
196
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M48,180c0,8.67,5.49,16,12,16a10.27,10.27,0,0,0,7.33-3.43,12,12,0,1,1,17.34,16.6A34,34,0,0,1,60,220C40.15,220,24,202,24,180s16.15-40,36-40a34,34,0,0,1,24.67,10.83,12,12,0,1,1-17.34,16.6A10.27,10.27,0,0,0,60,164C53.49,164,48,171.31,48,180Zm97.51-5.71c-5.13-3.45-11.33-5.24-16.8-6.82a79.5,79.5,0,0,1-7.91-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,143,142a69.24,69.24,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.48,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2,2,0,0,1-.22.71c-1.36,1.55-9.57,1.79-16.39-.06a12,12,0,0,0-6.45,23.11A63.73,63.73,0,0,0,125.09,220c6.47,0,13.74-1.17,19.74-5.15a24.73,24.73,0,0,0,10.95-18C157,187.53,153.32,179.53,145.51,174.27ZM216,140.68A12,12,0,0,0,200.7,148L192,172.3,183.3,148A12,12,0,1,0,160.7,156l20,56a12,12,0,0,0,22.6,0l20-56A12,12,0,0,0,216,140.68ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z" }))
197
+ ],
198
+ [
199
+ "duotone",
200
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M48,180c0,11,7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,85.78,206.4,30.06,30.06,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.57,4.57,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.83-.56A8,8,0,0,0,142,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36A8,8,0,0,0,109.94,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.49,174.17,127.6,171.31Zm83.09-26.84a8,8,0,0,0-10.23,4.84L188,184.21l-12.47-34.9a8,8,0,0,0-15.07,5.38l20,56a8,8,0,0,0,15.07,0l20-56A8,8,0,0,0,210.69,144.47ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z" }))
201
+ ],
202
+ [
203
+ "fill",
204
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H212a4,4,0,0,0,4-4V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44ZM48,180c0,11,7.18,20,16,20a14.18,14.18,0,0,0,10.06-4.5,8.21,8.21,0,0,1,10.9-.91,8,8,0,0,1,.82,11.81A30.06,30.06,0,0,1,64,216c-17.64,0-32-16.15-32-36s14.36-36,32-36a30,30,0,0,1,21.39,9.19,8.26,8.26,0,0,1,.73,11.09,8,8,0,0,1-11.9.38A14.17,14.17,0,0,0,64,160C55.18,160,48,169,48,180Zm103.81,16.31a20.82,20.82,0,0,1-9.19,15.23C137.43,215,131,216,125.13,216A61.14,61.14,0,0,1,110,214a8,8,0,1,1,4.3-15.41c4.38,1.2,14.95,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.56,20.56,0,0,1,9-14.95c11.84-8,30.71-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.09,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C137.49,174.17,154.05,179,151.81,196.31ZM215.42,155l-19.89,55.68a8,8,0,0,1-15.06,0L160.58,155a8.21,8.21,0,0,1,4.5-10.45,8,8,0,0,1,10.45,4.76L188,184.21l12.47-34.9a8,8,0,0,1,10.45-4.76A8.23,8.23,0,0,1,215.42,155Z" }))
205
+ ],
206
+ [
207
+ "light",
208
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M46,180c0,12.13,8.07,22,18,22a16.24,16.24,0,0,0,11.67-5.28,6,6,0,0,1,8.66,8.3A28.06,28.06,0,0,1,64,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,64,158C54.07,158,46,167.86,46,180Zm81.05-6.77c-10.86-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.66-1.82,21.45-.84a6,6,0,0,0,3.06-11.6c-2-.53-20.1-5-31.21,2.48a18.61,18.61,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.78,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,110.48,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C151.84,180.39,136.92,176.08,127.05,173.22Zm83-26.88a6,6,0,0,0-7.67,3.63L188,190.15,173.65,150a6,6,0,1,0-11.3,4l20,56a6,6,0,0,0,11.3,0l20-56A6,6,0,0,0,210,146.34ZM214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.24,1.76l56,56A6,6,0,0,1,214,88Zm-20.49-6L158,46.48V82Z" }))
209
+ ],
210
+ [
211
+ "regular",
212
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M48,180c0,11,7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,85.78,206.4,30.06,30.06,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.57,4.57,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56A8,8,0,0,0,142,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36A8,8,0,0,0,109.94,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.49,174.17,127.6,171.31Zm83.09-26.84a8,8,0,0,0-10.23,4.84L188,184.21l-12.47-34.9a8,8,0,0,0-15.07,5.38l20,56a8,8,0,0,0,15.07,0l20-56A8,8,0,0,0,210.69,144.47ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z" }))
213
+ ],
214
+ [
215
+ "thin",
216
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M44,180c0,13.23,9,24,20,24a18.15,18.15,0,0,0,13.11-5.9,4,4,0,1,1,5.78,5.54A26.11,26.11,0,0,1,64,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a26.11,26.11,0,0,1,18.89,8.36,4,4,0,1,1-5.78,5.54A18.15,18.15,0,0,0,64,156C53,156,44,166.77,44,180Zm82.49-4.85c-10.53-3-15.08-4.91-14.42-10.08a8.51,8.51,0,0,1,3.75-6.49c6.25-4.23,18.77-2.24,23.06-1.11a4,4,0,0,0,2-7.74,61.11,61.11,0,0,0-10.47-1.61c-8.12-.54-14.54.75-19.1,3.82a16.66,16.66,0,0,0-7.22,12.13c-1.58,12.49,10.46,16,20.14,18.77,11.26,3.25,16.47,5.49,15.64,11.94a8.94,8.94,0,0,1-3.91,6.75c-6.27,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.89,57.89,0,0,0,125.19,212c5.18,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C149.64,181.84,136.26,178,126.49,175.15Zm82.85-26.92a4,4,0,0,0-5.11,2.42L188,196.11l-16.23-45.46a4,4,0,1,0-7.54,2.7l20,56a4,4,0,0,0,7.54,0l20-56A4,4,0,0,0,209.34,148.23ZM212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-13.66-4L156,41.65V84Z" }))
217
+ ]
218
+ ]), Oe = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: D2 }));
219
+ Oe.displayName = "FileCsvIcon";
220
+ const _2 = /* @__PURE__ */ new Map([
221
+ [
222
+ "bold",
223
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M48,140H32a12,12,0,0,0-12,12v56a12,12,0,0,0,12,12H48a40,40,0,0,0,0-80Zm0,56H44V164h4a16,16,0,0,1,0,32Zm180.3-3.8a12,12,0,0,1,.37,17A34,34,0,0,1,204,220c-19.85,0-36-17.94-36-40s16.15-40,36-40a34,34,0,0,1,24.67,10.83,12,12,0,0,1-17.34,16.6A10.27,10.27,0,0,0,204,164c-6.5,0-12,7.33-12,16s5.5,16,12,16a10.27,10.27,0,0,0,7.33-3.43A12,12,0,0,1,228.3,192.2ZM128,140c-19.85,0-36,17.94-36,40s16.15,40,36,40,36-17.94,36-40S147.85,140,128,140Zm0,56c-6.5,0-12-7.33-12-16s5.5-16,12-16,12,7.33,12,16S134.5,196,128,196ZM48,120a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88a12,12,0,0,0-3.51-8.48l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68A12,12,0,0,0,48,120ZM160,57l23,23H160Z" }))
224
+ ],
225
+ [
226
+ "duotone",
227
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H52a36,36,0,0,0,0-72Zm0,56H44V160h8a20,20,0,0,1,0,40Zm169.53-4.91a8,8,0,0,1,.25,11.31A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.18,14.18,0,0,0,10.22-4.66A8,8,0,0,1,221.53,195.09ZM128,144c-17.64,0-32,16.15-32,36s14.36,36,32,36,32-16.15,32-36S145.64,144,128,144Zm0,56c-8.82,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.82,200,128,200ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z" }))
228
+ ],
229
+ [
230
+ "fill",
231
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M44,120H212.07a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152.05,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120Zm108-76,44,44h-44ZM52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H51.33C71,216,87.55,200.52,88,180.87A36,36,0,0,0,52,144Zm-.49,56H44V160h8a20,20,0,0,1,20,20.77C71.59,191.59,62.35,200,51.52,200Zm170.67-4.28a8.26,8.26,0,0,1-.73,11.09,30,30,0,0,1-21.4,9.19c-17.65,0-32-16.15-32-36s14.36-36,32-36a30,30,0,0,1,21.4,9.19,8.26,8.26,0,0,1,.73,11.09,8,8,0,0,1-11.9.38A14.21,14.21,0,0,0,200.06,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.25,14.25,0,0,0,10.23-4.66A8,8,0,0,1,222.19,195.72ZM128,144c-17.65,0-32,16.15-32,36s14.37,36,32,36,32-16.15,32-36S145.69,144,128,144Zm0,56c-8.83,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.86,200,128,200Z" }))
232
+ ],
233
+ [
234
+ "light",
235
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z" }))
236
+ ],
237
+ [
238
+ "regular",
239
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H52a36,36,0,0,0,0-72Zm0,56H44V160h8a20,20,0,0,1,0,40Zm169.53-4.91a8,8,0,0,1,.25,11.31A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,221.53,195.09ZM128,144c-17.65,0-32,16.15-32,36s14.35,36,32,36,32-16.15,32-36S145.65,144,128,144Zm0,56c-8.82,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.82,200,128,200ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z" }))
240
+ ],
241
+ [
242
+ "thin",
243
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M52,148H36a4,4,0,0,0-4,4v56a4,4,0,0,0,4,4H52a32,32,0,0,0,0-64Zm0,56H40V156H52a24,24,0,0,1,0,48Zm166.77-6a4,4,0,0,1,.12,5.66A26.11,26.11,0,0,1,200,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a26.11,26.11,0,0,1,18.89,8.36,4,4,0,1,1-5.78,5.54A18.15,18.15,0,0,0,200,156c-11,0-20,10.77-20,24s9,24,20,24a18.15,18.15,0,0,0,13.11-5.9A4,4,0,0,1,218.77,198ZM128,148c-15.44,0-28,14.36-28,32s12.56,32,28,32,28-14.36,28-32S143.44,148,128,148Zm0,56c-11,0-20-10.77-20-24s9-24,20-24,20,10.77,20,24S139,204,128,204ZM48,116a4,4,0,0,0,4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v20a4,4,0,0,0,8,0V88a4,4,0,0,0-1.17-2.83l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72A4,4,0,0,0,48,116ZM156,41.65,198.34,84H156Z" }))
244
+ ]
245
+ ]), $e = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: _2 }));
246
+ $e.displayName = "FileDocIcon";
247
+ const z2 = /* @__PURE__ */ new Map([
248
+ [
249
+ "bold",
250
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M114,145.34a12,12,0,0,0-20,0L79,167.82,72.3,157.73a12,12,0,0,0-20.07.17L13.91,217.51A12,12,0,0,0,24,236H152a12,12,0,0,0,10-18.66ZM46,212,62.5,186.3l6.55,9.81a12,12,0,0,0,20,0l15-22.48L129.58,212ZM216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v84a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212a12,12,0,0,0,0,24h4a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Z" }))
251
+ ],
252
+ [
253
+ "duotone",
254
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
255
+ "path",
256
+ {
257
+ d: "M104,152l48,72H24l36-56,16.36,25.45ZM152,32V88h56Z",
258
+ opacity: "0.2"
259
+ }
260
+ ), /* @__PURE__ */ t.createElement("path", { d: "M110.66,147.56a8,8,0,0,0-13.32,0L76.49,178.85l-9.76-15.18a8,8,0,0,0-13.46,0l-36,56A8,8,0,0,0,24,232H152a8,8,0,0,0,6.66-12.44ZM38.65,216,60,182.79l9.63,15a8,8,0,0,0,13.39.11l21-31.47L137.05,216Zm175-133.66-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v88a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Z" }))
261
+ ],
262
+ [
263
+ "fill",
264
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M158.66,219.56A8,8,0,0,1,152,232H24a8,8,0,0,1-6.73-12.33l36-56a8,8,0,0,1,13.46,0l9.76,15.18,20.85-31.29a8,8,0,0,1,13.32,0ZM216,88V216a16,16,0,0,1-16,16h-8a8,8,0,0,1,0-16h8V96H152a8,8,0,0,1-8-8V40H56v88a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Z" }))
265
+ ],
266
+ [
267
+ "light",
268
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M109,148.67a6,6,0,0,0-10,0L76.46,182.5,65.05,164.76a6,6,0,0,0-10.1,0l-36,56A6,6,0,0,0,24,230H152a6,6,0,0,0,5-9.33ZM35,218l25-38.9,11.32,17.6a6,6,0,0,0,10,.08l22.64-34L140.79,218ZM212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v88a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2h-8a6,6,0,0,0,0,12h8a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158Z" }))
269
+ ],
270
+ [
271
+ "regular",
272
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M110.66,147.56a8,8,0,0,0-13.32,0L76.49,178.85l-9.76-15.18a8,8,0,0,0-13.46,0l-36,56A8,8,0,0,0,24,232H152a8,8,0,0,0,6.66-12.44ZM38.65,216,60,182.79l9.63,15a8,8,0,0,0,13.39.11l21-31.47L137.05,216Zm175-133.66-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v88a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Z" }))
273
+ ],
274
+ [
275
+ "thin",
276
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M107.33,149.78a4,4,0,0,0-6.66,0L76.42,186.15,63.36,165.84a4,4,0,0,0-6.72,0l-36,56A4,4,0,0,0,24,228H152a4,4,0,0,0,3.33-6.22ZM31.33,220,60,175.4l13,20.22a4,4,0,0,0,3.33,1.83,3.93,3.93,0,0,0,3.36-1.78L104,159.21,144.53,220ZM210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v88a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4h-8a4,4,0,0,0,0,8h8a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156Z" }))
277
+ ]
278
+ ]), De = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: z2 }));
279
+ De.displayName = "FileImageIcon";
280
+ const B2 = /* @__PURE__ */ new Map([
281
+ [
282
+ "bold",
283
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M100,152v56a12,12,0,0,1-24,0V190.07l-6.17,8.81a12,12,0,0,1-19.66,0L44,190.07V208a12,12,0,0,1-24,0V152a12,12,0,0,1,21.83-6.88L60,171.07l18.17-25.95A12,12,0,0,1,100,152Zm84,28a40,40,0,0,1-40,40H128a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,184,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,160,180Zm60-92V224a12,12,0,0,1-24,0V104H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88Zm-60-8h23L160,57Z" }))
284
+ ],
285
+ [
286
+ "duotone",
287
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V224a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM144,144H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h16a36,36,0,0,0,0-72Zm0,56h-8V160h8a20,20,0,0,1,0,40Zm-40-48v56a8,8,0,0,1-16,0V177.38L74.55,196.59a8,8,0,0,1-13.1,0L48,177.38V208a8,8,0,0,1-16,0V152a8,8,0,0,1,14.55-4.59L68,178.05l21.45-30.64A8,8,0,0,1,104,152Z" }))
288
+ ],
289
+ [
290
+ "fill",
291
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H196a4,4,0,0,1,4,4V224a8,8,0,0,0,9.19,7.91,8.15,8.15,0,0,0,6.81-8.16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Zm-8,56H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,144,144Zm-.49,56H136V160h8a20,20,0,0,1,20,20.77C163.58,191.59,154.34,200,143.51,200ZM104,152v55.73A8.17,8.17,0,0,1,96.53,216,8,8,0,0,1,88,208V177.38l-13.32,19a8.3,8.3,0,0,1-4.2,3.2,8,8,0,0,1-9-3L48,177.38v30.35A8.17,8.17,0,0,1,40.53,216,8,8,0,0,1,32,208V152.31a8.27,8.27,0,0,1,4.56-7.53,8,8,0,0,1,10,2.63L68,178.05l21.27-30.39a8.28,8.28,0,0,1,8.06-3.55A8,8,0,0,1,104,152Z" }))
292
+ ],
293
+ [
294
+ "light",
295
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V224a6,6,0,0,0,12,0V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM144,146H128a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6h16a34,34,0,0,0,0-68Zm0,56H134V158h10a22,22,0,0,1,0,44Zm-42-50v56a6,6,0,0,1-12,0V171L72.92,195.44a6,6,0,0,1-9.84,0L46,171v37a6,6,0,0,1-12,0V152a6,6,0,0,1,10.92-3.44l23.08,33,23.08-33A6,6,0,0,1,102,152Z" }))
296
+ ],
297
+ [
298
+ "regular",
299
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V224a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM144,144H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h16a36,36,0,0,0,0-72Zm0,56h-8V160h8a20,20,0,0,1,0,40Zm-40-48v56a8,8,0,0,1-16,0V177.38L74.55,196.59a8,8,0,0,1-13.1,0L48,177.38V208a8,8,0,0,1-16,0V152a8,8,0,0,1,14.55-4.59L68,178.05l21.45-30.64A8,8,0,0,1,104,152Z" }))
300
+ ],
301
+ [
302
+ "thin",
303
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V224a4,4,0,0,0,8,0V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM144,148H128a4,4,0,0,0-4,4v56a4,4,0,0,0,4,4h16a32,32,0,0,0,0-64Zm0,56H132V156h12a24,24,0,0,1,0,48Zm-44-52v56a4,4,0,0,1-8,0V164.69l-20.72,29.6a4,4,0,0,1-6.56,0L44,164.69V208a4,4,0,0,1-8,0V152a4,4,0,0,1,7.28-2.29L68,185l24.72-35.31A4,4,0,0,1,100,152Z" }))
304
+ ]
305
+ ]), _e = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: B2 }));
306
+ _e.displayName = "FileMdIcon";
307
+ const W2 = /* @__PURE__ */ new Map([
308
+ [
309
+ "bold",
310
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M200,164v8h12a12,12,0,0,1,0,24H200v12a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h32a12,12,0,0,1,0,24ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm100,8a40,40,0,0,1-40,40H112a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,168,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,144,180ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,57V80h23Z" }))
311
+ ],
312
+ [
313
+ "duotone",
314
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z" }))
315
+ ],
316
+ [
317
+ "fill",
318
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm72,108.53a8.18,8.18,0,0,1-8.25,7.47H192v16h15.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53H192v15.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152.53ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184ZM128,144H112a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,128,144Zm-.49,56H120V160h8a20,20,0,0,1,20,20.77C147.58,191.59,138.34,200,127.51,200Z" }))
319
+ ],
320
+ [
321
+ "light",
322
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z" }))
323
+ ],
324
+ [
325
+ "regular",
326
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z" }))
327
+ ],
328
+ [
329
+ "thin",
330
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M220,152a4,4,0,0,1-4,4H188v24h20a4,4,0,0,1,0,8H188v20a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h32A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm80,8a32,32,0,0,1-32,32H112a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h16A32,32,0,0,1,160,180Zm-8,0a24,24,0,0,0-24-24H116v48h12A24,24,0,0,0,152,180ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z" }))
331
+ ]
332
+ ]), ze = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: W2 }));
333
+ ze.displayName = "FilePdfIcon";
334
+ const j2 = /* @__PURE__ */ new Map([
335
+ [
336
+ "bold",
337
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M232,152a12,12,0,0,1-12,12h-8v44a12,12,0,0,1-24,0V164h-8a12,12,0,0,1,0-24h40A12,12,0,0,1,232,152ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm96,0a32,32,0,0,1-32,32h-4v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h16A32,32,0,0,1,164,172Zm-24,0a8,8,0,0,0-8-8h-4v16h4A8,8,0,0,0,140,172ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,80h23L160,57Z" }))
338
+ ],
339
+ [
340
+ "duotone",
341
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M224,152a8,8,0,0,1-8,8H204v48a8,8,0,0,1-16,0V160H176a8,8,0,0,1,0-16h40A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm84,0a28,28,0,0,1-28,28h-8v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172Zm-16,0a12,12,0,0,0-12-12h-8v24h8A12,12,0,0,0,144,172ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z" }))
342
+ ],
343
+ [
344
+ "fill",
345
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M224,152.53a8.17,8.17,0,0,1-8.25,7.47H204v47.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V160H176.27a8.17,8.17,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h40A8,8,0,0,1,224,152.53ZM92,172.85C91.54,188.08,78.64,200,63.4,200H56v7.73A8.17,8.17,0,0,1,48.53,216,8,8,0,0,1,40,208V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172.85Zm-16-2A12.25,12.25,0,0,0,63.65,160H56v24h8A12,12,0,0,0,76,170.84Zm84,2C159.54,188.08,146.64,200,131.4,200H124v7.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172.85Zm-16-2A12.25,12.25,0,0,0,131.65,160H124v24h8A12,12,0,0,0,144,170.84ZM40,116V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v28a4,4,0,0,1-4,4H44A4,4,0,0,1,40,116ZM152,88h44L152,44Z" }))
346
+ ],
347
+ [
348
+ "light",
349
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M222,152a6,6,0,0,1-6,6H202v50a6,6,0,0,1-12,0V158H176a6,6,0,0,1,0-12h40A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm80,0a26,26,0,0,1-26,26H122v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h16A26,26,0,0,1,158,172Zm-12,0a14,14,0,0,0-14-14H122v28h10A14,14,0,0,0,146,172ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z" }))
350
+ ],
351
+ [
352
+ "regular",
353
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M224,152a8,8,0,0,1-8,8H204v48a8,8,0,0,1-16,0V160H176a8,8,0,0,1,0-16h40A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm84,0a28,28,0,0,1-28,28h-8v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172Zm-16,0a12,12,0,0,0-12-12h-8v24h8A12,12,0,0,0,144,172ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z" }))
354
+ ],
355
+ [
356
+ "thin",
357
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M220,152a4,4,0,0,1-4,4H200v52a4,4,0,0,1-8,0V156H176a4,4,0,0,1,0-8h40A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm76,0a24,24,0,0,1-24,24H120v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h16A24,24,0,0,1,156,172Zm-8,0a16,16,0,0,0-16-16H120v32h12A16,16,0,0,0,148,172ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z" }))
358
+ ]
359
+ ]), Be = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: j2 }));
360
+ Be.displayName = "FilePptIcon";
361
+ const K2 = /* @__PURE__ */ new Map([
362
+ [
363
+ "bold",
364
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z" }))
365
+ ],
366
+ [
367
+ "duotone",
368
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z" }))
369
+ ],
370
+ [
371
+ "fill",
372
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z" }))
373
+ ],
374
+ [
375
+ "light",
376
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z" }))
377
+ ],
378
+ [
379
+ "regular",
380
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z" }))
381
+ ],
382
+ [
383
+ "thin",
384
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z" }))
385
+ ]
386
+ ]), We = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: K2 }));
387
+ We.displayName = "FileTextIcon";
388
+ const G2 = /* @__PURE__ */ new Map([
389
+ [
390
+ "bold",
391
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212a12,12,0,0,0,0,24h4a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Zm-1.91,84.69a12,12,0,0,0-11.92-.15L126.5,152.44A20,20,0,0,0,108,140H48a20,20,0,0,0-20,20v48a20,20,0,0,0,20,20h60a20,20,0,0,0,18.5-12.44l19.67,10.93A12,12,0,0,0,164,216V152A12,12,0,0,0,158.09,141.66ZM104,204H52V164h52Zm36-8.39-12-6.67v-9.88l12-6.67Z" }))
392
+ ],
393
+ [
394
+ "duotone",
395
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
396
+ "path",
397
+ {
398
+ d: "M208,88H152V32Zm-88,72a8,8,0,0,0-8-8H48a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V196l32,20V152l-32,20Z",
399
+ opacity: "0.2"
400
+ }
401
+ ), /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM112,208H48V160h64v48Zm32-6.43-16-10V176.43l16-10Z" }))
402
+ ],
403
+ [
404
+ "fill",
405
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM144,201.57l-16-10V176.43l16-10Z" }))
406
+ ],
407
+ [
408
+ "light",
409
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2h-8a6,6,0,0,0,0,12h8a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158Zm-3.09,100.27a6,6,0,0,0-6.09.16L126,161.17V160a14,14,0,0,0-14-14H48a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h64a14,14,0,0,0,14-14v-1.17l22.82,14.26A6,6,0,0,0,158,216V152A6,6,0,0,0,154.91,146.75ZM114,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V160a2,2,0,0,1,2-2h64a2,2,0,0,1,2,2Zm32-2.83-20-12.5V175.33l20-12.5Z" }))
410
+ ],
411
+ [
412
+ "regular",
413
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM112,208H48V160h64v48Zm32-6.43-16-10V176.43l16-10Z" }))
414
+ ],
415
+ [
416
+ "thin",
417
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4h-8a4,4,0,0,0,0,8h8a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM153.94,148.5a4,4,0,0,0-4.06.11L124,164.78V160a12,12,0,0,0-12-12H48a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12v-4.78l25.88,16.17A4,4,0,0,0,152,220a4.06,4.06,0,0,0,1.94-.5A4,4,0,0,0,156,216V152A4,4,0,0,0,153.94,148.5ZM116,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V160a4,4,0,0,1,4-4h64a4,4,0,0,1,4,4Zm32,.78-24-15V174.22l24-15Z" }))
418
+ ]
419
+ ]), je = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: G2 }));
420
+ je.displayName = "FileVideoIcon";
421
+ const Y2 = /* @__PURE__ */ new Map([
422
+ [
423
+ "bold",
424
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M160,208a12,12,0,0,1-12,12H120a12,12,0,0,1-12-12V152a12,12,0,0,1,24,0v44h16A12,12,0,0,1,160,208ZM91,142.22A12,12,0,0,0,74.24,145L64,159.34,53.77,145a12,12,0,1,0-19.53,14l15,21-15,21A12,12,0,1,0,53.77,215L64,200.62,74.24,215A12,12,0,0,0,93.77,201l-15-21,15-21A12,12,0,0,0,91,142.22Zm122.53,32.05c-5.12-3.45-11.32-5.24-16.79-6.82a79.69,79.69,0,0,1-7.92-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,211,142a69,69,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.49,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2.48,2.48,0,0,1-.21.71c-1.37,1.55-9.58,1.79-16.39-.06a12,12,0,1,0-6.46,23.11A63.75,63.75,0,0,0,193.1,220c6.46,0,13.73-1.17,19.73-5.15a24.73,24.73,0,0,0,10.95-18C225,187.53,221.33,179.53,213.51,174.27ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z" }))
425
+ ],
426
+ [
427
+ "duotone",
428
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M156,208a8,8,0,0,1-8,8H120a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v48h20A8,8,0,0,1,156,208ZM92.65,145.49a8,8,0,0,0-11.16,1.86L68,166.24,54.51,147.35a8,8,0,1,0-13,9.3L58.17,180,41.49,203.35a8,8,0,0,0,13,9.3L68,193.76l13.49,18.89a8,8,0,0,0,13-9.3L77.83,180l16.68-23.35A8,8,0,0,0,92.65,145.49Zm98.94,25.82c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.94c-2,15.89,13.65,20.42,23,23.12,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.15,3.93-4.6,3.06-15.16,1.56-19.54.35A8,8,0,0,0,173.93,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z" }))
429
+ ],
430
+ [
431
+ "fill",
432
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm4,164.53a8.18,8.18,0,0,1-8.25,7.47H120a8,8,0,0,1-8-8V152.27a8.18,8.18,0,0,1,7.47-8.25,8,8,0,0,1,8.53,8v48h20A8,8,0,0,1,156,208.53ZM94.51,156.65,77.83,180l16.68,23.35a8,8,0,0,1-13,9.3L68,193.76,54.51,212.65a8,8,0,1,1-13-9.3L58.17,180,41.49,156.65a8,8,0,0,1,2.3-11.46,8.19,8.19,0,0,1,10.88,2.38L68,166.24l13.49-18.89a8,8,0,0,1,13,9.3Zm121.28,39.66a20.81,20.81,0,0,1-9.18,15.23C201.42,215,194.94,216,189.12,216a60.63,60.63,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.21,14.94,2.71,19.54-.35.89-.6,1.84-1.52,2.15-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58,20.58,0,0,1,8.95-14.94c11.84-8,30.72-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.48-1.17-15.22-2.56-19.82.56a4.54,4.54,0,0,0-2,3.67c-.11.9-.13,1.08,1.12,1.9,2.31,1.49,6.45,2.68,10.45,3.84C201.48,174.17,218,179,215.79,196.31Z" }))
433
+ ],
434
+ [
435
+ "light",
436
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M154,208a6,6,0,0,1-6,6H120a6,6,0,0,1-6-6V152a6,6,0,1,1,12,0v50h22A6,6,0,0,1,154,208ZM91.48,147.11a6,6,0,0,0-8.36,1.39L68,169.67,52.88,148.5a6,6,0,1,0-9.76,7L60.63,180,43.12,204.5a6,6,0,1,0,9.76,7L68,190.31l15.12,21.16A6,6,0,0,0,88,214a5.91,5.91,0,0,0,3.48-1.12,6,6,0,0,0,1.4-8.37L75.37,180l17.51-24.51A6,6,0,0,0,91.48,147.11ZM191,173.22c-10.85-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.65-1.83,21.44-.84a6,6,0,0,0,3.07-11.6c-2-.54-20.1-5-31.21,2.48a18.64,18.64,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.77,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,174.47,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C215.83,180.39,200.91,176.08,191,173.22ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.24,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0ZM158,82H193.5L158,46.48Z" }))
437
+ ],
438
+ [
439
+ "regular",
440
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M156,208a8,8,0,0,1-8,8H120a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v48h20A8,8,0,0,1,156,208ZM92.65,145.49a8,8,0,0,0-11.16,1.86L68,166.24,54.51,147.35a8,8,0,1,0-13,9.3L58.17,180,41.49,203.35a8,8,0,0,0,13,9.3L68,193.76l13.49,18.89a8,8,0,0,0,13-9.3L77.83,180l16.68-23.35A8,8,0,0,0,92.65,145.49Zm98.94,25.82c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.72,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.15,3.93-4.6,3.06-15.16,1.55-19.54.35A8,8,0,0,0,173.93,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z" }))
441
+ ],
442
+ [
443
+ "thin",
444
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M152,208a4,4,0,0,1-4,4H120a4,4,0,0,1-4-4V152a4,4,0,0,1,8,0v52h24A4,4,0,0,1,152,208ZM90.32,148.75a4,4,0,0,0-5.58.92L68,173.12,51.25,149.67a4,4,0,0,0-6.5,4.66L63.08,180,44.75,205.67a4,4,0,0,0,.93,5.58A3.91,3.91,0,0,0,48,212a4,4,0,0,0,3.25-1.67L68,186.88l16.74,23.45A4,4,0,0,0,88,212a3.91,3.91,0,0,0,2.32-.75,4,4,0,0,0,.93-5.58L72.91,180l18.34-25.67A4,4,0,0,0,90.32,148.75Zm100.17,26.4c-10.53-3-15.08-4.91-14.43-10.08a8.57,8.57,0,0,1,3.75-6.49c6.26-4.23,18.77-2.24,23.07-1.11a4,4,0,0,0,2-7.74,61.33,61.33,0,0,0-10.48-1.61c-8.11-.54-14.54.75-19.09,3.82a16.63,16.63,0,0,0-7.22,12.13c-1.59,12.49,10.46,16,20.14,18.77,11.25,3.25,16.46,5.49,15.63,11.94a8.93,8.93,0,0,1-3.9,6.75c-6.28,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.7,57.7,0,0,0,189.19,212c5.17,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C213.63,181.84,200.26,178,190.49,175.15ZM204,92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0Zm-5.65-8L156,41.65V84Z" }))
445
+ ]
446
+ ]), Ke = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: Y2 }));
447
+ Ke.displayName = "FileXlsIcon";
448
+ const X2 = /* @__PURE__ */ new Map([
449
+ [
450
+ "bold",
451
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M188,140H172a12,12,0,0,0-12,12v56a12,12,0,0,0,24,0v-4h4a32,32,0,0,0,0-64Zm0,40h-4V164h4a8,8,0,0,1,0,16Zm-48-28v56a12,12,0,0,1-24,0V152a12,12,0,0,1,24,0ZM96,208a12,12,0,0,1-12,12H52a12,12,0,0,1-10.42-17.95L63.32,164H52a12,12,0,0,1,0-24H84A12,12,0,0,1,94.42,158L72.68,196H84A12,12,0,0,1,96,208ZM216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88A12,12,0,0,0,216.49,79.52ZM160,80V57l23,23Z" }))
452
+ ],
453
+ [
454
+ "duotone",
455
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M184,144H168a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40h-8V160h8a12,12,0,0,1,0,24Zm-48-32v56a8,8,0,0,1-16,0V152a8,8,0,0,1,16,0ZM96,208a8,8,0,0,1-8,8H56a8,8,0,0,1-7-12l25.16-44H56a8,8,0,0,1,0-16H88a8,8,0,0,1,7,12L69.79,200H88A8,8,0,0,1,96,208ZM213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,80V51.31L188.69,80Z" }))
456
+ ],
457
+ [
458
+ "fill",
459
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M184,144H168a8,8,0,0,0-8,8v55.73a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,184,144Zm-.35,40H176V160h8A12,12,0,0,1,196,173.16,12.25,12.25,0,0,1,183.65,184ZM136,152v55.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152.27a8.17,8.17,0,0,1,7.47-8.25A8,8,0,0,1,136,152ZM96,208.53A8.17,8.17,0,0,1,87.73,216H56.23a8.27,8.27,0,0,1-6-2.5A8,8,0,0,1,49.05,204l25.16-44H56.27A8.17,8.17,0,0,1,48,152.53,8,8,0,0,1,56,144H87.77a8.27,8.27,0,0,1,6,2.5A8,8,0,0,1,95,156L69.79,200H88A8,8,0,0,1,96,208.53ZM213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H212a4,4,0,0,0,4-4V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z" }))
460
+ ],
461
+ [
462
+ "light",
463
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M184,146H168a6,6,0,0,0-6,6v56a6,6,0,0,0,12,0V198h10a26,26,0,0,0,0-52Zm0,40H174V158h10a14,14,0,0,1,0,28Zm-50-34v56a6,6,0,0,1-12,0V152a6,6,0,0,1,12,0ZM94,208a6,6,0,0,1-6,6H56a6,6,0,0,1-5.21-9l26.87-47H56a6,6,0,0,1,0-12H88a6,6,0,0,1,5.21,9L66.34,202H88A6,6,0,0,1,94,208ZM212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88A6,6,0,0,0,212.24,83.76ZM158,82V46.48L193.52,82Z" }))
464
+ ],
465
+ [
466
+ "regular",
467
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M184,144H168a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40h-8V160h8a12,12,0,0,1,0,24Zm-48-32v56a8,8,0,0,1-16,0V152a8,8,0,0,1,16,0ZM96,208a8,8,0,0,1-8,8H56a8,8,0,0,1-7-12l25.16-44H56a8,8,0,0,1,0-16H88a8,8,0,0,1,7,12L69.79,200H88A8,8,0,0,1,96,208ZM213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,80V51.31L188.69,80Z" }))
468
+ ],
469
+ [
470
+ "thin",
471
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M184,148H168a4,4,0,0,0-4,4v56a4,4,0,0,0,8,0V196h12a24,24,0,0,0,0-48Zm0,40H172V156h12a16,16,0,0,1,0,32Zm-52-36v56a4,4,0,0,1-8,0V152a4,4,0,0,1,8,0Zm-40.53,2L62.89,204H88a4,4,0,0,1,0,8H56a4,4,0,0,1-3.47-6l28.58-50H56a4,4,0,0,1,0-8H88a4,4,0,0,1,3.47,6ZM210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v20a4,4,0,0,0,8,0V88A4,4,0,0,0,210.83,85.17ZM156,84V41.65L198.34,84Z" }))
472
+ ]
473
+ ]), Ge = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: X2 }));
474
+ Ge.displayName = "FileZipIcon";
475
+ const U2 = {
71
476
  icon: { light: "#6a7282", dark: "#99a1af" },
72
477
  iconSelected: { light: "#1447e6", dark: "#51a2ff" },
73
478
  checkedRing: { light: "#155dfc", dark: "#51a2ff" }
74
- }, Yo = {
479
+ }, l8 = {
75
480
  markdown: { light: "#0084d1", dark: "#00bcff" },
76
481
  pdf: { light: "#e7000b", dark: "#ff6467" },
77
482
  spreadsheet: { light: "#007a55", dark: "#00d492" },
@@ -83,8 +488,8 @@ const Ar = /* @__PURE__ */ ae.forwardRef(Dr), _r = {
83
488
  video: { light: "#7f22fe", dark: "#a684ff" },
84
489
  archive: { light: "#bb4d00", dark: "#ffb900" },
85
490
  code: { light: "#9810fa", dark: "#c27aff" },
86
- text: _r.icon
87
- }, _n = "#71829b", oe = {
491
+ text: U2.icon
492
+ }, Ye = "#71829b", o0 = {
88
493
  rowHover: "hover:bg-[color:light-dark(#f3f4f6,#1e2939)]",
89
494
  rowSelected: "bg-[color:light-dark(#eff6ff,#162456)]",
90
495
  checkedRing: "inset-ring-1 inset-ring-[color:light-dark(#155dfc,#51a2ff)]",
@@ -93,7 +498,7 @@ const Ar = /* @__PURE__ */ ae.forwardRef(Dr), _r = {
93
498
  gridEdge: "text-[color:light-dark(#4a5565,#d1d5dc)]",
94
499
  icon: "text-[color:light-dark(#6a7282,#99a1af)]",
95
500
  iconSelected: "text-[color:light-dark(#1447e6,#51a2ff)]"
96
- }, ie = {
501
+ }, s0 = {
97
502
  markdown: "text-[color:light-dark(#0084d1,#00bcff)]",
98
503
  pdf: "text-[color:light-dark(#e7000b,#ff6467)]",
99
504
  spreadsheet: "text-[color:light-dark(#007a55,#00d492)]",
@@ -106,63 +511,63 @@ const Ar = /* @__PURE__ */ ae.forwardRef(Dr), _r = {
106
511
  archive: "text-[color:light-dark(#bb4d00,#ffb900)]",
107
512
  code: "text-[color:light-dark(#9810fa,#c27aff)]",
108
513
  text: "text-[color:light-dark(#6a7282,#99a1af)]"
109
- }, zn = "text-[length:var(--dt-font-size-body,0.8125rem)]", zr = `${zn} leading-[max(var(--dt-line-height-body,1.25rem),1.5em)]`, Tt = 44, Fr = 12, $r = 8, se = 14, Mr = 14, Fn = (e) => e === void 0 ? void 0 : { fontSize: typeof e == "number" ? `${e}px` : e }, ee = (e) => ({ width: e, height: e }), T = {
514
+ }, Xe = "text-[length:var(--dt-font-size-body,0.8125rem)]", J2 = `${Xe} leading-[max(var(--dt-line-height-body,1.25rem),1.5em)]`, x1 = 44, q2 = 12, Q2 = 8, c0 = 14, et = 14, Ue = (e) => e === void 0 ? void 0 : { fontSize: typeof e == "number" ? `${e}px` : e }, t0 = (e) => ({ width: e, height: e }), x = {
110
515
  container: "directory-tree-container relative h-full overflow-y-hidden pb-[3px] pr-[2px]",
111
516
  // 保留中も薄めない。薄めた文字と印は地と混ざり、配色表の組の対比 (文字 7:1・印 3:1) を割る
112
517
  containerPending: "cursor-progress",
113
518
  // 行は itemHeight の固定の箱で中身を縦の中央に置くため、上下の詰め物は行の高さを中身から奪うだけになる
114
519
  // (行の中に置いたホストのボタンが行の高さいっぱいの的にならない)
115
- entry: `directory-tree-entry flex items-center cursor-pointer relative select-none ${zr}`,
116
- entryHover: `directory-tree-entry--hover ${oe.rowHover}`,
117
- entrySelected: `directory-tree-entry--selected ${oe.rowSelected}`,
520
+ entry: `directory-tree-entry flex items-center cursor-pointer relative select-none ${J2}`,
521
+ entryHover: `directory-tree-entry--hover ${o0.rowHover}`,
522
+ entrySelected: `directory-tree-entry--selected ${o0.rowSelected}`,
118
523
  // 輪は行の内側に描く。外側の輪は、後に描く隣の行の不透明な地 (ホバーや選択) に覆われる
119
- entryItemSelected: `directory-tree-entry--item-selected ${oe.rowSelected} ${oe.checkedRing}`,
524
+ entryItemSelected: `directory-tree-entry--item-selected ${o0.rowSelected} ${o0.checkedRing}`,
120
525
  // 箱の大きさはクラスでなく EXPAND_BOX_SIZE から行が付ける (ツリーラインのジオメトリが印を置く箱と同じ値を読むため)
121
- expandIcon: `directory-tree-expand-icon flex-shrink-0 flex items-center justify-center ${oe.icon}`,
122
- expandIconSelected: `directory-tree-expand-icon--selected ${oe.iconSelected}`,
526
+ expandIcon: `directory-tree-expand-icon flex-shrink-0 flex items-center justify-center ${o0.icon}`,
527
+ expandIconSelected: `directory-tree-expand-icon--selected ${o0.iconSelected}`,
123
528
  // 箱の大きさはクラスでなく visual.typeIconSize から行が付ける (ツリーラインのジオメトリと同じ値を読むため)
124
- typeIcon: `directory-tree-type-icon flex-shrink-0 flex items-center justify-center ${oe.icon}`,
125
- typeIconSelected: `directory-tree-type-icon--selected ${oe.iconSelected}`,
529
+ typeIcon: `directory-tree-type-icon flex-shrink-0 flex items-center justify-center ${o0.icon}`,
530
+ typeIconSelected: `directory-tree-type-icon--selected ${o0.iconSelected}`,
126
531
  // 文字の行の高さ (line-height) は行 (entry) の body の行を受け継ぐため、名前には文字の大きさだけを付ける
127
- name: `directory-tree-name overflow-hidden text-ellipsis whitespace-nowrap ml-1 ${zn} font-normal ${oe.name}`,
532
+ name: `directory-tree-name overflow-hidden text-ellipsis whitespace-nowrap ml-1 ${Xe} font-normal ${o0.name}`,
128
533
  nameDirectory: "directory-tree-name--directory font-medium",
129
- nameSelected: `directory-tree-name--selected font-semibold ${oe.nameSelected}`
130
- }, Ft = (e) => {
131
- const t = e.slice(e.lastIndexOf("/") + 1), n = t.lastIndexOf(".");
132
- return n <= 0 ? "" : t.slice(n + 1).toLowerCase();
133
- }, Hr = /^[a-z][a-z\d+.-]*:\/\//i, xn = (e) => Ft(Hr.test(e) ? e.split(/[?#]/, 1)[0] : e), $n = (e) => Ft(e.name) || xn(e.relativePath) || xn(e.absolutePath), Mn = ({ isDirectory: e, isExpanded: t, showExpandIcons: n, useCanvasExpandIcons: r, expandIconSize: s }) => {
134
- const a = s ? { width: s, height: s } : void 0, i = s ? "" : "h-4 w-4";
135
- return !(n && e) || r ? /* @__PURE__ */ u("span", { className: i, style: a, "aria-hidden": "true" }) : t ? /* @__PURE__ */ u(Tr, { className: i, style: a }) : /* @__PURE__ */ u(Lr, { className: i, style: a });
136
- }, Lt = (e, t) => {
534
+ nameSelected: `directory-tree-name--selected font-semibold ${o0.nameSelected}`
535
+ }, O1 = (e) => {
536
+ const a = e.slice(e.lastIndexOf("/") + 1), n = a.lastIndexOf(".");
537
+ return n <= 0 ? "" : a.slice(n + 1).toLowerCase();
538
+ }, tt = /^[a-z][a-z\d+.-]*:\/\//i, Ee = (e) => O1(tt.test(e) ? e.split(/[?#]/, 1)[0] : e), Je = (e) => O1(e.name) || Ee(e.relativePath) || Ee(e.absolutePath), qe = ({ isDirectory: e, isExpanded: a, showExpandIcons: n, useCanvasExpandIcons: r, expandIconSize: o }) => {
539
+ const s = o ? { width: o, height: o } : void 0, c = o ? "" : "h-4 w-4";
540
+ return !(n && e) || r ? /* @__PURE__ */ m("span", { className: c, style: s, "aria-hidden": "true" }) : a ? /* @__PURE__ */ m(x2, { className: c, style: s }) : /* @__PURE__ */ m(N2, { className: c, style: s });
541
+ }, N1 = (e, a) => {
137
542
  if (e == null || typeof e == "boolean") return null;
138
543
  if (typeof e == "function")
139
- return console.warn(`[DirectoryTree] Function returned by renderer for "${t}". Return a node.`), null;
544
+ return console.warn(`[DirectoryTree] Function returned by renderer for "${a}". Return a node.`), null;
140
545
  if (typeof e == "object") {
141
546
  if ("then" in e)
142
- return console.warn(`[DirectoryTree] Promise returned for "${t}". Not supported.`), null;
547
+ return console.warn(`[DirectoryTree] Promise returned for "${a}". Not supported.`), null;
143
548
  if (Array.isArray(e)) {
144
- const r = e.map((s) => Lt(s, t)).filter(Boolean);
549
+ const r = e.map((o) => N1(o, a)).filter(Boolean);
145
550
  return r.length ? r : null;
146
551
  }
147
552
  const n = e.type;
148
553
  if (n && n.$$typeof === /* @__PURE__ */ Symbol.for("react.lazy"))
149
- return console.warn(`[DirectoryTree] Lazy component for "${t}". Not supported.`), null;
554
+ return console.warn(`[DirectoryTree] Lazy component for "${a}". Not supported.`), null;
150
555
  }
151
556
  return e;
152
- }, Br = {
153
- markdown: (e) => /* @__PURE__ */ u(Cr, { className: ie.markdown, style: ee(e) }),
154
- pdf: (e) => /* @__PURE__ */ u(kr, { className: ie.pdf, style: ee(e) }),
155
- spreadsheet: (e) => /* @__PURE__ */ u(Rr, { className: ie.spreadsheet, style: ee(e) }),
156
- csv: (e) => /* @__PURE__ */ u(Nr, { className: ie.csv, style: ee(e) }),
157
- document: (e) => /* @__PURE__ */ u(xr, { className: ie.document, style: ee(e) }),
158
- presentation: (e) => /* @__PURE__ */ u(Er, { className: ie.presentation, style: ee(e) }),
159
- image: (e) => /* @__PURE__ */ u(Ir, { className: ie.image, style: ee(e) }),
160
- audio: (e) => /* @__PURE__ */ u(wr, { className: ie.audio, style: ee(e) }),
161
- video: (e) => /* @__PURE__ */ u(vr, { className: ie.video, style: ee(e) }),
162
- archive: (e) => /* @__PURE__ */ u(Sr, { className: ie.archive, style: ee(e) }),
163
- code: (e) => /* @__PURE__ */ u(br, { className: ie.code, style: ee(e) }),
164
- text: (e) => /* @__PURE__ */ u(gr, { className: ie.text, style: ee(e) })
165
- }, Wr = {
557
+ }, at = {
558
+ markdown: (e) => /* @__PURE__ */ m(_e, { className: s0.markdown, style: t0(e) }),
559
+ pdf: (e) => /* @__PURE__ */ m(ze, { className: s0.pdf, style: t0(e) }),
560
+ spreadsheet: (e) => /* @__PURE__ */ m(Ke, { className: s0.spreadsheet, style: t0(e) }),
561
+ csv: (e) => /* @__PURE__ */ m(Oe, { className: s0.csv, style: t0(e) }),
562
+ document: (e) => /* @__PURE__ */ m($e, { className: s0.document, style: t0(e) }),
563
+ presentation: (e) => /* @__PURE__ */ m(Be, { className: s0.presentation, style: t0(e) }),
564
+ image: (e) => /* @__PURE__ */ m(De, { className: s0.image, style: t0(e) }),
565
+ audio: (e) => /* @__PURE__ */ m(Pe, { className: s0.audio, style: t0(e) }),
566
+ video: (e) => /* @__PURE__ */ m(je, { className: s0.video, style: t0(e) }),
567
+ archive: (e) => /* @__PURE__ */ m(Ge, { className: s0.archive, style: t0(e) }),
568
+ code: (e) => /* @__PURE__ */ m(Te, { className: s0.code, style: t0(e) }),
569
+ text: (e) => /* @__PURE__ */ m(We, { className: s0.text, style: t0(e) })
570
+ }, nt = {
166
571
  markdown: ["md", "markdown", "mdx"],
167
572
  pdf: ["pdf"],
168
573
  spreadsheet: ["xls", "xlsx", "xlsm", "xlsb", "ods"],
@@ -175,7 +580,7 @@ const Ar = /* @__PURE__ */ ae.forwardRef(Dr), _r = {
175
580
  archive: ["zip", "tar", "gz", "7z", "rar", "tgz", "bz2"],
176
581
  code: ["js", "mjs", "cjs", "ts", "tsx", "jsx", "json", "html", "htm", "css", "scss", "py", "go", "rs", "c", "cpp", "h", "hpp", "sh", "bash", "yaml", "yml", "sql", "xml", "toml"],
177
582
  text: ["txt", "log"]
178
- }, jr = new Map(Object.entries(Wr).flatMap(([e, t]) => t.map((n) => [n, e]))), Kr = /* @__PURE__ */ new Set(["", "application/octet-stream", "binary/octet-stream", "text/plain", "application/x-empty"]), Gr = (e) => (e ?? "").split(";", 1)[0].trim().toLowerCase(), Yr = (e) => {
583
+ }, rt = new Map(Object.entries(nt).flatMap(([e, a]) => a.map((n) => [n, e]))), lt = /* @__PURE__ */ new Set(["", "application/octet-stream", "binary/octet-stream", "text/plain", "application/x-empty"]), ot = (e) => (e ?? "").split(";", 1)[0].trim().toLowerCase(), ct = (e) => {
179
584
  if (e === "text/markdown" || e === "text/x-markdown") return "markdown";
180
585
  if (e === "application/pdf") return "pdf";
181
586
  if (e.includes("excel") || e.includes("spreadsheet")) return "spreadsheet";
@@ -189,21 +594,21 @@ const Ar = /* @__PURE__ */ ae.forwardRef(Dr), _r = {
189
594
  if (e === "application/json" || e.includes("javascript") || e.includes("typescript") || e.includes("xml") || e.startsWith("text/html") || e.startsWith("text/css") || e.includes("x-python") || e.includes("x-sh") || e.includes("x-go") || e.includes("x-rust"))
190
595
  return "code";
191
596
  if (e.startsWith("text/")) return "text";
192
- }, Xr = (e, t, n, r) => {
193
- const s = Gr(e), a = Yr(s), i = jr.get((t || (n ? Ft(n) : "")).toLowerCase()), d = (Kr.has(s) ? [i, a] : [a, i]).find((y) => y !== void 0);
194
- return d === void 0 ? /* @__PURE__ */ u(yr, { className: oe.icon, style: ee(r) }) : Br[d](r);
195
- }, Hn = (e, t, n) => {
196
- const { entry: r, isDirectory: s, isExpanded: a, extension: i, mimeType: c } = e;
197
- let d;
198
- const y = c || r.mimeType;
199
- return r.icon !== void 0 ? d = r.icon : s ? d = a && t?.directoryExpanded || t?.directory || /* @__PURE__ */ u(Ar, { style: ee(n) }) : i && t?.fileByExtension?.[i] ? d = t.fileByExtension[i] : d = t?.file || Xr(y, i, r.name, n), Lt(typeof d == "function" ? d(e) : d, r.absolutePath);
200
- }, Vr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Bn = (e) => {
597
+ }, st = (e, a, n, r) => {
598
+ const o = ot(e), s = ct(o), c = rt.get((a || (n ? O1(n) : "")).toLowerCase()), h = (lt.has(o) ? [c, s] : [s, c]).find((A) => A !== void 0);
599
+ return h === void 0 ? /* @__PURE__ */ m(ke, { className: o0.icon, style: t0(r) }) : at[h](r);
600
+ }, Qe = (e, a, n) => {
601
+ const { entry: r, isDirectory: o, isExpanded: s, extension: c, mimeType: d } = e;
602
+ let h;
603
+ const A = d || r.mimeType;
604
+ return r.icon !== void 0 ? h = r.icon : o ? h = s && a?.directoryExpanded || a?.directory || /* @__PURE__ */ m(k2, { style: t0(n) }) : c && a?.fileByExtension?.[c] ? h = a.fileByExtension[c] : h = a?.file || st(A, c, r.name, n), N1(typeof h == "function" ? h(e) : h, r.absolutePath);
605
+ }, it = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), e2 = (e) => {
201
606
  if (!e)
202
607
  return;
203
- const t = Object.entries(e).filter(([, n]) => n != null);
204
- if (t.length !== 0)
205
- return Object.fromEntries(t.map(([n, r]) => [`data-${Vr(n)}`, String(r)]));
206
- }, Ur = [
608
+ const a = Object.entries(e).filter(([, n]) => n != null);
609
+ if (a.length !== 0)
610
+ return Object.fromEntries(a.map(([n, r]) => [`data-${it(n)}`, String(r)]));
611
+ }, dt = [
207
612
  // 塗り: 箱の大きさと位置を変えずに行の面・縁・指す形だけを描く (アウトラインと影は箱の外に描かれ、場所を取らない)
208
613
  "color",
209
614
  "background",
@@ -250,160 +655,160 @@ const Ar = /* @__PURE__ */ ae.forwardRef(Dr), _r = {
250
655
  "textDecorationThickness",
251
656
  "textUnderlineOffset",
252
657
  "textTransform"
253
- ], Jr = ["color", "opacity"], Zr = "the row's box belongs to the tree (height: visual.itemHeight, indent: visual.indentSize, icons: visual.typeIconSize, text size: visual.fontSize)", qr = new Set(Ur), Qr = new Set(Jr), Nn = (e, t) => {
254
- const n = t === void 0 ? e.option : `${e.option}.${t}`;
658
+ ], ht = ["color", "opacity"], ut = "the row's box belongs to the tree (height: visual.itemHeight, indent: visual.indentSize, icons: visual.typeIconSize, text size: visual.fontSize)", mt = new Set(dt), ft = new Set(ht), we = (e, a) => {
659
+ const n = a === void 0 ? e.option : `${e.option}.${a}`;
255
660
  return e.absolutePath === void 0 ? n : `${n} of "${e.absolutePath}"`;
256
- }, Wn = (e, t, n, r) => {
661
+ }, t2 = (e, a, n, r) => {
257
662
  if (e !== void 0) {
258
663
  if (typeof e != "object" || e === null)
259
- throw new RangeError(`${Nn(n, void 0)} must be an object of CSS properties or undefined, got ${e === null ? "null" : typeof e}.`);
260
- for (const [s, a] of Object.entries(e))
261
- if (a !== void 0 && !t.has(s))
262
- throw new RangeError(`${Nn(n, s)} cannot be set: ${Zr}, so ${r}.`);
664
+ throw new RangeError(`${we(n, void 0)} must be an object of CSS properties or undefined, got ${e === null ? "null" : typeof e}.`);
665
+ for (const [o, s] of Object.entries(e))
666
+ if (s !== void 0 && !a.has(o))
667
+ throw new RangeError(`${we(n, o)} cannot be set: ${ut}, so ${r}.`);
263
668
  }
264
- }, Ge = (e, t) => Wn(e, qr, t, "a row style accepts only paint and text properties (ROW_STYLE_PROPERTIES)"), eo = (e, t) => Wn(e, Qr, t, "the expand icon style accepts only the glyph's colour and opacity (EXPAND_ICON_STYLE_PROPERTIES), and the 14 px expand box is the tree's"), to = 500, jn = ({ entry: e, isDirectory: t, isExpanded: n, isItemSelected: r, selectionMode: s, onSelectionChange: a, onEntryClick: i, toggleDirectory: c, onToggleDirectoryRecursive: d }) => {
265
- const y = H(null);
266
- return Ae(
669
+ }, K0 = (e, a) => t2(e, mt, a, "a row style accepts only paint and text properties (ROW_STYLE_PROPERTIES)"), pt = (e, a) => t2(e, ft, a, "the expand icon style accepts only the glyph's colour and opacity (EXPAND_ICON_STYLE_PROPERTIES), and the 14 px expand box is the tree's"), At = 500, a2 = ({ entry: e, isDirectory: a, isExpanded: n, isItemSelected: r, selectionMode: o, onSelectionChange: s, onEntryClick: c, toggleDirectory: d, onToggleDirectoryRecursive: h }) => {
670
+ const A = _(null);
671
+ return k0(
267
672
  () => () => {
268
- y.current && window.clearTimeout(y.current);
673
+ A.current && window.clearTimeout(A.current);
269
674
  },
270
675
  []
271
- ), E(
272
- (N) => {
273
- N.stopPropagation(), s !== "none" && !t && a && a(e, !r);
274
- let w = !1;
275
- i({
676
+ ), b(
677
+ (M) => {
678
+ M.stopPropagation(), o !== "none" && !a && s && s(e, !r);
679
+ let Z = !1;
680
+ c({
276
681
  entry: e,
277
- isDirectory: t,
682
+ isDirectory: a,
278
683
  isExpanded: n,
279
684
  preventDefault: () => {
280
- w = !0;
685
+ Z = !0;
281
686
  }
282
- }), !(!t || w) && (y.current ? (window.clearTimeout(y.current), y.current = null, d(e)) : y.current = window.setTimeout(() => {
283
- c(e.absolutePath), y.current = null;
284
- }, to));
687
+ }), !(!a || Z) && (A.current ? (window.clearTimeout(A.current), A.current = null, h(e)) : A.current = window.setTimeout(() => {
688
+ d(e.absolutePath), A.current = null;
689
+ }, At));
285
690
  },
286
- [t, e, n, d, c, i, s, a, r]
691
+ [a, e, n, h, d, c, o, s, r]
287
692
  );
288
- }, Kn = (e) => e === "right" ? "dt-grid-cell--right" : e === "center" ? "dt-grid-cell--center" : "", Rn = (e, t) => e.children !== void 0 && t(e.absolutePath), Gn = (e, t) => ({
693
+ }, n2 = (e) => e === "right" ? "dt-grid-cell--right" : e === "center" ? "dt-grid-cell--center" : "", be = (e, a) => e.children !== void 0 && a(e.absolutePath), r2 = (e, a) => ({
289
694
  width: e,
290
- gridTemplateColumns: t
291
- }), Yn = zt(
695
+ gridTemplateColumns: a
696
+ }), l2 = T1(
292
697
  ({
293
698
  entry: e,
294
- indentLevel: t,
699
+ indentLevel: a,
295
700
  positionInSet: n,
296
701
  setSize: r,
297
- rowIndex: s,
298
- flatIndex: a,
299
- onRowFocus: i,
300
- onRowBlur: c,
301
- isSelectedForAria: d,
302
- rowHeight: y,
303
- isDirOpen: N,
304
- columns: w,
305
- numericTemplate: R,
306
- numericTotal: f,
307
- nameWidth: m,
308
- rowClassName: h,
309
- selection: { onEntryClick: S, selectedPath: b, currentPath: z, mode: x = "none", selectedItems: k, onSelectionChange: p },
310
- expansion: { toggleDirectory: L, onToggleDirectoryRecursive: D },
311
- visual: { iconOverrides: P, showExpandIcons: le = !0, showDirectoryIcons: J = !0, showFileIcons: $ = !0, useCanvasExpandIcons: Y = !1, expandIconSize: be, typeIconSize: B, fontSize: ue, indentSize: Se, highlightStyles: Z, expandIconClassName: q, expandIconStyle: _e }
702
+ rowIndex: o,
703
+ flatIndex: s,
704
+ onRowFocus: c,
705
+ onRowBlur: d,
706
+ isSelectedForAria: h,
707
+ rowHeight: A,
708
+ isDirOpen: M,
709
+ columns: Z,
710
+ numericTemplate: E,
711
+ numericTotal: u,
712
+ nameWidth: p,
713
+ rowClassName: f,
714
+ selection: { onEntryClick: V, selectedPath: H, currentPath: T, mode: S = "none", selectedItems: L, onSelectionChange: v },
715
+ expansion: { toggleDirectory: N, onToggleDirectoryRecursive: R },
716
+ visual: { iconOverrides: C, showExpandIcons: i0 = !0, showDirectoryIcons: J = !0, showFileIcons: $ = !0, useCanvasExpandIcons: G = !1, expandIconSize: H0, typeIconSize: z, fontSize: u0, indentSize: V0, highlightStyles: q, expandIconClassName: Q, expandIconStyle: P0 }
312
717
  }) => {
313
- Ge(e.style, { option: "entry.style", absolutePath: e.absolutePath });
314
- const [Re, ke] = de(!1), A = e.children !== void 0, te = A && N(e.absolutePath), M = e.absolutePath === b, Ye = e.absolutePath === z, I = !A && !!k?.has(e.absolutePath), ze = A ? void 0 : $n(e), ve = jn({ entry: e, isDirectory: A, isExpanded: te, isItemSelected: I, selectionMode: x, onSelectionChange: p, onEntryClick: S, toggleDirectory: L, onToggleDirectoryRecursive: D }), Ce = Re ? Z?.hoverClassName !== void 0 ? Z.hoverClassName : T.entryHover : "", Fe = (() => {
315
- if (A) {
316
- if (M) return Z?.directorySelectedClassName !== void 0 ? Z.directorySelectedClassName : T.entrySelected;
317
- } else if (M || I)
318
- return Z?.itemSelectedClassName !== void 0 ? Z.itemSelectedClassName : j(M && T.entrySelected, I && T.entryItemSelected);
718
+ K0(e.style, { option: "entry.style", absolutePath: e.absolutePath });
719
+ const [S0, L0] = h0(!1), k = e.children !== void 0, n0 = k && M(e.absolutePath), D = e.absolutePath === H, G0 = e.absolutePath === T, w = !k && !!L?.has(e.absolutePath), T0 = k ? void 0 : Je(e), Z0 = a2({ entry: e, isDirectory: k, isExpanded: n0, isItemSelected: w, selectionMode: S, onSelectionChange: v, onEntryClick: V, toggleDirectory: N, onToggleDirectoryRecursive: R }), I0 = S0 ? q?.hoverClassName !== void 0 ? q.hoverClassName : x.entryHover : "", O0 = (() => {
720
+ if (k) {
721
+ if (D) return q?.directorySelectedClassName !== void 0 ? q.directorySelectedClassName : x.entrySelected;
722
+ } else if (D || w)
723
+ return q?.itemSelectedClassName !== void 0 ? q.itemSelectedClassName : W(D && x.entrySelected, w && x.entryItemSelected);
319
724
  return "";
320
- })(), C = typeof h == "function" ? h(e) : h, he = j("dt-grid-row cursor-pointer select-none", Ce, Fe, C, e.className), K = j(T.expandIcon, q, (M || I) && T.expandIconSelected), $e = j(T.typeIcon, (M || I) && T.typeIconSelected), Q = j("dt-grid-name-label ml-1", oe.name, A && T.nameDirectory, (M || I) && T.nameSelected), X = Mn({ isDirectory: A, isExpanded: te, showExpandIcons: le, useCanvasExpandIcons: Y, expandIconSize: be }), ne = (A ? J : $) ? Hn({ entry: e, isDirectory: A, isExpanded: te, isSelected: M, isItemSelected: I, extension: ze, mimeType: e.mimeType }, P, B) : null, we = { indentLevel: t, isDirectory: A, isExpanded: te }, [me, ...Pe] = w, pe = me?.render ? me.render(e, we) : e.label ?? e.name, Xe = {
321
- ...Re ? Z?.hoverStyle : {},
322
- ...A && M ? Z?.directorySelectedStyle : {},
323
- ...!A && (M || I) ? Z?.itemSelectedStyle : {}
725
+ })(), I = typeof f == "function" ? f(e) : f, m0 = W("dt-grid-row cursor-pointer select-none", I0, O0, I, e.className), j = W(x.expandIcon, Q, (D || w) && x.expandIconSelected), $0 = W(x.typeIcon, (D || w) && x.typeIconSelected), e0 = W("dt-grid-name-label ml-1", o0.name, k && x.nameDirectory, (D || w) && x.nameSelected), Y = qe({ isDirectory: k, isExpanded: n0, showExpandIcons: i0, useCanvasExpandIcons: G, expandIconSize: H0 }), r0 = (k ? J : $) ? Qe({ entry: e, isDirectory: k, isExpanded: n0, isSelected: D, isItemSelected: w, extension: T0, mimeType: e.mimeType }, C, z) : null, y0 = { indentLevel: a, isDirectory: k, isExpanded: n0 }, [p0, ...C0] = Z, A0 = p0?.render ? p0.render(e, y0) : e.label ?? e.name, Y0 = {
726
+ ...S0 ? q?.hoverStyle : {},
727
+ ...k && D ? q?.directorySelectedStyle : {},
728
+ ...!k && (D || w) ? q?.itemSelectedStyle : {}
324
729
  };
325
- return /* @__PURE__ */ Ne(
730
+ return /* @__PURE__ */ b0(
326
731
  "div",
327
732
  {
328
- className: he,
329
- style: { ...Xe, ...e.style, height: y },
733
+ className: m0,
734
+ style: { ...Y0, ...e.style, height: A },
330
735
  role: "row",
331
- "aria-expanded": A ? te : void 0,
332
- "aria-level": t + 1,
736
+ "aria-expanded": k ? n0 : void 0,
737
+ "aria-level": a + 1,
333
738
  "aria-posinset": n,
334
739
  "aria-setsize": r,
335
- "aria-rowindex": s,
336
- "aria-selected": x === "none" ? void 0 : d,
337
- "aria-current": Ye ? "page" : void 0,
338
- ...Bn(e.data),
339
- "data-entry-type": A ? "directory" : "file",
340
- "data-entry-expanded": A ? String(te) : void 0,
341
- "data-entry-selected": M ? "true" : void 0,
342
- "data-entry-item-selected": I ? "true" : void 0,
343
- onClick: ve,
344
- onMouseEnter: () => ke(!0),
345
- onMouseLeave: () => ke(!1),
346
- onFocus: (F) => i(a, e.absolutePath, F.currentTarget),
347
- onBlur: (F) => c(e.absolutePath, F.currentTarget),
348
- onKeyDown: (F) => {
349
- if (F.key === "Enter") {
350
- if (F.repeat) {
351
- F.preventDefault();
740
+ "aria-rowindex": o,
741
+ "aria-selected": S === "none" ? void 0 : h,
742
+ "aria-current": G0 ? "page" : void 0,
743
+ ...e2(e.data),
744
+ "data-entry-type": k ? "directory" : "file",
745
+ "data-entry-expanded": k ? String(n0) : void 0,
746
+ "data-entry-selected": D ? "true" : void 0,
747
+ "data-entry-item-selected": w ? "true" : void 0,
748
+ onClick: Z0,
749
+ onMouseEnter: () => L0(!0),
750
+ onMouseLeave: () => L0(!1),
751
+ onFocus: (O) => c(s, e.absolutePath, O.currentTarget),
752
+ onBlur: (O) => d(e.absolutePath, O.currentTarget),
753
+ onKeyDown: (O) => {
754
+ if (O.key === "Enter") {
755
+ if (O.repeat) {
756
+ O.preventDefault();
352
757
  return;
353
758
  }
354
- ve(F);
759
+ Z0(O);
355
760
  }
356
761
  },
357
762
  tabIndex: 0,
358
763
  children: [
359
- /* @__PURE__ */ Ne("div", { className: j("dt-grid-name-cell", me?.className), role: "gridcell", style: { width: m, paddingLeft: Math.max(0, t * Se) }, children: [
360
- (le || Y) && /* @__PURE__ */ u("span", { className: K, style: { ..._e, width: se, height: se }, children: X }),
361
- (A ? J : $) && /* @__PURE__ */ u("span", { className: $e, style: { width: B, height: B }, children: ne }),
362
- /* @__PURE__ */ u("span", { className: Q, style: Fn(ue), children: pe })
764
+ /* @__PURE__ */ b0("div", { className: W("dt-grid-name-cell", p0?.className), role: "gridcell", style: { width: p, paddingLeft: Math.max(0, a * V0) }, children: [
765
+ (i0 || G) && /* @__PURE__ */ m("span", { className: j, style: { ...P0, width: c0, height: c0 }, children: Y }),
766
+ (k ? J : $) && /* @__PURE__ */ m("span", { className: $0, style: { width: z, height: z }, children: r0 }),
767
+ /* @__PURE__ */ m("span", { className: e0, style: Ue(u0), children: A0 })
363
768
  ] }),
364
- Pe.length > 0 && /* @__PURE__ */ u("div", { className: "dt-grid-numeric-viewport", children: /* @__PURE__ */ u("div", { className: "dt-grid-numeric-track", style: Gn(f, R), children: Pe.map((F) => /* @__PURE__ */ u("div", { className: j("dt-grid-cell", Kn(F.align), F.className), role: "gridcell", children: F.render ? F.render(e, we) : null }, F.key)) }) })
769
+ C0.length > 0 && /* @__PURE__ */ m("div", { className: "dt-grid-numeric-viewport", children: /* @__PURE__ */ m("div", { className: "dt-grid-numeric-track", style: r2(u, E), children: C0.map((O) => /* @__PURE__ */ m("div", { className: W("dt-grid-cell", n2(O.align), O.className), role: "gridcell", children: O.render ? O.render(e, y0) : null }, O.key)) }) })
365
770
  ]
366
771
  }
367
772
  );
368
773
  },
369
- (e, t) => {
370
- if (e.entry !== t.entry) return !1;
371
- const n = Rn(e.entry, e.isDirOpen), r = Rn(t.entry, t.isDirOpen);
372
- return e.indentLevel === t.indentLevel && e.positionInSet === t.positionInSet && e.setSize === t.setSize && e.rowIndex === t.rowIndex && // 焦点の通知は行番号で行うため、番号が変われば描き直してハンドラへ新しい番号を渡す
373
- e.flatIndex === t.flatIndex && e.isSelectedForAria === t.isSelectedForAria && e.rowHeight === t.rowHeight && n === r && e.columns === t.columns && e.numericTemplate === t.numericTemplate && e.numericTotal === t.numericTotal && e.nameWidth === t.nameWidth && e.rowClassName === t.rowClassName && e.selection.selectedPath === t.selection.selectedPath && e.selection.currentPath === t.selection.currentPath && e.selection.mode === t.selection.mode && e.selection.selectedItems === t.selection.selectedItems && e.visual === t.visual;
774
+ (e, a) => {
775
+ if (e.entry !== a.entry) return !1;
776
+ const n = be(e.entry, e.isDirOpen), r = be(a.entry, a.isDirOpen);
777
+ return e.indentLevel === a.indentLevel && e.positionInSet === a.positionInSet && e.setSize === a.setSize && e.rowIndex === a.rowIndex && // 焦点の通知は行番号で行うため、番号が変われば描き直してハンドラへ新しい番号を渡す
778
+ e.flatIndex === a.flatIndex && e.isSelectedForAria === a.isSelectedForAria && e.rowHeight === a.rowHeight && n === r && e.columns === a.columns && e.numericTemplate === a.numericTemplate && e.numericTotal === a.numericTotal && e.nameWidth === a.nameWidth && e.rowClassName === a.rowClassName && e.selection.selectedPath === a.selection.selectedPath && e.selection.currentPath === a.selection.currentPath && e.selection.mode === a.selection.mode && e.selection.selectedItems === a.selection.selectedItems && e.visual === a.visual;
374
779
  }
375
780
  );
376
- Yn.displayName = "DirectoryTreeGridRow";
377
- const Xn = ({
781
+ l2.displayName = "DirectoryTreeGridRow";
782
+ const o2 = ({
378
783
  kind: e,
379
- columns: t,
784
+ columns: a,
380
785
  numericTemplate: n,
381
786
  numericTotal: r,
382
- nameWidth: s,
383
- scrollBarWidth: a,
384
- className: i,
385
- nameContent: c,
386
- renderCell: d
787
+ nameWidth: o,
788
+ scrollBarWidth: s,
789
+ className: c,
790
+ nameContent: d,
791
+ renderCell: h
387
792
  }) => {
388
- const [, ...y] = t, N = e === "header" ? "dt-grid-name-header" : "dt-grid-name-footer", w = e === "header" ? "dt-grid-header" : "dt-grid-footer", R = e === "header" ? "columnheader" : "gridcell";
389
- return /* @__PURE__ */ Ne("div", { className: j(w, oe.gridEdge, i), role: "row", children: [
390
- /* @__PURE__ */ u("div", { className: j(N, "px-1", t[0]?.className), role: R, style: { width: s }, children: c }),
391
- y.length > 0 && /* @__PURE__ */ u("div", { className: "dt-grid-numeric-viewport", children: /* @__PURE__ */ u("div", { className: "dt-grid-numeric-track", style: Gn(r, n), children: y.map((f) => /* @__PURE__ */ u("div", { className: j("dt-grid-cell", Kn(f.align), f.className), role: R, children: d(f) }, f.key)) }) }),
392
- /* @__PURE__ */ u("div", { className: "dt-grid-scrollbar-spacer", style: { width: a }, "aria-hidden": "true" })
793
+ const [, ...A] = a, M = e === "header" ? "dt-grid-name-header" : "dt-grid-name-footer", Z = e === "header" ? "dt-grid-header" : "dt-grid-footer", E = e === "header" ? "columnheader" : "gridcell";
794
+ return /* @__PURE__ */ b0("div", { className: W(Z, o0.gridEdge, c), role: "row", children: [
795
+ /* @__PURE__ */ m("div", { className: W(M, "px-1", a[0]?.className), role: E, style: { width: o }, children: d }),
796
+ A.length > 0 && /* @__PURE__ */ m("div", { className: "dt-grid-numeric-viewport", children: /* @__PURE__ */ m("div", { className: "dt-grid-numeric-track", style: r2(r, n), children: A.map((u) => /* @__PURE__ */ m("div", { className: W("dt-grid-cell", n2(u.align), u.className), role: E, children: h(u) }, u.key)) }) }),
797
+ /* @__PURE__ */ m("div", { className: "dt-grid-scrollbar-spacer", style: { width: s }, "aria-hidden": "true" })
393
798
  ] });
394
- }, no = ({ columns: e, className: t, ...n }) => /* @__PURE__ */ u(Xn, { kind: "header", columns: e, className: t, nameContent: e[0]?.header ?? null, renderCell: (r) => r.header ?? null, ...n }), kn = (e, t) => typeof e == "function" ? e(t) : e ?? null, ro = ({ columns: e, allEntries: t, className: n, ...r }) => /* @__PURE__ */ u(Xn, { kind: "footer", columns: e, className: n, nameContent: kn(e[0]?.footer, t), renderCell: (s) => kn(s.footer, t), ...r }), oo = 240, Vn = 96, Un = 12, Dt = (e, t) => {
799
+ }, vt = ({ columns: e, className: a, ...n }) => /* @__PURE__ */ m(o2, { kind: "header", columns: e, className: a, nameContent: e[0]?.header ?? null, renderCell: (r) => r.header ?? null, ...n }), Se = (e, a) => typeof e == "function" ? e(a) : e ?? null, gt = ({ columns: e, allEntries: a, className: n, ...r }) => /* @__PURE__ */ m(o2, { kind: "footer", columns: e, className: n, nameContent: Se(e[0]?.footer, a), renderCell: (o) => Se(o.footer, a), ...r }), Ht = 240, c2 = 96, s2 = 12, R1 = (e, a) => {
395
800
  const n = e?.width;
396
- return typeof n == "number" && Number.isFinite(n) && n > 0 ? n : t;
397
- }, so = (e) => e.slice(1).map((t) => `${Dt(t, Vn)}px`).join(" "), io = ({ measuredWidth: e, columns: t, scrollBarWidth: n = Un }) => {
398
- const r = Dt(t[0], oo), s = t.slice(1).reduce((d, y) => d + Dt(y, Vn), 0), a = Number.isFinite(e) && e > 0 ? e : 0, i = Math.max(0, a - r - Math.max(0, n)), c = Math.max(0, s - i);
399
- return { nameWidth: r, numericTotal: s, numericVisible: i, maxHScroll: c };
400
- }, Ot = (e, t) => !Number.isFinite(e) || e < 0 ? 0 : e > t ? t : e, ao = (e) => {
401
- const t = [], n = (r) => {
402
- for (const s of r)
403
- t.push(s), s.children && s.children.length > 0 && n(s.children);
801
+ return typeof n == "number" && Number.isFinite(n) && n > 0 ? n : a;
802
+ }, Vt = (e) => e.slice(1).map((a) => `${R1(a, c2)}px`).join(" "), Zt = ({ measuredWidth: e, columns: a, scrollBarWidth: n = s2 }) => {
803
+ const r = R1(a[0], Ht), o = a.slice(1).reduce((h, A) => h + R1(A, c2), 0), s = Number.isFinite(e) && e > 0 ? e : 0, c = Math.max(0, s - r - Math.max(0, n)), d = Math.max(0, o - c);
804
+ return { nameWidth: r, numericTotal: o, numericVisible: c, maxHScroll: d };
805
+ }, F1 = (e, a) => !Number.isFinite(e) || e < 0 ? 0 : e > a ? a : e, yt = (e) => {
806
+ const a = [], n = (r) => {
807
+ for (const o of r)
808
+ a.push(o), o.children && o.children.length > 0 && n(o.children);
404
809
  };
405
- return n(e), t;
406
- }, Jn = ["entryKindDirectory", "entryKindFile"], Cn = [...ht, ...Jn], At = Object.freeze({
810
+ return n(e), a;
811
+ }, i2 = ["entryKindDirectory", "entryKindFile"], Le = [...m1, ...i2], k1 = Object.freeze({
407
812
  en: Object.freeze({
408
813
  entryKindDirectory: "directory",
409
814
  entryKindFile: "file"
@@ -412,254 +817,254 @@ const Xn = ({
412
817
  entryKindDirectory: "ディレクトリ",
413
818
  entryKindFile: "ファイル"
414
819
  })
415
- }), lo = Object.freeze({
416
- en: Object.freeze({ ...In.en, ...At.en }),
417
- ja: Object.freeze({ ...In.ja, ...At.ja })
418
- }), Pn = (e) => typeof e == "string" ? JSON.stringify(e) : e === null ? "null" : typeof e, co = (e) => {
419
- const t = {};
820
+ }), Mt = Object.freeze({
821
+ en: Object.freeze({ ...ye.en, ...k1.en }),
822
+ ja: Object.freeze({ ...ye.ja, ...k1.ja })
823
+ }), Ie = (e) => typeof e == "string" ? JSON.stringify(e) : e === null ? "null" : typeof e, Et = (e) => {
824
+ const a = {};
420
825
  let n = !1;
421
- for (const r of ht) {
422
- const s = Object.hasOwn(e, r) ? e[r] : void 0;
423
- s !== void 0 && (t[r] = s, n = !0);
826
+ for (const r of m1) {
827
+ const o = Object.hasOwn(e, r) ? e[r] : void 0;
828
+ o !== void 0 && (a[r] = o, n = !0);
424
829
  }
425
- return n ? t : void 0;
426
- }, uo = (e, t) => {
427
- const n = An(e);
428
- if (t === void 0)
429
- return lo[n];
430
- if (t === null || typeof t != "object")
431
- throw new RangeError(`[directory-tree] labels must be an object; got ${Pn(t)}`);
432
- const r = Object.getPrototypeOf(t);
830
+ return n ? a : void 0;
831
+ }, wt = (e, a) => {
832
+ const n = Re(e);
833
+ if (a === void 0)
834
+ return Mt[n];
835
+ if (a === null || typeof a != "object")
836
+ throw new RangeError(`[directory-tree] labels must be an object; got ${Ie(a)}`);
837
+ const r = Object.getPrototypeOf(a);
433
838
  if (r !== Object.prototype && r !== null)
434
- throw new RangeError(`[directory-tree] labels must be a plain object (prototype Object.prototype or null); got ${Array.isArray(t) ? "an array" : "an object with a non-plain prototype"}`);
435
- for (const i of Object.keys(t))
436
- if (!Cn.includes(i))
437
- throw new RangeError(`[directory-tree] labels.${i} is not a known label key; expected one of ${Cn.join(", ")}`);
438
- const a = { ...dr(n, co(t)), ...At[n] };
439
- for (const i of Jn) {
440
- const c = Object.hasOwn(t, i) ? t[i] : void 0;
441
- if (c !== void 0) {
442
- if (typeof c != "string" || c.trim() === "")
443
- throw new RangeError(`[directory-tree] labels.${i} must be a non-blank string; got ${Pn(c)}`);
444
- a[i] = c;
839
+ throw new RangeError(`[directory-tree] labels must be a plain object (prototype Object.prototype or null); got ${Array.isArray(a) ? "an array" : "an object with a non-plain prototype"}`);
840
+ for (const c of Object.keys(a))
841
+ if (!Le.includes(c))
842
+ throw new RangeError(`[directory-tree] labels.${c} is not a known label key; expected one of ${Le.join(", ")}`);
843
+ const s = { ...M2(n, Et(a)), ...k1[n] };
844
+ for (const c of i2) {
845
+ const d = Object.hasOwn(a, c) ? a[c] : void 0;
846
+ if (d !== void 0) {
847
+ if (typeof d != "string" || d.trim() === "")
848
+ throw new RangeError(`[directory-tree] labels.${c} must be a non-blank string; got ${Ie(d)}`);
849
+ s[c] = d;
445
850
  }
446
851
  }
852
+ return Object.freeze(s);
853
+ }, bt = (e) => {
854
+ const a = {};
855
+ for (const n of m1)
856
+ a[n] = e[n];
447
857
  return Object.freeze(a);
448
- }, ho = (e) => {
449
- const t = {};
450
- for (const n of ht)
451
- t[n] = e[n];
452
- return Object.freeze(t);
453
- }, fo = () => {
858
+ }, St = () => {
454
859
  let e = null;
455
860
  return {
456
- mark: (t) => {
457
- const n = t.composedPath();
861
+ mark: (a) => {
862
+ const n = a.composedPath();
458
863
  e = n, setTimeout(() => {
459
864
  e === n && (e = null);
460
865
  }, 0);
461
866
  },
462
- landedOn: (t) => e?.includes(t) === !0
867
+ landedOn: (a) => e?.includes(a) === !0
463
868
  };
464
- }, Qe = (e) => typeof e == "string" ? JSON.stringify(e) : String(e), _t = (e, t) => {
465
- if (typeof t != "number" || !Number.isFinite(t) || t <= 0)
466
- throw new RangeError(`[directory-tree] visual.${e} must be a finite number greater than 0 (px); got ${Qe(t)}.`);
467
- return t;
468
- }, mo = (e) => {
869
+ }, e1 = (e) => typeof e == "string" ? JSON.stringify(e) : String(e), P1 = (e, a) => {
870
+ if (typeof a != "number" || !Number.isFinite(a) || a <= 0)
871
+ throw new RangeError(`[directory-tree] visual.${e} must be a finite number greater than 0 (px); got ${e1(a)}.`);
872
+ return a;
873
+ }, Lt = (e) => {
469
874
  if (typeof e == "string" && e.trim() !== "" || typeof e == "number" && Number.isFinite(e) && e > 0)
470
875
  return e;
471
- throw new RangeError(`[directory-tree] visual.fontSize must be a finite number greater than 0 (px) or a CSS font size that is not blank; got ${Qe(e)}.`);
472
- }, po = ({ indentSize: e, typeIconSize: t, fontSize: n }) => ({
473
- indentSize: e === void 0 ? Fr : _t("indentSize", e),
474
- typeIconSize: t === void 0 ? Mr : _t("typeIconSize", t),
475
- fontSize: n === void 0 ? void 0 : mo(n)
476
- }), yo = ({ indentSize: e, removeRootIndent: t, hasExpandBox: n }) => t ? Math.max(0, e - (n ? se : 0)) : 0, go = (e, t, n) => {
876
+ throw new RangeError(`[directory-tree] visual.fontSize must be a finite number greater than 0 (px) or a CSS font size that is not blank; got ${e1(e)}.`);
877
+ }, It = ({ indentSize: e, typeIconSize: a, fontSize: n }) => ({
878
+ indentSize: e === void 0 ? q2 : P1("indentSize", e),
879
+ typeIconSize: a === void 0 ? et : P1("typeIconSize", a),
880
+ fontSize: n === void 0 ? void 0 : Lt(n)
881
+ }), Ct = ({ indentSize: e, removeRootIndent: a, hasExpandBox: n }) => a ? Math.max(0, e - (n ? c0 : 0)) : 0, xt = (e, a, n) => {
477
882
  if (typeof e != "function")
478
- return _t("itemHeight", e);
479
- const r = e(t, n);
883
+ return P1("itemHeight", e);
884
+ const r = e(a, n);
480
885
  if (typeof r != "number" || !Number.isFinite(r) || r <= 0)
481
- throw new RangeError(`[directory-tree] visual.itemHeight returned ${Qe(r)} for ${JSON.stringify(t.absolutePath)} (row ${n}); it must return a finite number greater than 0 (px).`);
886
+ throw new RangeError(`[directory-tree] visual.itemHeight returned ${e1(r)} for ${JSON.stringify(a.absolutePath)} (row ${n}); it must return a finite number greater than 0 (px).`);
482
887
  return r;
483
- }, bo = (e, t, n) => {
484
- const r = t === void 0 ? $r : t;
485
- if (typeof r != "number" || !Number.isFinite(r) || r <= 0 || r > se)
486
- throw new RangeError(`[directory-tree] visual.expandIconSize must be a finite number greater than 0 and at most ${se} (the expand box, px) while tree lines are drawn; got ${Qe(r)}.`);
487
- const { indentSize: s, typeIconSize: a } = e, i = r / 2, c = se + a - r / 2;
488
- if (s < i || s > c)
888
+ }, Ft = (e, a, n) => {
889
+ const r = a === void 0 ? Q2 : a;
890
+ if (typeof r != "number" || !Number.isFinite(r) || r <= 0 || r > c0)
891
+ throw new RangeError(`[directory-tree] visual.expandIconSize must be a finite number greater than 0 and at most ${c0} (the expand box, px) while tree lines are drawn; got ${e1(r)}.`);
892
+ const { indentSize: o, typeIconSize: s } = e, c = r / 2, d = c0 + s - r / 2;
893
+ if (o < c || o > d)
489
894
  throw new RangeError(
490
- `[directory-tree] visual.indentSize ${Qe(s)} does not fit the tree lines: with typeIconSize ${a} and an expand glyph of ${r} px it must be from ${i} (half the glyph) to ${c} (the ${se} px expand box + typeIconSize − half the glyph).`
895
+ `[directory-tree] visual.indentSize ${e1(o)} does not fit the tree lines: with typeIconSize ${s} and an expand glyph of ${r} px it must be from ${c} (half the glyph) to ${d} (the ${c0} px expand box + typeIconSize − half the glyph).`
491
896
  );
492
- return { indentSize: s, typeIconSize: a, glyphSize: r, originX: n };
493
- }, So = ({ indentSize: e, typeIconSize: t, glyphSize: n }) => Math.min(Math.max(se + t / 2 - e, n / 2), se - n / 2), vo = (e, t) => {
897
+ return { indentSize: o, typeIconSize: s, glyphSize: r, originX: n };
898
+ }, Nt = ({ indentSize: e, typeIconSize: a, glyphSize: n }) => Math.min(Math.max(c0 + a / 2 - e, n / 2), c0 - n / 2), Rt = (e, a) => {
494
899
  const n = e.length - 1;
495
900
  if (n <= 0) return 0;
496
- let r = 0, s = n - 1, a = 0;
497
- for (; r <= s; ) {
498
- const i = r + s >>> 1;
499
- e[i] <= t ? (a = i, r = i + 1) : s = i - 1;
901
+ let r = 0, o = n - 1, s = 0;
902
+ for (; r <= o; ) {
903
+ const c = r + o >>> 1;
904
+ e[c] <= a ? (s = c, r = c + 1) : o = c - 1;
500
905
  }
501
- return a;
502
- }, wo = (e, t, n) => {
503
- if (n <= 0 || e.length === 0 || t.length !== e.length + 1)
906
+ return s;
907
+ }, kt = (e, a, n) => {
908
+ if (n <= 0 || e.length === 0 || a.length !== e.length + 1)
504
909
  return null;
505
- const r = vo(t, n), s = e[r];
506
- return s ? {
507
- path: s.entry.absolutePath,
508
- offsetInViewport: n - t[r]
910
+ const r = Rt(a, n), o = e[r];
911
+ return o ? {
912
+ path: o.entry.absolutePath,
913
+ offsetInViewport: n - a[r]
509
914
  } : null;
510
- }, Io = (e, t, n) => {
511
- if (t.length === 0 || n.length !== t.length + 1)
915
+ }, Pt = (e, a, n) => {
916
+ if (a.length === 0 || n.length !== a.length + 1)
512
917
  return null;
513
- for (let r = 0; r < t.length; r++)
514
- if (t[r].entry.absolutePath === e.path)
918
+ for (let r = 0; r < a.length; r++)
919
+ if (a[r].entry.absolutePath === e.path)
515
920
  return Math.max(0, n[r] + e.offsetInViewport);
516
921
  return null;
517
- }, Eo = (e, t, n) => {
922
+ }, Tt = (e, a, n) => {
518
923
  const r = [];
519
- for (let s = t; s < n; s++) {
520
- const a = e[s];
521
- if (!(!a || a.length === 0))
522
- for (const i of a)
523
- r.push(i);
924
+ for (let o = a; o < n; o++) {
925
+ const s = e[o];
926
+ if (!(!s || s.length === 0))
927
+ for (const c of s)
928
+ r.push(c);
524
929
  }
525
930
  return r;
526
- }, xo = (e, t, n) => {
931
+ }, Ot = (e, a, n) => {
527
932
  const r = [];
528
- for (let s = t; s < n; s++) {
529
- const a = e[s];
530
- if (!(!a || a.length === 0))
531
- for (const i of a)
532
- r.push(i);
933
+ for (let o = a; o < n; o++) {
934
+ const s = e[o];
935
+ if (!(!s || s.length === 0))
936
+ for (const c of s)
937
+ r.push(c);
533
938
  }
534
939
  return r;
535
- }, No = (e, t, n, r) => {
536
- const s = Math.max(1, Math.floor(t * r)), a = Math.max(1, Math.floor(n * r));
537
- (e.width !== s || e.height !== a) && (e.width = s, e.height = a);
538
- const i = e.style;
539
- i.width !== `${t}px` && (i.width = `${t}px`), i.height !== `${n}px` && (i.height = `${n}px`);
540
- }, Ro = (e, t, n) => {
940
+ }, $t = (e, a, n, r) => {
941
+ const o = Math.max(1, Math.floor(a * r)), s = Math.max(1, Math.floor(n * r));
942
+ (e.width !== o || e.height !== s) && (e.width = o, e.height = s);
943
+ const c = e.style;
944
+ c.width !== `${a}px` && (c.width = `${a}px`), c.height !== `${n}px` && (c.height = `${n}px`);
945
+ }, Dt = (e, a, n) => {
541
946
  e.lineWidth = n, e.beginPath();
542
- for (const r of t)
947
+ for (const r of a)
543
948
  e.moveTo(r.x1, r.y1), e.lineTo(r.x2, r.y2);
544
949
  e.stroke();
545
- }, ko = (e, t, n, r) => {
546
- if (t.length === 0)
950
+ }, _t = (e, a, n, r) => {
951
+ if (a.length === 0)
547
952
  return;
548
- const s = e.strokeStyle, a = e.lineWidth, i = e.lineCap, c = e.lineJoin;
953
+ const o = e.strokeStyle, s = e.lineWidth, c = e.lineCap, d = e.lineJoin;
549
954
  e.strokeStyle = n, e.lineCap = "round", e.lineJoin = "round";
550
- for (const d of t) {
551
- const y = r ?? d.size, N = Math.max(0, y / 2), w = Math.max(1, Math.round(y * 0.08)), R = Math.max(1, Math.round(y * 0.14)), f = Math.max(0, N - w * 0.8), m = Math.max(0, f * 0.55);
552
- e.lineWidth = w, e.beginPath(), e.arc(d.centerX, d.centerY, Math.max(0, N - w * 0.3), 0, Math.PI * 2), e.stroke(), e.lineWidth = R, e.beginPath(), e.moveTo(d.centerX - m, d.centerY), e.lineTo(d.centerX + m, d.centerY), e.stroke(), d.isExpanded || (e.beginPath(), e.moveTo(d.centerX, d.centerY - m), e.lineTo(d.centerX, d.centerY + m), e.stroke());
955
+ for (const h of a) {
956
+ const A = r ?? h.size, M = Math.max(0, A / 2), Z = Math.max(1, Math.round(A * 0.08)), E = Math.max(1, Math.round(A * 0.14)), u = Math.max(0, M - Z * 0.8), p = Math.max(0, u * 0.55);
957
+ e.lineWidth = Z, e.beginPath(), e.arc(h.centerX, h.centerY, Math.max(0, M - Z * 0.3), 0, Math.PI * 2), e.stroke(), e.lineWidth = E, e.beginPath(), e.moveTo(h.centerX - p, h.centerY), e.lineTo(h.centerX + p, h.centerY), e.stroke(), h.isExpanded || (e.beginPath(), e.moveTo(h.centerX, h.centerY - p), e.lineTo(h.centerX, h.centerY + p), e.stroke());
553
958
  }
554
- e.strokeStyle = s, e.lineWidth = a, e.lineCap = i, e.lineJoin = c;
555
- }, Zn = zt(({ segmentsByItem: e, glyphsByItem: t, itemHeight: n, width: r, viewportHeight: s, scrollPosition: a, color: i = _n, strokeWidth: c = 1, renderStartIndex: d, renderEndIndex: y, lookaheadEndIndex: N, devicePixelRatio: w, expandGlyphColor: R, expandGlyphSize: f }) => {
556
- const m = H(null), h = H(null), S = H({
959
+ e.strokeStyle = o, e.lineWidth = s, e.lineCap = c, e.lineJoin = d;
960
+ }, d2 = T1(({ segmentsByItem: e, glyphsByItem: a, itemHeight: n, width: r, viewportHeight: o, scrollPosition: s, color: c = Ye, strokeWidth: d = 1, renderStartIndex: h, renderEndIndex: A, lookaheadEndIndex: M, devicePixelRatio: Z, expandGlyphColor: E, expandGlyphSize: u }) => {
961
+ const p = _(null), f = _(null), V = _({
557
962
  segmentsByItem: e,
558
- glyphsByItem: t,
963
+ glyphsByItem: a,
559
964
  itemHeight: n,
560
965
  width: r,
561
- viewportHeight: s,
562
- scrollPosition: a,
563
- color: i,
564
- strokeWidth: c,
565
- renderStartIndex: d,
566
- renderEndIndex: y,
567
- lookaheadEndIndex: N,
568
- devicePixelRatio: w,
569
- expandGlyphColor: R,
570
- expandGlyphSize: f
571
- }), b = E(() => {
572
- h.current = null;
573
- const x = m.current;
574
- if (!x)
966
+ viewportHeight: o,
967
+ scrollPosition: s,
968
+ color: c,
969
+ strokeWidth: d,
970
+ renderStartIndex: h,
971
+ renderEndIndex: A,
972
+ lookaheadEndIndex: M,
973
+ devicePixelRatio: Z,
974
+ expandGlyphColor: E,
975
+ expandGlyphSize: u
976
+ }), H = b(() => {
977
+ f.current = null;
978
+ const S = p.current;
979
+ if (!S)
575
980
  return;
576
- const k = x.getContext("2d");
577
- if (!k)
981
+ const L = S.getContext("2d");
982
+ if (!L)
578
983
  return;
579
- const p = S.current;
580
- if (p.width <= 0 || p.viewportHeight <= 0) {
581
- k.clearRect(0, 0, x.width, x.height);
984
+ const v = V.current;
985
+ if (v.width <= 0 || v.viewportHeight <= 0) {
986
+ L.clearRect(0, 0, S.width, S.height);
582
987
  return;
583
988
  }
584
- const L = Number.isFinite(p.devicePixelRatio ?? NaN) ? p.devicePixelRatio : typeof window < "u" && window.devicePixelRatio || 1;
585
- No(x, p.width, p.viewportHeight, L);
586
- const D = p.segmentsByItem.length, P = typeof p.renderStartIndex == "number" && Number.isFinite(p.renderStartIndex) ? Math.max(0, Math.floor(p.renderStartIndex)) : Math.max(0, Math.floor(p.scrollPosition / p.itemHeight)), le = Math.min(D, Math.ceil((p.scrollPosition + p.viewportHeight) / p.itemHeight)), J = (() => {
587
- if (typeof p.renderEndIndex == "number" && Number.isFinite(p.renderEndIndex)) {
588
- const B = Math.floor(p.renderEndIndex);
589
- return Math.max(Math.min(D, B + 1), P);
989
+ const N = Number.isFinite(v.devicePixelRatio ?? NaN) ? v.devicePixelRatio : typeof window < "u" && window.devicePixelRatio || 1;
990
+ $t(S, v.width, v.viewportHeight, N);
991
+ const R = v.segmentsByItem.length, C = typeof v.renderStartIndex == "number" && Number.isFinite(v.renderStartIndex) ? Math.max(0, Math.floor(v.renderStartIndex)) : Math.max(0, Math.floor(v.scrollPosition / v.itemHeight)), i0 = Math.min(R, Math.ceil((v.scrollPosition + v.viewportHeight) / v.itemHeight)), J = (() => {
992
+ if (typeof v.renderEndIndex == "number" && Number.isFinite(v.renderEndIndex)) {
993
+ const z = Math.floor(v.renderEndIndex);
994
+ return Math.max(Math.min(R, z + 1), C);
590
995
  }
591
- return Math.max(le, P);
996
+ return Math.max(i0, C);
592
997
  })(), $ = (() => {
593
- if (typeof p.lookaheadEndIndex == "number" && Number.isFinite(p.lookaheadEndIndex)) {
594
- const B = Math.floor(p.lookaheadEndIndex), ue = Math.min(D, B + 1);
595
- return Math.max(ue, J);
998
+ if (typeof v.lookaheadEndIndex == "number" && Number.isFinite(v.lookaheadEndIndex)) {
999
+ const z = Math.floor(v.lookaheadEndIndex), u0 = Math.min(R, z + 1);
1000
+ return Math.max(u0, J);
596
1001
  }
597
- return Math.max(le, J);
598
- })(), Y = Eo(p.segmentsByItem, P, $), be = xo(p.glyphsByItem, P, $);
599
- k.save(), k.scale(L, L), k.clearRect(0, 0, p.width, p.viewportHeight), k.translate(0, -p.scrollPosition), k.strokeStyle = p.color, Ro(k, Y, p.strokeWidth), ko(k, be, p.expandGlyphColor ?? p.color, p.expandGlyphSize), k.restore();
600
- }, []), z = E(() => {
601
- h.current === null && (h.current = window.requestAnimationFrame(b));
602
- }, [b]);
603
- return Ae(() => {
604
- S.current = {
1002
+ return Math.max(i0, J);
1003
+ })(), G = Tt(v.segmentsByItem, C, $), H0 = Ot(v.glyphsByItem, C, $);
1004
+ L.save(), L.scale(N, N), L.clearRect(0, 0, v.width, v.viewportHeight), L.translate(0, -v.scrollPosition), L.strokeStyle = v.color, Dt(L, G, v.strokeWidth), _t(L, H0, v.expandGlyphColor ?? v.color, v.expandGlyphSize), L.restore();
1005
+ }, []), T = b(() => {
1006
+ f.current === null && (f.current = window.requestAnimationFrame(H));
1007
+ }, [H]);
1008
+ return k0(() => {
1009
+ V.current = {
605
1010
  segmentsByItem: e,
606
- glyphsByItem: t,
1011
+ glyphsByItem: a,
607
1012
  itemHeight: n,
608
1013
  width: r,
609
- viewportHeight: s,
610
- scrollPosition: a,
611
- color: i,
612
- strokeWidth: c,
613
- renderStartIndex: d,
614
- renderEndIndex: y,
615
- lookaheadEndIndex: N,
616
- devicePixelRatio: w,
617
- expandGlyphColor: R,
618
- expandGlyphSize: f
619
- }, z();
620
- }, [e, t, n, r, s, a, i, c, d, y, N, w, R, f, z]), Ae(() => () => {
621
- h.current !== null && (window.cancelAnimationFrame(h.current), h.current = null);
622
- }, []), /* @__PURE__ */ u("canvas", { ref: m, className: "pointer-events-none absolute top-0 left-0 z-0" });
1014
+ viewportHeight: o,
1015
+ scrollPosition: s,
1016
+ color: c,
1017
+ strokeWidth: d,
1018
+ renderStartIndex: h,
1019
+ renderEndIndex: A,
1020
+ lookaheadEndIndex: M,
1021
+ devicePixelRatio: Z,
1022
+ expandGlyphColor: E,
1023
+ expandGlyphSize: u
1024
+ }, T();
1025
+ }, [e, a, n, r, o, s, c, d, h, A, M, Z, E, u, T]), k0(() => () => {
1026
+ f.current !== null && (window.cancelAnimationFrame(f.current), f.current = null);
1027
+ }, []), /* @__PURE__ */ m("canvas", { ref: p, className: "pointer-events-none absolute top-0 left-0 z-0" });
623
1028
  });
624
- Zn.displayName = "TreeLineCanvas";
625
- const Co = (e) => {
626
- const t = /* @__PURE__ */ new Map();
1029
+ d2.displayName = "TreeLineCanvas";
1030
+ const zt = (e) => {
1031
+ const a = /* @__PURE__ */ new Map();
627
1032
  for (let n = 0; n < e.length; n++) {
628
1033
  const r = e[n].entry.absolutePath;
629
- t.has(r) || t.set(r, n);
1034
+ a.has(r) || a.set(r, n);
630
1035
  }
631
- return t;
632
- }, Tn = (e, t) => e.selectedPath === t ? e : { selectedPath: t, selectionGeneration: e.selectionGeneration + 1, anchor: e.anchor }, Po = (e, t) => ({ ...e, anchor: { path: t, selectionGeneration: e.selectionGeneration, focused: !0 } }), To = (e, t) => {
633
- const { anchor: n, selectionGeneration: r, selectedPath: s } = t;
1036
+ return a;
1037
+ }, Ce = (e, a) => e.selectedPath === a ? e : { selectedPath: a, selectionGeneration: e.selectionGeneration + 1, anchor: e.anchor }, Bt = (e, a) => ({ ...e, anchor: { path: a, selectionGeneration: e.selectionGeneration, focused: !0 } }), Wt = (e, a) => {
1038
+ const { anchor: n, selectionGeneration: r, selectedPath: o } = a;
634
1039
  if (n !== null && (n.focused || n.selectionGeneration === r)) {
635
- const a = e.get(n.path);
636
- if (a !== void 0)
637
- return a;
1040
+ const s = e.get(n.path);
1041
+ if (s !== void 0)
1042
+ return s;
638
1043
  }
639
- if (s !== null) {
640
- const a = e.get(s);
641
- if (a !== void 0)
642
- return a;
1044
+ if (o !== null) {
1045
+ const s = e.get(o);
1046
+ if (s !== void 0)
1047
+ return s;
643
1048
  }
644
1049
  return 0;
645
- }, Oo = {
1050
+ }, jt = {
646
1051
  msOverflowStyle: "none",
647
1052
  scrollbarWidth: "none"
648
- }, Lo = () => {
1053
+ }, Kt = () => {
649
1054
  let e = document.getElementById("directory-tree-webkit-scrollbar-hide");
650
1055
  e || (e = document.createElement("style"), e.id = "directory-tree-webkit-scrollbar-hide", e.textContent = ".directory-tree-container::-webkit-scrollbar { display: none; }", document.head.appendChild(e));
651
- }, Do = () => () => {
652
- }, Ao = () => !0, _o = () => !1, zo = (e) => {
653
- const t = H(null), n = t.current;
654
- return n !== null && ht.every((r) => n[r] === e[r]) ? n : (t.current = e, e);
655
- }, On = /* @__PURE__ */ new Set(["top", "bottom", "center", "nearest"]), Ln = (e) => {
656
- const t = e?.align;
657
- if (t === void 0)
1056
+ }, Gt = () => () => {
1057
+ }, Yt = () => !0, Xt = () => !1, Ut = (e) => {
1058
+ const a = _(null), n = a.current;
1059
+ return n !== null && m1.every((r) => n[r] === e[r]) ? n : (a.current = e, e);
1060
+ }, xe = /* @__PURE__ */ new Set(["top", "bottom", "center", "nearest"]), Fe = (e) => {
1061
+ const a = e?.align;
1062
+ if (a === void 0)
658
1063
  return "top";
659
- if (!On.has(t))
660
- throw new RangeError(`[directory-tree] Unsupported scroll alignment ${JSON.stringify(t)}; expected one of ${[...On].join(", ")}.`);
661
- return t;
662
- }, Fo = {
1064
+ if (!xe.has(a))
1065
+ throw new RangeError(`[directory-tree] Unsupported scroll alignment ${JSON.stringify(a)}; expected one of ${[...xe].join(", ")}.`);
1066
+ return a;
1067
+ }, Jt = {
663
1068
  position: "absolute",
664
1069
  width: 1,
665
1070
  height: 1,
@@ -669,230 +1074,230 @@ const Co = (e) => {
669
1074
  overflow: "hidden",
670
1075
  clipPath: "inset(50%)",
671
1076
  whiteSpace: "nowrap"
672
- }, $o = (e, t, n, r, s) => {
673
- const a = [], i = [];
674
- let c = 0;
675
- const d = (y, N, w) => {
676
- const R = s ? [...y].sort(s) : y;
677
- for (let f = 0; f < R.length; f++) {
678
- const m = R[f], h = f === R.length - 1, S = [...w, h], b = m.children !== void 0, z = b && t(m.absolutePath, m.relativePath);
679
- let x = N, k = w;
680
- r && (x = N - 1, k = w.slice(1)), a.push({ entry: m, indentLevel: x, depth: N, positionInSet: f + 1, setSize: R.length }), n && (x > c && (c = x), i.push({
681
- id: m.absolutePath,
682
- name: m.name,
683
- absolutePath: m.absolutePath,
684
- indentLevel: x,
685
- isLastChild: h,
686
- isDirectory: b,
687
- isExpanded: z,
688
- ancestorIsLast: [...k],
689
- hideLines: r && N === 0
690
- })), b && z && m.children && d(m.children, N + 1, S);
1077
+ }, qt = (e, a, n, r, o) => {
1078
+ const s = [], c = [];
1079
+ let d = 0;
1080
+ const h = (A, M, Z) => {
1081
+ const E = o ? [...A].sort(o) : A;
1082
+ for (let u = 0; u < E.length; u++) {
1083
+ const p = E[u], f = u === E.length - 1, V = [...Z, f], H = p.children !== void 0, T = H && a(p.absolutePath, p.relativePath);
1084
+ let S = M, L = Z;
1085
+ r && (S = M - 1, L = Z.slice(1)), s.push({ entry: p, indentLevel: S, depth: M, positionInSet: u + 1, setSize: E.length }), n && (S > d && (d = S), c.push({
1086
+ id: p.absolutePath,
1087
+ name: p.name,
1088
+ absolutePath: p.absolutePath,
1089
+ indentLevel: S,
1090
+ isLastChild: f,
1091
+ isDirectory: H,
1092
+ isExpanded: T,
1093
+ ancestorIsLast: [...L],
1094
+ hideLines: r && M === 0
1095
+ })), H && T && p.children && h(p.children, M + 1, V);
691
1096
  }
692
1097
  };
693
- return d(e, 0, []), { flatItems: a, lineItems: i, maxIndent: c };
694
- }, Dn = (e, t) => {
1098
+ return h(e, 0, []), { flatItems: s, lineItems: c, maxIndent: d };
1099
+ }, Ne = (e, a) => {
695
1100
  const n = e.length - 1;
696
1101
  if (n <= 0) return 0;
697
- let r = 0, s = n - 1, a = 0;
698
- for (; r <= s; ) {
699
- const i = r + s >>> 1;
700
- e[i] <= t ? (a = i, r = i + 1) : s = i - 1;
1102
+ let r = 0, o = n - 1, s = 0;
1103
+ for (; r <= o; ) {
1104
+ const c = r + o >>> 1;
1105
+ e[c] <= a ? (s = c, r = c + 1) : o = c - 1;
701
1106
  }
702
- return a;
703
- }, Mo = (e, t, n, r, s, a) => {
704
- const i = r?.renderStart ?? Math.max(0, Dn(a, s)), c = t > 0 ? Dn(a, s + t) + n : i + n, d = e > 0 ? Math.min(e - 1, Math.max(i, c)) : i, y = r?.renderEnd ?? d, N = e > 0 ? Math.min(e - 1, y + n) : y;
705
- return { renderStart: i, renderEnd: y, lookaheadEnd: N };
706
- }, Ho = (e, t, n, r) => {
1107
+ return s;
1108
+ }, Qt = (e, a, n, r, o, s) => {
1109
+ const c = r?.renderStart ?? Math.max(0, Ne(s, o)), d = a > 0 ? Ne(s, o + a) + n : c + n, h = e > 0 ? Math.min(e - 1, Math.max(c, d)) : c, A = r?.renderEnd ?? h, M = e > 0 ? Math.min(e - 1, A + n) : A;
1110
+ return { renderStart: c, renderEnd: A, lookaheadEnd: M };
1111
+ }, e8 = (e, a, n, r) => {
707
1112
  if (e.length === 0)
708
1113
  return { segmentsByItem: [], glyphsByItem: [] };
709
- const { indentSize: s, typeIconSize: a, glyphSize: i, originX: c } = r, d = Array.from({ length: e.length }, () => []), y = Array.from({ length: e.length }, () => []), N = c + So(r), w = (f) => f * s + N, R = i / 2 + 2;
710
- for (let f = 0; f < e.length; f++) {
711
- const m = e[f], h = t[f] ?? 0, S = n[f] ?? 0, b = S + h / 2, z = e[f + 1], x = b + a / 2, k = S + h, p = z !== void 0 && z.indentLevel === m.indentLevel + 1 && x < k ? { key: `${m.id}-connector-children`, x1: w(z.indentLevel), y1: x, x2: w(z.indentLevel), y2: k, itemIndex: f } : null;
712
- if (m.hideLines) {
713
- p !== null && (d[f] = [p]);
1114
+ const { indentSize: o, typeIconSize: s, glyphSize: c, originX: d } = r, h = Array.from({ length: e.length }, () => []), A = Array.from({ length: e.length }, () => []), M = d + Nt(r), Z = (u) => u * o + M, E = c / 2 + 2;
1115
+ for (let u = 0; u < e.length; u++) {
1116
+ const p = e[u], f = a[u] ?? 0, V = n[u] ?? 0, H = V + f / 2, T = e[u + 1], S = H + s / 2, L = V + f, v = T !== void 0 && T.indentLevel === p.indentLevel + 1 && S < L ? { key: `${p.id}-connector-children`, x1: Z(T.indentLevel), y1: S, x2: Z(T.indentLevel), y2: L, itemIndex: u } : null;
1117
+ if (p.hideLines) {
1118
+ v !== null && (h[u] = [v]);
714
1119
  continue;
715
1120
  }
716
- const L = [];
717
- for (let P = 0; P < m.indentLevel; P++) {
718
- if (m.ancestorIsLast[P] ?? !1)
1121
+ const N = [];
1122
+ for (let C = 0; C < p.indentLevel; C++) {
1123
+ if (p.ancestorIsLast[C] ?? !1)
719
1124
  continue;
720
1125
  let J = !1;
721
- for (let $ = f; $ < e.length; $++) {
722
- const Y = e[$];
723
- if (Y.indentLevel > P && Y.ancestorIsLast.length > P && !Y.ancestorIsLast[P]) {
1126
+ for (let $ = u; $ < e.length; $++) {
1127
+ const G = e[$];
1128
+ if (G.indentLevel > C && G.ancestorIsLast.length > C && !G.ancestorIsLast[C]) {
724
1129
  J = !0;
725
1130
  break;
726
1131
  }
727
- if ($ > f && Y.indentLevel === P)
1132
+ if ($ > u && G.indentLevel === C)
728
1133
  break;
729
1134
  }
730
1135
  if (J) {
731
- const $ = w(P);
732
- L.push({
733
- key: `${m.id}-ancestor-${P}`,
1136
+ const $ = Z(C);
1137
+ N.push({
1138
+ key: `${p.id}-ancestor-${C}`,
734
1139
  x1: $,
735
- y1: S,
1140
+ y1: V,
736
1141
  x2: $,
737
- y2: S + h,
738
- itemIndex: f
1142
+ y2: V + f,
1143
+ itemIndex: u
739
1144
  });
740
1145
  }
741
1146
  }
742
- const D = w(m.indentLevel);
743
- f > 0 && L.push({
744
- key: `${m.id}-connector-top`,
745
- x1: D,
746
- y1: S,
747
- x2: D,
748
- y2: m.isDirectory ? b - R : b,
749
- itemIndex: f
750
- }), !m.isDirectory && m.isLastChild && L.push({
751
- key: `${m.id}-connector-horizontal`,
752
- x1: D,
753
- y1: b,
754
- x2: c + m.indentLevel * s + se,
755
- y2: b,
756
- itemIndex: f
757
- }), m.isLastChild || (m.isDirectory ? L.push({
758
- key: `${m.id}-connector-bottom`,
759
- x1: D,
760
- y1: b + R,
761
- x2: D,
762
- y2: S + h,
763
- itemIndex: f
764
- }) : L.push({
765
- key: `${m.id}-connector-bottom`,
766
- x1: D,
767
- y1: b,
768
- x2: D,
769
- y2: S + h,
770
- itemIndex: f
771
- })), p !== null && L.push(p), d[f] = L, m.isDirectory && (y[f] = [
1147
+ const R = Z(p.indentLevel);
1148
+ u > 0 && N.push({
1149
+ key: `${p.id}-connector-top`,
1150
+ x1: R,
1151
+ y1: V,
1152
+ x2: R,
1153
+ y2: p.isDirectory ? H - E : H,
1154
+ itemIndex: u
1155
+ }), !p.isDirectory && p.isLastChild && N.push({
1156
+ key: `${p.id}-connector-horizontal`,
1157
+ x1: R,
1158
+ y1: H,
1159
+ x2: d + p.indentLevel * o + c0,
1160
+ y2: H,
1161
+ itemIndex: u
1162
+ }), p.isLastChild || (p.isDirectory ? N.push({
1163
+ key: `${p.id}-connector-bottom`,
1164
+ x1: R,
1165
+ y1: H + E,
1166
+ x2: R,
1167
+ y2: V + f,
1168
+ itemIndex: u
1169
+ }) : N.push({
1170
+ key: `${p.id}-connector-bottom`,
1171
+ x1: R,
1172
+ y1: H,
1173
+ x2: R,
1174
+ y2: V + f,
1175
+ itemIndex: u
1176
+ })), v !== null && N.push(v), h[u] = N, p.isDirectory && (A[u] = [
772
1177
  {
773
- key: `${m.id}-glyph`,
774
- itemIndex: f,
775
- centerX: D,
776
- centerY: b,
777
- size: i,
778
- isExpanded: m.isExpanded
1178
+ key: `${p.id}-glyph`,
1179
+ itemIndex: u,
1180
+ centerX: R,
1181
+ centerY: H,
1182
+ size: c,
1183
+ isExpanded: p.isExpanded
779
1184
  }
780
1185
  ]);
781
1186
  }
782
- return { segmentsByItem: d, glyphsByItem: y };
783
- }, qn = zt(
1187
+ return { segmentsByItem: h, glyphsByItem: A };
1188
+ }, h2 = T1(
784
1189
  ({
785
1190
  entry: e,
786
- indentLevel: t,
1191
+ indentLevel: a,
787
1192
  originX: n,
788
1193
  depth: r,
789
- positionInSet: s,
790
- setSize: a,
791
- isSelectedForAria: i,
792
- flatIndex: c,
793
- isActive: d,
794
- registerRowRef: y,
795
- onNavigationKeyDown: N,
796
- onRowFocus: w,
797
- onRowBlur: R,
798
- rowHeight: f,
799
- entryKindDirectory: m,
800
- entryKindFile: h,
801
- isDirOpen: S,
802
- expansion: { toggleDirectory: b, onToggleDirectoryRecursive: z },
803
- selection: { onEntryClick: x, selectedPath: k, currentPath: p, mode: L = "none", selectedItems: D, onSelectionChange: P },
1194
+ positionInSet: o,
1195
+ setSize: s,
1196
+ isSelectedForAria: c,
1197
+ flatIndex: d,
1198
+ isActive: h,
1199
+ registerRowRef: A,
1200
+ onNavigationKeyDown: M,
1201
+ onRowFocus: Z,
1202
+ onRowBlur: E,
1203
+ rowHeight: u,
1204
+ entryKindDirectory: p,
1205
+ entryKindFile: f,
1206
+ isDirOpen: V,
1207
+ expansion: { toggleDirectory: H, onToggleDirectoryRecursive: T },
1208
+ selection: { onEntryClick: S, selectedPath: L, currentPath: v, mode: N = "none", selectedItems: R, onSelectionChange: C },
804
1209
  visual: {
805
- iconOverrides: le,
1210
+ iconOverrides: i0,
806
1211
  showExpandIcons: J = !0,
807
1212
  showDirectoryIcons: $ = !0,
808
- showFileIcons: Y = !0,
809
- useCanvasExpandIcons: be = !1,
810
- expandIconSize: B,
811
- typeIconSize: ue,
812
- fontSize: Se,
813
- indentSize: Z,
814
- highlightStyles: q,
815
- entryClassName: _e,
816
- entryStyle: Re,
817
- nameClassName: ke,
818
- nameStyle: A,
819
- directoryNameClassName: te,
820
- directoryNameStyle: M,
821
- fileNameClassName: Ye,
822
- fileNameStyle: I,
823
- expandIconClassName: ze,
824
- expandIconStyle: ve
1213
+ showFileIcons: G = !0,
1214
+ useCanvasExpandIcons: H0 = !1,
1215
+ expandIconSize: z,
1216
+ typeIconSize: u0,
1217
+ fontSize: V0,
1218
+ indentSize: q,
1219
+ highlightStyles: Q,
1220
+ entryClassName: P0,
1221
+ entryStyle: S0,
1222
+ nameClassName: L0,
1223
+ nameStyle: k,
1224
+ directoryNameClassName: n0,
1225
+ directoryNameStyle: D,
1226
+ fileNameClassName: G0,
1227
+ fileNameStyle: w,
1228
+ expandIconClassName: T0,
1229
+ expandIconStyle: Z0
825
1230
  }
826
1231
  }) => {
827
- Ge(e.style, { option: "entry.style", absolutePath: e.absolutePath });
828
- const [Ce, Fe] = de(!1), C = e.children !== void 0, he = C && S(e.absolutePath), K = e.absolutePath === k, $e = e.absolutePath === p, Q = !C && D?.has(e.absolutePath), X = E((V) => y(c, V), [y, c]), ne = C ? void 0 : $n(e), we = jn({ entry: e, isDirectory: C, isExpanded: he, isItemSelected: !!Q, selectionMode: L, onSelectionChange: P, onEntryClick: x, toggleDirectory: b, onToggleDirectoryRecursive: z }), me = Ce ? q?.hoverClassName !== void 0 ? q.hoverClassName : T.entryHover : "", Pe = (() => {
829
- if (C) {
830
- if (K)
831
- return q?.directorySelectedClassName !== void 0 ? q.directorySelectedClassName : T.entrySelected;
832
- } else if (K || Q)
833
- return q?.itemSelectedClassName !== void 0 ? q.itemSelectedClassName : j(K && T.entrySelected, Q && T.entryItemSelected);
1232
+ K0(e.style, { option: "entry.style", absolutePath: e.absolutePath });
1233
+ const [I0, O0] = h0(!1), I = e.children !== void 0, m0 = I && V(e.absolutePath), j = e.absolutePath === L, $0 = e.absolutePath === v, e0 = !I && R?.has(e.absolutePath), Y = b((X) => A(d, X), [A, d]), r0 = I ? void 0 : Je(e), y0 = a2({ entry: e, isDirectory: I, isExpanded: m0, isItemSelected: !!e0, selectionMode: N, onSelectionChange: C, onEntryClick: S, toggleDirectory: H, onToggleDirectoryRecursive: T }), p0 = I0 ? Q?.hoverClassName !== void 0 ? Q.hoverClassName : x.entryHover : "", C0 = (() => {
1234
+ if (I) {
1235
+ if (j)
1236
+ return Q?.directorySelectedClassName !== void 0 ? Q.directorySelectedClassName : x.entrySelected;
1237
+ } else if (j || e0)
1238
+ return Q?.itemSelectedClassName !== void 0 ? Q.itemSelectedClassName : W(j && x.entrySelected, e0 && x.entryItemSelected);
834
1239
  return "";
835
- })(), pe = j(T.entry, me, Pe, _e, e.className), Xe = j(T.expandIcon, ze, (K || Q) && T.expandIconSelected), F = j(T.typeIcon, (K || Q) && T.typeIconSelected), et = j(T.name, ke, C && T.nameDirectory, C && te, !C && Ye, (K || Q) && T.nameSelected), ft = Mn({ isDirectory: C, isExpanded: he, showExpandIcons: J && t >= 0, useCanvasExpandIcons: be, expandIconSize: B }), Ve = (C ? $ : Y) ? Hn({ entry: e, isDirectory: C, isExpanded: he, isSelected: K, isItemSelected: !!Q, extension: ne, mimeType: e.mimeType }, le, ue) : null, Ue = {
836
- ...Ce ? q?.hoverStyle : {},
837
- ...C && K ? q?.directorySelectedStyle : {},
838
- ...!C && (K || Q) ? q?.itemSelectedStyle : {}
839
- }, tt = Bn(e.data), mt = { width: ue, height: ue }, Te = Fn(Se), Ie = n + t * Z;
840
- return /* @__PURE__ */ Ne(
1240
+ })(), A0 = W(x.entry, p0, C0, P0, e.className), Y0 = W(x.expandIcon, T0, (j || e0) && x.expandIconSelected), O = W(x.typeIcon, (j || e0) && x.typeIconSelected), t1 = W(x.name, L0, I && x.nameDirectory, I && n0, !I && G0, (j || e0) && x.nameSelected), f1 = qe({ isDirectory: I, isExpanded: m0, showExpandIcons: J && a >= 0, useCanvasExpandIcons: H0, expandIconSize: z }), X0 = (I ? $ : G) ? Qe({ entry: e, isDirectory: I, isExpanded: m0, isSelected: j, isItemSelected: !!e0, extension: r0, mimeType: e.mimeType }, i0, u0) : null, U0 = {
1241
+ ...I0 ? Q?.hoverStyle : {},
1242
+ ...I && j ? Q?.directorySelectedStyle : {},
1243
+ ...!I && (j || e0) ? Q?.itemSelectedStyle : {}
1244
+ }, a1 = e2(e.data), p1 = { width: u0, height: u0 }, x0 = Ue(V0), M0 = n + a * q;
1245
+ return /* @__PURE__ */ b0(
841
1246
  "div",
842
1247
  {
843
- className: pe,
1248
+ className: A0,
844
1249
  style: {
845
- ...Te,
846
- ...Ue,
847
- ...Re,
1250
+ ...x0,
1251
+ ...U0,
1252
+ ...S0,
848
1253
  ...e.style,
849
1254
  // 箱の性質はホストのスタイルの後に書く。スプレッドは値が undefined のキーも写し、React はそれを空にするため、
850
1255
  // 前に書くと検査が通す { height: undefined } が行の高さを消す
851
- paddingLeft: `${Math.max(0, Ie)}px`,
852
- transform: Ie < 0 ? `translateX(${Ie}px)` : void 0,
853
- width: Ie < 0 ? `calc(100% + ${-Ie}px)` : void 0,
854
- height: `${f}px`
1256
+ paddingLeft: `${Math.max(0, M0)}px`,
1257
+ transform: M0 < 0 ? `translateX(${M0}px)` : void 0,
1258
+ width: M0 < 0 ? `calc(100% + ${-M0}px)` : void 0,
1259
+ height: `${u}px`
855
1260
  },
856
- ...tt,
857
- "data-entry-type": C ? "directory" : "file",
858
- "data-entry-expanded": C ? String(he) : void 0,
859
- "data-entry-selected": K ? "true" : void 0,
860
- "data-entry-item-selected": Q ? "true" : void 0,
861
- onClick: we,
862
- onMouseEnter: () => Fe(!0),
863
- onMouseLeave: () => Fe(!1),
864
- onFocus: (V) => w(c, e.absolutePath, V.currentTarget),
865
- onBlur: (V) => R(e.absolutePath, V.currentTarget),
866
- ref: X,
867
- onKeyDown: (V) => {
868
- if (V.key === "Enter" || V.key === " ") {
869
- V.preventDefault(), V.repeat || we(V);
1261
+ ...a1,
1262
+ "data-entry-type": I ? "directory" : "file",
1263
+ "data-entry-expanded": I ? String(m0) : void 0,
1264
+ "data-entry-selected": j ? "true" : void 0,
1265
+ "data-entry-item-selected": e0 ? "true" : void 0,
1266
+ onClick: y0,
1267
+ onMouseEnter: () => O0(!0),
1268
+ onMouseLeave: () => O0(!1),
1269
+ onFocus: (X) => Z(d, e.absolutePath, X.currentTarget),
1270
+ onBlur: (X) => E(e.absolutePath, X.currentTarget),
1271
+ ref: Y,
1272
+ onKeyDown: (X) => {
1273
+ if (X.key === "Enter" || X.key === " ") {
1274
+ X.preventDefault(), X.repeat || y0(X);
870
1275
  return;
871
1276
  }
872
- N(V, c);
1277
+ M(X, d);
873
1278
  },
874
- tabIndex: d ? 0 : -1,
1279
+ tabIndex: h ? 0 : -1,
875
1280
  role: "treeitem",
876
- "aria-expanded": C ? he : void 0,
1281
+ "aria-expanded": I ? m0 : void 0,
877
1282
  "aria-level": r + 1,
878
- "aria-posinset": s,
879
- "aria-setsize": a,
880
- "aria-selected": L === "none" ? void 0 : i,
881
- "aria-current": $e ? "page" : void 0,
882
- "aria-label": `${e.name} (${C ? m : h})`,
1283
+ "aria-posinset": o,
1284
+ "aria-setsize": s,
1285
+ "aria-selected": N === "none" ? void 0 : c,
1286
+ "aria-current": $0 ? "page" : void 0,
1287
+ "aria-label": `${e.name} (${I ? p : f})`,
883
1288
  children: [
884
- (J || be) && /* @__PURE__ */ u("span", { className: Xe, style: { ...ve, width: se, height: se }, children: ft }),
885
- (C ? $ : Y) && /* @__PURE__ */ u("span", { className: F, style: mt, children: Ve }),
886
- /* @__PURE__ */ u(
1289
+ (J || H0) && /* @__PURE__ */ m("span", { className: Y0, style: { ...Z0, width: c0, height: c0 }, children: f1 }),
1290
+ (I ? $ : G) && /* @__PURE__ */ m("span", { className: O, style: p1, children: X0 }),
1291
+ /* @__PURE__ */ m(
887
1292
  "span",
888
1293
  {
889
- className: et,
1294
+ className: t1,
890
1295
  style: {
891
- ...Te,
892
- ...A,
893
- ...C ? M : I
1296
+ ...x0,
1297
+ ...k,
1298
+ ...I ? D : w
894
1299
  },
895
- "data-entry-type": C ? "directory" : "file",
1300
+ "data-entry-type": I ? "directory" : "file",
896
1301
  "data-entry-role": "name",
897
1302
  children: e.label ?? e.name
898
1303
  }
@@ -901,646 +1306,646 @@ const Co = (e) => {
901
1306
  }
902
1307
  );
903
1308
  },
904
- (e, t) => {
905
- if (e.entry !== t.entry) return !1;
906
- const n = e.entry.children !== void 0, r = t.entry.children !== void 0, s = n && e.isDirOpen(e.entry.absolutePath), a = r && t.isDirOpen(t.entry.absolutePath);
907
- return e.indentLevel === t.indentLevel && e.originX === t.originX && // 位置情報は aria として描画されるため、変化したら再描画が必要
908
- e.depth === t.depth && e.positionInSet === t.positionInSet && e.setSize === t.setSize && e.isSelectedForAria === t.isSelectedForAria && e.flatIndex === t.flatIndex && e.isActive === t.isActive && e.rowHeight === t.rowHeight && // 種別語はアクセシブルネームとして描画されるため、ロケール / 上書きの変更で再描画が必要
909
- e.entryKindDirectory === t.entryKindDirectory && e.entryKindFile === t.entryKindFile && s === a && e.selection.selectedPath === t.selection.selectedPath && e.selection.currentPath === t.selection.currentPath && e.selection.mode === t.selection.mode && e.selection.selectedItems === t.selection.selectedItems && e.visual.iconOverrides === t.visual.iconOverrides && e.visual.showExpandIcons === t.visual.showExpandIcons && e.visual.showDirectoryIcons === t.visual.showDirectoryIcons && e.visual.showFileIcons === t.visual.showFileIcons && e.visual.useCanvasExpandIcons === t.visual.useCanvasExpandIcons && e.visual.expandIconSize === t.visual.expandIconSize && e.visual.typeIconSize === t.visual.typeIconSize && e.visual.fontSize === t.visual.fontSize && e.visual.indentSize === t.visual.indentSize && e.visual.highlightStyles === t.visual.highlightStyles && e.visual.entryClassName === t.visual.entryClassName && e.visual.entryStyle === t.visual.entryStyle && e.visual.nameClassName === t.visual.nameClassName && e.visual.nameStyle === t.visual.nameStyle && e.visual.directoryNameClassName === t.visual.directoryNameClassName && e.visual.directoryNameStyle === t.visual.directoryNameStyle && e.visual.fileNameClassName === t.visual.fileNameClassName && e.visual.fileNameStyle === t.visual.fileNameStyle && e.visual.expandIconClassName === t.visual.expandIconClassName && e.visual.expandIconStyle === t.visual.expandIconStyle;
1309
+ (e, a) => {
1310
+ if (e.entry !== a.entry) return !1;
1311
+ const n = e.entry.children !== void 0, r = a.entry.children !== void 0, o = n && e.isDirOpen(e.entry.absolutePath), s = r && a.isDirOpen(a.entry.absolutePath);
1312
+ return e.indentLevel === a.indentLevel && e.originX === a.originX && // 位置情報は aria として描画されるため、変化したら再描画が必要
1313
+ e.depth === a.depth && e.positionInSet === a.positionInSet && e.setSize === a.setSize && e.isSelectedForAria === a.isSelectedForAria && e.flatIndex === a.flatIndex && e.isActive === a.isActive && e.rowHeight === a.rowHeight && // 種別語はアクセシブルネームとして描画されるため、ロケール / 上書きの変更で再描画が必要
1314
+ e.entryKindDirectory === a.entryKindDirectory && e.entryKindFile === a.entryKindFile && o === s && e.selection.selectedPath === a.selection.selectedPath && e.selection.currentPath === a.selection.currentPath && e.selection.mode === a.selection.mode && e.selection.selectedItems === a.selection.selectedItems && e.visual.iconOverrides === a.visual.iconOverrides && e.visual.showExpandIcons === a.visual.showExpandIcons && e.visual.showDirectoryIcons === a.visual.showDirectoryIcons && e.visual.showFileIcons === a.visual.showFileIcons && e.visual.useCanvasExpandIcons === a.visual.useCanvasExpandIcons && e.visual.expandIconSize === a.visual.expandIconSize && e.visual.typeIconSize === a.visual.typeIconSize && e.visual.fontSize === a.visual.fontSize && e.visual.indentSize === a.visual.indentSize && e.visual.highlightStyles === a.visual.highlightStyles && e.visual.entryClassName === a.visual.entryClassName && e.visual.entryStyle === a.visual.entryStyle && e.visual.nameClassName === a.visual.nameClassName && e.visual.nameStyle === a.visual.nameStyle && e.visual.directoryNameClassName === a.visual.directoryNameClassName && e.visual.directoryNameStyle === a.visual.directoryNameStyle && e.visual.fileNameClassName === a.visual.fileNameClassName && e.visual.fileNameStyle === a.visual.fileNameStyle && e.visual.expandIconClassName === a.visual.expandIconClassName && e.visual.expandIconStyle === a.visual.expandIconStyle;
910
1315
  }
911
1316
  );
912
- qn.displayName = "DirectoryEntryItem";
913
- const Qn = (e) => {
914
- const t = [];
1317
+ h2.displayName = "DirectoryEntryItem";
1318
+ const u2 = (e) => {
1319
+ const a = [];
915
1320
  if (e.children)
916
1321
  for (const n of e.children)
917
- n.type === "directory" && (t.push(n.absolutePath), t.push(...Qn(n)));
918
- return t;
919
- }, Xo = ({
1322
+ n.type === "directory" && (a.push(n.absolutePath), a.push(...u2(n)));
1323
+ return a;
1324
+ }, o8 = ({
920
1325
  entries: e,
921
- expansion: { toggle: t, isExpanded: n, expandMultiple: r, collapseMultiple: s, isPending: a, alwaysExpanded: i = !1, doubleClickAction: c = "recursive" },
922
- selection: { onEntryClick: d, selectedPath: y, currentPath: N, mode: w = "none", selectedItems: R, onSelectionChange: f },
1326
+ expansion: { toggle: a, isExpanded: n, expandMultiple: r, collapseMultiple: o, isPending: s, alwaysExpanded: c = !1, doubleClickAction: d = "recursive" },
1327
+ selection: { onEntryClick: h, selectedPath: A, currentPath: M, mode: Z = "none", selectedItems: E, onSelectionChange: u },
923
1328
  visual: {
924
- className: m,
925
- style: h,
926
- ariaLabel: S,
927
- ariaLabelledBy: b,
928
- lineColor: z = _n,
929
- showTreeLines: x = !0,
930
- showExpandIcons: k = !0,
931
- showDirectoryIcons: p = !0,
932
- showFileIcons: L = !0,
933
- iconOverrides: D,
934
- expandIconSize: P,
935
- typeIconSize: le,
1329
+ className: p,
1330
+ style: f,
1331
+ ariaLabel: V,
1332
+ ariaLabelledBy: H,
1333
+ lineColor: T = Ye,
1334
+ showTreeLines: S = !0,
1335
+ showExpandIcons: L = !0,
1336
+ showDirectoryIcons: v = !0,
1337
+ showFileIcons: N = !0,
1338
+ iconOverrides: R,
1339
+ expandIconSize: C,
1340
+ typeIconSize: i0,
936
1341
  fontSize: J,
937
1342
  indentSize: $,
938
- itemHeight: Y = Tt,
939
- removeRootIndent: be = !1,
940
- highlightStyles: B,
941
- entryClassName: ue,
942
- entryStyle: Se,
943
- nameClassName: Z,
944
- nameStyle: q,
945
- directoryNameClassName: _e,
946
- directoryNameStyle: Re,
947
- fileNameClassName: ke,
948
- fileNameStyle: A,
949
- expandIconClassName: te,
950
- expandIconStyle: M
1343
+ itemHeight: G = x1,
1344
+ removeRootIndent: H0 = !1,
1345
+ highlightStyles: z,
1346
+ entryClassName: u0,
1347
+ entryStyle: V0,
1348
+ nameClassName: q,
1349
+ nameStyle: Q,
1350
+ directoryNameClassName: P0,
1351
+ directoryNameStyle: S0,
1352
+ fileNameClassName: L0,
1353
+ fileNameStyle: k,
1354
+ expandIconClassName: n0,
1355
+ expandIconStyle: D
951
1356
  } = {},
952
- virtualScroll: Ye,
953
- grid: I,
954
- sort: ze,
955
- locale: ve,
956
- labels: Ce,
957
- ref: Fe
1357
+ virtualScroll: G0,
1358
+ grid: w,
1359
+ sort: T0,
1360
+ locale: Z0,
1361
+ labels: I0,
1362
+ ref: O0
958
1363
  }) => {
959
- const C = An(ve), he = O(() => uo(ve, Ce), [ve, Ce]), K = zo(ho(he)), { entryKindDirectory: $e, entryKindFile: Q } = he, X = O(() => po({ indentSize: $, typeIconSize: le, fontSize: J }), [$, le, J]);
960
- O(() => {
961
- Ge(Se, { option: "visual.entryStyle" }), Ge(B?.hoverStyle, { option: "visual.highlightStyles.hoverStyle" }), Ge(B?.directorySelectedStyle, { option: "visual.highlightStyles.directorySelectedStyle" }), Ge(B?.itemSelectedStyle, { option: "visual.highlightStyles.itemSelectedStyle" }), eo(M, { option: "visual.expandIconStyle" });
962
- }, [Se, B, M]);
963
- const ne = I !== void 0, we = fr(Do, Ao, _o), me = H(null), Pe = H(null), pe = H(null), [Xe, F] = de(0), [et, ft] = de(0), [Ve, Ue] = de(0), [tt, mt] = de(null), {
964
- overscanCount: Te = 15,
965
- className: Ie,
966
- background: V,
967
- onScroll: $t,
968
- onRangeChange: Mt,
969
- onScrollAdjust: Ht,
970
- liveRegion: Bt,
971
- initialScrollIndex: Wt,
972
- initialScrollOffset: Me,
973
- initialScrollAnchor: jt,
974
- callbackThrottleMs: Kt = 5,
975
- contentInsets: Gt,
976
- onItemFocus: Yt,
977
- viewportHeightOverride: re,
978
- scrollBarOptions: pt,
979
- behaviorOptions: Xt,
980
- preserveScrollAnchor: Vt = !1,
981
- getItemKey: er,
1364
+ const I = Re(Z0), m0 = F(() => wt(Z0, I0), [Z0, I0]), j = Ut(bt(m0)), { entryKindDirectory: $0, entryKindFile: e0 } = m0, Y = F(() => It({ indentSize: $, typeIconSize: i0, fontSize: J }), [$, i0, J]);
1365
+ F(() => {
1366
+ K0(V0, { option: "visual.entryStyle" }), K0(z?.hoverStyle, { option: "visual.highlightStyles.hoverStyle" }), K0(z?.directorySelectedStyle, { option: "visual.highlightStyles.directorySelectedStyle" }), K0(z?.itemSelectedStyle, { option: "visual.highlightStyles.itemSelectedStyle" }), pt(D, { option: "visual.expandIconStyle" });
1367
+ }, [V0, z, D]);
1368
+ const r0 = w !== void 0, y0 = S2(Gt, Yt, Xt), p0 = _(null), C0 = _(null), A0 = _(null), [Y0, O] = h0(0), [t1, f1] = h0(0), [X0, U0] = h0(0), [a1, p1] = h0(null), {
1369
+ overscanCount: x0 = 15,
1370
+ className: M0,
1371
+ background: X,
1372
+ onScroll: $1,
1373
+ onRangeChange: D1,
1374
+ onScrollAdjust: _1,
1375
+ liveRegion: z1,
1376
+ initialScrollIndex: B1,
1377
+ initialScrollOffset: D0,
1378
+ initialScrollAnchor: W1,
1379
+ callbackThrottleMs: j1 = 5,
1380
+ contentInsets: K1,
1381
+ onItemFocus: G1,
1382
+ viewportHeightOverride: l0,
1383
+ scrollBarOptions: A1,
1384
+ behaviorOptions: Y1,
1385
+ preserveScrollAnchor: X1 = !1,
1386
+ getItemKey: m2,
982
1387
  // 素通しの pass-through。型で受け付けているものは実際に転送する
983
- testId: Ut,
984
- contentProps: yt
985
- } = Ye ?? {}, Jt = O(
986
- () => ne ? { ...yt, role: "rowgroup" } : {
987
- ...yt,
1388
+ testId: U1,
1389
+ contentProps: v1
1390
+ } = G0 ?? {}, J1 = F(
1391
+ () => r0 ? { ...v1, role: "rowgroup" } : {
1392
+ ...v1,
988
1393
  role: "tree",
989
- "aria-label": b ? void 0 : S,
990
- "aria-labelledby": b,
991
- "aria-multiselectable": w === "multiple" ? !0 : void 0,
992
- "aria-busy": a ? !0 : void 0
1394
+ "aria-label": H ? void 0 : V,
1395
+ "aria-labelledby": H,
1396
+ "aria-multiselectable": Z === "multiple" ? !0 : void 0,
1397
+ "aria-busy": s ? !0 : void 0
993
1398
  },
994
- [ne, yt, S, b, w, a]
995
- ), Zt = O(() => ({ ...Xt, enableKeyboardNavigation: !1 }), [Xt]), [nt, qt] = de(typeof Me == "number" ? Me : 0), gt = H(typeof Me == "number" ? Me : 0), Qt = E(
996
- (o, l) => {
997
- gt.current = o, qt(o), $t?.(o, l);
1399
+ [r0, v1, V, H, Z, s]
1400
+ ), q1 = F(() => ({ ...Y1, enableKeyboardNavigation: !1 }), [Y1]), [n1, Q1] = h0(typeof D0 == "number" ? D0 : 0), g1 = _(typeof D0 == "number" ? D0 : 0), ee = b(
1401
+ (l, i) => {
1402
+ g1.current = l, Q1(l), $1?.(l, i);
998
1403
  },
999
- [$t]
1000
- ), en = E(
1001
- (o) => {
1002
- const { renderingStartIndex: l, renderingEndIndex: g } = o;
1003
- mt((v) => v && v.renderStart === l && v.renderEnd === g ? v : { renderStart: l, renderEnd: g }), Mt?.(o);
1404
+ [$1]
1405
+ ), te = b(
1406
+ (l) => {
1407
+ const { renderingStartIndex: i, renderingEndIndex: g } = l;
1408
+ p1((y) => y && y.renderStart === i && y.renderEnd === g ? y : { renderStart: i, renderEnd: g }), D1?.(l);
1004
1409
  },
1005
- [Mt]
1410
+ [D1]
1006
1411
  );
1007
- Ae(() => {
1008
- Lo();
1009
- }, []), Ae(() => {
1010
- const o = me.current, l = ne ? Pe.current : o, g = () => {
1011
- if (o) {
1012
- const _ = o.clientWidth;
1013
- ft((G) => Math.abs(G - _) > 1 ? _ : G);
1412
+ k0(() => {
1413
+ Kt();
1414
+ }, []), k0(() => {
1415
+ const l = p0.current, i = r0 ? C0.current : l, g = () => {
1416
+ if (l) {
1417
+ const P = l.clientWidth;
1418
+ f1((K) => Math.abs(K - P) > 1 ? P : K);
1014
1419
  }
1015
- if (typeof re == "number")
1016
- F((_) => Math.abs(_ - re) > 1 ? re : _);
1017
- else if (l) {
1018
- const _ = l.clientHeight;
1019
- F((G) => Math.abs(G - _) > 1 ? _ : G);
1420
+ if (typeof l0 == "number")
1421
+ O((P) => Math.abs(P - l0) > 1 ? l0 : P);
1422
+ else if (i) {
1423
+ const P = i.clientHeight;
1424
+ O((K) => Math.abs(K - P) > 1 ? P : K);
1020
1425
  }
1021
1426
  };
1022
- if (!(o || l)) return F(0);
1427
+ if (!(l || i)) return O(0);
1023
1428
  g();
1024
- const v = new ResizeObserver(g);
1025
- return o && v.observe(o), l && l !== o && v.observe(l), () => v.disconnect();
1026
- }, [re, ne]);
1027
- const He = typeof re == "number" ? re : Xe, fe = E((o) => i || (we ? n(o) : !1), [we, n, i]), tn = j(T.container, a && T.containerPending, m), nn = O(
1429
+ const y = new ResizeObserver(g);
1430
+ return l && y.observe(l), i && i !== l && y.observe(i), () => y.disconnect();
1431
+ }, [l0, r0]);
1432
+ const _0 = typeof l0 == "number" ? l0 : Y0, f0 = b((l) => c || (y0 ? n(l) : !1), [y0, n, c]), ae = W(x.container, s && x.containerPending, p), ne = F(
1028
1433
  () => ({
1029
- ...Oo,
1030
- ...h ?? {},
1031
- ...typeof re == "number" ? { height: re, minHeight: re } : {}
1434
+ ...jt,
1435
+ ...f ?? {},
1436
+ ...typeof l0 == "number" ? { height: l0, minHeight: l0 } : {}
1032
1437
  }),
1033
- [h, re]
1034
- ), bt = E(
1035
- (o, l) => {
1036
- const g = [o.absolutePath, ...Qn(o)], v = l || c;
1037
- if (g.every((ge) => fe(ge))) return s(g);
1038
- if (g.every((ge) => !fe(ge)) || v === "recursive") return r(g);
1039
- if (v === "toggle") return s(g);
1040
- console.warn(`[DirectoryTree] Unknown double click action: ${v}. No action taken.`);
1438
+ [f, l0]
1439
+ ), H1 = b(
1440
+ (l, i) => {
1441
+ const g = [l.absolutePath, ...u2(l)], y = i || d;
1442
+ if (g.every((g0) => f0(g0))) return o(g);
1443
+ if (g.every((g0) => !f0(g0)) || y === "recursive") return r(g);
1444
+ if (y === "toggle") return o(g);
1445
+ console.warn(`[DirectoryTree] Unknown double click action: ${y}. No action taken.`);
1041
1446
  },
1042
- [fe, r, s, c]
1043
- ), St = ne ? !1 : be, { flatItems: Oe, lineItems: vt, maxIndent: rn } = O(() => $o(e, fe, x, St, ze), [e, fe, x, St, ze]), rt = yo({ indentSize: X.indentSize, removeRootIndent: St, hasExpandBox: k || x }), ce = O(() => x ? bo(X, P, rt) : null, [x, X, P, rt]), W = O(() => Oe.map((o, l) => ({ ...o, rowHeight: go(Y, o.entry, l) })), [Oe, Y]), Ee = O(() => W.map((o) => o.rowHeight), [W]), Le = O(() => {
1044
- const o = new Array(Ee.length + 1);
1045
- o[0] = 0;
1046
- for (let l = 0; l < Ee.length; l++)
1047
- o[l + 1] = o[l] + Ee[l];
1048
- return o;
1049
- }, [Ee]), on = E((o) => W[o]?.rowHeight ?? Tt, [W]), tr = E((o) => W[o]?.entry.absolutePath ?? o, [W]), sn = er ?? tr, Be = y ?? null, wt = N ?? null, [an, Je] = de(() => ({ selectedPath: Be, selectionGeneration: 0, anchor: null })), It = Tn(an, Be);
1050
- It !== an && Je((o) => Tn(o, Be));
1051
- const ot = O(() => Co(Oe), [Oe]), We = O(() => To(ot, It), [ot, It]), Ze = H(/* @__PURE__ */ new Map()), st = H(null), [it] = de(fo), qe = H(null), [nr, ln] = de(!0), Et = H(Oe);
1052
- Et.current = Oe;
1053
- const cn = H(fe);
1054
- cn.current = fe;
1055
- const xt = H(t);
1056
- xt.current = t;
1057
- const dn = H(ot);
1058
- dn.current = ot;
1059
- const Nt = H(We);
1060
- Nt.current = We;
1061
- const un = H(Yt);
1062
- un.current = Yt;
1063
- const De = E((o) => {
1064
- const l = pe.current;
1065
- return !l || l.getViewportSize() <= 0 ? !1 : (l.scrollToIndex(o, { align: "nearest" }), !0);
1066
- }, []), ye = E(
1067
- (o) => {
1068
- const l = Ze.current.get(o);
1069
- if (l === void 0) {
1070
- qe.current = o, De(o) || (qe.current = null);
1447
+ [f0, r, o, d]
1448
+ ), V1 = r0 ? !1 : H0, { flatItems: F0, lineItems: Z1, maxIndent: re } = F(() => qt(e, f0, S, V1, T0), [e, f0, S, V1, T0]), r1 = Ct({ indentSize: Y.indentSize, removeRootIndent: V1, hasExpandBox: L || S }), d0 = F(() => S ? Ft(Y, C, r1) : null, [S, Y, C, r1]), B = F(() => F0.map((l, i) => ({ ...l, rowHeight: xt(G, l.entry, i) })), [F0, G]), E0 = F(() => B.map((l) => l.rowHeight), [B]), N0 = F(() => {
1449
+ const l = new Array(E0.length + 1);
1450
+ l[0] = 0;
1451
+ for (let i = 0; i < E0.length; i++)
1452
+ l[i + 1] = l[i] + E0[i];
1453
+ return l;
1454
+ }, [E0]), le = b((l) => B[l]?.rowHeight ?? x1, [B]), f2 = b((l) => B[l]?.entry.absolutePath ?? l, [B]), oe = m2 ?? f2, z0 = A ?? null, y1 = M ?? null, [ce, J0] = h0(() => ({ selectedPath: z0, selectionGeneration: 0, anchor: null })), M1 = Ce(ce, z0);
1455
+ M1 !== ce && J0((l) => Ce(l, z0));
1456
+ const l1 = F(() => zt(F0), [F0]), B0 = F(() => Wt(l1, M1), [l1, M1]), q0 = _(/* @__PURE__ */ new Map()), o1 = _(null), [c1] = h0(St), Q0 = _(null), [p2, se] = h0(!0), E1 = _(F0);
1457
+ E1.current = F0;
1458
+ const ie = _(f0);
1459
+ ie.current = f0;
1460
+ const w1 = _(a);
1461
+ w1.current = a;
1462
+ const de = _(l1);
1463
+ de.current = l1;
1464
+ const b1 = _(B0);
1465
+ b1.current = B0;
1466
+ const he = _(G1);
1467
+ he.current = G1;
1468
+ const R0 = b((l) => {
1469
+ const i = A0.current;
1470
+ return !i || i.getViewportSize() <= 0 ? !1 : (i.scrollToIndex(l, { align: "nearest" }), !0);
1471
+ }, []), v0 = b(
1472
+ (l) => {
1473
+ const i = q0.current.get(l);
1474
+ if (i === void 0) {
1475
+ Q0.current = l, R0(l) || (Q0.current = null);
1071
1476
  return;
1072
1477
  }
1073
- qe.current = null, De(o), l.focus({ preventScroll: !0 });
1478
+ Q0.current = null, R0(l), i.focus({ preventScroll: !0 });
1074
1479
  },
1075
- [De]
1076
- ), hn = E((o, l) => {
1077
- if (l)
1078
- Ze.current.set(o, l), qe.current === o ? (qe.current = null, l.focus({ preventScroll: !0 })) : l.contains(l.ownerDocument.activeElement) && Je((g) => g.anchor === null ? g : { ...g, anchor: { ...g.anchor, focused: !0 } });
1480
+ [R0]
1481
+ ), ue = b((l, i) => {
1482
+ if (i)
1483
+ q0.current.set(l, i), Q0.current === l ? (Q0.current = null, i.focus({ preventScroll: !0 })) : i.contains(i.ownerDocument.activeElement) && J0((g) => g.anchor === null ? g : { ...g, anchor: { ...g.anchor, focused: !0 } });
1079
1484
  else {
1080
- const g = Ze.current.get(o);
1081
- Ze.current.delete(o), g?.contains(g.ownerDocument.activeElement) && Je((v) => v.anchor === null ? v : { ...v, anchor: { ...v.anchor, focused: !1 } });
1485
+ const g = q0.current.get(l);
1486
+ q0.current.delete(l), g?.contains(g.ownerDocument.activeElement) && J0((y) => y.anchor === null ? y : { ...y, anchor: { ...y.anchor, focused: !1 } });
1082
1487
  }
1083
- o === Nt.current && ln(l !== null);
1488
+ l === b1.current && se(i !== null);
1084
1489
  }, []);
1085
- En(() => {
1086
- ln(Ze.current.has(We));
1087
- }, [We]);
1088
- const Rt = E(
1089
- (o, l, g) => {
1090
- const v = st.current === g;
1091
- st.current = null, v || (Je((_) => Po(_, l)), it.landedOn(g) || De(o)), un.current?.(o);
1490
+ Me(() => {
1491
+ se(q0.current.has(B0));
1492
+ }, [B0]);
1493
+ const S1 = b(
1494
+ (l, i, g) => {
1495
+ const y = o1.current === g;
1496
+ o1.current = null, y || (J0((P) => Bt(P, i)), c1.landedOn(g) || R0(l)), he.current?.(l);
1092
1497
  },
1093
- [De, it]
1094
- ), at = E((o) => it.mark(o.nativeEvent), [it]), kt = E((o, l) => {
1095
- const { ownerDocument: g } = l;
1096
- if (!g.hasFocus() && l.contains(g.activeElement)) {
1097
- st.current = l;
1498
+ [R0, c1]
1499
+ ), s1 = b((l) => c1.mark(l.nativeEvent), [c1]), L1 = b((l, i) => {
1500
+ const { ownerDocument: g } = i;
1501
+ if (!g.hasFocus() && i.contains(g.activeElement)) {
1502
+ o1.current = i;
1098
1503
  return;
1099
1504
  }
1100
- st.current = null, Je((v) => v.anchor !== null && v.anchor.path === o ? { ...v, anchor: { ...v.anchor, focused: !1 } } : v);
1101
- }, []), rr = E(() => ye(Nt.current), [ye]), Ct = E(
1102
- (o, l) => {
1103
- const g = Ln(l), v = Et.current.length;
1104
- if (!Number.isInteger(o) || o < 0 || o >= v)
1105
- throw new RangeError(`[directory-tree] scrollToIndex: ${String(o)} is not a row index (${v === 0 ? "the tree has no rows" : `expected an integer in 0..${String(v - 1)}`}).`);
1505
+ o1.current = null, J0((y) => y.anchor !== null && y.anchor.path === l ? { ...y, anchor: { ...y.anchor, focused: !1 } } : y);
1506
+ }, []), A2 = b(() => v0(b1.current), [v0]), I1 = b(
1507
+ (l, i) => {
1508
+ const g = Fe(i), y = E1.current.length;
1509
+ if (!Number.isInteger(l) || l < 0 || l >= y)
1510
+ throw new RangeError(`[directory-tree] scrollToIndex: ${String(l)} is not a row index (${y === 0 ? "the tree has no rows" : `expected an integer in 0..${String(y - 1)}`}).`);
1106
1511
  if (g === "nearest") {
1107
- De(o);
1512
+ R0(l);
1108
1513
  return;
1109
1514
  }
1110
- pe.current?.scrollToIndex(o, { align: g });
1515
+ A0.current?.scrollToIndex(l, { align: g });
1111
1516
  },
1112
- [De]
1517
+ [R0]
1113
1518
  );
1114
- mr(
1115
- Fe,
1519
+ L2(
1520
+ O0,
1116
1521
  () => ({
1117
- scrollToIndex: Ct,
1118
- scrollToPath: (o, l) => {
1119
- Ln(l);
1120
- const g = dn.current.get(o);
1121
- return g === void 0 ? !1 : (Ct(g, l), !0);
1522
+ scrollToIndex: I1,
1523
+ scrollToPath: (l, i) => {
1524
+ Fe(i);
1525
+ const g = de.current.get(l);
1526
+ return g === void 0 ? !1 : (I1(g, i), !0);
1122
1527
  },
1123
- getScrollAnchor: () => pe.current?.getScrollAnchor() ?? null
1528
+ getScrollAnchor: () => A0.current?.getScrollAnchor() ?? null
1124
1529
  }),
1125
- [Ct]
1530
+ [I1]
1126
1531
  );
1127
- const fn = E(
1128
- (o, l) => {
1129
- if (o.altKey || o.ctrlKey || o.metaKey)
1532
+ const me = b(
1533
+ (l, i) => {
1534
+ if (l.altKey || l.ctrlKey || l.metaKey)
1130
1535
  return;
1131
- const g = Et.current, v = g.length - 1;
1132
- if (v < 0) return;
1133
- const _ = g[l], G = _?.entry.children !== void 0, ge = G && cn.current(_.entry.absolutePath);
1134
- switch (o.key) {
1536
+ const g = E1.current, y = g.length - 1;
1537
+ if (y < 0) return;
1538
+ const P = g[i], K = P?.entry.children !== void 0, g0 = K && ie.current(P.entry.absolutePath);
1539
+ switch (l.key) {
1135
1540
  case "ArrowDown":
1136
- o.preventDefault(), ye(Math.min(l + 1, v));
1541
+ l.preventDefault(), v0(Math.min(i + 1, y));
1137
1542
  break;
1138
1543
  case "ArrowUp":
1139
- o.preventDefault(), ye(Math.max(l - 1, 0));
1544
+ l.preventDefault(), v0(Math.max(i - 1, 0));
1140
1545
  break;
1141
1546
  case "Home":
1142
- o.preventDefault(), ye(0);
1547
+ l.preventDefault(), v0(0);
1143
1548
  break;
1144
1549
  case "End":
1145
- o.preventDefault(), ye(v);
1550
+ l.preventDefault(), v0(y);
1146
1551
  break;
1147
1552
  case "ArrowRight":
1148
- o.preventDefault(), G && !ge ? xt.current(_.entry.absolutePath) : G && l < v && g[l + 1].depth > _.depth && ye(l + 1);
1553
+ l.preventDefault(), K && !g0 ? w1.current(P.entry.absolutePath) : K && i < y && g[i + 1].depth > P.depth && v0(i + 1);
1149
1554
  break;
1150
1555
  case "ArrowLeft": {
1151
- if (o.preventDefault(), G && ge) {
1152
- xt.current(_.entry.absolutePath);
1556
+ if (l.preventDefault(), K && g0) {
1557
+ w1.current(P.entry.absolutePath);
1153
1558
  break;
1154
1559
  }
1155
- const lr = _?.depth ?? 0;
1156
- for (let ut = l - 1; ut >= 0; ut--)
1157
- if (g[ut].depth < lr) {
1158
- ye(ut);
1560
+ const Z2 = P?.depth ?? 0;
1561
+ for (let u1 = i - 1; u1 >= 0; u1--)
1562
+ if (g[u1].depth < Z2) {
1563
+ v0(u1);
1159
1564
  break;
1160
1565
  }
1161
1566
  break;
1162
1567
  }
1163
1568
  }
1164
1569
  },
1165
- [ye]
1166
- ), lt = O(() => ce === null || vt.length === 0 ? { segmentsByItem: [], glyphsByItem: [] } : Ho(vt, Ee, Le, ce), [vt, Ee, Le, ce]), ct = O(() => ce === null || e.length === 0 ? 0 : ce.originX + rn * ce.indentSize + se + ce.typeIconSize, [e.length, rn, ce]), { renderStart: mn, renderEnd: pn, lookaheadEnd: yn } = O(
1167
- () => Mo(W.length, He, Te, tt, nt, Le),
1168
- [W.length, He, Te, tt, nt, Le]
1169
- ), Pt = O(() => ce === null || ct <= 0 || He <= 0 || lt.segmentsByItem.length === 0 ? null : /* @__PURE__ */ u("div", { className: "pointer-events-none absolute inset-0 z-1", "aria-hidden": "true", children: /* @__PURE__ */ u("div", { className: "absolute top-0 left-0", style: { width: ct, height: He }, children: /* @__PURE__ */ u(
1170
- Zn,
1570
+ [v0]
1571
+ ), i1 = F(() => d0 === null || Z1.length === 0 ? { segmentsByItem: [], glyphsByItem: [] } : e8(Z1, E0, N0, d0), [Z1, E0, N0, d0]), d1 = F(() => d0 === null || e.length === 0 ? 0 : d0.originX + re * d0.indentSize + c0 + d0.typeIconSize, [e.length, re, d0]), { renderStart: fe, renderEnd: pe, lookaheadEnd: Ae } = F(
1572
+ () => Qt(B.length, _0, x0, a1, n1, N0),
1573
+ [B.length, _0, x0, a1, n1, N0]
1574
+ ), C1 = F(() => d0 === null || d1 <= 0 || _0 <= 0 || i1.segmentsByItem.length === 0 ? null : /* @__PURE__ */ m("div", { className: "pointer-events-none absolute inset-0 z-1", "aria-hidden": "true", children: /* @__PURE__ */ m("div", { className: "absolute top-0 left-0", style: { width: d1, height: _0 }, children: /* @__PURE__ */ m(
1575
+ d2,
1171
1576
  {
1172
- segmentsByItem: lt.segmentsByItem,
1173
- glyphsByItem: lt.glyphsByItem,
1174
- itemHeight: Ee[0] ?? Tt,
1175
- width: ct,
1176
- viewportHeight: He,
1177
- scrollPosition: nt,
1178
- color: z,
1179
- expandGlyphColor: z,
1180
- expandGlyphSize: ce.glyphSize,
1181
- renderStartIndex: mn,
1182
- renderEndIndex: pn,
1183
- lookaheadEndIndex: yn
1577
+ segmentsByItem: i1.segmentsByItem,
1578
+ glyphsByItem: i1.glyphsByItem,
1579
+ itemHeight: E0[0] ?? x1,
1580
+ width: d1,
1581
+ viewportHeight: _0,
1582
+ scrollPosition: n1,
1583
+ color: T,
1584
+ expandGlyphColor: T,
1585
+ expandGlyphSize: d0.glyphSize,
1586
+ renderStartIndex: fe,
1587
+ renderEndIndex: pe,
1588
+ lookaheadEndIndex: Ae
1184
1589
  }
1185
- ) }) }), [ct, He, mn, pn, yn, nt, lt, z, ce, Ee]), gn = E((o) => W[o], [W]), bn = H(null);
1186
- En(() => {
1187
- const o = bn.current;
1188
- if (bn.current = { items: W, offsets: Le }, !Vt || !o || o.items === W)
1590
+ ) }) }), [d1, _0, fe, pe, Ae, n1, i1, T, d0, E0]), ve = b((l) => B[l], [B]), ge = _(null);
1591
+ Me(() => {
1592
+ const l = ge.current;
1593
+ if (ge.current = { items: B, offsets: N0 }, !X1 || !l || l.items === B)
1189
1594
  return;
1190
- const l = pe.current, g = l?.getScrollPosition(), v = typeof g == "number" && g >= 0 ? g : gt.current, _ = wo(o.items, o.offsets, v);
1191
- if (!_)
1595
+ const i = A0.current, g = i?.getScrollPosition(), y = typeof g == "number" && g >= 0 ? g : g1.current, P = kt(l.items, l.offsets, y);
1596
+ if (!P)
1192
1597
  return;
1193
- const G = Io(_, W, Le);
1194
- if (G === null || Math.abs(G - v) < 1)
1598
+ const K = Pt(P, B, N0);
1599
+ if (K === null || Math.abs(K - y) < 1)
1195
1600
  return;
1196
- const ge = l ? l.scrollTo(G) : G;
1197
- gt.current = ge, qt(ge);
1198
- }, [W, Le, Vt]);
1199
- const xe = I?.columns, je = I?.scrollBarWidth ?? pt?.width ?? Un, U = O(() => xe ? io({ measuredWidth: et, columns: xe, scrollBarWidth: je }) : null, [xe, et, je]), dt = O(() => xe ? so(xe) : "", [xe]), or = O(() => I?.showFooter && xe ? ao(e) : [], [I?.showFooter, xe, e]), Ke = U?.maxHScroll ?? 0;
1200
- Ae(() => {
1201
- Ue((o) => Ot(o, Ke));
1202
- }, [Ke]);
1203
- const Sn = E((o) => Ue((l) => Ot(l + o, Ke)), [Ke]), vn = O(
1601
+ const g0 = i ? i.scrollTo(K) : K;
1602
+ g1.current = g0, Q1(g0);
1603
+ }, [B, N0, X1]);
1604
+ const w0 = w?.columns, W0 = w?.scrollBarWidth ?? A1?.width ?? s2, U = F(() => w0 ? Zt({ measuredWidth: t1, columns: w0, scrollBarWidth: W0 }) : null, [w0, t1, W0]), h1 = F(() => w0 ? Vt(w0) : "", [w0]), v2 = F(() => w?.showFooter && w0 ? yt(e) : [], [w?.showFooter, w0, e]), j0 = U?.maxHScroll ?? 0;
1605
+ k0(() => {
1606
+ U0((l) => F1(l, j0));
1607
+ }, [j0]);
1608
+ const He = b((l) => U0((i) => F1(i + l, j0)), [j0]), Ve = F(
1204
1609
  () => ({
1205
- iconOverrides: D,
1206
- showExpandIcons: k,
1207
- showDirectoryIcons: p,
1208
- showFileIcons: L,
1209
- useCanvasExpandIcons: x,
1210
- expandIconSize: P,
1211
- typeIconSize: X.typeIconSize,
1212
- fontSize: X.fontSize,
1213
- indentSize: X.indentSize,
1214
- highlightStyles: B,
1215
- expandIconClassName: te,
1216
- expandIconStyle: M
1610
+ iconOverrides: R,
1611
+ showExpandIcons: L,
1612
+ showDirectoryIcons: v,
1613
+ showFileIcons: N,
1614
+ useCanvasExpandIcons: S,
1615
+ expandIconSize: C,
1616
+ typeIconSize: Y.typeIconSize,
1617
+ fontSize: Y.fontSize,
1618
+ indentSize: Y.indentSize,
1619
+ highlightStyles: z,
1620
+ expandIconClassName: n0,
1621
+ expandIconStyle: D
1217
1622
  }),
1218
- [D, k, p, L, x, P, X, B, te, M]
1219
- ), wn = O(
1220
- () => /* @__PURE__ */ u(
1221
- ur,
1623
+ [R, L, v, N, S, C, Y, z, n0, D]
1624
+ ), Ze = F(
1625
+ () => /* @__PURE__ */ m(
1626
+ E2,
1222
1627
  {
1223
- ref: pe,
1224
- itemCount: W.length,
1225
- getItem: gn,
1226
- getItemHeight: on,
1227
- getItemKey: sn,
1228
- testId: Ut,
1229
- contentProps: Jt,
1230
- locale: C,
1231
- labels: K,
1232
- viewportSize: typeof re == "number" ? re : void 0,
1233
- overscanCount: Te,
1234
- onScroll: Qt,
1235
- onRangeChange: en,
1236
- onScrollAdjust: Ht,
1237
- liveRegion: Bt,
1238
- className: Ie,
1239
- onWheelHorizontal: ne ? Sn : void 0,
1240
- background: /* @__PURE__ */ Ne(cr, { children: [
1241
- ne && U ? (
1628
+ ref: A0,
1629
+ itemCount: B.length,
1630
+ getItem: ve,
1631
+ getItemHeight: le,
1632
+ getItemKey: oe,
1633
+ testId: U1,
1634
+ contentProps: J1,
1635
+ locale: I,
1636
+ labels: j,
1637
+ viewportSize: typeof l0 == "number" ? l0 : void 0,
1638
+ overscanCount: x0,
1639
+ onScroll: ee,
1640
+ onRangeChange: te,
1641
+ onScrollAdjust: _1,
1642
+ liveRegion: z1,
1643
+ className: M0,
1644
+ onWheelHorizontal: r0 ? He : void 0,
1645
+ background: /* @__PURE__ */ b0(y2, { children: [
1646
+ r0 && U ? (
1242
1647
  // Clip the connector-line canvas to the frozen name column so deep trees never bleed into the numeric region.
1243
- /* @__PURE__ */ u("div", { className: "pointer-events-none absolute top-0 left-0 z-1 h-full overflow-hidden", style: { width: U.nameWidth }, "aria-hidden": "true", children: Pt })
1244
- ) : Pt,
1245
- V
1648
+ /* @__PURE__ */ m("div", { className: "pointer-events-none absolute top-0 left-0 z-1 h-full overflow-hidden", style: { width: U.nameWidth }, "aria-hidden": "true", children: C1 })
1649
+ ) : C1,
1650
+ X
1246
1651
  ] }),
1247
- initialScrollIndex: Wt,
1248
- initialScrollOffset: Me,
1249
- initialScrollAnchor: jt,
1250
- callbackThrottleMs: Kt,
1251
- contentInsets: Gt,
1252
- scrollBarOptions: pt,
1253
- behaviorOptions: Zt,
1254
- children: (o, l) => o ? ne && I && U ? /* @__PURE__ */ u(
1255
- Yn,
1652
+ initialScrollIndex: B1,
1653
+ initialScrollOffset: D0,
1654
+ initialScrollAnchor: W1,
1655
+ callbackThrottleMs: j1,
1656
+ contentInsets: K1,
1657
+ scrollBarOptions: A1,
1658
+ behaviorOptions: q1,
1659
+ children: (l, i) => l ? r0 && w && U ? /* @__PURE__ */ m(
1660
+ l2,
1256
1661
  {
1257
- entry: o.entry,
1258
- indentLevel: o.indentLevel,
1259
- positionInSet: o.positionInSet,
1260
- setSize: o.setSize,
1261
- rowIndex: l + (I.showHeader ?? !0 ? 2 : 1),
1262
- flatIndex: l,
1263
- onRowFocus: Rt,
1264
- onRowBlur: kt,
1265
- isSelectedForAria: !!R?.has(o.entry.absolutePath),
1266
- rowHeight: o.rowHeight,
1267
- isDirOpen: fe,
1268
- columns: I.columns,
1269
- numericTemplate: dt,
1662
+ entry: l.entry,
1663
+ indentLevel: l.indentLevel,
1664
+ positionInSet: l.positionInSet,
1665
+ setSize: l.setSize,
1666
+ rowIndex: i + (w.showHeader ?? !0 ? 2 : 1),
1667
+ flatIndex: i,
1668
+ onRowFocus: S1,
1669
+ onRowBlur: L1,
1670
+ isSelectedForAria: !!E?.has(l.entry.absolutePath),
1671
+ rowHeight: l.rowHeight,
1672
+ isDirOpen: f0,
1673
+ columns: w.columns,
1674
+ numericTemplate: h1,
1270
1675
  numericTotal: U.numericTotal,
1271
1676
  nameWidth: U.nameWidth,
1272
- rowClassName: I.rowClassName,
1273
- selection: { onEntryClick: d, selectedPath: Be, currentPath: wt, mode: w, selectedItems: R, onSelectionChange: f },
1274
- expansion: { toggleDirectory: t, onToggleDirectoryRecursive: bt },
1275
- visual: vn
1677
+ rowClassName: w.rowClassName,
1678
+ selection: { onEntryClick: h, selectedPath: z0, currentPath: y1, mode: Z, selectedItems: E, onSelectionChange: u },
1679
+ expansion: { toggleDirectory: a, onToggleDirectoryRecursive: H1 },
1680
+ visual: Ve
1276
1681
  },
1277
- o.entry.absolutePath
1278
- ) : /* @__PURE__ */ u(
1279
- qn,
1682
+ l.entry.absolutePath
1683
+ ) : /* @__PURE__ */ m(
1684
+ h2,
1280
1685
  {
1281
- entry: o.entry,
1282
- indentLevel: o.indentLevel,
1283
- originX: rt,
1284
- depth: o.depth,
1285
- positionInSet: o.positionInSet,
1286
- setSize: o.setSize,
1287
- isSelectedForAria: !!R?.has(o.entry.absolutePath),
1288
- flatIndex: l,
1289
- isActive: l === We,
1290
- registerRowRef: hn,
1291
- onNavigationKeyDown: fn,
1292
- onRowFocus: Rt,
1293
- onRowBlur: kt,
1294
- rowHeight: o.rowHeight,
1295
- entryKindDirectory: $e,
1296
- entryKindFile: Q,
1297
- isDirOpen: fe,
1298
- expansion: { toggleDirectory: t, onToggleDirectoryRecursive: bt },
1299
- selection: { onEntryClick: d, selectedPath: Be, currentPath: wt, mode: w, selectedItems: R, onSelectionChange: f },
1686
+ entry: l.entry,
1687
+ indentLevel: l.indentLevel,
1688
+ originX: r1,
1689
+ depth: l.depth,
1690
+ positionInSet: l.positionInSet,
1691
+ setSize: l.setSize,
1692
+ isSelectedForAria: !!E?.has(l.entry.absolutePath),
1693
+ flatIndex: i,
1694
+ isActive: i === B0,
1695
+ registerRowRef: ue,
1696
+ onNavigationKeyDown: me,
1697
+ onRowFocus: S1,
1698
+ onRowBlur: L1,
1699
+ rowHeight: l.rowHeight,
1700
+ entryKindDirectory: $0,
1701
+ entryKindFile: e0,
1702
+ isDirOpen: f0,
1703
+ expansion: { toggleDirectory: a, onToggleDirectoryRecursive: H1 },
1704
+ selection: { onEntryClick: h, selectedPath: z0, currentPath: y1, mode: Z, selectedItems: E, onSelectionChange: u },
1300
1705
  visual: {
1301
- iconOverrides: D,
1302
- showExpandIcons: k,
1303
- showDirectoryIcons: p,
1304
- showFileIcons: L,
1305
- useCanvasExpandIcons: x,
1306
- expandIconSize: P,
1307
- typeIconSize: X.typeIconSize,
1308
- fontSize: X.fontSize,
1309
- indentSize: X.indentSize,
1310
- highlightStyles: B,
1311
- entryClassName: ue,
1312
- entryStyle: Se,
1313
- nameClassName: Z,
1314
- nameStyle: q,
1315
- directoryNameClassName: _e,
1316
- directoryNameStyle: Re,
1317
- fileNameClassName: ke,
1318
- fileNameStyle: A,
1319
- expandIconClassName: te,
1320
- expandIconStyle: M
1706
+ iconOverrides: R,
1707
+ showExpandIcons: L,
1708
+ showDirectoryIcons: v,
1709
+ showFileIcons: N,
1710
+ useCanvasExpandIcons: S,
1711
+ expandIconSize: C,
1712
+ typeIconSize: Y.typeIconSize,
1713
+ fontSize: Y.fontSize,
1714
+ indentSize: Y.indentSize,
1715
+ highlightStyles: z,
1716
+ entryClassName: u0,
1717
+ entryStyle: V0,
1718
+ nameClassName: q,
1719
+ nameStyle: Q,
1720
+ directoryNameClassName: P0,
1721
+ directoryNameStyle: S0,
1722
+ fileNameClassName: L0,
1723
+ fileNameStyle: k,
1724
+ expandIconClassName: n0,
1725
+ expandIconStyle: D
1321
1726
  }
1322
1727
  },
1323
- o.entry.absolutePath
1728
+ l.entry.absolutePath
1324
1729
  ) : null
1325
1730
  }
1326
1731
  ),
1327
1732
  [
1328
- W.length,
1329
- gn,
1330
- on,
1331
- sn,
1332
- Ut,
1333
- Jt,
1334
- C,
1335
- K,
1336
- $e,
1337
- Q,
1338
- We,
1339
- hn,
1340
- fn,
1341
- Rt,
1342
- kt,
1343
- re,
1344
- Te,
1345
- Qt,
1346
- en,
1347
- Ht,
1348
- Bt,
1349
- Ie,
1350
- ne,
1351
- Sn,
1352
- U,
1353
- Pt,
1354
- V,
1355
- Wt,
1356
- Me,
1357
- jt,
1358
- Kt,
1359
- Gt,
1360
- pt,
1361
- Zt,
1733
+ B.length,
1734
+ ve,
1735
+ le,
1736
+ oe,
1737
+ U1,
1738
+ J1,
1362
1739
  I,
1363
- dt,
1364
- fe,
1365
- d,
1366
- Be,
1367
- wt,
1740
+ j,
1741
+ $0,
1742
+ e0,
1743
+ B0,
1744
+ ue,
1745
+ me,
1746
+ S1,
1747
+ L1,
1748
+ l0,
1749
+ x0,
1750
+ ee,
1751
+ te,
1752
+ _1,
1753
+ z1,
1754
+ M0,
1755
+ r0,
1756
+ He,
1757
+ U,
1758
+ C1,
1759
+ X,
1760
+ B1,
1761
+ D0,
1762
+ W1,
1763
+ j1,
1764
+ K1,
1765
+ A1,
1766
+ q1,
1368
1767
  w,
1768
+ h1,
1769
+ f0,
1770
+ h,
1771
+ z0,
1772
+ y1,
1773
+ Z,
1774
+ E,
1775
+ u,
1776
+ a,
1777
+ H1,
1778
+ Ve,
1369
1779
  R,
1370
- f,
1371
- t,
1372
- bt,
1373
- vn,
1374
- D,
1375
- k,
1376
- p,
1377
1780
  L,
1378
- x,
1379
- P,
1380
- X,
1381
- rt,
1382
- B,
1383
- ue,
1384
- Se,
1385
- Z,
1781
+ v,
1782
+ N,
1783
+ S,
1784
+ C,
1785
+ Y,
1786
+ r1,
1787
+ z,
1788
+ u0,
1789
+ V0,
1386
1790
  q,
1387
- _e,
1388
- Re,
1389
- ke,
1390
- A,
1391
- te,
1392
- M
1791
+ Q,
1792
+ P0,
1793
+ S0,
1794
+ L0,
1795
+ k,
1796
+ n0,
1797
+ D
1393
1798
  ]
1394
1799
  );
1395
- if (!(I && U))
1396
- return /* @__PURE__ */ Ne("div", { ref: me, className: tn, style: nn, onPointerDownCapture: at, onMouseDownCapture: at, children: [
1397
- Oe.length > 0 && !nr && // biome-ignore lint/a11y/noNoninteractiveTabindex: 停止点の行が描画窓の外で DOM に無い間だけ Tab を受け、受けた瞬間にその行へ焦点を渡す。これが無いとツリーに Tab で入れない
1800
+ if (!(w && U))
1801
+ return /* @__PURE__ */ b0("div", { ref: p0, className: ae, style: ne, onPointerDownCapture: s1, onMouseDownCapture: s1, children: [
1802
+ F0.length > 0 && !p2 && // biome-ignore lint/a11y/noNoninteractiveTabindex: 停止点の行が描画窓の外で DOM に無い間だけ Tab を受け、受けた瞬間にその行へ焦点を渡す。これが無いとツリーに Tab で入れない
1398
1803
  // biome-ignore lint/a11y/noStaticElementInteractions: 同上 (焦点の受け渡しだけを担い、要素自身は操作の対象ではない)
1399
- /* @__PURE__ */ u("span", { tabIndex: 0, "data-directory-tree-tab-stop": "", style: Fo, onFocus: rr }),
1400
- wn
1804
+ /* @__PURE__ */ m("span", { tabIndex: 0, "data-directory-tree-tab-stop": "", style: Jt, onFocus: A2 }),
1805
+ Ze
1401
1806
  ] });
1402
- const sr = I.showHeader ?? !0, ir = I.showFooter ?? !1, ar = { ...nn, "--dt-hscroll": `${Ve}px` };
1403
- return /* @__PURE__ */ Ne(
1807
+ const g2 = w.showHeader ?? !0, H2 = w.showFooter ?? !1, V2 = { ...ne, "--dt-hscroll": `${X0}px` };
1808
+ return /* @__PURE__ */ b0(
1404
1809
  "div",
1405
1810
  {
1406
- ref: me,
1407
- className: j(tn, "dt-grid"),
1408
- style: ar,
1811
+ ref: p0,
1812
+ className: W(ae, "dt-grid"),
1813
+ style: V2,
1409
1814
  role: "treegrid",
1410
- "aria-label": b ? void 0 : S,
1411
- "aria-labelledby": b,
1412
- "aria-multiselectable": w === "multiple" ? !0 : void 0,
1413
- "aria-busy": a ? !0 : void 0,
1414
- "aria-rowcount": W.length + (I.showHeader ?? !0 ? 1 : 0),
1415
- onPointerDownCapture: at,
1416
- onMouseDownCapture: at,
1815
+ "aria-label": H ? void 0 : V,
1816
+ "aria-labelledby": H,
1817
+ "aria-multiselectable": Z === "multiple" ? !0 : void 0,
1818
+ "aria-busy": s ? !0 : void 0,
1819
+ "aria-rowcount": B.length + (w.showHeader ?? !0 ? 1 : 0),
1820
+ onPointerDownCapture: s1,
1821
+ onMouseDownCapture: s1,
1417
1822
  children: [
1418
- sr && // biome-ignore lint/a11y/useSemanticElements: 仮想スクロールの treegrid は絶対配置行を使うため native table 要素にできない。ARIA ロールで意味を提供する
1419
- /* @__PURE__ */ u("div", { role: "rowgroup", children: /* @__PURE__ */ u(no, { columns: I.columns, numericTemplate: dt, numericTotal: U.numericTotal, nameWidth: U.nameWidth, scrollBarWidth: je, className: I.headerClassName }) }),
1420
- /* @__PURE__ */ u("div", { ref: Pe, className: "dt-grid-body", children: wn }),
1421
- Ke > 0 && /* @__PURE__ */ Ne("div", { className: "dt-grid-hscrollbar-row", children: [
1422
- /* @__PURE__ */ u("div", { className: "dt-grid-scrollbar-spacer", style: { width: U.nameWidth }, "aria-hidden": "true" }),
1423
- /* @__PURE__ */ u(
1424
- hr,
1823
+ g2 && // biome-ignore lint/a11y/useSemanticElements: 仮想スクロールの treegrid は絶対配置行を使うため native table 要素にできない。ARIA ロールで意味を提供する
1824
+ /* @__PURE__ */ m("div", { role: "rowgroup", children: /* @__PURE__ */ m(vt, { columns: w.columns, numericTemplate: h1, numericTotal: U.numericTotal, nameWidth: U.nameWidth, scrollBarWidth: W0, className: w.headerClassName }) }),
1825
+ /* @__PURE__ */ m("div", { ref: C0, className: "dt-grid-body", children: Ze }),
1826
+ j0 > 0 && /* @__PURE__ */ b0("div", { className: "dt-grid-hscrollbar-row", children: [
1827
+ /* @__PURE__ */ m("div", { className: "dt-grid-scrollbar-spacer", style: { width: U.nameWidth }, "aria-hidden": "true" }),
1828
+ /* @__PURE__ */ m(
1829
+ w2,
1425
1830
  {
1426
1831
  horizontal: !0,
1427
1832
  contentSize: U.numericTotal,
1428
1833
  viewportSize: U.numericVisible,
1429
- scrollPosition: Ve,
1430
- scrollBarWidth: je,
1431
- locale: C,
1432
- labels: K,
1433
- onScroll: (o) => {
1434
- const l = typeof o == "function" ? o(Ve) : o, g = Ot(l, Ke);
1435
- return Ue(g), g;
1834
+ scrollPosition: X0,
1835
+ scrollBarWidth: W0,
1836
+ locale: I,
1837
+ labels: j,
1838
+ onScroll: (l) => {
1839
+ const i = typeof l == "function" ? l(X0) : l, g = F1(i, j0);
1840
+ return U0(g), g;
1436
1841
  }
1437
1842
  }
1438
1843
  ),
1439
- /* @__PURE__ */ u("div", { className: "dt-grid-scrollbar-spacer", style: { width: je }, "aria-hidden": "true" })
1844
+ /* @__PURE__ */ m("div", { className: "dt-grid-scrollbar-spacer", style: { width: W0 }, "aria-hidden": "true" })
1440
1845
  ] }),
1441
- ir && // biome-ignore lint/a11y/useSemanticElements: 同上 (フッタ行も絶対配置レイアウトの一部)
1442
- /* @__PURE__ */ u("div", { role: "rowgroup", children: /* @__PURE__ */ u(ro, { columns: I.columns, numericTemplate: dt, numericTotal: U.numericTotal, nameWidth: U.nameWidth, scrollBarWidth: je, allEntries: or, className: I.footerClassName }) })
1846
+ H2 && // biome-ignore lint/a11y/useSemanticElements: 同上 (フッタ行も絶対配置レイアウトの一部)
1847
+ /* @__PURE__ */ m("div", { role: "rowgroup", children: /* @__PURE__ */ m(gt, { columns: w.columns, numericTemplate: h1, numericTotal: U.numericTotal, nameWidth: U.nameWidth, scrollBarWidth: W0, allEntries: v2, className: w.footerClassName }) })
1443
1848
  ]
1444
1849
  }
1445
1850
  );
1446
- }, Vo = ({ initialExpanded: e = /* @__PURE__ */ new Set(), storageKey: t } = {}) => {
1447
- const [n, r] = pr(), [s, a] = de(() => {
1448
- if (typeof window < "u" && t)
1851
+ }, c8 = ({ initialExpanded: e = /* @__PURE__ */ new Set(), storageKey: a } = {}) => {
1852
+ const [n, r] = I2(), [o, s] = h0(() => {
1853
+ if (typeof window < "u" && a)
1449
1854
  try {
1450
- const h = window.localStorage.getItem(t);
1451
- if (h) {
1452
- const S = JSON.parse(h);
1453
- return new Set(S);
1855
+ const f = window.localStorage.getItem(a);
1856
+ if (f) {
1857
+ const V = JSON.parse(f);
1858
+ return new Set(V);
1454
1859
  }
1455
- } catch (h) {
1456
- console.error("[useDirectoryTreeState] Error reading from localStorage", h);
1860
+ } catch (f) {
1861
+ console.error("[useDirectoryTreeState] Error reading from localStorage", f);
1457
1862
  }
1458
1863
  return e;
1459
- }), i = E((h) => {
1864
+ }), c = b((f) => {
1460
1865
  r(() => {
1461
- a((S) => {
1462
- const b = new Set(S);
1463
- return h(b), b;
1866
+ s((V) => {
1867
+ const H = new Set(V);
1868
+ return f(H), H;
1464
1869
  });
1465
1870
  });
1466
- }, []), c = E(
1467
- (h, S) => {
1468
- i((b) => {
1469
- for (const z of h)
1470
- S(b, z);
1871
+ }, []), d = b(
1872
+ (f, V) => {
1873
+ c((H) => {
1874
+ for (const T of f)
1875
+ V(H, T);
1471
1876
  });
1472
1877
  },
1473
- [i]
1878
+ [c]
1474
1879
  );
1475
- Ae(() => {
1476
- if (t && typeof window < "u")
1880
+ k0(() => {
1881
+ if (a && typeof window < "u")
1477
1882
  try {
1478
- window.localStorage.setItem(t, JSON.stringify(Array.from(s)));
1479
- } catch (h) {
1480
- console.warn(`Error setting localStorage key "${t}":`, h);
1883
+ window.localStorage.setItem(a, JSON.stringify(Array.from(o)));
1884
+ } catch (f) {
1885
+ console.warn(`Error setting localStorage key "${a}":`, f);
1481
1886
  }
1482
- }, [s, t]);
1483
- const d = E(
1484
- (h) => {
1485
- c([h], (S, b) => {
1486
- S.has(b) ? S.delete(b) : S.add(b);
1887
+ }, [o, a]);
1888
+ const h = b(
1889
+ (f) => {
1890
+ d([f], (V, H) => {
1891
+ V.has(H) ? V.delete(H) : V.add(H);
1487
1892
  });
1488
1893
  },
1489
- [c]
1490
- ), y = E(
1491
- (h) => {
1492
- c([h], (S, b) => {
1493
- S.add(b);
1894
+ [d]
1895
+ ), A = b(
1896
+ (f) => {
1897
+ d([f], (V, H) => {
1898
+ V.add(H);
1494
1899
  });
1495
1900
  },
1496
- [c]
1497
- ), N = E(
1498
- (h) => {
1499
- c([h], (S, b) => {
1500
- S.delete(b);
1901
+ [d]
1902
+ ), M = b(
1903
+ (f) => {
1904
+ d([f], (V, H) => {
1905
+ V.delete(H);
1501
1906
  });
1502
1907
  },
1503
- [c]
1504
- ), w = E(
1505
- (h) => {
1506
- c(h, (S, b) => {
1507
- S.delete(b);
1908
+ [d]
1909
+ ), Z = b(
1910
+ (f) => {
1911
+ d(f, (V, H) => {
1912
+ V.delete(H);
1508
1913
  });
1509
1914
  },
1510
- [c]
1511
- ), R = E(
1512
- (h) => {
1513
- c(h, (S, b) => {
1514
- S.add(b);
1915
+ [d]
1916
+ ), E = b(
1917
+ (f) => {
1918
+ d(f, (V, H) => {
1919
+ V.add(H);
1515
1920
  });
1516
1921
  },
1517
- [c]
1518
- ), f = E(() => {
1519
- i((h) => {
1520
- h.clear();
1922
+ [d]
1923
+ ), u = b(() => {
1924
+ c((f) => {
1925
+ f.clear();
1521
1926
  });
1522
- }, [i]), m = E((h) => s.has(h), [s]);
1927
+ }, [c]), p = b((f) => o.has(f), [o]);
1523
1928
  return {
1524
- expanded: s,
1525
- toggle: d,
1526
- expand: y,
1527
- collapse: N,
1528
- collapseMultiple: w,
1529
- expandMultiple: R,
1530
- collapseAll: f,
1531
- isExpanded: m,
1929
+ expanded: o,
1930
+ toggle: h,
1931
+ expand: A,
1932
+ collapse: M,
1933
+ collapseMultiple: Z,
1934
+ expandMultiple: E,
1935
+ collapseAll: u,
1936
+ isExpanded: p,
1532
1937
  isPending: n
1533
1938
  };
1534
1939
  };
1535
1940
  export {
1536
- lo as DIRECTORY_TREE_LABEL_CATALOGS,
1537
- Cn as DIRECTORY_TREE_LABEL_KEYS,
1538
- Xo as DirectoryTree,
1539
- Jr as EXPAND_ICON_STYLE_PROPERTIES,
1540
- Yo as FILE_ICON_PAIRS,
1541
- _r as MARK_PAIRS,
1542
- Ur as ROW_STYLE_PROPERTIES,
1543
- T as directoryTreeClasses,
1544
- uo as resolveDirectoryTreeLabels,
1545
- Vo as useDirectoryTreeState
1941
+ Mt as DIRECTORY_TREE_LABEL_CATALOGS,
1942
+ Le as DIRECTORY_TREE_LABEL_KEYS,
1943
+ o8 as DirectoryTree,
1944
+ ht as EXPAND_ICON_STYLE_PROPERTIES,
1945
+ l8 as FILE_ICON_PAIRS,
1946
+ U2 as MARK_PAIRS,
1947
+ dt as ROW_STYLE_PROPERTIES,
1948
+ x as directoryTreeClasses,
1949
+ wt as resolveDirectoryTreeLabels,
1950
+ c8 as useDirectoryTreeState
1546
1951
  };