@jfvilas/react-file-manager 1.1.4 → 1.1.6
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/react-file-manager.es.js +355 -353
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as g, jsxs as U, Fragment as ze } from "react/jsx-runtime";
|
|
2
2
|
import * as en from "react";
|
|
3
|
-
import
|
|
3
|
+
import lt, { createContext as bt, useState as H, useEffect as me, useContext as wt, useRef as Pe, useLayoutEffect as ql, useCallback as _r, useMemo as An, memo as In } from "react";
|
|
4
4
|
var Qo = {
|
|
5
5
|
color: void 0,
|
|
6
6
|
size: void 0,
|
|
7
7
|
className: void 0,
|
|
8
8
|
style: void 0,
|
|
9
9
|
attr: void 0
|
|
10
|
-
}, hi =
|
|
10
|
+
}, hi = lt.createContext && /* @__PURE__ */ lt.createContext(Qo), Yl = ["attr", "size", "title"];
|
|
11
11
|
function Kl(e, n) {
|
|
12
12
|
if (e == null) return {};
|
|
13
13
|
var t = Gl(e, n), r, i;
|
|
@@ -77,12 +77,12 @@ function Ql(e, n) {
|
|
|
77
77
|
return (n === "string" ? String : Number)(e);
|
|
78
78
|
}
|
|
79
79
|
function Zo(e) {
|
|
80
|
-
return e && e.map((n, t) => /* @__PURE__ */
|
|
80
|
+
return e && e.map((n, t) => /* @__PURE__ */ lt.createElement(n.tag, xn({
|
|
81
81
|
key: t
|
|
82
82
|
}, n.attr), Zo(n.child)));
|
|
83
83
|
}
|
|
84
84
|
function ne(e) {
|
|
85
|
-
return (n) => /* @__PURE__ */
|
|
85
|
+
return (n) => /* @__PURE__ */ lt.createElement(Zl, vn({
|
|
86
86
|
attr: xn({}, e.attr)
|
|
87
87
|
}, n), Zo(e.child));
|
|
88
88
|
}
|
|
@@ -93,7 +93,7 @@ function Zl(e) {
|
|
|
93
93
|
size: i,
|
|
94
94
|
title: o
|
|
95
95
|
} = e, a = Kl(e, Yl), l = i || t.size || "1em", s;
|
|
96
|
-
return t.className && (s = t.className), e.className && (s = (s ? s + " " : "") + e.className), /* @__PURE__ */
|
|
96
|
+
return t.className && (s = t.className), e.className && (s = (s ? s + " " : "") + e.className), /* @__PURE__ */ lt.createElement("svg", vn({
|
|
97
97
|
stroke: "currentColor",
|
|
98
98
|
fill: "currentColor",
|
|
99
99
|
strokeWidth: "0"
|
|
@@ -105,9 +105,9 @@ function Zl(e) {
|
|
|
105
105
|
height: l,
|
|
106
106
|
width: l,
|
|
107
107
|
xmlns: "http://www.w3.org/2000/svg"
|
|
108
|
-
}), o && /* @__PURE__ */
|
|
108
|
+
}), o && /* @__PURE__ */ lt.createElement("title", null, o), e.children);
|
|
109
109
|
};
|
|
110
|
-
return hi !== void 0 ? /* @__PURE__ */
|
|
110
|
+
return hi !== void 0 ? /* @__PURE__ */ lt.createElement(hi.Consumer, null, (t) => n(t)) : n(Qo);
|
|
111
111
|
}
|
|
112
112
|
function es(e) {
|
|
113
113
|
return ne({ attr: { version: "1.1", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M16 8c-0.020-1.045-0.247-2.086-0.665-3.038-0.417-0.953-1.023-1.817-1.766-2.53s-1.624-1.278-2.578-1.651c-0.953-0.374-1.978-0.552-2.991-0.531-1.013 0.020-2.021 0.24-2.943 0.646-0.923 0.405-1.758 0.992-2.449 1.712s-1.237 1.574-1.597 2.497c-0.361 0.923-0.533 1.914-0.512 2.895 0.020 0.981 0.234 1.955 0.627 2.847 0.392 0.892 0.961 1.7 1.658 2.368s1.523 1.195 2.416 1.543c0.892 0.348 1.851 0.514 2.799 0.493 0.949-0.020 1.89-0.227 2.751-0.608 0.862-0.379 1.642-0.929 2.287-1.604s1.154-1.472 1.488-2.335c0.204-0.523 0.342-1.069 0.415-1.622 0.019 0.001 0.039 0.002 0.059 0.002 0.552 0 1-0.448 1-1 0-0.028-0.001-0.056-0.004-0.083h0.004zM14.411 10.655c-0.367 0.831-0.898 1.584-1.55 2.206s-1.422 1.112-2.254 1.434c-0.832 0.323-1.723 0.476-2.608 0.454-0.884-0.020-1.759-0.215-2.56-0.57-0.801-0.354-1.526-0.867-2.125-1.495s-1.071-1.371-1.38-2.173c-0.31-0.801-0.457-1.66-0.435-2.512s0.208-1.694 0.551-2.464c0.342-0.77 0.836-1.468 1.441-2.044s1.321-1.029 2.092-1.326c0.771-0.298 1.596-0.438 2.416-0.416s1.629 0.202 2.368 0.532c0.74 0.329 1.41 0.805 1.963 1.387s0.988 1.27 1.272 2.011c0.285 0.74 0.418 1.532 0.397 2.32h0.004c-0.002 0.027-0.004 0.055-0.004 0.083 0 0.516 0.39 0.94 0.892 0.994-0.097 0.544-0.258 1.075-0.481 1.578z" }, child: [] }] })(e);
|
|
@@ -227,14 +227,14 @@ function wn(e) {
|
|
|
227
227
|
function ys(e) {
|
|
228
228
|
return ne({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16L64 80zM0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" }, child: [] }] })(e);
|
|
229
229
|
}
|
|
230
|
-
const sa =
|
|
230
|
+
const sa = bt(), vs = ({ children: e, filesData: n, onError: t }) => {
|
|
231
231
|
const [r, i] = H([]);
|
|
232
232
|
me(() => {
|
|
233
233
|
i(n);
|
|
234
234
|
}, [n]);
|
|
235
235
|
const o = (a) => a.isDirectory ? r.filter((l) => l.path === `${a.path}/${l.name}`) : [];
|
|
236
236
|
return /* @__PURE__ */ g(sa.Provider, { value: { files: r, setFiles: i, getChildren: o, onError: t }, children: e });
|
|
237
|
-
}, Rn = () =>
|
|
237
|
+
}, Rn = () => wt(sa), xs = (e, n = "name", t = "asc") => {
|
|
238
238
|
const r = e.filter((s) => s.isDirectory), i = e.filter((s) => !s.isDirectory), o = (s, c) => {
|
|
239
239
|
let d = 0;
|
|
240
240
|
switch (n) {
|
|
@@ -255,7 +255,7 @@ const sa = xt(), vs = ({ children: e, filesData: n, onError: t }) => {
|
|
|
255
255
|
return t === "asc" ? d : -d;
|
|
256
256
|
}, a = [...r].sort(o), l = [...i].sort(o);
|
|
257
257
|
return [...a, ...l];
|
|
258
|
-
}, ca =
|
|
258
|
+
}, ca = bt(), bs = ({ children: e, initialPath: n, onFolderChange: t }) => {
|
|
259
259
|
const { files: r } = Rn(), i = Pe(!1), [o, a] = H(""), [l, s] = H(null), [c, d] = H([]), [u, f] = H({ key: "name", direction: "asc" });
|
|
260
260
|
return me(() => {
|
|
261
261
|
Array.isArray(r) && r.length > 0 ? (d(() => {
|
|
@@ -284,7 +284,7 @@ const sa = xt(), vs = ({ children: e, filesData: n, onError: t }) => {
|
|
|
284
284
|
children: e
|
|
285
285
|
}
|
|
286
286
|
);
|
|
287
|
-
},
|
|
287
|
+
}, ct = () => wt(ca), Pt = (e, n, ...t) => {
|
|
288
288
|
try {
|
|
289
289
|
if (typeof e == "function")
|
|
290
290
|
e(...t);
|
|
@@ -295,7 +295,7 @@ const sa = xt(), vs = ({ children: e, filesData: n, onError: t }) => {
|
|
|
295
295
|
} catch (r) {
|
|
296
296
|
console.error(r.message);
|
|
297
297
|
}
|
|
298
|
-
}, ua =
|
|
298
|
+
}, ua = bt(), ws = ({ children: e, onDownload: n, onSelect: t, onSelectionChange: r }) => {
|
|
299
299
|
const [i, o] = H([]);
|
|
300
300
|
me(() => {
|
|
301
301
|
t == null || t(i), r == null || r(i);
|
|
@@ -304,8 +304,8 @@ const sa = xt(), vs = ({ children: e, filesData: n, onError: t }) => {
|
|
|
304
304
|
Pt(n, "onDownload", i);
|
|
305
305
|
};
|
|
306
306
|
return /* @__PURE__ */ g(ua.Provider, { value: { selectedFiles: i, setSelectedFiles: o, handleDownload: a }, children: e });
|
|
307
|
-
},
|
|
308
|
-
const [i, o] = H(null), { selectedFiles: a, setSelectedFiles: l } =
|
|
307
|
+
}, gt = () => wt(ua), da = bt(), ks = ({ children: e, onPaste: n, onCut: t, onCopy: r }) => {
|
|
308
|
+
const [i, o] = H(null), { selectedFiles: a, setSelectedFiles: l } = gt(), s = (d) => {
|
|
309
309
|
o({
|
|
310
310
|
files: a,
|
|
311
311
|
isMoving: d
|
|
@@ -316,7 +316,7 @@ const sa = xt(), vs = ({ children: e, filesData: n, onError: t }) => {
|
|
|
316
316
|
Pt(n, "onPaste", u, d, f), i.isMoving && o(null), l([]);
|
|
317
317
|
};
|
|
318
318
|
return /* @__PURE__ */ g(da.Provider, { value: { clipBoard: i, setClipBoard: o, handleCutCopy: s, handlePasting: c }, children: e });
|
|
319
|
-
}, On = () =>
|
|
319
|
+
}, On = () => wt(da), se = (e) => typeof e == "string", Wt = () => {
|
|
320
320
|
let e, n;
|
|
321
321
|
const t = new Promise((r, i) => {
|
|
322
322
|
e = r, n = i;
|
|
@@ -483,7 +483,7 @@ class Cn {
|
|
|
483
483
|
return n = n || this.options, n.prefix = n.prefix || this.prefix, new Cn(this.logger, n);
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
var
|
|
486
|
+
var pt = new Cn();
|
|
487
487
|
class _n {
|
|
488
488
|
constructor() {
|
|
489
489
|
this.observers = {};
|
|
@@ -608,7 +608,7 @@ const Ti = {}, Pi = (e) => !se(e) && typeof e != "boolean" && typeof e != "numbe
|
|
|
608
608
|
class Sn extends _n {
|
|
609
609
|
constructor(n) {
|
|
610
610
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
611
|
-
super(), $s(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], n, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger =
|
|
611
|
+
super(), $s(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], n, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = pt.create("translator");
|
|
612
612
|
}
|
|
613
613
|
changeLanguage(n) {
|
|
614
614
|
n && (this.language = n);
|
|
@@ -716,27 +716,27 @@ class Sn extends _n {
|
|
|
716
716
|
const L = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && P ? void 0 : f, z = C && N !== f && this.options.updateMissing;
|
|
717
717
|
if (P || T || z) {
|
|
718
718
|
if (this.logger.log(z ? "updateKey" : "missingKey", c, s, a, z ? N : f), o) {
|
|
719
|
-
const
|
|
719
|
+
const W = this.resolve(a, {
|
|
720
720
|
...t,
|
|
721
721
|
keySeparator: !1
|
|
722
722
|
});
|
|
723
|
-
|
|
723
|
+
W && W.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
724
724
|
}
|
|
725
725
|
let V = [];
|
|
726
|
-
const
|
|
727
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
728
|
-
for (let
|
|
729
|
-
V.push(W
|
|
726
|
+
const q = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
|
727
|
+
if (this.options.saveMissingTo === "fallback" && q && q[0])
|
|
728
|
+
for (let W = 0; W < q.length; W++)
|
|
729
|
+
V.push(q[W]);
|
|
730
730
|
else this.options.saveMissingTo === "all" ? V = this.languageUtils.toResolveHierarchy(t.lng || this.language) : V.push(t.lng || this.language);
|
|
731
|
-
const re = (
|
|
731
|
+
const re = (W, h, _) => {
|
|
732
732
|
var y;
|
|
733
733
|
const Q = C && _ !== f ? _ : L;
|
|
734
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
734
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(W, s, h, Q, z, t) : (y = this.backendConnector) != null && y.saveMissing && this.backendConnector.saveMissing(W, s, h, Q, z, t), this.emit("missingKey", W, s, h, f);
|
|
735
735
|
};
|
|
736
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && S ? V.forEach((
|
|
737
|
-
const h = this.pluralResolver.getSuffixes(
|
|
736
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && S ? V.forEach((W) => {
|
|
737
|
+
const h = this.pluralResolver.getSuffixes(W, t);
|
|
738
738
|
$ && t[`defaultValue${this.options.pluralSeparator}zero`] && h.indexOf(`${this.options.pluralSeparator}zero`) < 0 && h.push(`${this.options.pluralSeparator}zero`), h.forEach((_) => {
|
|
739
|
-
re([
|
|
739
|
+
re([W], a + _, t[`defaultValue${_}`] || N);
|
|
740
740
|
});
|
|
741
741
|
}) : re(V, a, N));
|
|
742
742
|
}
|
|
@@ -865,7 +865,7 @@ class Sn extends _n {
|
|
|
865
865
|
}
|
|
866
866
|
class Ni {
|
|
867
867
|
constructor(n) {
|
|
868
|
-
this.options = n, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
868
|
+
this.options = n, this.supportedLngs = this.options.supportedLngs || !1, this.logger = pt.create("languageUtils");
|
|
869
869
|
}
|
|
870
870
|
getScriptPartFromCode(n) {
|
|
871
871
|
if (n = $n(n), !n || n.indexOf("-") < 0) return null;
|
|
@@ -943,7 +943,7 @@ const Li = {
|
|
|
943
943
|
class Is {
|
|
944
944
|
constructor(n) {
|
|
945
945
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
946
|
-
this.languageUtils = n, this.options = t, this.logger =
|
|
946
|
+
this.languageUtils = n, this.options = t, this.logger = pt.create("pluralResolver"), this.pluralRulesCache = {};
|
|
947
947
|
}
|
|
948
948
|
addRule(n, t) {
|
|
949
949
|
this.rules[n] = t;
|
|
@@ -999,7 +999,7 @@ class Rs {
|
|
|
999
999
|
constructor() {
|
|
1000
1000
|
var t;
|
|
1001
1001
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1002
|
-
this.logger =
|
|
1002
|
+
this.logger = pt.create("interpolator"), this.options = n, this.format = ((t = n == null ? void 0 : n.interpolation) == null ? void 0 : t.format) || ((r) => r), this.init(n);
|
|
1003
1003
|
}
|
|
1004
1004
|
init() {
|
|
1005
1005
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -1155,7 +1155,7 @@ const Os = (e) => {
|
|
|
1155
1155
|
class _s {
|
|
1156
1156
|
constructor() {
|
|
1157
1157
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1158
|
-
this.logger =
|
|
1158
|
+
this.logger = pt.create("formatter"), this.options = n, this.formats = {
|
|
1159
1159
|
number: Rt((t, r) => {
|
|
1160
1160
|
const i = new Intl.NumberFormat(t, {
|
|
1161
1161
|
...r
|
|
@@ -1240,7 +1240,7 @@ class Ms extends _n {
|
|
|
1240
1240
|
constructor(n, t, r) {
|
|
1241
1241
|
var o, a;
|
|
1242
1242
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
1243
|
-
super(), this.backend = n, this.store = t, this.services = r, this.languageUtils = r.languageUtils, this.options = i, this.logger =
|
|
1243
|
+
super(), this.backend = n, this.store = t, this.services = r, this.languageUtils = r.languageUtils, this.options = i, this.logger = pt.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], (a = (o = this.backend) == null ? void 0 : o.init) == null || a.call(o, r, i.backend, i);
|
|
1244
1244
|
}
|
|
1245
1245
|
queueLoad(n, t, r, i) {
|
|
1246
1246
|
const o = {}, a = {}, l = {}, s = {};
|
|
@@ -1441,7 +1441,7 @@ const Ii = () => ({
|
|
|
1441
1441
|
class tn extends _n {
|
|
1442
1442
|
constructor() {
|
|
1443
1443
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
1444
|
-
if (super(), this.options = Ri(n), this.services = {}, this.logger =
|
|
1444
|
+
if (super(), this.options = Ri(n), this.services = {}, this.logger = pt, this.modules = {
|
|
1445
1445
|
external: []
|
|
1446
1446
|
}, js(this), t && !this.isInitialized && !n.isClone) {
|
|
1447
1447
|
if (!this.options.initAsync)
|
|
@@ -1466,13 +1466,13 @@ class tn extends _n {
|
|
|
1466
1466
|
}, t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
|
1467
1467
|
const o = (d) => d ? typeof d == "function" ? new d() : d : null;
|
|
1468
1468
|
if (!this.options.isClone) {
|
|
1469
|
-
this.modules.logger ?
|
|
1469
|
+
this.modules.logger ? pt.init(o(this.modules.logger), this.options) : pt.init(null, this.options);
|
|
1470
1470
|
let d;
|
|
1471
1471
|
this.modules.formatter ? d = this.modules.formatter : d = _s;
|
|
1472
1472
|
const u = new Ni(this.options);
|
|
1473
1473
|
this.store = new Fi(this.options.resources, this.options);
|
|
1474
1474
|
const f = this.services;
|
|
1475
|
-
f.logger =
|
|
1475
|
+
f.logger = pt, f.resourceStore = this.store, f.languageUtils = u, f.pluralResolver = new Is(u, {
|
|
1476
1476
|
prepend: this.options.pluralSeparator,
|
|
1477
1477
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1478
1478
|
}), d && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (f.formatter = o(d), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new Rs(this.options), f.utils = {
|
|
@@ -2745,12 +2745,12 @@ const Bs = "مجلد جديد", Us = "رفع", Hs = "لصق", Vs = "تغيير
|
|
|
2745
2745
|
escapeValue: !1
|
|
2746
2746
|
}
|
|
2747
2747
|
});
|
|
2748
|
-
}, ha =
|
|
2748
|
+
}, ha = bt(() => (e) => e), l6 = ({ children: e, language: n }) => {
|
|
2749
2749
|
const [t, r] = H(() => Ee.t.bind(Ee));
|
|
2750
2750
|
return me(() => {
|
|
2751
2751
|
a6(n), r(() => Ee.t.bind(Ee));
|
|
2752
2752
|
}, [n]), /* @__PURE__ */ g(ha.Provider, { value: t, children: e });
|
|
2753
|
-
}, Me = () =>
|
|
2753
|
+
}, Me = () => wt(ha), on = (e = () => {
|
|
2754
2754
|
}) => {
|
|
2755
2755
|
const [n, t] = H(!1), r = Pe(null), i = (o) => {
|
|
2756
2756
|
var a;
|
|
@@ -2759,13 +2759,13 @@ const Bs = "مجلد جديد", Us = "رفع", Hs = "لصق", Vs = "تغيير
|
|
|
2759
2759
|
return me(() => (document.addEventListener("click", i, !0), document.addEventListener("mousedown", i, !0), () => {
|
|
2760
2760
|
document.removeEventListener("click", i, !0), document.removeEventListener("mousedown", i, !0);
|
|
2761
2761
|
}), []), { ref: r, isClicked: n, setIsClicked: t };
|
|
2762
|
-
}, ma =
|
|
2762
|
+
}, ma = bt(), s6 = ({ children: e, layout: n }) => {
|
|
2763
2763
|
const [t, r] = H(() => i(n));
|
|
2764
2764
|
function i(o) {
|
|
2765
2765
|
return ["list", "grid"].includes(o) ? o : "grid";
|
|
2766
2766
|
}
|
|
2767
2767
|
return /* @__PURE__ */ g(ma.Provider, { value: { activeLayout: t, setActiveLayout: r }, children: e });
|
|
2768
|
-
}, Nt = () =>
|
|
2768
|
+
}, Nt = () => wt(ma), ga = bt();
|
|
2769
2769
|
function c6({ children: e }) {
|
|
2770
2770
|
const [n, t] = H({
|
|
2771
2771
|
statusBar: !0,
|
|
@@ -2775,7 +2775,7 @@ function c6({ children: e }) {
|
|
|
2775
2775
|
return /* @__PURE__ */ g(ga.Provider, { value: { options: n, toggleStatusBar: r, toggleFolderTree: i, toggleCheckBox: o }, children: e });
|
|
2776
2776
|
}
|
|
2777
2777
|
function Dn() {
|
|
2778
|
-
const e =
|
|
2778
|
+
const e = wt(ga);
|
|
2779
2779
|
if (!e)
|
|
2780
2780
|
throw new Error("useOptions must be included inside a <OptionsProvider>");
|
|
2781
2781
|
return e;
|
|
@@ -2844,7 +2844,7 @@ const u6 = ({ setShowViewOptionsMenu: e, onLayoutChange: n, onNavigationPaneChan
|
|
|
2844
2844
|
) }) });
|
|
2845
2845
|
}, ya = ({ onLayoutChange: e, onRefresh: n, triggerAction: t, permissions: r, onNavigationPaneChange: i }) => {
|
|
2846
2846
|
var E;
|
|
2847
|
-
const [o, a] = H(!1), { currentFolder: l } =
|
|
2847
|
+
const [o, a] = H(!1), { currentFolder: l } = ct(), { selectedFiles: s, setSelectedFiles: c, handleDownload: d } = gt(), { clipBoard: u, setClipBoard: f, handleCutCopy: p, handlePasting: m } = On(), b = Me(), k = [
|
|
2848
2848
|
{
|
|
2849
2849
|
icon: /* @__PURE__ */ g(ta, { size: 17, strokeWidth: 0.3 }),
|
|
2850
2850
|
text: b("newFolder"),
|
|
@@ -3205,21 +3205,21 @@ function T6({
|
|
|
3205
3205
|
"aria-controls": `react-collapsed-panel-${c}`,
|
|
3206
3206
|
"aria-expanded": d,
|
|
3207
3207
|
onClick(re) {
|
|
3208
|
-
F || (x == null || x(re), u((
|
|
3208
|
+
F || (x == null || x(re), u((W) => !W));
|
|
3209
3209
|
},
|
|
3210
3210
|
[T || "ref"]: Mi(L, E)
|
|
3211
3211
|
}, V = {
|
|
3212
3212
|
type: "button",
|
|
3213
3213
|
disabled: F ? !0 : void 0
|
|
3214
|
-
},
|
|
3214
|
+
}, q = {
|
|
3215
3215
|
"aria-disabled": F ? !0 : void 0,
|
|
3216
3216
|
role: "button",
|
|
3217
3217
|
tabIndex: F ? -1 : 0
|
|
3218
3218
|
};
|
|
3219
|
-
return O === !1 ? { ...z, ...
|
|
3219
|
+
return O === !1 ? { ...z, ...q, ...P } : O === !0 ? { ...z, ...V, ...P } : {
|
|
3220
3220
|
...z,
|
|
3221
3221
|
...V,
|
|
3222
|
-
...
|
|
3222
|
+
...q,
|
|
3223
3223
|
...P
|
|
3224
3224
|
};
|
|
3225
3225
|
},
|
|
@@ -3269,7 +3269,7 @@ function Bi(e) {
|
|
|
3269
3269
|
return ne({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M464 128H272l-54.63-54.63c-6-6-14.14-9.37-22.63-9.37H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm0 272H48V112h140.12l54.63 54.63c6 6 14.14 9.37 22.63 9.37H464v224z" }, child: [] }] })(e);
|
|
3270
3270
|
}
|
|
3271
3271
|
const xa = ({ folder: e, onFileOpen: n, icons: t }) => {
|
|
3272
|
-
const [r, i] = H(!1), [o, a] = H(!1), { currentPath: l, setCurrentPath: s, onFolderChange: c } =
|
|
3272
|
+
const [r, i] = H(!1), [o, a] = H(!1), { currentPath: l, setCurrentPath: s, onFolderChange: c } = ct(), d = () => {
|
|
3273
3273
|
a(!0), n(e), s(e.path), c == null || c(e.path);
|
|
3274
3274
|
}, u = (f) => {
|
|
3275
3275
|
f.stopPropagation(), i((p) => !p);
|
|
@@ -3418,14 +3418,14 @@ function I6() {
|
|
|
3418
3418
|
case u:
|
|
3419
3419
|
return et;
|
|
3420
3420
|
default:
|
|
3421
|
-
var
|
|
3422
|
-
switch (
|
|
3421
|
+
var We = et && et.$$typeof;
|
|
3422
|
+
switch (We) {
|
|
3423
3423
|
case l:
|
|
3424
3424
|
case d:
|
|
3425
3425
|
case m:
|
|
3426
3426
|
case p:
|
|
3427
3427
|
case a:
|
|
3428
|
-
return
|
|
3428
|
+
return We;
|
|
3429
3429
|
default:
|
|
3430
3430
|
return Fe;
|
|
3431
3431
|
}
|
|
@@ -3435,8 +3435,8 @@ function I6() {
|
|
|
3435
3435
|
}
|
|
3436
3436
|
}
|
|
3437
3437
|
}
|
|
3438
|
-
var E = s, $ = c, N = l, R = a, F = n, x = d, T = r, P = m, O = p, L = t, z = o, V = i,
|
|
3439
|
-
function
|
|
3438
|
+
var E = s, $ = c, N = l, R = a, F = n, x = d, T = r, P = m, O = p, L = t, z = o, V = i, q = u, re = !1;
|
|
3439
|
+
function W(B) {
|
|
3440
3440
|
return re || (re = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(B) || I(B) === s;
|
|
3441
3441
|
}
|
|
3442
3442
|
function h(B) {
|
|
@@ -3475,7 +3475,7 @@ function I6() {
|
|
|
3475
3475
|
function ge(B) {
|
|
3476
3476
|
return I(B) === u;
|
|
3477
3477
|
}
|
|
3478
|
-
we.AsyncMode = E, we.ConcurrentMode = $, we.ContextConsumer = N, we.ContextProvider = R, we.Element = F, we.ForwardRef = x, we.Fragment = T, we.Lazy = P, we.Memo = O, we.Portal = L, we.Profiler = z, we.StrictMode = V, we.Suspense =
|
|
3478
|
+
we.AsyncMode = E, we.ConcurrentMode = $, we.ContextConsumer = N, we.ContextProvider = R, we.Element = F, we.ForwardRef = x, we.Fragment = T, we.Lazy = P, we.Memo = O, we.Portal = L, we.Profiler = z, we.StrictMode = V, we.Suspense = q, we.isAsyncMode = W, we.isConcurrentMode = h, we.isContextConsumer = _, we.isContextProvider = Q, we.isElement = y, we.isForwardRef = X, we.isFragment = ie, we.isLazy = K, we.isMemo = ee, we.isPortal = Z, we.isProfiler = oe, we.isStrictMode = G, we.isSuspense = ge, we.isValidElementType = C, we.typeOf = I;
|
|
3479
3479
|
}()), we;
|
|
3480
3480
|
}
|
|
3481
3481
|
var Vi;
|
|
@@ -3672,7 +3672,7 @@ function _6() {
|
|
|
3672
3672
|
function _(Q, y, X, ie, K, ee) {
|
|
3673
3673
|
var Z = Q[y], oe = V(Z);
|
|
3674
3674
|
if (oe !== h) {
|
|
3675
|
-
var G =
|
|
3675
|
+
var G = q(Z);
|
|
3676
3676
|
return new b(
|
|
3677
3677
|
"Invalid " + ie + " `" + K + "` of type " + ("`" + G + "` supplied to `" + X + "`, expected ") + ("`" + h + "`."),
|
|
3678
3678
|
{ expectedType: h }
|
|
@@ -3728,7 +3728,7 @@ function _6() {
|
|
|
3728
3728
|
function $(h) {
|
|
3729
3729
|
function _(Q, y, X, ie, K) {
|
|
3730
3730
|
if (!(Q[y] instanceof h)) {
|
|
3731
|
-
var ee = h.name || f, Z =
|
|
3731
|
+
var ee = h.name || f, Z = W(Q[y]);
|
|
3732
3732
|
return new b("Invalid " + ie + " `" + K + "` of type " + ("`" + Z + "` supplied to `" + X + "`, expected ") + ("instance of `" + ee + "`."));
|
|
3733
3733
|
}
|
|
3734
3734
|
return null;
|
|
@@ -3745,7 +3745,7 @@ function _6() {
|
|
|
3745
3745
|
if (m(ee, h[Z]))
|
|
3746
3746
|
return null;
|
|
3747
3747
|
var oe = JSON.stringify(h, function(ge, B) {
|
|
3748
|
-
var Fe =
|
|
3748
|
+
var Fe = q(B);
|
|
3749
3749
|
return Fe === "symbol" ? String(B) : B;
|
|
3750
3750
|
});
|
|
3751
3751
|
return new b("Invalid " + ie + " `" + K + "` of value `" + String(ee) + "` " + ("supplied to `" + X + "`, expected one of " + oe + "."));
|
|
@@ -3810,7 +3810,7 @@ function _6() {
|
|
|
3810
3810
|
for (var oe in h) {
|
|
3811
3811
|
var G = h[oe];
|
|
3812
3812
|
if (typeof G != "function")
|
|
3813
|
-
return T(X, ie, K, oe,
|
|
3813
|
+
return T(X, ie, K, oe, q(G));
|
|
3814
3814
|
var ge = G(ee, oe, X, ie, K + "." + oe, t);
|
|
3815
3815
|
if (ge)
|
|
3816
3816
|
return ge;
|
|
@@ -3828,7 +3828,7 @@ function _6() {
|
|
|
3828
3828
|
for (var G in oe) {
|
|
3829
3829
|
var ge = h[G];
|
|
3830
3830
|
if (r(h, G) && typeof ge != "function")
|
|
3831
|
-
return T(X, ie, K, G,
|
|
3831
|
+
return T(X, ie, K, G, q(ge));
|
|
3832
3832
|
if (!ge)
|
|
3833
3833
|
return new b(
|
|
3834
3834
|
"Invalid " + ie + " `" + K + "` key `" + G + "` supplied to `" + X + "`.\nBad object: " + JSON.stringify(Q[y], null, " ") + `
|
|
@@ -3882,7 +3882,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
3882
3882
|
var _ = typeof h;
|
|
3883
3883
|
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : z(_, h) ? "symbol" : _;
|
|
3884
3884
|
}
|
|
3885
|
-
function
|
|
3885
|
+
function q(h) {
|
|
3886
3886
|
if (typeof h > "u" || h === null)
|
|
3887
3887
|
return "" + h;
|
|
3888
3888
|
var _ = V(h);
|
|
@@ -3895,7 +3895,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
3895
3895
|
return _;
|
|
3896
3896
|
}
|
|
3897
3897
|
function re(h) {
|
|
3898
|
-
var _ =
|
|
3898
|
+
var _ = q(h);
|
|
3899
3899
|
switch (_) {
|
|
3900
3900
|
case "array":
|
|
3901
3901
|
case "object":
|
|
@@ -3908,7 +3908,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
3908
3908
|
return _;
|
|
3909
3909
|
}
|
|
3910
3910
|
}
|
|
3911
|
-
function
|
|
3911
|
+
function W(h) {
|
|
3912
3912
|
return !h.constructor || !h.constructor.name ? f : h.constructor.name;
|
|
3913
3913
|
}
|
|
3914
3914
|
return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
|
|
@@ -4021,7 +4021,7 @@ const H6 = ({ onFilterChange: e }) => {
|
|
|
4021
4021
|
)
|
|
4022
4022
|
] });
|
|
4023
4023
|
}, Ur = ({ collapsibleNav: e, isNavigationPaneOpen: n, onNavigationPaneChange: t, onSearchUpdated: r }) => {
|
|
4024
|
-
const [i, o] = H([]), [a, l] = H([]), [s, c] = H([]), [d, u] = H(!1), { currentPath: f, setCurrentPath: p, onFolderChange: m } =
|
|
4024
|
+
const [i, o] = H([]), [a, l] = H([]), [s, c] = H([]), [d, u] = H(!1), { currentPath: f, setCurrentPath: p, onFolderChange: m } = ct(), b = Pe(null), k = Pe([]), v = Pe(null), S = on(() => {
|
|
4025
4025
|
u(!1);
|
|
4026
4026
|
}), C = Me(), I = Pe(null);
|
|
4027
4027
|
me(() => {
|
|
@@ -4036,8 +4036,8 @@ const H6 = ({ onFilterChange: e }) => {
|
|
|
4036
4036
|
const E = (F) => {
|
|
4037
4037
|
p(F), m == null || m(F);
|
|
4038
4038
|
}, $ = () => {
|
|
4039
|
-
var
|
|
4040
|
-
const F = b.current.clientWidth, x = getComputedStyle(b.current), T = parseFloat(x.paddingLeft), P = e ? 2 : 0, L = e ? ((
|
|
4039
|
+
var q;
|
|
4040
|
+
const F = b.current.clientWidth, x = getComputedStyle(b.current), T = parseFloat(x.paddingLeft), P = e ? 2 : 0, L = e ? ((q = I.current) == null ? void 0 : q.clientWidth) + 1 : 0, z = a.length > 0 ? 1 : 0, V = parseFloat(x.gap) * (i.length + z + P);
|
|
4041
4041
|
return F - (T + V + L);
|
|
4042
4042
|
}, N = () => {
|
|
4043
4043
|
var P;
|
|
@@ -4186,7 +4186,7 @@ const Fn = (e) => ({
|
|
|
4186
4186
|
), Sa = ({ message: e, xPlacement: n, yPlacement: t }) => /* @__PURE__ */ g("p", { className: `error-tooltip ${n} ${t}`, children: e }), V6 = 220, W6 = ({ filesViewRef: e, file: n, onCreateFolder: t, triggerAction: r }) => {
|
|
4187
4187
|
const [i, o] = H(n.name), [a, l] = H(!1), [s, c] = H(""), [d, u] = H("right"), [f, p] = H("bottom"), m = on((N) => {
|
|
4188
4188
|
N.preventDefault(), N.stopPropagation();
|
|
4189
|
-
}), { currentFolder: b, currentPathFiles: k, setCurrentPathFiles: v } =
|
|
4189
|
+
}), { currentFolder: b, currentPathFiles: k, setCurrentPathFiles: v } = ct(), { activeLayout: S } = Nt(), C = Me(), I = (N) => {
|
|
4190
4190
|
o(N.target.value), l(!1);
|
|
4191
4191
|
}, E = (N) => {
|
|
4192
4192
|
if (N.stopPropagation(), N.key === "Enter") {
|
|
@@ -4300,7 +4300,7 @@ const Ea = ({
|
|
|
4300
4300
|
}
|
|
4301
4301
|
);
|
|
4302
4302
|
}, Mt = (e) => e.split(".").pop(), Y6 = 220, K6 = ({ filesViewRef: e, file: n, onRename: t, triggerAction: r }) => {
|
|
4303
|
-
const [i, o] = H(n == null ? void 0 : n.name), [a, l] = H(!1), [s, c] = H(!1), [d, u] = H(""), [f, p] = H("right"), [m, b] = H("bottom"), { currentPathFiles: k, setCurrentPathFiles: v } =
|
|
4303
|
+
const [i, o] = H(n == null ? void 0 : n.name), [a, l] = H(!1), [s, c] = H(!1), [d, u] = H(""), [f, p] = H("right"), [m, b] = H("bottom"), { currentPathFiles: k, setCurrentPathFiles: v } = ct(), { activeLayout: S } = Nt(), C = Me(), I = Pe(null), E = on((F) => {
|
|
4304
4304
|
var x;
|
|
4305
4305
|
(x = I.current) != null && x.contains(F.target) || (F.preventDefault(), F.stopPropagation());
|
|
4306
4306
|
}), $ = (F) => {
|
|
@@ -4462,21 +4462,21 @@ const Ea = ({
|
|
|
4462
4462
|
draggable: f,
|
|
4463
4463
|
formatDate: p
|
|
4464
4464
|
}) => {
|
|
4465
|
-
var
|
|
4466
|
-
const [m, b] = H(!1), [k, v] = H(0), [S, C] = H("hidden"), [I, E] = H(""), [$, N] = H(null), { activeLayout: R } = Nt(), F = R === "grid" ? 48 : 20, x = Fn(F), { setCurrentPath: T, currentPathFiles: P, onFolderChange: O } =
|
|
4465
|
+
var Ge, tt, it, ut;
|
|
4466
|
+
const [m, b] = H(!1), [k, v] = H(0), [S, C] = H("hidden"), [I, E] = H(""), [$, N] = H(null), { activeLayout: R } = Nt(), F = R === "grid" ? 48 : 20, x = Fn(F), { setCurrentPath: T, currentPathFiles: P, onFolderChange: O } = ct(), { setSelectedFiles: L } = gt(), { clipBoard: z, handleCutCopy: V, setClipBoard: q, handlePasting: re } = On(), W = Pe(null), h = Fn(rr), { options: _ } = Dn(), Q = (z == null ? void 0 : z.isMoving) && z.files.find((ue) => ue.name === t.name && ue.path === t.path), y = () => {
|
|
4467
4467
|
a(t), t.isDirectory ? (T(t.path), O == null || O(t.path), L([])) : o && c.show("previewFile");
|
|
4468
4468
|
}, X = (ue, Ae) => {
|
|
4469
4469
|
if (s.length > 0 && ue) {
|
|
4470
|
-
let
|
|
4471
|
-
if (
|
|
4472
|
-
const A =
|
|
4473
|
-
|
|
4474
|
-
}
|
|
4475
|
-
const $t = P.slice(
|
|
4476
|
-
L(
|
|
4477
|
-
} else s.length > 0 && Ae ? L((
|
|
4478
|
-
const
|
|
4479
|
-
return
|
|
4470
|
+
let Be = !1, ot = s[0], dt = n;
|
|
4471
|
+
if (ot >= dt) {
|
|
4472
|
+
const A = ot;
|
|
4473
|
+
ot = dt, dt = A, Be = !0;
|
|
4474
|
+
}
|
|
4475
|
+
const $t = P.slice(ot, dt + 1);
|
|
4476
|
+
L(Be ? $t.reverse() : $t);
|
|
4477
|
+
} else s.length > 0 && Ae ? L((Be) => {
|
|
4478
|
+
const ot = Be.filter((dt) => dt.path !== t.path);
|
|
4479
|
+
return Be.length === ot.length ? [...Be, t] : ot;
|
|
4480
4480
|
}) : L([t]);
|
|
4481
4481
|
}, ie = (ue) => {
|
|
4482
4482
|
if (ue.stopPropagation(), t.isEditing) return;
|
|
@@ -4496,14 +4496,14 @@ const Ea = ({
|
|
|
4496
4496
|
}, oe = () => {
|
|
4497
4497
|
!m && C("hidden");
|
|
4498
4498
|
}, G = (ue) => {
|
|
4499
|
-
ue.target.checked ? L((Ae) => [...Ae, t]) : L((Ae) => Ae.filter((
|
|
4499
|
+
ue.target.checked ? L((Ae) => [...Ae, t]) : L((Ae) => Ae.filter((Be) => Be.name !== t.name && Be.path !== t.path)), b(ue.target.checked);
|
|
4500
4500
|
}, ge = (ue) => {
|
|
4501
|
-
ue.dataTransfer.setDragImage(
|
|
4502
|
-
}, B = () =>
|
|
4501
|
+
ue.dataTransfer.setDragImage(W.current, 30, 50), ue.dataTransfer.effectAllowed = "copy", V(!0);
|
|
4502
|
+
}, B = () => q(null), Fe = (ue) => {
|
|
4503
4503
|
ue.preventDefault(), m || !t.isDirectory ? ue.dataTransfer.dropEffect = "none" : (N({ x: ue.clientX, y: ue.clientY + 12 }), ue.dataTransfer.dropEffect = "copy", E("file-drop-zone"));
|
|
4504
4504
|
}, et = (ue) => {
|
|
4505
4505
|
ue.currentTarget.contains(ue.relatedTarget) || (E((Ae) => Ae && ""), N(null));
|
|
4506
|
-
},
|
|
4506
|
+
}, We = (ue) => {
|
|
4507
4507
|
ue.preventDefault(), !(m || !t.isDirectory) && (re(t), E((Ae) => Ae && ""), N(null));
|
|
4508
4508
|
};
|
|
4509
4509
|
return me(() => {
|
|
@@ -4525,7 +4525,7 @@ const Ea = ({
|
|
|
4525
4525
|
onDragEnter: Fe,
|
|
4526
4526
|
onDragOver: Fe,
|
|
4527
4527
|
onDragLeave: et,
|
|
4528
|
-
onDrop:
|
|
4528
|
+
onDrop: We,
|
|
4529
4529
|
children: [
|
|
4530
4530
|
/* @__PURE__ */ U("div", { className: "file-item", style: { paddingLeft: _.checkBox ? "33px" : "12px" }, children: [
|
|
4531
4531
|
!t.isEditing && _.checkBox && /* @__PURE__ */ g(
|
|
@@ -4539,9 +4539,9 @@ const Ea = ({
|
|
|
4539
4539
|
onClick: (ue) => ue.stopPropagation()
|
|
4540
4540
|
}
|
|
4541
4541
|
),
|
|
4542
|
-
t.isDirectory ? t.class && e && e.get(t.class) ? (R === "grid" ? e.get(t.class).grid : e.get(t.class).list) || /* @__PURE__ */ g(us, { size: F }) : /* @__PURE__ */ g(ki, { size: F }) : t.class && e && e.get(t.class) ?
|
|
4542
|
+
t.isDirectory ? t.class && e && e.get(t.class) ? (R === "grid" ? e.get(t.class).grid : e.get(t.class).list) || /* @__PURE__ */ g(us, { size: F }) : /* @__PURE__ */ g(ki, { size: F }) : t.class && e && e.get(t.class) ? lt.cloneElement(e.get(t.class).open || e.get(t.class).default, { height: 40 }) : /* @__PURE__ */ U(ze, { children: [
|
|
4543
4543
|
" ",
|
|
4544
|
-
x[(tt = (
|
|
4544
|
+
x[(tt = (Ge = t.name) == null ? void 0 : Ge.split(".").pop()) == null ? void 0 : tt.toLowerCase()] ?? /* @__PURE__ */ g(bn, { size: F }),
|
|
4545
4545
|
" "
|
|
4546
4546
|
] }),
|
|
4547
4547
|
t.isEditing ? /* @__PURE__ */ g("div", { className: `rename-file-container ${R}`, children: c.actionType === "createFolder" ? /* @__PURE__ */ g(
|
|
@@ -4580,7 +4580,7 @@ const Ea = ({
|
|
|
4580
4580
|
]
|
|
4581
4581
|
}
|
|
4582
4582
|
),
|
|
4583
|
-
/* @__PURE__ */ g("div", { ref:
|
|
4583
|
+
/* @__PURE__ */ g("div", { ref: W, className: "drag-icon", children: t.isDirectory ? /* @__PURE__ */ g(ki, { size: rr }) : /* @__PURE__ */ g(ze, { children: h[(ut = (it = t.name) == null ? void 0 : it.split(".").pop()) == null ? void 0 : ut.toLowerCase()] ?? /* @__PURE__ */ g(bn, { size: rr }) }) })
|
|
4584
4584
|
]
|
|
4585
4585
|
}
|
|
4586
4586
|
);
|
|
@@ -4647,17 +4647,17 @@ function Q6(e) {
|
|
|
4647
4647
|
return ne({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z" }, child: [] }] })(e);
|
|
4648
4648
|
}
|
|
4649
4649
|
const Z6 = (e, n, t, r, i) => {
|
|
4650
|
-
const [o, a] = H([]), [l, s] = H(!1), [c, d] = H(!1), [u, f] = H({ clickX: 0, clickY: 0 }), [p, m] = H(null), { clipBoard: b, setClipBoard: k, handleCutCopy: v, handlePasting: S } = On(), { selectedFiles: C, setSelectedFiles: I, handleDownload: E } =
|
|
4650
|
+
const [o, a] = H([]), [l, s] = H(!1), [c, d] = H(!1), [u, f] = H({ clickX: 0, clickY: 0 }), [p, m] = H(null), { clipBoard: b, setClipBoard: k, handleCutCopy: v, handlePasting: S } = On(), { selectedFiles: C, setSelectedFiles: I, handleDownload: E } = gt(), { currentPath: $, setCurrentPath: N, currentPathFiles: R, setCurrentPathFiles: F, onFolderChange: x } = ct(), { activeLayout: T, setActiveLayout: P } = Nt(), O = Me(), L = () => {
|
|
4651
4651
|
i(p), p.isDirectory ? (N(p.path), x == null || x(p.path), a([]), I([])) : n && t.show("previewFile"), s(!1);
|
|
4652
4652
|
}, z = (G) => {
|
|
4653
4653
|
v(G), s(!1);
|
|
4654
4654
|
}, V = () => {
|
|
4655
4655
|
S(p), s(!1);
|
|
4656
|
-
},
|
|
4656
|
+
}, q = () => {
|
|
4657
4657
|
s(!1), t.show("rename");
|
|
4658
4658
|
}, re = () => {
|
|
4659
4659
|
E(), s(!1);
|
|
4660
|
-
},
|
|
4660
|
+
}, W = () => {
|
|
4661
4661
|
s(!1), t.show("delete");
|
|
4662
4662
|
}, h = () => {
|
|
4663
4663
|
s(!1), Pt(e, "onRefresh"), k(null);
|
|
@@ -4757,7 +4757,7 @@ const Z6 = (e, n, t, r, i) => {
|
|
|
4757
4757
|
{
|
|
4758
4758
|
title: O("rename"),
|
|
4759
4759
|
icon: /* @__PURE__ */ g(aa, { size: 19 }),
|
|
4760
|
-
onClick:
|
|
4760
|
+
onClick: q,
|
|
4761
4761
|
hidden: C.length > 1 || !r.rename
|
|
4762
4762
|
},
|
|
4763
4763
|
{
|
|
@@ -4769,7 +4769,7 @@ const Z6 = (e, n, t, r, i) => {
|
|
|
4769
4769
|
{
|
|
4770
4770
|
title: O("delete"),
|
|
4771
4771
|
icon: /* @__PURE__ */ g(ia, { size: 19 }),
|
|
4772
|
-
onClick:
|
|
4772
|
+
onClick: W,
|
|
4773
4773
|
hidden: !r.delete
|
|
4774
4774
|
}
|
|
4775
4775
|
], K = () => {
|
|
@@ -4823,7 +4823,7 @@ const Z6 = (e, n, t, r, i) => {
|
|
|
4823
4823
|
isSelectionCtx: c
|
|
4824
4824
|
};
|
|
4825
4825
|
}, e3 = ({ unselectFiles: e, onSort: n, sortConfig: t }) => {
|
|
4826
|
-
const r = Me(), [i, o] = H(!1), { options: a } = Dn(), { selectedFiles: l, setSelectedFiles: s } =
|
|
4826
|
+
const r = Me(), [i, o] = H(!1), { options: a } = Dn(), { selectedFiles: l, setSelectedFiles: s } = gt(), { currentPathFiles: c } = ct(), d = An(() => c.length > 0 && l.length === c.length, [l, c]), u = (p) => {
|
|
4827
4827
|
p.target.checked ? (s(c), o(!0)) : e();
|
|
4828
4828
|
}, f = (p) => {
|
|
4829
4829
|
n && n(p);
|
|
@@ -4894,7 +4894,7 @@ const Z6 = (e, n, t, r, i) => {
|
|
|
4894
4894
|
permissions: c,
|
|
4895
4895
|
formatDate: d
|
|
4896
4896
|
}) => {
|
|
4897
|
-
const { currentPathFiles: u, sortConfig: f, setSortConfig: p } =
|
|
4897
|
+
const { currentPathFiles: u, sortConfig: f, setSortConfig: p } = ct(), m = Pe(null), { activeLayout: b } = Nt(), k = Me(), { options: v } = Dn(), {
|
|
4898
4898
|
emptySelecCtxItems: S,
|
|
4899
4899
|
selecCtxItems: C,
|
|
4900
4900
|
handleContextMenu: I,
|
|
@@ -4905,15 +4905,15 @@ const Z6 = (e, n, t, r, i) => {
|
|
|
4905
4905
|
selectedFileIndexes: F,
|
|
4906
4906
|
clickPosition: x,
|
|
4907
4907
|
isSelectionCtx: T
|
|
4908
|
-
} = Z6(a, l, s, c, o), P = on(() => N(!1)), O = (
|
|
4908
|
+
} = Z6(a, l, s, c, o), P = on(() => N(!1)), O = (q) => {
|
|
4909
4909
|
let re = "asc";
|
|
4910
|
-
f.key ===
|
|
4911
|
-
}, L = (
|
|
4910
|
+
f.key === q && f.direction === "asc" && (re = "desc"), p({ key: q, direction: re });
|
|
4911
|
+
}, L = (q) => {
|
|
4912
4912
|
if (N(!1), e) {
|
|
4913
4913
|
for (let re of e.keys())
|
|
4914
4914
|
if (F.length > 0 && F.every((h) => u[h].class === re)) {
|
|
4915
4915
|
for (let h of e.get(re))
|
|
4916
|
-
if (h.title ===
|
|
4916
|
+
if (h.title === q.target.innerText) {
|
|
4917
4917
|
let _ = u.filter((Q, y) => F.includes(y));
|
|
4918
4918
|
h.onClick(_);
|
|
4919
4919
|
}
|
|
@@ -4922,28 +4922,28 @@ const Z6 = (e, n, t, r, i) => {
|
|
|
4922
4922
|
};
|
|
4923
4923
|
let z = C;
|
|
4924
4924
|
if (e) {
|
|
4925
|
-
for (let
|
|
4926
|
-
if (F.length > 0 && F.every((
|
|
4925
|
+
for (let q of e.keys())
|
|
4926
|
+
if (F.length > 0 && F.every((W) => u[W].class === q)) {
|
|
4927
4927
|
z[z.length - 1].divider = !0;
|
|
4928
|
-
for (let
|
|
4928
|
+
for (let W of e.get(q))
|
|
4929
4929
|
z.push({
|
|
4930
|
-
title:
|
|
4931
|
-
icon:
|
|
4932
|
-
divider:
|
|
4930
|
+
title: W.title,
|
|
4931
|
+
icon: W.icon,
|
|
4932
|
+
divider: W.divider,
|
|
4933
4933
|
onClick: L
|
|
4934
4934
|
});
|
|
4935
4935
|
}
|
|
4936
4936
|
}
|
|
4937
4937
|
const V = () => {
|
|
4938
4938
|
if (!v.statusBar) return /* @__PURE__ */ g(ze, {});
|
|
4939
|
-
let
|
|
4939
|
+
let q = u.length + " Items";
|
|
4940
4940
|
if (F.length > 0) {
|
|
4941
|
-
|
|
4942
|
-
let
|
|
4941
|
+
q += " " + F.length + " items selected";
|
|
4942
|
+
let W = u.filter((h, _) => F.includes(_)).reduce((h, _) => (_.size || 0) + h, 0);
|
|
4943
4943
|
var re = "bytes";
|
|
4944
|
-
|
|
4944
|
+
W > 1024 && (W = (W / 1024).toFixed(0), re = "KB", W > 1024 && (W = (W / 1024).toFixed(0), re = "MB")), q += " " + W + " " + re;
|
|
4945
4945
|
}
|
|
4946
|
-
return /* @__PURE__ */ g("div", { className: "statusbar", style: { ...v.folderTree ? {} : { borderBottomLeftRadius: "8px" } }, children:
|
|
4946
|
+
return /* @__PURE__ */ g("div", { className: "statusbar", style: { ...v.folderTree ? {} : { borderBottomLeftRadius: "8px" } }, children: q });
|
|
4947
4947
|
};
|
|
4948
4948
|
return /* @__PURE__ */ U(ze, { children: [
|
|
4949
4949
|
/* @__PURE__ */ U(
|
|
@@ -4956,12 +4956,12 @@ const Z6 = (e, n, t, r, i) => {
|
|
|
4956
4956
|
onClick: E,
|
|
4957
4957
|
children: [
|
|
4958
4958
|
b === "list" && /* @__PURE__ */ g(e3, { unselectFiles: E, onSort: O, sortConfig: f }),
|
|
4959
|
-
(u == null ? void 0 : u.length) > 0 ? /* @__PURE__ */ g(ze, { children: u.
|
|
4959
|
+
(u == null ? void 0 : u.length) > 0 ? /* @__PURE__ */ g(ze, { children: u.map((q, re) => q.name.toLowerCase().includes(t) && /* @__PURE__ */ g(
|
|
4960
4960
|
G6,
|
|
4961
4961
|
{
|
|
4962
4962
|
icons: n,
|
|
4963
4963
|
index: re,
|
|
4964
|
-
file:
|
|
4964
|
+
file: q,
|
|
4965
4965
|
onCreateFolder: r,
|
|
4966
4966
|
onRename: i,
|
|
4967
4967
|
onFileOpen: o,
|
|
@@ -4996,7 +4996,7 @@ const Z6 = (e, n, t, r, i) => {
|
|
|
4996
4996
|
};
|
|
4997
4997
|
Ta.displayName = "FileList";
|
|
4998
4998
|
const t3 = ({ triggerAction: e, onDelete: n }) => {
|
|
4999
|
-
const [t, r] = H(""), { selectedFiles: i, setSelectedFiles: o } =
|
|
4999
|
+
const [t, r] = H(""), { selectedFiles: i, setSelectedFiles: o } = gt(), a = Me();
|
|
5000
5000
|
me(() => {
|
|
5001
5001
|
r(() => {
|
|
5002
5002
|
if (i.length === 1)
|
|
@@ -5066,17 +5066,17 @@ const a3 = ({
|
|
|
5066
5066
|
if (!T.error)
|
|
5067
5067
|
return new Promise((P, O) => {
|
|
5068
5068
|
const L = new XMLHttpRequest();
|
|
5069
|
-
k.current = L, r((
|
|
5070
|
-
...
|
|
5069
|
+
k.current = L, r((W) => ({
|
|
5070
|
+
...W,
|
|
5071
5071
|
[e]: !0
|
|
5072
|
-
})), L.upload.onprogress = (
|
|
5073
|
-
if (
|
|
5074
|
-
const h = Math.round(
|
|
5072
|
+
})), L.upload.onprogress = (W) => {
|
|
5073
|
+
if (W.lengthComputable) {
|
|
5074
|
+
const h = Math.round(W.loaded / W.total * 100);
|
|
5075
5075
|
s(h);
|
|
5076
5076
|
}
|
|
5077
5077
|
}, L.onload = () => {
|
|
5078
|
-
r((
|
|
5079
|
-
...
|
|
5078
|
+
r((W) => ({
|
|
5079
|
+
...W,
|
|
5080
5080
|
[e]: !1
|
|
5081
5081
|
})), L.status === 200 || L.status === 201 ? (d(!0), o(L.response), P(L.response)) : (O(L.statusText), C(L));
|
|
5082
5082
|
}, L.onerror = () => {
|
|
@@ -5085,12 +5085,12 @@ const a3 = ({
|
|
|
5085
5085
|
const z = (i == null ? void 0 : i.method) || "POST";
|
|
5086
5086
|
L.open(z, i == null ? void 0 : i.url, !0);
|
|
5087
5087
|
const V = i == null ? void 0 : i.headers;
|
|
5088
|
-
for (let
|
|
5089
|
-
L.setRequestHeader(
|
|
5090
|
-
const
|
|
5091
|
-
for (let
|
|
5092
|
-
re[
|
|
5093
|
-
|
|
5088
|
+
for (let W in V)
|
|
5089
|
+
L.setRequestHeader(W, V[W]);
|
|
5090
|
+
const q = new FormData(), re = T == null ? void 0 : T.appendData;
|
|
5091
|
+
for (let W in re)
|
|
5092
|
+
re[W] && q.append(W, re[W]);
|
|
5093
|
+
q.append("file", T.file), L.send(q);
|
|
5094
5094
|
});
|
|
5095
5095
|
};
|
|
5096
5096
|
me(() => {
|
|
@@ -5145,7 +5145,7 @@ const a3 = ({
|
|
|
5145
5145
|
onFileUploading: r,
|
|
5146
5146
|
onFileUploaded: i
|
|
5147
5147
|
}) => {
|
|
5148
|
-
const [o, a] = H([]), [l, s] = H(!1), [c, d] = H({}), { currentFolder: u, currentPathFiles: f } =
|
|
5148
|
+
const [o, a] = H([]), [l, s] = H(!1), [c, d] = H({}), { currentFolder: u, currentPathFiles: f } = ct(), { onError: p } = Rn(), m = Pe(null), b = Me(), k = ($) => {
|
|
5149
5149
|
$.key === "Enter" && m.current.click();
|
|
5150
5150
|
}, v = ($) => {
|
|
5151
5151
|
if (t && !t.includes(Mt($.name)))
|
|
@@ -5281,7 +5281,7 @@ function Pa(e, n) {
|
|
|
5281
5281
|
function Sr(e) {
|
|
5282
5282
|
return e.toLowerCase();
|
|
5283
5283
|
}
|
|
5284
|
-
class
|
|
5284
|
+
class Ke {
|
|
5285
5285
|
/**
|
|
5286
5286
|
* @param {string} property
|
|
5287
5287
|
* Property.
|
|
@@ -5294,18 +5294,18 @@ class Ge {
|
|
|
5294
5294
|
this.attribute = t, this.property = n;
|
|
5295
5295
|
}
|
|
5296
5296
|
}
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5297
|
+
Ke.prototype.attribute = "";
|
|
5298
|
+
Ke.prototype.booleanish = !1;
|
|
5299
|
+
Ke.prototype.boolean = !1;
|
|
5300
|
+
Ke.prototype.commaOrSpaceSeparated = !1;
|
|
5301
|
+
Ke.prototype.commaSeparated = !1;
|
|
5302
|
+
Ke.prototype.defined = !1;
|
|
5303
|
+
Ke.prototype.mustUseProperty = !1;
|
|
5304
|
+
Ke.prototype.number = !1;
|
|
5305
|
+
Ke.prototype.overloadedBoolean = !1;
|
|
5306
|
+
Ke.prototype.property = "";
|
|
5307
|
+
Ke.prototype.spaceSeparated = !1;
|
|
5308
|
+
Ke.prototype.space = void 0;
|
|
5309
5309
|
let h3 = 0;
|
|
5310
5310
|
const ce = Lt(), Le = Lt(), Er = Lt(), M = Lt(), Se = Lt(), jt = Lt(), Qe = Lt();
|
|
5311
5311
|
function Lt() {
|
|
@@ -5324,7 +5324,7 @@ const Fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5324
5324
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
5325
5325
|
Object.keys(Fr)
|
|
5326
5326
|
);
|
|
5327
|
-
class Hr extends
|
|
5327
|
+
class Hr extends Ke {
|
|
5328
5328
|
/**
|
|
5329
5329
|
* @constructor
|
|
5330
5330
|
* @param {string} property
|
|
@@ -6392,7 +6392,7 @@ const m3 = Ht({
|
|
|
6392
6392
|
}, v3 = /[A-Z]/g, to = /-[a-z]/g, x3 = /^data[-\w.:]+$/i;
|
|
6393
6393
|
function b3(e, n) {
|
|
6394
6394
|
const t = Sr(n);
|
|
6395
|
-
let r = n, i =
|
|
6395
|
+
let r = n, i = Ke;
|
|
6396
6396
|
if (t in e.normal)
|
|
6397
6397
|
return e.property[e.normal[t]];
|
|
6398
6398
|
if (t.length > 4 && t.slice(0, 4) === "data" && x3.test(n)) {
|
|
@@ -6488,12 +6488,12 @@ function S3() {
|
|
|
6488
6488
|
var L = E(), z = R(r);
|
|
6489
6489
|
if (z) {
|
|
6490
6490
|
if (T(), !R(i)) return N("property missing ':'");
|
|
6491
|
-
var V = R(o),
|
|
6491
|
+
var V = R(o), q = L({
|
|
6492
6492
|
type: p,
|
|
6493
6493
|
property: b(z[0].replace(e, u)),
|
|
6494
6494
|
value: V ? b(V[0].replace(e, u)) : u
|
|
6495
6495
|
});
|
|
6496
|
-
return R(a),
|
|
6496
|
+
return R(a), q;
|
|
6497
6497
|
}
|
|
6498
6498
|
}
|
|
6499
6499
|
function O() {
|
|
@@ -7085,10 +7085,10 @@ function Va(e, n) {
|
|
|
7085
7085
|
t > 1114111 ? "�" : String.fromCodePoint(t)
|
|
7086
7086
|
);
|
|
7087
7087
|
}
|
|
7088
|
-
function
|
|
7088
|
+
function st(e) {
|
|
7089
7089
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
7090
7090
|
}
|
|
7091
|
-
const
|
|
7091
|
+
const Ve = kt(/[A-Za-z]/), De = kt(/[\dA-Za-z]/), n$ = kt(/[#-'*+\--9=?A-Z^-~]/);
|
|
7092
7092
|
function Tn(e) {
|
|
7093
7093
|
return (
|
|
7094
7094
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -7096,7 +7096,7 @@ function Tn(e) {
|
|
|
7096
7096
|
e !== null && (e < 32 || e === 127)
|
|
7097
7097
|
);
|
|
7098
7098
|
}
|
|
7099
|
-
const Pr =
|
|
7099
|
+
const Pr = kt(/\d/), r$ = kt(/[\dA-Fa-f]/), i$ = kt(/[!-/:-@[-`{-~]/);
|
|
7100
7100
|
function te(e) {
|
|
7101
7101
|
return e !== null && e < -2;
|
|
7102
7102
|
}
|
|
@@ -7106,8 +7106,8 @@ function Ce(e) {
|
|
|
7106
7106
|
function fe(e) {
|
|
7107
7107
|
return e === -2 || e === -1 || e === 32;
|
|
7108
7108
|
}
|
|
7109
|
-
const jn =
|
|
7110
|
-
function
|
|
7109
|
+
const jn = kt(new RegExp("\\p{P}|\\p{S}", "u")), Tt = kt(/\s/);
|
|
7110
|
+
function kt(e) {
|
|
7111
7111
|
return n;
|
|
7112
7112
|
function n(t) {
|
|
7113
7113
|
return t !== null && t > -1 && e.test(String.fromCharCode(t));
|
|
@@ -7398,7 +7398,7 @@ function p$(e, n, t) {
|
|
|
7398
7398
|
return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), o;
|
|
7399
7399
|
}
|
|
7400
7400
|
function o(p) {
|
|
7401
|
-
return
|
|
7401
|
+
return Ve(p) ? (e.consume(p), a) : p === 64 ? t(p) : c(p);
|
|
7402
7402
|
}
|
|
7403
7403
|
function a(p) {
|
|
7404
7404
|
return p === 43 || p === 45 || p === 46 || De(p) ? (r = 1, l(p)) : c(p);
|
|
@@ -8053,7 +8053,7 @@ function D$(e, n, t) {
|
|
|
8053
8053
|
)(p);
|
|
8054
8054
|
}
|
|
8055
8055
|
function l(p) {
|
|
8056
|
-
return i =
|
|
8056
|
+
return i = st(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), s) : t(p);
|
|
8057
8057
|
}
|
|
8058
8058
|
function s(p) {
|
|
8059
8059
|
return Ce(p) ? Zt(e, c)(p) : c(p);
|
|
@@ -8241,10 +8241,10 @@ function X$(e, n, t) {
|
|
|
8241
8241
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(y), u;
|
|
8242
8242
|
}
|
|
8243
8243
|
function u(y) {
|
|
8244
|
-
return y === 33 ? (e.consume(y), f) : y === 47 ? (e.consume(y), o = !0, b) : y === 63 ? (e.consume(y), i = 3, r.interrupt ? n : h) :
|
|
8244
|
+
return y === 33 ? (e.consume(y), f) : y === 47 ? (e.consume(y), o = !0, b) : y === 63 ? (e.consume(y), i = 3, r.interrupt ? n : h) : Ve(y) ? (e.consume(y), a = String.fromCharCode(y), k) : t(y);
|
|
8245
8245
|
}
|
|
8246
8246
|
function f(y) {
|
|
8247
|
-
return y === 45 ? (e.consume(y), i = 2, p) : y === 91 ? (e.consume(y), i = 5, l = 0, m) :
|
|
8247
|
+
return y === 45 ? (e.consume(y), i = 2, p) : y === 91 ? (e.consume(y), i = 5, l = 0, m) : Ve(y) ? (e.consume(y), i = 4, r.interrupt ? n : h) : t(y);
|
|
8248
8248
|
}
|
|
8249
8249
|
function p(y) {
|
|
8250
8250
|
return y === 45 ? (e.consume(y), r.interrupt ? n : h) : t(y);
|
|
@@ -8254,7 +8254,7 @@ function X$(e, n, t) {
|
|
|
8254
8254
|
return y === X.charCodeAt(l++) ? (e.consume(y), l === X.length ? r.interrupt ? n : P : m) : t(y);
|
|
8255
8255
|
}
|
|
8256
8256
|
function b(y) {
|
|
8257
|
-
return
|
|
8257
|
+
return Ve(y) ? (e.consume(y), a = String.fromCharCode(y), k) : t(y);
|
|
8258
8258
|
}
|
|
8259
8259
|
function k(y) {
|
|
8260
8260
|
if (y === null || y === 47 || y === 62 || Ce(y)) {
|
|
@@ -8270,7 +8270,7 @@ function X$(e, n, t) {
|
|
|
8270
8270
|
return fe(y) ? (e.consume(y), S) : x(y);
|
|
8271
8271
|
}
|
|
8272
8272
|
function C(y) {
|
|
8273
|
-
return y === 47 ? (e.consume(y), x) : y === 58 || y === 95 ||
|
|
8273
|
+
return y === 47 ? (e.consume(y), x) : y === 58 || y === 95 || Ve(y) ? (e.consume(y), I) : fe(y) ? (e.consume(y), C) : x(y);
|
|
8274
8274
|
}
|
|
8275
8275
|
function I(y) {
|
|
8276
8276
|
return y === 45 || y === 46 || y === 58 || y === 95 || De(y) ? (e.consume(y), I) : E(y);
|
|
@@ -8297,7 +8297,7 @@ function X$(e, n, t) {
|
|
|
8297
8297
|
return y === null || te(y) ? P(y) : fe(y) ? (e.consume(y), T) : t(y);
|
|
8298
8298
|
}
|
|
8299
8299
|
function P(y) {
|
|
8300
|
-
return y === 45 && i === 2 ? (e.consume(y), V) : y === 60 && i === 1 ? (e.consume(y),
|
|
8300
|
+
return y === 45 && i === 2 ? (e.consume(y), V) : y === 60 && i === 1 ? (e.consume(y), q) : y === 62 && i === 4 ? (e.consume(y), _) : y === 63 && i === 3 ? (e.consume(y), h) : y === 93 && i === 5 ? (e.consume(y), W) : te(y) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Y$, Q, O)(y)) : y === null || te(y) ? (e.exit("htmlFlowData"), O(y)) : (e.consume(y), P);
|
|
8301
8301
|
}
|
|
8302
8302
|
function O(y) {
|
|
8303
8303
|
return e.check(K$, L, Q)(y);
|
|
@@ -8311,7 +8311,7 @@ function X$(e, n, t) {
|
|
|
8311
8311
|
function V(y) {
|
|
8312
8312
|
return y === 45 ? (e.consume(y), h) : P(y);
|
|
8313
8313
|
}
|
|
8314
|
-
function
|
|
8314
|
+
function q(y) {
|
|
8315
8315
|
return y === 47 ? (e.consume(y), a = "", re) : P(y);
|
|
8316
8316
|
}
|
|
8317
8317
|
function re(y) {
|
|
@@ -8319,9 +8319,9 @@ function X$(e, n, t) {
|
|
|
8319
8319
|
const X = a.toLowerCase();
|
|
8320
8320
|
return go.includes(X) ? (e.consume(y), _) : P(y);
|
|
8321
8321
|
}
|
|
8322
|
-
return
|
|
8322
|
+
return Ve(y) && a.length < 8 ? (e.consume(y), a += String.fromCharCode(y), re) : P(y);
|
|
8323
8323
|
}
|
|
8324
|
-
function
|
|
8324
|
+
function W(y) {
|
|
8325
8325
|
return y === 93 ? (e.consume(y), h) : P(y);
|
|
8326
8326
|
}
|
|
8327
8327
|
function h(y) {
|
|
@@ -8362,16 +8362,16 @@ function eC(e, n, t) {
|
|
|
8362
8362
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(h), s;
|
|
8363
8363
|
}
|
|
8364
8364
|
function s(h) {
|
|
8365
|
-
return h === 33 ? (e.consume(h), c) : h === 47 ? (e.consume(h), E) : h === 63 ? (e.consume(h), C) :
|
|
8365
|
+
return h === 33 ? (e.consume(h), c) : h === 47 ? (e.consume(h), E) : h === 63 ? (e.consume(h), C) : Ve(h) ? (e.consume(h), R) : t(h);
|
|
8366
8366
|
}
|
|
8367
8367
|
function c(h) {
|
|
8368
|
-
return h === 45 ? (e.consume(h), d) : h === 91 ? (e.consume(h), o = 0, m) :
|
|
8368
|
+
return h === 45 ? (e.consume(h), d) : h === 91 ? (e.consume(h), o = 0, m) : Ve(h) ? (e.consume(h), S) : t(h);
|
|
8369
8369
|
}
|
|
8370
8370
|
function d(h) {
|
|
8371
8371
|
return h === 45 ? (e.consume(h), p) : t(h);
|
|
8372
8372
|
}
|
|
8373
8373
|
function u(h) {
|
|
8374
|
-
return h === null ? t(h) : h === 45 ? (e.consume(h), f) : te(h) ? (a = u,
|
|
8374
|
+
return h === null ? t(h) : h === 45 ? (e.consume(h), f) : te(h) ? (a = u, q(h)) : (e.consume(h), u);
|
|
8375
8375
|
}
|
|
8376
8376
|
function f(h) {
|
|
8377
8377
|
return h === 45 ? (e.consume(h), p) : u(h);
|
|
@@ -8384,7 +8384,7 @@ function eC(e, n, t) {
|
|
|
8384
8384
|
return h === _.charCodeAt(o++) ? (e.consume(h), o === _.length ? b : m) : t(h);
|
|
8385
8385
|
}
|
|
8386
8386
|
function b(h) {
|
|
8387
|
-
return h === null ? t(h) : h === 93 ? (e.consume(h), k) : te(h) ? (a = b,
|
|
8387
|
+
return h === null ? t(h) : h === 93 ? (e.consume(h), k) : te(h) ? (a = b, q(h)) : (e.consume(h), b);
|
|
8388
8388
|
}
|
|
8389
8389
|
function k(h) {
|
|
8390
8390
|
return h === 93 ? (e.consume(h), v) : b(h);
|
|
@@ -8393,40 +8393,40 @@ function eC(e, n, t) {
|
|
|
8393
8393
|
return h === 62 ? V(h) : h === 93 ? (e.consume(h), v) : b(h);
|
|
8394
8394
|
}
|
|
8395
8395
|
function S(h) {
|
|
8396
|
-
return h === null || h === 62 ? V(h) : te(h) ? (a = S,
|
|
8396
|
+
return h === null || h === 62 ? V(h) : te(h) ? (a = S, q(h)) : (e.consume(h), S);
|
|
8397
8397
|
}
|
|
8398
8398
|
function C(h) {
|
|
8399
|
-
return h === null ? t(h) : h === 63 ? (e.consume(h), I) : te(h) ? (a = C,
|
|
8399
|
+
return h === null ? t(h) : h === 63 ? (e.consume(h), I) : te(h) ? (a = C, q(h)) : (e.consume(h), C);
|
|
8400
8400
|
}
|
|
8401
8401
|
function I(h) {
|
|
8402
8402
|
return h === 62 ? V(h) : C(h);
|
|
8403
8403
|
}
|
|
8404
8404
|
function E(h) {
|
|
8405
|
-
return
|
|
8405
|
+
return Ve(h) ? (e.consume(h), $) : t(h);
|
|
8406
8406
|
}
|
|
8407
8407
|
function $(h) {
|
|
8408
8408
|
return h === 45 || De(h) ? (e.consume(h), $) : N(h);
|
|
8409
8409
|
}
|
|
8410
8410
|
function N(h) {
|
|
8411
|
-
return te(h) ? (a = N,
|
|
8411
|
+
return te(h) ? (a = N, q(h)) : fe(h) ? (e.consume(h), N) : V(h);
|
|
8412
8412
|
}
|
|
8413
8413
|
function R(h) {
|
|
8414
8414
|
return h === 45 || De(h) ? (e.consume(h), R) : h === 47 || h === 62 || Ce(h) ? F(h) : t(h);
|
|
8415
8415
|
}
|
|
8416
8416
|
function F(h) {
|
|
8417
|
-
return h === 47 ? (e.consume(h), V) : h === 58 || h === 95 ||
|
|
8417
|
+
return h === 47 ? (e.consume(h), V) : h === 58 || h === 95 || Ve(h) ? (e.consume(h), x) : te(h) ? (a = F, q(h)) : fe(h) ? (e.consume(h), F) : V(h);
|
|
8418
8418
|
}
|
|
8419
8419
|
function x(h) {
|
|
8420
8420
|
return h === 45 || h === 46 || h === 58 || h === 95 || De(h) ? (e.consume(h), x) : T(h);
|
|
8421
8421
|
}
|
|
8422
8422
|
function T(h) {
|
|
8423
|
-
return h === 61 ? (e.consume(h), P) : te(h) ? (a = T,
|
|
8423
|
+
return h === 61 ? (e.consume(h), P) : te(h) ? (a = T, q(h)) : fe(h) ? (e.consume(h), T) : F(h);
|
|
8424
8424
|
}
|
|
8425
8425
|
function P(h) {
|
|
8426
|
-
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? t(h) : h === 34 || h === 39 ? (e.consume(h), i = h, O) : te(h) ? (a = P,
|
|
8426
|
+
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? t(h) : h === 34 || h === 39 ? (e.consume(h), i = h, O) : te(h) ? (a = P, q(h)) : fe(h) ? (e.consume(h), P) : (e.consume(h), L);
|
|
8427
8427
|
}
|
|
8428
8428
|
function O(h) {
|
|
8429
|
-
return h === i ? (e.consume(h), i = void 0, z) : h === null ? t(h) : te(h) ? (a = O,
|
|
8429
|
+
return h === i ? (e.consume(h), i = void 0, z) : h === null ? t(h) : te(h) ? (a = O, q(h)) : (e.consume(h), O);
|
|
8430
8430
|
}
|
|
8431
8431
|
function L(h) {
|
|
8432
8432
|
return h === null || h === 34 || h === 39 || h === 60 || h === 61 || h === 96 ? t(h) : h === 47 || h === 62 || Ce(h) ? F(h) : (e.consume(h), L);
|
|
@@ -8437,13 +8437,13 @@ function eC(e, n, t) {
|
|
|
8437
8437
|
function V(h) {
|
|
8438
8438
|
return h === 62 ? (e.consume(h), e.exit("htmlTextData"), e.exit("htmlText"), n) : t(h);
|
|
8439
8439
|
}
|
|
8440
|
-
function
|
|
8440
|
+
function q(h) {
|
|
8441
8441
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), re;
|
|
8442
8442
|
}
|
|
8443
8443
|
function re(h) {
|
|
8444
|
-
return fe(h) ? he(e,
|
|
8444
|
+
return fe(h) ? he(e, W, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(h) : W(h);
|
|
8445
8445
|
}
|
|
8446
|
-
function
|
|
8446
|
+
function W(h) {
|
|
8447
8447
|
return e.enter("htmlTextData"), a(h);
|
|
8448
8448
|
}
|
|
8449
8449
|
}
|
|
@@ -8521,7 +8521,7 @@ function aC(e, n, t) {
|
|
|
8521
8521
|
}
|
|
8522
8522
|
return l;
|
|
8523
8523
|
function l(f) {
|
|
8524
|
-
return o ? o._inactive ? u(f) : (a = r.parser.defined.includes(
|
|
8524
|
+
return o ? o._inactive ? u(f) : (a = r.parser.defined.includes(st(r.sliceSerialize({
|
|
8525
8525
|
start: o.end,
|
|
8526
8526
|
end: r.now()
|
|
8527
8527
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(f), e.exit("labelMarker"), e.exit("labelEnd"), s) : t(f);
|
|
@@ -8573,7 +8573,7 @@ function sC(e, n, t) {
|
|
|
8573
8573
|
return Xa.call(r, e, o, a, "reference", "referenceMarker", "referenceString")(l);
|
|
8574
8574
|
}
|
|
8575
8575
|
function o(l) {
|
|
8576
|
-
return r.parser.defined.includes(
|
|
8576
|
+
return r.parser.defined.includes(st(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? n(l) : t(l);
|
|
8577
8577
|
}
|
|
8578
8578
|
function a(l) {
|
|
8579
8579
|
return t(l);
|
|
@@ -8651,7 +8651,7 @@ function mC(e, n, t) {
|
|
|
8651
8651
|
return c === i ? (e.consume(c), r++, s) : (e.exit("thematicBreakSequence"), fe(c) ? he(e, l, "whitespace")(c) : l(c));
|
|
8652
8652
|
}
|
|
8653
8653
|
}
|
|
8654
|
-
const
|
|
8654
|
+
const Ye = {
|
|
8655
8655
|
continuation: {
|
|
8656
8656
|
tokenize: xC
|
|
8657
8657
|
},
|
|
@@ -8712,7 +8712,7 @@ function xC(e, n, t) {
|
|
|
8712
8712
|
return r.containerState.furtherBlankLines || !fe(l) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, a(l)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(yC, n, a)(l));
|
|
8713
8713
|
}
|
|
8714
8714
|
function a(l) {
|
|
8715
|
-
return r.containerState._closeFlow = !0, r.interrupt = void 0, he(e, e.attempt(
|
|
8715
|
+
return r.containerState._closeFlow = !0, r.interrupt = void 0, he(e, e.attempt(Ye, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(l);
|
|
8716
8716
|
}
|
|
8717
8717
|
}
|
|
8718
8718
|
function bC(e, n, t) {
|
|
@@ -8904,19 +8904,19 @@ function NC(e, n) {
|
|
|
8904
8904
|
return e;
|
|
8905
8905
|
}
|
|
8906
8906
|
const LC = {
|
|
8907
|
-
42:
|
|
8908
|
-
43:
|
|
8909
|
-
45:
|
|
8910
|
-
48:
|
|
8911
|
-
49:
|
|
8912
|
-
50:
|
|
8913
|
-
51:
|
|
8914
|
-
52:
|
|
8915
|
-
53:
|
|
8916
|
-
54:
|
|
8917
|
-
55:
|
|
8918
|
-
56:
|
|
8919
|
-
57:
|
|
8907
|
+
42: Ye,
|
|
8908
|
+
43: Ye,
|
|
8909
|
+
45: Ye,
|
|
8910
|
+
48: Ye,
|
|
8911
|
+
49: Ye,
|
|
8912
|
+
50: Ye,
|
|
8913
|
+
51: Ye,
|
|
8914
|
+
52: Ye,
|
|
8915
|
+
53: Ye,
|
|
8916
|
+
54: Ye,
|
|
8917
|
+
55: Ye,
|
|
8918
|
+
56: Ye,
|
|
8919
|
+
57: Ye,
|
|
8920
8920
|
62: Wa
|
|
8921
8921
|
}, zC = {
|
|
8922
8922
|
91: O$
|
|
@@ -9065,7 +9065,7 @@ function BC(e, n, t) {
|
|
|
9065
9065
|
function N(T, P) {
|
|
9066
9066
|
return O;
|
|
9067
9067
|
function O(L, z, V) {
|
|
9068
|
-
let
|
|
9068
|
+
let q, re, W, h;
|
|
9069
9069
|
return Array.isArray(L) ? (
|
|
9070
9070
|
/* c8 ignore next 1 */
|
|
9071
9071
|
Q(L)
|
|
@@ -9089,12 +9089,12 @@ function BC(e, n, t) {
|
|
|
9089
9089
|
}
|
|
9090
9090
|
}
|
|
9091
9091
|
function Q(K) {
|
|
9092
|
-
return
|
|
9092
|
+
return q = K, re = 0, K.length === 0 ? V : y(K[re]);
|
|
9093
9093
|
}
|
|
9094
9094
|
function y(K) {
|
|
9095
9095
|
return ee;
|
|
9096
9096
|
function ee(Z) {
|
|
9097
|
-
return h = F(),
|
|
9097
|
+
return h = F(), W = K, K.partial || (c.currentConstruct = K), K.name && c.parser.constructs.disable.null.includes(K.name) ? ie() : K.tokenize.call(
|
|
9098
9098
|
// If we do have fields, create an object w/ `context` as its
|
|
9099
9099
|
// prototype.
|
|
9100
9100
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -9106,10 +9106,10 @@ function BC(e, n, t) {
|
|
|
9106
9106
|
}
|
|
9107
9107
|
}
|
|
9108
9108
|
function X(K) {
|
|
9109
|
-
return T(
|
|
9109
|
+
return T(W, h), z;
|
|
9110
9110
|
}
|
|
9111
9111
|
function ie(K) {
|
|
9112
|
-
return h.restore(), ++re <
|
|
9112
|
+
return h.restore(), ++re < q.length ? y(q[re]) : V;
|
|
9113
9113
|
}
|
|
9114
9114
|
}
|
|
9115
9115
|
}
|
|
@@ -9269,10 +9269,10 @@ function JC(e) {
|
|
|
9269
9269
|
transforms: [],
|
|
9270
9270
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
9271
9271
|
enter: {
|
|
9272
|
-
autolink: o(
|
|
9272
|
+
autolink: o(ut),
|
|
9273
9273
|
autolinkProtocol: F,
|
|
9274
9274
|
autolinkEmail: F,
|
|
9275
|
-
atxHeading: o(
|
|
9275
|
+
atxHeading: o(We),
|
|
9276
9276
|
blockQuote: o(G),
|
|
9277
9277
|
characterEscape: F,
|
|
9278
9278
|
characterReference: F,
|
|
@@ -9289,26 +9289,26 @@ function JC(e) {
|
|
|
9289
9289
|
definitionLabelString: a,
|
|
9290
9290
|
definitionTitleString: a,
|
|
9291
9291
|
emphasis: o(et),
|
|
9292
|
-
hardBreakEscape: o(
|
|
9293
|
-
hardBreakTrailing: o(
|
|
9292
|
+
hardBreakEscape: o(Ge),
|
|
9293
|
+
hardBreakTrailing: o(Ge),
|
|
9294
9294
|
htmlFlow: o(tt, a),
|
|
9295
9295
|
htmlFlowData: F,
|
|
9296
9296
|
htmlText: o(tt, a),
|
|
9297
9297
|
htmlTextData: F,
|
|
9298
|
-
image: o(
|
|
9298
|
+
image: o(it),
|
|
9299
9299
|
label: a,
|
|
9300
|
-
link: o(
|
|
9300
|
+
link: o(ut),
|
|
9301
9301
|
listItem: o(Ae),
|
|
9302
9302
|
listItemValue: f,
|
|
9303
9303
|
listOrdered: o(ue, u),
|
|
9304
9304
|
listUnordered: o(ue),
|
|
9305
|
-
paragraph: o(
|
|
9305
|
+
paragraph: o(Be),
|
|
9306
9306
|
reference: y,
|
|
9307
9307
|
referenceString: a,
|
|
9308
9308
|
resourceDestinationString: a,
|
|
9309
9309
|
resourceTitleString: a,
|
|
9310
|
-
setextHeading: o(
|
|
9311
|
-
strong: o(
|
|
9310
|
+
setextHeading: o(We),
|
|
9311
|
+
strong: o(ot),
|
|
9312
9312
|
thematicBreak: o($t)
|
|
9313
9313
|
},
|
|
9314
9314
|
exit: {
|
|
@@ -9343,8 +9343,8 @@ function JC(e) {
|
|
|
9343
9343
|
htmlFlowData: x,
|
|
9344
9344
|
htmlText: s(L),
|
|
9345
9345
|
htmlTextData: x,
|
|
9346
|
-
image: s(
|
|
9347
|
-
label:
|
|
9346
|
+
image: s(q),
|
|
9347
|
+
label: W,
|
|
9348
9348
|
labelText: re,
|
|
9349
9349
|
lineEnding: T,
|
|
9350
9350
|
link: s(V),
|
|
@@ -9401,12 +9401,12 @@ function JC(e) {
|
|
|
9401
9401
|
(Xe[1] || xo).call(le, void 0, Xe[0]);
|
|
9402
9402
|
}
|
|
9403
9403
|
for (j.position = {
|
|
9404
|
-
start:
|
|
9404
|
+
start: xt(A.length > 0 ? A[0][1].start : {
|
|
9405
9405
|
line: 1,
|
|
9406
9406
|
column: 1,
|
|
9407
9407
|
offset: 0
|
|
9408
9408
|
}),
|
|
9409
|
-
end:
|
|
9409
|
+
end: xt(A.length > 0 ? A[A.length - 2][1].end : {
|
|
9410
9410
|
line: 1,
|
|
9411
9411
|
column: 1,
|
|
9412
9412
|
offset: 0
|
|
@@ -9416,18 +9416,18 @@ function JC(e) {
|
|
|
9416
9416
|
return j;
|
|
9417
9417
|
}
|
|
9418
9418
|
function i(A, j, le) {
|
|
9419
|
-
let de = j - 1, ve = -1, Xe = !1,
|
|
9419
|
+
let de = j - 1, ve = -1, Xe = !1, mt, at, Ct, St;
|
|
9420
9420
|
for (; ++de <= le; ) {
|
|
9421
|
-
const
|
|
9422
|
-
switch (
|
|
9421
|
+
const Ue = A[de];
|
|
9422
|
+
switch (Ue[1].type) {
|
|
9423
9423
|
case "listUnordered":
|
|
9424
9424
|
case "listOrdered":
|
|
9425
9425
|
case "blockQuote": {
|
|
9426
|
-
|
|
9426
|
+
Ue[0] === "enter" ? ve++ : ve--, St = void 0;
|
|
9427
9427
|
break;
|
|
9428
9428
|
}
|
|
9429
9429
|
case "lineEndingBlank": {
|
|
9430
|
-
|
|
9430
|
+
Ue[0] === "enter" && (mt && !St && !ve && !Ct && (Ct = de), St = void 0);
|
|
9431
9431
|
break;
|
|
9432
9432
|
}
|
|
9433
9433
|
case "linePrefix":
|
|
@@ -9439,27 +9439,27 @@ function JC(e) {
|
|
|
9439
9439
|
default:
|
|
9440
9440
|
St = void 0;
|
|
9441
9441
|
}
|
|
9442
|
-
if (!ve &&
|
|
9443
|
-
if (
|
|
9444
|
-
let
|
|
9445
|
-
for (
|
|
9446
|
-
const Je = A[
|
|
9442
|
+
if (!ve && Ue[0] === "enter" && Ue[1].type === "listItemPrefix" || ve === -1 && Ue[0] === "exit" && (Ue[1].type === "listUnordered" || Ue[1].type === "listOrdered")) {
|
|
9443
|
+
if (mt) {
|
|
9444
|
+
let vt = de;
|
|
9445
|
+
for (at = void 0; vt--; ) {
|
|
9446
|
+
const Je = A[vt];
|
|
9447
9447
|
if (Je[1].type === "lineEnding" || Je[1].type === "lineEndingBlank") {
|
|
9448
9448
|
if (Je[0] === "exit") continue;
|
|
9449
|
-
|
|
9449
|
+
at && (A[at][1].type = "lineEndingBlank", Xe = !0), Je[1].type = "lineEnding", at = vt;
|
|
9450
9450
|
} else if (!(Je[1].type === "linePrefix" || Je[1].type === "blockQuotePrefix" || Je[1].type === "blockQuotePrefixWhitespace" || Je[1].type === "blockQuoteMarker" || Je[1].type === "listItemIndent")) break;
|
|
9451
9451
|
}
|
|
9452
|
-
Ct && (!
|
|
9452
|
+
Ct && (!at || Ct < at) && (mt._spread = !0), mt.end = Object.assign({}, at ? A[at][1].start : Ue[1].end), A.splice(at || de, 0, ["exit", mt, Ue[2]]), de++, le++;
|
|
9453
9453
|
}
|
|
9454
|
-
if (
|
|
9455
|
-
const
|
|
9454
|
+
if (Ue[1].type === "listItemPrefix") {
|
|
9455
|
+
const vt = {
|
|
9456
9456
|
type: "listItem",
|
|
9457
9457
|
_spread: !1,
|
|
9458
|
-
start: Object.assign({},
|
|
9458
|
+
start: Object.assign({}, Ue[1].start),
|
|
9459
9459
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
9460
9460
|
end: void 0
|
|
9461
9461
|
};
|
|
9462
|
-
|
|
9462
|
+
mt = vt, A.splice(de, 0, ["enter", vt, Ue[2]]), de++, le++, Ct = void 0, St = !0;
|
|
9463
9463
|
}
|
|
9464
9464
|
}
|
|
9465
9465
|
}
|
|
@@ -9479,7 +9479,7 @@ function JC(e) {
|
|
|
9479
9479
|
}
|
|
9480
9480
|
function l(A, j, le) {
|
|
9481
9481
|
this.stack[this.stack.length - 1].children.push(A), this.stack.push(A), this.tokenStack.push([j, le || void 0]), A.position = {
|
|
9482
|
-
start:
|
|
9482
|
+
start: xt(j.start),
|
|
9483
9483
|
// @ts-expect-error: `end` will be patched later.
|
|
9484
9484
|
end: void 0
|
|
9485
9485
|
};
|
|
@@ -9498,7 +9498,7 @@ function JC(e) {
|
|
|
9498
9498
|
start: A.start,
|
|
9499
9499
|
end: A.end
|
|
9500
9500
|
}) + "): it’s not open");
|
|
9501
|
-
le.position.end =
|
|
9501
|
+
le.position.end = xt(A.end);
|
|
9502
9502
|
}
|
|
9503
9503
|
function d() {
|
|
9504
9504
|
return Gr(this.stack.pop());
|
|
@@ -9533,7 +9533,7 @@ function JC(e) {
|
|
|
9533
9533
|
}
|
|
9534
9534
|
function S(A) {
|
|
9535
9535
|
const j = this.resume(), le = this.stack[this.stack.length - 1];
|
|
9536
|
-
le.label = j, le.identifier =
|
|
9536
|
+
le.label = j, le.identifier = st(this.sliceSerialize(A)).toLowerCase();
|
|
9537
9537
|
}
|
|
9538
9538
|
function C() {
|
|
9539
9539
|
const A = this.resume(), j = this.stack[this.stack.length - 1];
|
|
@@ -9563,21 +9563,21 @@ function JC(e) {
|
|
|
9563
9563
|
function F(A) {
|
|
9564
9564
|
const le = this.stack[this.stack.length - 1].children;
|
|
9565
9565
|
let de = le[le.length - 1];
|
|
9566
|
-
(!de || de.type !== "text") && (de =
|
|
9567
|
-
start:
|
|
9566
|
+
(!de || de.type !== "text") && (de = dt(), de.position = {
|
|
9567
|
+
start: xt(A.start),
|
|
9568
9568
|
// @ts-expect-error: we’ll add `end` later.
|
|
9569
9569
|
end: void 0
|
|
9570
9570
|
}, le.push(de)), this.stack.push(de);
|
|
9571
9571
|
}
|
|
9572
9572
|
function x(A) {
|
|
9573
9573
|
const j = this.stack.pop();
|
|
9574
|
-
j.value += this.sliceSerialize(A), j.position.end =
|
|
9574
|
+
j.value += this.sliceSerialize(A), j.position.end = xt(A.end);
|
|
9575
9575
|
}
|
|
9576
9576
|
function T(A) {
|
|
9577
9577
|
const j = this.stack[this.stack.length - 1];
|
|
9578
9578
|
if (this.data.atHardBreak) {
|
|
9579
9579
|
const le = j.children[j.children.length - 1];
|
|
9580
|
-
le.position.end =
|
|
9580
|
+
le.position.end = xt(A.end), this.data.atHardBreak = void 0;
|
|
9581
9581
|
return;
|
|
9582
9582
|
}
|
|
9583
9583
|
!this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(j.type) && (F.call(this, A), x.call(this, A));
|
|
@@ -9606,7 +9606,7 @@ function JC(e) {
|
|
|
9606
9606
|
delete A.identifier, delete A.label;
|
|
9607
9607
|
this.data.referenceType = void 0;
|
|
9608
9608
|
}
|
|
9609
|
-
function
|
|
9609
|
+
function q() {
|
|
9610
9610
|
const A = this.stack[this.stack.length - 1];
|
|
9611
9611
|
if (this.data.inReference) {
|
|
9612
9612
|
const j = this.data.referenceType || "shortcut";
|
|
@@ -9617,9 +9617,9 @@ function JC(e) {
|
|
|
9617
9617
|
}
|
|
9618
9618
|
function re(A) {
|
|
9619
9619
|
const j = this.sliceSerialize(A), le = this.stack[this.stack.length - 2];
|
|
9620
|
-
le.label = KC(j), le.identifier =
|
|
9620
|
+
le.label = KC(j), le.identifier = st(j).toLowerCase();
|
|
9621
9621
|
}
|
|
9622
|
-
function
|
|
9622
|
+
function W() {
|
|
9623
9623
|
const A = this.stack[this.stack.length - 1], j = this.resume(), le = this.stack[this.stack.length - 1];
|
|
9624
9624
|
if (this.data.inReference = !0, le.type === "link") {
|
|
9625
9625
|
const de = A.children;
|
|
@@ -9643,7 +9643,7 @@ function JC(e) {
|
|
|
9643
9643
|
}
|
|
9644
9644
|
function X(A) {
|
|
9645
9645
|
const j = this.resume(), le = this.stack[this.stack.length - 1];
|
|
9646
|
-
le.label = j, le.identifier =
|
|
9646
|
+
le.label = j, le.identifier = st(this.sliceSerialize(A)).toLowerCase(), this.data.referenceType = "full";
|
|
9647
9647
|
}
|
|
9648
9648
|
function ie(A) {
|
|
9649
9649
|
this.data.characterReferenceType = A.type;
|
|
@@ -9657,7 +9657,7 @@ function JC(e) {
|
|
|
9657
9657
|
}
|
|
9658
9658
|
function ee(A) {
|
|
9659
9659
|
const j = this.stack.pop();
|
|
9660
|
-
j.position.end =
|
|
9660
|
+
j.position.end = xt(A.end);
|
|
9661
9661
|
}
|
|
9662
9662
|
function Z(A) {
|
|
9663
9663
|
x.call(this, A);
|
|
@@ -9704,7 +9704,7 @@ function JC(e) {
|
|
|
9704
9704
|
children: []
|
|
9705
9705
|
};
|
|
9706
9706
|
}
|
|
9707
|
-
function
|
|
9707
|
+
function We() {
|
|
9708
9708
|
return {
|
|
9709
9709
|
type: "heading",
|
|
9710
9710
|
// @ts-expect-error `depth` will be set later.
|
|
@@ -9712,7 +9712,7 @@ function JC(e) {
|
|
|
9712
9712
|
children: []
|
|
9713
9713
|
};
|
|
9714
9714
|
}
|
|
9715
|
-
function
|
|
9715
|
+
function Ge() {
|
|
9716
9716
|
return {
|
|
9717
9717
|
type: "break"
|
|
9718
9718
|
};
|
|
@@ -9723,7 +9723,7 @@ function JC(e) {
|
|
|
9723
9723
|
value: ""
|
|
9724
9724
|
};
|
|
9725
9725
|
}
|
|
9726
|
-
function
|
|
9726
|
+
function it() {
|
|
9727
9727
|
return {
|
|
9728
9728
|
type: "image",
|
|
9729
9729
|
title: null,
|
|
@@ -9731,7 +9731,7 @@ function JC(e) {
|
|
|
9731
9731
|
alt: null
|
|
9732
9732
|
};
|
|
9733
9733
|
}
|
|
9734
|
-
function
|
|
9734
|
+
function ut() {
|
|
9735
9735
|
return {
|
|
9736
9736
|
type: "link",
|
|
9737
9737
|
title: null,
|
|
@@ -9756,19 +9756,19 @@ function JC(e) {
|
|
|
9756
9756
|
children: []
|
|
9757
9757
|
};
|
|
9758
9758
|
}
|
|
9759
|
-
function
|
|
9759
|
+
function Be() {
|
|
9760
9760
|
return {
|
|
9761
9761
|
type: "paragraph",
|
|
9762
9762
|
children: []
|
|
9763
9763
|
};
|
|
9764
9764
|
}
|
|
9765
|
-
function
|
|
9765
|
+
function ot() {
|
|
9766
9766
|
return {
|
|
9767
9767
|
type: "strong",
|
|
9768
9768
|
children: []
|
|
9769
9769
|
};
|
|
9770
9770
|
}
|
|
9771
|
-
function
|
|
9771
|
+
function dt() {
|
|
9772
9772
|
return {
|
|
9773
9773
|
type: "text",
|
|
9774
9774
|
value: ""
|
|
@@ -9780,7 +9780,7 @@ function JC(e) {
|
|
|
9780
9780
|
};
|
|
9781
9781
|
}
|
|
9782
9782
|
}
|
|
9783
|
-
function
|
|
9783
|
+
function xt(e) {
|
|
9784
9784
|
return {
|
|
9785
9785
|
line: e.line,
|
|
9786
9786
|
column: e.column,
|
|
@@ -10796,7 +10796,7 @@ function JS(e, n) {
|
|
|
10796
10796
|
i(null, a);
|
|
10797
10797
|
}
|
|
10798
10798
|
}
|
|
10799
|
-
const
|
|
10799
|
+
const ft = { basename: QS, dirname: ZS, extname: e5, join: t5, sep: "/" };
|
|
10800
10800
|
function QS(e, n) {
|
|
10801
10801
|
if (n !== void 0 && typeof n != "string")
|
|
10802
10802
|
throw new TypeError('"ext" argument must be a string');
|
|
@@ -11002,7 +11002,7 @@ class cl {
|
|
|
11002
11002
|
* Basename.
|
|
11003
11003
|
*/
|
|
11004
11004
|
get basename() {
|
|
11005
|
-
return typeof this.path == "string" ?
|
|
11005
|
+
return typeof this.path == "string" ? ft.basename(this.path) : void 0;
|
|
11006
11006
|
}
|
|
11007
11007
|
/**
|
|
11008
11008
|
* Set basename (including extname) (`'index.min.js'`).
|
|
@@ -11017,7 +11017,7 @@ class cl {
|
|
|
11017
11017
|
* Nothing.
|
|
11018
11018
|
*/
|
|
11019
11019
|
set basename(n) {
|
|
11020
|
-
pr(n, "basename"), fr(n, "basename"), this.path =
|
|
11020
|
+
pr(n, "basename"), fr(n, "basename"), this.path = ft.join(this.dirname || "", n);
|
|
11021
11021
|
}
|
|
11022
11022
|
/**
|
|
11023
11023
|
* Get the parent path (example: `'~'`).
|
|
@@ -11026,7 +11026,7 @@ class cl {
|
|
|
11026
11026
|
* Dirname.
|
|
11027
11027
|
*/
|
|
11028
11028
|
get dirname() {
|
|
11029
|
-
return typeof this.path == "string" ?
|
|
11029
|
+
return typeof this.path == "string" ? ft.dirname(this.path) : void 0;
|
|
11030
11030
|
}
|
|
11031
11031
|
/**
|
|
11032
11032
|
* Set the parent path (example: `'~'`).
|
|
@@ -11039,7 +11039,7 @@ class cl {
|
|
|
11039
11039
|
* Nothing.
|
|
11040
11040
|
*/
|
|
11041
11041
|
set dirname(n) {
|
|
11042
|
-
No(this.basename, "dirname"), this.path =
|
|
11042
|
+
No(this.basename, "dirname"), this.path = ft.join(n || "", this.basename);
|
|
11043
11043
|
}
|
|
11044
11044
|
/**
|
|
11045
11045
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -11048,7 +11048,7 @@ class cl {
|
|
|
11048
11048
|
* Extname.
|
|
11049
11049
|
*/
|
|
11050
11050
|
get extname() {
|
|
11051
|
-
return typeof this.path == "string" ?
|
|
11051
|
+
return typeof this.path == "string" ? ft.extname(this.path) : void 0;
|
|
11052
11052
|
}
|
|
11053
11053
|
/**
|
|
11054
11054
|
* Set the extname (including dot) (example: `'.js'`).
|
|
@@ -11069,7 +11069,7 @@ class cl {
|
|
|
11069
11069
|
if (n.includes(".", 1))
|
|
11070
11070
|
throw new Error("`extname` cannot contain multiple dots");
|
|
11071
11071
|
}
|
|
11072
|
-
this.path =
|
|
11072
|
+
this.path = ft.join(this.dirname, this.stem + (n || ""));
|
|
11073
11073
|
}
|
|
11074
11074
|
/**
|
|
11075
11075
|
* Get the full path (example: `'~/index.min.js'`).
|
|
@@ -11102,7 +11102,7 @@ class cl {
|
|
|
11102
11102
|
* Stem.
|
|
11103
11103
|
*/
|
|
11104
11104
|
get stem() {
|
|
11105
|
-
return typeof this.path == "string" ?
|
|
11105
|
+
return typeof this.path == "string" ? ft.basename(this.path, this.extname) : void 0;
|
|
11106
11106
|
}
|
|
11107
11107
|
/**
|
|
11108
11108
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -11117,7 +11117,7 @@ class cl {
|
|
|
11117
11117
|
* Nothing.
|
|
11118
11118
|
*/
|
|
11119
11119
|
set stem(n) {
|
|
11120
|
-
pr(n, "stem"), fr(n, "stem"), this.path =
|
|
11120
|
+
pr(n, "stem"), fr(n, "stem"), this.path = ft.join(this.dirname || "", n + (this.extname || ""));
|
|
11121
11121
|
}
|
|
11122
11122
|
// Normal prototypal methods.
|
|
11123
11123
|
/**
|
|
@@ -11331,9 +11331,9 @@ class cl {
|
|
|
11331
11331
|
}
|
|
11332
11332
|
}
|
|
11333
11333
|
function fr(e, n) {
|
|
11334
|
-
if (e && e.includes(
|
|
11334
|
+
if (e && e.includes(ft.sep))
|
|
11335
11335
|
throw new Error(
|
|
11336
|
-
"`" + n + "` cannot be a path: did not expect `" +
|
|
11336
|
+
"`" + n + "` cannot be a path: did not expect `" + ft.sep + "`"
|
|
11337
11337
|
);
|
|
11338
11338
|
}
|
|
11339
11339
|
function pr(e, n) {
|
|
@@ -12191,7 +12191,7 @@ function H5(e) {
|
|
|
12191
12191
|
}
|
|
12192
12192
|
function V5(e) {
|
|
12193
12193
|
const n = this.resume(), t = this.stack[this.stack.length - 1];
|
|
12194
|
-
t.type, t.identifier =
|
|
12194
|
+
t.type, t.identifier = st(
|
|
12195
12195
|
this.sliceSerialize(e)
|
|
12196
12196
|
).toLowerCase(), t.label = n;
|
|
12197
12197
|
}
|
|
@@ -12200,7 +12200,7 @@ function W5(e) {
|
|
|
12200
12200
|
}
|
|
12201
12201
|
function q5(e) {
|
|
12202
12202
|
const n = this.resume(), t = this.stack[this.stack.length - 1];
|
|
12203
|
-
t.type, t.identifier =
|
|
12203
|
+
t.type, t.identifier = st(
|
|
12204
12204
|
this.sliceSerialize(e)
|
|
12205
12205
|
).toLowerCase(), t.label = n;
|
|
12206
12206
|
}
|
|
@@ -13199,27 +13199,27 @@ const Q8 = {
|
|
|
13199
13199
|
name: "protocolAutolink",
|
|
13200
13200
|
tokenize: rE,
|
|
13201
13201
|
previous: Ll
|
|
13202
|
-
},
|
|
13202
|
+
}, yt = {
|
|
13203
13203
|
name: "emailAutolink",
|
|
13204
13204
|
tokenize: tE,
|
|
13205
13205
|
previous: zl
|
|
13206
|
-
},
|
|
13206
|
+
}, ht = {};
|
|
13207
13207
|
function eE() {
|
|
13208
13208
|
return {
|
|
13209
|
-
text:
|
|
13209
|
+
text: ht
|
|
13210
13210
|
};
|
|
13211
13211
|
}
|
|
13212
13212
|
let Ft = 48;
|
|
13213
13213
|
for (; Ft < 123; )
|
|
13214
|
-
|
|
13215
|
-
|
|
13216
|
-
|
|
13217
|
-
|
|
13218
|
-
|
|
13219
|
-
|
|
13220
|
-
|
|
13221
|
-
|
|
13222
|
-
|
|
13214
|
+
ht[Ft] = yt, Ft++, Ft === 58 ? Ft = 65 : Ft === 91 && (Ft = 97);
|
|
13215
|
+
ht[43] = yt;
|
|
13216
|
+
ht[45] = yt;
|
|
13217
|
+
ht[46] = yt;
|
|
13218
|
+
ht[95] = yt;
|
|
13219
|
+
ht[72] = [yt, Pl];
|
|
13220
|
+
ht[104] = [yt, Pl];
|
|
13221
|
+
ht[87] = [yt, Tl];
|
|
13222
|
+
ht[119] = [yt, Tl];
|
|
13223
13223
|
function tE(e, n, t) {
|
|
13224
13224
|
const r = this;
|
|
13225
13225
|
let i, o;
|
|
@@ -13237,7 +13237,7 @@ function tE(e, n, t) {
|
|
|
13237
13237
|
return e.consume(u), i = !0, s;
|
|
13238
13238
|
}
|
|
13239
13239
|
function d(u) {
|
|
13240
|
-
return o && i &&
|
|
13240
|
+
return o && i && Ve(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), n(u)) : t(u);
|
|
13241
13241
|
}
|
|
13242
13242
|
}
|
|
13243
13243
|
function nE(e, n, t) {
|
|
@@ -13258,7 +13258,7 @@ function rE(e, n, t) {
|
|
|
13258
13258
|
return (u === 72 || u === 104) && Ll.call(r, r.previous) && !ai(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(u), e.consume(u), l) : t(u);
|
|
13259
13259
|
}
|
|
13260
13260
|
function l(u) {
|
|
13261
|
-
if (
|
|
13261
|
+
if (Ve(u) && i.length < 5)
|
|
13262
13262
|
return i += String.fromCodePoint(u), e.consume(u), l;
|
|
13263
13263
|
if (u === 58) {
|
|
13264
13264
|
const f = i.toLowerCase();
|
|
@@ -13323,10 +13323,10 @@ function lE(e, n, t) {
|
|
|
13323
13323
|
return l === null || l === 40 || l === 91 || Ce(l) || Tt(l) ? n(l) : r(l);
|
|
13324
13324
|
}
|
|
13325
13325
|
function o(l) {
|
|
13326
|
-
return
|
|
13326
|
+
return Ve(l) ? a(l) : t(l);
|
|
13327
13327
|
}
|
|
13328
13328
|
function a(l) {
|
|
13329
|
-
return l === 59 ? (e.consume(l), r) :
|
|
13329
|
+
return l === 59 ? (e.consume(l), r) : Ve(l) ? (e.consume(l), a) : t(l);
|
|
13330
13330
|
}
|
|
13331
13331
|
}
|
|
13332
13332
|
function sE(e, n, t) {
|
|
@@ -13342,7 +13342,7 @@ function Nl(e) {
|
|
|
13342
13342
|
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || Ce(e);
|
|
13343
13343
|
}
|
|
13344
13344
|
function Ll(e) {
|
|
13345
|
-
return !
|
|
13345
|
+
return !Ve(e);
|
|
13346
13346
|
}
|
|
13347
13347
|
function zl(e) {
|
|
13348
13348
|
return !(e === 47 || Rr(e));
|
|
@@ -13413,7 +13413,7 @@ function dE(e, n, t) {
|
|
|
13413
13413
|
function l(s) {
|
|
13414
13414
|
if (!a || !a._balanced)
|
|
13415
13415
|
return t(s);
|
|
13416
|
-
const c =
|
|
13416
|
+
const c = st(r.sliceSerialize({
|
|
13417
13417
|
start: a.end,
|
|
13418
13418
|
end: r.now()
|
|
13419
13419
|
}));
|
|
@@ -13492,7 +13492,7 @@ function pE(e, n, t) {
|
|
|
13492
13492
|
if (u === 93) {
|
|
13493
13493
|
e.exit("chunkString");
|
|
13494
13494
|
const f = e.exit("gfmFootnoteCallString");
|
|
13495
|
-
return i.includes(
|
|
13495
|
+
return i.includes(st(r.sliceSerialize(f))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(u), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), n) : t(u);
|
|
13496
13496
|
}
|
|
13497
13497
|
return Ce(u) || (a = !0), o++, e.consume(u), u === 92 ? d : c;
|
|
13498
13498
|
}
|
|
@@ -13522,7 +13522,7 @@ function hE(e, n, t) {
|
|
|
13522
13522
|
if (m === 93) {
|
|
13523
13523
|
e.exit("chunkString");
|
|
13524
13524
|
const b = e.exit("gfmFootnoteDefinitionLabelString");
|
|
13525
|
-
return o =
|
|
13525
|
+
return o = st(r.sliceSerialize(b)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(m), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), f;
|
|
13526
13526
|
}
|
|
13527
13527
|
return Ce(m) || (l = !0), a++, e.consume(m), m === 92 ? u : d;
|
|
13528
13528
|
}
|
|
@@ -13918,7 +13918,7 @@ var Uo;
|
|
|
13918
13918
|
function zE() {
|
|
13919
13919
|
if (Uo) return Xt;
|
|
13920
13920
|
Uo = 1;
|
|
13921
|
-
var e =
|
|
13921
|
+
var e = lt, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
13922
13922
|
function a(l, s, c) {
|
|
13923
13923
|
var d, u = {}, f = null, p = null;
|
|
13924
13924
|
c !== void 0 && (f = "" + c), s.key !== void 0 && (f = "" + s.key), s.ref !== void 0 && (p = s.ref);
|
|
@@ -13941,7 +13941,7 @@ var gn = {};
|
|
|
13941
13941
|
var Ho;
|
|
13942
13942
|
function AE() {
|
|
13943
13943
|
return Ho || (Ho = 1, process.env.NODE_ENV !== "production" && function() {
|
|
13944
|
-
var e =
|
|
13944
|
+
var e = lt, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), l = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = Symbol.iterator, b = "@@iterator";
|
|
13945
13945
|
function k(w) {
|
|
13946
13946
|
if (w === null || typeof w != "object")
|
|
13947
13947
|
return null;
|
|
@@ -14030,14 +14030,14 @@ function AE() {
|
|
|
14030
14030
|
}
|
|
14031
14031
|
return null;
|
|
14032
14032
|
}
|
|
14033
|
-
var L = Object.assign, z = 0, V,
|
|
14033
|
+
var L = Object.assign, z = 0, V, q, re, W, h, _, Q;
|
|
14034
14034
|
function y() {
|
|
14035
14035
|
}
|
|
14036
14036
|
y.__reactDisabledLog = !0;
|
|
14037
14037
|
function X() {
|
|
14038
14038
|
{
|
|
14039
14039
|
if (z === 0) {
|
|
14040
|
-
V = console.log,
|
|
14040
|
+
V = console.log, q = console.info, re = console.warn, W = console.error, h = console.group, _ = console.groupCollapsed, Q = console.groupEnd;
|
|
14041
14041
|
var w = {
|
|
14042
14042
|
configurable: !0,
|
|
14043
14043
|
enumerable: !0,
|
|
@@ -14070,13 +14070,13 @@ function AE() {
|
|
|
14070
14070
|
value: V
|
|
14071
14071
|
}),
|
|
14072
14072
|
info: L({}, w, {
|
|
14073
|
-
value:
|
|
14073
|
+
value: q
|
|
14074
14074
|
}),
|
|
14075
14075
|
warn: L({}, w, {
|
|
14076
14076
|
value: re
|
|
14077
14077
|
}),
|
|
14078
14078
|
error: L({}, w, {
|
|
14079
|
-
value:
|
|
14079
|
+
value: W
|
|
14080
14080
|
}),
|
|
14081
14081
|
group: L({}, w, {
|
|
14082
14082
|
value: h
|
|
@@ -14137,37 +14137,37 @@ function AE() {
|
|
|
14137
14137
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
14138
14138
|
try {
|
|
14139
14139
|
Reflect.construct(ye, []);
|
|
14140
|
-
} catch (
|
|
14141
|
-
ae =
|
|
14140
|
+
} catch (qe) {
|
|
14141
|
+
ae = qe;
|
|
14142
14142
|
}
|
|
14143
14143
|
Reflect.construct(w, [], ye);
|
|
14144
14144
|
} else {
|
|
14145
14145
|
try {
|
|
14146
14146
|
ye.call();
|
|
14147
|
-
} catch (
|
|
14148
|
-
ae =
|
|
14147
|
+
} catch (qe) {
|
|
14148
|
+
ae = qe;
|
|
14149
14149
|
}
|
|
14150
14150
|
w.call(ye.prototype);
|
|
14151
14151
|
}
|
|
14152
14152
|
} else {
|
|
14153
14153
|
try {
|
|
14154
14154
|
throw Error();
|
|
14155
|
-
} catch (
|
|
14156
|
-
ae =
|
|
14155
|
+
} catch (qe) {
|
|
14156
|
+
ae = qe;
|
|
14157
14157
|
}
|
|
14158
14158
|
w();
|
|
14159
14159
|
}
|
|
14160
|
-
} catch (
|
|
14161
|
-
if (
|
|
14162
|
-
for (var pe =
|
|
14163
|
-
`),
|
|
14164
|
-
`), Te = pe.length - 1, Ne =
|
|
14160
|
+
} catch (qe) {
|
|
14161
|
+
if (qe && ae && typeof qe.stack == "string") {
|
|
14162
|
+
for (var pe = qe.stack.split(`
|
|
14163
|
+
`), He = ae.stack.split(`
|
|
14164
|
+
`), Te = pe.length - 1, Ne = He.length - 1; Te >= 1 && Ne >= 0 && pe[Te] !== He[Ne]; )
|
|
14165
14165
|
Ne--;
|
|
14166
14166
|
for (; Te >= 1 && Ne >= 0; Te--, Ne--)
|
|
14167
|
-
if (pe[Te] !==
|
|
14167
|
+
if (pe[Te] !== He[Ne]) {
|
|
14168
14168
|
if (Te !== 1 || Ne !== 1)
|
|
14169
14169
|
do
|
|
14170
|
-
if (Te--, Ne--, Ne < 0 || pe[Te] !==
|
|
14170
|
+
if (Te--, Ne--, Ne < 0 || pe[Te] !== He[Ne]) {
|
|
14171
14171
|
var nt = `
|
|
14172
14172
|
` + pe[Te].replace(" at new ", " at ");
|
|
14173
14173
|
return w.displayName && nt.includes("<anonymous>") && (nt = nt.replace("<anonymous>", w.displayName)), typeof w == "function" && G.set(w, nt), nt;
|
|
@@ -14189,7 +14189,7 @@ function AE() {
|
|
|
14189
14189
|
var D = w.prototype;
|
|
14190
14190
|
return !!(D && D.isReactComponent);
|
|
14191
14191
|
}
|
|
14192
|
-
function
|
|
14192
|
+
function We(w, D, Y) {
|
|
14193
14193
|
if (w == null)
|
|
14194
14194
|
return "";
|
|
14195
14195
|
if (typeof w == "function")
|
|
@@ -14207,55 +14207,55 @@ function AE() {
|
|
|
14207
14207
|
case s:
|
|
14208
14208
|
return Fe(w.render);
|
|
14209
14209
|
case u:
|
|
14210
|
-
return
|
|
14210
|
+
return We(w.type, D, Y);
|
|
14211
14211
|
case f: {
|
|
14212
14212
|
var ae = w, xe = ae._payload, $e = ae._init;
|
|
14213
14213
|
try {
|
|
14214
|
-
return
|
|
14214
|
+
return We($e(xe), D, Y);
|
|
14215
14215
|
} catch {
|
|
14216
14216
|
}
|
|
14217
14217
|
}
|
|
14218
14218
|
}
|
|
14219
14219
|
return "";
|
|
14220
14220
|
}
|
|
14221
|
-
var
|
|
14222
|
-
function
|
|
14221
|
+
var Ge = Object.prototype.hasOwnProperty, tt = {}, it = v.ReactDebugCurrentFrame;
|
|
14222
|
+
function ut(w) {
|
|
14223
14223
|
if (w) {
|
|
14224
|
-
var D = w._owner, Y =
|
|
14225
|
-
|
|
14224
|
+
var D = w._owner, Y = We(w.type, w._source, D ? D.type : null);
|
|
14225
|
+
it.setExtraStackFrame(Y);
|
|
14226
14226
|
} else
|
|
14227
|
-
|
|
14227
|
+
it.setExtraStackFrame(null);
|
|
14228
14228
|
}
|
|
14229
14229
|
function ue(w, D, Y, ae, xe) {
|
|
14230
14230
|
{
|
|
14231
|
-
var $e = Function.call.bind(
|
|
14231
|
+
var $e = Function.call.bind(Ge);
|
|
14232
14232
|
for (var ye in w)
|
|
14233
14233
|
if ($e(w, ye)) {
|
|
14234
14234
|
var pe = void 0;
|
|
14235
14235
|
try {
|
|
14236
14236
|
if (typeof w[ye] != "function") {
|
|
14237
|
-
var
|
|
14238
|
-
throw
|
|
14237
|
+
var He = Error((ae || "React class") + ": " + Y + " type `" + ye + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof w[ye] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
14238
|
+
throw He.name = "Invariant Violation", He;
|
|
14239
14239
|
}
|
|
14240
14240
|
pe = w[ye](D, ye, ae, Y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
14241
14241
|
} catch (Te) {
|
|
14242
14242
|
pe = Te;
|
|
14243
14243
|
}
|
|
14244
|
-
pe && !(pe instanceof Error) && (
|
|
14244
|
+
pe && !(pe instanceof Error) && (ut(xe), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ae || "React class", Y, ye, typeof pe), ut(null)), pe instanceof Error && !(pe.message in tt) && (tt[pe.message] = !0, ut(xe), S("Failed %s type: %s", Y, pe.message), ut(null));
|
|
14245
14245
|
}
|
|
14246
14246
|
}
|
|
14247
14247
|
}
|
|
14248
14248
|
var Ae = Array.isArray;
|
|
14249
|
-
function
|
|
14249
|
+
function Be(w) {
|
|
14250
14250
|
return Ae(w);
|
|
14251
14251
|
}
|
|
14252
|
-
function
|
|
14252
|
+
function ot(w) {
|
|
14253
14253
|
{
|
|
14254
14254
|
var D = typeof Symbol == "function" && Symbol.toStringTag, Y = D && w[Symbol.toStringTag] || w.constructor.name || "Object";
|
|
14255
14255
|
return Y;
|
|
14256
14256
|
}
|
|
14257
14257
|
}
|
|
14258
|
-
function
|
|
14258
|
+
function dt(w) {
|
|
14259
14259
|
try {
|
|
14260
14260
|
return $t(w), !1;
|
|
14261
14261
|
} catch {
|
|
@@ -14266,8 +14266,8 @@ function AE() {
|
|
|
14266
14266
|
return "" + w;
|
|
14267
14267
|
}
|
|
14268
14268
|
function A(w) {
|
|
14269
|
-
if (
|
|
14270
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
14269
|
+
if (dt(w))
|
|
14270
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ot(w)), $t(w);
|
|
14271
14271
|
}
|
|
14272
14272
|
var j = v.ReactCurrentOwner, le = {
|
|
14273
14273
|
key: !0,
|
|
@@ -14276,22 +14276,22 @@ function AE() {
|
|
|
14276
14276
|
__source: !0
|
|
14277
14277
|
}, de, ve;
|
|
14278
14278
|
function Xe(w) {
|
|
14279
|
-
if (
|
|
14279
|
+
if (Ge.call(w, "ref")) {
|
|
14280
14280
|
var D = Object.getOwnPropertyDescriptor(w, "ref").get;
|
|
14281
14281
|
if (D && D.isReactWarning)
|
|
14282
14282
|
return !1;
|
|
14283
14283
|
}
|
|
14284
14284
|
return w.ref !== void 0;
|
|
14285
14285
|
}
|
|
14286
|
-
function
|
|
14287
|
-
if (
|
|
14286
|
+
function mt(w) {
|
|
14287
|
+
if (Ge.call(w, "key")) {
|
|
14288
14288
|
var D = Object.getOwnPropertyDescriptor(w, "key").get;
|
|
14289
14289
|
if (D && D.isReactWarning)
|
|
14290
14290
|
return !1;
|
|
14291
14291
|
}
|
|
14292
14292
|
return w.key !== void 0;
|
|
14293
14293
|
}
|
|
14294
|
-
function
|
|
14294
|
+
function at(w, D) {
|
|
14295
14295
|
typeof w.ref == "string" && j.current;
|
|
14296
14296
|
}
|
|
14297
14297
|
function Ct(w, D) {
|
|
@@ -14316,7 +14316,7 @@ function AE() {
|
|
|
14316
14316
|
});
|
|
14317
14317
|
}
|
|
14318
14318
|
}
|
|
14319
|
-
var
|
|
14319
|
+
var Ue = function(w, D, Y, ae, xe, $e, ye) {
|
|
14320
14320
|
var pe = {
|
|
14321
14321
|
// This tag allows us to uniquely identify this as a React Element
|
|
14322
14322
|
$$typeof: n,
|
|
@@ -14345,28 +14345,28 @@ function AE() {
|
|
|
14345
14345
|
value: xe
|
|
14346
14346
|
}), Object.freeze && (Object.freeze(pe.props), Object.freeze(pe)), pe;
|
|
14347
14347
|
};
|
|
14348
|
-
function
|
|
14348
|
+
function vt(w, D, Y, ae, xe) {
|
|
14349
14349
|
{
|
|
14350
|
-
var $e, ye = {}, pe = null,
|
|
14351
|
-
Y !== void 0 && (A(Y), pe = "" + Y),
|
|
14350
|
+
var $e, ye = {}, pe = null, He = null;
|
|
14351
|
+
Y !== void 0 && (A(Y), pe = "" + Y), mt(D) && (A(D.key), pe = "" + D.key), Xe(D) && (He = D.ref, at(D, xe));
|
|
14352
14352
|
for ($e in D)
|
|
14353
|
-
|
|
14353
|
+
Ge.call(D, $e) && !le.hasOwnProperty($e) && (ye[$e] = D[$e]);
|
|
14354
14354
|
if (w && w.defaultProps) {
|
|
14355
14355
|
var Te = w.defaultProps;
|
|
14356
14356
|
for ($e in Te)
|
|
14357
14357
|
ye[$e] === void 0 && (ye[$e] = Te[$e]);
|
|
14358
14358
|
}
|
|
14359
|
-
if (pe ||
|
|
14359
|
+
if (pe || He) {
|
|
14360
14360
|
var Ne = typeof w == "function" ? w.displayName || w.name || "Unknown" : w;
|
|
14361
|
-
pe && Ct(ye, Ne),
|
|
14361
|
+
pe && Ct(ye, Ne), He && St(ye, Ne);
|
|
14362
14362
|
}
|
|
14363
|
-
return
|
|
14363
|
+
return Ue(w, pe, He, xe, ae, j.current, ye);
|
|
14364
14364
|
}
|
|
14365
14365
|
}
|
|
14366
14366
|
var Je = v.ReactCurrentOwner, li = v.ReactDebugCurrentFrame;
|
|
14367
14367
|
function zt(w) {
|
|
14368
14368
|
if (w) {
|
|
14369
|
-
var D = w._owner, Y =
|
|
14369
|
+
var D = w._owner, Y = We(w.type, w._source, D ? D.type : null);
|
|
14370
14370
|
li.setExtraStackFrame(Y);
|
|
14371
14371
|
} else
|
|
14372
14372
|
li.setExtraStackFrame(null);
|
|
@@ -14421,7 +14421,7 @@ Check the top-level render call using <` + Y + ">.");
|
|
|
14421
14421
|
{
|
|
14422
14422
|
if (typeof w != "object")
|
|
14423
14423
|
return;
|
|
14424
|
-
if (
|
|
14424
|
+
if (Be(w))
|
|
14425
14425
|
for (var Y = 0; Y < w.length; Y++) {
|
|
14426
14426
|
var ae = w[Y];
|
|
14427
14427
|
qn(ae) && ui(ae, D);
|
|
@@ -14480,19 +14480,19 @@ Check the top-level render call using <` + Y + ">.");
|
|
|
14480
14480
|
if (!ye) {
|
|
14481
14481
|
var pe = "";
|
|
14482
14482
|
(w === void 0 || typeof w == "object" && w !== null && Object.keys(w).length === 0) && (pe += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
14483
|
-
var
|
|
14484
|
-
|
|
14483
|
+
var He = Ol();
|
|
14484
|
+
He ? pe += He : pe += si();
|
|
14485
14485
|
var Te;
|
|
14486
|
-
w === null ? Te = "null" :
|
|
14486
|
+
w === null ? Te = "null" : Be(w) ? Te = "array" : w !== void 0 && w.$$typeof === n ? (Te = "<" + (O(w.type) || "Unknown") + " />", pe = " Did you accidentally export a JSX literal instead of a component?") : Te = typeof w, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Te, pe);
|
|
14487
14487
|
}
|
|
14488
|
-
var Ne =
|
|
14488
|
+
var Ne = vt(w, D, Y, xe, $e);
|
|
14489
14489
|
if (Ne == null)
|
|
14490
14490
|
return Ne;
|
|
14491
14491
|
if (ye) {
|
|
14492
14492
|
var nt = D.children;
|
|
14493
14493
|
if (nt !== void 0)
|
|
14494
14494
|
if (ae)
|
|
14495
|
-
if (
|
|
14495
|
+
if (Be(nt)) {
|
|
14496
14496
|
for (var At = 0; At < nt.length; At++)
|
|
14497
14497
|
di(nt[At], w);
|
|
14498
14498
|
Object.freeze && Object.freeze(nt);
|
|
@@ -14501,12 +14501,12 @@ Check the top-level render call using <` + Y + ">.");
|
|
|
14501
14501
|
else
|
|
14502
14502
|
di(nt, w);
|
|
14503
14503
|
}
|
|
14504
|
-
if (
|
|
14505
|
-
var Et = O(w),
|
|
14504
|
+
if (Ge.call(D, "key")) {
|
|
14505
|
+
var Et = O(w), qe = Object.keys(D).filter(function(Wl) {
|
|
14506
14506
|
return Wl !== "key";
|
|
14507
|
-
}), Yn =
|
|
14507
|
+
}), Yn = qe.length > 0 ? "{key: someKey, " + qe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
14508
14508
|
if (!fi[Et + Yn]) {
|
|
14509
|
-
var Vl =
|
|
14509
|
+
var Vl = qe.length > 0 ? "{" + qe.join(": ..., ") + ": ...}" : "{}";
|
|
14510
14510
|
S(`A props object containing a "key" prop is being spread into JSX:
|
|
14511
14511
|
let props = %s;
|
|
14512
14512
|
<%s {...props} />
|
|
@@ -14530,7 +14530,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
14530
14530
|
}
|
|
14531
14531
|
process.env.NODE_ENV === "production" ? Or.exports = zE() : Or.exports = AE();
|
|
14532
14532
|
var ke = Or.exports;
|
|
14533
|
-
const Al =
|
|
14533
|
+
const Al = bt(void 0), IE = ({ children: e }) => {
|
|
14534
14534
|
const [n, t] = H({}), r = (i, o) => {
|
|
14535
14535
|
t((a) => ({ ...a, [i]: o }));
|
|
14536
14536
|
};
|
|
@@ -14578,7 +14578,7 @@ const Al = xt(void 0), IE = ({ children: e }) => {
|
|
|
14578
14578
|
}
|
|
14579
14579
|
);
|
|
14580
14580
|
}, t7 = (e = !0, n) => {
|
|
14581
|
-
const t =
|
|
14581
|
+
const t = wt(Al);
|
|
14582
14582
|
if (!t)
|
|
14583
14583
|
throw new Error("useCollapsible must be used within a CollapsibleProvider");
|
|
14584
14584
|
const { states: r, setCollapsedState: i } = t, [o, a] = H(
|
|
@@ -14696,7 +14696,7 @@ const Al = xt(void 0), IE = ({ children: e }) => {
|
|
|
14696
14696
|
}
|
|
14697
14697
|
), o7 = In((e) => /* @__PURE__ */ ke.jsx(IE, { children: /* @__PURE__ */ ke.jsx("div", { className: Re.viewer, children: /* @__PURE__ */ ke.jsx(Il, { keys: [], isRoot: !0, ...e }) }) })), qo = ["jpg", "jpeg", "png"], Yo = ["mp4", "mov", "avi"], Ko = ["mp3", "wav", "m4a"], Go = ["docx", "xlsx"], wr = ["txt", "json", "csv", "pdf", "json", "md"], Xo = ["md", "json"], a7 = ["txt", "csv", "pdf"], l7 = ({ filePreviewPath: e, filePreviewComponent: n, fileDownloadConfig: t }) => {
|
|
14698
14698
|
var S;
|
|
14699
|
-
const [r, i] = H(!0), [o, a] = H(!1), [l, s] = H(void 0), { selectedFiles: c } =
|
|
14699
|
+
const [r, i] = H(!0), [o, a] = H(!1), [l, s] = H(void 0), { selectedFiles: c } = gt(), d = Fn(73), u = (S = Mt(c[0].name)) == null ? void 0 : S.toLowerCase(), f = `${t ? t.url : e}${c[0].path}`, p = Me();
|
|
14700
14700
|
me(() => {
|
|
14701
14701
|
f && (wr.includes(u) || Xo.includes(u)) && fetch(f, { method: "GET", ...t.headers ? { headers: t.headers } : {} }).then((C) => C.blob()).then((C) => {
|
|
14702
14702
|
if (Xo.includes(u)) {
|
|
@@ -14719,7 +14719,7 @@ const Al = xt(void 0), IE = ({ children: e }) => {
|
|
|
14719
14719
|
}, v = () => {
|
|
14720
14720
|
window.location.href = f;
|
|
14721
14721
|
};
|
|
14722
|
-
return
|
|
14722
|
+
return lt.isValidElement(m) ? m : /* @__PURE__ */ U("section", { className: `file-previewer ${u === "pdf" ? "pdf-previewer" : ""}`, children: [
|
|
14723
14723
|
o || ![
|
|
14724
14724
|
...qo,
|
|
14725
14725
|
...Yo,
|
|
@@ -14814,7 +14814,7 @@ const Al = xt(void 0), IE = ({ children: e }) => {
|
|
|
14814
14814
|
// Act as Ctrl + Shift + 2 but could cause problems for QWERTZ or DVORAK etc. keyborad layouts.
|
|
14815
14815
|
clearSelection: ["Escape"]
|
|
14816
14816
|
}, s7 = (e, n, t) => {
|
|
14817
|
-
const { setClipBoard: r, handleCutCopy: i, handlePasting: o } = On(), { currentFolder: a, currentPathFiles: l } =
|
|
14817
|
+
const { setClipBoard: r, handleCutCopy: i, handlePasting: o } = On(), { currentFolder: a, currentPathFiles: l } = ct(), { selectedFiles: s, setSelectedFiles: c, handleDownload: d } = gt(), { setActiveLayout: u } = Nt(), f = () => {
|
|
14818
14818
|
t.create && e.show("createFolder");
|
|
14819
14819
|
}, p = () => {
|
|
14820
14820
|
t.upload && e.show("uploadFile");
|
|
@@ -14862,7 +14862,7 @@ const Al = xt(void 0), IE = ({ children: e }) => {
|
|
|
14862
14862
|
triggerAction: d,
|
|
14863
14863
|
permissions: u
|
|
14864
14864
|
}) => {
|
|
14865
|
-
const [f, p] = H(null), { selectedFiles: m } =
|
|
14865
|
+
const [f, p] = H(null), { selectedFiles: m } = gt(), b = Me();
|
|
14866
14866
|
s7(d, o, u);
|
|
14867
14867
|
const k = {
|
|
14868
14868
|
uploadFile: {
|
|
@@ -15018,20 +15018,22 @@ const Al = xt(void 0), IE = ({ children: e }) => {
|
|
|
15018
15018
|
filePreviewComponent: L,
|
|
15019
15019
|
primaryColor: z = "#6155b4",
|
|
15020
15020
|
fontFamily: V = "Nunito Sans, sans-serif",
|
|
15021
|
-
language:
|
|
15021
|
+
language: q = "en-US",
|
|
15022
15022
|
permissions: re = {},
|
|
15023
|
-
collapsibleNav:
|
|
15023
|
+
collapsibleNav: W = !1,
|
|
15024
15024
|
defaultNavExpanded: h = !0,
|
|
15025
15025
|
className: _ = "",
|
|
15026
15026
|
style: Q = {},
|
|
15027
15027
|
formatDate: y = h7
|
|
15028
15028
|
}) => {
|
|
15029
|
-
const [X, ie] = H(""), [K, ee] = H(h), Z = u7(), { containerRef: oe, colSizes: G, isDragging: ge, handleMouseMove: B, handleMouseUp: Fe, handleMouseDown: et } = d7(20, 80),
|
|
15029
|
+
const [X, ie] = H(""), [K, ee] = H(h), Z = u7(), { containerRef: oe, colSizes: G, isDragging: ge, handleMouseMove: B, handleMouseUp: Fe, handleMouseDown: et } = d7(20, 80), We = {
|
|
15030
15030
|
"--file-manager-font-family": V,
|
|
15031
15031
|
"--file-manager-primary-color": z,
|
|
15032
15032
|
height: T,
|
|
15033
15033
|
width: P
|
|
15034
|
-
},
|
|
15034
|
+
}, Ge = (it) => {
|
|
15035
|
+
ie(it);
|
|
15036
|
+
}, tt = An(
|
|
15035
15037
|
() => ({ ...p7, ...re }),
|
|
15036
15038
|
[re]
|
|
15037
15039
|
);
|
|
@@ -15039,11 +15041,11 @@ const Al = xt(void 0), IE = ({ children: e }) => {
|
|
|
15039
15041
|
"main",
|
|
15040
15042
|
{
|
|
15041
15043
|
className: `file-explorer ${_}`,
|
|
15042
|
-
onContextMenu: (
|
|
15043
|
-
style: { ...
|
|
15044
|
+
onContextMenu: (it) => it.preventDefault(),
|
|
15045
|
+
style: { ...We, ...Q },
|
|
15044
15046
|
children: [
|
|
15045
15047
|
/* @__PURE__ */ g(Dr, { loading: o }),
|
|
15046
|
-
/* @__PURE__ */ g(c6, { children: /* @__PURE__ */ g(l6, { language:
|
|
15048
|
+
/* @__PURE__ */ g(c6, { children: /* @__PURE__ */ g(l6, { language: q, children: /* @__PURE__ */ g(vs, { filesData: n, onError: E, children: /* @__PURE__ */ g(bs, { initialPath: O, onFolderChange: S, children: /* @__PURE__ */ g(
|
|
15047
15049
|
ws,
|
|
15048
15050
|
{
|
|
15049
15051
|
onDownload: p,
|
|
@@ -15056,7 +15058,7 @@ const Al = xt(void 0), IE = ({ children: e }) => {
|
|
|
15056
15058
|
onLayoutChange: b,
|
|
15057
15059
|
onRefresh: k,
|
|
15058
15060
|
triggerAction: Z,
|
|
15059
|
-
permissions:
|
|
15061
|
+
permissions: tt,
|
|
15060
15062
|
onNavigationPaneChange: ee
|
|
15061
15063
|
}
|
|
15062
15064
|
),
|
|
@@ -15096,11 +15098,11 @@ const Al = xt(void 0), IE = ({ children: e }) => {
|
|
|
15096
15098
|
/* @__PURE__ */ g(
|
|
15097
15099
|
Ur,
|
|
15098
15100
|
{
|
|
15099
|
-
collapsibleNav:
|
|
15101
|
+
collapsibleNav: W,
|
|
15100
15102
|
isNavigationPaneOpen: K,
|
|
15101
15103
|
onNavigationPaneChange: ee,
|
|
15102
15104
|
tirggerAction: Z,
|
|
15103
|
-
onSearchUpdated:
|
|
15105
|
+
onSearchUpdated: Ge
|
|
15104
15106
|
}
|
|
15105
15107
|
),
|
|
15106
15108
|
/* @__PURE__ */ g(
|
|
@@ -15114,7 +15116,7 @@ const Al = xt(void 0), IE = ({ children: e }) => {
|
|
|
15114
15116
|
onRefresh: k,
|
|
15115
15117
|
enableFilePreview: N,
|
|
15116
15118
|
triggerAction: Z,
|
|
15117
|
-
permissions:
|
|
15119
|
+
permissions: tt,
|
|
15118
15120
|
formatDate: y,
|
|
15119
15121
|
filter: X
|
|
15120
15122
|
}
|
|
@@ -15139,7 +15141,7 @@ const Al = xt(void 0), IE = ({ children: e }) => {
|
|
|
15139
15141
|
filePreviewComponent: L,
|
|
15140
15142
|
acceptedFileTypes: x,
|
|
15141
15143
|
triggerAction: Z,
|
|
15142
|
-
permissions:
|
|
15144
|
+
permissions: tt
|
|
15143
15145
|
}
|
|
15144
15146
|
)
|
|
15145
15147
|
] }) })
|