@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.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1457 -1052
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,77 +1,482 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { VIRTUAL_SCROLL_LABEL_KEYS as
|
|
3
|
-
import * as
|
|
4
|
-
import { useRef as
|
|
5
|
-
import { twMerge as
|
|
6
|
-
|
|
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:
|
|
8
|
+
titleId: a,
|
|
10
9
|
...n
|
|
11
10
|
}, r) {
|
|
12
|
-
return /* @__PURE__ */
|
|
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":
|
|
20
|
-
}, n), e ? /* @__PURE__ */
|
|
21
|
-
id:
|
|
22
|
-
}, e) : null, /* @__PURE__ */
|
|
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
|
|
29
|
-
function
|
|
27
|
+
const x2 = /* @__PURE__ */ t.forwardRef(C2);
|
|
28
|
+
function F2({
|
|
30
29
|
title: e,
|
|
31
|
-
titleId:
|
|
30
|
+
titleId: a,
|
|
32
31
|
...n
|
|
33
32
|
}, r) {
|
|
34
|
-
return /* @__PURE__ */
|
|
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":
|
|
42
|
-
}, n), e ? /* @__PURE__ */
|
|
43
|
-
id:
|
|
44
|
-
}, e) : null, /* @__PURE__ */
|
|
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
|
|
51
|
-
function
|
|
49
|
+
const N2 = /* @__PURE__ */ t.forwardRef(F2);
|
|
50
|
+
function R2({
|
|
52
51
|
title: e,
|
|
53
|
-
titleId:
|
|
52
|
+
titleId: a,
|
|
54
53
|
...n
|
|
55
54
|
}, r) {
|
|
56
|
-
return /* @__PURE__ */
|
|
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":
|
|
64
|
-
}, n), e ? /* @__PURE__ */
|
|
65
|
-
id:
|
|
66
|
-
}, e) : null, /* @__PURE__ */
|
|
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
|
|
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
|
-
},
|
|
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:
|
|
87
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 ${
|
|
116
|
-
entryHover: `directory-tree-entry--hover ${
|
|
117
|
-
entrySelected: `directory-tree-entry--selected ${
|
|
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 ${
|
|
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 ${
|
|
122
|
-
expandIconSelected: `directory-tree-expand-icon--selected ${
|
|
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 ${
|
|
125
|
-
typeIconSelected: `directory-tree-type-icon--selected ${
|
|
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 ${
|
|
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 ${
|
|
130
|
-
},
|
|
131
|
-
const
|
|
132
|
-
return n <= 0 ? "" :
|
|
133
|
-
},
|
|
134
|
-
const
|
|
135
|
-
return !(n && e) || r ? /* @__PURE__ */
|
|
136
|
-
},
|
|
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 "${
|
|
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 "${
|
|
547
|
+
return console.warn(`[DirectoryTree] Promise returned for "${a}". Not supported.`), null;
|
|
143
548
|
if (Array.isArray(e)) {
|
|
144
|
-
const r = e.map((
|
|
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 "${
|
|
554
|
+
return console.warn(`[DirectoryTree] Lazy component for "${a}". Not supported.`), null;
|
|
150
555
|
}
|
|
151
556
|
return e;
|
|
152
|
-
},
|
|
153
|
-
markdown: (e) => /* @__PURE__ */
|
|
154
|
-
pdf: (e) => /* @__PURE__ */
|
|
155
|
-
spreadsheet: (e) => /* @__PURE__ */
|
|
156
|
-
csv: (e) => /* @__PURE__ */
|
|
157
|
-
document: (e) => /* @__PURE__ */
|
|
158
|
-
presentation: (e) => /* @__PURE__ */
|
|
159
|
-
image: (e) => /* @__PURE__ */
|
|
160
|
-
audio: (e) => /* @__PURE__ */
|
|
161
|
-
video: (e) => /* @__PURE__ */
|
|
162
|
-
archive: (e) => /* @__PURE__ */
|
|
163
|
-
code: (e) => /* @__PURE__ */
|
|
164
|
-
text: (e) => /* @__PURE__ */
|
|
165
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
193
|
-
const
|
|
194
|
-
return
|
|
195
|
-
},
|
|
196
|
-
const { entry: r, isDirectory:
|
|
197
|
-
let
|
|
198
|
-
const
|
|
199
|
-
return r.icon !== void 0 ?
|
|
200
|
-
},
|
|
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
|
|
204
|
-
if (
|
|
205
|
-
return Object.fromEntries(
|
|
206
|
-
},
|
|
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
|
-
],
|
|
254
|
-
const n =
|
|
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
|
-
},
|
|
661
|
+
}, t2 = (e, a, n, r) => {
|
|
257
662
|
if (e !== void 0) {
|
|
258
663
|
if (typeof e != "object" || e === null)
|
|
259
|
-
throw new RangeError(`${
|
|
260
|
-
for (const [
|
|
261
|
-
if (
|
|
262
|
-
throw new RangeError(`${
|
|
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
|
-
},
|
|
265
|
-
const
|
|
266
|
-
return
|
|
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
|
-
|
|
673
|
+
A.current && window.clearTimeout(A.current);
|
|
269
674
|
},
|
|
270
675
|
[]
|
|
271
|
-
),
|
|
272
|
-
(
|
|
273
|
-
|
|
274
|
-
let
|
|
275
|
-
|
|
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:
|
|
682
|
+
isDirectory: a,
|
|
278
683
|
isExpanded: n,
|
|
279
684
|
preventDefault: () => {
|
|
280
|
-
|
|
685
|
+
Z = !0;
|
|
281
686
|
}
|
|
282
|
-
}), !(!
|
|
283
|
-
|
|
284
|
-
},
|
|
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
|
-
[
|
|
691
|
+
[a, e, n, h, d, c, o, s, r]
|
|
287
692
|
);
|
|
288
|
-
},
|
|
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:
|
|
291
|
-
}),
|
|
695
|
+
gridTemplateColumns: a
|
|
696
|
+
}), l2 = T1(
|
|
292
697
|
({
|
|
293
698
|
entry: e,
|
|
294
|
-
indentLevel:
|
|
699
|
+
indentLevel: a,
|
|
295
700
|
positionInSet: n,
|
|
296
701
|
setSize: r,
|
|
297
|
-
rowIndex:
|
|
298
|
-
flatIndex:
|
|
299
|
-
onRowFocus:
|
|
300
|
-
onRowBlur:
|
|
301
|
-
isSelectedForAria:
|
|
302
|
-
rowHeight:
|
|
303
|
-
isDirOpen:
|
|
304
|
-
columns:
|
|
305
|
-
numericTemplate:
|
|
306
|
-
numericTotal:
|
|
307
|
-
nameWidth:
|
|
308
|
-
rowClassName:
|
|
309
|
-
selection: { onEntryClick:
|
|
310
|
-
expansion: { toggleDirectory:
|
|
311
|
-
visual: { iconOverrides:
|
|
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
|
-
|
|
314
|
-
const [
|
|
315
|
-
if (
|
|
316
|
-
if (
|
|
317
|
-
} else if (
|
|
318
|
-
return
|
|
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
|
-
})(),
|
|
321
|
-
...
|
|
322
|
-
...
|
|
323
|
-
...!
|
|
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__ */
|
|
730
|
+
return /* @__PURE__ */ b0(
|
|
326
731
|
"div",
|
|
327
732
|
{
|
|
328
|
-
className:
|
|
329
|
-
style: { ...
|
|
733
|
+
className: m0,
|
|
734
|
+
style: { ...Y0, ...e.style, height: A },
|
|
330
735
|
role: "row",
|
|
331
|
-
"aria-expanded":
|
|
332
|
-
"aria-level":
|
|
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":
|
|
336
|
-
"aria-selected":
|
|
337
|
-
"aria-current":
|
|
338
|
-
...
|
|
339
|
-
"data-entry-type":
|
|
340
|
-
"data-entry-expanded":
|
|
341
|
-
"data-entry-selected":
|
|
342
|
-
"data-entry-item-selected":
|
|
343
|
-
onClick:
|
|
344
|
-
onMouseEnter: () =>
|
|
345
|
-
onMouseLeave: () =>
|
|
346
|
-
onFocus: (
|
|
347
|
-
onBlur: (
|
|
348
|
-
onKeyDown: (
|
|
349
|
-
if (
|
|
350
|
-
if (
|
|
351
|
-
|
|
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
|
-
|
|
759
|
+
Z0(O);
|
|
355
760
|
}
|
|
356
761
|
},
|
|
357
762
|
tabIndex: 0,
|
|
358
763
|
children: [
|
|
359
|
-
/* @__PURE__ */
|
|
360
|
-
(
|
|
361
|
-
(
|
|
362
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
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,
|
|
370
|
-
if (e.entry !==
|
|
371
|
-
const n =
|
|
372
|
-
return e.indentLevel ===
|
|
373
|
-
e.flatIndex ===
|
|
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
|
-
|
|
377
|
-
const
|
|
781
|
+
l2.displayName = "DirectoryTreeGridRow";
|
|
782
|
+
const o2 = ({
|
|
378
783
|
kind: e,
|
|
379
|
-
columns:
|
|
784
|
+
columns: a,
|
|
380
785
|
numericTemplate: n,
|
|
381
786
|
numericTotal: r,
|
|
382
|
-
nameWidth:
|
|
383
|
-
scrollBarWidth:
|
|
384
|
-
className:
|
|
385
|
-
nameContent:
|
|
386
|
-
renderCell:
|
|
787
|
+
nameWidth: o,
|
|
788
|
+
scrollBarWidth: s,
|
|
789
|
+
className: c,
|
|
790
|
+
nameContent: d,
|
|
791
|
+
renderCell: h
|
|
387
792
|
}) => {
|
|
388
|
-
const [, ...
|
|
389
|
-
return /* @__PURE__ */
|
|
390
|
-
/* @__PURE__ */
|
|
391
|
-
|
|
392
|
-
/* @__PURE__ */
|
|
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
|
-
},
|
|
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 :
|
|
397
|
-
},
|
|
398
|
-
const r =
|
|
399
|
-
return { nameWidth: r, numericTotal:
|
|
400
|
-
},
|
|
401
|
-
const
|
|
402
|
-
for (const
|
|
403
|
-
|
|
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),
|
|
406
|
-
},
|
|
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
|
-
}),
|
|
416
|
-
en: Object.freeze({ ...
|
|
417
|
-
ja: Object.freeze({ ...
|
|
418
|
-
}),
|
|
419
|
-
const
|
|
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
|
|
422
|
-
const
|
|
423
|
-
|
|
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 ?
|
|
426
|
-
},
|
|
427
|
-
const n =
|
|
428
|
-
if (
|
|
429
|
-
return
|
|
430
|
-
if (
|
|
431
|
-
throw new RangeError(`[directory-tree] labels must be an object; got ${
|
|
432
|
-
const r = Object.getPrototypeOf(
|
|
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(
|
|
435
|
-
for (const
|
|
436
|
-
if (!
|
|
437
|
-
throw new RangeError(`[directory-tree] labels.${
|
|
438
|
-
const
|
|
439
|
-
for (const
|
|
440
|
-
const
|
|
441
|
-
if (
|
|
442
|
-
if (typeof
|
|
443
|
-
throw new RangeError(`[directory-tree] labels.${
|
|
444
|
-
|
|
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
|
-
},
|
|
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: (
|
|
457
|
-
const n =
|
|
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: (
|
|
867
|
+
landedOn: (a) => e?.includes(a) === !0
|
|
463
868
|
};
|
|
464
|
-
},
|
|
465
|
-
if (typeof
|
|
466
|
-
throw new RangeError(`[directory-tree] visual.${e} must be a finite number greater than 0 (px); got ${
|
|
467
|
-
return
|
|
468
|
-
},
|
|
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 ${
|
|
472
|
-
},
|
|
473
|
-
indentSize: e === void 0 ?
|
|
474
|
-
typeIconSize:
|
|
475
|
-
fontSize: n === void 0 ? void 0 :
|
|
476
|
-
}),
|
|
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
|
|
479
|
-
const r = e(
|
|
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 ${
|
|
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
|
-
},
|
|
484
|
-
const r =
|
|
485
|
-
if (typeof r != "number" || !Number.isFinite(r) || r <= 0 || r >
|
|
486
|
-
throw new RangeError(`[directory-tree] visual.expandIconSize must be a finite number greater than 0 and at most ${
|
|
487
|
-
const { indentSize:
|
|
488
|
-
if (
|
|
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 ${
|
|
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:
|
|
493
|
-
},
|
|
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,
|
|
497
|
-
for (; r <=
|
|
498
|
-
const
|
|
499
|
-
e[
|
|
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
|
|
502
|
-
},
|
|
503
|
-
if (n <= 0 || e.length === 0 ||
|
|
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 =
|
|
506
|
-
return
|
|
507
|
-
path:
|
|
508
|
-
offsetInViewport: n -
|
|
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
|
-
},
|
|
511
|
-
if (
|
|
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 <
|
|
514
|
-
if (
|
|
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
|
-
},
|
|
922
|
+
}, Tt = (e, a, n) => {
|
|
518
923
|
const r = [];
|
|
519
|
-
for (let
|
|
520
|
-
const
|
|
521
|
-
if (!(!
|
|
522
|
-
for (const
|
|
523
|
-
r.push(
|
|
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
|
-
},
|
|
931
|
+
}, Ot = (e, a, n) => {
|
|
527
932
|
const r = [];
|
|
528
|
-
for (let
|
|
529
|
-
const
|
|
530
|
-
if (!(!
|
|
531
|
-
for (const
|
|
532
|
-
r.push(
|
|
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
|
-
},
|
|
536
|
-
const
|
|
537
|
-
(e.width !==
|
|
538
|
-
const
|
|
539
|
-
|
|
540
|
-
},
|
|
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
|
|
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
|
-
},
|
|
546
|
-
if (
|
|
950
|
+
}, _t = (e, a, n, r) => {
|
|
951
|
+
if (a.length === 0)
|
|
547
952
|
return;
|
|
548
|
-
const
|
|
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
|
|
551
|
-
const
|
|
552
|
-
e.lineWidth =
|
|
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 =
|
|
555
|
-
},
|
|
556
|
-
const
|
|
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:
|
|
963
|
+
glyphsByItem: a,
|
|
559
964
|
itemHeight: n,
|
|
560
965
|
width: r,
|
|
561
|
-
viewportHeight:
|
|
562
|
-
scrollPosition:
|
|
563
|
-
color:
|
|
564
|
-
strokeWidth:
|
|
565
|
-
renderStartIndex:
|
|
566
|
-
renderEndIndex:
|
|
567
|
-
lookaheadEndIndex:
|
|
568
|
-
devicePixelRatio:
|
|
569
|
-
expandGlyphColor:
|
|
570
|
-
expandGlyphSize:
|
|
571
|
-
}),
|
|
572
|
-
|
|
573
|
-
const
|
|
574
|
-
if (!
|
|
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
|
|
577
|
-
if (!
|
|
981
|
+
const L = S.getContext("2d");
|
|
982
|
+
if (!L)
|
|
578
983
|
return;
|
|
579
|
-
const
|
|
580
|
-
if (
|
|
581
|
-
|
|
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
|
|
585
|
-
|
|
586
|
-
const
|
|
587
|
-
if (typeof
|
|
588
|
-
const
|
|
589
|
-
return Math.max(Math.min(
|
|
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(
|
|
996
|
+
return Math.max(i0, C);
|
|
592
997
|
})(), $ = (() => {
|
|
593
|
-
if (typeof
|
|
594
|
-
const
|
|
595
|
-
return Math.max(
|
|
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(
|
|
598
|
-
})(),
|
|
599
|
-
|
|
600
|
-
}, []),
|
|
601
|
-
|
|
602
|
-
}, [
|
|
603
|
-
return
|
|
604
|
-
|
|
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:
|
|
1011
|
+
glyphsByItem: a,
|
|
607
1012
|
itemHeight: n,
|
|
608
1013
|
width: r,
|
|
609
|
-
viewportHeight:
|
|
610
|
-
scrollPosition:
|
|
611
|
-
color:
|
|
612
|
-
strokeWidth:
|
|
613
|
-
renderStartIndex:
|
|
614
|
-
renderEndIndex:
|
|
615
|
-
lookaheadEndIndex:
|
|
616
|
-
devicePixelRatio:
|
|
617
|
-
expandGlyphColor:
|
|
618
|
-
expandGlyphSize:
|
|
619
|
-
},
|
|
620
|
-
}, [e,
|
|
621
|
-
|
|
622
|
-
}, []), /* @__PURE__ */
|
|
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
|
-
|
|
625
|
-
const
|
|
626
|
-
const
|
|
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
|
-
|
|
1034
|
+
a.has(r) || a.set(r, n);
|
|
630
1035
|
}
|
|
631
|
-
return
|
|
632
|
-
},
|
|
633
|
-
const { anchor: n, selectionGeneration: r, selectedPath:
|
|
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
|
|
636
|
-
if (
|
|
637
|
-
return
|
|
1040
|
+
const s = e.get(n.path);
|
|
1041
|
+
if (s !== void 0)
|
|
1042
|
+
return s;
|
|
638
1043
|
}
|
|
639
|
-
if (
|
|
640
|
-
const
|
|
641
|
-
if (
|
|
642
|
-
return
|
|
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
|
-
},
|
|
1050
|
+
}, jt = {
|
|
646
1051
|
msOverflowStyle: "none",
|
|
647
1052
|
scrollbarWidth: "none"
|
|
648
|
-
},
|
|
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
|
-
},
|
|
652
|
-
},
|
|
653
|
-
const
|
|
654
|
-
return n !== null &&
|
|
655
|
-
},
|
|
656
|
-
const
|
|
657
|
-
if (
|
|
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 (!
|
|
660
|
-
throw new RangeError(`[directory-tree] Unsupported scroll alignment ${JSON.stringify(
|
|
661
|
-
return
|
|
662
|
-
},
|
|
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
|
-
},
|
|
673
|
-
const
|
|
674
|
-
let
|
|
675
|
-
const
|
|
676
|
-
const
|
|
677
|
-
for (let
|
|
678
|
-
const
|
|
679
|
-
let
|
|
680
|
-
r && (
|
|
681
|
-
id:
|
|
682
|
-
name:
|
|
683
|
-
absolutePath:
|
|
684
|
-
indentLevel:
|
|
685
|
-
isLastChild:
|
|
686
|
-
isDirectory:
|
|
687
|
-
isExpanded:
|
|
688
|
-
ancestorIsLast: [...
|
|
689
|
-
hideLines: r &&
|
|
690
|
-
})),
|
|
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
|
|
694
|
-
},
|
|
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,
|
|
698
|
-
for (; r <=
|
|
699
|
-
const
|
|
700
|
-
e[
|
|
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
|
|
703
|
-
},
|
|
704
|
-
const
|
|
705
|
-
return { renderStart:
|
|
706
|
-
},
|
|
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:
|
|
710
|
-
for (let
|
|
711
|
-
const
|
|
712
|
-
if (
|
|
713
|
-
|
|
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
|
|
717
|
-
for (let
|
|
718
|
-
if (
|
|
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 $ =
|
|
722
|
-
const
|
|
723
|
-
if (
|
|
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 ($ >
|
|
1132
|
+
if ($ > u && G.indentLevel === C)
|
|
728
1133
|
break;
|
|
729
1134
|
}
|
|
730
1135
|
if (J) {
|
|
731
|
-
const $ =
|
|
732
|
-
|
|
733
|
-
key: `${
|
|
1136
|
+
const $ = Z(C);
|
|
1137
|
+
N.push({
|
|
1138
|
+
key: `${p.id}-ancestor-${C}`,
|
|
734
1139
|
x1: $,
|
|
735
|
-
y1:
|
|
1140
|
+
y1: V,
|
|
736
1141
|
x2: $,
|
|
737
|
-
y2:
|
|
738
|
-
itemIndex:
|
|
1142
|
+
y2: V + f,
|
|
1143
|
+
itemIndex: u
|
|
739
1144
|
});
|
|
740
1145
|
}
|
|
741
1146
|
}
|
|
742
|
-
const
|
|
743
|
-
|
|
744
|
-
key: `${
|
|
745
|
-
x1:
|
|
746
|
-
y1:
|
|
747
|
-
x2:
|
|
748
|
-
y2:
|
|
749
|
-
itemIndex:
|
|
750
|
-
}), !
|
|
751
|
-
key: `${
|
|
752
|
-
x1:
|
|
753
|
-
y1:
|
|
754
|
-
x2:
|
|
755
|
-
y2:
|
|
756
|
-
itemIndex:
|
|
757
|
-
}),
|
|
758
|
-
key: `${
|
|
759
|
-
x1:
|
|
760
|
-
y1:
|
|
761
|
-
x2:
|
|
762
|
-
y2:
|
|
763
|
-
itemIndex:
|
|
764
|
-
}) :
|
|
765
|
-
key: `${
|
|
766
|
-
x1:
|
|
767
|
-
y1:
|
|
768
|
-
x2:
|
|
769
|
-
y2:
|
|
770
|
-
itemIndex:
|
|
771
|
-
})),
|
|
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: `${
|
|
774
|
-
itemIndex:
|
|
775
|
-
centerX:
|
|
776
|
-
centerY:
|
|
777
|
-
size:
|
|
778
|
-
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:
|
|
783
|
-
},
|
|
1187
|
+
return { segmentsByItem: h, glyphsByItem: A };
|
|
1188
|
+
}, h2 = T1(
|
|
784
1189
|
({
|
|
785
1190
|
entry: e,
|
|
786
|
-
indentLevel:
|
|
1191
|
+
indentLevel: a,
|
|
787
1192
|
originX: n,
|
|
788
1193
|
depth: r,
|
|
789
|
-
positionInSet:
|
|
790
|
-
setSize:
|
|
791
|
-
isSelectedForAria:
|
|
792
|
-
flatIndex:
|
|
793
|
-
isActive:
|
|
794
|
-
registerRowRef:
|
|
795
|
-
onNavigationKeyDown:
|
|
796
|
-
onRowFocus:
|
|
797
|
-
onRowBlur:
|
|
798
|
-
rowHeight:
|
|
799
|
-
entryKindDirectory:
|
|
800
|
-
entryKindFile:
|
|
801
|
-
isDirOpen:
|
|
802
|
-
expansion: { toggleDirectory:
|
|
803
|
-
selection: { onEntryClick:
|
|
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:
|
|
1210
|
+
iconOverrides: i0,
|
|
806
1211
|
showExpandIcons: J = !0,
|
|
807
1212
|
showDirectoryIcons: $ = !0,
|
|
808
|
-
showFileIcons:
|
|
809
|
-
useCanvasExpandIcons:
|
|
810
|
-
expandIconSize:
|
|
811
|
-
typeIconSize:
|
|
812
|
-
fontSize:
|
|
813
|
-
indentSize:
|
|
814
|
-
highlightStyles:
|
|
815
|
-
entryClassName:
|
|
816
|
-
entryStyle:
|
|
817
|
-
nameClassName:
|
|
818
|
-
nameStyle:
|
|
819
|
-
directoryNameClassName:
|
|
820
|
-
directoryNameStyle:
|
|
821
|
-
fileNameClassName:
|
|
822
|
-
fileNameStyle:
|
|
823
|
-
expandIconClassName:
|
|
824
|
-
expandIconStyle:
|
|
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
|
-
|
|
828
|
-
const [
|
|
829
|
-
if (
|
|
830
|
-
if (
|
|
831
|
-
return
|
|
832
|
-
} else if (
|
|
833
|
-
return
|
|
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
|
-
})(),
|
|
836
|
-
...
|
|
837
|
-
...
|
|
838
|
-
...!
|
|
839
|
-
},
|
|
840
|
-
return /* @__PURE__ */
|
|
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:
|
|
1248
|
+
className: A0,
|
|
844
1249
|
style: {
|
|
845
|
-
...
|
|
846
|
-
...
|
|
847
|
-
...
|
|
1250
|
+
...x0,
|
|
1251
|
+
...U0,
|
|
1252
|
+
...S0,
|
|
848
1253
|
...e.style,
|
|
849
1254
|
// 箱の性質はホストのスタイルの後に書く。スプレッドは値が undefined のキーも写し、React はそれを空にするため、
|
|
850
1255
|
// 前に書くと検査が通す { height: undefined } が行の高さを消す
|
|
851
|
-
paddingLeft: `${Math.max(0,
|
|
852
|
-
transform:
|
|
853
|
-
width:
|
|
854
|
-
height: `${
|
|
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
|
-
...
|
|
857
|
-
"data-entry-type":
|
|
858
|
-
"data-entry-expanded":
|
|
859
|
-
"data-entry-selected":
|
|
860
|
-
"data-entry-item-selected":
|
|
861
|
-
onClick:
|
|
862
|
-
onMouseEnter: () =>
|
|
863
|
-
onMouseLeave: () =>
|
|
864
|
-
onFocus: (
|
|
865
|
-
onBlur: (
|
|
866
|
-
ref:
|
|
867
|
-
onKeyDown: (
|
|
868
|
-
if (
|
|
869
|
-
|
|
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
|
-
|
|
1277
|
+
M(X, d);
|
|
873
1278
|
},
|
|
874
|
-
tabIndex:
|
|
1279
|
+
tabIndex: h ? 0 : -1,
|
|
875
1280
|
role: "treeitem",
|
|
876
|
-
"aria-expanded":
|
|
1281
|
+
"aria-expanded": I ? m0 : void 0,
|
|
877
1282
|
"aria-level": r + 1,
|
|
878
|
-
"aria-posinset":
|
|
879
|
-
"aria-setsize":
|
|
880
|
-
"aria-selected":
|
|
881
|
-
"aria-current": $
|
|
882
|
-
"aria-label": `${e.name} (${
|
|
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 ||
|
|
885
|
-
(
|
|
886
|
-
/* @__PURE__ */
|
|
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:
|
|
1294
|
+
className: t1,
|
|
890
1295
|
style: {
|
|
891
|
-
...
|
|
892
|
-
...
|
|
893
|
-
...
|
|
1296
|
+
...x0,
|
|
1297
|
+
...k,
|
|
1298
|
+
...I ? D : w
|
|
894
1299
|
},
|
|
895
|
-
"data-entry-type":
|
|
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,
|
|
905
|
-
if (e.entry !==
|
|
906
|
-
const n = e.entry.children !== void 0, r =
|
|
907
|
-
return e.indentLevel ===
|
|
908
|
-
e.depth ===
|
|
909
|
-
e.entryKindDirectory ===
|
|
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
|
-
|
|
913
|
-
const
|
|
914
|
-
const
|
|
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" && (
|
|
918
|
-
return
|
|
919
|
-
},
|
|
1322
|
+
n.type === "directory" && (a.push(n.absolutePath), a.push(...u2(n)));
|
|
1323
|
+
return a;
|
|
1324
|
+
}, o8 = ({
|
|
920
1325
|
entries: e,
|
|
921
|
-
expansion: { toggle:
|
|
922
|
-
selection: { onEntryClick:
|
|
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:
|
|
925
|
-
style:
|
|
926
|
-
ariaLabel:
|
|
927
|
-
ariaLabelledBy:
|
|
928
|
-
lineColor:
|
|
929
|
-
showTreeLines:
|
|
930
|
-
showExpandIcons:
|
|
931
|
-
showDirectoryIcons:
|
|
932
|
-
showFileIcons:
|
|
933
|
-
iconOverrides:
|
|
934
|
-
expandIconSize:
|
|
935
|
-
typeIconSize:
|
|
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:
|
|
939
|
-
removeRootIndent:
|
|
940
|
-
highlightStyles:
|
|
941
|
-
entryClassName:
|
|
942
|
-
entryStyle:
|
|
943
|
-
nameClassName:
|
|
944
|
-
nameStyle:
|
|
945
|
-
directoryNameClassName:
|
|
946
|
-
directoryNameStyle:
|
|
947
|
-
fileNameClassName:
|
|
948
|
-
fileNameStyle:
|
|
949
|
-
expandIconClassName:
|
|
950
|
-
expandIconStyle:
|
|
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:
|
|
953
|
-
grid:
|
|
954
|
-
sort:
|
|
955
|
-
locale:
|
|
956
|
-
labels:
|
|
957
|
-
ref:
|
|
1357
|
+
virtualScroll: G0,
|
|
1358
|
+
grid: w,
|
|
1359
|
+
sort: T0,
|
|
1360
|
+
locale: Z0,
|
|
1361
|
+
labels: I0,
|
|
1362
|
+
ref: O0
|
|
958
1363
|
}) => {
|
|
959
|
-
const
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
}, [
|
|
963
|
-
const
|
|
964
|
-
overscanCount:
|
|
965
|
-
className:
|
|
966
|
-
background:
|
|
967
|
-
onScroll: $
|
|
968
|
-
onRangeChange:
|
|
969
|
-
onScrollAdjust:
|
|
970
|
-
liveRegion:
|
|
971
|
-
initialScrollIndex:
|
|
972
|
-
initialScrollOffset:
|
|
973
|
-
initialScrollAnchor:
|
|
974
|
-
callbackThrottleMs:
|
|
975
|
-
contentInsets:
|
|
976
|
-
onItemFocus:
|
|
977
|
-
viewportHeightOverride:
|
|
978
|
-
scrollBarOptions:
|
|
979
|
-
behaviorOptions:
|
|
980
|
-
preserveScrollAnchor:
|
|
981
|
-
getItemKey:
|
|
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:
|
|
984
|
-
contentProps:
|
|
985
|
-
} =
|
|
986
|
-
() =>
|
|
987
|
-
...
|
|
1388
|
+
testId: U1,
|
|
1389
|
+
contentProps: v1
|
|
1390
|
+
} = G0 ?? {}, J1 = F(
|
|
1391
|
+
() => r0 ? { ...v1, role: "rowgroup" } : {
|
|
1392
|
+
...v1,
|
|
988
1393
|
role: "tree",
|
|
989
|
-
"aria-label":
|
|
990
|
-
"aria-labelledby":
|
|
991
|
-
"aria-multiselectable":
|
|
992
|
-
"aria-busy":
|
|
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
|
-
[
|
|
995
|
-
),
|
|
996
|
-
(
|
|
997
|
-
|
|
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
|
-
[$
|
|
1000
|
-
),
|
|
1001
|
-
(
|
|
1002
|
-
const { renderingStartIndex:
|
|
1003
|
-
|
|
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
|
-
[
|
|
1410
|
+
[D1]
|
|
1006
1411
|
);
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
}, []),
|
|
1010
|
-
const
|
|
1011
|
-
if (
|
|
1012
|
-
const
|
|
1013
|
-
|
|
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
|
|
1016
|
-
|
|
1017
|
-
else if (
|
|
1018
|
-
const
|
|
1019
|
-
|
|
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 (!(
|
|
1427
|
+
if (!(l || i)) return O(0);
|
|
1023
1428
|
g();
|
|
1024
|
-
const
|
|
1025
|
-
return
|
|
1026
|
-
}, [
|
|
1027
|
-
const
|
|
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
|
-
...
|
|
1030
|
-
...
|
|
1031
|
-
...typeof
|
|
1434
|
+
...jt,
|
|
1435
|
+
...f ?? {},
|
|
1436
|
+
...typeof l0 == "number" ? { height: l0, minHeight: l0 } : {}
|
|
1032
1437
|
}),
|
|
1033
|
-
[
|
|
1034
|
-
),
|
|
1035
|
-
(
|
|
1036
|
-
const g = [
|
|
1037
|
-
if (g.every((
|
|
1038
|
-
if (g.every((
|
|
1039
|
-
if (
|
|
1040
|
-
console.warn(`[DirectoryTree] Unknown double click action: ${
|
|
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
|
-
[
|
|
1043
|
-
),
|
|
1044
|
-
const
|
|
1045
|
-
|
|
1046
|
-
for (let
|
|
1047
|
-
|
|
1048
|
-
return
|
|
1049
|
-
}, [
|
|
1050
|
-
|
|
1051
|
-
const
|
|
1052
|
-
|
|
1053
|
-
const
|
|
1054
|
-
|
|
1055
|
-
const
|
|
1056
|
-
|
|
1057
|
-
const
|
|
1058
|
-
|
|
1059
|
-
const
|
|
1060
|
-
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1063
|
-
const
|
|
1064
|
-
const
|
|
1065
|
-
return !
|
|
1066
|
-
}, []),
|
|
1067
|
-
(
|
|
1068
|
-
const
|
|
1069
|
-
if (
|
|
1070
|
-
|
|
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
|
-
|
|
1478
|
+
Q0.current = null, R0(l), i.focus({ preventScroll: !0 });
|
|
1074
1479
|
},
|
|
1075
|
-
[
|
|
1076
|
-
),
|
|
1077
|
-
if (
|
|
1078
|
-
|
|
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 =
|
|
1081
|
-
|
|
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
|
-
|
|
1488
|
+
l === b1.current && se(i !== null);
|
|
1084
1489
|
}, []);
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
}, [
|
|
1088
|
-
const
|
|
1089
|
-
(
|
|
1090
|
-
const
|
|
1091
|
-
|
|
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
|
-
[
|
|
1094
|
-
),
|
|
1095
|
-
const { ownerDocument: g } =
|
|
1096
|
-
if (!g.hasFocus() &&
|
|
1097
|
-
|
|
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
|
-
|
|
1101
|
-
}, []),
|
|
1102
|
-
(
|
|
1103
|
-
const g =
|
|
1104
|
-
if (!Number.isInteger(
|
|
1105
|
-
throw new RangeError(`[directory-tree] scrollToIndex: ${String(
|
|
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
|
-
|
|
1512
|
+
R0(l);
|
|
1108
1513
|
return;
|
|
1109
1514
|
}
|
|
1110
|
-
|
|
1515
|
+
A0.current?.scrollToIndex(l, { align: g });
|
|
1111
1516
|
},
|
|
1112
|
-
[
|
|
1517
|
+
[R0]
|
|
1113
1518
|
);
|
|
1114
|
-
|
|
1115
|
-
|
|
1519
|
+
L2(
|
|
1520
|
+
O0,
|
|
1116
1521
|
() => ({
|
|
1117
|
-
scrollToIndex:
|
|
1118
|
-
scrollToPath: (
|
|
1119
|
-
|
|
1120
|
-
const g =
|
|
1121
|
-
return g === void 0 ? !1 : (
|
|
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: () =>
|
|
1528
|
+
getScrollAnchor: () => A0.current?.getScrollAnchor() ?? null
|
|
1124
1529
|
}),
|
|
1125
|
-
[
|
|
1530
|
+
[I1]
|
|
1126
1531
|
);
|
|
1127
|
-
const
|
|
1128
|
-
(
|
|
1129
|
-
if (
|
|
1532
|
+
const me = b(
|
|
1533
|
+
(l, i) => {
|
|
1534
|
+
if (l.altKey || l.ctrlKey || l.metaKey)
|
|
1130
1535
|
return;
|
|
1131
|
-
const g =
|
|
1132
|
-
if (
|
|
1133
|
-
const
|
|
1134
|
-
switch (
|
|
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
|
-
|
|
1541
|
+
l.preventDefault(), v0(Math.min(i + 1, y));
|
|
1137
1542
|
break;
|
|
1138
1543
|
case "ArrowUp":
|
|
1139
|
-
|
|
1544
|
+
l.preventDefault(), v0(Math.max(i - 1, 0));
|
|
1140
1545
|
break;
|
|
1141
1546
|
case "Home":
|
|
1142
|
-
|
|
1547
|
+
l.preventDefault(), v0(0);
|
|
1143
1548
|
break;
|
|
1144
1549
|
case "End":
|
|
1145
|
-
|
|
1550
|
+
l.preventDefault(), v0(y);
|
|
1146
1551
|
break;
|
|
1147
1552
|
case "ArrowRight":
|
|
1148
|
-
|
|
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 (
|
|
1152
|
-
|
|
1556
|
+
if (l.preventDefault(), K && g0) {
|
|
1557
|
+
w1.current(P.entry.absolutePath);
|
|
1153
1558
|
break;
|
|
1154
1559
|
}
|
|
1155
|
-
const
|
|
1156
|
-
for (let
|
|
1157
|
-
if (g[
|
|
1158
|
-
|
|
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
|
-
[
|
|
1166
|
-
),
|
|
1167
|
-
() =>
|
|
1168
|
-
[
|
|
1169
|
-
),
|
|
1170
|
-
|
|
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:
|
|
1173
|
-
glyphsByItem:
|
|
1174
|
-
itemHeight:
|
|
1175
|
-
width:
|
|
1176
|
-
viewportHeight:
|
|
1177
|
-
scrollPosition:
|
|
1178
|
-
color:
|
|
1179
|
-
expandGlyphColor:
|
|
1180
|
-
expandGlyphSize:
|
|
1181
|
-
renderStartIndex:
|
|
1182
|
-
renderEndIndex:
|
|
1183
|
-
lookaheadEndIndex:
|
|
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
|
-
) }) }), [
|
|
1186
|
-
|
|
1187
|
-
const
|
|
1188
|
-
if (
|
|
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
|
|
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
|
|
1194
|
-
if (
|
|
1598
|
+
const K = Pt(P, B, N0);
|
|
1599
|
+
if (K === null || Math.abs(K - y) < 1)
|
|
1195
1600
|
return;
|
|
1196
|
-
const
|
|
1197
|
-
|
|
1198
|
-
}, [
|
|
1199
|
-
const
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
}, [
|
|
1203
|
-
const
|
|
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:
|
|
1206
|
-
showExpandIcons:
|
|
1207
|
-
showDirectoryIcons:
|
|
1208
|
-
showFileIcons:
|
|
1209
|
-
useCanvasExpandIcons:
|
|
1210
|
-
expandIconSize:
|
|
1211
|
-
typeIconSize:
|
|
1212
|
-
fontSize:
|
|
1213
|
-
indentSize:
|
|
1214
|
-
highlightStyles:
|
|
1215
|
-
expandIconClassName:
|
|
1216
|
-
expandIconStyle:
|
|
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
|
-
[
|
|
1219
|
-
),
|
|
1220
|
-
() => /* @__PURE__ */
|
|
1221
|
-
|
|
1623
|
+
[R, L, v, N, S, C, Y, z, n0, D]
|
|
1624
|
+
), Ze = F(
|
|
1625
|
+
() => /* @__PURE__ */ m(
|
|
1626
|
+
E2,
|
|
1222
1627
|
{
|
|
1223
|
-
ref:
|
|
1224
|
-
itemCount:
|
|
1225
|
-
getItem:
|
|
1226
|
-
getItemHeight:
|
|
1227
|
-
getItemKey:
|
|
1228
|
-
testId:
|
|
1229
|
-
contentProps:
|
|
1230
|
-
locale:
|
|
1231
|
-
labels:
|
|
1232
|
-
viewportSize: typeof
|
|
1233
|
-
overscanCount:
|
|
1234
|
-
onScroll:
|
|
1235
|
-
onRangeChange:
|
|
1236
|
-
onScrollAdjust:
|
|
1237
|
-
liveRegion:
|
|
1238
|
-
className:
|
|
1239
|
-
onWheelHorizontal:
|
|
1240
|
-
background: /* @__PURE__ */
|
|
1241
|
-
|
|
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__ */
|
|
1244
|
-
) :
|
|
1245
|
-
|
|
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:
|
|
1248
|
-
initialScrollOffset:
|
|
1249
|
-
initialScrollAnchor:
|
|
1250
|
-
callbackThrottleMs:
|
|
1251
|
-
contentInsets:
|
|
1252
|
-
scrollBarOptions:
|
|
1253
|
-
behaviorOptions:
|
|
1254
|
-
children: (
|
|
1255
|
-
|
|
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:
|
|
1258
|
-
indentLevel:
|
|
1259
|
-
positionInSet:
|
|
1260
|
-
setSize:
|
|
1261
|
-
rowIndex:
|
|
1262
|
-
flatIndex:
|
|
1263
|
-
onRowFocus:
|
|
1264
|
-
onRowBlur:
|
|
1265
|
-
isSelectedForAria: !!
|
|
1266
|
-
rowHeight:
|
|
1267
|
-
isDirOpen:
|
|
1268
|
-
columns:
|
|
1269
|
-
numericTemplate:
|
|
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:
|
|
1273
|
-
selection: { onEntryClick:
|
|
1274
|
-
expansion: { toggleDirectory:
|
|
1275
|
-
visual:
|
|
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
|
-
|
|
1278
|
-
) : /* @__PURE__ */
|
|
1279
|
-
|
|
1682
|
+
l.entry.absolutePath
|
|
1683
|
+
) : /* @__PURE__ */ m(
|
|
1684
|
+
h2,
|
|
1280
1685
|
{
|
|
1281
|
-
entry:
|
|
1282
|
-
indentLevel:
|
|
1283
|
-
originX:
|
|
1284
|
-
depth:
|
|
1285
|
-
positionInSet:
|
|
1286
|
-
setSize:
|
|
1287
|
-
isSelectedForAria: !!
|
|
1288
|
-
flatIndex:
|
|
1289
|
-
isActive:
|
|
1290
|
-
registerRowRef:
|
|
1291
|
-
onNavigationKeyDown:
|
|
1292
|
-
onRowFocus:
|
|
1293
|
-
onRowBlur:
|
|
1294
|
-
rowHeight:
|
|
1295
|
-
entryKindDirectory: $
|
|
1296
|
-
entryKindFile:
|
|
1297
|
-
isDirOpen:
|
|
1298
|
-
expansion: { toggleDirectory:
|
|
1299
|
-
selection: { onEntryClick:
|
|
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:
|
|
1302
|
-
showExpandIcons:
|
|
1303
|
-
showDirectoryIcons:
|
|
1304
|
-
showFileIcons:
|
|
1305
|
-
useCanvasExpandIcons:
|
|
1306
|
-
expandIconSize:
|
|
1307
|
-
typeIconSize:
|
|
1308
|
-
fontSize:
|
|
1309
|
-
indentSize:
|
|
1310
|
-
highlightStyles:
|
|
1311
|
-
entryClassName:
|
|
1312
|
-
entryStyle:
|
|
1313
|
-
nameClassName:
|
|
1314
|
-
nameStyle:
|
|
1315
|
-
directoryNameClassName:
|
|
1316
|
-
directoryNameStyle:
|
|
1317
|
-
fileNameClassName:
|
|
1318
|
-
fileNameStyle:
|
|
1319
|
-
expandIconClassName:
|
|
1320
|
-
expandIconStyle:
|
|
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
|
-
|
|
1728
|
+
l.entry.absolutePath
|
|
1324
1729
|
) : null
|
|
1325
1730
|
}
|
|
1326
1731
|
),
|
|
1327
1732
|
[
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
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
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
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
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1781
|
+
v,
|
|
1782
|
+
N,
|
|
1783
|
+
S,
|
|
1784
|
+
C,
|
|
1785
|
+
Y,
|
|
1786
|
+
r1,
|
|
1787
|
+
z,
|
|
1788
|
+
u0,
|
|
1789
|
+
V0,
|
|
1386
1790
|
q,
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1791
|
+
Q,
|
|
1792
|
+
P0,
|
|
1793
|
+
S0,
|
|
1794
|
+
L0,
|
|
1795
|
+
k,
|
|
1796
|
+
n0,
|
|
1797
|
+
D
|
|
1393
1798
|
]
|
|
1394
1799
|
);
|
|
1395
|
-
if (!(
|
|
1396
|
-
return /* @__PURE__ */
|
|
1397
|
-
|
|
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__ */
|
|
1400
|
-
|
|
1804
|
+
/* @__PURE__ */ m("span", { tabIndex: 0, "data-directory-tree-tab-stop": "", style: Jt, onFocus: A2 }),
|
|
1805
|
+
Ze
|
|
1401
1806
|
] });
|
|
1402
|
-
const
|
|
1403
|
-
return /* @__PURE__ */
|
|
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:
|
|
1407
|
-
className:
|
|
1408
|
-
style:
|
|
1811
|
+
ref: p0,
|
|
1812
|
+
className: W(ae, "dt-grid"),
|
|
1813
|
+
style: V2,
|
|
1409
1814
|
role: "treegrid",
|
|
1410
|
-
"aria-label":
|
|
1411
|
-
"aria-labelledby":
|
|
1412
|
-
"aria-multiselectable":
|
|
1413
|
-
"aria-busy":
|
|
1414
|
-
"aria-rowcount":
|
|
1415
|
-
onPointerDownCapture:
|
|
1416
|
-
onMouseDownCapture:
|
|
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
|
-
|
|
1419
|
-
/* @__PURE__ */
|
|
1420
|
-
/* @__PURE__ */
|
|
1421
|
-
|
|
1422
|
-
/* @__PURE__ */
|
|
1423
|
-
/* @__PURE__ */
|
|
1424
|
-
|
|
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:
|
|
1430
|
-
scrollBarWidth:
|
|
1431
|
-
locale:
|
|
1432
|
-
labels:
|
|
1433
|
-
onScroll: (
|
|
1434
|
-
const
|
|
1435
|
-
return
|
|
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__ */
|
|
1844
|
+
/* @__PURE__ */ m("div", { className: "dt-grid-scrollbar-spacer", style: { width: W0 }, "aria-hidden": "true" })
|
|
1440
1845
|
] }),
|
|
1441
|
-
|
|
1442
|
-
/* @__PURE__ */
|
|
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
|
-
},
|
|
1447
|
-
const [n, r] =
|
|
1448
|
-
if (typeof window < "u" &&
|
|
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
|
|
1451
|
-
if (
|
|
1452
|
-
const
|
|
1453
|
-
return new Set(
|
|
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 (
|
|
1456
|
-
console.error("[useDirectoryTreeState] Error reading from localStorage",
|
|
1860
|
+
} catch (f) {
|
|
1861
|
+
console.error("[useDirectoryTreeState] Error reading from localStorage", f);
|
|
1457
1862
|
}
|
|
1458
1863
|
return e;
|
|
1459
|
-
}),
|
|
1864
|
+
}), c = b((f) => {
|
|
1460
1865
|
r(() => {
|
|
1461
|
-
|
|
1462
|
-
const
|
|
1463
|
-
return
|
|
1866
|
+
s((V) => {
|
|
1867
|
+
const H = new Set(V);
|
|
1868
|
+
return f(H), H;
|
|
1464
1869
|
});
|
|
1465
1870
|
});
|
|
1466
|
-
}, []),
|
|
1467
|
-
(
|
|
1468
|
-
|
|
1469
|
-
for (const
|
|
1470
|
-
|
|
1871
|
+
}, []), d = b(
|
|
1872
|
+
(f, V) => {
|
|
1873
|
+
c((H) => {
|
|
1874
|
+
for (const T of f)
|
|
1875
|
+
V(H, T);
|
|
1471
1876
|
});
|
|
1472
1877
|
},
|
|
1473
|
-
[
|
|
1878
|
+
[c]
|
|
1474
1879
|
);
|
|
1475
|
-
|
|
1476
|
-
if (
|
|
1880
|
+
k0(() => {
|
|
1881
|
+
if (a && typeof window < "u")
|
|
1477
1882
|
try {
|
|
1478
|
-
window.localStorage.setItem(
|
|
1479
|
-
} catch (
|
|
1480
|
-
console.warn(`Error setting localStorage key "${
|
|
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
|
-
}, [
|
|
1483
|
-
const
|
|
1484
|
-
(
|
|
1485
|
-
|
|
1486
|
-
|
|
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
|
-
[
|
|
1490
|
-
),
|
|
1491
|
-
(
|
|
1492
|
-
|
|
1493
|
-
|
|
1894
|
+
[d]
|
|
1895
|
+
), A = b(
|
|
1896
|
+
(f) => {
|
|
1897
|
+
d([f], (V, H) => {
|
|
1898
|
+
V.add(H);
|
|
1494
1899
|
});
|
|
1495
1900
|
},
|
|
1496
|
-
[
|
|
1497
|
-
),
|
|
1498
|
-
(
|
|
1499
|
-
|
|
1500
|
-
|
|
1901
|
+
[d]
|
|
1902
|
+
), M = b(
|
|
1903
|
+
(f) => {
|
|
1904
|
+
d([f], (V, H) => {
|
|
1905
|
+
V.delete(H);
|
|
1501
1906
|
});
|
|
1502
1907
|
},
|
|
1503
|
-
[
|
|
1504
|
-
),
|
|
1505
|
-
(
|
|
1506
|
-
|
|
1507
|
-
|
|
1908
|
+
[d]
|
|
1909
|
+
), Z = b(
|
|
1910
|
+
(f) => {
|
|
1911
|
+
d(f, (V, H) => {
|
|
1912
|
+
V.delete(H);
|
|
1508
1913
|
});
|
|
1509
1914
|
},
|
|
1510
|
-
[
|
|
1511
|
-
),
|
|
1512
|
-
(
|
|
1513
|
-
|
|
1514
|
-
|
|
1915
|
+
[d]
|
|
1916
|
+
), E = b(
|
|
1917
|
+
(f) => {
|
|
1918
|
+
d(f, (V, H) => {
|
|
1919
|
+
V.add(H);
|
|
1515
1920
|
});
|
|
1516
1921
|
},
|
|
1517
|
-
[
|
|
1518
|
-
),
|
|
1519
|
-
|
|
1520
|
-
|
|
1922
|
+
[d]
|
|
1923
|
+
), u = b(() => {
|
|
1924
|
+
c((f) => {
|
|
1925
|
+
f.clear();
|
|
1521
1926
|
});
|
|
1522
|
-
}, [
|
|
1927
|
+
}, [c]), p = b((f) => o.has(f), [o]);
|
|
1523
1928
|
return {
|
|
1524
|
-
expanded:
|
|
1525
|
-
toggle:
|
|
1526
|
-
expand:
|
|
1527
|
-
collapse:
|
|
1528
|
-
collapseMultiple:
|
|
1529
|
-
expandMultiple:
|
|
1530
|
-
collapseAll:
|
|
1531
|
-
isExpanded:
|
|
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
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
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
|
};
|