@cubone/react-file-manager 1.16.1 → 1.16.2

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.
@@ -1,6 +1,6 @@
1
1
  import * as _e from "react";
2
- import Ee, { useState as T, useRef as ie, useEffect as ne, createContext as $e, useContext as De, useCallback as qt, useLayoutEffect as Mn, useMemo as ht } from "react";
3
- function Kt(e) {
2
+ import Ee, { useState as T, useRef as ie, useEffect as ne, createContext as $e, useContext as Ie, useCallback as Ut, useLayoutEffect as En, useMemo as dt } from "react";
3
+ function Pn(e) {
4
4
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
5
  }
6
6
  var ct = { exports: {} }, ze = {};
@@ -13,24 +13,24 @@ var ct = { exports: {} }, ze = {};
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
- var gt;
17
- function Tn() {
18
- if (gt) return ze;
19
- gt = 1;
16
+ var mt;
17
+ function Rn() {
18
+ if (mt) return ze;
19
+ mt = 1;
20
20
  var e = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
21
- function r(s, a, c) {
22
- var i = null;
23
- if (c !== void 0 && (i = "" + c), a.key !== void 0 && (i = "" + a.key), "key" in a) {
24
- c = {};
21
+ function r(s, a, i) {
22
+ var c = null;
23
+ if (i !== void 0 && (c = "" + i), a.key !== void 0 && (c = "" + a.key), "key" in a) {
24
+ i = {};
25
25
  for (var u in a)
26
- u !== "key" && (c[u] = a[u]);
27
- } else c = a;
28
- return a = c.ref, {
26
+ u !== "key" && (i[u] = a[u]);
27
+ } else i = a;
28
+ return a = i.ref, {
29
29
  $$typeof: e,
30
30
  type: s,
31
- key: i,
31
+ key: c,
32
32
  ref: a !== void 0 ? a : null,
33
- props: c
33
+ props: i
34
34
  };
35
35
  }
36
36
  return ze.Fragment = n, ze.jsx = r, ze.jsxs = r, ze;
@@ -45,45 +45,45 @@ var Ae = {};
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
47
  */
48
- var yt;
49
- function Sn() {
50
- return yt || (yt = 1, process.env.NODE_ENV !== "production" && function() {
48
+ var vt;
49
+ function Mn() {
50
+ return vt || (vt = 1, process.env.NODE_ENV !== "production" && function() {
51
51
  function e(o) {
52
52
  if (o == null) return null;
53
53
  if (typeof o == "function")
54
- return o.$$typeof === ce ? null : o.displayName || o.name || null;
54
+ return o.$$typeof === he ? null : o.displayName || o.name || null;
55
55
  if (typeof o == "string") return o;
56
56
  switch (o) {
57
- case m:
57
+ case v:
58
58
  return "Fragment";
59
59
  case l:
60
60
  return "Portal";
61
61
  case y:
62
62
  return "Profiler";
63
- case O:
64
- return "StrictMode";
65
63
  case k:
64
+ return "StrictMode";
65
+ case O:
66
66
  return "Suspense";
67
- case D:
67
+ case I:
68
68
  return "SuspenseList";
69
69
  }
70
70
  if (typeof o == "object")
71
71
  switch (typeof o.tag == "number" && console.error(
72
72
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
73
73
  ), o.$$typeof) {
74
- case E:
74
+ case P:
75
75
  return (o.displayName || "Context") + ".Provider";
76
76
  case w:
77
77
  return (o._context.displayName || "Context") + ".Consumer";
78
78
  case _:
79
- var F = o.render;
80
- return o = o.displayName, o || (o = F.displayName || F.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
79
+ var N = o.render;
80
+ return o = o.displayName, o || (o = N.displayName || N.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
81
81
  case Z:
82
- return F = o.displayName || null, F !== null ? F : e(o.type) || "Memo";
82
+ return N = o.displayName || null, N !== null ? N : e(o.type) || "Memo";
83
83
  case se:
84
- F = o._payload, o = o._init;
84
+ N = o._payload, o = o._init;
85
85
  try {
86
- return e(o(F));
86
+ return e(o(N));
87
87
  } catch {
88
88
  }
89
89
  }
@@ -95,15 +95,15 @@ function Sn() {
95
95
  function r(o) {
96
96
  try {
97
97
  n(o);
98
- var F = !1;
98
+ var N = !1;
99
99
  } catch {
100
- F = !0;
100
+ N = !0;
101
101
  }
102
- if (F) {
103
- F = console;
104
- var L = F.error, Q = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
105
- return L.call(
106
- F,
102
+ if (N) {
103
+ N = console;
104
+ var F = N.error, Q = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
105
+ return F.call(
106
+ N,
107
107
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
108
108
  Q
109
109
  ), n(o);
@@ -113,7 +113,7 @@ function Sn() {
113
113
  }
114
114
  function a() {
115
115
  if ($ === 0) {
116
- U = console.log, S = console.info, I = console.warn, q = console.error, J = console.group, K = console.groupCollapsed, ae = console.groupEnd;
116
+ U = console.log, S = console.info, D = console.warn, q = console.error, J = console.group, K = console.groupCollapsed, ae = console.groupEnd;
117
117
  var o = {
118
118
  configurable: !0,
119
119
  enumerable: !0,
@@ -132,13 +132,13 @@ function Sn() {
132
132
  }
133
133
  $++;
134
134
  }
135
- function c() {
135
+ function i() {
136
136
  if ($--, $ === 0) {
137
137
  var o = { configurable: !0, enumerable: !0, writable: !0 };
138
138
  Object.defineProperties(console, {
139
139
  log: C({}, o, { value: U }),
140
140
  info: C({}, o, { value: S }),
141
- warn: C({}, o, { value: I }),
141
+ warn: C({}, o, { value: D }),
142
142
  error: C({}, o, { value: q }),
143
143
  group: C({}, o, { value: J }),
144
144
  groupCollapsed: C({}, o, { value: K }),
@@ -149,30 +149,30 @@ function Sn() {
149
149
  "disabledDepth fell below zero. This is a bug in React. Please file an issue."
150
150
  );
151
151
  }
152
- function i(o) {
152
+ function c(o) {
153
153
  if (j === void 0)
154
154
  try {
155
155
  throw Error();
156
- } catch (L) {
157
- var F = L.stack.trim().match(/\n( *(at )?)/);
158
- j = F && F[1] || "", de = -1 < L.stack.indexOf(`
159
- at`) ? " (<anonymous>)" : -1 < L.stack.indexOf("@") ? "@unknown:0:0" : "";
156
+ } catch (F) {
157
+ var N = F.stack.trim().match(/\n( *(at )?)/);
158
+ j = N && N[1] || "", ue = -1 < F.stack.indexOf(`
159
+ at`) ? " (<anonymous>)" : -1 < F.stack.indexOf("@") ? "@unknown:0:0" : "";
160
160
  }
161
161
  return `
162
- ` + j + o + de;
162
+ ` + j + o + ue;
163
163
  }
164
- function u(o, F) {
164
+ function u(o, N) {
165
165
  if (!o || ye) return "";
166
- var L = V.get(o);
167
- if (L !== void 0) return L;
168
- ye = !0, L = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
166
+ var F = V.get(o);
167
+ if (F !== void 0) return F;
168
+ ye = !0, F = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
169
169
  var Q = null;
170
- Q = le.H, le.H = null, a();
170
+ Q = ce.H, ce.H = null, a();
171
171
  try {
172
- var he = {
172
+ var fe = {
173
173
  DetermineComponentFrameRoot: function() {
174
174
  try {
175
- if (F) {
175
+ if (N) {
176
176
  var Re = function() {
177
177
  throw Error();
178
178
  };
@@ -211,20 +211,20 @@ function Sn() {
211
211
  return [null, null];
212
212
  }
213
213
  };
214
- he.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
214
+ fe.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
215
215
  var oe = Object.getOwnPropertyDescriptor(
216
- he.DetermineComponentFrameRoot,
216
+ fe.DetermineComponentFrameRoot,
217
217
  "name"
218
218
  );
219
219
  oe && oe.configurable && Object.defineProperty(
220
- he.DetermineComponentFrameRoot,
220
+ fe.DetermineComponentFrameRoot,
221
221
  "name",
222
222
  { value: "DetermineComponentFrameRoot" }
223
223
  );
224
- var Y = he.DetermineComponentFrameRoot(), be = Y[0], Fe = Y[1];
225
- if (be && Fe) {
224
+ var Y = fe.DetermineComponentFrameRoot(), be = Y[0], Le = Y[1];
225
+ if (be && Le) {
226
226
  var pe = be.split(`
227
- `), Te = Fe.split(`
227
+ `), Te = Le.split(`
228
228
  `);
229
229
  for (Y = oe = 0; oe < pe.length && !pe[oe].includes(
230
230
  "DetermineComponentFrameRoot"
@@ -254,25 +254,25 @@ function Sn() {
254
254
  }
255
255
  }
256
256
  } finally {
257
- ye = !1, le.H = Q, c(), Error.prepareStackTrace = L;
257
+ ye = !1, ce.H = Q, i(), Error.prepareStackTrace = F;
258
258
  }
259
- return pe = (pe = o ? o.displayName || o.name : "") ? i(pe) : "", typeof o == "function" && V.set(o, pe), pe;
259
+ return pe = (pe = o ? o.displayName || o.name : "") ? c(pe) : "", typeof o == "function" && V.set(o, pe), pe;
260
260
  }
261
261
  function d(o) {
262
262
  if (o == null) return "";
263
263
  if (typeof o == "function") {
264
- var F = o.prototype;
264
+ var N = o.prototype;
265
265
  return u(
266
266
  o,
267
- !(!F || !F.isReactComponent)
267
+ !(!N || !N.isReactComponent)
268
268
  );
269
269
  }
270
- if (typeof o == "string") return i(o);
270
+ if (typeof o == "string") return c(o);
271
271
  switch (o) {
272
- case k:
273
- return i("Suspense");
274
- case D:
275
- return i("SuspenseList");
272
+ case O:
273
+ return c("Suspense");
274
+ case I:
275
+ return c("SuspenseList");
276
276
  }
277
277
  if (typeof o == "object")
278
278
  switch (o.$$typeof) {
@@ -281,53 +281,53 @@ function Sn() {
281
281
  case Z:
282
282
  return d(o.type);
283
283
  case se:
284
- F = o._payload, o = o._init;
284
+ N = o._payload, o = o._init;
285
285
  try {
286
- return d(o(F));
286
+ return d(o(N));
287
287
  } catch {
288
288
  }
289
289
  }
290
290
  return "";
291
291
  }
292
292
  function f() {
293
- var o = le.A;
293
+ var o = ce.A;
294
294
  return o === null ? null : o.getOwner();
295
295
  }
296
296
  function h(o) {
297
- if (p.call(o, "key")) {
298
- var F = Object.getOwnPropertyDescriptor(o, "key").get;
299
- if (F && F.isReactWarning) return !1;
297
+ if (m.call(o, "key")) {
298
+ var N = Object.getOwnPropertyDescriptor(o, "key").get;
299
+ if (N && N.isReactWarning) return !1;
300
300
  }
301
301
  return o.key !== void 0;
302
302
  }
303
- function v(o, F) {
304
- function L() {
303
+ function p(o, N) {
304
+ function F() {
305
305
  ge || (ge = !0, console.error(
306
306
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
307
- F
307
+ N
308
308
  ));
309
309
  }
310
- L.isReactWarning = !0, Object.defineProperty(o, "key", {
311
- get: L,
310
+ F.isReactWarning = !0, Object.defineProperty(o, "key", {
311
+ get: F,
312
312
  configurable: !0
313
313
  });
314
314
  }
315
- function P() {
315
+ function E() {
316
316
  var o = e(this.type);
317
317
  return je[o] || (je[o] = !0, console.error(
318
318
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
319
319
  )), o = this.props.ref, o !== void 0 ? o : null;
320
320
  }
321
- function N(o, F, L, Q, he, oe) {
322
- return L = oe.ref, o = {
321
+ function L(o, N, F, Q, fe, oe) {
322
+ return F = oe.ref, o = {
323
323
  $$typeof: x,
324
324
  type: o,
325
- key: F,
325
+ key: N,
326
326
  props: oe,
327
- _owner: he
328
- }, (L !== void 0 ? L : null) !== null ? Object.defineProperty(o, "ref", {
327
+ _owner: fe
328
+ }, (F !== void 0 ? F : null) !== null ? Object.defineProperty(o, "ref", {
329
329
  enumerable: !1,
330
- get: P
330
+ get: E
331
331
  }) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
332
332
  configurable: !1,
333
333
  enumerable: !1,
@@ -340,9 +340,9 @@ function Sn() {
340
340
  value: null
341
341
  }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
342
342
  }
343
- function M(o, F, L, Q, he, oe) {
344
- if (typeof o == "string" || typeof o == "function" || o === m || o === y || o === O || o === k || o === D || o === re || typeof o == "object" && o !== null && (o.$$typeof === se || o.$$typeof === Z || o.$$typeof === E || o.$$typeof === w || o.$$typeof === _ || o.$$typeof === W || o.getModuleId !== void 0)) {
345
- var Y = F.children;
343
+ function R(o, N, F, Q, fe, oe) {
344
+ if (typeof o == "string" || typeof o == "function" || o === v || o === y || o === k || o === O || o === I || o === re || typeof o == "object" && o !== null && (o.$$typeof === se || o.$$typeof === Z || o.$$typeof === P || o.$$typeof === w || o.$$typeof === _ || o.$$typeof === W || o.getModuleId !== void 0)) {
345
+ var Y = N.children;
346
346
  if (Y !== void 0)
347
347
  if (Q)
348
348
  if (B(Y)) {
@@ -360,9 +360,9 @@ function Sn() {
360
360
  Q,
361
361
  Y
362
362
  );
363
- if (p.call(F, "key")) {
363
+ if (m.call(N, "key")) {
364
364
  Y = e(o);
365
- var be = Object.keys(F).filter(function(pe) {
365
+ var be = Object.keys(N).filter(function(pe) {
366
366
  return pe !== "key";
367
367
  });
368
368
  Q = 0 < be.length ? "{key: someKey, " + be.join(": ..., ") + ": ...}" : "{key: someKey}", Ce[Y + Q] || (be = 0 < be.length ? "{" + be.join(": ..., ") + ": ...}" : "{}", console.error(
@@ -378,86 +378,86 @@ React keys must be passed directly to JSX without using spread:
378
378
  Y
379
379
  ), Ce[Y + Q] = !0);
380
380
  }
381
- if (Y = null, L !== void 0 && (r(L), Y = "" + L), h(F) && (r(F.key), Y = "" + F.key), "key" in F) {
382
- L = {};
383
- for (var Fe in F)
384
- Fe !== "key" && (L[Fe] = F[Fe]);
385
- } else L = F;
386
- return Y && v(
387
- L,
381
+ if (Y = null, F !== void 0 && (r(F), Y = "" + F), h(N) && (r(N.key), Y = "" + N.key), "key" in N) {
382
+ F = {};
383
+ for (var Le in N)
384
+ Le !== "key" && (F[Le] = N[Le]);
385
+ } else F = N;
386
+ return Y && p(
387
+ F,
388
388
  typeof o == "function" ? o.displayName || o.name || "Unknown" : o
389
- ), N(o, Y, oe, he, f(), L);
389
+ ), L(o, Y, oe, fe, f(), F);
390
390
  }
391
- function z(o, F) {
392
- if (typeof o == "object" && o && o.$$typeof !== fe) {
391
+ function z(o, N) {
392
+ if (typeof o == "object" && o && o.$$typeof !== de) {
393
393
  if (B(o))
394
- for (var L = 0; L < o.length; L++) {
395
- var Q = o[L];
396
- A(Q) && b(Q, F);
394
+ for (var F = 0; F < o.length; F++) {
395
+ var Q = o[F];
396
+ A(Q) && b(Q, N);
397
397
  }
398
398
  else if (A(o))
399
399
  o._store && (o._store.validated = 1);
400
- else if (o === null || typeof o != "object" ? L = null : (L = G && o[G] || o["@@iterator"], L = typeof L == "function" ? L : null), typeof L == "function" && L !== o.entries && (L = L.call(o), L !== o))
401
- for (; !(o = L.next()).done; )
402
- A(o.value) && b(o.value, F);
400
+ else if (o === null || typeof o != "object" ? F = null : (F = G && o[G] || o["@@iterator"], F = typeof F == "function" ? F : null), typeof F == "function" && F !== o.entries && (F = F.call(o), F !== o))
401
+ for (; !(o = F.next()).done; )
402
+ A(o.value) && b(o.value, N);
403
403
  }
404
404
  }
405
405
  function A(o) {
406
406
  return typeof o == "object" && o !== null && o.$$typeof === x;
407
407
  }
408
- function b(o, F) {
409
- if (o._store && !o._store.validated && o.key == null && (o._store.validated = 1, F = R(F), !ke[F])) {
410
- ke[F] = !0;
411
- var L = "";
412
- o && o._owner != null && o._owner !== f() && (L = null, typeof o._owner.tag == "number" ? L = e(o._owner.type) : typeof o._owner.name == "string" && (L = o._owner.name), L = " It was passed a child from " + L + ".");
413
- var Q = le.getCurrentStack;
414
- le.getCurrentStack = function() {
415
- var he = d(o.type);
416
- return Q && (he += Q() || ""), he;
408
+ function b(o, N) {
409
+ if (o._store && !o._store.validated && o.key == null && (o._store.validated = 1, N = M(N), !ke[N])) {
410
+ ke[N] = !0;
411
+ var F = "";
412
+ o && o._owner != null && o._owner !== f() && (F = null, typeof o._owner.tag == "number" ? F = e(o._owner.type) : typeof o._owner.name == "string" && (F = o._owner.name), F = " It was passed a child from " + F + ".");
413
+ var Q = ce.getCurrentStack;
414
+ ce.getCurrentStack = function() {
415
+ var fe = d(o.type);
416
+ return Q && (fe += Q() || ""), fe;
417
417
  }, console.error(
418
418
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
419
- F,
420
- L
421
- ), le.getCurrentStack = Q;
419
+ N,
420
+ F
421
+ ), ce.getCurrentStack = Q;
422
422
  }
423
423
  }
424
- function R(o) {
425
- var F = "", L = f();
426
- return L && (L = e(L.type)) && (F = `
424
+ function M(o) {
425
+ var N = "", F = f();
426
+ return F && (F = e(F.type)) && (N = `
427
427
 
428
- Check the render method of \`` + L + "`."), F || (o = e(o)) && (F = `
428
+ Check the render method of \`` + F + "`."), N || (o = e(o)) && (N = `
429
429
 
430
- Check the top-level render call using <` + o + ">."), F;
430
+ Check the top-level render call using <` + o + ">."), N;
431
431
  }
432
- var g = Ee, x = Symbol.for("react.transitional.element"), l = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), E = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), Z = Symbol.for("react.memo"), se = Symbol.for("react.lazy"), re = Symbol.for("react.offscreen"), G = Symbol.iterator, ce = Symbol.for("react.client.reference"), le = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, p = Object.prototype.hasOwnProperty, C = Object.assign, W = Symbol.for("react.client.reference"), B = Array.isArray, $ = 0, U, S, I, q, J, K, ae;
432
+ var g = Ee, x = Symbol.for("react.transitional.element"), l = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), P = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), Z = Symbol.for("react.memo"), se = Symbol.for("react.lazy"), re = Symbol.for("react.offscreen"), G = Symbol.iterator, he = Symbol.for("react.client.reference"), ce = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, m = Object.prototype.hasOwnProperty, C = Object.assign, W = Symbol.for("react.client.reference"), B = Array.isArray, $ = 0, U, S, D, q, J, K, ae;
433
433
  s.__reactDisabledLog = !0;
434
- var j, de, ye = !1, V = new (typeof WeakMap == "function" ? WeakMap : Map)(), fe = Symbol.for("react.client.reference"), ge, je = {}, Ce = {}, ke = {};
435
- Ae.Fragment = m, Ae.jsx = function(o, F, L, Q, he) {
436
- return M(o, F, L, !1, Q, he);
437
- }, Ae.jsxs = function(o, F, L, Q, he) {
438
- return M(o, F, L, !0, Q, he);
434
+ var j, ue, ye = !1, V = new (typeof WeakMap == "function" ? WeakMap : Map)(), de = Symbol.for("react.client.reference"), ge, je = {}, Ce = {}, ke = {};
435
+ Ae.Fragment = v, Ae.jsx = function(o, N, F, Q, fe) {
436
+ return R(o, N, F, !1, Q, fe);
437
+ }, Ae.jsxs = function(o, N, F, Q, fe) {
438
+ return R(o, N, F, !0, Q, fe);
439
439
  };
440
440
  }()), Ae;
441
441
  }
442
- process.env.NODE_ENV === "production" ? ct.exports = Tn() : ct.exports = Sn();
443
- var t = ct.exports, Xt = {
442
+ process.env.NODE_ENV === "production" ? ct.exports = Rn() : ct.exports = Mn();
443
+ var t = ct.exports, qt = {
444
444
  color: void 0,
445
445
  size: void 0,
446
446
  className: void 0,
447
447
  style: void 0,
448
448
  attr: void 0
449
- }, xt = Ee.createContext && /* @__PURE__ */ Ee.createContext(Xt), Fn = ["attr", "size", "title"];
450
- function Ln(e, n) {
449
+ }, gt = Ee.createContext && /* @__PURE__ */ Ee.createContext(qt), Tn = ["attr", "size", "title"];
450
+ function Sn(e, n) {
451
451
  if (e == null) return {};
452
- var r = Nn(e, n), s, a;
452
+ var r = Ln(e, n), s, a;
453
453
  if (Object.getOwnPropertySymbols) {
454
- var c = Object.getOwnPropertySymbols(e);
455
- for (a = 0; a < c.length; a++)
456
- s = c[a], !(n.indexOf(s) >= 0) && Object.prototype.propertyIsEnumerable.call(e, s) && (r[s] = e[s]);
454
+ var i = Object.getOwnPropertySymbols(e);
455
+ for (a = 0; a < i.length; a++)
456
+ s = i[a], !(n.indexOf(s) >= 0) && Object.prototype.propertyIsEnumerable.call(e, s) && (r[s] = e[s]);
457
457
  }
458
458
  return r;
459
459
  }
460
- function Nn(e, n) {
460
+ function Ln(e, n) {
461
461
  if (e == null) return {};
462
462
  var r = {};
463
463
  for (var s in e)
@@ -477,7 +477,7 @@ function We() {
477
477
  return e;
478
478
  }, We.apply(this, arguments);
479
479
  }
480
- function jt(e, n) {
480
+ function yt(e, n) {
481
481
  var r = Object.keys(e);
482
482
  if (Object.getOwnPropertySymbols) {
483
483
  var s = Object.getOwnPropertySymbols(e);
@@ -490,22 +490,22 @@ function jt(e, n) {
490
490
  function Ve(e) {
491
491
  for (var n = 1; n < arguments.length; n++) {
492
492
  var r = arguments[n] != null ? arguments[n] : {};
493
- n % 2 ? jt(Object(r), !0).forEach(function(s) {
494
- kn(e, s, r[s]);
495
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : jt(Object(r)).forEach(function(s) {
493
+ n % 2 ? yt(Object(r), !0).forEach(function(s) {
494
+ Nn(e, s, r[s]);
495
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : yt(Object(r)).forEach(function(s) {
496
496
  Object.defineProperty(e, s, Object.getOwnPropertyDescriptor(r, s));
497
497
  });
498
498
  }
499
499
  return e;
500
500
  }
501
- function kn(e, n, r) {
502
- return n = On(n), n in e ? Object.defineProperty(e, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = r, e;
501
+ function Nn(e, n, r) {
502
+ return n = Fn(n), n in e ? Object.defineProperty(e, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = r, e;
503
503
  }
504
- function On(e) {
505
- var n = zn(e, "string");
504
+ function Fn(e) {
505
+ var n = kn(e, "string");
506
506
  return typeof n == "symbol" ? n : n + "";
507
507
  }
508
- function zn(e, n) {
508
+ function kn(e, n) {
509
509
  if (typeof e != "object" || !e) return e;
510
510
  var r = e[Symbol.toPrimitive];
511
511
  if (r !== void 0) {
@@ -515,28 +515,28 @@ function zn(e, n) {
515
515
  }
516
516
  return (n === "string" ? String : Number)(e);
517
517
  }
518
- function Gt(e) {
518
+ function Kt(e) {
519
519
  return e && e.map((n, r) => /* @__PURE__ */ Ee.createElement(n.tag, Ve({
520
520
  key: r
521
- }, n.attr), Gt(n.child)));
521
+ }, n.attr), Kt(n.child)));
522
522
  }
523
523
  function H(e) {
524
- return (n) => /* @__PURE__ */ Ee.createElement(An, We({
524
+ return (n) => /* @__PURE__ */ Ee.createElement(On, We({
525
525
  attr: Ve({}, e.attr)
526
- }, n), Gt(e.child));
526
+ }, n), Kt(e.child));
527
527
  }
528
- function An(e) {
528
+ function On(e) {
529
529
  var n = (r) => {
530
530
  var {
531
531
  attr: s,
532
532
  size: a,
533
- title: c
534
- } = e, i = Ln(e, Fn), u = a || r.size || "1em", d;
533
+ title: i
534
+ } = e, c = Sn(e, Tn), u = a || r.size || "1em", d;
535
535
  return r.className && (d = r.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ Ee.createElement("svg", We({
536
536
  stroke: "currentColor",
537
537
  fill: "currentColor",
538
538
  strokeWidth: "0"
539
- }, r.attr, s, i, {
539
+ }, r.attr, s, c, {
540
540
  className: d,
541
541
  style: Ve(Ve({
542
542
  color: e.color || r.color
@@ -544,182 +544,182 @@ function An(e) {
544
544
  height: u,
545
545
  width: u,
546
546
  xmlns: "http://www.w3.org/2000/svg"
547
- }), c && /* @__PURE__ */ Ee.createElement("title", null, c), e.children);
547
+ }), i && /* @__PURE__ */ Ee.createElement("title", null, i), e.children);
548
548
  };
549
- return xt !== void 0 ? /* @__PURE__ */ Ee.createElement(xt.Consumer, null, (r) => n(r)) : n(Xt);
549
+ return gt !== void 0 ? /* @__PURE__ */ Ee.createElement(gt.Consumer, null, (r) => n(r)) : n(qt);
550
550
  }
551
- function _n(e) {
551
+ function zn(e) {
552
552
  return H({ tag: "svg", 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);
553
553
  }
554
- const pt = ({ loading: e = !1, className: n }) => e ? /* @__PURE__ */ t.jsx("div", { className: `loader-container ${n}`, children: /* @__PURE__ */ t.jsx(_n, { className: "spinner" }) }) : null;
555
- function Jt(e) {
554
+ const ft = ({ loading: e = !1, className: n }) => e ? /* @__PURE__ */ t.jsx("div", { className: `loader-container ${n}`, children: /* @__PURE__ */ t.jsx(zn, { className: "spinner" }) }) : null;
555
+ function Xt(e) {
556
556
  return H({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z" }, child: [] }] })(e);
557
557
  }
558
- function Zt(e) {
558
+ function Gt(e) {
559
559
  return H({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "m.5 3 .04.87a2 2 0 0 0-.342 1.311l.637 7A2 2 0 0 0 2.826 14H9v-1H2.826a1 1 0 0 1-.995-.91l-.637-7A1 1 0 0 1 2.19 4h11.62a1 1 0 0 1 .996 1.09L14.54 8h1.005l.256-2.819A2 2 0 0 0 13.81 3H9.828a2 2 0 0 1-1.414-.586l-.828-.828A2 2 0 0 0 6.172 1H2.5a2 2 0 0 0-2 2m5.672-1a1 1 0 0 1 .707.293L7.586 3H2.19q-.362.002-.683.12L1.5 2.98a1 1 0 0 1 1-.98z" }, child: [] }, { tag: "path", attr: { d: "M13.5 9a.5.5 0 0 1 .5.5V11h1.5a.5.5 0 1 1 0 1H14v1.5a.5.5 0 1 1-1 0V12h-1.5a.5.5 0 0 1 0-1H13V9.5a.5.5 0 0 1 .5-.5" }, child: [] }] })(e);
560
560
  }
561
- function Qt(e) {
561
+ function Jt(e) {
562
562
  return H({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5zm8 0A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5zm-8 8A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5zm8 0A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5z" }, child: [] }] })(e);
563
563
  }
564
- function Ct(e) {
564
+ function xt(e) {
565
565
  return H({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5zM2.5 2a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zm6.5.5A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zM1 10.5A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zm6.5.5A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z" }, child: [] }] })(e);
566
566
  }
567
- function en(e) {
567
+ function Zt(e) {
568
568
  return H({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M3.5 3.5c-.614-.884-.074-1.962.858-2.5L8 7.226 11.642 1c.932.538 1.472 1.616.858 2.5L8.81 8.61l1.556 2.661a2.5 2.5 0 1 1-.794.637L8 9.73l-1.572 2.177a2.5 2.5 0 1 1-.794-.637L7.19 8.61zm2.5 10a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m7 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0" }, child: [] }] })(e);
569
569
  }
570
- function tn(e) {
570
+ function Qt(e) {
571
571
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "23 4 23 10 17 10" }, child: [] }, { tag: "polyline", attr: { points: "1 20 1 14 7 14" }, child: [] }, { tag: "path", attr: { d: "M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15" }, child: [] }] })(e);
572
572
  }
573
- function $n(e) {
573
+ function An(e) {
574
574
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" }, child: [] }] })(e);
575
575
  }
576
- function Dn(e) {
576
+ function _n(e) {
577
577
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, child: [] }] })(e);
578
578
  }
579
- function In(e) {
579
+ function $n(e) {
580
580
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" }, child: [] }] })(e);
581
581
  }
582
- function Bn(e) {
582
+ function In(e) {
583
583
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, child: [] }] })(e);
584
584
  }
585
- function Hn(e) {
585
+ function Dn(e) {
586
586
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" }, child: [] }] })(e);
587
587
  }
588
- function nn(e) {
588
+ function en(e) {
589
589
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z" }, child: [] }] })(e);
590
590
  }
591
- function mt(e) {
591
+ function ht(e) {
592
592
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z" }, child: [] }] })(e);
593
593
  }
594
- function rn(e) {
594
+ function tn(e) {
595
595
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z" }, child: [] }] })(e);
596
596
  }
597
- function Wn(e) {
597
+ function Bn(e) {
598
598
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M10.02 6 8.61 7.41 13.19 12l-4.58 4.59L10.02 18l6-6-6-6z" }, child: [] }] })(e);
599
599
  }
600
- function sn(e) {
600
+ function nn(e) {
601
601
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z" }, child: [] }, { tag: "path", attr: { d: "M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z" }, child: [] }] })(e);
602
602
  }
603
- function Vn(e) {
603
+ function Hn(e) {
604
604
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M20 2H8c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2zM8 16V4h12l.002 12H8z" }, child: [] }, { tag: "path", attr: { d: "M4 8H2v12c0 1.103.897 2 2 2h12v-2H4V8zm8.933 3.519-1.726-1.726-1.414 1.414 3.274 3.274 5.702-6.84-1.538-1.282z" }, child: [] }] })(e);
605
605
  }
606
- function on(e) {
606
+ function rn(e) {
607
607
  return H({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" }, child: [] }] })(e);
608
608
  }
609
- function Yn(e) {
609
+ function Wn(e) {
610
610
  return H({ tag: "svg", attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z" }, child: [] }] })(e);
611
611
  }
612
- function Un(e) {
612
+ function Vn(e) {
613
613
  return H({ tag: "svg", attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M128 0C92.7 0 64 28.7 64 64l0 224-44.8 0C8.6 288 0 296.6 0 307.2C0 349.6 34.4 384 76.8 384L320 384l0-96-192 0 0-224 320 0 0 32 64 0 0-32c0-35.3-28.7-64-64-64L128 0zM512 128l-112 0c-26.5 0-48 21.5-48 48l0 288c0 26.5 21.5 48 48 48l192 0c26.5 0 48-21.5 48-48l0-208-96 0c-17.7 0-32-14.3-32-32l0-96zm32 0l0 96 96 0-96-96z" }, child: [] }] })(e);
614
614
  }
615
615
  function Ye(e) {
616
616
  return H({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M64 144a48 48 0 1 0 0-96 48 48 0 1 0 0 96zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM64 464a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm48-208a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z" }, child: [] }] })(e);
617
617
  }
618
- function bt(e) {
618
+ function jt(e) {
619
619
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464l256 0c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zM192 272l0 128c0 6.5-3.9 12.3-9.9 14.8s-12.9 1.1-17.4-3.5L129.4 376 112 376c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16l17.4 0 35.3-35.3c4.6-4.6 11.5-5.9 17.4-3.5s9.9 8.3 9.9 14.8zm85.8-4c11.6 20 18.2 43.3 18.2 68s-6.6 48-18.2 68c-6.6 11.5-21.3 15.4-32.8 8.8s-15.4-21.3-8.8-32.8c7.5-12.9 11.8-27.9 11.8-44s-4.3-31.1-11.8-44c-6.6-11.5-2.7-26.2 8.8-32.8s26.2-2.7 32.8 8.8z" }, child: [] }] })(e);
620
620
  }
621
- function ue(e) {
621
+ function le(e) {
622
622
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm97 289c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L79 303c-9.4 9.4-9.4 24.6 0 33.9l48 48c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-31-31 31-31zM257 255c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l31 31-31 31c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l48-48c9.4-9.4 9.4-24.6 0-33.9l-48-48z" }, child: [] }] })(e);
623
623
  }
624
- function wt(e) {
624
+ function Ct(e) {
625
625
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M48 448L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm90.9 233.3c-8.1-10.5-23.2-12.3-33.7-4.2s-12.3 23.2-4.2 33.7L161.6 320l-44.5 57.3c-8.1 10.5-6.3 25.5 4.2 33.7s25.5 6.3 33.7-4.2L192 359.1l37.1 47.6c8.1 10.5 23.2 12.3 33.7 4.2s12.3-23.2 4.2-33.7L222.4 320l44.5-57.3c8.1-10.5 6.3-25.5-4.2-33.7s-25.5-6.3-33.7 4.2L192 280.9l-37.1-47.6z" }, child: [] }] })(e);
626
626
  }
627
- function Qe(e) {
627
+ function Ze(e) {
628
628
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm69.2 46.9c-3-4.3-7.9-6.9-13.2-6.9s-10.2 2.6-13.2 6.9l-41.3 59.7-11.9-19.1c-2.9-4.7-8.1-7.5-13.6-7.5s-10.6 2.8-13.6 7.5l-40 64c-3.1 4.9-3.2 11.1-.4 16.2s8.2 8.2 14 8.2l48 0 32 0 40 0 72 0c6 0 11.4-3.3 14.2-8.6s2.4-11.6-1-16.5l-72-104z" }, child: [] }] })(e);
629
629
  }
630
- function qn(e) {
630
+ function Yn(e) {
631
631
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z" }, child: [] }] })(e);
632
632
  }
633
- function Kn(e) {
633
+ function Un(e) {
634
634
  return H({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M64 464l48 0 0 48-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 304l-48 0 0-144-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z" }, child: [] }] })(e);
635
635
  }
636
- function Et(e) {
636
+ function bt(e) {
637
637
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm72 208c-13.3 0-24 10.7-24 24l0 104 0 56c0 13.3 10.7 24 24 24s24-10.7 24-24l0-32 44 0c42 0 76-34 76-76s-34-76-76-76l-68 0zm68 104l-44 0 0-56 44 0c15.5 0 28 12.5 28 28s-12.5 28-28 28z" }, child: [] }] })(e);
638
638
  }
639
- function Pt(e) {
639
+ function wt(e) {
640
640
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zM80 288c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32l0 16 44.9-29.9c2-1.3 4.4-2.1 6.8-2.1c6.8 0 12.3 5.5 12.3 12.3l0 103.4c0 6.8-5.5 12.3-12.3 12.3c-2.4 0-4.8-.7-6.8-2.1L240 368l0 16c0 17.7-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32l0-96z" }, child: [] }] })(e);
641
641
  }
642
- function Rt(e) {
642
+ function Et(e) {
643
643
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M48 448L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm55 241.1c-3.8-12.7-17.2-19.9-29.9-16.1s-19.9 17.2-16.1 29.9l48 160c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l25-83.4 25 83.4c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l48-160c3.8-12.7-3.4-26.1-16.1-29.9s-26.1 3.4-29.9 16.1l-25 83.4-25-83.4c-3-10.2-12.4-17.1-23-17.1s-19.9 7-23 17.1l-25 83.4-25-83.4z" }, child: [] }] })(e);
644
644
  }
645
- function Xn(e) {
645
+ function qn(e) {
646
646
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l48 0c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l48 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm48 112c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm-6.3 71.8L82.1 335.9c-1.4 5.4-2.1 10.9-2.1 16.4c0 35.2 28.8 63.7 64 63.7s64-28.5 64-63.7c0-5.5-.7-11.1-2.1-16.4l-23.5-88.2c-3.7-14-16.4-23.8-30.9-23.8l-14.8 0c-14.5 0-27.2 9.7-30.9 23.8zM128 336l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z" }, child: [] }] })(e);
647
647
  }
648
648
  function Ue(e) {
649
649
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z" }, child: [] }] })(e);
650
650
  }
651
- function Mt(e) {
651
+ function Pt(e) {
652
652
  return H({ tag: "svg", attr: { viewBox: "0 0 576 512" }, child: [{ tag: "path", attr: { d: "M384 480l48 0c11.4 0 21.9-6 27.6-15.9l112-192c5.8-9.9 5.8-22.1 .1-32.1S555.5 224 544 224l-400 0c-11.4 0-21.9 6-27.6 15.9L48 357.1 48 96c0-8.8 7.2-16 16-16l117.5 0c4.2 0 8.3 1.7 11.3 4.7l26.5 26.5c21 21 49.5 32.8 79.2 32.8L416 144c8.8 0 16 7.2 16 16l0 32 48 0 0-32c0-35.3-28.7-64-64-64L298.5 96c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l23.7 0L384 480z" }, child: [] }] })(e);
653
653
  }
654
654
  function lt(e) {
655
655
  return H({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M104.6 48L64 48C28.7 48 0 76.7 0 112L0 384c0 35.3 28.7 64 64 64l96 0 0-48-96 0c-8.8 0-16-7.2-16-16l0-272c0-8.8 7.2-16 16-16l16 0c0 17.7 14.3 32 32 32l72.4 0C202 108.4 227.6 96 256 96l62 0c-7.1-27.6-32.2-48-62-48l-40.6 0C211.6 20.9 188.2 0 160 0s-51.6 20.9-55.4 48zM144 56a16 16 0 1 1 32 0 16 16 0 1 1 -32 0zM448 464l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l140.1 0L464 243.9 464 448c0 8.8-7.2 16-16 16zM256 512l192 0c35.3 0 64-28.7 64-64l0-204.1c0-12.7-5.1-24.9-14.1-33.9l-67.9-67.9c-9-9-21.2-14.1-33.9-14.1L256 128c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64z" }, child: [] }] })(e);
656
656
  }
657
- const Ie = (e = () => {
657
+ const De = (e = () => {
658
658
  }) => {
659
- const [n, r] = T(!1), s = ie(null), a = (c) => {
660
- var i;
661
- (i = s.current) != null && i.contains(c.target) ? r(!1) : (r(!0), e(c, s));
659
+ const [n, r] = T(!1), s = ie(null), a = (i) => {
660
+ var c;
661
+ (c = s.current) != null && c.contains(i.target) ? r(!1) : (r(!0), e(i, s));
662
662
  };
663
663
  return ne(() => (document.addEventListener("click", a, !0), document.addEventListener("mousedown", a, !0), () => {
664
664
  document.removeEventListener("click", a, !0), document.removeEventListener("mousedown", a, !0);
665
665
  }), []), { ref: s, isClicked: n, setIsClicked: r };
666
- }, an = $e(), Gn = ({ children: e, layout: n }) => {
666
+ }, sn = $e(), Kn = ({ children: e, layout: n }) => {
667
667
  const [r, s] = T(() => a(n));
668
- function a(c) {
669
- return ["list", "grid"].includes(c) ? c : "grid";
668
+ function a(i) {
669
+ return ["list", "grid"].includes(i) ? i : "grid";
670
670
  }
671
- return /* @__PURE__ */ t.jsx(an.Provider, { value: { activeLayout: r, setActiveLayout: s }, children: e });
672
- }, Me = () => De(an), Jn = ({ setShowToggleViewMenu: e, onLayoutChange: n }) => {
673
- const r = Ie(() => {
671
+ return /* @__PURE__ */ t.jsx(sn.Provider, { value: { activeLayout: r, setActiveLayout: s }, children: e });
672
+ }, Me = () => Ie(sn), Xn = ({ setShowToggleViewMenu: e, onLayoutChange: n }) => {
673
+ const r = De(() => {
674
674
  e(!1);
675
- }), { activeLayout: s, setActiveLayout: a } = Me(), c = [
675
+ }), { activeLayout: s, setActiveLayout: a } = Me(), i = [
676
676
  {
677
677
  key: "grid",
678
678
  name: "Grid",
679
- icon: /* @__PURE__ */ t.jsx(Qt, { size: 18 })
679
+ icon: /* @__PURE__ */ t.jsx(Jt, { size: 18 })
680
680
  },
681
681
  {
682
682
  key: "list",
683
683
  name: "List",
684
684
  icon: /* @__PURE__ */ t.jsx(Ye, { size: 18 })
685
685
  }
686
- ], i = (u) => {
686
+ ], c = (u) => {
687
687
  a(u), n(u), e(!1);
688
688
  };
689
- return /* @__PURE__ */ t.jsx("div", { ref: r.ref, className: "toggle-view", role: "dropdown", children: /* @__PURE__ */ t.jsx("ul", { role: "menu", "aria-orientation": "vertical", children: c.map((u) => /* @__PURE__ */ t.jsxs(
689
+ return /* @__PURE__ */ t.jsx("div", { ref: r.ref, className: "toggle-view", role: "dropdown", children: /* @__PURE__ */ t.jsx("ul", { role: "menu", "aria-orientation": "vertical", children: i.map((u) => /* @__PURE__ */ t.jsxs(
690
690
  "li",
691
691
  {
692
692
  role: "menuitem",
693
- onClick: () => i(u.key),
694
- onKeyDown: () => i(u.key),
693
+ onClick: () => c(u.key),
694
+ onKeyDown: () => c(u.key),
695
695
  children: [
696
- /* @__PURE__ */ t.jsx("span", { children: u.key === s && /* @__PURE__ */ t.jsx(on, { size: 13 }) }),
696
+ /* @__PURE__ */ t.jsx("span", { children: u.key === s && /* @__PURE__ */ t.jsx(rn, { size: 13 }) }),
697
697
  /* @__PURE__ */ t.jsx("span", { children: u.icon }),
698
698
  /* @__PURE__ */ t.jsx("span", { children: u.name })
699
699
  ]
700
700
  },
701
701
  u.key
702
702
  )) }) });
703
- }, cn = $e(), Zn = ({ children: e, filesData: n, onError: r }) => {
703
+ }, on = $e(), Gn = ({ children: e, filesData: n, onError: r }) => {
704
704
  const [s, a] = T([]);
705
705
  ne(() => {
706
706
  a(n);
707
707
  }, [n]);
708
- const c = (i) => i.isDirectory ? s.filter((u) => u.path === `${i.path}/${u.name}`) : [];
709
- return /* @__PURE__ */ t.jsx(cn.Provider, { value: { files: s, setFiles: a, getChildren: c, onError: r }, children: e });
710
- }, Ge = () => De(cn), ln = $e(), Qn = ({ children: e, initialPath: n }) => {
711
- const { files: r } = Ge(), s = ie(!1), [a, c] = T(""), [i, u] = T(null), [d, f] = T([]);
708
+ const i = (c) => c.isDirectory ? s.filter((u) => u.path === `${c.path}/${u.name}`) : [];
709
+ return /* @__PURE__ */ t.jsx(on.Provider, { value: { files: s, setFiles: a, getChildren: i, onError: r }, children: e });
710
+ }, Xe = () => Ie(on), an = $e(), Jn = ({ children: e, initialPath: n }) => {
711
+ const { files: r } = Xe(), s = ie(!1), [a, i] = T(""), [c, u] = T(null), [d, f] = T([]);
712
712
  return ne(() => {
713
713
  Array.isArray(r) && r.length > 0 && (f(() => r.filter((h) => h.path === `${a}/${h.name}`)), u(() => r.find((h) => h.path === a) ?? null));
714
714
  }, [r, a]), ne(() => {
715
- !s.current && Array.isArray(r) && r.length > 0 && (c(r.some((h) => h.path === n) ? n : ""), s.current = !0);
715
+ !s.current && Array.isArray(r) && r.length > 0 && (i(r.some((h) => h.path === n) ? n : ""), s.current = !0);
716
716
  }, [n, r]), /* @__PURE__ */ t.jsx(
717
- ln.Provider,
717
+ an.Provider,
718
718
  {
719
719
  value: {
720
720
  currentPath: a,
721
- setCurrentPath: c,
722
- currentFolder: i,
721
+ setCurrentPath: i,
722
+ currentFolder: c,
723
723
  setCurrentFolder: u,
724
724
  currentPathFiles: d,
725
725
  setCurrentPathFiles: f
@@ -727,7 +727,7 @@ const Ie = (e = () => {
727
727
  children: e
728
728
  }
729
729
  );
730
- }, xe = () => De(ln), Se = (e, n, ...r) => {
730
+ }, xe = () => Ie(an), Se = (e, n, ...r) => {
731
731
  try {
732
732
  if (typeof e == "function")
733
733
  e(...r);
@@ -738,13 +738,13 @@ const Ie = (e = () => {
738
738
  } catch (s) {
739
739
  console.error(s.message);
740
740
  }
741
- }, un = $e(), er = ({ children: e, onDownload: n }) => {
741
+ }, cn = $e(), Zn = ({ children: e, onDownload: n }) => {
742
742
  const [r, s] = T([]), a = () => {
743
743
  Se(n, "onDownload", r);
744
744
  };
745
- return /* @__PURE__ */ t.jsx(un.Provider, { value: { selectedFiles: r, setSelectedFiles: s, handleDownload: a }, children: e });
746
- }, Pe = () => De(un), dn = $e(), tr = ({ children: e, onPaste: n }) => {
747
- const [r, s] = T(null), { selectedFiles: a, setSelectedFiles: c } = Pe(), i = (d) => {
745
+ return /* @__PURE__ */ t.jsx(cn.Provider, { value: { selectedFiles: r, setSelectedFiles: s, handleDownload: a }, children: e });
746
+ }, Pe = () => Ie(cn), ln = $e(), Qn = ({ children: e, onPaste: n }) => {
747
+ const [r, s] = T(null), { selectedFiles: a, setSelectedFiles: i } = Pe(), c = (d) => {
748
748
  s({
749
749
  files: a,
750
750
  isMoving: d
@@ -752,10 +752,10 @@ const Ie = (e = () => {
752
752
  }, u = (d) => {
753
753
  if (d && !d.isDirectory) return;
754
754
  const f = r.files, h = r.isMoving ? "move" : "copy";
755
- Se(n, "onPaste", f, d, h), r.isMoving && s(null), c([]);
755
+ Se(n, "onPaste", f, d, h), r.isMoving && s(null), i([]);
756
756
  };
757
- return /* @__PURE__ */ t.jsx(dn.Provider, { value: { clipBoard: r, setClipBoard: s, handleCutCopy: i, handlePasting: u }, children: e });
758
- }, Je = () => De(dn), fn = ({
757
+ return /* @__PURE__ */ t.jsx(ln.Provider, { value: { clipBoard: r, setClipBoard: s, handleCutCopy: c, handlePasting: u }, children: e });
758
+ }, Ge = () => Ie(ln), un = ({
759
759
  allowCreateFolder: e = !0,
760
760
  allowUploadFile: n = !0,
761
761
  onLayoutChange: r,
@@ -763,15 +763,15 @@ const Ie = (e = () => {
763
763
  triggerAction: a
764
764
  }) => {
765
765
  var x;
766
- const [c, i] = T(!1), { currentFolder: u } = xe(), { selectedFiles: d, setSelectedFiles: f, handleDownload: h } = Pe(), { clipBoard: v, setClipBoard: P, handleCutCopy: N, handlePasting: M } = Je(), { activeLayout: z } = Me(), A = [
766
+ const [i, c] = T(!1), { currentFolder: u } = xe(), { selectedFiles: d, setSelectedFiles: f, handleDownload: h } = Pe(), { clipBoard: p, setClipBoard: E, handleCutCopy: L, handlePasting: R } = Ge(), { activeLayout: z } = Me(), A = [
767
767
  {
768
- icon: /* @__PURE__ */ t.jsx(Zt, { size: 17, strokeWidth: 0.3 }),
768
+ icon: /* @__PURE__ */ t.jsx(Gt, { size: 17, strokeWidth: 0.3 }),
769
769
  text: "New folder",
770
770
  permission: e,
771
771
  onClick: () => a.show("createFolder")
772
772
  },
773
773
  {
774
- icon: /* @__PURE__ */ t.jsx(rn, { size: 18 }),
774
+ icon: /* @__PURE__ */ t.jsx(tn, { size: 18 }),
775
775
  text: "Upload",
776
776
  permission: n,
777
777
  onClick: () => a.show("uploadFile")
@@ -779,44 +779,44 @@ const Ie = (e = () => {
779
779
  {
780
780
  icon: /* @__PURE__ */ t.jsx(lt, { size: 18 }),
781
781
  text: "Paste",
782
- permission: !!v,
783
- onClick: R
782
+ permission: !!p,
783
+ onClick: M
784
784
  }
785
785
  ], b = [
786
786
  {
787
- icon: z === "grid" ? /* @__PURE__ */ t.jsx(Qt, { size: 16 }) : /* @__PURE__ */ t.jsx(Ye, { size: 16 }),
787
+ icon: z === "grid" ? /* @__PURE__ */ t.jsx(Jt, { size: 16 }) : /* @__PURE__ */ t.jsx(Ye, { size: 16 }),
788
788
  title: "Change View",
789
- onClick: () => i((l) => !l)
789
+ onClick: () => c((l) => !l)
790
790
  },
791
791
  {
792
- icon: /* @__PURE__ */ t.jsx(tn, { size: 16 }),
792
+ icon: /* @__PURE__ */ t.jsx(Qt, { size: 16 }),
793
793
  title: "Refresh",
794
794
  onClick: () => {
795
- Se(s, "onRefresh"), P(null);
795
+ Se(s, "onRefresh"), E(null);
796
796
  }
797
797
  }
798
798
  ];
799
- function R() {
800
- M(u);
799
+ function M() {
800
+ R(u);
801
801
  }
802
802
  const g = () => {
803
803
  h(), f([]);
804
804
  };
805
805
  return d.length > 0 ? /* @__PURE__ */ t.jsx("div", { className: "toolbar file-selected", children: /* @__PURE__ */ t.jsxs("div", { className: "file-action-container", children: [
806
806
  /* @__PURE__ */ t.jsxs("div", { children: [
807
- /* @__PURE__ */ t.jsxs("button", { className: "item-action file-action", onClick: () => N(!0), children: [
808
- /* @__PURE__ */ t.jsx(en, { size: 18 }),
807
+ /* @__PURE__ */ t.jsxs("button", { className: "item-action file-action", onClick: () => L(!0), children: [
808
+ /* @__PURE__ */ t.jsx(Zt, { size: 18 }),
809
809
  /* @__PURE__ */ t.jsx("span", { children: "Cut" })
810
810
  ] }),
811
- /* @__PURE__ */ t.jsxs("button", { className: "item-action file-action", onClick: () => N(!1), children: [
812
- /* @__PURE__ */ t.jsx(Jt, { strokeWidth: 0.1, size: 17 }),
811
+ /* @__PURE__ */ t.jsxs("button", { className: "item-action file-action", onClick: () => L(!1), children: [
812
+ /* @__PURE__ */ t.jsx(Xt, { strokeWidth: 0.1, size: 17 }),
813
813
  /* @__PURE__ */ t.jsx("span", { children: "Copy" })
814
814
  ] }),
815
- ((x = v == null ? void 0 : v.files) == null ? void 0 : x.length) > 0 && /* @__PURE__ */ t.jsxs(
815
+ ((x = p == null ? void 0 : p.files) == null ? void 0 : x.length) > 0 && /* @__PURE__ */ t.jsxs(
816
816
  "button",
817
817
  {
818
818
  className: "item-action file-action",
819
- onClick: R,
819
+ onClick: M,
820
820
  children: [
821
821
  /* @__PURE__ */ t.jsx(lt, { size: 18 }),
822
822
  /* @__PURE__ */ t.jsx("span", { children: "Paste" })
@@ -829,13 +829,13 @@ const Ie = (e = () => {
829
829
  className: "item-action file-action",
830
830
  onClick: () => a.show("rename"),
831
831
  children: [
832
- /* @__PURE__ */ t.jsx(sn, { size: 19 }),
832
+ /* @__PURE__ */ t.jsx(nn, { size: 19 }),
833
833
  /* @__PURE__ */ t.jsx("span", { children: "Rename" })
834
834
  ]
835
835
  }
836
836
  ),
837
837
  !d.isDirectory && /* @__PURE__ */ t.jsxs("button", { className: "item-action file-action", onClick: g, children: [
838
- /* @__PURE__ */ t.jsx(mt, { size: 19 }),
838
+ /* @__PURE__ */ t.jsx(ht, { size: 19 }),
839
839
  /* @__PURE__ */ t.jsx("span", { children: "Download" })
840
840
  ] }),
841
841
  /* @__PURE__ */ t.jsxs(
@@ -844,7 +844,7 @@ const Ie = (e = () => {
844
844
  className: "item-action file-action",
845
845
  onClick: () => a.show("delete"),
846
846
  children: [
847
- /* @__PURE__ */ t.jsx(nn, { size: 19 }),
847
+ /* @__PURE__ */ t.jsx(en, { size: 19 }),
848
848
  /* @__PURE__ */ t.jsx("span", { children: "Delete" })
849
849
  ]
850
850
  }
@@ -863,34 +863,34 @@ const Ie = (e = () => {
863
863
  d.length > 1 && "s",
864
864
  " selected"
865
865
  ] }),
866
- /* @__PURE__ */ t.jsx(Dn, { size: 18 })
866
+ /* @__PURE__ */ t.jsx(_n, { size: 18 })
867
867
  ]
868
868
  }
869
869
  )
870
870
  ] }) }) : /* @__PURE__ */ t.jsx("div", { className: "toolbar", children: /* @__PURE__ */ t.jsxs("div", { className: "fm-toolbar", children: [
871
- /* @__PURE__ */ t.jsx("div", { children: A.filter((l) => l.permission).map((l, m) => /* @__PURE__ */ t.jsxs("button", { className: "item-action", onClick: l.onClick, children: [
871
+ /* @__PURE__ */ t.jsx("div", { children: A.filter((l) => l.permission).map((l, v) => /* @__PURE__ */ t.jsxs("button", { className: "item-action", onClick: l.onClick, children: [
872
872
  l.icon,
873
873
  /* @__PURE__ */ t.jsx("span", { children: l.text })
874
- ] }, m)) }),
874
+ ] }, v)) }),
875
875
  /* @__PURE__ */ t.jsxs("div", { children: [
876
- b.map((l, m) => /* @__PURE__ */ t.jsxs("div", { className: "toolbar-left-items", children: [
876
+ b.map((l, v) => /* @__PURE__ */ t.jsxs("div", { className: "toolbar-left-items", children: [
877
877
  /* @__PURE__ */ t.jsx("button", { className: "item-action icon-only", title: l.title, onClick: l.onClick, children: l.icon }),
878
- m !== b.length - 1 && /* @__PURE__ */ t.jsx("div", { className: "item-separator" })
879
- ] }, m)),
880
- c && /* @__PURE__ */ t.jsx(
881
- Jn,
878
+ v !== b.length - 1 && /* @__PURE__ */ t.jsx("div", { className: "item-separator" })
879
+ ] }, v)),
880
+ i && /* @__PURE__ */ t.jsx(
881
+ Xn,
882
882
  {
883
- setShowToggleViewMenu: i,
883
+ setShowToggleViewMenu: c,
884
884
  onLayoutChange: r
885
885
  }
886
886
  )
887
887
  ] })
888
888
  ] }) });
889
889
  };
890
- fn.displayName = "Toolbar";
891
- var nr = process.env.NODE_ENV === "production";
892
- function rr(e, n) {
893
- if (!nr) {
890
+ un.displayName = "Toolbar";
891
+ var er = process.env.NODE_ENV === "production";
892
+ function tr(e, n) {
893
+ if (!er) {
894
894
  if (e)
895
895
  return;
896
896
  var r = "Warning: " + n;
@@ -911,45 +911,45 @@ function rr(e, n) {
911
911
  *
912
912
  * @license MIT
913
913
  */
914
- var sr = class extends Error {
914
+ var nr = class extends Error {
915
915
  constructor(e) {
916
916
  super(`react-collapsed: ${e}`);
917
917
  }
918
- }, qe = (...e) => rr(e[0], `[react-collapsed] -- ${e[1]}`);
919
- function hn(e) {
918
+ }, qe = (...e) => tr(e[0], `[react-collapsed] -- ${e[1]}`);
919
+ function dn(e) {
920
920
  const n = ie(e);
921
921
  return ne(() => {
922
922
  n.current = e;
923
- }), qt((...r) => {
923
+ }), Ut((...r) => {
924
924
  var s;
925
925
  return (s = n.current) == null ? void 0 : s.call(n, ...r);
926
926
  }, []);
927
927
  }
928
- function or(e, n, r) {
929
- const [s, a] = T(n), c = ie(typeof e < "u"), i = c.current ? e : s, u = hn(r), d = qt(
928
+ function rr(e, n, r) {
929
+ const [s, a] = T(n), i = ie(typeof e < "u"), c = i.current ? e : s, u = dn(r), d = Ut(
930
930
  (f) => {
931
- const v = typeof f == "function" ? f(i) : f;
932
- c.current || a(v), u == null || u(v);
931
+ const p = typeof f == "function" ? f(c) : f;
932
+ i.current || a(p), u == null || u(p);
933
933
  },
934
- [u, i]
934
+ [u, c]
935
935
  );
936
936
  return ne(() => {
937
937
  qe(
938
- !(c.current && e == null),
938
+ !(i.current && e == null),
939
939
  "`isExpanded` state is changing from controlled to uncontrolled. useCollapse should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled collapse for the lifetime of the component. Check the `isExpanded` prop."
940
940
  ), qe(
941
- !(!c.current && e != null),
941
+ !(!i.current && e != null),
942
942
  "`isExpanded` state is changing from uncontrolled to controlled. useCollapse should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled collapse for the lifetime of the component. Check the `isExpanded` prop."
943
943
  );
944
- }, [e]), [i, d];
944
+ }, [e]), [c, d];
945
945
  }
946
- var ar = "(prefers-reduced-motion: reduce)";
947
- function ir() {
946
+ var sr = "(prefers-reduced-motion: reduce)";
947
+ function or() {
948
948
  const [e, n] = T(!1);
949
949
  return ne(() => {
950
950
  if (typeof window > "u" || typeof window.matchMedia != "function")
951
951
  return;
952
- const r = window.matchMedia(ar);
952
+ const r = window.matchMedia(sr);
953
953
  n(r.matches);
954
954
  const s = (a) => {
955
955
  n(a.matches);
@@ -964,49 +964,49 @@ function ir() {
964
964
  };
965
965
  }, []), e;
966
966
  }
967
- var cr = _e.useId || (() => {
967
+ var ar = _e.useId || (() => {
968
968
  });
969
- function lr() {
970
- return cr() ?? "";
971
- }
972
- var ur = typeof window < "u" ? _e.useLayoutEffect : _e.useEffect, et = !1, dr = 0, Tt = () => ++dr;
973
- function fr(e) {
974
- const n = e || (et ? Tt() : null), [r, s] = _e.useState(n);
975
- return ur(() => {
976
- r === null && s(Tt());
969
+ function ir() {
970
+ return ar() ?? "";
971
+ }
972
+ var cr = typeof window < "u" ? _e.useLayoutEffect : _e.useEffect, Qe = !1, lr = 0, Rt = () => ++lr;
973
+ function ur(e) {
974
+ const n = e || (Qe ? Rt() : null), [r, s] = _e.useState(n);
975
+ return cr(() => {
976
+ r === null && s(Rt());
977
977
  }, []), _e.useEffect(() => {
978
- et === !1 && (et = !0);
978
+ Qe === !1 && (Qe = !0);
979
979
  }, []), r != null ? String(r) : void 0;
980
980
  }
981
- function hr(e) {
982
- const n = lr(), r = fr(e);
981
+ function dr(e) {
982
+ const n = ir(), r = ur(e);
983
983
  return typeof e == "string" ? e : typeof n == "string" ? n : r;
984
984
  }
985
- function pr(e, n) {
985
+ function fr(e, n) {
986
986
  const r = performance.now(), s = {};
987
987
  function a() {
988
- s.id = requestAnimationFrame((c) => {
989
- c - r > n ? e() : a();
988
+ s.id = requestAnimationFrame((i) => {
989
+ i - r > n ? e() : a();
990
990
  });
991
991
  }
992
992
  return a(), s;
993
993
  }
994
- function St(e) {
994
+ function Mt(e) {
995
995
  e.id && cancelAnimationFrame(e.id);
996
996
  }
997
- function Ft(e) {
997
+ function Tt(e) {
998
998
  return e != null && e.current ? e.current.scrollHeight : (qe(
999
999
  !0,
1000
1000
  "Was not able to find a ref to the collapse element via `getCollapseProps`. Ensure that the element exposes its `ref` prop. If it exposes the ref prop under a different name (like `innerRef`), use the `refKey` property to change it. Example:\n\nconst collapseProps = getCollapseProps({refKey: 'innerRef'})"
1001
1001
  ), 0);
1002
1002
  }
1003
- function mr(e) {
1003
+ function hr(e) {
1004
1004
  if (!e || typeof e == "string")
1005
1005
  return 0;
1006
1006
  const n = e / 36;
1007
1007
  return Math.round((4 + 15 * n ** 0.25 + n / 5) * 10);
1008
1008
  }
1009
- function vr(e, n) {
1009
+ function pr(e, n) {
1010
1010
  if (e != null)
1011
1011
  if (typeof e == "function")
1012
1012
  e(n);
@@ -1014,17 +1014,17 @@ function vr(e, n) {
1014
1014
  try {
1015
1015
  e.current = n;
1016
1016
  } catch {
1017
- throw new sr(`Cannot assign value "${n}" to ref "${e}"`);
1017
+ throw new nr(`Cannot assign value "${n}" to ref "${e}"`);
1018
1018
  }
1019
1019
  }
1020
- function Lt(...e) {
1020
+ function St(...e) {
1021
1021
  return e.every((n) => n == null) ? null : (n) => {
1022
1022
  e.forEach((r) => {
1023
- vr(r, n);
1023
+ pr(r, n);
1024
1024
  });
1025
1025
  };
1026
1026
  }
1027
- function gr(e) {
1027
+ function mr(e) {
1028
1028
  let n = (r) => {
1029
1029
  };
1030
1030
  n = (r) => {
@@ -1047,101 +1047,101 @@ After: <div {...getCollapseProps()}>
1047
1047
  n(e);
1048
1048
  }, [e]);
1049
1049
  }
1050
- var yr = typeof window > "u" ? ne : Mn;
1051
- function xr({
1050
+ var vr = typeof window > "u" ? ne : En;
1051
+ function gr({
1052
1052
  duration: e,
1053
1053
  easing: n = "cubic-bezier(0.4, 0, 0.2, 1)",
1054
1054
  onTransitionStateChange: r = () => {
1055
1055
  },
1056
1056
  isExpanded: s,
1057
1057
  defaultExpanded: a = !1,
1058
- hasDisabledAnimation: c,
1059
- id: i,
1058
+ hasDisabledAnimation: i,
1059
+ id: c,
1060
1060
  ...u
1061
1061
  } = {}) {
1062
- const d = hn(r), f = hr(i ? `${i}` : void 0), [h, v] = or(
1062
+ const d = dn(r), f = dr(c ? `${c}` : void 0), [h, p] = rr(
1063
1063
  s,
1064
1064
  a
1065
- ), P = ie(h), [N, M] = T(!1), z = ir(), A = c ?? z, b = ie(), R = ie(), g = ie(null), [x, l] = T(null);
1066
- gr(g);
1067
- const m = `${u.collapsedHeight || 0}px`;
1068
- function O(y) {
1065
+ ), E = ie(h), [L, R] = T(!1), z = or(), A = i ?? z, b = ie(), M = ie(), g = ie(null), [x, l] = T(null);
1066
+ mr(g);
1067
+ const v = `${u.collapsedHeight || 0}px`;
1068
+ function k(y) {
1069
1069
  if (!g.current)
1070
1070
  return;
1071
1071
  const w = g.current;
1072
- for (const E in y) {
1073
- const _ = y[E];
1074
- _ ? w.style[E] = _ : w.style.removeProperty(E);
1072
+ for (const P in y) {
1073
+ const _ = y[P];
1074
+ _ ? w.style[P] = _ : w.style.removeProperty(P);
1075
1075
  }
1076
1076
  }
1077
- return yr(() => {
1078
- if (!g.current || h === P.current)
1077
+ return vr(() => {
1078
+ if (!g.current || h === E.current)
1079
1079
  return;
1080
- P.current = h;
1081
- function w(k) {
1082
- return A ? 0 : e ?? mr(k);
1080
+ E.current = h;
1081
+ function w(O) {
1082
+ return A ? 0 : e ?? hr(O);
1083
1083
  }
1084
- const E = (k) => `height ${w(k)}ms ${n}`, _ = (k) => {
1085
- function D() {
1086
- h ? (O({
1084
+ const P = (O) => `height ${w(O)}ms ${n}`, _ = (O) => {
1085
+ function I() {
1086
+ h ? (k({
1087
1087
  height: "",
1088
1088
  overflow: "",
1089
1089
  transition: "",
1090
1090
  display: ""
1091
- }), d("expandEnd")) : (O({ transition: "" }), d("collapseEnd")), M(!1);
1091
+ }), d("expandEnd")) : (k({ transition: "" }), d("collapseEnd")), R(!1);
1092
1092
  }
1093
- R.current && St(R.current), R.current = pr(D, k);
1093
+ M.current && Mt(M.current), M.current = fr(I, O);
1094
1094
  };
1095
- return M(!0), h ? b.current = requestAnimationFrame(() => {
1096
- d("expandStart"), O({
1095
+ return R(!0), h ? b.current = requestAnimationFrame(() => {
1096
+ d("expandStart"), k({
1097
1097
  display: "block",
1098
1098
  overflow: "hidden",
1099
- height: m
1099
+ height: v
1100
1100
  }), b.current = requestAnimationFrame(() => {
1101
1101
  d("expanding");
1102
- const k = Ft(g);
1103
- _(w(k)), g.current && (g.current.style.transition = E(k), g.current.style.height = `${k}px`);
1102
+ const O = Tt(g);
1103
+ _(w(O)), g.current && (g.current.style.transition = P(O), g.current.style.height = `${O}px`);
1104
1104
  });
1105
1105
  }) : b.current = requestAnimationFrame(() => {
1106
1106
  d("collapseStart");
1107
- const k = Ft(g);
1108
- _(w(k)), O({
1109
- transition: E(k),
1110
- height: `${k}px`
1107
+ const O = Tt(g);
1108
+ _(w(O)), k({
1109
+ transition: P(O),
1110
+ height: `${O}px`
1111
1111
  }), b.current = requestAnimationFrame(() => {
1112
- d("collapsing"), O({
1113
- height: m,
1112
+ d("collapsing"), k({
1113
+ height: v,
1114
1114
  overflow: "hidden"
1115
1115
  });
1116
1116
  });
1117
1117
  }), () => {
1118
- b.current && cancelAnimationFrame(b.current), R.current && St(R.current);
1118
+ b.current && cancelAnimationFrame(b.current), M.current && Mt(M.current);
1119
1119
  };
1120
1120
  }, [
1121
1121
  h,
1122
- m,
1122
+ v,
1123
1123
  A,
1124
1124
  e,
1125
1125
  n,
1126
1126
  d
1127
1127
  ]), {
1128
1128
  isExpanded: h,
1129
- setExpanded: v,
1129
+ setExpanded: p,
1130
1130
  getToggleProps(y) {
1131
- const { disabled: w, onClick: E, refKey: _, ...k } = {
1131
+ const { disabled: w, onClick: P, refKey: _, ...O } = {
1132
1132
  refKey: "ref",
1133
1133
  onClick() {
1134
1134
  },
1135
1135
  disabled: !1,
1136
1136
  ...y
1137
- }, D = x ? x.tagName === "BUTTON" : void 0, Z = y == null ? void 0 : y[_ || "ref"], se = {
1137
+ }, I = x ? x.tagName === "BUTTON" : void 0, Z = y == null ? void 0 : y[_ || "ref"], se = {
1138
1138
  id: `react-collapsed-toggle-${f}`,
1139
1139
  "aria-controls": `react-collapsed-panel-${f}`,
1140
1140
  "aria-expanded": h,
1141
- onClick(ce) {
1142
- w || (E == null || E(ce), v((le) => !le));
1141
+ onClick(he) {
1142
+ w || (P == null || P(he), p((ce) => !ce));
1143
1143
  },
1144
- [_ || "ref"]: Lt(Z, l)
1144
+ [_ || "ref"]: St(Z, l)
1145
1145
  }, re = {
1146
1146
  type: "button",
1147
1147
  disabled: w ? !0 : void 0
@@ -1150,28 +1150,28 @@ function xr({
1150
1150
  role: "button",
1151
1151
  tabIndex: w ? -1 : 0
1152
1152
  };
1153
- return D === !1 ? { ...se, ...G, ...k } : D === !0 ? { ...se, ...re, ...k } : {
1153
+ return I === !1 ? { ...se, ...G, ...O } : I === !0 ? { ...se, ...re, ...O } : {
1154
1154
  ...se,
1155
1155
  ...re,
1156
1156
  ...G,
1157
- ...k
1157
+ ...O
1158
1158
  };
1159
1159
  },
1160
1160
  getCollapseProps(y) {
1161
- const { style: w, refKey: E } = { refKey: "ref", style: {}, ...y }, _ = y == null ? void 0 : y[E || "ref"];
1161
+ const { style: w, refKey: P } = { refKey: "ref", style: {}, ...y }, _ = y == null ? void 0 : y[P || "ref"];
1162
1162
  return {
1163
1163
  id: `react-collapsed-panel-${f}`,
1164
1164
  "aria-hidden": !h,
1165
1165
  "aria-labelledby": `react-collapsed-toggle-${f}`,
1166
1166
  role: "region",
1167
1167
  ...y,
1168
- [E || "ref"]: Lt(g, _),
1168
+ [P || "ref"]: St(g, _),
1169
1169
  style: {
1170
1170
  boxSizing: "border-box",
1171
- ...!N && !h ? {
1171
+ ...!L && !h ? {
1172
1172
  // collapsed and not animating
1173
- display: m === "0px" ? "none" : "block",
1174
- height: m,
1173
+ display: v === "0px" ? "none" : "block",
1174
+ height: v,
1175
1175
  overflow: "hidden"
1176
1176
  } : {},
1177
1177
  // additional styles passed, e.g. getCollapseProps({style: {}})
@@ -1181,8 +1181,8 @@ function xr({
1181
1181
  }
1182
1182
  };
1183
1183
  }
1184
- const jr = ({ open: e, children: n }) => {
1185
- const [r, s] = T(e), { getCollapseProps: a } = xr({
1184
+ const yr = ({ open: e, children: n }) => {
1185
+ const [r, s] = T(e), { getCollapseProps: a } = gr({
1186
1186
  isExpanded: r,
1187
1187
  duration: 500
1188
1188
  });
@@ -1190,29 +1190,29 @@ const jr = ({ open: e, children: n }) => {
1190
1190
  s(e);
1191
1191
  }, [e, s]), /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx("div", { ...a(), children: n }) });
1192
1192
  };
1193
- function Cr(e) {
1193
+ function xr(e) {
1194
1194
  return H({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z" }, child: [] }] })(e);
1195
1195
  }
1196
- function br(e) {
1196
+ function jr(e) {
1197
1197
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M288 248v28c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-28c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm-12 72H108c-6.6 0-12 5.4-12 12v28c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-28c0-6.6-5.4-12-12-12zm108-188.1V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V48C0 21.5 21.5 0 48 0h204.1C264.8 0 277 5.1 286 14.1L369.9 98c9 8.9 14.1 21.2 14.1 33.9zm-128-80V128h76.1L256 51.9zM336 464V176H232c-13.3 0-24-10.7-24-24V48H48v416h288z" }, child: [] }] })(e);
1198
1198
  }
1199
- function Nt(e) {
1199
+ function Lt(e) {
1200
1200
  return H({ tag: "svg", attr: { viewBox: "0 0 576 512" }, child: [{ tag: "path", attr: { d: "M527.9 224H480v-48c0-26.5-21.5-48-48-48H272l-64-64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h400c16.5 0 31.9-8.5 40.7-22.6l79.9-128c20-31.9-3-73.4-40.7-73.4zM48 118c0-3.3 2.7-6 6-6h134.1l64 64H426c3.3 0 6 2.7 6 6v42H152c-16.8 0-32.4 8.8-41.1 23.2L48 351.4zm400 282H72l77.2-128H528z" }, child: [] }] })(e);
1201
1201
  }
1202
- function kt(e) {
1202
+ function Nt(e) {
1203
1203
  return H({ tag: "svg", 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);
1204
1204
  }
1205
- const pn = ({ folder: e }) => {
1206
- const [n, r] = T(!1), [s, a] = T(!1), { currentPath: c, setCurrentPath: i } = xe(), u = () => {
1207
- a(!0), i(e.path);
1205
+ const fn = ({ folder: e }) => {
1206
+ const [n, r] = T(!1), [s, a] = T(!1), { currentPath: i, setCurrentPath: c } = xe(), u = () => {
1207
+ a(!0), c(e.path);
1208
1208
  }, d = (f) => {
1209
1209
  f.stopPropagation(), r((h) => !h);
1210
1210
  };
1211
1211
  return ne(() => {
1212
- a(c === e.path);
1213
- const f = c.split("/");
1212
+ a(i === e.path);
1213
+ const f = i.split("/");
1214
1214
  f.pop(), f.join("/") === e.path && r(!0);
1215
- }, [c]), e.subDirectories.length > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1215
+ }, [i]), e.subDirectories.length > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1216
1216
  /* @__PURE__ */ t.jsxs(
1217
1217
  "div",
1218
1218
  {
@@ -1220,20 +1220,20 @@ const pn = ({ folder: e }) => {
1220
1220
  onClick: u,
1221
1221
  children: [
1222
1222
  /* @__PURE__ */ t.jsx("span", { onClick: d, children: /* @__PURE__ */ t.jsx(
1223
- In,
1223
+ $n,
1224
1224
  {
1225
1225
  size: 20,
1226
1226
  className: `folder-icon-default ${n ? "folder-rotate-down" : ""}`
1227
1227
  }
1228
1228
  ) }),
1229
1229
  /* @__PURE__ */ t.jsxs("div", { className: "sb-folder-details", children: [
1230
- n || s ? /* @__PURE__ */ t.jsx(Nt, { size: 20, className: "folder-open-icon" }) : /* @__PURE__ */ t.jsx(kt, { size: 17, className: "folder-close-icon" }),
1230
+ n || s ? /* @__PURE__ */ t.jsx(Lt, { size: 20, className: "folder-open-icon" }) : /* @__PURE__ */ t.jsx(Nt, { size: 17, className: "folder-close-icon" }),
1231
1231
  /* @__PURE__ */ t.jsx("span", { className: "sb-folder-name", title: e.name, children: e.name })
1232
1232
  ] })
1233
1233
  ]
1234
1234
  }
1235
1235
  ),
1236
- /* @__PURE__ */ t.jsx(jr, { open: n, children: /* @__PURE__ */ t.jsx("div", { className: "folder-collapsible", children: e.subDirectories.map((f, h) => /* @__PURE__ */ t.jsx(pn, { folder: f }, h)) }) })
1236
+ /* @__PURE__ */ t.jsx(yr, { open: n, children: /* @__PURE__ */ t.jsx("div", { className: "folder-collapsible", children: e.subDirectories.map((f, h) => /* @__PURE__ */ t.jsx(fn, { folder: f }, h)) }) })
1237
1237
  ] }) : /* @__PURE__ */ t.jsxs(
1238
1238
  "div",
1239
1239
  {
@@ -1242,71 +1242,71 @@ const pn = ({ folder: e }) => {
1242
1242
  children: [
1243
1243
  /* @__PURE__ */ t.jsx("span", { className: "non-expanable" }),
1244
1244
  /* @__PURE__ */ t.jsxs("div", { className: "sb-folder-details", children: [
1245
- s ? /* @__PURE__ */ t.jsx(Nt, { size: 20, className: "folder-open-icon" }) : /* @__PURE__ */ t.jsx(kt, { size: 17, className: "folder-close-icon" }),
1245
+ s ? /* @__PURE__ */ t.jsx(Lt, { size: 20, className: "folder-open-icon" }) : /* @__PURE__ */ t.jsx(Nt, { size: 17, className: "folder-close-icon" }),
1246
1246
  /* @__PURE__ */ t.jsx("span", { className: "sb-folder-name", title: e.name, children: e.name })
1247
1247
  ] })
1248
1248
  ]
1249
1249
  }
1250
1250
  );
1251
- }, wr = (e) => e == null ? void 0 : e.split("/").slice(0, -1).join("/"), mn = () => {
1252
- const [e, n] = T([]), { files: r } = Ge(), s = (a, c) => {
1253
- var i;
1254
- return c[a] ? (i = c[a]) == null ? void 0 : i.map((u) => ({
1251
+ }, Cr = (e) => e == null ? void 0 : e.split("/").slice(0, -1).join("/"), hn = () => {
1252
+ const [e, n] = T([]), { files: r } = Xe(), s = (a, i) => {
1253
+ var c;
1254
+ return i[a] ? (c = i[a]) == null ? void 0 : c.map((u) => ({
1255
1255
  ...u,
1256
- subDirectories: s(u.path, c)
1256
+ subDirectories: s(u.path, i)
1257
1257
  })) : [];
1258
1258
  };
1259
1259
  return ne(() => {
1260
1260
  if (Array.isArray(r)) {
1261
- const a = r.filter((i) => i.isDirectory), c = Object.groupBy(a, ({ path: i }) => wr(i));
1262
- n(() => s("", c));
1261
+ const a = r.filter((c) => c.isDirectory), i = Object.groupBy(a, ({ path: c }) => Cr(c));
1262
+ n(() => s("", i));
1263
1263
  }
1264
- }, [r]), /* @__PURE__ */ t.jsx("div", { className: "sb-folders-list", children: (e == null ? void 0 : e.length) > 0 ? /* @__PURE__ */ t.jsx(t.Fragment, { children: e == null ? void 0 : e.map((a, c) => /* @__PURE__ */ t.jsx(pn, { folder: a }, c)) }) : /* @__PURE__ */ t.jsx("div", { className: "empty-nav-pane", children: "Nothing here yet" }) });
1264
+ }, [r]), /* @__PURE__ */ t.jsx("div", { className: "sb-folders-list", children: (e == null ? void 0 : e.length) > 0 ? /* @__PURE__ */ t.jsx(t.Fragment, { children: e == null ? void 0 : e.map((a, i) => /* @__PURE__ */ t.jsx(fn, { folder: a }, i)) }) : /* @__PURE__ */ t.jsx("div", { className: "empty-nav-pane", children: "Nothing here yet" }) });
1265
1265
  };
1266
- mn.displayName = "NavigationPane";
1267
- const vn = () => {
1268
- const [e, n] = T([]), [r, s] = T([]), [a, c] = T([]), [i, u] = T(!1), { currentPath: d, setCurrentPath: f } = xe(), h = ie(null), v = ie([]), P = ie(null), N = Ie(() => {
1266
+ hn.displayName = "NavigationPane";
1267
+ const pn = () => {
1268
+ const [e, n] = T([]), [r, s] = T([]), [a, i] = T([]), [c, u] = T(!1), { currentPath: d, setCurrentPath: f } = xe(), h = ie(null), p = ie([]), E = ie(null), L = De(() => {
1269
1269
  u(!1);
1270
1270
  });
1271
1271
  ne(() => {
1272
1272
  n(() => {
1273
- let R = "";
1273
+ let M = "";
1274
1274
  return d == null ? void 0 : d.split("/").map((g) => ({
1275
1275
  name: g || "Home",
1276
- path: g === "" ? g : R += `/${g}`
1276
+ path: g === "" ? g : M += `/${g}`
1277
1277
  }));
1278
- }), s([]), c([]);
1278
+ }), s([]), i([]);
1279
1279
  }, [d]);
1280
- const M = (R) => {
1281
- f(R);
1280
+ const R = (M) => {
1281
+ f(M);
1282
1282
  }, z = () => {
1283
- const R = h.current.clientWidth, g = getComputedStyle(h.current), x = parseFloat(g.paddingLeft), l = r.length > 0 ? 1 : 0, m = parseFloat(g.gap) * (e.length + l);
1284
- return R - (x + m);
1283
+ const M = h.current.clientWidth, g = getComputedStyle(h.current), x = parseFloat(g.paddingLeft), l = r.length > 0 ? 1 : 0, v = parseFloat(g.gap) * (e.length + l);
1284
+ return M - (x + v);
1285
1285
  }, A = () => {
1286
1286
  var l;
1287
- const R = z(), g = v.current.reduce((m, O) => O ? m + O.clientWidth : m, 0), x = ((l = P.current) == null ? void 0 : l.clientWidth) || 0;
1288
- return R - (g + x);
1287
+ const M = z(), g = p.current.reduce((v, k) => k ? v + k.clientWidth : v, 0), x = ((l = E.current) == null ? void 0 : l.clientWidth) || 0;
1288
+ return M - (g + x);
1289
1289
  }, b = () => h.current.scrollWidth > h.current.clientWidth;
1290
1290
  return ne(() => {
1291
- var R;
1291
+ var M;
1292
1292
  if (b()) {
1293
- const g = e[1], x = (R = v.current[1]) == null ? void 0 : R.clientWidth;
1294
- c((l) => [...l, x]), s((l) => [...l, g]), n((l) => l.filter((m, O) => O !== 1));
1293
+ const g = e[1], x = (M = p.current[1]) == null ? void 0 : M.clientWidth;
1294
+ i((l) => [...l, x]), s((l) => [...l, g]), n((l) => l.filter((v, k) => k !== 1));
1295
1295
  } else if (r.length > 0 && A() > a.at(-1)) {
1296
1296
  const g = [e[0], r.at(-1), ...e.slice(1)];
1297
- n(g), s((x) => x.slice(0, -1)), c((x) => x.slice(0, -1));
1297
+ n(g), s((x) => x.slice(0, -1)), i((x) => x.slice(0, -1));
1298
1298
  }
1299
1299
  }, [b]), /* @__PURE__ */ t.jsxs("div", { className: "bread-crumb-container", children: [
1300
- /* @__PURE__ */ t.jsx("div", { className: "breadcrumb", ref: h, children: e.map((R, g) => /* @__PURE__ */ t.jsxs("div", { style: { display: "contents" }, children: [
1300
+ /* @__PURE__ */ t.jsx("div", { className: "breadcrumb", ref: h, children: e.map((M, g) => /* @__PURE__ */ t.jsxs("div", { style: { display: "contents" }, children: [
1301
1301
  /* @__PURE__ */ t.jsxs(
1302
1302
  "span",
1303
1303
  {
1304
1304
  className: "folder-name",
1305
- onClick: () => M(R.path),
1306
- ref: (x) => v.current[g] = x,
1305
+ onClick: () => R(M.path),
1306
+ ref: (x) => p.current[g] = x,
1307
1307
  children: [
1308
- g === 0 ? /* @__PURE__ */ t.jsx($n, {}) : /* @__PURE__ */ t.jsx(Wn, {}),
1309
- R.name
1308
+ g === 0 ? /* @__PURE__ */ t.jsx(An, {}) : /* @__PURE__ */ t.jsx(Bn, {}),
1309
+ M.name
1310
1310
  ]
1311
1311
  }
1312
1312
  ),
@@ -1315,77 +1315,77 @@ const vn = () => {
1315
1315
  {
1316
1316
  className: "folder-name folder-name-btn",
1317
1317
  onClick: () => u(!0),
1318
- ref: P,
1318
+ ref: E,
1319
1319
  title: "Show more folders",
1320
- children: /* @__PURE__ */ t.jsx(Hn, { size: 22, className: "hidden-folders" })
1320
+ children: /* @__PURE__ */ t.jsx(Dn, { size: 22, className: "hidden-folders" })
1321
1321
  }
1322
1322
  )
1323
1323
  ] }, g)) }),
1324
- i && /* @__PURE__ */ t.jsx("ul", { ref: N.ref, className: "hidden-folders-container", children: r.map((R, g) => /* @__PURE__ */ t.jsx(
1324
+ c && /* @__PURE__ */ t.jsx("ul", { ref: L.ref, className: "hidden-folders-container", children: r.map((M, g) => /* @__PURE__ */ t.jsx(
1325
1325
  "li",
1326
1326
  {
1327
1327
  onClick: () => {
1328
- M(R.path), u(!1);
1328
+ R(M.path), u(!1);
1329
1329
  },
1330
- children: R.name
1330
+ children: M.name
1331
1331
  },
1332
1332
  g
1333
1333
  )) })
1334
1334
  ] });
1335
1335
  };
1336
- vn.displayName = "BreadCrumb";
1336
+ pn.displayName = "BreadCrumb";
1337
1337
  const Ke = (e) => ({
1338
- pdf: /* @__PURE__ */ t.jsx(Kn, { size: e }),
1339
- jpg: /* @__PURE__ */ t.jsx(Qe, { size: e }),
1340
- jpeg: /* @__PURE__ */ t.jsx(Qe, { size: e }),
1341
- png: /* @__PURE__ */ t.jsx(Qe, { size: e }),
1342
- txt: /* @__PURE__ */ t.jsx(qn, { size: e }),
1343
- doc: /* @__PURE__ */ t.jsx(Rt, { size: e }),
1344
- docx: /* @__PURE__ */ t.jsx(Rt, { size: e }),
1345
- mp4: /* @__PURE__ */ t.jsx(Pt, { size: e }),
1346
- webm: /* @__PURE__ */ t.jsx(Pt, { size: e }),
1347
- mp3: /* @__PURE__ */ t.jsx(bt, { size: e }),
1348
- m4a: /* @__PURE__ */ t.jsx(bt, { size: e }),
1349
- zip: /* @__PURE__ */ t.jsx(Xn, { size: e }),
1350
- ppt: /* @__PURE__ */ t.jsx(Et, { size: e }),
1351
- pptx: /* @__PURE__ */ t.jsx(Et, { size: e }),
1352
- xls: /* @__PURE__ */ t.jsx(wt, { size: e }),
1353
- xlsx: /* @__PURE__ */ t.jsx(wt, { size: e }),
1354
- exe: /* @__PURE__ */ t.jsx(Un, { size: e }),
1355
- html: /* @__PURE__ */ t.jsx(ue, { size: e }),
1356
- css: /* @__PURE__ */ t.jsx(ue, { size: e }),
1357
- js: /* @__PURE__ */ t.jsx(ue, { size: e }),
1358
- php: /* @__PURE__ */ t.jsx(ue, { size: e }),
1359
- py: /* @__PURE__ */ t.jsx(ue, { size: e }),
1360
- java: /* @__PURE__ */ t.jsx(ue, { size: e }),
1361
- cpp: /* @__PURE__ */ t.jsx(ue, { size: e }),
1362
- c: /* @__PURE__ */ t.jsx(ue, { size: e }),
1363
- ts: /* @__PURE__ */ t.jsx(ue, { size: e }),
1364
- jsx: /* @__PURE__ */ t.jsx(ue, { size: e }),
1365
- tsx: /* @__PURE__ */ t.jsx(ue, { size: e }),
1366
- json: /* @__PURE__ */ t.jsx(ue, { size: e }),
1367
- xml: /* @__PURE__ */ t.jsx(ue, { size: e }),
1368
- sql: /* @__PURE__ */ t.jsx(ue, { size: e }),
1369
- csv: /* @__PURE__ */ t.jsx(ue, { size: e }),
1370
- md: /* @__PURE__ */ t.jsx(ue, { size: e }),
1371
- svg: /* @__PURE__ */ t.jsx(ue, { size: e })
1372
- }), gn = (e, n, r) => {
1338
+ pdf: /* @__PURE__ */ t.jsx(Un, { size: e }),
1339
+ jpg: /* @__PURE__ */ t.jsx(Ze, { size: e }),
1340
+ jpeg: /* @__PURE__ */ t.jsx(Ze, { size: e }),
1341
+ png: /* @__PURE__ */ t.jsx(Ze, { size: e }),
1342
+ txt: /* @__PURE__ */ t.jsx(Yn, { size: e }),
1343
+ doc: /* @__PURE__ */ t.jsx(Et, { size: e }),
1344
+ docx: /* @__PURE__ */ t.jsx(Et, { size: e }),
1345
+ mp4: /* @__PURE__ */ t.jsx(wt, { size: e }),
1346
+ webm: /* @__PURE__ */ t.jsx(wt, { size: e }),
1347
+ mp3: /* @__PURE__ */ t.jsx(jt, { size: e }),
1348
+ m4a: /* @__PURE__ */ t.jsx(jt, { size: e }),
1349
+ zip: /* @__PURE__ */ t.jsx(qn, { size: e }),
1350
+ ppt: /* @__PURE__ */ t.jsx(bt, { size: e }),
1351
+ pptx: /* @__PURE__ */ t.jsx(bt, { size: e }),
1352
+ xls: /* @__PURE__ */ t.jsx(Ct, { size: e }),
1353
+ xlsx: /* @__PURE__ */ t.jsx(Ct, { size: e }),
1354
+ exe: /* @__PURE__ */ t.jsx(Vn, { size: e }),
1355
+ html: /* @__PURE__ */ t.jsx(le, { size: e }),
1356
+ css: /* @__PURE__ */ t.jsx(le, { size: e }),
1357
+ js: /* @__PURE__ */ t.jsx(le, { size: e }),
1358
+ php: /* @__PURE__ */ t.jsx(le, { size: e }),
1359
+ py: /* @__PURE__ */ t.jsx(le, { size: e }),
1360
+ java: /* @__PURE__ */ t.jsx(le, { size: e }),
1361
+ cpp: /* @__PURE__ */ t.jsx(le, { size: e }),
1362
+ c: /* @__PURE__ */ t.jsx(le, { size: e }),
1363
+ ts: /* @__PURE__ */ t.jsx(le, { size: e }),
1364
+ jsx: /* @__PURE__ */ t.jsx(le, { size: e }),
1365
+ tsx: /* @__PURE__ */ t.jsx(le, { size: e }),
1366
+ json: /* @__PURE__ */ t.jsx(le, { size: e }),
1367
+ xml: /* @__PURE__ */ t.jsx(le, { size: e }),
1368
+ sql: /* @__PURE__ */ t.jsx(le, { size: e }),
1369
+ csv: /* @__PURE__ */ t.jsx(le, { size: e }),
1370
+ md: /* @__PURE__ */ t.jsx(le, { size: e }),
1371
+ svg: /* @__PURE__ */ t.jsx(le, { size: e })
1372
+ }), mn = (e, n, r) => {
1373
1373
  if (r.find((s) => s.name === e)) {
1374
1374
  const s = "", a = e;
1375
- let c = 0;
1376
- const i = new RegExp(`${a} \\(\\d+\\)`);
1375
+ let i = 0;
1376
+ const c = new RegExp(`${a} \\(\\d+\\)`);
1377
1377
  r.forEach((f) => {
1378
1378
  const h = f.isDirectory ? f.name : f.name.split(".").slice(0, -1).join(".");
1379
- if (i.test(h)) {
1380
- const v = h.split(`${a} (`).pop().slice(0, -1), P = parseInt(v);
1381
- !isNaN(P) && P > c && (c = P);
1379
+ if (c.test(h)) {
1380
+ const p = h.split(`${a} (`).pop().slice(0, -1), E = parseInt(p);
1381
+ !isNaN(E) && E > i && (i = E);
1382
1382
  }
1383
1383
  });
1384
- const u = ` (${++c})`;
1384
+ const u = ` (${++i})`;
1385
1385
  return a + u + s;
1386
1386
  } else
1387
1387
  return e;
1388
- }, yn = ({ nameInputRef: e, maxLength: n, value: r, onChange: s, onKeyDown: a, onClick: c, rows: i }) => /* @__PURE__ */ t.jsx(
1388
+ }, vn = ({ nameInputRef: e, maxLength: n, value: r, onChange: s, onKeyDown: a, onClick: i, rows: c }) => /* @__PURE__ */ t.jsx(
1389
1389
  "textarea",
1390
1390
  {
1391
1391
  ref: e,
@@ -1394,72 +1394,72 @@ const Ke = (e) => ({
1394
1394
  value: r,
1395
1395
  onChange: s,
1396
1396
  onKeyDown: a,
1397
- onClick: c,
1398
- rows: i
1397
+ onClick: i,
1398
+ rows: c
1399
1399
  }
1400
- ), xn = ({ message: e, xPlacement: n, yPlacement: r }) => /* @__PURE__ */ t.jsx("p", { className: `error-tooltip ${n} ${r}`, children: e }), Er = 220, Pr = ({ filesViewRef: e, file: n, onCreateFolder: r, triggerAction: s }) => {
1401
- const [a, c] = T(n.name), [i, u] = T(!1), [d, f] = T(""), [h, v] = T("right"), [P, N] = T("bottom"), M = Ie((m) => {
1402
- m.preventDefault(), m.stopPropagation();
1403
- }), { currentFolder: z, currentPathFiles: A, setCurrentPathFiles: b } = xe(), { activeLayout: R } = Me(), g = (m) => {
1404
- c(m.target.value), u(!1);
1405
- }, x = (m) => {
1406
- if (m.stopPropagation(), m.key === "Enter") {
1407
- m.preventDefault(), l();
1400
+ ), gn = ({ message: e, xPlacement: n, yPlacement: r }) => /* @__PURE__ */ t.jsx("p", { className: `error-tooltip ${n} ${r}`, children: e }), br = 220, wr = ({ filesViewRef: e, file: n, onCreateFolder: r, triggerAction: s }) => {
1401
+ const [a, i] = T(n.name), [c, u] = T(!1), [d, f] = T(""), [h, p] = T("right"), [E, L] = T("bottom"), R = De((v) => {
1402
+ v.preventDefault(), v.stopPropagation();
1403
+ }), { currentFolder: z, currentPathFiles: A, setCurrentPathFiles: b } = xe(), { activeLayout: M } = Me(), g = (v) => {
1404
+ i(v.target.value), u(!1);
1405
+ }, x = (v) => {
1406
+ if (v.stopPropagation(), v.key === "Enter") {
1407
+ v.preventDefault(), l();
1408
1408
  return;
1409
1409
  }
1410
- m.key === "Escape" && (m.preventDefault(), s.close(), b((y) => y.filter((w) => w.key !== n.key))), /[\\/:*?"<>|]/.test(m.key) ? (m.preventDefault(), f(
1410
+ v.key === "Escape" && (v.preventDefault(), s.close(), b((y) => y.filter((w) => w.key !== n.key))), /[\\/:*?"<>|]/.test(v.key) ? (v.preventDefault(), f(
1411
1411
  `A file name can't contain any of the following characters: \\ / : * ? " < > |`
1412
1412
  ), u(!0)) : (u(!1), f(""));
1413
1413
  };
1414
1414
  ne(() => {
1415
- if (i) {
1416
- const m = setTimeout(() => {
1415
+ if (c) {
1416
+ const v = setTimeout(() => {
1417
1417
  u(!1), f("");
1418
1418
  }, 7e3);
1419
- return () => clearTimeout(m);
1419
+ return () => clearTimeout(v);
1420
1420
  }
1421
- }, [i]);
1421
+ }, [c]);
1422
1422
  function l() {
1423
- var w, E;
1424
- let m = a.trim();
1425
- const O = A.filter((_) => !(_.key && _.key === n.key));
1426
- if (O.find((_) => _.name.toLowerCase() === m.toLowerCase())) {
1427
- f(`This destination already contains a folder named '${m}'.`), u(!0), (w = M.ref.current) == null || w.focus(), (E = M.ref.current) == null || E.select(), M.setIsClicked(!1);
1423
+ var w, P;
1424
+ let v = a.trim();
1425
+ const k = A.filter((_) => !(_.key && _.key === n.key));
1426
+ if (k.find((_) => _.name.toLowerCase() === v.toLowerCase())) {
1427
+ f(`This destination already contains a folder named '${v}'.`), u(!0), (w = R.ref.current) == null || w.focus(), (P = R.ref.current) == null || P.select(), R.setIsClicked(!1);
1428
1428
  return;
1429
1429
  }
1430
- m === "" && (m = gn("New Folder", !0, O)), Se(r, "onCreateFolder", m, z), b((_) => _.filter((k) => k.key !== n.key)), s.close();
1430
+ v === "" && (v = mn("New Folder", !0, k)), Se(r, "onCreateFolder", v, z), b((_) => _.filter((O) => O.key !== n.key)), s.close();
1431
1431
  }
1432
1432
  return ne(() => {
1433
- var m, O, y;
1434
- if ((m = M.ref.current) == null || m.focus(), (O = M.ref.current) == null || O.select(), (y = M.ref) != null && y.current) {
1435
- const k = e.current.getBoundingClientRect(), D = M.ref.current, Z = D.getBoundingClientRect();
1436
- k.right - Z.left > 313 ? v("right") : v("left"), k.bottom - (Z.top + D.clientHeight) > 88 ? N("bottom") : N("top");
1433
+ var v, k, y;
1434
+ if ((v = R.ref.current) == null || v.focus(), (k = R.ref.current) == null || k.select(), (y = R.ref) != null && y.current) {
1435
+ const O = e.current.getBoundingClientRect(), I = R.ref.current, Z = I.getBoundingClientRect();
1436
+ O.right - Z.left > 313 ? p("right") : p("left"), O.bottom - (Z.top + I.clientHeight) > 88 ? L("bottom") : L("top");
1437
1437
  }
1438
1438
  }, []), ne(() => {
1439
- M.isClicked && l();
1440
- }, [M.isClicked]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1439
+ R.isClicked && l();
1440
+ }, [R.isClicked]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1441
1441
  /* @__PURE__ */ t.jsx(
1442
- yn,
1442
+ vn,
1443
1443
  {
1444
- nameInputRef: M.ref,
1445
- maxLength: Er,
1444
+ nameInputRef: R.ref,
1445
+ maxLength: br,
1446
1446
  value: a,
1447
1447
  onChange: g,
1448
1448
  onKeyDown: x,
1449
- onClick: (m) => m.stopPropagation(),
1450
- ...R === "list" && { rows: 1 }
1449
+ onClick: (v) => v.stopPropagation(),
1450
+ ...M === "list" && { rows: 1 }
1451
1451
  }
1452
1452
  ),
1453
- i && /* @__PURE__ */ t.jsx(
1454
- xn,
1453
+ c && /* @__PURE__ */ t.jsx(
1454
+ gn,
1455
1455
  {
1456
1456
  message: d,
1457
1457
  xPlacement: h,
1458
- yPlacement: P
1458
+ yPlacement: E
1459
1459
  }
1460
1460
  )
1461
1461
  ] });
1462
- }, Ne = ({ onClick: e, onKeyDown: n, type: r = "primary", padding: s = "0.4rem 0.8rem", children: a }) => /* @__PURE__ */ t.jsx(
1462
+ }, Fe = ({ onClick: e, onKeyDown: n, type: r = "primary", padding: s = "0.4rem 0.8rem", children: a }) => /* @__PURE__ */ t.jsx(
1463
1463
  "button",
1464
1464
  {
1465
1465
  onClick: e,
@@ -1469,17 +1469,17 @@ const Ke = (e) => ({
1469
1469
  children: a
1470
1470
  }
1471
1471
  );
1472
- function Rr(e) {
1472
+ function Er(e) {
1473
1473
  return H({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z" }, child: [] }, { tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "m250.26 195.39 5.74 122 5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z" }, child: [] }, { tag: "path", attr: { d: "M256 397.25a20 20 0 1 1 20-20 20 20 0 0 1-20 20z" }, child: [] }] })(e);
1474
1474
  }
1475
- const jn = ({
1475
+ const yn = ({
1476
1476
  children: e,
1477
1477
  show: n,
1478
1478
  setShow: r,
1479
1479
  heading: s,
1480
1480
  dialogWidth: a = "25%",
1481
- contentClassName: c = "",
1482
- closeButton: i = !0
1481
+ contentClassName: i = "",
1482
+ closeButton: c = !0
1483
1483
  }) => {
1484
1484
  const u = ie(null), d = (f) => {
1485
1485
  f.key === "Escape" && r(!1);
@@ -1496,14 +1496,14 @@ const jn = ({
1496
1496
  children: [
1497
1497
  /* @__PURE__ */ t.jsxs("div", { className: "fm-modal-header", children: [
1498
1498
  /* @__PURE__ */ t.jsx("span", { className: "fm-modal-heading", children: s }),
1499
- i && /* @__PURE__ */ t.jsx(Bn, { size: 18, onClick: () => r(!1), className: "close-icon", title: "Close" })
1499
+ c && /* @__PURE__ */ t.jsx(In, { size: 18, onClick: () => r(!1), className: "close-icon", title: "Close" })
1500
1500
  ] }),
1501
1501
  e
1502
1502
  ]
1503
1503
  }
1504
1504
  );
1505
- }, Le = (e) => e.split(".").pop(), Mr = 220, Tr = ({ filesViewRef: e, file: n, onRename: r, triggerAction: s }) => {
1506
- const [a, c] = T(n == null ? void 0 : n.name), [i, u] = T(!1), [d, f] = T(!1), [h, v] = T(""), [P, N] = T("right"), [M, z] = T("bottom"), { currentPathFiles: A, setCurrentPathFiles: b } = xe(), { activeLayout: R } = Me(), g = ie(null), x = Ie((y) => {
1505
+ }, Ne = (e) => e.split(".").pop(), Pr = 220, Rr = ({ filesViewRef: e, file: n, onRename: r, triggerAction: s }) => {
1506
+ const [a, i] = T(n == null ? void 0 : n.name), [c, u] = T(!1), [d, f] = T(!1), [h, p] = T(""), [E, L] = T("right"), [R, z] = T("bottom"), { currentPathFiles: A, setCurrentPathFiles: b } = xe(), { activeLayout: M } = Me(), g = ie(null), x = De((y) => {
1507
1507
  var w;
1508
1508
  (w = g.current) != null && w.contains(y.target) || (y.preventDefault(), y.stopPropagation());
1509
1509
  }), l = (y) => {
@@ -1511,92 +1511,92 @@ const jn = ({
1511
1511
  y.preventDefault(), x.setIsClicked(!0);
1512
1512
  return;
1513
1513
  }
1514
- /[\\/:*?"<>|]/.test(y.key) ? (y.preventDefault(), v(
1514
+ /[\\/:*?"<>|]/.test(y.key) ? (y.preventDefault(), p(
1515
1515
  `A file name can't contain any of the following characters: \\ / : * ? " < > |`
1516
1516
  ), f(!0)) : f(!1);
1517
1517
  };
1518
1518
  ne(() => {
1519
1519
  if (d) {
1520
1520
  const y = setTimeout(() => {
1521
- f(!1), v("");
1521
+ f(!1), p("");
1522
1522
  }, 7e3);
1523
1523
  return () => clearTimeout(y);
1524
1524
  }
1525
1525
  }, [d]);
1526
- function m(y) {
1526
+ function v(y) {
1527
1527
  if (a === "" || a === n.name) {
1528
1528
  b(
1529
- (w) => w.map((E) => (E.key === n.key && (E.isEditing = !1), E))
1529
+ (w) => w.map((P) => (P.key === n.key && (P.isEditing = !1), P))
1530
1530
  ), s.close();
1531
1531
  return;
1532
1532
  } else if (A.some((w) => w.name === a)) {
1533
- f(!0), v(`This destination already contains a folder named '${a}'.`), x.setIsClicked(!1);
1533
+ f(!0), p(`This destination already contains a folder named '${a}'.`), x.setIsClicked(!1);
1534
1534
  return;
1535
1535
  } else if (!n.isDirectory && !y) {
1536
- const w = Le(n.name), E = Le(a);
1537
- if (w !== E) {
1536
+ const w = Ne(n.name), P = Ne(a);
1537
+ if (w !== P) {
1538
1538
  u(!0);
1539
1539
  return;
1540
1540
  }
1541
1541
  }
1542
- f(!1), Se(r, "onRename", n, a), b((w) => w.filter((E) => E.key !== n.key)), s.close();
1542
+ f(!1), Se(r, "onRename", n, a), b((w) => w.filter((P) => P.key !== n.key)), s.close();
1543
1543
  }
1544
- const O = () => {
1545
- var y, w, E, _, k, D;
1544
+ const k = () => {
1545
+ var y, w, P, _, O, I;
1546
1546
  if ((w = (y = x.ref) == null ? void 0 : y.current) == null || w.focus(), n.isDirectory)
1547
- (_ = (E = x.ref) == null ? void 0 : E.current) == null || _.select();
1547
+ (_ = (P = x.ref) == null ? void 0 : P.current) == null || _.select();
1548
1548
  else {
1549
- const Z = Le(n.name), se = n.name.length - Z.length - 1;
1550
- (D = (k = x.ref) == null ? void 0 : k.current) == null || D.setSelectionRange(0, se);
1549
+ const Z = Ne(n.name), se = n.name.length - Z.length - 1;
1550
+ (I = (O = x.ref) == null ? void 0 : O.current) == null || I.setSelectionRange(0, se);
1551
1551
  }
1552
1552
  };
1553
1553
  return ne(() => {
1554
1554
  var y;
1555
- if (O(), (y = x.ref) != null && y.current) {
1556
- const k = e.current.getBoundingClientRect(), D = x.ref.current, Z = D.getBoundingClientRect();
1557
- k.right - Z.left > 313 ? N("right") : N("left"), k.bottom - (Z.top + D.clientHeight) > 88 ? z("bottom") : z("top");
1555
+ if (k(), (y = x.ref) != null && y.current) {
1556
+ const O = e.current.getBoundingClientRect(), I = x.ref.current, Z = I.getBoundingClientRect();
1557
+ O.right - Z.left > 313 ? L("right") : L("left"), O.bottom - (Z.top + I.clientHeight) > 88 ? z("bottom") : z("top");
1558
1558
  }
1559
1559
  }, []), ne(() => {
1560
- x.isClicked && m(!1), O();
1560
+ x.isClicked && v(!1), k();
1561
1561
  }, [x.isClicked]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1562
1562
  /* @__PURE__ */ t.jsx(
1563
- yn,
1563
+ vn,
1564
1564
  {
1565
1565
  nameInputRef: x.ref,
1566
- maxLength: Mr,
1566
+ maxLength: Pr,
1567
1567
  value: a,
1568
1568
  onChange: (y) => {
1569
- c(y.target.value), f(!1);
1569
+ i(y.target.value), f(!1);
1570
1570
  },
1571
1571
  onKeyDown: l,
1572
1572
  onClick: (y) => y.stopPropagation(),
1573
- ...R === "list" && { rows: 1 }
1573
+ ...M === "list" && { rows: 1 }
1574
1574
  }
1575
1575
  ),
1576
1576
  d && /* @__PURE__ */ t.jsx(
1577
- xn,
1577
+ gn,
1578
1578
  {
1579
1579
  message: h,
1580
- xPlacement: P,
1581
- yPlacement: M
1580
+ xPlacement: E,
1581
+ yPlacement: R
1582
1582
  }
1583
1583
  ),
1584
1584
  /* @__PURE__ */ t.jsx(
1585
- jn,
1585
+ yn,
1586
1586
  {
1587
1587
  heading: "Rename",
1588
- show: i,
1588
+ show: c,
1589
1589
  setShow: u,
1590
1590
  dialogWidth: "25vw",
1591
1591
  closeButton: !1,
1592
1592
  children: /* @__PURE__ */ t.jsxs("div", { className: "fm-rename-folder-container", ref: g, children: [
1593
1593
  /* @__PURE__ */ t.jsx("div", { className: "fm-rename-folder-input", children: /* @__PURE__ */ t.jsxs("div", { className: "fm-rename-warning", children: [
1594
- /* @__PURE__ */ t.jsx(Rr, { size: 70, color: "orange" }),
1594
+ /* @__PURE__ */ t.jsx(Er, { size: 70, color: "orange" }),
1595
1595
  /* @__PURE__ */ t.jsx("div", { children: "If you change a file name extension, the file might become unusable. Are you sure you want to change it?" })
1596
1596
  ] }) }),
1597
1597
  /* @__PURE__ */ t.jsxs("div", { className: "fm-rename-folder-action", children: [
1598
1598
  /* @__PURE__ */ t.jsx(
1599
- Ne,
1599
+ Fe,
1600
1600
  {
1601
1601
  type: "secondary",
1602
1602
  onClick: () => {
@@ -1608,11 +1608,11 @@ const jn = ({
1608
1608
  }
1609
1609
  ),
1610
1610
  /* @__PURE__ */ t.jsx(
1611
- Ne,
1611
+ Fe,
1612
1612
  {
1613
1613
  type: "danger",
1614
1614
  onClick: () => {
1615
- u(!1), m(!0);
1615
+ u(!1), v(!0);
1616
1616
  },
1617
1617
  children: "Yes"
1618
1618
  }
@@ -1622,7 +1622,7 @@ const jn = ({
1622
1622
  }
1623
1623
  )
1624
1624
  ] });
1625
- }, Ze = (e, n = 2) => {
1625
+ }, Je = (e, n = 2) => {
1626
1626
  if (isNaN(e)) return "";
1627
1627
  const r = e / 1024, s = r / 1024, a = s / 1024;
1628
1628
  if (r < 1024)
@@ -1631,44 +1631,44 @@ const jn = ({
1631
1631
  return `${s.toFixed(n)} MB`;
1632
1632
  if (s >= 1024)
1633
1633
  return `${a.toFixed(n)} GB`;
1634
- }, Sr = (e) => {
1634
+ }, Mr = (e) => {
1635
1635
  if (!e || isNaN(Date.parse(e))) return "";
1636
1636
  e = new Date(e);
1637
1637
  let n = e.getHours();
1638
1638
  const r = e.getMinutes(), s = n >= 12 ? "PM" : "AM";
1639
1639
  n = n % 12, n = n || 12;
1640
- const a = e.getMonth() + 1, c = e.getDate(), i = e.getFullYear();
1641
- return `${a}/${c}/${i} ${n}:${r < 10 ? "0" + r : r} ${s}`;
1642
- }, Cn = ({ name: e, id: n, checked: r, onClick: s, onChange: a, className: c = "", title: i, disabled: u = !1 }) => /* @__PURE__ */ t.jsx(
1640
+ const a = e.getMonth() + 1, i = e.getDate(), c = e.getFullYear();
1641
+ return `${a}/${i}/${c} ${n}:${r < 10 ? "0" + r : r} ${s}`;
1642
+ }, xn = ({ name: e, id: n, checked: r, onClick: s, onChange: a, className: i = "", title: c, disabled: u = !1 }) => /* @__PURE__ */ t.jsx(
1643
1643
  "input",
1644
1644
  {
1645
- className: `fm-checkbox ${c}`,
1645
+ className: `fm-checkbox ${i}`,
1646
1646
  type: "checkbox",
1647
1647
  name: e,
1648
1648
  id: n,
1649
1649
  checked: r,
1650
1650
  onClick: s,
1651
1651
  onChange: a,
1652
- title: i,
1652
+ title: c,
1653
1653
  disabled: u
1654
1654
  }
1655
- ), tt = 50, Fr = ({
1655
+ ), et = 50, Tr = ({
1656
1656
  index: e,
1657
1657
  file: n,
1658
1658
  onCreateFolder: r,
1659
1659
  onRename: s,
1660
1660
  enableFilePreview: a,
1661
- onFileOpen: c,
1662
- filesViewRef: i,
1661
+ onFileOpen: i,
1662
+ filesViewRef: c,
1663
1663
  selectedFileIndexes: u,
1664
1664
  triggerAction: d,
1665
1665
  handleContextMenu: f,
1666
1666
  setLastSelectedFile: h
1667
1667
  }) => {
1668
- var ae, j, de, ye;
1669
- const [v, P] = T(!1), [N, M] = T(0), [z, A] = T("hidden"), [b, R] = T(""), [g, x] = T(null), { activeLayout: l } = Me(), m = l === "grid" ? 48 : 20, O = Ke(m), { setCurrentPath: y, currentPathFiles: w } = xe(), { setSelectedFiles: E } = Pe(), { clipBoard: _, handleCutCopy: k, setClipBoard: D, handlePasting: Z } = Je(), se = ie(null), re = Ke(tt), G = (_ == null ? void 0 : _.isMoving) && _.files.find((V) => V.name === n.name && V.path === n.path), ce = () => {
1670
- c(n), n.isDirectory ? (y(n.path), E([])) : a && d.show("previewFile");
1671
- }, le = (V, fe) => {
1668
+ var ae, j, ue, ye;
1669
+ const [p, E] = T(!1), [L, R] = T(0), [z, A] = T("hidden"), [b, M] = T(""), [g, x] = T(null), { activeLayout: l } = Me(), v = l === "grid" ? 48 : 20, k = Ke(v), { setCurrentPath: y, currentPathFiles: w } = xe(), { setSelectedFiles: P } = Pe(), { clipBoard: _, handleCutCopy: O, setClipBoard: I, handlePasting: Z } = Ge(), se = ie(null), re = Ke(et), G = (_ == null ? void 0 : _.isMoving) && _.files.find((V) => V.name === n.name && V.path === n.path), he = () => {
1670
+ i(n), n.isDirectory ? (y(n.path), P([])) : a && d.show("previewFile");
1671
+ }, ce = (V, de) => {
1672
1672
  if (u.length > 0 && V) {
1673
1673
  let ge = !1, je = u[0], Ce = e;
1674
1674
  if (je >= Ce) {
@@ -1676,55 +1676,55 @@ const jn = ({
1676
1676
  je = Ce, Ce = o, ge = !0;
1677
1677
  }
1678
1678
  const ke = w.slice(je, Ce + 1);
1679
- E(ge ? ke.reverse() : ke);
1680
- } else u.length > 0 && fe ? E((ge) => {
1679
+ P(ge ? ke.reverse() : ke);
1680
+ } else u.length > 0 && de ? P((ge) => {
1681
1681
  const je = ge.filter((Ce) => Ce.path !== n.path);
1682
1682
  return ge.length === je.length ? [...ge, n] : je;
1683
- }) : E([n]);
1684
- }, p = (V) => {
1683
+ }) : P([n]);
1684
+ }, m = (V) => {
1685
1685
  if (V.stopPropagation(), n.isEditing) return;
1686
- le(V.shiftKey, V.ctrlKey);
1687
- const fe = (/* @__PURE__ */ new Date()).getTime();
1688
- if (fe - N < 300) {
1689
- ce();
1686
+ ce(V.shiftKey, V.ctrlKey);
1687
+ const de = (/* @__PURE__ */ new Date()).getTime();
1688
+ if (de - L < 300) {
1689
+ he();
1690
1690
  return;
1691
1691
  }
1692
- M(fe);
1692
+ R(de);
1693
1693
  }, C = (V) => {
1694
- V.key === "Enter" && (V.stopPropagation(), E([n]), ce());
1694
+ V.key === "Enter" && (V.stopPropagation(), P([n]), he());
1695
1695
  }, W = (V) => {
1696
- V.stopPropagation(), V.preventDefault(), !n.isEditing && (v || E([n]), h(n), f(V, !0));
1696
+ V.stopPropagation(), V.preventDefault(), !n.isEditing && (p || P([n]), h(n), f(V, !0));
1697
1697
  }, B = () => {
1698
1698
  A("visible");
1699
1699
  }, $ = () => {
1700
- !v && A("hidden");
1700
+ !p && A("hidden");
1701
1701
  }, U = (V) => {
1702
- V.target.checked ? E((fe) => [...fe, n]) : E((fe) => fe.filter((ge) => ge.name !== n.name && ge.path !== n.path)), P(V.target.checked);
1702
+ V.target.checked ? P((de) => [...de, n]) : P((de) => de.filter((ge) => ge.name !== n.name && ge.path !== n.path)), E(V.target.checked);
1703
1703
  }, S = (V) => {
1704
- V.dataTransfer.setDragImage(se.current, 30, 50), V.dataTransfer.effectAllowed = "copy", k(!0);
1705
- }, I = () => D(null), q = (V) => {
1706
- V.preventDefault(), v || !n.isDirectory ? V.dataTransfer.dropEffect = "none" : (x({ x: V.clientX, y: V.clientY + 12 }), V.dataTransfer.dropEffect = "copy", R("file-drop-zone"));
1704
+ V.dataTransfer.setDragImage(se.current, 30, 50), V.dataTransfer.effectAllowed = "copy", O(!0);
1705
+ }, D = () => I(null), q = (V) => {
1706
+ V.preventDefault(), p || !n.isDirectory ? V.dataTransfer.dropEffect = "none" : (x({ x: V.clientX, y: V.clientY + 12 }), V.dataTransfer.dropEffect = "copy", M("file-drop-zone"));
1707
1707
  }, J = (V) => {
1708
- V.currentTarget.contains(V.relatedTarget) || (R((fe) => fe && ""), x(null));
1708
+ V.currentTarget.contains(V.relatedTarget) || (M((de) => de && ""), x(null));
1709
1709
  }, K = (V) => {
1710
- V.preventDefault(), !(v || !n.isDirectory) && (Z(n), R((fe) => fe && ""), x(null));
1710
+ V.preventDefault(), !(p || !n.isDirectory) && (Z(n), M((de) => de && ""), x(null));
1711
1711
  };
1712
1712
  return ne(() => {
1713
- P(u.includes(e)), A(u.includes(e) ? "visible" : "hidden");
1713
+ E(u.includes(e)), A(u.includes(e) ? "visible" : "hidden");
1714
1714
  }, [u]), /* @__PURE__ */ t.jsxs(
1715
1715
  "div",
1716
1716
  {
1717
- className: `file-item-container ${b} ${v || n.isEditing ? "file-selected" : ""} ${G ? "file-moving" : ""}`,
1717
+ className: `file-item-container ${b} ${p || n.isEditing ? "file-selected" : ""} ${G ? "file-moving" : ""}`,
1718
1718
  tabIndex: 0,
1719
1719
  title: n.name,
1720
- onClick: p,
1720
+ onClick: m,
1721
1721
  onKeyDown: C,
1722
1722
  onContextMenu: W,
1723
1723
  onMouseOver: B,
1724
1724
  onMouseLeave: $,
1725
- draggable: v,
1725
+ draggable: p,
1726
1726
  onDragStart: S,
1727
- onDragEnd: I,
1727
+ onDragEnd: D,
1728
1728
  onDragEnter: q,
1729
1729
  onDragOver: q,
1730
1730
  onDragLeave: J,
@@ -1732,29 +1732,29 @@ const jn = ({
1732
1732
  children: [
1733
1733
  /* @__PURE__ */ t.jsxs("div", { className: "file-item", children: [
1734
1734
  !n.isEditing && /* @__PURE__ */ t.jsx(
1735
- Cn,
1735
+ xn,
1736
1736
  {
1737
1737
  name: n.name,
1738
1738
  id: n.name,
1739
- checked: v,
1739
+ checked: p,
1740
1740
  className: `selection-checkbox ${z}`,
1741
1741
  onChange: U,
1742
1742
  onClick: (V) => V.stopPropagation()
1743
1743
  }
1744
1744
  ),
1745
- n.isDirectory ? /* @__PURE__ */ t.jsx(Mt, { size: m }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: O[(j = (ae = n.name) == null ? void 0 : ae.split(".").pop()) == null ? void 0 : j.toLowerCase()] ?? /* @__PURE__ */ t.jsx(Ue, { size: m }) }),
1745
+ n.isDirectory ? /* @__PURE__ */ t.jsx(Pt, { size: v }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: k[(j = (ae = n.name) == null ? void 0 : ae.split(".").pop()) == null ? void 0 : j.toLowerCase()] ?? /* @__PURE__ */ t.jsx(Ue, { size: v }) }),
1746
1746
  n.isEditing ? /* @__PURE__ */ t.jsx("div", { className: `rename-file-container ${l}`, children: d.actionType === "createFolder" ? /* @__PURE__ */ t.jsx(
1747
- Pr,
1747
+ wr,
1748
1748
  {
1749
- filesViewRef: i,
1749
+ filesViewRef: c,
1750
1750
  file: n,
1751
1751
  onCreateFolder: r,
1752
1752
  triggerAction: d
1753
1753
  }
1754
1754
  ) : /* @__PURE__ */ t.jsx(
1755
- Tr,
1755
+ Rr,
1756
1756
  {
1757
- filesViewRef: i,
1757
+ filesViewRef: c,
1758
1758
  file: n,
1759
1759
  onRename: s,
1760
1760
  triggerAction: d
@@ -1762,8 +1762,8 @@ const jn = ({
1762
1762
  ) }) : /* @__PURE__ */ t.jsx("span", { className: "text-truncate file-name", children: n.name })
1763
1763
  ] }),
1764
1764
  l === "list" && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1765
- /* @__PURE__ */ t.jsx("div", { className: "modified-date", children: Sr(n.updatedAt) }),
1766
- /* @__PURE__ */ t.jsx("div", { className: "size", children: (n == null ? void 0 : n.size) > 0 ? Ze(n == null ? void 0 : n.size) : "" })
1765
+ /* @__PURE__ */ t.jsx("div", { className: "modified-date", children: Mr(n.updatedAt) }),
1766
+ /* @__PURE__ */ t.jsx("div", { className: "size", children: (n == null ? void 0 : n.size) > 0 ? Je(n == null ? void 0 : n.size) : "" })
1767
1767
  ] }),
1768
1768
  g && /* @__PURE__ */ t.jsxs(
1769
1769
  "div",
@@ -1779,25 +1779,25 @@ const jn = ({
1779
1779
  ]
1780
1780
  }
1781
1781
  ),
1782
- /* @__PURE__ */ t.jsx("div", { ref: se, className: "drag-icon", children: n.isDirectory ? /* @__PURE__ */ t.jsx(Mt, { size: tt }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: re[(ye = (de = n.name) == null ? void 0 : de.split(".").pop()) == null ? void 0 : ye.toLowerCase()] ?? /* @__PURE__ */ t.jsx(Ue, { size: tt }) }) })
1782
+ /* @__PURE__ */ t.jsx("div", { ref: se, className: "drag-icon", children: n.isDirectory ? /* @__PURE__ */ t.jsx(Pt, { size: et }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: re[(ye = (ue = n.name) == null ? void 0 : ue.split(".").pop()) == null ? void 0 : ye.toLowerCase()] ?? /* @__PURE__ */ t.jsx(Ue, { size: et }) }) })
1783
1783
  ]
1784
1784
  }
1785
1785
  );
1786
- }, Lr = ({ subMenuRef: e, list: n, position: r = "right" }) => /* @__PURE__ */ t.jsx("ul", { ref: e, className: `sub-menu ${r}`, children: n == null ? void 0 : n.map((s) => /* @__PURE__ */ t.jsxs("li", { onClick: s.onClick, children: [
1787
- /* @__PURE__ */ t.jsx("span", { className: "item-selected", children: s.selected && /* @__PURE__ */ t.jsx(on, { size: 13 }) }),
1786
+ }, Sr = ({ subMenuRef: e, list: n, position: r = "right" }) => /* @__PURE__ */ t.jsx("ul", { ref: e, className: `sub-menu ${r}`, children: n == null ? void 0 : n.map((s) => /* @__PURE__ */ t.jsxs("li", { onClick: s.onClick, children: [
1787
+ /* @__PURE__ */ t.jsx("span", { className: "item-selected", children: s.selected && /* @__PURE__ */ t.jsx(rn, { size: 13 }) }),
1788
1788
  s.icon,
1789
1789
  /* @__PURE__ */ t.jsx("span", { children: s.title })
1790
- ] }, s.title)) }), Nr = ({ filesViewRef: e, contextMenuRef: n, menuItems: r, visible: s, clickPosition: a }) => {
1791
- const [c, i] = T(0), [u, d] = T(0), [f, h] = T(null), [v, P] = T("right"), N = ie(null), M = () => {
1792
- const { clickX: b, clickY: R } = a, g = e.current, x = g.getBoundingClientRect(), l = g.offsetWidth - g.clientWidth, m = n.current.getBoundingClientRect(), O = m.width, y = m.height, w = b - x.left, E = x.width - (w + l) > O, _ = !E, k = R - x.top, D = x.height - k > y, Z = !D;
1793
- E ? (i(`${w}px`), P("right")) : _ && (i(`${w - O}px`), P("left")), D ? d(`${k + g.scrollTop}px`) : Z && d(`${k + g.scrollTop - y}px`);
1790
+ ] }, s.title)) }), Lr = ({ filesViewRef: e, contextMenuRef: n, menuItems: r, visible: s, clickPosition: a }) => {
1791
+ const [i, c] = T(0), [u, d] = T(0), [f, h] = T(null), [p, E] = T("right"), L = ie(null), R = () => {
1792
+ const { clickX: b, clickY: M } = a, g = e.current, x = g.getBoundingClientRect(), l = g.offsetWidth - g.clientWidth, v = n.current.getBoundingClientRect(), k = v.width, y = v.height, w = b - x.left, P = x.width - (w + l) > k, _ = !P, O = M - x.top, I = x.height - O > y, Z = !I;
1793
+ P ? (c(`${w}px`), E("right")) : _ && (c(`${w - k}px`), E("left")), I ? d(`${O + g.scrollTop}px`) : Z && d(`${O + g.scrollTop - y}px`);
1794
1794
  }, z = (b) => {
1795
1795
  b.preventDefault(), b.stopPropagation();
1796
1796
  }, A = (b) => {
1797
1797
  h(b);
1798
1798
  };
1799
1799
  if (ne(() => {
1800
- s && n.current ? M() : (d(0), i(0), h(null));
1800
+ s && n.current ? R() : (d(0), c(0), h(null));
1801
1801
  }, [s]), s)
1802
1802
  return /* @__PURE__ */ t.jsx(
1803
1803
  "div",
@@ -1808,28 +1808,28 @@ const jn = ({
1808
1808
  className: `fm-context-menu ${u ? "visible" : "hidden"}`,
1809
1809
  style: {
1810
1810
  top: u,
1811
- left: c
1811
+ left: i
1812
1812
  },
1813
- children: /* @__PURE__ */ t.jsx("div", { className: "file-context-menu-list", children: /* @__PURE__ */ t.jsx("ul", { children: r.filter((b) => !b.hidden).map((b, R) => {
1814
- const g = b.hasOwnProperty("children"), x = f === R && g;
1813
+ children: /* @__PURE__ */ t.jsx("div", { className: "file-context-menu-list", children: /* @__PURE__ */ t.jsx("ul", { children: r.filter((b) => !b.hidden).map((b, M) => {
1814
+ const g = b.hasOwnProperty("children"), x = f === M && g;
1815
1815
  return /* @__PURE__ */ t.jsxs("div", { children: [
1816
1816
  /* @__PURE__ */ t.jsxs(
1817
1817
  "li",
1818
1818
  {
1819
1819
  onClick: b.onClick,
1820
1820
  className: `${b.className ?? ""} ${x ? "active" : ""}`,
1821
- onMouseOver: () => A(R),
1821
+ onMouseOver: () => A(M),
1822
1822
  children: [
1823
1823
  b.icon,
1824
1824
  /* @__PURE__ */ t.jsx("span", { children: b.title }),
1825
1825
  g && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1826
- /* @__PURE__ */ t.jsx(Yn, { size: 14, className: "list-expand-icon" }),
1826
+ /* @__PURE__ */ t.jsx(Wn, { size: 14, className: "list-expand-icon" }),
1827
1827
  x && /* @__PURE__ */ t.jsx(
1828
- Lr,
1828
+ Sr,
1829
1829
  {
1830
- subMenuRef: N,
1830
+ subMenuRef: L,
1831
1831
  list: b.children,
1832
- position: v
1832
+ position: p
1833
1833
  }
1834
1834
  )
1835
1835
  ] })
@@ -1842,43 +1842,43 @@ const jn = ({
1842
1842
  }
1843
1843
  );
1844
1844
  };
1845
- function kr(e) {
1845
+ function Nr(e) {
1846
1846
  return H({ tag: "svg", 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);
1847
1847
  }
1848
- const Or = (e, n, r) => {
1849
- const [s, a] = T([]), [c, i] = T(!1), [u, d] = T(!1), [f, h] = T({ clickX: 0, clickY: 0 }), [v, P] = T(null), { clipBoard: N, setClipBoard: M, handleCutCopy: z, handlePasting: A } = Je(), { selectedFiles: b, setSelectedFiles: R, handleDownload: g } = Pe(), { currentPath: x, setCurrentPath: l, currentPathFiles: m, setCurrentPathFiles: O } = xe(), { activeLayout: y, setActiveLayout: w } = Me(), E = () => {
1850
- v.isDirectory ? (l(v.path), a([]), R([])) : n && r.show("previewFile"), i(!1);
1848
+ const Fr = (e, n, r) => {
1849
+ const [s, a] = T([]), [i, c] = T(!1), [u, d] = T(!1), [f, h] = T({ clickX: 0, clickY: 0 }), [p, E] = T(null), { clipBoard: L, setClipBoard: R, handleCutCopy: z, handlePasting: A } = Ge(), { selectedFiles: b, setSelectedFiles: M, handleDownload: g } = Pe(), { currentPath: x, setCurrentPath: l, currentPathFiles: v, setCurrentPathFiles: k } = xe(), { activeLayout: y, setActiveLayout: w } = Me(), P = () => {
1850
+ p.isDirectory ? (l(p.path), a([]), M([])) : n && r.show("previewFile"), c(!1);
1851
1851
  }, _ = (S) => {
1852
- z(S), i(!1);
1853
- }, k = () => {
1854
- A(v), i(!1);
1855
- }, D = () => {
1856
- i(!1), r.show("rename");
1852
+ z(S), c(!1);
1853
+ }, O = () => {
1854
+ A(p), c(!1);
1855
+ }, I = () => {
1856
+ c(!1), r.show("rename");
1857
1857
  }, Z = () => {
1858
- g(), i(!1);
1858
+ g(), c(!1);
1859
1859
  }, se = () => {
1860
- i(!1), r.show("delete");
1860
+ c(!1), r.show("delete");
1861
1861
  }, re = () => {
1862
- i(!1), Se(e, "onRefresh"), M(null);
1862
+ c(!1), Se(e, "onRefresh"), R(null);
1863
1863
  }, G = () => {
1864
- r.show("createFolder"), i(!1);
1864
+ r.show("createFolder"), c(!1);
1865
+ }, he = () => {
1866
+ c(!1), r.show("uploadFile");
1865
1867
  }, ce = () => {
1866
- i(!1), r.show("uploadFile");
1867
- }, le = () => {
1868
- R(m), i(!1);
1869
- }, p = [
1868
+ M(v), c(!1);
1869
+ }, m = [
1870
1870
  {
1871
1871
  title: "View",
1872
- icon: y === "grid" ? /* @__PURE__ */ t.jsx(Ct, { size: 18 }) : /* @__PURE__ */ t.jsx(Ye, { size: 18 }),
1872
+ icon: y === "grid" ? /* @__PURE__ */ t.jsx(xt, { size: 18 }) : /* @__PURE__ */ t.jsx(Ye, { size: 18 }),
1873
1873
  onClick: () => {
1874
1874
  },
1875
1875
  children: [
1876
1876
  {
1877
1877
  title: "Grid",
1878
- icon: /* @__PURE__ */ t.jsx(Ct, { size: 18 }),
1878
+ icon: /* @__PURE__ */ t.jsx(xt, { size: 18 }),
1879
1879
  selected: y === "grid",
1880
1880
  onClick: () => {
1881
- w("grid"), i(!1);
1881
+ w("grid"), c(!1);
1882
1882
  }
1883
1883
  },
1884
1884
  {
@@ -1886,81 +1886,81 @@ const Or = (e, n, r) => {
1886
1886
  icon: /* @__PURE__ */ t.jsx(Ye, { size: 18 }),
1887
1887
  selected: y === "list",
1888
1888
  onClick: () => {
1889
- w("list"), i(!1);
1889
+ w("list"), c(!1);
1890
1890
  }
1891
1891
  }
1892
1892
  ]
1893
1893
  },
1894
1894
  {
1895
1895
  title: "Refresh",
1896
- icon: /* @__PURE__ */ t.jsx(tn, { size: 18 }),
1896
+ icon: /* @__PURE__ */ t.jsx(Qt, { size: 18 }),
1897
1897
  onClick: re,
1898
1898
  divider: !0
1899
1899
  },
1900
1900
  {
1901
1901
  title: "New folder",
1902
- icon: /* @__PURE__ */ t.jsx(Zt, { size: 18 }),
1902
+ icon: /* @__PURE__ */ t.jsx(Gt, { size: 18 }),
1903
1903
  onClick: G
1904
1904
  },
1905
1905
  {
1906
1906
  title: "Upload",
1907
- icon: /* @__PURE__ */ t.jsx(rn, { size: 18 }),
1908
- onClick: ce,
1907
+ icon: /* @__PURE__ */ t.jsx(tn, { size: 18 }),
1908
+ onClick: he,
1909
1909
  divider: !0
1910
1910
  },
1911
1911
  {
1912
1912
  title: "Select all",
1913
- icon: /* @__PURE__ */ t.jsx(Vn, { size: 18 }),
1914
- onClick: le
1913
+ icon: /* @__PURE__ */ t.jsx(Hn, { size: 18 }),
1914
+ onClick: ce
1915
1915
  }
1916
1916
  ], C = [
1917
1917
  {
1918
1918
  title: "Open",
1919
- icon: v != null && v.isDirectory ? /* @__PURE__ */ t.jsx(kr, { size: 20 }) : /* @__PURE__ */ t.jsx(Ue, { size: 16 }),
1920
- onClick: E,
1919
+ icon: p != null && p.isDirectory ? /* @__PURE__ */ t.jsx(Nr, { size: 20 }) : /* @__PURE__ */ t.jsx(Ue, { size: 16 }),
1920
+ onClick: P,
1921
1921
  divider: !0
1922
1922
  },
1923
1923
  {
1924
1924
  title: "Cut",
1925
- icon: /* @__PURE__ */ t.jsx(en, { size: 19 }),
1925
+ icon: /* @__PURE__ */ t.jsx(Zt, { size: 19 }),
1926
1926
  onClick: () => _(!0)
1927
1927
  },
1928
1928
  {
1929
1929
  title: "Copy",
1930
- icon: /* @__PURE__ */ t.jsx(Jt, { strokeWidth: 0.1, size: 17 }),
1930
+ icon: /* @__PURE__ */ t.jsx(Xt, { strokeWidth: 0.1, size: 17 }),
1931
1931
  onClick: () => _(!1),
1932
- divider: !(v != null && v.isDirectory)
1932
+ divider: !(p != null && p.isDirectory)
1933
1933
  },
1934
1934
  {
1935
1935
  title: "Paste",
1936
1936
  icon: /* @__PURE__ */ t.jsx(lt, { size: 18 }),
1937
- onClick: k,
1938
- className: `${N ? "" : "disable-paste"}`,
1939
- hidden: !(v != null && v.isDirectory),
1937
+ onClick: O,
1938
+ className: `${L ? "" : "disable-paste"}`,
1939
+ hidden: !(p != null && p.isDirectory),
1940
1940
  divider: !0
1941
1941
  },
1942
1942
  {
1943
1943
  title: "Rename",
1944
- icon: /* @__PURE__ */ t.jsx(sn, { size: 19 }),
1945
- onClick: D,
1944
+ icon: /* @__PURE__ */ t.jsx(nn, { size: 19 }),
1945
+ onClick: I,
1946
1946
  hidden: b.length > 1
1947
1947
  },
1948
1948
  {
1949
1949
  title: "Download",
1950
- icon: /* @__PURE__ */ t.jsx(mt, { size: 18 }),
1950
+ icon: /* @__PURE__ */ t.jsx(ht, { size: 18 }),
1951
1951
  onClick: Z,
1952
- hidden: v == null ? void 0 : v.isDirectory
1952
+ hidden: p == null ? void 0 : p.isDirectory
1953
1953
  },
1954
1954
  {
1955
1955
  title: "Delete",
1956
- icon: /* @__PURE__ */ t.jsx(nn, { size: 19 }),
1956
+ icon: /* @__PURE__ */ t.jsx(en, { size: 19 }),
1957
1957
  onClick: se
1958
1958
  }
1959
1959
  ], W = () => {
1960
- O((S) => [
1960
+ k((S) => [
1961
1961
  ...S,
1962
1962
  {
1963
- name: gn("New Folder", !0, S),
1963
+ name: mn("New Folder", !0, S),
1964
1964
  isDirectory: !0,
1965
1965
  path: x,
1966
1966
  isEditing: !0,
@@ -1968,11 +1968,11 @@ const Or = (e, n, r) => {
1968
1968
  }
1969
1969
  ]);
1970
1970
  }, B = () => {
1971
- O((S) => (S[s.at(-1)] && (S[s.at(-1)].isEditing = !0), S)), a([]), R([]);
1971
+ k((S) => (S[s.at(-1)] && (S[s.at(-1)].isEditing = !0), S)), a([]), M([]);
1972
1972
  }, $ = () => {
1973
- a([]), R((S) => S.length > 0 ? [] : S);
1974
- }, U = (S, I = !1) => {
1975
- S.preventDefault(), h({ clickX: S.clientX, clickY: S.clientY }), d(I), !I && $(), i(!0);
1973
+ a([]), M((S) => S.length > 0 ? [] : S);
1974
+ }, U = (S, D = !1) => {
1975
+ S.preventDefault(), h({ clickX: S.clientX, clickY: S.clientY }), d(D), !D && $(), c(!0);
1976
1976
  };
1977
1977
  return ne(() => {
1978
1978
  if (r.isActive)
@@ -1985,24 +1985,24 @@ const Or = (e, n, r) => {
1985
1985
  break;
1986
1986
  }
1987
1987
  }, [r.isActive]), ne(() => {
1988
- a([]), R([]);
1988
+ a([]), M([]);
1989
1989
  }, [x]), ne(() => {
1990
- b.length > 0 ? a(() => b.map((S) => m.findIndex((I) => I.path === S.path))) : a([]);
1991
- }, [b, m]), {
1992
- emptySelecCtxItems: p,
1990
+ b.length > 0 ? a(() => b.map((S) => v.findIndex((D) => D.path === S.path))) : a([]);
1991
+ }, [b, v]), {
1992
+ emptySelecCtxItems: m,
1993
1993
  selecCtxItems: C,
1994
1994
  handleContextMenu: U,
1995
1995
  unselectFiles: $,
1996
- visible: c,
1997
- setVisible: i,
1998
- setLastSelectedFile: P,
1996
+ visible: i,
1997
+ setVisible: c,
1998
+ setLastSelectedFile: E,
1999
1999
  selectedFileIndexes: s,
2000
2000
  clickPosition: f,
2001
2001
  isSelectionCtx: u
2002
2002
  };
2003
- }, zr = ({ unselectFiles: e }) => {
2004
- const [n, r] = T(!1), { selectedFiles: s, setSelectedFiles: a } = Pe(), { currentPathFiles: c } = xe(), i = ht(() => c.length > 0 && s.length === c.length, [s, c]), u = (d) => {
2005
- d.target.checked ? (a(c), r(!0)) : e();
2003
+ }, kr = ({ unselectFiles: e }) => {
2004
+ const [n, r] = T(!1), { selectedFiles: s, setSelectedFiles: a } = Pe(), { currentPathFiles: i } = xe(), c = dt(() => i.length > 0 && s.length === i.length, [s, i]), u = (d) => {
2005
+ d.target.checked ? (a(i), r(!0)) : e();
2006
2006
  };
2007
2007
  return /* @__PURE__ */ t.jsxs(
2008
2008
  "div",
@@ -2011,44 +2011,44 @@ const Or = (e, n, r) => {
2011
2011
  onMouseOver: () => r(!0),
2012
2012
  onMouseLeave: () => r(!1),
2013
2013
  children: [
2014
- /* @__PURE__ */ t.jsx("div", { className: "file-select-all", children: (n || i) && /* @__PURE__ */ t.jsx(Cn, { checked: i, onChange: u, title: "Select all", disabled: c.length === 0 }) }),
2014
+ /* @__PURE__ */ t.jsx("div", { className: "file-select-all", children: (n || c) && /* @__PURE__ */ t.jsx(xn, { checked: c, onChange: u, title: "Select all", disabled: i.length === 0 }) }),
2015
2015
  /* @__PURE__ */ t.jsx("div", { className: "file-name", children: "Name" }),
2016
2016
  /* @__PURE__ */ t.jsx("div", { className: "file-date", children: "Modified" }),
2017
2017
  /* @__PURE__ */ t.jsx("div", { className: "file-size", children: "Size" })
2018
2018
  ]
2019
2019
  }
2020
2020
  );
2021
- }, bn = ({
2021
+ }, jn = ({
2022
2022
  onCreateFolder: e,
2023
2023
  onRename: n,
2024
2024
  onFileOpen: r,
2025
2025
  onRefresh: s,
2026
2026
  enableFilePreview: a,
2027
- triggerAction: c
2027
+ triggerAction: i
2028
2028
  }) => {
2029
- const { currentPathFiles: i } = xe(), u = ie(null), { activeLayout: d } = Me(), {
2029
+ const { currentPathFiles: c } = xe(), u = ie(null), { activeLayout: d } = Me(), {
2030
2030
  emptySelecCtxItems: f,
2031
2031
  selecCtxItems: h,
2032
- handleContextMenu: v,
2033
- unselectFiles: P,
2034
- visible: N,
2035
- setVisible: M,
2032
+ handleContextMenu: p,
2033
+ unselectFiles: E,
2034
+ visible: L,
2035
+ setVisible: R,
2036
2036
  setLastSelectedFile: z,
2037
2037
  selectedFileIndexes: A,
2038
2038
  clickPosition: b,
2039
- isSelectionCtx: R
2040
- } = Or(s, a, c), g = Ie(() => M(!1));
2039
+ isSelectionCtx: M
2040
+ } = Fr(s, a, i), g = De(() => R(!1));
2041
2041
  return /* @__PURE__ */ t.jsxs(
2042
2042
  "div",
2043
2043
  {
2044
2044
  ref: u,
2045
2045
  className: `files ${d}`,
2046
- onContextMenu: v,
2047
- onClick: P,
2046
+ onContextMenu: p,
2047
+ onClick: E,
2048
2048
  children: [
2049
- d === "list" && /* @__PURE__ */ t.jsx(zr, { unselectFiles: P }),
2050
- (i == null ? void 0 : i.length) > 0 ? /* @__PURE__ */ t.jsx(t.Fragment, { children: i.map((x, l) => /* @__PURE__ */ t.jsx(
2051
- Fr,
2049
+ d === "list" && /* @__PURE__ */ t.jsx(kr, { unselectFiles: E }),
2050
+ (c == null ? void 0 : c.length) > 0 ? /* @__PURE__ */ t.jsx(t.Fragment, { children: c.map((x, l) => /* @__PURE__ */ t.jsx(
2051
+ Tr,
2052
2052
  {
2053
2053
  index: l,
2054
2054
  file: x,
@@ -2056,23 +2056,23 @@ const Or = (e, n, r) => {
2056
2056
  onRename: n,
2057
2057
  onFileOpen: r,
2058
2058
  enableFilePreview: a,
2059
- triggerAction: c,
2059
+ triggerAction: i,
2060
2060
  filesViewRef: u,
2061
2061
  selectedFileIndexes: A,
2062
- handleContextMenu: v,
2063
- setVisible: M,
2062
+ handleContextMenu: p,
2063
+ setVisible: R,
2064
2064
  setLastSelectedFile: z
2065
2065
  },
2066
2066
  l
2067
2067
  )) }) : /* @__PURE__ */ t.jsx("div", { className: "empty-folder", children: "This folder is empty." }),
2068
2068
  /* @__PURE__ */ t.jsx(
2069
- Nr,
2069
+ Lr,
2070
2070
  {
2071
2071
  filesViewRef: u,
2072
2072
  contextMenuRef: g.ref,
2073
- menuItems: R ? h : f,
2074
- visible: N,
2075
- setVisible: M,
2073
+ menuItems: M ? h : f,
2074
+ visible: L,
2075
+ setVisible: R,
2076
2076
  clickPosition: b
2077
2077
  }
2078
2078
  )
@@ -2080,9 +2080,9 @@ const Or = (e, n, r) => {
2080
2080
  }
2081
2081
  );
2082
2082
  };
2083
- bn.displayName = "FileList";
2084
- const Ar = ({ triggerAction: e, onDelete: n }) => {
2085
- const [r, s] = T(""), { selectedFiles: a, setSelectedFiles: c } = Pe();
2083
+ jn.displayName = "FileList";
2084
+ const Or = ({ triggerAction: e, onDelete: n }) => {
2085
+ const [r, s] = T(""), { selectedFiles: a, setSelectedFiles: i } = Pe();
2086
2086
  ne(() => {
2087
2087
  s(() => {
2088
2088
  if (a.length === 1)
@@ -2091,202 +2091,202 @@ const Ar = ({ triggerAction: e, onDelete: n }) => {
2091
2091
  return `Are you sure you want to delete these ${a.length} items?`;
2092
2092
  });
2093
2093
  }, []);
2094
- const i = () => {
2095
- n(a), c([]), e.close();
2094
+ const c = () => {
2095
+ n(a), i([]), e.close();
2096
2096
  };
2097
2097
  return /* @__PURE__ */ t.jsxs("div", { className: "file-delete-confirm", children: [
2098
2098
  /* @__PURE__ */ t.jsx("p", { className: "file-delete-confirm-text", children: r }),
2099
2099
  /* @__PURE__ */ t.jsxs("div", { className: "file-delete-confirm-actions", children: [
2100
- /* @__PURE__ */ t.jsx(Ne, { type: "secondary", onClick: () => e.close(), children: "Cancel" }),
2101
- /* @__PURE__ */ t.jsx(Ne, { type: "danger", onClick: i, children: "Delete" })
2100
+ /* @__PURE__ */ t.jsx(Fe, { type: "secondary", onClick: () => e.close(), children: "Cancel" }),
2101
+ /* @__PURE__ */ t.jsx(Fe, { type: "danger", onClick: c, children: "Delete" })
2102
2102
  ] })
2103
2103
  ] });
2104
2104
  };
2105
- function _r(e) {
2105
+ function zr(e) {
2106
2106
  return H({ tag: "svg", attr: { viewBox: "0 0 1024 1024", fill: "currentColor", fillRule: "evenodd" }, child: [{ tag: "path", attr: { d: "M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z" }, child: [] }] })(e);
2107
2107
  }
2108
- function $r(e) {
2108
+ function Ar(e) {
2109
2109
  return H({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z" }, child: [] }, { tag: "path", attr: { d: "M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z" }, child: [] }] })(e);
2110
2110
  }
2111
- const Dr = ({ percent: e = 0, isCanceled: n = !1, isCompleted: r = !1, error: s }) => /* @__PURE__ */ t.jsxs("div", { role: "progressbar", className: "fm-progress", children: [
2111
+ const _r = ({ percent: e = 0, isCanceled: n = !1, isCompleted: r = !1, error: s }) => /* @__PURE__ */ t.jsxs("div", { role: "progressbar", className: "fm-progress", children: [
2112
2112
  !s && /* @__PURE__ */ t.jsx("div", { className: "fm-progress-bar", children: /* @__PURE__ */ t.jsx("div", { className: "fm-progress-bar-fill", style: { width: `${e}%` } }) }),
2113
2113
  n ? /* @__PURE__ */ t.jsx("span", { className: "fm-upload-canceled", children: "Canceled" }) : s ? /* @__PURE__ */ t.jsx("span", { className: "fm-upload-canceled", children: s }) : /* @__PURE__ */ t.jsx("div", { className: "fm-progress-status", children: /* @__PURE__ */ t.jsx("span", { children: r ? "Completed" : e + "% done" }) })
2114
2114
  ] });
2115
- function Ir(e) {
2115
+ function $r(e) {
2116
2116
  return H({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 388c-72.597 0-132-59.405-132-132 0-72.601 59.403-132 132-132 36.3 0 69.299 15.4 92.406 39.601L278 234h154V80l-51.698 51.702C348.406 99.798 304.406 80 256 80c-96.797 0-176 79.203-176 176s78.094 176 176 176c81.045 0 148.287-54.134 169.401-128H378.85c-18.745 49.561-67.138 84-122.85 84z" }, child: [] }] })(e);
2117
2117
  }
2118
- const Br = ({
2118
+ const Ir = ({
2119
2119
  index: e,
2120
2120
  fileData: n,
2121
2121
  setFiles: r,
2122
2122
  setIsUploading: s,
2123
2123
  fileUploadConfig: a,
2124
- onFileUploaded: c,
2125
- handleFileRemove: i
2124
+ onFileUploaded: i,
2125
+ handleFileRemove: c
2126
2126
  }) => {
2127
- var m, O, y, w;
2128
- const [u, d] = T(0), [f, h] = T(!1), [v, P] = T(!1), [N, M] = T(!1), z = Ke(33), A = ie(), { onError: b } = Ge(), R = (E) => {
2129
- d(0), s((k) => ({
2130
- ...k,
2127
+ var v, k, y, w;
2128
+ const [u, d] = T(0), [f, h] = T(!1), [p, E] = T(!1), [L, R] = T(!1), z = Ke(33), A = ie(), { onError: b } = Xe(), M = (P) => {
2129
+ d(0), s((O) => ({
2130
+ ...O,
2131
2131
  [e]: !1
2132
2132
  }));
2133
2133
  const _ = {
2134
2134
  type: "upload",
2135
2135
  message: "Upload failed.",
2136
2136
  response: {
2137
- status: E.status,
2138
- statusText: E.statusText,
2139
- data: E.response
2137
+ status: P.status,
2138
+ statusText: P.statusText,
2139
+ data: P.response
2140
2140
  }
2141
2141
  };
2142
2142
  r(
2143
- (k) => k.map((D, Z) => e === Z ? {
2144
- ...D,
2143
+ (O) => O.map((I, Z) => e === Z ? {
2144
+ ...I,
2145
2145
  error: _.message
2146
- } : D)
2147
- ), M(!0), b(_, n.file);
2148
- }, g = (E) => {
2149
- if (!E.error)
2150
- return new Promise((_, k) => {
2151
- const D = new XMLHttpRequest();
2152
- A.current = D, s((G) => ({
2146
+ } : I)
2147
+ ), R(!0), b(_, n.file);
2148
+ }, g = (P) => {
2149
+ if (!P.error)
2150
+ return new Promise((_, O) => {
2151
+ const I = new XMLHttpRequest();
2152
+ A.current = I, s((G) => ({
2153
2153
  ...G,
2154
2154
  [e]: !0
2155
- })), D.upload.onprogress = (G) => {
2155
+ })), I.upload.onprogress = (G) => {
2156
2156
  if (G.lengthComputable) {
2157
- const ce = Math.round(G.loaded / G.total * 100);
2158
- d(ce);
2157
+ const he = Math.round(G.loaded / G.total * 100);
2158
+ d(he);
2159
2159
  }
2160
- }, D.onload = () => {
2160
+ }, I.onload = () => {
2161
2161
  s((G) => ({
2162
2162
  ...G,
2163
2163
  [e]: !1
2164
- })), D.status === 200 || D.status === 201 ? (h(!0), c(D.response), _(D.response)) : (k(D.statusText), R(D));
2165
- }, D.onerror = () => {
2166
- k(D.statusText), R(D);
2167
- }, D.open("POST", a == null ? void 0 : a.url, !0);
2164
+ })), I.status === 200 || I.status === 201 ? (h(!0), i(I.response), _(I.response)) : (O(I.statusText), M(I));
2165
+ }, I.onerror = () => {
2166
+ O(I.statusText), M(I);
2167
+ }, I.open("POST", a == null ? void 0 : a.url, !0);
2168
2168
  const Z = a == null ? void 0 : a.headers;
2169
2169
  for (let G in Z)
2170
- D.setRequestHeader(G, Z[G]);
2171
- const se = new FormData(), re = E == null ? void 0 : E.appendData;
2170
+ I.setRequestHeader(G, Z[G]);
2171
+ const se = new FormData(), re = P == null ? void 0 : P.appendData;
2172
2172
  for (let G in re)
2173
2173
  re[G] && se.append(G, re[G]);
2174
- se.append("file", E.file), D.send(se);
2174
+ se.append("file", P.file), I.send(se);
2175
2175
  });
2176
2176
  };
2177
2177
  ne(() => {
2178
2178
  A.current || g(n);
2179
2179
  }, []);
2180
2180
  const x = () => {
2181
- A.current && (A.current.abort(), s((E) => ({
2182
- ...E,
2181
+ A.current && (A.current.abort(), s((P) => ({
2182
+ ...P,
2183
2183
  [e]: !1
2184
- })), P(!0), d(0));
2184
+ })), E(!0), d(0));
2185
2185
  }, l = () => {
2186
2186
  n != null && n.file && (r(
2187
- (E) => E.map((_, k) => e === k ? {
2187
+ (P) => P.map((_, O) => e === O ? {
2188
2188
  ..._,
2189
2189
  error: !1
2190
2190
  } : _)
2191
- ), g({ ...n, error: !1 }), P(!1), M(!1));
2191
+ ), g({ ...n, error: !1 }), E(!1), R(!1));
2192
2192
  };
2193
2193
  return n.removed ? null : /* @__PURE__ */ t.jsxs("li", { children: [
2194
- /* @__PURE__ */ t.jsx("div", { className: "file-icon", children: z[Le((m = n.file) == null ? void 0 : m.name)] ?? /* @__PURE__ */ t.jsx(Ue, { size: 33 }) }),
2194
+ /* @__PURE__ */ t.jsx("div", { className: "file-icon", children: z[Ne((v = n.file) == null ? void 0 : v.name)] ?? /* @__PURE__ */ t.jsx(Ue, { size: 33 }) }),
2195
2195
  /* @__PURE__ */ t.jsxs("div", { className: "file", children: [
2196
2196
  /* @__PURE__ */ t.jsxs("div", { className: "file-details", children: [
2197
2197
  /* @__PURE__ */ t.jsxs("div", { className: "file-info", children: [
2198
- /* @__PURE__ */ t.jsx("span", { className: "file-name text-truncate", title: (O = n.file) == null ? void 0 : O.name, children: (y = n.file) == null ? void 0 : y.name }),
2199
- /* @__PURE__ */ t.jsx("span", { className: "file-size", children: Ze((w = n.file) == null ? void 0 : w.size) })
2198
+ /* @__PURE__ */ t.jsx("span", { className: "file-name text-truncate", title: (k = n.file) == null ? void 0 : k.name, children: (y = n.file) == null ? void 0 : y.name }),
2199
+ /* @__PURE__ */ t.jsx("span", { className: "file-size", children: Je((w = n.file) == null ? void 0 : w.size) })
2200
2200
  ] }),
2201
- f ? /* @__PURE__ */ t.jsx(Cr, { title: "Uploaded", className: "upload-success" }) : v || N ? /* @__PURE__ */ t.jsx(Ir, { className: "retry-upload", title: "Retry", onClick: l }) : /* @__PURE__ */ t.jsx(
2201
+ f ? /* @__PURE__ */ t.jsx(xr, { title: "Uploaded", className: "upload-success" }) : p || L ? /* @__PURE__ */ t.jsx($r, { className: "retry-upload", title: "Retry", onClick: l }) : /* @__PURE__ */ t.jsx(
2202
2202
  "div",
2203
2203
  {
2204
2204
  className: "rm-file",
2205
2205
  title: `${n.error ? "Remove" : "Abort Upload"}`,
2206
- onClick: n.error ? () => i(e) : x,
2207
- children: /* @__PURE__ */ t.jsx(_r, {})
2206
+ onClick: n.error ? () => c(e) : x,
2207
+ children: /* @__PURE__ */ t.jsx(zr, {})
2208
2208
  }
2209
2209
  )
2210
2210
  ] }),
2211
2211
  /* @__PURE__ */ t.jsx(
2212
- Dr,
2212
+ _r,
2213
2213
  {
2214
2214
  percent: u,
2215
- isCanceled: v,
2215
+ isCanceled: p,
2216
2216
  isCompleted: f,
2217
2217
  error: n.error
2218
2218
  }
2219
2219
  )
2220
2220
  ] })
2221
2221
  ] });
2222
- }, Hr = ({
2222
+ }, Dr = ({
2223
2223
  fileUploadConfig: e,
2224
2224
  maxFileSize: n,
2225
2225
  acceptedFileTypes: r,
2226
2226
  onFileUploading: s,
2227
2227
  onFileUploaded: a
2228
2228
  }) => {
2229
- const [c, i] = T([]), [u, d] = T(!1), [f, h] = T({}), { currentFolder: v, currentPathFiles: P } = xe(), { onError: N } = Ge(), M = ie(null), z = (l) => {
2230
- l.key === "Enter" && M.current.click();
2229
+ const [i, c] = T([]), [u, d] = T(!1), [f, h] = T({}), { currentFolder: p, currentPathFiles: E } = xe(), { onError: L } = Xe(), R = ie(null), z = (l) => {
2230
+ l.key === "Enter" && R.current.click();
2231
2231
  }, A = (l) => {
2232
- if (r && !r.includes(Le(l.name)))
2232
+ if (r && !r.includes(Ne(l.name)))
2233
2233
  return "File type is not allowed.";
2234
- if (P.some(
2234
+ if (E.some(
2235
2235
  (y) => y.name.toLowerCase() === l.name.toLowerCase() && !y.isDirectory
2236
2236
  )) return "File already exists.";
2237
- if (n && l.size > n) return `Maximum upload size is ${Ze(n, 0)}.`;
2237
+ if (n && l.size > n) return `Maximum upload size is ${Je(n, 0)}.`;
2238
2238
  }, b = (l) => {
2239
2239
  if (l = l.filter(
2240
- (m) => !c.some((O) => O.file.name.toLowerCase() === m.name.toLowerCase())
2240
+ (v) => !i.some((k) => k.file.name.toLowerCase() === v.name.toLowerCase())
2241
2241
  ), l.length > 0) {
2242
- const m = l.map((O) => {
2243
- const y = s(O, v), w = A(O);
2244
- return w && N({ type: "upload", message: w }, O), {
2245
- file: O,
2242
+ const v = l.map((k) => {
2243
+ const y = s(k, p), w = A(k);
2244
+ return w && L({ type: "upload", message: w }, k), {
2245
+ file: k,
2246
2246
  appendData: y,
2247
2247
  ...w && { error: w }
2248
2248
  };
2249
2249
  });
2250
- i((O) => [...O, ...m]);
2250
+ c((k) => [...k, ...v]);
2251
2251
  }
2252
- }, R = (l) => {
2252
+ }, M = (l) => {
2253
2253
  l.preventDefault(), d(!1);
2254
- const m = Array.from(l.dataTransfer.files);
2255
- b(m);
2254
+ const v = Array.from(l.dataTransfer.files);
2255
+ b(v);
2256
2256
  }, g = (l) => {
2257
- const m = Array.from(l.target.files);
2258
- b(m);
2257
+ const v = Array.from(l.target.files);
2258
+ b(v);
2259
2259
  }, x = (l) => {
2260
- i((m) => {
2261
- const O = m.map((y, w) => l === w ? {
2260
+ c((v) => {
2261
+ const k = v.map((y, w) => l === w ? {
2262
2262
  ...y,
2263
2263
  removed: !0
2264
2264
  } : y);
2265
- return O.every((y) => !!y.removed) ? [] : O;
2265
+ return k.every((y) => !!y.removed) ? [] : k;
2266
2266
  });
2267
2267
  };
2268
- return /* @__PURE__ */ t.jsxs("div", { className: `fm-upload-file ${c.length > 0 ? "file-selcted" : ""}`, children: [
2268
+ return /* @__PURE__ */ t.jsxs("div", { className: `fm-upload-file ${i.length > 0 ? "file-selcted" : ""}`, children: [
2269
2269
  /* @__PURE__ */ t.jsxs("div", { className: "select-files", children: [
2270
2270
  /* @__PURE__ */ t.jsx(
2271
2271
  "div",
2272
2272
  {
2273
2273
  className: `draggable-file-input ${u ? "dragging" : ""}`,
2274
- onDrop: R,
2274
+ onDrop: M,
2275
2275
  onDragOver: (l) => l.preventDefault(),
2276
2276
  onDragEnter: () => d(!0),
2277
2277
  onDragLeave: () => d(!1),
2278
2278
  children: /* @__PURE__ */ t.jsxs("div", { className: "input-text", children: [
2279
- /* @__PURE__ */ t.jsx($r, { size: 30 }),
2279
+ /* @__PURE__ */ t.jsx(Ar, { size: 30 }),
2280
2280
  /* @__PURE__ */ t.jsx("span", { children: "Drag files to upload" })
2281
2281
  ] })
2282
2282
  }
2283
2283
  ),
2284
- /* @__PURE__ */ t.jsx("div", { className: "btn-choose-file", children: /* @__PURE__ */ t.jsxs(Ne, { padding: "0", onKeyDown: z, children: [
2284
+ /* @__PURE__ */ t.jsx("div", { className: "btn-choose-file", children: /* @__PURE__ */ t.jsxs(Fe, { padding: "0", onKeyDown: z, children: [
2285
2285
  /* @__PURE__ */ t.jsx("label", { htmlFor: "chooseFile", children: "Choose File" }),
2286
2286
  /* @__PURE__ */ t.jsx(
2287
2287
  "input",
2288
2288
  {
2289
- ref: M,
2289
+ ref: R,
2290
2290
  type: "file",
2291
2291
  id: "chooseFile",
2292
2292
  className: "choose-file-input",
@@ -2297,97 +2297,97 @@ const Br = ({
2297
2297
  )
2298
2298
  ] }) })
2299
2299
  ] }),
2300
- c.length > 0 && /* @__PURE__ */ t.jsxs("div", { className: "files-progress", children: [
2300
+ i.length > 0 && /* @__PURE__ */ t.jsxs("div", { className: "files-progress", children: [
2301
2301
  /* @__PURE__ */ t.jsx("div", { className: "heading", children: Object.values(f).some((l) => l) ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2302
2302
  /* @__PURE__ */ t.jsx("h2", { children: "Uploading" }),
2303
- /* @__PURE__ */ t.jsx(pt, { loading: !0, className: "upload-loading" })
2303
+ /* @__PURE__ */ t.jsx(ft, { loading: !0, className: "upload-loading" })
2304
2304
  ] }) : /* @__PURE__ */ t.jsx("h2", { children: "Completed" }) }),
2305
- /* @__PURE__ */ t.jsx("ul", { children: c.map((l, m) => /* @__PURE__ */ t.jsx(
2306
- Br,
2305
+ /* @__PURE__ */ t.jsx("ul", { children: i.map((l, v) => /* @__PURE__ */ t.jsx(
2306
+ Ir,
2307
2307
  {
2308
- index: m,
2308
+ index: v,
2309
2309
  fileData: l,
2310
- setFiles: i,
2310
+ setFiles: c,
2311
2311
  fileUploadConfig: e,
2312
2312
  setIsUploading: h,
2313
2313
  onFileUploaded: a,
2314
2314
  handleFileRemove: x
2315
2315
  },
2316
- m
2316
+ v
2317
2317
  )) })
2318
2318
  ] })
2319
2319
  ] });
2320
- }, Ot = ["jpg", "jpeg", "png"], zt = ["mp4", "mov", "avi"], At = ["mp3", "wav", "m4a"], _t = ["txt", "pdf"], Wr = ({ filePreviewPath: e, filePreviewComponent: n }) => {
2321
- var M;
2322
- const [r, s] = T(!0), [a, c] = T(!1), { selectedFiles: i } = Pe(), u = Ke(73), d = (M = Le(i[0].name)) == null ? void 0 : M.toLowerCase(), f = `${e}${i[0].path}`, h = ht(
2323
- () => n == null ? void 0 : n(i[0]),
2320
+ }, Ft = ["jpg", "jpeg", "png"], kt = ["mp4", "mov", "avi"], Ot = ["mp3", "wav", "m4a"], zt = ["txt", "pdf"], Br = ({ filePreviewPath: e, filePreviewComponent: n }) => {
2321
+ var R;
2322
+ const [r, s] = T(!0), [a, i] = T(!1), { selectedFiles: c } = Pe(), u = Ke(73), d = (R = Ne(c[0].name)) == null ? void 0 : R.toLowerCase(), f = `${e}${c[0].path}`, h = dt(
2323
+ () => n == null ? void 0 : n(c[0]),
2324
2324
  [n]
2325
- ), v = () => {
2326
- s(!1), c(!1);
2327
- }, P = () => {
2328
- s(!1), c(!0);
2329
- }, N = () => {
2325
+ ), p = () => {
2326
+ s(!1), i(!1);
2327
+ }, E = () => {
2328
+ s(!1), i(!0);
2329
+ }, L = () => {
2330
2330
  window.location.href = f;
2331
2331
  };
2332
2332
  return Ee.isValidElement(h) ? h : /* @__PURE__ */ t.jsxs("section", { className: `file-previewer ${d === "pdf" ? "pdf-previewer" : ""}`, children: [
2333
2333
  a || ![
2334
+ ...Ft,
2335
+ ...kt,
2334
2336
  ...Ot,
2335
- ...zt,
2336
- ...At,
2337
- ..._t
2337
+ ...zt
2338
2338
  ].includes(d) && /* @__PURE__ */ t.jsxs("div", { className: "preview-error", children: [
2339
- /* @__PURE__ */ t.jsx("span", { className: "error-icon", children: u[d] ?? /* @__PURE__ */ t.jsx(br, { size: 73 }) }),
2339
+ /* @__PURE__ */ t.jsx("span", { className: "error-icon", children: u[d] ?? /* @__PURE__ */ t.jsx(jr, { size: 73 }) }),
2340
2340
  /* @__PURE__ */ t.jsx("span", { className: "error-msg", children: "Sorry! Preview is not available for this file." }),
2341
2341
  /* @__PURE__ */ t.jsxs("div", { className: "file-info", children: [
2342
- /* @__PURE__ */ t.jsx("span", { className: "file-name", children: i[0].name }),
2343
- i[0].size && /* @__PURE__ */ t.jsx("span", { children: "-" }),
2344
- /* @__PURE__ */ t.jsx("span", { className: "file-size", children: Ze(i[0].size) })
2342
+ /* @__PURE__ */ t.jsx("span", { className: "file-name", children: c[0].name }),
2343
+ c[0].size && /* @__PURE__ */ t.jsx("span", { children: "-" }),
2344
+ /* @__PURE__ */ t.jsx("span", { className: "file-size", children: Je(c[0].size) })
2345
2345
  ] }),
2346
- /* @__PURE__ */ t.jsx(Ne, { onClick: N, padding: "0.45rem .9rem", children: /* @__PURE__ */ t.jsxs("div", { className: "download-btn", children: [
2347
- /* @__PURE__ */ t.jsx(mt, { size: 18 }),
2346
+ /* @__PURE__ */ t.jsx(Fe, { onClick: L, padding: "0.45rem .9rem", children: /* @__PURE__ */ t.jsxs("div", { className: "download-btn", children: [
2347
+ /* @__PURE__ */ t.jsx(ht, { size: 18 }),
2348
2348
  /* @__PURE__ */ t.jsx("span", { children: "Download" })
2349
2349
  ] }) })
2350
2350
  ] }),
2351
- Ot.includes(d) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2352
- /* @__PURE__ */ t.jsx(pt, { isLoading: r }),
2351
+ Ft.includes(d) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2352
+ /* @__PURE__ */ t.jsx(ft, { isLoading: r }),
2353
2353
  /* @__PURE__ */ t.jsx(
2354
2354
  "img",
2355
2355
  {
2356
2356
  src: f,
2357
2357
  alt: "Preview Unavailable",
2358
2358
  className: `photo-popup-image ${r ? "img-loading" : ""}`,
2359
- onLoad: v,
2360
- onError: P,
2359
+ onLoad: p,
2360
+ onError: E,
2361
2361
  loading: "lazy"
2362
2362
  }
2363
2363
  )
2364
2364
  ] }),
2365
- zt.includes(d) && /* @__PURE__ */ t.jsx("video", { src: f, className: "video-preview", controls: !0, autoPlay: !0 }),
2366
- At.includes(d) && /* @__PURE__ */ t.jsx("audio", { src: f, controls: !0, autoPlay: !0, className: "audio-preview" }),
2367
- _t.includes(d) && /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
2365
+ kt.includes(d) && /* @__PURE__ */ t.jsx("video", { src: f, className: "video-preview", controls: !0, autoPlay: !0 }),
2366
+ Ot.includes(d) && /* @__PURE__ */ t.jsx("audio", { src: f, controls: !0, autoPlay: !0, className: "audio-preview" }),
2367
+ zt.includes(d) && /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
2368
2368
  "iframe",
2369
2369
  {
2370
2370
  src: f,
2371
- onLoad: v,
2372
- onError: P,
2371
+ onLoad: p,
2372
+ onError: E,
2373
2373
  frameBorder: "0",
2374
2374
  className: `photo-popup-iframe ${r ? "img-loading" : ""}`
2375
2375
  }
2376
2376
  ) })
2377
2377
  ] });
2378
- }, nt = (e) => e.toLowerCase(), me = (e, n, r = !1) => {
2379
- const s = ie(/* @__PURE__ */ new Set([])), a = ht(() => new Set(e.map((d) => nt(d))), [e]), c = (d) => {
2380
- if (!d.repeat && (s.current.add(nt(d.key)), a.isSubsetOf(s.current) && !r)) {
2378
+ }, tt = (e) => e.toLowerCase(), me = (e, n, r = !1) => {
2379
+ const s = ie(/* @__PURE__ */ new Set([])), a = dt(() => new Set(e.map((d) => tt(d))), [e]), i = (d) => {
2380
+ if (!d.repeat && (s.current.add(tt(d.key)), a.isSubsetOf(s.current) && !r)) {
2381
2381
  d.preventDefault(), n(d);
2382
2382
  return;
2383
2383
  }
2384
- }, i = (d) => {
2385
- s.current.delete(nt(d.key));
2384
+ }, c = (d) => {
2385
+ s.current.delete(tt(d.key));
2386
2386
  }, u = () => {
2387
2387
  s.current.clear();
2388
2388
  };
2389
- ne(() => (window.addEventListener("keydown", c), window.addEventListener("keyup", i), window.addEventListener("blur", u), () => {
2390
- window.removeEventListener("keydown", c), window.removeEventListener("keyup", i), window.removeEventListener("blur", u);
2389
+ ne(() => (window.addEventListener("keydown", i), window.addEventListener("keyup", c), window.addEventListener("blur", u), () => {
2390
+ window.removeEventListener("keydown", i), window.removeEventListener("keyup", c), window.removeEventListener("blur", u);
2391
2391
  }), [a, n, r]);
2392
2392
  }, ve = {
2393
2393
  createFolder: ["Alt", "Shift", "N"],
@@ -2411,61 +2411,61 @@ const Br = ({
2411
2411
  // Act as Ctrl + Shift + 2 but could cause problems for QWERTZ or DVORAK etc. keyborad layouts.
2412
2412
  refresh: ["F5"],
2413
2413
  clearSelection: ["Escape"]
2414
- }, Vr = (e, n) => {
2415
- const { setClipBoard: r, handleCutCopy: s, handlePasting: a } = Je(), { currentFolder: c, currentPathFiles: i } = xe(), { setSelectedFiles: u, handleDownload: d } = Pe(), { setActiveLayout: f } = Me(), h = () => {
2414
+ }, Hr = (e, n) => {
2415
+ const { setClipBoard: r, handleCutCopy: s, handlePasting: a } = Ge(), { currentFolder: i, currentPathFiles: c } = xe(), { setSelectedFiles: u, handleDownload: d } = Pe(), { setActiveLayout: f } = Me(), h = () => {
2416
2416
  e.show("createFolder");
2417
- }, v = () => {
2417
+ }, p = () => {
2418
2418
  e.show("uploadFile");
2419
- }, P = () => {
2419
+ }, E = () => {
2420
2420
  s(!0);
2421
- }, N = () => {
2421
+ }, L = () => {
2422
2422
  s(!1);
2423
- }, M = () => {
2424
- a(c);
2423
+ }, R = () => {
2424
+ a(i);
2425
2425
  }, z = () => {
2426
2426
  e.show("rename");
2427
2427
  }, A = () => {
2428
2428
  d();
2429
2429
  }, b = () => {
2430
2430
  e.show("delete");
2431
- }, R = () => {
2432
- i.length > 0 && u([i[0]]);
2431
+ }, M = () => {
2432
+ c.length > 0 && u([c[0]]);
2433
2433
  }, g = () => {
2434
- i.length > 0 && u([i.at(-1)]);
2434
+ c.length > 0 && u([c.at(-1)]);
2435
2435
  }, x = () => {
2436
- u(i);
2436
+ u(c);
2437
2437
  }, l = () => {
2438
2438
  u((w) => w.length > 0 ? [] : w);
2439
- }, m = () => {
2439
+ }, v = () => {
2440
2440
  Se(n, "onRefresh"), r(null);
2441
- }, O = () => {
2441
+ }, k = () => {
2442
2442
  f("grid");
2443
2443
  }, y = () => {
2444
2444
  f("list");
2445
2445
  };
2446
- me(ve.createFolder, h, e.isActive), me(ve.uploadFiles, v, e.isActive), me(ve.cut, P, e.isActive), me(ve.copy, N, e.isActive), me(ve.paste, M, e.isActive), me(ve.rename, z, e.isActive), me(ve.download, A, e.isActive), me(ve.delete, b, e.isActive), me(ve.jumpToFirst, R, e.isActive), me(ve.jumpToLast, g, e.isActive), me(ve.selectAll, x, e.isActive), me(ve.clearSelection, l, e.isActive), me(ve.refresh, m, e.isActive), me(ve.gridLayout, O, e.isActive), me(ve.listLayout, y, e.isActive);
2447
- }, Yr = ({
2446
+ me(ve.createFolder, h, e.isActive), me(ve.uploadFiles, p, e.isActive), me(ve.cut, E, e.isActive), me(ve.copy, L, e.isActive), me(ve.paste, R, e.isActive), me(ve.rename, z, e.isActive), me(ve.download, A, e.isActive), me(ve.delete, b, e.isActive), me(ve.jumpToFirst, M, e.isActive), me(ve.jumpToLast, g, e.isActive), me(ve.selectAll, x, e.isActive), me(ve.clearSelection, l, e.isActive), me(ve.refresh, v, e.isActive), me(ve.gridLayout, k, e.isActive), me(ve.listLayout, y, e.isActive);
2447
+ }, Wr = ({
2448
2448
  fileUploadConfig: e,
2449
2449
  onFileUploading: n,
2450
2450
  onFileUploaded: r,
2451
2451
  onDelete: s,
2452
2452
  onRefresh: a,
2453
- maxFileSize: c,
2454
- filePreviewPath: i,
2453
+ maxFileSize: i,
2454
+ filePreviewPath: c,
2455
2455
  filePreviewComponent: u,
2456
2456
  acceptedFileTypes: d,
2457
2457
  triggerAction: f
2458
2458
  }) => {
2459
- const [h, v] = T(null), { selectedFiles: P } = Pe();
2460
- Vr(f, a);
2461
- const N = {
2459
+ const [h, p] = T(null), { selectedFiles: E } = Pe();
2460
+ Hr(f, a);
2461
+ const L = {
2462
2462
  uploadFile: {
2463
2463
  title: "Upload",
2464
2464
  component: /* @__PURE__ */ t.jsx(
2465
- Hr,
2465
+ Dr,
2466
2466
  {
2467
2467
  fileUploadConfig: e,
2468
- maxFileSize: c,
2468
+ maxFileSize: i,
2469
2469
  acceptedFileTypes: d,
2470
2470
  onFileUploading: n,
2471
2471
  onFileUploaded: r
@@ -2475,15 +2475,15 @@ const Br = ({
2475
2475
  },
2476
2476
  delete: {
2477
2477
  title: "Delete",
2478
- component: /* @__PURE__ */ t.jsx(Ar, { triggerAction: f, onDelete: s }),
2478
+ component: /* @__PURE__ */ t.jsx(Or, { triggerAction: f, onDelete: s }),
2479
2479
  width: "25%"
2480
2480
  },
2481
2481
  previewFile: {
2482
2482
  title: "Preview",
2483
2483
  component: /* @__PURE__ */ t.jsx(
2484
- Wr,
2484
+ Br,
2485
2485
  {
2486
- filePreviewPath: i,
2486
+ filePreviewPath: c,
2487
2487
  filePreviewComponent: u
2488
2488
  }
2489
2489
  ),
@@ -2492,13 +2492,13 @@ const Br = ({
2492
2492
  };
2493
2493
  if (ne(() => {
2494
2494
  if (f.isActive) {
2495
- const M = f.actionType;
2496
- M === "previewFile" && (N[M].title = (P == null ? void 0 : P.name) ?? "Preview"), v(N[M]);
2495
+ const R = f.actionType;
2496
+ R === "previewFile" && (L[R].title = (E == null ? void 0 : E.name) ?? "Preview"), p(L[R]);
2497
2497
  } else
2498
- v(null);
2498
+ p(null);
2499
2499
  }, [f.isActive]), h)
2500
2500
  return /* @__PURE__ */ t.jsx(
2501
- jn,
2501
+ yn,
2502
2502
  {
2503
2503
  heading: h.title,
2504
2504
  show: f.isActive,
@@ -2507,36 +2507,36 @@ const Br = ({
2507
2507
  children: h == null ? void 0 : h.component
2508
2508
  }
2509
2509
  );
2510
- }, Ur = () => {
2510
+ }, Vr = () => {
2511
2511
  const [e, n] = T(!1), [r, s] = T(null);
2512
2512
  return {
2513
2513
  isActive: e,
2514
2514
  actionType: r,
2515
- show: (i) => {
2516
- n(!0), s(i);
2515
+ show: (c) => {
2516
+ n(!0), s(c);
2517
2517
  },
2518
2518
  close: () => {
2519
2519
  n(!1), s(null);
2520
2520
  }
2521
2521
  };
2522
- }, qr = (e, n) => {
2523
- const [r, s] = T({ col1: e, col2: n }), [a, c] = T(!1), i = ie(null);
2522
+ }, Yr = (e, n) => {
2523
+ const [r, s] = T({ col1: e, col2: n }), [a, i] = T(!1), c = ie(null);
2524
2524
  return {
2525
- containerRef: i,
2525
+ containerRef: c,
2526
2526
  colSizes: r,
2527
2527
  setColSizes: s,
2528
2528
  isDragging: a,
2529
2529
  handleMouseDown: () => {
2530
- c(!0);
2530
+ i(!0);
2531
2531
  },
2532
2532
  handleMouseUp: () => {
2533
- c(!1);
2533
+ i(!1);
2534
2534
  },
2535
2535
  handleMouseMove: (h) => {
2536
2536
  if (!a) return;
2537
2537
  h.preventDefault();
2538
- const P = i.current.getBoundingClientRect(), N = (h.clientX - P.left) / P.width * 100;
2539
- N >= 15 && N <= 60 && s({ col1: N, col2: 100 - N });
2538
+ const E = c.current.getBoundingClientRect(), L = (h.clientX - E.left) / E.width * 100;
2539
+ L >= 15 && L <= 60 && s({ col1: L, col2: 100 - L });
2540
2540
  }
2541
2541
  };
2542
2542
  };
@@ -2549,50 +2549,50 @@ var ut = { exports: {} }, He = { exports: {} }, ee = {};
2549
2549
  * This source code is licensed under the MIT license found in the
2550
2550
  * LICENSE file in the root directory of this source tree.
2551
2551
  */
2552
- var $t;
2553
- function Kr() {
2554
- if ($t) return ee;
2555
- $t = 1;
2556
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, P = e ? Symbol.for("react.suspense_list") : 60120, N = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, z = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
2552
+ var At;
2553
+ function Ur() {
2554
+ if (At) return ee;
2555
+ At = 1;
2556
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, E = e ? Symbol.for("react.suspense_list") : 60120, L = e ? Symbol.for("react.memo") : 60115, R = e ? Symbol.for("react.lazy") : 60116, z = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
2557
2557
  function g(l) {
2558
2558
  if (typeof l == "object" && l !== null) {
2559
- var m = l.$$typeof;
2560
- switch (m) {
2559
+ var v = l.$$typeof;
2560
+ switch (v) {
2561
2561
  case n:
2562
2562
  switch (l = l.type, l) {
2563
2563
  case d:
2564
2564
  case f:
2565
2565
  case s:
2566
- case c:
2566
+ case i:
2567
2567
  case a:
2568
- case v:
2568
+ case p:
2569
2569
  return l;
2570
2570
  default:
2571
2571
  switch (l = l && l.$$typeof, l) {
2572
2572
  case u:
2573
2573
  case h:
2574
- case M:
2575
- case N:
2576
- case i:
2574
+ case R:
2575
+ case L:
2576
+ case c:
2577
2577
  return l;
2578
2578
  default:
2579
- return m;
2579
+ return v;
2580
2580
  }
2581
2581
  }
2582
2582
  case r:
2583
- return m;
2583
+ return v;
2584
2584
  }
2585
2585
  }
2586
2586
  }
2587
2587
  function x(l) {
2588
2588
  return g(l) === f;
2589
2589
  }
2590
- return ee.AsyncMode = d, ee.ConcurrentMode = f, ee.ContextConsumer = u, ee.ContextProvider = i, ee.Element = n, ee.ForwardRef = h, ee.Fragment = s, ee.Lazy = M, ee.Memo = N, ee.Portal = r, ee.Profiler = c, ee.StrictMode = a, ee.Suspense = v, ee.isAsyncMode = function(l) {
2590
+ return ee.AsyncMode = d, ee.ConcurrentMode = f, ee.ContextConsumer = u, ee.ContextProvider = c, ee.Element = n, ee.ForwardRef = h, ee.Fragment = s, ee.Lazy = R, ee.Memo = L, ee.Portal = r, ee.Profiler = i, ee.StrictMode = a, ee.Suspense = p, ee.isAsyncMode = function(l) {
2591
2591
  return x(l) || g(l) === d;
2592
2592
  }, ee.isConcurrentMode = x, ee.isContextConsumer = function(l) {
2593
2593
  return g(l) === u;
2594
2594
  }, ee.isContextProvider = function(l) {
2595
- return g(l) === i;
2595
+ return g(l) === c;
2596
2596
  }, ee.isElement = function(l) {
2597
2597
  return typeof l == "object" && l !== null && l.$$typeof === n;
2598
2598
  }, ee.isForwardRef = function(l) {
@@ -2600,19 +2600,19 @@ function Kr() {
2600
2600
  }, ee.isFragment = function(l) {
2601
2601
  return g(l) === s;
2602
2602
  }, ee.isLazy = function(l) {
2603
- return g(l) === M;
2603
+ return g(l) === R;
2604
2604
  }, ee.isMemo = function(l) {
2605
- return g(l) === N;
2605
+ return g(l) === L;
2606
2606
  }, ee.isPortal = function(l) {
2607
2607
  return g(l) === r;
2608
2608
  }, ee.isProfiler = function(l) {
2609
- return g(l) === c;
2609
+ return g(l) === i;
2610
2610
  }, ee.isStrictMode = function(l) {
2611
2611
  return g(l) === a;
2612
2612
  }, ee.isSuspense = function(l) {
2613
- return g(l) === v;
2613
+ return g(l) === p;
2614
2614
  }, ee.isValidElementType = function(l) {
2615
- return typeof l == "string" || typeof l == "function" || l === s || l === f || l === c || l === a || l === v || l === P || typeof l == "object" && l !== null && (l.$$typeof === M || l.$$typeof === N || l.$$typeof === i || l.$$typeof === u || l.$$typeof === h || l.$$typeof === A || l.$$typeof === b || l.$$typeof === R || l.$$typeof === z);
2615
+ return typeof l == "string" || typeof l == "function" || l === s || l === f || l === i || l === a || l === p || l === E || typeof l == "object" && l !== null && (l.$$typeof === R || l.$$typeof === L || l.$$typeof === c || l.$$typeof === u || l.$$typeof === h || l.$$typeof === A || l.$$typeof === b || l.$$typeof === M || l.$$typeof === z);
2616
2616
  }, ee.typeOf = g, ee;
2617
2617
  }
2618
2618
  var te = {};
@@ -2624,58 +2624,58 @@ var te = {};
2624
2624
  * This source code is licensed under the MIT license found in the
2625
2625
  * LICENSE file in the root directory of this source tree.
2626
2626
  */
2627
- var Dt;
2628
- function Xr() {
2629
- return Dt || (Dt = 1, process.env.NODE_ENV !== "production" && function() {
2630
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, P = e ? Symbol.for("react.suspense_list") : 60120, N = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, z = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
2627
+ var _t;
2628
+ function qr() {
2629
+ return _t || (_t = 1, process.env.NODE_ENV !== "production" && function() {
2630
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, E = e ? Symbol.for("react.suspense_list") : 60120, L = e ? Symbol.for("react.memo") : 60115, R = e ? Symbol.for("react.lazy") : 60116, z = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
2631
2631
  function g(j) {
2632
2632
  return typeof j == "string" || typeof j == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2633
- j === s || j === f || j === c || j === a || j === v || j === P || typeof j == "object" && j !== null && (j.$$typeof === M || j.$$typeof === N || j.$$typeof === i || j.$$typeof === u || j.$$typeof === h || j.$$typeof === A || j.$$typeof === b || j.$$typeof === R || j.$$typeof === z);
2633
+ j === s || j === f || j === i || j === a || j === p || j === E || typeof j == "object" && j !== null && (j.$$typeof === R || j.$$typeof === L || j.$$typeof === c || j.$$typeof === u || j.$$typeof === h || j.$$typeof === A || j.$$typeof === b || j.$$typeof === M || j.$$typeof === z);
2634
2634
  }
2635
2635
  function x(j) {
2636
2636
  if (typeof j == "object" && j !== null) {
2637
- var de = j.$$typeof;
2638
- switch (de) {
2637
+ var ue = j.$$typeof;
2638
+ switch (ue) {
2639
2639
  case n:
2640
2640
  var ye = j.type;
2641
2641
  switch (ye) {
2642
2642
  case d:
2643
2643
  case f:
2644
2644
  case s:
2645
- case c:
2645
+ case i:
2646
2646
  case a:
2647
- case v:
2647
+ case p:
2648
2648
  return ye;
2649
2649
  default:
2650
2650
  var V = ye && ye.$$typeof;
2651
2651
  switch (V) {
2652
2652
  case u:
2653
2653
  case h:
2654
- case M:
2655
- case N:
2656
- case i:
2654
+ case R:
2655
+ case L:
2656
+ case c:
2657
2657
  return V;
2658
2658
  default:
2659
- return de;
2659
+ return ue;
2660
2660
  }
2661
2661
  }
2662
2662
  case r:
2663
- return de;
2663
+ return ue;
2664
2664
  }
2665
2665
  }
2666
2666
  }
2667
- var l = d, m = f, O = u, y = i, w = n, E = h, _ = s, k = M, D = N, Z = r, se = c, re = a, G = v, ce = !1;
2668
- function le(j) {
2669
- return ce || (ce = !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.")), p(j) || x(j) === d;
2667
+ var l = d, v = f, k = u, y = c, w = n, P = h, _ = s, O = R, I = L, Z = r, se = i, re = a, G = p, he = !1;
2668
+ function ce(j) {
2669
+ return he || (he = !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.")), m(j) || x(j) === d;
2670
2670
  }
2671
- function p(j) {
2671
+ function m(j) {
2672
2672
  return x(j) === f;
2673
2673
  }
2674
2674
  function C(j) {
2675
2675
  return x(j) === u;
2676
2676
  }
2677
2677
  function W(j) {
2678
- return x(j) === i;
2678
+ return x(j) === c;
2679
2679
  }
2680
2680
  function B(j) {
2681
2681
  return typeof j == "object" && j !== null && j.$$typeof === n;
@@ -2687,56 +2687,56 @@ function Xr() {
2687
2687
  return x(j) === s;
2688
2688
  }
2689
2689
  function S(j) {
2690
- return x(j) === M;
2690
+ return x(j) === R;
2691
2691
  }
2692
- function I(j) {
2693
- return x(j) === N;
2692
+ function D(j) {
2693
+ return x(j) === L;
2694
2694
  }
2695
2695
  function q(j) {
2696
2696
  return x(j) === r;
2697
2697
  }
2698
2698
  function J(j) {
2699
- return x(j) === c;
2699
+ return x(j) === i;
2700
2700
  }
2701
2701
  function K(j) {
2702
2702
  return x(j) === a;
2703
2703
  }
2704
2704
  function ae(j) {
2705
- return x(j) === v;
2705
+ return x(j) === p;
2706
2706
  }
2707
- te.AsyncMode = l, te.ConcurrentMode = m, te.ContextConsumer = O, te.ContextProvider = y, te.Element = w, te.ForwardRef = E, te.Fragment = _, te.Lazy = k, te.Memo = D, te.Portal = Z, te.Profiler = se, te.StrictMode = re, te.Suspense = G, te.isAsyncMode = le, te.isConcurrentMode = p, te.isContextConsumer = C, te.isContextProvider = W, te.isElement = B, te.isForwardRef = $, te.isFragment = U, te.isLazy = S, te.isMemo = I, te.isPortal = q, te.isProfiler = J, te.isStrictMode = K, te.isSuspense = ae, te.isValidElementType = g, te.typeOf = x;
2707
+ te.AsyncMode = l, te.ConcurrentMode = v, te.ContextConsumer = k, te.ContextProvider = y, te.Element = w, te.ForwardRef = P, te.Fragment = _, te.Lazy = O, te.Memo = I, te.Portal = Z, te.Profiler = se, te.StrictMode = re, te.Suspense = G, te.isAsyncMode = ce, te.isConcurrentMode = m, te.isContextConsumer = C, te.isContextProvider = W, te.isElement = B, te.isForwardRef = $, te.isFragment = U, te.isLazy = S, te.isMemo = D, te.isPortal = q, te.isProfiler = J, te.isStrictMode = K, te.isSuspense = ae, te.isValidElementType = g, te.typeOf = x;
2708
2708
  }()), te;
2709
2709
  }
2710
- var It;
2711
- function wn() {
2712
- return It || (It = 1, process.env.NODE_ENV === "production" ? He.exports = Kr() : He.exports = Xr()), He.exports;
2710
+ var $t;
2711
+ function Cn() {
2712
+ return $t || ($t = 1, process.env.NODE_ENV === "production" ? He.exports = Ur() : He.exports = qr()), He.exports;
2713
2713
  }
2714
2714
  /*
2715
2715
  object-assign
2716
2716
  (c) Sindre Sorhus
2717
2717
  @license MIT
2718
2718
  */
2719
- var rt, Bt;
2720
- function Gr() {
2721
- if (Bt) return rt;
2722
- Bt = 1;
2719
+ var nt, It;
2720
+ function Kr() {
2721
+ if (It) return nt;
2722
+ It = 1;
2723
2723
  var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
2724
- function s(c) {
2725
- if (c == null)
2724
+ function s(i) {
2725
+ if (i == null)
2726
2726
  throw new TypeError("Object.assign cannot be called with null or undefined");
2727
- return Object(c);
2727
+ return Object(i);
2728
2728
  }
2729
2729
  function a() {
2730
2730
  try {
2731
2731
  if (!Object.assign)
2732
2732
  return !1;
2733
- var c = new String("abc");
2734
- if (c[5] = "de", Object.getOwnPropertyNames(c)[0] === "5")
2733
+ var i = new String("abc");
2734
+ if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
2735
2735
  return !1;
2736
- for (var i = {}, u = 0; u < 10; u++)
2737
- i["_" + String.fromCharCode(u)] = u;
2738
- var d = Object.getOwnPropertyNames(i).map(function(h) {
2739
- return i[h];
2736
+ for (var c = {}, u = 0; u < 10; u++)
2737
+ c["_" + String.fromCharCode(u)] = u;
2738
+ var d = Object.getOwnPropertyNames(c).map(function(h) {
2739
+ return c[h];
2740
2740
  });
2741
2741
  if (d.join("") !== "0123456789")
2742
2742
  return !1;
@@ -2748,84 +2748,87 @@ function Gr() {
2748
2748
  return !1;
2749
2749
  }
2750
2750
  }
2751
- return rt = a() ? Object.assign : function(c, i) {
2752
- for (var u, d = s(c), f, h = 1; h < arguments.length; h++) {
2751
+ return nt = a() ? Object.assign : function(i, c) {
2752
+ for (var u, d = s(i), f, h = 1; h < arguments.length; h++) {
2753
2753
  u = Object(arguments[h]);
2754
- for (var v in u)
2755
- n.call(u, v) && (d[v] = u[v]);
2754
+ for (var p in u)
2755
+ n.call(u, p) && (d[p] = u[p]);
2756
2756
  if (e) {
2757
2757
  f = e(u);
2758
- for (var P = 0; P < f.length; P++)
2759
- r.call(u, f[P]) && (d[f[P]] = u[f[P]]);
2758
+ for (var E = 0; E < f.length; E++)
2759
+ r.call(u, f[E]) && (d[f[E]] = u[f[E]]);
2760
2760
  }
2761
2761
  }
2762
2762
  return d;
2763
- }, rt;
2763
+ }, nt;
2764
2764
  }
2765
- var st, Ht;
2766
- function vt() {
2767
- if (Ht) return st;
2768
- Ht = 1;
2765
+ var rt, Dt;
2766
+ function pt() {
2767
+ if (Dt) return rt;
2768
+ Dt = 1;
2769
2769
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2770
- return st = e, st;
2770
+ return rt = e, rt;
2771
2771
  }
2772
- var ot, Wt;
2773
- function En() {
2774
- return Wt || (Wt = 1, ot = Function.call.bind(Object.prototype.hasOwnProperty)), ot;
2772
+ var st, Bt;
2773
+ function bn() {
2774
+ return Bt || (Bt = 1, st = Function.call.bind(Object.prototype.hasOwnProperty)), st;
2775
2775
  }
2776
- var dt = function() {
2777
- };
2778
- if (process.env.NODE_ENV !== "production") {
2779
- var Jr = vt(), ft = {}, Zr = En();
2780
- dt = function(e) {
2781
- var n = "Warning: " + e;
2782
- typeof console < "u" && console.error(n);
2783
- try {
2784
- throw new Error(n);
2785
- } catch {
2786
- }
2776
+ var ot, Ht;
2777
+ function Xr() {
2778
+ if (Ht) return ot;
2779
+ Ht = 1;
2780
+ var e = function() {
2787
2781
  };
2788
- }
2789
- function Pn(e, n, r, s, a) {
2790
2782
  if (process.env.NODE_ENV !== "production") {
2791
- for (var c in e)
2792
- if (Zr(e, c)) {
2793
- var i;
2794
- try {
2795
- if (typeof e[c] != "function") {
2796
- var u = Error(
2797
- (s || "React class") + ": " + r + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
2783
+ var n = pt(), r = {}, s = bn();
2784
+ e = function(i) {
2785
+ var c = "Warning: " + i;
2786
+ typeof console < "u" && console.error(c);
2787
+ try {
2788
+ throw new Error(c);
2789
+ } catch {
2790
+ }
2791
+ };
2792
+ }
2793
+ function a(i, c, u, d, f) {
2794
+ if (process.env.NODE_ENV !== "production") {
2795
+ for (var h in i)
2796
+ if (s(i, h)) {
2797
+ var p;
2798
+ try {
2799
+ if (typeof i[h] != "function") {
2800
+ var E = Error(
2801
+ (d || "React class") + ": " + u + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
2802
+ );
2803
+ throw E.name = "Invariant Violation", E;
2804
+ }
2805
+ p = i[h](c, h, d, u, null, n);
2806
+ } catch (R) {
2807
+ p = R;
2808
+ }
2809
+ if (p && !(p instanceof Error) && e(
2810
+ (d || "React class") + ": type specification of " + u + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
2811
+ ), p instanceof Error && !(p.message in r)) {
2812
+ r[p.message] = !0;
2813
+ var L = f ? f() : "";
2814
+ e(
2815
+ "Failed " + u + " type: " + p.message + (L ?? "")
2798
2816
  );
2799
- throw u.name = "Invariant Violation", u;
2800
2817
  }
2801
- i = e[c](n, c, s, r, null, Jr);
2802
- } catch (f) {
2803
- i = f;
2804
- }
2805
- if (i && !(i instanceof Error) && dt(
2806
- (s || "React class") + ": type specification of " + r + " `" + c + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof i + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
2807
- ), i instanceof Error && !(i.message in ft)) {
2808
- ft[i.message] = !0;
2809
- var d = a ? a() : "";
2810
- dt(
2811
- "Failed " + r + " type: " + i.message + (d ?? "")
2812
- );
2813
2818
  }
2814
- }
2819
+ }
2815
2820
  }
2821
+ return a.resetWarningCache = function() {
2822
+ process.env.NODE_ENV !== "production" && (r = {});
2823
+ }, ot = a, ot;
2816
2824
  }
2817
- Pn.resetWarningCache = function() {
2818
- process.env.NODE_ENV !== "production" && (ft = {});
2819
- };
2820
- var Rn = Pn;
2821
- const Qr = /* @__PURE__ */ Kt(Rn);
2822
- var at, Vt;
2823
- function es() {
2824
- if (Vt) return at;
2825
- Vt = 1;
2826
- var e = wn(), n = Gr(), r = vt(), s = En(), a = Rn, c = function() {
2825
+ var at, Wt;
2826
+ function Gr() {
2827
+ if (Wt) return at;
2828
+ Wt = 1;
2829
+ var e = Cn(), n = Kr(), r = pt(), s = bn(), a = Xr(), i = function() {
2827
2830
  };
2828
- process.env.NODE_ENV !== "production" && (c = function(u) {
2831
+ process.env.NODE_ENV !== "production" && (i = function(u) {
2829
2832
  var d = "Warning: " + u;
2830
2833
  typeof console < "u" && console.error(d);
2831
2834
  try {
@@ -2833,17 +2836,17 @@ function es() {
2833
2836
  } catch {
2834
2837
  }
2835
2838
  });
2836
- function i() {
2839
+ function c() {
2837
2840
  return null;
2838
2841
  }
2839
2842
  return at = function(u, d) {
2840
2843
  var f = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
2841
- function v(p) {
2842
- var C = p && (f && p[f] || p[h]);
2844
+ function p(m) {
2845
+ var C = m && (f && m[f] || m[h]);
2843
2846
  if (typeof C == "function")
2844
2847
  return C;
2845
2848
  }
2846
- var P = "<<anonymous>>", N = {
2849
+ var E = "<<anonymous>>", L = {
2847
2850
  array: b("array"),
2848
2851
  bigint: b("bigint"),
2849
2852
  bool: b("boolean"),
@@ -2852,76 +2855,76 @@ function es() {
2852
2855
  object: b("object"),
2853
2856
  string: b("string"),
2854
2857
  symbol: b("symbol"),
2855
- any: R(),
2858
+ any: M(),
2856
2859
  arrayOf: g,
2857
2860
  element: x(),
2858
2861
  elementType: l(),
2859
- instanceOf: m,
2860
- node: E(),
2862
+ instanceOf: v,
2863
+ node: P(),
2861
2864
  objectOf: y,
2862
- oneOf: O,
2865
+ oneOf: k,
2863
2866
  oneOfType: w,
2864
- shape: k,
2865
- exact: D
2867
+ shape: O,
2868
+ exact: I
2866
2869
  };
2867
- function M(p, C) {
2868
- return p === C ? p !== 0 || 1 / p === 1 / C : p !== p && C !== C;
2870
+ function R(m, C) {
2871
+ return m === C ? m !== 0 || 1 / m === 1 / C : m !== m && C !== C;
2869
2872
  }
2870
- function z(p, C) {
2871
- this.message = p, this.data = C && typeof C == "object" ? C : {}, this.stack = "";
2873
+ function z(m, C) {
2874
+ this.message = m, this.data = C && typeof C == "object" ? C : {}, this.stack = "";
2872
2875
  }
2873
2876
  z.prototype = Error.prototype;
2874
- function A(p) {
2877
+ function A(m) {
2875
2878
  if (process.env.NODE_ENV !== "production")
2876
2879
  var C = {}, W = 0;
2877
- function B(U, S, I, q, J, K, ae) {
2878
- if (q = q || P, K = K || I, ae !== r) {
2880
+ function B(U, S, D, q, J, K, ae) {
2881
+ if (q = q || E, K = K || D, ae !== r) {
2879
2882
  if (d) {
2880
2883
  var j = new Error(
2881
2884
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
2882
2885
  );
2883
2886
  throw j.name = "Invariant Violation", j;
2884
2887
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
2885
- var de = q + ":" + I;
2886
- !C[de] && // Avoid spamming the console because they are often not actionable except for lib authors
2887
- W < 3 && (c(
2888
+ var ue = q + ":" + D;
2889
+ !C[ue] && // Avoid spamming the console because they are often not actionable except for lib authors
2890
+ W < 3 && (i(
2888
2891
  "You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + q + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
2889
- ), C[de] = !0, W++);
2892
+ ), C[ue] = !0, W++);
2890
2893
  }
2891
2894
  }
2892
- return S[I] == null ? U ? S[I] === null ? new z("The " + J + " `" + K + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new z("The " + J + " `" + K + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : p(S, I, q, J, K);
2895
+ return S[D] == null ? U ? S[D] === null ? new z("The " + J + " `" + K + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new z("The " + J + " `" + K + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : m(S, D, q, J, K);
2893
2896
  }
2894
2897
  var $ = B.bind(null, !1);
2895
2898
  return $.isRequired = B.bind(null, !0), $;
2896
2899
  }
2897
- function b(p) {
2898
- function C(W, B, $, U, S, I) {
2900
+ function b(m) {
2901
+ function C(W, B, $, U, S, D) {
2899
2902
  var q = W[B], J = re(q);
2900
- if (J !== p) {
2903
+ if (J !== m) {
2901
2904
  var K = G(q);
2902
2905
  return new z(
2903
- "Invalid " + U + " `" + S + "` of type " + ("`" + K + "` supplied to `" + $ + "`, expected ") + ("`" + p + "`."),
2904
- { expectedType: p }
2906
+ "Invalid " + U + " `" + S + "` of type " + ("`" + K + "` supplied to `" + $ + "`, expected ") + ("`" + m + "`."),
2907
+ { expectedType: m }
2905
2908
  );
2906
2909
  }
2907
2910
  return null;
2908
2911
  }
2909
2912
  return A(C);
2910
2913
  }
2911
- function R() {
2912
- return A(i);
2914
+ function M() {
2915
+ return A(c);
2913
2916
  }
2914
- function g(p) {
2917
+ function g(m) {
2915
2918
  function C(W, B, $, U, S) {
2916
- if (typeof p != "function")
2919
+ if (typeof m != "function")
2917
2920
  return new z("Property `" + S + "` of component `" + $ + "` has invalid PropType notation inside arrayOf.");
2918
- var I = W[B];
2919
- if (!Array.isArray(I)) {
2920
- var q = re(I);
2921
+ var D = W[B];
2922
+ if (!Array.isArray(D)) {
2923
+ var q = re(D);
2921
2924
  return new z("Invalid " + U + " `" + S + "` of type " + ("`" + q + "` supplied to `" + $ + "`, expected an array."));
2922
2925
  }
2923
- for (var J = 0; J < I.length; J++) {
2924
- var K = p(I, J, $, U, S + "[" + J + "]", r);
2926
+ for (var J = 0; J < D.length; J++) {
2927
+ var K = m(D, J, $, U, S + "[" + J + "]", r);
2925
2928
  if (K instanceof Error)
2926
2929
  return K;
2927
2930
  }
@@ -2930,64 +2933,64 @@ function es() {
2930
2933
  return A(C);
2931
2934
  }
2932
2935
  function x() {
2933
- function p(C, W, B, $, U) {
2936
+ function m(C, W, B, $, U) {
2934
2937
  var S = C[W];
2935
2938
  if (!u(S)) {
2936
- var I = re(S);
2937
- return new z("Invalid " + $ + " `" + U + "` of type " + ("`" + I + "` supplied to `" + B + "`, expected a single ReactElement."));
2939
+ var D = re(S);
2940
+ return new z("Invalid " + $ + " `" + U + "` of type " + ("`" + D + "` supplied to `" + B + "`, expected a single ReactElement."));
2938
2941
  }
2939
2942
  return null;
2940
2943
  }
2941
- return A(p);
2944
+ return A(m);
2942
2945
  }
2943
2946
  function l() {
2944
- function p(C, W, B, $, U) {
2947
+ function m(C, W, B, $, U) {
2945
2948
  var S = C[W];
2946
2949
  if (!e.isValidElementType(S)) {
2947
- var I = re(S);
2948
- return new z("Invalid " + $ + " `" + U + "` of type " + ("`" + I + "` supplied to `" + B + "`, expected a single ReactElement type."));
2950
+ var D = re(S);
2951
+ return new z("Invalid " + $ + " `" + U + "` of type " + ("`" + D + "` supplied to `" + B + "`, expected a single ReactElement type."));
2949
2952
  }
2950
2953
  return null;
2951
2954
  }
2952
- return A(p);
2955
+ return A(m);
2953
2956
  }
2954
- function m(p) {
2957
+ function v(m) {
2955
2958
  function C(W, B, $, U, S) {
2956
- if (!(W[B] instanceof p)) {
2957
- var I = p.name || P, q = le(W[B]);
2958
- return new z("Invalid " + U + " `" + S + "` of type " + ("`" + q + "` supplied to `" + $ + "`, expected ") + ("instance of `" + I + "`."));
2959
+ if (!(W[B] instanceof m)) {
2960
+ var D = m.name || E, q = ce(W[B]);
2961
+ return new z("Invalid " + U + " `" + S + "` of type " + ("`" + q + "` supplied to `" + $ + "`, expected ") + ("instance of `" + D + "`."));
2959
2962
  }
2960
2963
  return null;
2961
2964
  }
2962
2965
  return A(C);
2963
2966
  }
2964
- function O(p) {
2965
- if (!Array.isArray(p))
2966
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? c(
2967
+ function k(m) {
2968
+ if (!Array.isArray(m))
2969
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
2967
2970
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
2968
- ) : c("Invalid argument supplied to oneOf, expected an array.")), i;
2971
+ ) : i("Invalid argument supplied to oneOf, expected an array.")), c;
2969
2972
  function C(W, B, $, U, S) {
2970
- for (var I = W[B], q = 0; q < p.length; q++)
2971
- if (M(I, p[q]))
2973
+ for (var D = W[B], q = 0; q < m.length; q++)
2974
+ if (R(D, m[q]))
2972
2975
  return null;
2973
- var J = JSON.stringify(p, function(ae, j) {
2974
- var de = G(j);
2975
- return de === "symbol" ? String(j) : j;
2976
+ var J = JSON.stringify(m, function(ae, j) {
2977
+ var ue = G(j);
2978
+ return ue === "symbol" ? String(j) : j;
2976
2979
  });
2977
- return new z("Invalid " + U + " `" + S + "` of value `" + String(I) + "` " + ("supplied to `" + $ + "`, expected one of " + J + "."));
2980
+ return new z("Invalid " + U + " `" + S + "` of value `" + String(D) + "` " + ("supplied to `" + $ + "`, expected one of " + J + "."));
2978
2981
  }
2979
2982
  return A(C);
2980
2983
  }
2981
- function y(p) {
2984
+ function y(m) {
2982
2985
  function C(W, B, $, U, S) {
2983
- if (typeof p != "function")
2986
+ if (typeof m != "function")
2984
2987
  return new z("Property `" + S + "` of component `" + $ + "` has invalid PropType notation inside objectOf.");
2985
- var I = W[B], q = re(I);
2988
+ var D = W[B], q = re(D);
2986
2989
  if (q !== "object")
2987
2990
  return new z("Invalid " + U + " `" + S + "` of type " + ("`" + q + "` supplied to `" + $ + "`, expected an object."));
2988
- for (var J in I)
2989
- if (s(I, J)) {
2990
- var K = p(I, J, $, U, S + "." + J, r);
2991
+ for (var J in D)
2992
+ if (s(D, J)) {
2993
+ var K = m(D, J, $, U, S + "." + J, r);
2991
2994
  if (K instanceof Error)
2992
2995
  return K;
2993
2996
  }
@@ -2995,49 +2998,49 @@ function es() {
2995
2998
  }
2996
2999
  return A(C);
2997
3000
  }
2998
- function w(p) {
2999
- if (!Array.isArray(p))
3000
- return process.env.NODE_ENV !== "production" && c("Invalid argument supplied to oneOfType, expected an instance of array."), i;
3001
- for (var C = 0; C < p.length; C++) {
3002
- var W = p[C];
3001
+ function w(m) {
3002
+ if (!Array.isArray(m))
3003
+ return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), c;
3004
+ for (var C = 0; C < m.length; C++) {
3005
+ var W = m[C];
3003
3006
  if (typeof W != "function")
3004
- return c(
3005
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ce(W) + " at index " + C + "."
3006
- ), i;
3007
+ return i(
3008
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + he(W) + " at index " + C + "."
3009
+ ), c;
3007
3010
  }
3008
- function B($, U, S, I, q) {
3009
- for (var J = [], K = 0; K < p.length; K++) {
3010
- var ae = p[K], j = ae($, U, S, I, q, r);
3011
+ function B($, U, S, D, q) {
3012
+ for (var J = [], K = 0; K < m.length; K++) {
3013
+ var ae = m[K], j = ae($, U, S, D, q, r);
3011
3014
  if (j == null)
3012
3015
  return null;
3013
3016
  j.data && s(j.data, "expectedType") && J.push(j.data.expectedType);
3014
3017
  }
3015
- var de = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
3016
- return new z("Invalid " + I + " `" + q + "` supplied to " + ("`" + S + "`" + de + "."));
3018
+ var ue = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
3019
+ return new z("Invalid " + D + " `" + q + "` supplied to " + ("`" + S + "`" + ue + "."));
3017
3020
  }
3018
3021
  return A(B);
3019
3022
  }
3020
- function E() {
3021
- function p(C, W, B, $, U) {
3023
+ function P() {
3024
+ function m(C, W, B, $, U) {
3022
3025
  return Z(C[W]) ? null : new z("Invalid " + $ + " `" + U + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
3023
3026
  }
3024
- return A(p);
3027
+ return A(m);
3025
3028
  }
3026
- function _(p, C, W, B, $) {
3029
+ function _(m, C, W, B, $) {
3027
3030
  return new z(
3028
- (p || "React class") + ": " + C + " type `" + W + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + $ + "`."
3031
+ (m || "React class") + ": " + C + " type `" + W + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + $ + "`."
3029
3032
  );
3030
3033
  }
3031
- function k(p) {
3034
+ function O(m) {
3032
3035
  function C(W, B, $, U, S) {
3033
- var I = W[B], q = re(I);
3036
+ var D = W[B], q = re(D);
3034
3037
  if (q !== "object")
3035
3038
  return new z("Invalid " + U + " `" + S + "` of type `" + q + "` " + ("supplied to `" + $ + "`, expected `object`."));
3036
- for (var J in p) {
3037
- var K = p[J];
3039
+ for (var J in m) {
3040
+ var K = m[J];
3038
3041
  if (typeof K != "function")
3039
3042
  return _($, U, S, J, G(K));
3040
- var ae = K(I, J, $, U, S + "." + J, r);
3043
+ var ae = K(D, J, $, U, S + "." + J, r);
3041
3044
  if (ae)
3042
3045
  return ae;
3043
3046
  }
@@ -3045,22 +3048,22 @@ function es() {
3045
3048
  }
3046
3049
  return A(C);
3047
3050
  }
3048
- function D(p) {
3051
+ function I(m) {
3049
3052
  function C(W, B, $, U, S) {
3050
- var I = W[B], q = re(I);
3053
+ var D = W[B], q = re(D);
3051
3054
  if (q !== "object")
3052
3055
  return new z("Invalid " + U + " `" + S + "` of type `" + q + "` " + ("supplied to `" + $ + "`, expected `object`."));
3053
- var J = n({}, W[B], p);
3056
+ var J = n({}, W[B], m);
3054
3057
  for (var K in J) {
3055
- var ae = p[K];
3056
- if (s(p, K) && typeof ae != "function")
3058
+ var ae = m[K];
3059
+ if (s(m, K) && typeof ae != "function")
3057
3060
  return _($, U, S, K, G(ae));
3058
3061
  if (!ae)
3059
3062
  return new z(
3060
3063
  "Invalid " + U + " `" + S + "` key `" + K + "` supplied to `" + $ + "`.\nBad object: " + JSON.stringify(W[B], null, " ") + `
3061
- Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
3064
+ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
3062
3065
  );
3063
- var j = ae(I, K, $, U, S + "." + K, r);
3066
+ var j = ae(D, K, $, U, S + "." + K, r);
3064
3067
  if (j)
3065
3068
  return j;
3066
3069
  }
@@ -3068,23 +3071,23 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
3068
3071
  }
3069
3072
  return A(C);
3070
3073
  }
3071
- function Z(p) {
3072
- switch (typeof p) {
3074
+ function Z(m) {
3075
+ switch (typeof m) {
3073
3076
  case "number":
3074
3077
  case "string":
3075
3078
  case "undefined":
3076
3079
  return !0;
3077
3080
  case "boolean":
3078
- return !p;
3081
+ return !m;
3079
3082
  case "object":
3080
- if (Array.isArray(p))
3081
- return p.every(Z);
3082
- if (p === null || u(p))
3083
+ if (Array.isArray(m))
3084
+ return m.every(Z);
3085
+ if (m === null || u(m))
3083
3086
  return !0;
3084
- var C = v(p);
3087
+ var C = p(m);
3085
3088
  if (C) {
3086
- var W = C.call(p), B;
3087
- if (C !== p.entries) {
3089
+ var W = C.call(m), B;
3090
+ if (C !== m.entries) {
3088
3091
  for (; !(B = W.next()).done; )
3089
3092
  if (!Z(B.value))
3090
3093
  return !1;
@@ -3101,27 +3104,27 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
3101
3104
  return !1;
3102
3105
  }
3103
3106
  }
3104
- function se(p, C) {
3105
- return p === "symbol" ? !0 : C ? C["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && C instanceof Symbol : !1;
3107
+ function se(m, C) {
3108
+ return m === "symbol" ? !0 : C ? C["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && C instanceof Symbol : !1;
3106
3109
  }
3107
- function re(p) {
3108
- var C = typeof p;
3109
- return Array.isArray(p) ? "array" : p instanceof RegExp ? "object" : se(C, p) ? "symbol" : C;
3110
+ function re(m) {
3111
+ var C = typeof m;
3112
+ return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : se(C, m) ? "symbol" : C;
3110
3113
  }
3111
- function G(p) {
3112
- if (typeof p > "u" || p === null)
3113
- return "" + p;
3114
- var C = re(p);
3114
+ function G(m) {
3115
+ if (typeof m > "u" || m === null)
3116
+ return "" + m;
3117
+ var C = re(m);
3115
3118
  if (C === "object") {
3116
- if (p instanceof Date)
3119
+ if (m instanceof Date)
3117
3120
  return "date";
3118
- if (p instanceof RegExp)
3121
+ if (m instanceof RegExp)
3119
3122
  return "regexp";
3120
3123
  }
3121
3124
  return C;
3122
3125
  }
3123
- function ce(p) {
3124
- var C = G(p);
3126
+ function he(m) {
3127
+ var C = G(m);
3125
3128
  switch (C) {
3126
3129
  case "array":
3127
3130
  case "object":
@@ -3134,35 +3137,35 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
3134
3137
  return C;
3135
3138
  }
3136
3139
  }
3137
- function le(p) {
3138
- return !p.constructor || !p.constructor.name ? P : p.constructor.name;
3140
+ function ce(m) {
3141
+ return !m.constructor || !m.constructor.name ? E : m.constructor.name;
3139
3142
  }
3140
- return N.checkPropTypes = a, N.resetWarningCache = a.resetWarningCache, N.PropTypes = N, N;
3143
+ return L.checkPropTypes = a, L.resetWarningCache = a.resetWarningCache, L.PropTypes = L, L;
3141
3144
  }, at;
3142
3145
  }
3143
- var it, Yt;
3144
- function ts() {
3145
- if (Yt) return it;
3146
- Yt = 1;
3147
- var e = vt();
3146
+ var it, Vt;
3147
+ function Jr() {
3148
+ if (Vt) return it;
3149
+ Vt = 1;
3150
+ var e = pt();
3148
3151
  function n() {
3149
3152
  }
3150
3153
  function r() {
3151
3154
  }
3152
3155
  return r.resetWarningCache = n, it = function() {
3153
- function s(i, u, d, f, h, v) {
3154
- if (v !== e) {
3155
- var P = new Error(
3156
+ function s(c, u, d, f, h, p) {
3157
+ if (p !== e) {
3158
+ var E = new Error(
3156
3159
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
3157
3160
  );
3158
- throw P.name = "Invariant Violation", P;
3161
+ throw E.name = "Invariant Violation", E;
3159
3162
  }
3160
3163
  }
3161
3164
  s.isRequired = s;
3162
3165
  function a() {
3163
3166
  return s;
3164
3167
  }
3165
- var c = {
3168
+ var i = {
3166
3169
  array: s,
3167
3170
  bigint: s,
3168
3171
  bool: s,
@@ -3185,22 +3188,22 @@ function ts() {
3185
3188
  checkPropTypes: r,
3186
3189
  resetWarningCache: n
3187
3190
  };
3188
- return c.PropTypes = c, c;
3191
+ return i.PropTypes = i, i;
3189
3192
  }, it;
3190
3193
  }
3191
3194
  if (process.env.NODE_ENV !== "production") {
3192
- var ns = wn(), rs = !0;
3193
- ut.exports = es()(ns.isElement, rs);
3195
+ var Zr = Cn(), Qr = !0;
3196
+ ut.exports = Gr()(Zr.isElement, Qr);
3194
3197
  } else
3195
- ut.exports = ts()();
3196
- var ss = ut.exports;
3197
- const X = /* @__PURE__ */ Kt(ss), os = (e, n, r) => {
3198
+ ut.exports = Jr()();
3199
+ var es = ut.exports;
3200
+ const X = /* @__PURE__ */ Pn(es), ts = (e, n, r) => {
3198
3201
  const s = e[n];
3199
3202
  if (s && isNaN(Date.parse(s)))
3200
3203
  return new Error(
3201
3204
  `Invalid prop \`${n}\` supplied to \`${r}\`. Expected a valid date string (ISO 8601) but received \`${s}\`.`
3202
3205
  );
3203
- }, Ut = (e, n, r) => {
3206
+ }, Yt = (e, n, r) => {
3204
3207
  const s = e[n];
3205
3208
  try {
3206
3209
  new URL(s);
@@ -3210,87 +3213,86 @@ const X = /* @__PURE__ */ Kt(ss), os = (e, n, r) => {
3210
3213
  `Invalid prop \`${n}\` supplied to \`${r}\`. Expected a valid URL but received \`${s}\`.`
3211
3214
  );
3212
3215
  }
3213
- }, Xe = (e) => {
3214
- Qr(Xe.propTypes, e, "prop", Xe.name);
3215
- const {
3216
- files: n,
3217
- fileUploadConfig: r,
3218
- isLoading: s,
3219
- onCreateFolder: a,
3220
- onFileUploading: c = () => {
3221
- },
3222
- onFileUploaded: i = () => {
3223
- },
3224
- onPaste: u,
3225
- onRename: d,
3226
- onDownload: f,
3227
- onDelete: h = () => null,
3228
- onLayoutChange: v = () => {
3229
- },
3230
- onRefresh: P,
3231
- onFileOpen: N = () => {
3232
- },
3233
- onError: M = () => {
3234
- },
3235
- layout: z = "grid",
3236
- enableFilePreview: A = !0,
3237
- maxFileSize: b,
3238
- filePreviewPath: R,
3239
- acceptedFileTypes: g,
3240
- height: x = "600px",
3241
- width: l = "100%",
3242
- initialPath: m = "",
3243
- filePreviewComponent: O,
3244
- primaryColor: y = "#6155b4",
3245
- fontFamily: w = "Nunito Sans, sans-serif"
3246
- } = e, E = Ur(), { containerRef: _, colSizes: k, isDragging: D, handleMouseMove: Z, handleMouseUp: se, handleMouseDown: re } = qr(20, 80), G = {
3247
- "--file-manager-font-family": w,
3248
- "--file-manager-primary-color": y,
3249
- height: x,
3250
- width: l
3216
+ }, wn = ({
3217
+ files: e,
3218
+ fileUploadConfig: n,
3219
+ isLoading: r,
3220
+ onCreateFolder: s,
3221
+ onFileUploading: a = () => {
3222
+ },
3223
+ onFileUploaded: i = () => {
3224
+ },
3225
+ onPaste: c,
3226
+ onRename: u,
3227
+ onDownload: d,
3228
+ onDelete: f = () => null,
3229
+ onLayoutChange: h = () => {
3230
+ },
3231
+ onRefresh: p,
3232
+ onFileOpen: E = () => {
3233
+ },
3234
+ onError: L = () => {
3235
+ },
3236
+ layout: R = "grid",
3237
+ enableFilePreview: z = !0,
3238
+ maxFileSize: A,
3239
+ filePreviewPath: b,
3240
+ acceptedFileTypes: M,
3241
+ height: g = "600px",
3242
+ width: x = "100%",
3243
+ initialPath: l = "",
3244
+ filePreviewComponent: v,
3245
+ primaryColor: k = "#6155b4",
3246
+ fontFamily: y = "Nunito Sans, sans-serif"
3247
+ }) => {
3248
+ const w = Vr(), { containerRef: P, colSizes: _, isDragging: O, handleMouseMove: I, handleMouseUp: Z, handleMouseDown: se } = Yr(20, 80), re = {
3249
+ "--file-manager-font-family": y,
3250
+ "--file-manager-primary-color": k,
3251
+ height: g,
3252
+ width: x
3251
3253
  };
3252
- return /* @__PURE__ */ t.jsxs("main", { className: "file-explorer", onContextMenu: (ce) => ce.preventDefault(), style: G, children: [
3253
- /* @__PURE__ */ t.jsx(pt, { loading: s }),
3254
- /* @__PURE__ */ t.jsx(Zn, { filesData: n, onError: M, children: /* @__PURE__ */ t.jsx(Qn, { initialPath: m, children: /* @__PURE__ */ t.jsx(er, { onDownload: f, children: /* @__PURE__ */ t.jsx(tr, { onPaste: u, children: /* @__PURE__ */ t.jsxs(Gn, { layout: z, children: [
3254
+ return /* @__PURE__ */ t.jsxs("main", { className: "file-explorer", onContextMenu: (G) => G.preventDefault(), style: re, children: [
3255
+ /* @__PURE__ */ t.jsx(ft, { loading: r }),
3256
+ /* @__PURE__ */ t.jsx(Gn, { filesData: e, onError: L, children: /* @__PURE__ */ t.jsx(Jn, { initialPath: l, children: /* @__PURE__ */ t.jsx(Zn, { onDownload: d, children: /* @__PURE__ */ t.jsx(Qn, { onPaste: c, children: /* @__PURE__ */ t.jsxs(Kn, { layout: R, children: [
3255
3257
  /* @__PURE__ */ t.jsx(
3256
- fn,
3258
+ un,
3257
3259
  {
3258
3260
  allowCreateFolder: !0,
3259
3261
  allowUploadFile: !0,
3260
- onLayoutChange: v,
3261
- onRefresh: P,
3262
- triggerAction: E
3262
+ onLayoutChange: h,
3263
+ onRefresh: p,
3264
+ triggerAction: w
3263
3265
  }
3264
3266
  ),
3265
3267
  /* @__PURE__ */ t.jsxs(
3266
3268
  "section",
3267
3269
  {
3268
- ref: _,
3269
- onMouseMove: Z,
3270
- onMouseUp: se,
3270
+ ref: P,
3271
+ onMouseMove: I,
3272
+ onMouseUp: Z,
3271
3273
  className: "files-container",
3272
3274
  children: [
3273
- /* @__PURE__ */ t.jsxs("div", { className: "navigation-pane", style: { width: k.col1 + "%" }, children: [
3274
- /* @__PURE__ */ t.jsx(mn, {}),
3275
+ /* @__PURE__ */ t.jsxs("div", { className: "navigation-pane", style: { width: _.col1 + "%" }, children: [
3276
+ /* @__PURE__ */ t.jsx(hn, {}),
3275
3277
  /* @__PURE__ */ t.jsx(
3276
3278
  "div",
3277
3279
  {
3278
- className: `sidebar-resize ${D ? "sidebar-dragging" : ""}`,
3279
- onMouseDown: re
3280
+ className: `sidebar-resize ${O ? "sidebar-dragging" : ""}`,
3281
+ onMouseDown: se
3280
3282
  }
3281
3283
  )
3282
3284
  ] }),
3283
- /* @__PURE__ */ t.jsxs("div", { className: "folders-preview", style: { width: k.col2 + "%" }, children: [
3284
- /* @__PURE__ */ t.jsx(vn, {}),
3285
+ /* @__PURE__ */ t.jsxs("div", { className: "folders-preview", style: { width: _.col2 + "%" }, children: [
3286
+ /* @__PURE__ */ t.jsx(pn, {}),
3285
3287
  /* @__PURE__ */ t.jsx(
3286
- bn,
3288
+ jn,
3287
3289
  {
3288
- onCreateFolder: a,
3289
- onRename: d,
3290
- onFileOpen: N,
3291
- onRefresh: P,
3292
- enableFilePreview: A,
3293
- triggerAction: E
3290
+ onCreateFolder: s,
3291
+ onRename: u,
3292
+ onFileOpen: E,
3293
+ onRefresh: p,
3294
+ enableFilePreview: z,
3295
+ triggerAction: w
3294
3296
  }
3295
3297
  )
3296
3298
  ] })
@@ -3298,36 +3300,36 @@ const X = /* @__PURE__ */ Kt(ss), os = (e, n, r) => {
3298
3300
  }
3299
3301
  ),
3300
3302
  /* @__PURE__ */ t.jsx(
3301
- Yr,
3303
+ Wr,
3302
3304
  {
3303
- fileUploadConfig: r,
3304
- onFileUploading: c,
3305
+ fileUploadConfig: n,
3306
+ onFileUploading: a,
3305
3307
  onFileUploaded: i,
3306
- onDelete: h,
3307
- onRefresh: P,
3308
- maxFileSize: b,
3309
- filePreviewPath: R,
3310
- filePreviewComponent: O,
3311
- acceptedFileTypes: g,
3312
- triggerAction: E
3308
+ onDelete: f,
3309
+ onRefresh: p,
3310
+ maxFileSize: A,
3311
+ filePreviewPath: b,
3312
+ filePreviewComponent: v,
3313
+ acceptedFileTypes: M,
3314
+ triggerAction: w
3313
3315
  }
3314
3316
  )
3315
3317
  ] }) }) }) }) })
3316
3318
  ] });
3317
3319
  };
3318
- Xe.displayName = "FileManager";
3319
- Xe.propTypes = {
3320
+ wn.displayName = "FileManager";
3321
+ wn.propTypes = {
3320
3322
  files: X.arrayOf(
3321
3323
  X.shape({
3322
3324
  name: X.string.isRequired,
3323
3325
  isDirectory: X.bool.isRequired,
3324
3326
  path: X.string.isRequired,
3325
- updatedAt: os,
3327
+ updatedAt: ts,
3326
3328
  size: X.number
3327
3329
  })
3328
3330
  ).isRequired,
3329
3331
  fileUploadConfig: X.shape({
3330
- url: Ut,
3332
+ url: Yt,
3331
3333
  headers: X.objectOf(X.string)
3332
3334
  }),
3333
3335
  isLoading: X.bool,
@@ -3345,7 +3347,7 @@ Xe.propTypes = {
3345
3347
  layout: X.oneOf(["grid", "list"]),
3346
3348
  maxFileSize: X.number,
3347
3349
  enableFilePreview: X.bool,
3348
- filePreviewPath: Ut,
3350
+ filePreviewPath: Yt,
3349
3351
  acceptedFileTypes: X.string,
3350
3352
  height: X.oneOfType([X.string, X.number]),
3351
3353
  width: X.oneOfType([X.string, X.number]),
@@ -3355,5 +3357,5 @@ Xe.propTypes = {
3355
3357
  fontFamily: X.string
3356
3358
  };
3357
3359
  export {
3358
- Xe as FileManager
3360
+ wn as FileManager
3359
3361
  };