@cubone/react-file-manager 1.26.2 → 1.26.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -568,15 +568,15 @@ class Ke extends Je {
568
568
  } = this.extractFromKey(e[e.length - 1], t), a = l[l.length - 1], d = t.lng || this.language, u = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
569
569
  if ((d == null ? void 0 : d.toLowerCase()) === "cimode") {
570
570
  if (u) {
571
- const S = t.nsSeparator || this.options.nsSeparator;
571
+ const C = t.nsSeparator || this.options.nsSeparator;
572
572
  return s ? {
573
- res: `${a}${S}${r}`,
573
+ res: `${a}${C}${r}`,
574
574
  usedKey: r,
575
575
  exactUsedKey: r,
576
576
  usedLng: d,
577
577
  usedNS: a,
578
578
  usedParams: this.getUsedParamsDetails(t)
579
- } : `${a}${S}${r}`;
579
+ } : `${a}${C}${r}`;
580
580
  }
581
581
  return s ? {
582
582
  res: r,
@@ -587,29 +587,29 @@ class Ke extends Je {
587
587
  usedParams: this.getUsedParamsDetails(t)
588
588
  } : r;
589
589
  }
590
- const p = this.resolve(e, t);
591
- let f = p == null ? void 0 : p.res;
592
- const h = (p == null ? void 0 : p.usedKey) || r, m = (p == null ? void 0 : p.exactUsedKey) || r, v = ["[object Number]", "[object Function]", "[object RegExp]"], C = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, N = !this.i18nFormat || this.i18nFormat.handleAsObject, O = t.count !== void 0 && !V(t.count), F = Ke.hasDefaultValue(t), L = O ? this.pluralResolver.getSuffix(d, t.count, t) : "", g = t.ordinal && O ? this.pluralResolver.getSuffix(d, t.count, {
590
+ const f = this.resolve(e, t);
591
+ let p = f == null ? void 0 : f.res;
592
+ const h = (f == null ? void 0 : f.usedKey) || r, m = (f == null ? void 0 : f.exactUsedKey) || r, v = ["[object Number]", "[object Function]", "[object RegExp]"], S = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, N = !this.i18nFormat || this.i18nFormat.handleAsObject, O = t.count !== void 0 && !V(t.count), F = Ke.hasDefaultValue(t), L = O ? this.pluralResolver.getSuffix(d, t.count, t) : "", g = t.ordinal && O ? this.pluralResolver.getSuffix(d, t.count, {
593
593
  ordinal: !1
594
594
  }) : "", T = O && !t.ordinal && t.count === 0, x = T && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${L}`] || t[`defaultValue${g}`] || t.defaultValue;
595
- let w = f;
596
- N && !f && F && (w = x);
595
+ let w = p;
596
+ N && !p && F && (w = x);
597
597
  const $ = Ot(w), b = Object.prototype.toString.apply(w);
598
- if (N && w && $ && v.indexOf(b) < 0 && !(V(C) && Array.isArray(w))) {
598
+ if (N && w && $ && v.indexOf(b) < 0 && !(V(S) && Array.isArray(w))) {
599
599
  if (!t.returnObjects && !this.options.returnObjects) {
600
600
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
601
- const S = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, w, {
601
+ const C = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, w, {
602
602
  ...t,
603
603
  ns: l
604
604
  }) : `key '${r} (${this.language})' returned an object instead of string.`;
605
- return s ? (p.res = S, p.usedParams = this.getUsedParamsDetails(t), p) : S;
605
+ return s ? (f.res = C, f.usedParams = this.getUsedParamsDetails(t), f) : C;
606
606
  }
607
607
  if (i) {
608
- const S = Array.isArray(w), E = S ? [] : {}, M = S ? m : h;
608
+ const C = Array.isArray(w), E = C ? [] : {}, M = C ? m : h;
609
609
  for (const k in w)
610
610
  if (Object.prototype.hasOwnProperty.call(w, k)) {
611
611
  const _ = `${M}${i}${k}`;
612
- F && !f ? E[k] = this.translate(_, {
612
+ F && !p ? E[k] = this.translate(_, {
613
613
  ...t,
614
614
  defaultValue: Ot(x) ? x[k] : void 0,
615
615
  joinArrays: !1,
@@ -620,16 +620,16 @@ class Ke extends Je {
620
620
  ns: l
621
621
  }), E[k] === _ && (E[k] = w[k]);
622
622
  }
623
- f = E;
623
+ p = E;
624
624
  }
625
- } else if (N && V(C) && Array.isArray(f))
626
- f = f.join(C), f && (f = this.extendTranslation(f, e, t, o));
625
+ } else if (N && V(S) && Array.isArray(p))
626
+ p = p.join(S), p && (p = this.extendTranslation(p, e, t, o));
627
627
  else {
628
- let S = !1, E = !1;
629
- !this.isValidLookup(f) && F && (S = !0, f = x), this.isValidLookup(f) || (E = !0, f = r);
630
- const k = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && E ? void 0 : f, _ = F && x !== f && this.options.updateMissing;
631
- if (E || S || _) {
632
- if (this.logger.log(_ ? "updateKey" : "missingKey", d, a, r, _ ? x : f), i) {
628
+ let C = !1, E = !1;
629
+ !this.isValidLookup(p) && F && (C = !0, p = x), this.isValidLookup(p) || (E = !0, p = r);
630
+ const k = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && E ? void 0 : p, _ = F && x !== p && this.options.updateMissing;
631
+ if (E || C || _) {
632
+ if (this.logger.log(_ ? "updateKey" : "missingKey", d, a, r, _ ? x : p), i) {
633
633
  const K = this.resolve(r, {
634
634
  ...t,
635
635
  keySeparator: !1
@@ -644,8 +644,8 @@ class Ke extends Je {
644
644
  else this.options.saveMissingTo === "all" ? J = this.languageUtils.toResolveHierarchy(t.lng || this.language) : J.push(t.lng || this.language);
645
645
  const re = (K, y, P) => {
646
646
  var j;
647
- const B = F && P !== f ? P : k;
648
- this.options.missingKeyHandler ? this.options.missingKeyHandler(K, a, y, B, _, t) : (j = this.backendConnector) != null && j.saveMissing && this.backendConnector.saveMissing(K, a, y, B, _, t), this.emit("missingKey", K, a, y, f);
647
+ const B = F && P !== p ? P : k;
648
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(K, a, y, B, _, t) : (j = this.backendConnector) != null && j.saveMissing && this.backendConnector.saveMissing(K, a, y, B, _, t), this.emit("missingKey", K, a, y, p);
649
649
  };
650
650
  this.options.saveMissing && (this.options.saveMissingPlurals && O ? J.forEach((K) => {
651
651
  const y = this.pluralResolver.getSuffixes(K, t);
@@ -654,9 +654,9 @@ class Ke extends Je {
654
654
  });
655
655
  }) : re(J, r, x));
656
656
  }
657
- f = this.extendTranslation(f, e, t, p, o), E && f === r && this.options.appendNamespaceToMissingKey && (f = `${a}:${r}`), (E || S) && this.options.parseMissingKeyHandler && (f = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${a}:${r}` : r, S ? f : void 0));
657
+ p = this.extendTranslation(p, e, t, f, o), E && p === r && this.options.appendNamespaceToMissingKey && (p = `${a}:${r}`), (E || C) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${a}:${r}` : r, C ? p : void 0));
658
658
  }
659
- return s ? (p.res = f, p.usedParams = this.getUsedParamsDetails(t), p) : f;
659
+ return s ? (f.res = p, f.usedParams = this.getUsedParamsDetails(t), f) : p;
660
660
  }
661
661
  extendTranslation(e, t, o, s, i) {
662
662
  var d, u;
@@ -676,23 +676,23 @@ class Ke extends Je {
676
676
  ...o.interpolation
677
677
  }
678
678
  });
679
- const p = V(e) && (((u = o == null ? void 0 : o.interpolation) == null ? void 0 : u.skipOnVariables) !== void 0 ? o.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
680
- let f;
681
- if (p) {
679
+ const f = V(e) && (((u = o == null ? void 0 : o.interpolation) == null ? void 0 : u.skipOnVariables) !== void 0 ? o.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
680
+ let p;
681
+ if (f) {
682
682
  const m = e.match(this.interpolator.nestingRegexp);
683
- f = m && m.length;
683
+ p = m && m.length;
684
684
  }
685
685
  let h = o.replace && !V(o.replace) ? o.replace : o;
686
686
  if (this.options.interpolation.defaultVariables && (h = {
687
687
  ...this.options.interpolation.defaultVariables,
688
688
  ...h
689
- }), e = this.interpolator.interpolate(e, h, o.lng || this.language || s.usedLng, o), p) {
689
+ }), e = this.interpolator.interpolate(e, h, o.lng || this.language || s.usedLng, o), f) {
690
690
  const m = e.match(this.interpolator.nestingRegexp), v = m && m.length;
691
- f < v && (o.nest = !1);
691
+ p < v && (o.nest = !1);
692
692
  }
693
693
  !o.lng && s && s.res && (o.lng = this.language || s.usedLng), o.nest !== !1 && (e = this.interpolator.nest(e, function() {
694
- for (var m = arguments.length, v = new Array(m), C = 0; C < m; C++)
695
- v[C] = arguments[C];
694
+ for (var m = arguments.length, v = new Array(m), S = 0; S < m; S++)
695
+ v[S] = arguments[S];
696
696
  return (i == null ? void 0 : i[0]) === v[0] && !o.context ? (r.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${t[0]}`), null) : r.translate(...v, t);
697
697
  }, o)), o.interpolation && this.interpolator.reset();
698
698
  }
@@ -711,30 +711,30 @@ class Ke extends Je {
711
711
  if (this.isValidLookup(o)) return;
712
712
  const d = this.extractFromKey(a, t), u = d.key;
713
713
  s = u;
714
- let p = d.namespaces;
715
- this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
716
- const f = t.count !== void 0 && !V(t.count), h = f && !t.ordinal && t.count === 0, m = t.context !== void 0 && (V(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
717
- p.forEach((C) => {
714
+ let f = d.namespaces;
715
+ this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
716
+ const p = t.count !== void 0 && !V(t.count), h = p && !t.ordinal && t.count === 0, m = t.context !== void 0 && (V(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
717
+ f.forEach((S) => {
718
718
  var N, O;
719
- this.isValidLookup(o) || (l = C, !Rt[`${v[0]}-${C}`] && ((N = this.utils) != null && N.hasLoadedNamespace) && !((O = this.utils) != null && O.hasLoadedNamespace(l)) && (Rt[`${v[0]}-${C}`] = !0, this.logger.warn(`key "${s}" for languages "${v.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach((F) => {
719
+ this.isValidLookup(o) || (l = S, !Rt[`${v[0]}-${S}`] && ((N = this.utils) != null && N.hasLoadedNamespace) && !((O = this.utils) != null && O.hasLoadedNamespace(l)) && (Rt[`${v[0]}-${S}`] = !0, this.logger.warn(`key "${s}" for languages "${v.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach((F) => {
720
720
  var T;
721
721
  if (this.isValidLookup(o)) return;
722
722
  r = F;
723
723
  const L = [u];
724
724
  if ((T = this.i18nFormat) != null && T.addLookupKeys)
725
- this.i18nFormat.addLookupKeys(L, u, F, C, t);
725
+ this.i18nFormat.addLookupKeys(L, u, F, S, t);
726
726
  else {
727
727
  let x;
728
- f && (x = this.pluralResolver.getSuffix(F, t.count, t));
728
+ p && (x = this.pluralResolver.getSuffix(F, t.count, t));
729
729
  const w = `${this.options.pluralSeparator}zero`, $ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
730
- if (f && (L.push(u + x), t.ordinal && x.indexOf($) === 0 && L.push(u + x.replace($, this.options.pluralSeparator)), h && L.push(u + w)), m) {
730
+ if (p && (L.push(u + x), t.ordinal && x.indexOf($) === 0 && L.push(u + x.replace($, this.options.pluralSeparator)), h && L.push(u + w)), m) {
731
731
  const b = `${u}${this.options.contextSeparator}${t.context}`;
732
- L.push(b), f && (L.push(b + x), t.ordinal && x.indexOf($) === 0 && L.push(b + x.replace($, this.options.pluralSeparator)), h && L.push(b + w));
732
+ L.push(b), p && (L.push(b + x), t.ordinal && x.indexOf($) === 0 && L.push(b + x.replace($, this.options.pluralSeparator)), h && L.push(b + w));
733
733
  }
734
734
  }
735
735
  let g;
736
736
  for (; g = L.pop(); )
737
- this.isValidLookup(o) || (i = g, o = this.getResource(F, C, g, t));
737
+ this.isValidLookup(o) || (i = g, o = this.getResource(F, S, g, t));
738
738
  }));
739
739
  });
740
740
  }), {
@@ -930,16 +930,16 @@ class So {
930
930
  suffixEscaped: a,
931
931
  formatSeparator: d,
932
932
  unescapeSuffix: u,
933
- unescapePrefix: p,
934
- nestingPrefix: f,
933
+ unescapePrefix: f,
934
+ nestingPrefix: p,
935
935
  nestingPrefixEscaped: h,
936
936
  nestingSuffix: m,
937
937
  nestingSuffixEscaped: v,
938
- nestingOptionsSeparator: C,
938
+ nestingOptionsSeparator: S,
939
939
  maxReplaces: N,
940
940
  alwaysFormat: O
941
941
  } = e.interpolation;
942
- this.escape = t !== void 0 ? t : vo, this.escapeValue = o !== void 0 ? o : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = i ? Se(i) : r || "{{", this.suffix = l ? Se(l) : a || "}}", this.formatSeparator = d || ",", this.unescapePrefix = u ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = f ? Se(f) : h || Se("$t("), this.nestingSuffix = m ? Se(m) : v || Se(")"), this.nestingOptionsSeparator = C || ",", this.maxReplaces = N || 1e3, this.alwaysFormat = O !== void 0 ? O : !1, this.resetRegExp();
942
+ this.escape = t !== void 0 ? t : vo, this.escapeValue = o !== void 0 ? o : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = i ? Se(i) : r || "{{", this.suffix = l ? Se(l) : a || "}}", this.formatSeparator = d || ",", this.unescapePrefix = u ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = p ? Se(p) : h || Se("$t("), this.nestingSuffix = m ? Se(m) : v || Se(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = N || 1e3, this.alwaysFormat = O !== void 0 ? O : !1, this.resetRegExp();
943
943
  }
944
944
  reset() {
945
945
  this.options && this.init(this.options);
@@ -960,15 +960,15 @@ class So {
960
960
  interpolationkey: m
961
961
  }) : O;
962
962
  }
963
- const v = m.split(this.formatSeparator), C = v.shift().trim(), N = v.join(this.formatSeparator).trim();
964
- return this.format(Dt(t, a, C, this.options.keySeparator, this.options.ignoreJSONStructure), N, o, {
963
+ const v = m.split(this.formatSeparator), S = v.shift().trim(), N = v.join(this.formatSeparator).trim();
964
+ return this.format(Dt(t, a, S, this.options.keySeparator, this.options.ignoreJSONStructure), N, o, {
965
965
  ...s,
966
966
  ...t,
967
- interpolationkey: C
967
+ interpolationkey: S
968
968
  });
969
969
  };
970
970
  this.resetRegExp();
971
- const u = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, p = ((h = s == null ? void 0 : s.interpolation) == null ? void 0 : h.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
971
+ const u = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, f = ((h = s == null ? void 0 : s.interpolation) == null ? void 0 : h.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
972
972
  return [{
973
973
  regex: this.regexpUnescape,
974
974
  safeValue: (m) => tt(m)
@@ -984,14 +984,14 @@ class So {
984
984
  r = V(N) ? N : "";
985
985
  } else if (s && Object.prototype.hasOwnProperty.call(s, v))
986
986
  r = "";
987
- else if (p) {
987
+ else if (f) {
988
988
  r = i[0];
989
989
  continue;
990
990
  } else
991
991
  this.logger.warn(`missed to pass in variable ${v} for interpolating ${e}`), r = "";
992
992
  else !V(r) && !this.useRawValueToEscape && (r = Pt(r));
993
- const C = m.safeValue(r);
994
- if (e = e.replace(i[0], C), p ? (m.regex.lastIndex += r.length, m.regex.lastIndex -= i[0].length) : m.regex.lastIndex = 0, l++, l >= this.maxReplaces)
993
+ const S = m.safeValue(r);
994
+ if (e = e.replace(i[0], S), f ? (m.regex.lastIndex += r.length, m.regex.lastIndex -= i[0].length) : m.regex.lastIndex = 0, l++, l >= this.maxReplaces)
995
995
  break;
996
996
  }
997
997
  }), e;
@@ -1001,18 +1001,18 @@ class So {
1001
1001
  const l = (a, d) => {
1002
1002
  const u = this.nestingOptionsSeparator;
1003
1003
  if (a.indexOf(u) < 0) return a;
1004
- const p = a.split(new RegExp(`${u}[ ]*{`));
1005
- let f = `{${p[1]}`;
1006
- a = p[0], f = this.interpolate(f, r);
1007
- const h = f.match(/'/g), m = f.match(/"/g);
1008
- (((h == null ? void 0 : h.length) ?? 0) % 2 === 0 && !m || m.length % 2 !== 0) && (f = f.replace(/'/g, '"'));
1004
+ const f = a.split(new RegExp(`${u}[ ]*{`));
1005
+ let p = `{${f[1]}`;
1006
+ a = f[0], p = this.interpolate(p, r);
1007
+ const h = p.match(/'/g), m = p.match(/"/g);
1008
+ (((h == null ? void 0 : h.length) ?? 0) % 2 === 0 && !m || m.length % 2 !== 0) && (p = p.replace(/'/g, '"'));
1009
1009
  try {
1010
- r = JSON.parse(f), d && (r = {
1010
+ r = JSON.parse(p), d && (r = {
1011
1011
  ...d,
1012
1012
  ...r
1013
1013
  });
1014
1014
  } catch (v) {
1015
- return this.logger.warn(`failed parsing options string in nesting for key ${a}`, v), `${a}${u}${f}`;
1015
+ return this.logger.warn(`failed parsing options string in nesting for key ${a}`, v), `${a}${u}${p}`;
1016
1016
  }
1017
1017
  return r.defaultValue && r.defaultValue.indexOf(this.prefix) > -1 && delete r.defaultValue, a;
1018
1018
  };
@@ -1023,11 +1023,11 @@ class So {
1023
1023
  }, r = r.replace && !V(r.replace) ? r.replace : r, r.applyPostProcessor = !1, delete r.defaultValue;
1024
1024
  let d = !1;
1025
1025
  if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
1026
- const u = s[1].split(this.formatSeparator).map((p) => p.trim());
1026
+ const u = s[1].split(this.formatSeparator).map((f) => f.trim());
1027
1027
  s[1] = u.shift(), a = u, d = !0;
1028
1028
  }
1029
1029
  if (i = t(l.call(this, s[1].trim(), r), r), i && s[0] === e && !V(i)) return i;
1030
- V(i) || (i = Pt(i)), i || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), i = ""), d && (i = a.reduce((u, p) => this.format(u, p, o.lng, {
1030
+ V(i) || (i = Pt(i)), i || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), i = ""), d && (i = a.reduce((u, f) => this.format(u, f, o.lng, {
1031
1031
  ...o,
1032
1032
  interpolationkey: s[1].trim()
1033
1033
  }), i.trim())), e = e.replace(s[0], i), this.regexp.lastIndex = 0;
@@ -1123,16 +1123,16 @@ class No {
1123
1123
  i[0] = [i[0], ...i.splice(1, l)].join(this.formatSeparator);
1124
1124
  }
1125
1125
  return i.reduce((l, a) => {
1126
- var p;
1126
+ var f;
1127
1127
  const {
1128
1128
  formatName: d,
1129
1129
  formatOptions: u
1130
1130
  } = Fo(a);
1131
1131
  if (this.formats[d]) {
1132
- let f = l;
1132
+ let p = l;
1133
1133
  try {
1134
- const h = ((p = s == null ? void 0 : s.formatParams) == null ? void 0 : p[s.interpolationkey]) || {}, m = h.locale || h.lng || s.locale || s.lng || o;
1135
- f = this.formats[d](l, m, {
1134
+ const h = ((f = s == null ? void 0 : s.formatParams) == null ? void 0 : f[s.interpolationkey]) || {}, m = h.locale || h.lng || s.locale || s.lng || o;
1135
+ p = this.formats[d](l, m, {
1136
1136
  ...u,
1137
1137
  ...s,
1138
1138
  ...h
@@ -1140,7 +1140,7 @@ class No {
1140
1140
  } catch (h) {
1141
1141
  this.logger.warn(h);
1142
1142
  }
1143
- return f;
1143
+ return p;
1144
1144
  } else
1145
1145
  this.logger.warn(`there was no format function for ${d}`);
1146
1146
  return l;
@@ -1160,9 +1160,9 @@ class Po extends Je {
1160
1160
  const i = {}, r = {}, l = {}, a = {};
1161
1161
  return e.forEach((d) => {
1162
1162
  let u = !0;
1163
- t.forEach((p) => {
1164
- const f = `${d}|${p}`;
1165
- !o.reload && this.store.hasResourceBundle(d, p) ? this.state[f] = 2 : this.state[f] < 0 || (this.state[f] === 1 ? r[f] === void 0 && (r[f] = !0) : (this.state[f] = 1, u = !1, r[f] === void 0 && (r[f] = !0), i[f] === void 0 && (i[f] = !0), a[p] === void 0 && (a[p] = !0)));
1163
+ t.forEach((f) => {
1164
+ const p = `${d}|${f}`;
1165
+ !o.reload && this.store.hasResourceBundle(d, f) ? this.state[p] = 2 : this.state[p] < 0 || (this.state[p] === 1 ? r[p] === void 0 && (r[p] = !0) : (this.state[p] = 1, u = !1, r[p] === void 0 && (r[p] = !0), i[p] === void 0 && (i[p] = !0), a[f] === void 0 && (a[f] = !0)));
1166
1166
  }), u || (l[d] = !0);
1167
1167
  }), (Object.keys(i).length || Object.keys(r).length) && this.queue.push({
1168
1168
  pending: r,
@@ -1187,8 +1187,8 @@ class Po extends Je {
1187
1187
  ho(a.loaded, [i], r), Eo(a, e), t && a.errors.push(t), a.pendingCount === 0 && !a.done && (Object.keys(a.loaded).forEach((d) => {
1188
1188
  l[d] || (l[d] = {});
1189
1189
  const u = a.loaded[d];
1190
- u.length && u.forEach((p) => {
1191
- l[d][p] === void 0 && (l[d][p] = !0);
1190
+ u.length && u.forEach((f) => {
1191
+ l[d][f] === void 0 && (l[d][f] = !0);
1192
1192
  });
1193
1193
  }), a.done = !0, a.errors.length ? a.callback(a.errors) : a.callback());
1194
1194
  }), this.emit("loaded", l), this.queue = this.queue.filter((a) => !a.done);
@@ -1210,8 +1210,8 @@ class Po extends Je {
1210
1210
  this.readingCalls++;
1211
1211
  const l = (d, u) => {
1212
1212
  if (this.readingCalls--, this.waitingReads.length > 0) {
1213
- const p = this.waitingReads.shift();
1214
- this.read(p.lng, p.ns, p.fcName, p.tried, p.wait, p.callback);
1213
+ const f = this.waitingReads.shift();
1214
+ this.read(f.lng, f.ns, f.fcName, f.tried, f.wait, f.callback);
1215
1215
  }
1216
1216
  if (d && u && s < this.maxRetries) {
1217
1217
  setTimeout(() => {
@@ -1260,15 +1260,15 @@ class Po extends Je {
1260
1260
  });
1261
1261
  }
1262
1262
  saveMissing(e, t, o, s, i) {
1263
- var a, d, u, p, f;
1263
+ var a, d, u, f, p;
1264
1264
  let r = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, l = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
1265
1265
  };
1266
- if ((d = (a = this.services) == null ? void 0 : a.utils) != null && d.hasLoadedNamespace && !((p = (u = this.services) == null ? void 0 : u.utils) != null && p.hasLoadedNamespace(t))) {
1266
+ if ((d = (a = this.services) == null ? void 0 : a.utils) != null && d.hasLoadedNamespace && !((f = (u = this.services) == null ? void 0 : u.utils) != null && f.hasLoadedNamespace(t))) {
1267
1267
  this.logger.warn(`did not save key "${o}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
1268
1268
  return;
1269
1269
  }
1270
1270
  if (!(o == null || o === "")) {
1271
- if ((f = this.backend) != null && f.create) {
1271
+ if ((p = this.backend) != null && p.create) {
1272
1272
  const h = {
1273
1273
  ...r,
1274
1274
  isUpdate: i
@@ -1276,7 +1276,7 @@ class Po extends Je {
1276
1276
  if (m.length < 6)
1277
1277
  try {
1278
1278
  let v;
1279
- m.length === 5 ? v = m(e, t, o, s, h) : v = m(e, t, o, s), v && typeof v.then == "function" ? v.then((C) => l(null, C)).catch(l) : l(null, v);
1279
+ m.length === 5 ? v = m(e, t, o, s, h) : v = m(e, t, o, s), v && typeof v.then == "function" ? v.then((S) => l(null, S)).catch(l) : l(null, v);
1280
1280
  } catch (v) {
1281
1281
  l(v);
1282
1282
  }
@@ -1383,21 +1383,21 @@ class Oe extends Je {
1383
1383
  this.modules.logger ? me.init(i(this.modules.logger), this.options) : me.init(null, this.options);
1384
1384
  let u;
1385
1385
  this.modules.formatter ? u = this.modules.formatter : u = No;
1386
- const p = new Mt(this.options);
1386
+ const f = new Mt(this.options);
1387
1387
  this.store = new zt(this.options.resources, this.options);
1388
- const f = this.services;
1389
- f.logger = me, f.resourceStore = this.store, f.languageUtils = p, f.pluralResolver = new Co(p, {
1388
+ const p = this.services;
1389
+ p.logger = me, p.resourceStore = this.store, p.languageUtils = f, p.pluralResolver = new Co(f, {
1390
1390
  prepend: this.options.pluralSeparator,
1391
1391
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1392
- }), u && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (f.formatter = i(u), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new So(this.options), f.utils = {
1392
+ }), u && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (p.formatter = i(u), p.formatter.init(p, this.options), this.options.interpolation.format = p.formatter.format.bind(p.formatter)), p.interpolator = new So(this.options), p.utils = {
1393
1393
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1394
- }, f.backendConnector = new Po(i(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", function(h) {
1395
- for (var m = arguments.length, v = new Array(m > 1 ? m - 1 : 0), C = 1; C < m; C++)
1396
- v[C - 1] = arguments[C];
1394
+ }, p.backendConnector = new Po(i(this.modules.backend), p.resourceStore, p, this.options), p.backendConnector.on("*", function(h) {
1395
+ for (var m = arguments.length, v = new Array(m > 1 ? m - 1 : 0), S = 1; S < m; S++)
1396
+ v[S - 1] = arguments[S];
1397
1397
  e.emit(h, ...v);
1398
- }), this.modules.languageDetector && (f.languageDetector = i(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = i(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new Ke(this.services, this.options), this.translator.on("*", function(h) {
1399
- for (var m = arguments.length, v = new Array(m > 1 ? m - 1 : 0), C = 1; C < m; C++)
1400
- v[C - 1] = arguments[C];
1398
+ }), this.modules.languageDetector && (p.languageDetector = i(this.modules.languageDetector), p.languageDetector.init && p.languageDetector.init(p, this.options.detection, this.options)), this.modules.i18nFormat && (p.i18nFormat = i(this.modules.i18nFormat), p.i18nFormat.init && p.i18nFormat.init(this)), this.translator = new Ke(this.services, this.options), this.translator.on("*", function(h) {
1399
+ for (var m = arguments.length, v = new Array(m > 1 ? m - 1 : 0), S = 1; S < m; S++)
1400
+ v[S - 1] = arguments[S];
1401
1401
  e.emit(h, ...v);
1402
1402
  }), this.modules.external.forEach((h) => {
1403
1403
  h.init && h.init(this);
@@ -1417,8 +1417,8 @@ class Oe extends Je {
1417
1417
  };
1418
1418
  });
1419
1419
  const a = Ae(), d = () => {
1420
- const u = (p, f) => {
1421
- this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), a.resolve(f), o(p, f);
1420
+ const u = (f, p) => {
1421
+ this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), a.resolve(p), o(f, p);
1422
1422
  };
1423
1423
  if (this.languages && !this.isInitialized) return u(null, this.t.bind(this));
1424
1424
  this.changeLanguage(this.options.lng, u);
@@ -1433,8 +1433,8 @@ class Oe extends Je {
1433
1433
  if ((s == null ? void 0 : s.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return o();
1434
1434
  const l = [], a = (d) => {
1435
1435
  if (!d || d === "cimode") return;
1436
- this.services.languageUtils.toResolveHierarchy(d).forEach((p) => {
1437
- p !== "cimode" && l.indexOf(p) < 0 && l.push(p);
1436
+ this.services.languageUtils.toResolveHierarchy(d).forEach((f) => {
1437
+ f !== "cimode" && l.indexOf(f) < 0 && l.push(f);
1438
1438
  });
1439
1439
  };
1440
1440
  s ? a(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((u) => a(u)), (r = (i = this.options.preload) == null ? void 0 : i.forEach) == null || r.call(i, (d) => a(d)), this.services.backendConnector.load(l, this.options.ns, (d) => {
@@ -1478,11 +1478,11 @@ class Oe extends Je {
1478
1478
  return o.t(...arguments);
1479
1479
  });
1480
1480
  }, l = (a) => {
1481
- var u, p;
1481
+ var u, f;
1482
1482
  !e && !a && this.services.languageDetector && (a = []);
1483
1483
  const d = this.services.languageUtils.getBestMatchFromCodes(V(a) ? [a] : a);
1484
- d && (this.language || i(d), this.translator.language || this.translator.changeLanguage(d), (p = (u = this.services.languageDetector) == null ? void 0 : u.cacheUserLanguage) == null || p.call(u, d)), this.loadResources(d, (f) => {
1485
- r(f, d);
1484
+ d && (this.language || i(d), this.translator.language || this.translator.changeLanguage(d), (f = (u = this.services.languageDetector) == null ? void 0 : u.cacheUserLanguage) == null || f.call(u, d)), this.loadResources(d, (p) => {
1485
+ r(p, d);
1486
1486
  });
1487
1487
  };
1488
1488
  return !e && this.services.languageDetector && !this.services.languageDetector.async ? l(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(l) : this.services.languageDetector.detect(l) : l(e), s;
@@ -1492,17 +1492,17 @@ class Oe extends Je {
1492
1492
  const i = function(r, l) {
1493
1493
  let a;
1494
1494
  if (typeof l != "object") {
1495
- for (var d = arguments.length, u = new Array(d > 2 ? d - 2 : 0), p = 2; p < d; p++)
1496
- u[p - 2] = arguments[p];
1495
+ for (var d = arguments.length, u = new Array(d > 2 ? d - 2 : 0), f = 2; f < d; f++)
1496
+ u[f - 2] = arguments[f];
1497
1497
  a = s.options.overloadTranslationOptionHandler([r, l].concat(u));
1498
1498
  } else
1499
1499
  a = {
1500
1500
  ...l
1501
1501
  };
1502
1502
  a.lng = a.lng || i.lng, a.lngs = a.lngs || i.lngs, a.ns = a.ns || i.ns, a.keyPrefix !== "" && (a.keyPrefix = a.keyPrefix || o || i.keyPrefix);
1503
- const f = s.options.keySeparator || ".";
1503
+ const p = s.options.keySeparator || ".";
1504
1504
  let h;
1505
- return a.keyPrefix && Array.isArray(r) ? h = r.map((m) => `${a.keyPrefix}${f}${m}`) : h = a.keyPrefix ? `${a.keyPrefix}${f}${r}` : r, s.t(h, a);
1505
+ return a.keyPrefix && Array.isArray(r) ? h = r.map((m) => `${a.keyPrefix}${p}${m}`) : h = a.keyPrefix ? `${a.keyPrefix}${p}${r}` : r, s.t(h, a);
1506
1506
  };
1507
1507
  return V(e) ? i.lng = e : i.lngs = e, i.ns = t, i.keyPrefix = o, i;
1508
1508
  }
@@ -1583,8 +1583,8 @@ class Oe extends Je {
1583
1583
  }, o) {
1584
1584
  const l = Object.keys(this.store.data).reduce((a, d) => (a[d] = {
1585
1585
  ...this.store.data[d]
1586
- }, Object.keys(a[d]).reduce((u, p) => (u[p] = {
1587
- ...a[d][p]
1586
+ }, Object.keys(a[d]).reduce((u, f) => (u[f] = {
1587
+ ...a[d][f]
1588
1588
  }, u), {})), {});
1589
1589
  i.store = new zt(l, s), i.services.resourceStore = i.store;
1590
1590
  }
@@ -2602,8 +2602,8 @@ const To = "مجلد جديد", Ao = "رفع", zo = "لصق", Ro = "تغيير
2602
2602
  u = a.name.localeCompare(d.name);
2603
2603
  break;
2604
2604
  case "size":
2605
- const p = a.size || 0, f = d.size || 0;
2606
- u = p - f;
2605
+ const f = a.size || 0, p = d.size || 0;
2606
+ u = f - p;
2607
2607
  break;
2608
2608
  case "modified":
2609
2609
  const h = a.updatedAt ? new Date(a.updatedAt).getTime() : 0, m = d.updatedAt ? new Date(d.updatedAt).getTime() : 0;
@@ -2616,13 +2616,13 @@ const To = "مجلد جديد", Ao = "رفع", zo = "لصق", Ro = "تغيير
2616
2616
  }, r = [...o].sort(i), l = [...s].sort(i);
2617
2617
  return [...r, ...l];
2618
2618
  }, Nn = Pe(), sv = ({ children: n, initialPath: e, onFolderChange: t }) => {
2619
- const { files: o } = Xe(), s = ie(!1), [i, r] = R(""), [l, a] = R(null), [d, u] = R([]), [p, f] = R({ key: "name", direction: "asc" });
2619
+ const { files: o } = Xe(), s = ie(!1), [i, r] = R(""), [l, a] = R(null), [d, u] = R([]), [f, p] = R({ key: "name", direction: "asc" });
2620
2620
  return Q(() => {
2621
2621
  Array.isArray(o) && o.length > 0 && (u(() => {
2622
2622
  const h = o.filter((m) => m.path === `${i}/${m.name}`);
2623
- return ov(h, p.key, p.direction);
2623
+ return ov(h, f.key, f.direction);
2624
2624
  }), a(() => o.find((h) => h.path === i) ?? null));
2625
- }, [o, i, p]), Q(() => {
2625
+ }, [o, i, f]), Q(() => {
2626
2626
  if (!s.current && Array.isArray(o) && o.length > 0) {
2627
2627
  const h = o.some((m) => m.isDirectory && m.path === e) ? e : "";
2628
2628
  r(h), s.current = !0;
@@ -2637,8 +2637,8 @@ const To = "مجلد جديد", Ao = "رفع", zo = "لصق", Ro = "تغيير
2637
2637
  setCurrentFolder: a,
2638
2638
  currentPathFiles: d,
2639
2639
  setCurrentPathFiles: u,
2640
- sortConfig: p,
2641
- setSortConfig: f,
2640
+ sortConfig: f,
2641
+ setSortConfig: p,
2642
2642
  onFolderChange: t
2643
2643
  },
2644
2644
  children: n
@@ -2672,13 +2672,13 @@ const To = "مجلد جديد", Ao = "رفع", zo = "لصق", Ro = "تغيير
2672
2672
  }), u ? t && t(r) : o && o(r);
2673
2673
  }, d = (u) => {
2674
2674
  if (u && !u.isDirectory) return;
2675
- const p = s.files, f = s.isMoving ? "move" : "copy";
2676
- xe(e, "onPaste", p, u, f), s.isMoving && i(null), l([]);
2675
+ const f = s.files, p = s.isMoving ? "move" : "copy";
2676
+ xe(e, "onPaste", f, u, p), s.isMoving && i(null), l([]);
2677
2677
  };
2678
2678
  return /* @__PURE__ */ c(Pn.Provider, { value: { clipBoard: s, setClipBoard: i, handleCutCopy: a, handlePasting: d }, children: n });
2679
2679
  }, Ze = () => Le(Pn), Ln = ({ onLayoutChange: n, onRefresh: e, triggerAction: t, permissions: o }) => {
2680
2680
  var L;
2681
- const [s, i] = R(!1), { currentFolder: r } = he(), { selectedFiles: l, setSelectedFiles: a, handleDownload: d } = ve(), { clipBoard: u, setClipBoard: p, handleCutCopy: f, handlePasting: h } = Ze(), { activeLayout: m } = ye(), v = de(), C = [
2681
+ const [s, i] = R(!1), { currentFolder: r } = he(), { selectedFiles: l, setSelectedFiles: a, handleDownload: d } = ve(), { clipBoard: u, setClipBoard: f, handleCutCopy: p, handlePasting: h } = Ze(), { activeLayout: m } = ye(), v = de(), S = [
2682
2682
  {
2683
2683
  icon: /* @__PURE__ */ c(pn, { size: 17, strokeWidth: 0.3 }),
2684
2684
  text: v("newFolder"),
@@ -2707,7 +2707,7 @@ const To = "مجلد جديد", Ao = "رفع", zo = "لصق", Ro = "تغيير
2707
2707
  icon: /* @__PURE__ */ c(gn, { size: 16 }),
2708
2708
  title: v("refresh"),
2709
2709
  onClick: () => {
2710
- xe(e, "onRefresh"), p(null);
2710
+ xe(e, "onRefresh"), f(null);
2711
2711
  }
2712
2712
  }
2713
2713
  ];
@@ -2719,11 +2719,11 @@ const To = "مجلد جديد", Ao = "رفع", zo = "لصق", Ro = "تغيير
2719
2719
  };
2720
2720
  return l.length > 0 ? /* @__PURE__ */ c("div", { className: "toolbar file-selected", children: /* @__PURE__ */ z("div", { className: "file-action-container", children: [
2721
2721
  /* @__PURE__ */ z("div", { children: [
2722
- o.move && /* @__PURE__ */ z("button", { className: "item-action file-action", onClick: () => f(!0), children: [
2722
+ o.move && /* @__PURE__ */ z("button", { className: "item-action file-action", onClick: () => p(!0), children: [
2723
2723
  /* @__PURE__ */ c(mn, { size: 18 }),
2724
2724
  /* @__PURE__ */ c("span", { children: v("cut") })
2725
2725
  ] }),
2726
- o.copy && /* @__PURE__ */ z("button", { className: "item-action file-action", onClick: () => f(!1), children: [
2726
+ o.copy && /* @__PURE__ */ z("button", { className: "item-action file-action", onClick: () => p(!1), children: [
2727
2727
  /* @__PURE__ */ c(fn, { strokeWidth: 0.1, size: 17 }),
2728
2728
  /* @__PURE__ */ c("span", { children: v("copy") })
2729
2729
  ] }),
@@ -2782,7 +2782,7 @@ const To = "مجلد جديد", Ao = "رفع", zo = "لصق", Ro = "تغيير
2782
2782
  }
2783
2783
  )
2784
2784
  ] }) }) : /* @__PURE__ */ c("div", { className: "toolbar", children: /* @__PURE__ */ z("div", { className: "fm-toolbar", children: [
2785
- /* @__PURE__ */ c("div", { children: C.filter((g) => g.permission).map((g, T) => /* @__PURE__ */ z("button", { className: "item-action", onClick: g.onClick, children: [
2785
+ /* @__PURE__ */ c("div", { children: S.filter((g) => g.permission).map((g, T) => /* @__PURE__ */ z("button", { className: "item-action", onClick: g.onClick, children: [
2786
2786
  g.icon,
2787
2787
  /* @__PURE__ */ c("span", { children: g.text })
2788
2788
  ] }, T)) }),
@@ -2842,8 +2842,8 @@ function Tn(n) {
2842
2842
  function dv(n, e, t) {
2843
2843
  const [o, s] = R(e), i = ie(typeof n < "u"), r = i.current ? n : o, l = Tn(t), a = cn(
2844
2844
  (d) => {
2845
- const p = typeof d == "function" ? d(r) : d;
2846
- i.current || s(p), l == null || l(p);
2845
+ const f = typeof d == "function" ? d(r) : d;
2846
+ i.current || s(f), l == null || l(f);
2847
2847
  },
2848
2848
  [l, r]
2849
2849
  );
@@ -2973,10 +2973,10 @@ function Sv({
2973
2973
  id: r,
2974
2974
  ...l
2975
2975
  } = {}) {
2976
- const a = Tn(t), d = $v(r ? `${r}` : void 0), [u, p] = dv(
2976
+ const a = Tn(t), d = $v(r ? `${r}` : void 0), [u, f] = dv(
2977
2977
  o,
2978
2978
  s
2979
- ), f = ie(u), [h, m] = R(!1), v = fv(), C = i ?? v, N = ie(), O = ie(), F = ie(null), [L, g] = R(null);
2979
+ ), p = ie(u), [h, m] = R(!1), v = fv(), S = i ?? v, N = ie(), O = ie(), F = ie(null), [L, g] = R(null);
2980
2980
  xv(F);
2981
2981
  const T = `${l.collapsedHeight || 0}px`;
2982
2982
  function x(w) {
@@ -2984,18 +2984,18 @@ function Sv({
2984
2984
  return;
2985
2985
  const $ = F.current;
2986
2986
  for (const b in w) {
2987
- const S = w[b];
2988
- S ? $.style[b] = S : $.style.removeProperty(b);
2987
+ const C = w[b];
2988
+ C ? $.style[b] = C : $.style.removeProperty(b);
2989
2989
  }
2990
2990
  }
2991
2991
  return Cv(() => {
2992
- if (!F.current || u === f.current)
2992
+ if (!F.current || u === p.current)
2993
2993
  return;
2994
- f.current = u;
2994
+ p.current = u;
2995
2995
  function $(E) {
2996
- return C ? 0 : n ?? wv(E);
2996
+ return S ? 0 : n ?? wv(E);
2997
2997
  }
2998
- const b = (E) => `height ${$(E)}ms ${e}`, S = (E) => {
2998
+ const b = (E) => `height ${$(E)}ms ${e}`, C = (E) => {
2999
2999
  function M() {
3000
3000
  u ? (x({
3001
3001
  height: "",
@@ -3014,12 +3014,12 @@ function Sv({
3014
3014
  }), N.current = requestAnimationFrame(() => {
3015
3015
  a("expanding");
3016
3016
  const E = Bt(F);
3017
- S($(E)), F.current && (F.current.style.transition = b(E), F.current.style.height = `${E}px`);
3017
+ C($(E)), F.current && (F.current.style.transition = b(E), F.current.style.height = `${E}px`);
3018
3018
  });
3019
3019
  }) : N.current = requestAnimationFrame(() => {
3020
3020
  a("collapseStart");
3021
3021
  const E = Bt(F);
3022
- S($(E)), x({
3022
+ C($(E)), x({
3023
3023
  transition: b(E),
3024
3024
  height: `${E}px`
3025
3025
  }), N.current = requestAnimationFrame(() => {
@@ -3034,28 +3034,28 @@ function Sv({
3034
3034
  }, [
3035
3035
  u,
3036
3036
  T,
3037
- C,
3037
+ S,
3038
3038
  n,
3039
3039
  e,
3040
3040
  a
3041
3041
  ]), {
3042
3042
  isExpanded: u,
3043
- setExpanded: p,
3043
+ setExpanded: f,
3044
3044
  getToggleProps(w) {
3045
- const { disabled: $, onClick: b, refKey: S, ...E } = {
3045
+ const { disabled: $, onClick: b, refKey: C, ...E } = {
3046
3046
  refKey: "ref",
3047
3047
  onClick() {
3048
3048
  },
3049
3049
  disabled: !1,
3050
3050
  ...w
3051
- }, M = L ? L.tagName === "BUTTON" : void 0, k = w == null ? void 0 : w[S || "ref"], _ = {
3051
+ }, M = L ? L.tagName === "BUTTON" : void 0, k = w == null ? void 0 : w[C || "ref"], _ = {
3052
3052
  id: `react-collapsed-toggle-${d}`,
3053
3053
  "aria-controls": `react-collapsed-panel-${d}`,
3054
3054
  "aria-expanded": u,
3055
3055
  onClick(re) {
3056
- $ || (b == null || b(re), p((K) => !K));
3056
+ $ || (b == null || b(re), f((K) => !K));
3057
3057
  },
3058
- [S || "ref"]: Wt(k, g)
3058
+ [C || "ref"]: Wt(k, g)
3059
3059
  }, J = {
3060
3060
  type: "button",
3061
3061
  disabled: $ ? !0 : void 0
@@ -3072,14 +3072,14 @@ function Sv({
3072
3072
  };
3073
3073
  },
3074
3074
  getCollapseProps(w) {
3075
- const { style: $, refKey: b } = { refKey: "ref", style: {}, ...w }, S = w == null ? void 0 : w[b || "ref"];
3075
+ const { style: $, refKey: b } = { refKey: "ref", style: {}, ...w }, C = w == null ? void 0 : w[b || "ref"];
3076
3076
  return {
3077
3077
  id: `react-collapsed-panel-${d}`,
3078
3078
  "aria-hidden": !u,
3079
3079
  "aria-labelledby": `react-collapsed-toggle-${d}`,
3080
3080
  role: "region",
3081
3081
  ...w,
3082
- [b || "ref"]: Wt(F, S),
3082
+ [b || "ref"]: Wt(F, C),
3083
3083
  style: {
3084
3084
  boxSizing: "border-box",
3085
3085
  ...!h && !u ? {
@@ -3119,13 +3119,13 @@ function Kt(n) {
3119
3119
  const An = ({ folder: n, onFileOpen: e }) => {
3120
3120
  const [t, o] = R(!1), [s, i] = R(!1), { currentPath: r, setCurrentPath: l, onFolderChange: a } = he(), d = () => {
3121
3121
  i(!0), e(n), l(n.path), a == null || a(n.path);
3122
- }, u = (p) => {
3123
- p.stopPropagation(), o((f) => !f);
3122
+ }, u = (f) => {
3123
+ f.stopPropagation(), o((p) => !p);
3124
3124
  };
3125
3125
  return Q(() => {
3126
3126
  i(r === n.path);
3127
- const p = r.split("/");
3128
- p.pop(), p.join("/") === n.path && o(!0);
3127
+ const f = r.split("/");
3128
+ f.pop(), f.join("/") === n.path && o(!0);
3129
3129
  }, [r]), n.subDirectories.length > 0 ? /* @__PURE__ */ z(fe, { children: [
3130
3130
  /* @__PURE__ */ z(
3131
3131
  "div",
@@ -3147,7 +3147,7 @@ const An = ({ folder: n, onFileOpen: e }) => {
3147
3147
  ]
3148
3148
  }
3149
3149
  ),
3150
- /* @__PURE__ */ c(Fv, { open: t, children: /* @__PURE__ */ c("div", { className: "folder-collapsible", children: n.subDirectories.map((p, f) => /* @__PURE__ */ c(An, { folder: p, onFileOpen: e }, f)) }) })
3150
+ /* @__PURE__ */ c(Fv, { open: t, children: /* @__PURE__ */ c("div", { className: "folder-collapsible", children: n.subDirectories.map((f, p) => /* @__PURE__ */ c(An, { folder: f, onFileOpen: e }, p)) }) })
3151
3151
  ] }) : /* @__PURE__ */ z(
3152
3152
  "div",
3153
3153
  {
@@ -3194,7 +3194,7 @@ var qt;
3194
3194
  function Tv() {
3195
3195
  if (qt) return te;
3196
3196
  qt = 1;
3197
- var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, o = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, i = n ? Symbol.for("react.profiler") : 60114, r = n ? Symbol.for("react.provider") : 60109, l = n ? Symbol.for("react.context") : 60110, a = n ? Symbol.for("react.async_mode") : 60111, d = n ? Symbol.for("react.concurrent_mode") : 60111, u = n ? Symbol.for("react.forward_ref") : 60112, p = n ? Symbol.for("react.suspense") : 60113, f = n ? Symbol.for("react.suspense_list") : 60120, h = n ? Symbol.for("react.memo") : 60115, m = n ? Symbol.for("react.lazy") : 60116, v = n ? Symbol.for("react.block") : 60121, C = n ? Symbol.for("react.fundamental") : 60117, N = n ? Symbol.for("react.responder") : 60118, O = n ? Symbol.for("react.scope") : 60119;
3197
+ var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, o = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, i = n ? Symbol.for("react.profiler") : 60114, r = n ? Symbol.for("react.provider") : 60109, l = n ? Symbol.for("react.context") : 60110, a = n ? Symbol.for("react.async_mode") : 60111, d = n ? Symbol.for("react.concurrent_mode") : 60111, u = n ? Symbol.for("react.forward_ref") : 60112, f = n ? Symbol.for("react.suspense") : 60113, p = n ? Symbol.for("react.suspense_list") : 60120, h = n ? Symbol.for("react.memo") : 60115, m = n ? Symbol.for("react.lazy") : 60116, v = n ? Symbol.for("react.block") : 60121, S = n ? Symbol.for("react.fundamental") : 60117, N = n ? Symbol.for("react.responder") : 60118, O = n ? Symbol.for("react.scope") : 60119;
3198
3198
  function F(g) {
3199
3199
  if (typeof g == "object" && g !== null) {
3200
3200
  var T = g.$$typeof;
@@ -3206,7 +3206,7 @@ function Tv() {
3206
3206
  case o:
3207
3207
  case i:
3208
3208
  case s:
3209
- case p:
3209
+ case f:
3210
3210
  return g;
3211
3211
  default:
3212
3212
  switch (g = g && g.$$typeof, g) {
@@ -3228,7 +3228,7 @@ function Tv() {
3228
3228
  function L(g) {
3229
3229
  return F(g) === d;
3230
3230
  }
3231
- return te.AsyncMode = a, te.ConcurrentMode = d, te.ContextConsumer = l, te.ContextProvider = r, te.Element = e, te.ForwardRef = u, te.Fragment = o, te.Lazy = m, te.Memo = h, te.Portal = t, te.Profiler = i, te.StrictMode = s, te.Suspense = p, te.isAsyncMode = function(g) {
3231
+ return te.AsyncMode = a, te.ConcurrentMode = d, te.ContextConsumer = l, te.ContextProvider = r, te.Element = e, te.ForwardRef = u, te.Fragment = o, te.Lazy = m, te.Memo = h, te.Portal = t, te.Profiler = i, te.StrictMode = s, te.Suspense = f, te.isAsyncMode = function(g) {
3232
3232
  return L(g) || F(g) === a;
3233
3233
  }, te.isConcurrentMode = L, te.isContextConsumer = function(g) {
3234
3234
  return F(g) === l;
@@ -3251,9 +3251,9 @@ function Tv() {
3251
3251
  }, te.isStrictMode = function(g) {
3252
3252
  return F(g) === s;
3253
3253
  }, te.isSuspense = function(g) {
3254
- return F(g) === p;
3254
+ return F(g) === f;
3255
3255
  }, te.isValidElementType = function(g) {
3256
- return typeof g == "string" || typeof g == "function" || g === o || g === d || g === i || g === s || g === p || g === f || typeof g == "object" && g !== null && (g.$$typeof === m || g.$$typeof === h || g.$$typeof === r || g.$$typeof === l || g.$$typeof === u || g.$$typeof === C || g.$$typeof === N || g.$$typeof === O || g.$$typeof === v);
3256
+ return typeof g == "string" || typeof g == "function" || g === o || g === d || g === i || g === s || g === f || g === p || typeof g == "object" && g !== null && (g.$$typeof === m || g.$$typeof === h || g.$$typeof === r || g.$$typeof === l || g.$$typeof === u || g.$$typeof === S || g.$$typeof === N || g.$$typeof === O || g.$$typeof === v);
3257
3257
  }, te.typeOf = F, te;
3258
3258
  }
3259
3259
  var ne = {};
@@ -3268,10 +3268,10 @@ var ne = {};
3268
3268
  var _t;
3269
3269
  function Av() {
3270
3270
  return _t || (_t = 1, process.env.NODE_ENV !== "production" && function() {
3271
- var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, o = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, i = n ? Symbol.for("react.profiler") : 60114, r = n ? Symbol.for("react.provider") : 60109, l = n ? Symbol.for("react.context") : 60110, a = n ? Symbol.for("react.async_mode") : 60111, d = n ? Symbol.for("react.concurrent_mode") : 60111, u = n ? Symbol.for("react.forward_ref") : 60112, p = n ? Symbol.for("react.suspense") : 60113, f = n ? Symbol.for("react.suspense_list") : 60120, h = n ? Symbol.for("react.memo") : 60115, m = n ? Symbol.for("react.lazy") : 60116, v = n ? Symbol.for("react.block") : 60121, C = n ? Symbol.for("react.fundamental") : 60117, N = n ? Symbol.for("react.responder") : 60118, O = n ? Symbol.for("react.scope") : 60119;
3271
+ var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, o = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, i = n ? Symbol.for("react.profiler") : 60114, r = n ? Symbol.for("react.provider") : 60109, l = n ? Symbol.for("react.context") : 60110, a = n ? Symbol.for("react.async_mode") : 60111, d = n ? Symbol.for("react.concurrent_mode") : 60111, u = n ? Symbol.for("react.forward_ref") : 60112, f = n ? Symbol.for("react.suspense") : 60113, p = n ? Symbol.for("react.suspense_list") : 60120, h = n ? Symbol.for("react.memo") : 60115, m = n ? Symbol.for("react.lazy") : 60116, v = n ? Symbol.for("react.block") : 60121, S = n ? Symbol.for("react.fundamental") : 60117, N = n ? Symbol.for("react.responder") : 60118, O = n ? Symbol.for("react.scope") : 60119;
3272
3272
  function F(A) {
3273
3273
  return typeof A == "string" || typeof A == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
3274
- A === o || A === d || A === i || A === s || A === p || A === f || typeof A == "object" && A !== null && (A.$$typeof === m || A.$$typeof === h || A.$$typeof === r || A.$$typeof === l || A.$$typeof === u || A.$$typeof === C || A.$$typeof === N || A.$$typeof === O || A.$$typeof === v);
3274
+ A === o || A === d || A === i || A === s || A === f || A === p || typeof A == "object" && A !== null && (A.$$typeof === m || A.$$typeof === h || A.$$typeof === r || A.$$typeof === l || A.$$typeof === u || A.$$typeof === S || A.$$typeof === N || A.$$typeof === O || A.$$typeof === v);
3275
3275
  }
3276
3276
  function L(A) {
3277
3277
  if (typeof A == "object" && A !== null) {
@@ -3285,7 +3285,7 @@ function Av() {
3285
3285
  case o:
3286
3286
  case i:
3287
3287
  case s:
3288
- case p:
3288
+ case f:
3289
3289
  return we;
3290
3290
  default:
3291
3291
  var Te = we && we.$$typeof;
@@ -3305,7 +3305,7 @@ function Av() {
3305
3305
  }
3306
3306
  }
3307
3307
  }
3308
- var g = a, T = d, x = l, w = r, $ = e, b = u, S = o, E = m, M = h, k = t, _ = i, J = s, ee = p, re = !1;
3308
+ var g = a, T = d, x = l, w = r, $ = e, b = u, C = o, E = m, M = h, k = t, _ = i, J = s, ee = f, re = !1;
3309
3309
  function K(A) {
3310
3310
  return re || (re = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(A) || L(A) === a;
3311
3311
  }
@@ -3343,9 +3343,9 @@ function Av() {
3343
3343
  return L(A) === s;
3344
3344
  }
3345
3345
  function se(A) {
3346
- return L(A) === p;
3346
+ return L(A) === f;
3347
3347
  }
3348
- ne.AsyncMode = g, ne.ConcurrentMode = T, ne.ContextConsumer = x, ne.ContextProvider = w, ne.Element = $, ne.ForwardRef = b, ne.Fragment = S, ne.Lazy = E, ne.Memo = M, ne.Portal = k, ne.Profiler = _, ne.StrictMode = J, ne.Suspense = ee, ne.isAsyncMode = K, ne.isConcurrentMode = y, ne.isContextConsumer = P, ne.isContextProvider = B, ne.isElement = j, ne.isForwardRef = U, ne.isFragment = G, ne.isLazy = Y, ne.isMemo = W, ne.isPortal = q, ne.isProfiler = Z, ne.isStrictMode = I, ne.isSuspense = se, ne.isValidElementType = F, ne.typeOf = L;
3348
+ ne.AsyncMode = g, ne.ConcurrentMode = T, ne.ContextConsumer = x, ne.ContextProvider = w, ne.Element = $, ne.ForwardRef = b, ne.Fragment = C, ne.Lazy = E, ne.Memo = M, ne.Portal = k, ne.Profiler = _, ne.StrictMode = J, ne.Suspense = ee, ne.isAsyncMode = K, ne.isConcurrentMode = y, ne.isContextConsumer = P, ne.isContextProvider = B, ne.isElement = j, ne.isForwardRef = U, ne.isFragment = G, ne.isLazy = Y, ne.isMemo = W, ne.isPortal = q, ne.isProfiler = Z, ne.isStrictMode = I, ne.isSuspense = se, ne.isValidElementType = F, ne.typeOf = L;
3349
3349
  }()), ne;
3350
3350
  }
3351
3351
  var Gt;
@@ -3392,12 +3392,12 @@ function zv() {
3392
3392
  return ot = s() ? Object.assign : function(i, r) {
3393
3393
  for (var l, a = o(i), d, u = 1; u < arguments.length; u++) {
3394
3394
  l = Object(arguments[u]);
3395
- for (var p in l)
3396
- e.call(l, p) && (a[p] = l[p]);
3395
+ for (var f in l)
3396
+ e.call(l, f) && (a[f] = l[f]);
3397
3397
  if (n) {
3398
3398
  d = n(l);
3399
- for (var f = 0; f < d.length; f++)
3400
- t.call(l, d[f]) && (a[d[f]] = l[d[f]]);
3399
+ for (var p = 0; p < d.length; p++)
3400
+ t.call(l, d[p]) && (a[d[p]] = l[d[p]]);
3401
3401
  }
3402
3402
  }
3403
3403
  return a;
@@ -3435,25 +3435,25 @@ function Rv() {
3435
3435
  if (process.env.NODE_ENV !== "production") {
3436
3436
  for (var u in i)
3437
3437
  if (o(i, u)) {
3438
- var p;
3438
+ var f;
3439
3439
  try {
3440
3440
  if (typeof i[u] != "function") {
3441
- var f = Error(
3441
+ var p = Error(
3442
3442
  (a || "React class") + ": " + l + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
3443
3443
  );
3444
- throw f.name = "Invariant Violation", f;
3444
+ throw p.name = "Invariant Violation", p;
3445
3445
  }
3446
- p = i[u](r, u, a, l, null, e);
3446
+ f = i[u](r, u, a, l, null, e);
3447
3447
  } catch (m) {
3448
- p = m;
3448
+ f = m;
3449
3449
  }
3450
- if (p && !(p instanceof Error) && n(
3451
- (a || "React class") + ": type specification of " + l + " `" + u + "` 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)."
3452
- ), p instanceof Error && !(p.message in t)) {
3453
- t[p.message] = !0;
3450
+ if (f && !(f instanceof Error) && n(
3451
+ (a || "React class") + ": type specification of " + l + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
3452
+ ), f instanceof Error && !(f.message in t)) {
3453
+ t[f.message] = !0;
3454
3454
  var h = d ? d() : "";
3455
3455
  n(
3456
- "Failed " + l + " type: " + p.message + (h ?? "")
3456
+ "Failed " + l + " type: " + f.message + (h ?? "")
3457
3457
  );
3458
3458
  }
3459
3459
  }
@@ -3482,12 +3482,12 @@ function Ov() {
3482
3482
  }
3483
3483
  return at = function(l, a) {
3484
3484
  var d = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
3485
- function p(y) {
3485
+ function f(y) {
3486
3486
  var P = y && (d && y[d] || y[u]);
3487
3487
  if (typeof P == "function")
3488
3488
  return P;
3489
3489
  }
3490
- var f = "<<anonymous>>", h = {
3490
+ var p = "<<anonymous>>", h = {
3491
3491
  array: N("array"),
3492
3492
  bigint: N("bigint"),
3493
3493
  bool: N("boolean"),
@@ -3515,11 +3515,11 @@ function Ov() {
3515
3515
  this.message = y, this.data = P && typeof P == "object" ? P : {}, this.stack = "";
3516
3516
  }
3517
3517
  v.prototype = Error.prototype;
3518
- function C(y) {
3518
+ function S(y) {
3519
3519
  if (process.env.NODE_ENV !== "production")
3520
3520
  var P = {}, B = 0;
3521
3521
  function j(G, Y, W, q, Z, I, se) {
3522
- if (q = q || f, I = I || W, se !== t) {
3522
+ if (q = q || p, I = I || W, se !== t) {
3523
3523
  if (a) {
3524
3524
  var A = new Error(
3525
3525
  "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"
@@ -3550,10 +3550,10 @@ function Ov() {
3550
3550
  }
3551
3551
  return null;
3552
3552
  }
3553
- return C(P);
3553
+ return S(P);
3554
3554
  }
3555
3555
  function O() {
3556
- return C(r);
3556
+ return S(r);
3557
3557
  }
3558
3558
  function F(y) {
3559
3559
  function P(B, j, U, G, Y) {
@@ -3571,7 +3571,7 @@ function Ov() {
3571
3571
  }
3572
3572
  return null;
3573
3573
  }
3574
- return C(P);
3574
+ return S(P);
3575
3575
  }
3576
3576
  function L() {
3577
3577
  function y(P, B, j, U, G) {
@@ -3582,7 +3582,7 @@ function Ov() {
3582
3582
  }
3583
3583
  return null;
3584
3584
  }
3585
- return C(y);
3585
+ return S(y);
3586
3586
  }
3587
3587
  function g() {
3588
3588
  function y(P, B, j, U, G) {
@@ -3593,17 +3593,17 @@ function Ov() {
3593
3593
  }
3594
3594
  return null;
3595
3595
  }
3596
- return C(y);
3596
+ return S(y);
3597
3597
  }
3598
3598
  function T(y) {
3599
3599
  function P(B, j, U, G, Y) {
3600
3600
  if (!(B[j] instanceof y)) {
3601
- var W = y.name || f, q = K(B[j]);
3601
+ var W = y.name || p, q = K(B[j]);
3602
3602
  return new v("Invalid " + G + " `" + Y + "` of type " + ("`" + q + "` supplied to `" + U + "`, expected ") + ("instance of `" + W + "`."));
3603
3603
  }
3604
3604
  return null;
3605
3605
  }
3606
- return C(P);
3606
+ return S(P);
3607
3607
  }
3608
3608
  function x(y) {
3609
3609
  if (!Array.isArray(y))
@@ -3620,7 +3620,7 @@ function Ov() {
3620
3620
  });
3621
3621
  return new v("Invalid " + G + " `" + Y + "` of value `" + String(W) + "` " + ("supplied to `" + U + "`, expected one of " + Z + "."));
3622
3622
  }
3623
- return C(P);
3623
+ return S(P);
3624
3624
  }
3625
3625
  function w(y) {
3626
3626
  function P(B, j, U, G, Y) {
@@ -3637,7 +3637,7 @@ function Ov() {
3637
3637
  }
3638
3638
  return null;
3639
3639
  }
3640
- return C(P);
3640
+ return S(P);
3641
3641
  }
3642
3642
  function $(y) {
3643
3643
  if (!Array.isArray(y))
@@ -3659,15 +3659,15 @@ function Ov() {
3659
3659
  var pe = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : "";
3660
3660
  return new v("Invalid " + W + " `" + q + "` supplied to " + ("`" + Y + "`" + pe + "."));
3661
3661
  }
3662
- return C(j);
3662
+ return S(j);
3663
3663
  }
3664
3664
  function b() {
3665
3665
  function y(P, B, j, U, G) {
3666
3666
  return k(P[B]) ? null : new v("Invalid " + U + " `" + G + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
3667
3667
  }
3668
- return C(y);
3668
+ return S(y);
3669
3669
  }
3670
- function S(y, P, B, j, U) {
3670
+ function C(y, P, B, j, U) {
3671
3671
  return new v(
3672
3672
  (y || "React class") + ": " + P + " type `" + B + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + U + "`."
3673
3673
  );
@@ -3680,14 +3680,14 @@ function Ov() {
3680
3680
  for (var Z in y) {
3681
3681
  var I = y[Z];
3682
3682
  if (typeof I != "function")
3683
- return S(U, G, Y, Z, ee(I));
3683
+ return C(U, G, Y, Z, ee(I));
3684
3684
  var se = I(W, Z, U, G, Y + "." + Z, t);
3685
3685
  if (se)
3686
3686
  return se;
3687
3687
  }
3688
3688
  return null;
3689
3689
  }
3690
- return C(P);
3690
+ return S(P);
3691
3691
  }
3692
3692
  function M(y) {
3693
3693
  function P(B, j, U, G, Y) {
@@ -3698,7 +3698,7 @@ function Ov() {
3698
3698
  for (var I in Z) {
3699
3699
  var se = y[I];
3700
3700
  if (o(y, I) && typeof se != "function")
3701
- return S(U, G, Y, I, ee(se));
3701
+ return C(U, G, Y, I, ee(se));
3702
3702
  if (!se)
3703
3703
  return new v(
3704
3704
  "Invalid " + G + " `" + Y + "` key `" + I + "` supplied to `" + U + "`.\nBad object: " + JSON.stringify(B[j], null, " ") + `
@@ -3710,7 +3710,7 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
3710
3710
  }
3711
3711
  return null;
3712
3712
  }
3713
- return C(P);
3713
+ return S(P);
3714
3714
  }
3715
3715
  function k(y) {
3716
3716
  switch (typeof y) {
@@ -3725,7 +3725,7 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
3725
3725
  return y.every(k);
3726
3726
  if (y === null || l(y))
3727
3727
  return !0;
3728
- var P = p(y);
3728
+ var P = f(y);
3729
3729
  if (P) {
3730
3730
  var B = P.call(y), j;
3731
3731
  if (P !== y.entries) {
@@ -3779,7 +3779,7 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
3779
3779
  }
3780
3780
  }
3781
3781
  function K(y) {
3782
- return !y.constructor || !y.constructor.name ? f : y.constructor.name;
3782
+ return !y.constructor || !y.constructor.name ? p : y.constructor.name;
3783
3783
  }
3784
3784
  return h.checkPropTypes = s, h.resetWarningCache = s.resetWarningCache, h.PropTypes = h, h;
3785
3785
  }, at;
@@ -3794,12 +3794,12 @@ function Mv() {
3794
3794
  function t() {
3795
3795
  }
3796
3796
  return t.resetWarningCache = e, lt = function() {
3797
- function o(r, l, a, d, u, p) {
3798
- if (p !== n) {
3799
- var f = new Error(
3797
+ function o(r, l, a, d, u, f) {
3798
+ if (f !== n) {
3799
+ var p = new Error(
3800
3800
  "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"
3801
3801
  );
3802
- throw f.name = "Invariant Violation", f;
3802
+ throw p.name = "Invariant Violation", p;
3803
3803
  }
3804
3804
  }
3805
3805
  o.isRequired = o;
@@ -3851,34 +3851,34 @@ function Uv(n) {
3851
3851
  return H({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" }, child: [] }, { tag: "path", attr: { d: "M9 4v16" }, child: [] }, { tag: "path", attr: { d: "M14 10l2 2l-2 2" }, child: [] }] })(n);
3852
3852
  }
3853
3853
  const gt = ({ collapsibleNav: n, isNavigationPaneOpen: e, setNavigationPaneOpen: t }) => {
3854
- const [o, s] = R([]), [i, r] = R([]), [l, a] = R([]), [d, u] = R(!1), { currentPath: p, setCurrentPath: f, onFolderChange: h } = he(), m = ie(null), v = ie([]), C = ie(null), N = Me(() => {
3854
+ const [o, s] = R([]), [i, r] = R([]), [l, a] = R([]), [d, u] = R(!1), { currentPath: f, setCurrentPath: p, onFolderChange: h } = he(), m = ie(null), v = ie([]), S = ie(null), N = Me(() => {
3855
3855
  u(!1);
3856
3856
  }), O = de(), F = ie(null);
3857
3857
  Q(() => {
3858
3858
  s(() => {
3859
3859
  let w = "";
3860
- return p == null ? void 0 : p.split("/").map(($) => ({
3860
+ return f == null ? void 0 : f.split("/").map(($) => ({
3861
3861
  name: $ || O("home"),
3862
3862
  path: $ === "" ? $ : w += `/${$}`
3863
3863
  }));
3864
3864
  }), r([]), a([]);
3865
- }, [p, O]);
3865
+ }, [f, O]);
3866
3866
  const L = (w) => {
3867
- f(w), h == null || h(w);
3867
+ p(w), h == null || h(w);
3868
3868
  }, g = () => {
3869
3869
  var J;
3870
- const w = m.current.clientWidth, $ = getComputedStyle(m.current), b = parseFloat($.paddingLeft), S = n ? 2 : 0, M = n ? ((J = F.current) == null ? void 0 : J.clientWidth) + 1 : 0, k = i.length > 0 ? 1 : 0, _ = parseFloat($.gap) * (o.length + k + S);
3870
+ const w = m.current.clientWidth, $ = getComputedStyle(m.current), b = parseFloat($.paddingLeft), C = n ? 2 : 0, M = n ? ((J = F.current) == null ? void 0 : J.clientWidth) + 1 : 0, k = i.length > 0 ? 1 : 0, _ = parseFloat($.gap) * (o.length + k + C);
3871
3871
  return w - (b + _ + M);
3872
3872
  }, T = () => {
3873
- var S;
3874
- const w = g(), $ = v.current.reduce((E, M) => M ? E + M.clientWidth : E, 0), b = ((S = C.current) == null ? void 0 : S.clientWidth) || 0;
3873
+ var C;
3874
+ const w = g(), $ = v.current.reduce((E, M) => M ? E + M.clientWidth : E, 0), b = ((C = S.current) == null ? void 0 : C.clientWidth) || 0;
3875
3875
  return w - ($ + b);
3876
3876
  }, x = () => m.current.scrollWidth > m.current.clientWidth;
3877
3877
  return Q(() => {
3878
3878
  var w;
3879
3879
  if (x()) {
3880
3880
  const $ = o[1], b = (w = v.current[1]) == null ? void 0 : w.clientWidth;
3881
- a((S) => [...S, b]), r((S) => [...S, $]), s((S) => S.filter((E, M) => M !== 1));
3881
+ a((C) => [...C, b]), r((C) => [...C, $]), s((C) => C.filter((E, M) => M !== 1));
3882
3882
  } else if (i.length > 0 && T() > l.at(-1)) {
3883
3883
  const $ = [o[0], i.at(-1), ...o.slice(1)];
3884
3884
  s($), r((b) => b.slice(0, -1)), a((b) => b.slice(0, -1));
@@ -3922,7 +3922,7 @@ const gt = ({ collapsibleNav: n, isNavigationPaneOpen: e, setNavigationPaneOpen:
3922
3922
  {
3923
3923
  className: "folder-name folder-name-btn",
3924
3924
  onClick: () => u(!0),
3925
- ref: C,
3925
+ ref: S,
3926
3926
  title: O("showMoreFolder"),
3927
3927
  children: /* @__PURE__ */ c(no, { size: 22, className: "hidden-folders" })
3928
3928
  }
@@ -3989,8 +3989,8 @@ const _e = (n) => ({
3989
3989
  t.forEach((d) => {
3990
3990
  const u = d.isDirectory ? d.name : d.name.split(".").slice(0, -1).join(".");
3991
3991
  if (r.test(u)) {
3992
- const p = u.split(`${s} (`).pop().slice(0, -1), f = parseInt(p);
3993
- !isNaN(f) && f > i && (i = f);
3992
+ const f = u.split(`${s} (`).pop().slice(0, -1), p = parseInt(f);
3993
+ !isNaN(p) && p > i && (i = p);
3994
3994
  }
3995
3995
  });
3996
3996
  const l = ` (${++i})`;
@@ -4011,9 +4011,9 @@ const _e = (n) => ({
4011
4011
  rows: l
4012
4012
  }
4013
4013
  ), In = ({ message: n, xPlacement: e, yPlacement: t }) => /* @__PURE__ */ c("p", { className: `error-tooltip ${e} ${t}`, children: n }), Hv = 220, jv = ({ filesViewRef: n, file: e, onCreateFolder: t, triggerAction: o }) => {
4014
- const [s, i] = R(e.name), [r, l] = R(!1), [a, d] = R(""), [u, p] = R("right"), [f, h] = R("bottom"), m = Me((x) => {
4014
+ const [s, i] = R(e.name), [r, l] = R(!1), [a, d] = R(""), [u, f] = R("right"), [p, h] = R("bottom"), m = Me((x) => {
4015
4015
  x.preventDefault(), x.stopPropagation();
4016
- }), { currentFolder: v, currentPathFiles: C, setCurrentPathFiles: N } = he(), { activeLayout: O } = ye(), F = de(), L = (x) => {
4016
+ }), { currentFolder: v, currentPathFiles: S, setCurrentPathFiles: N } = he(), { activeLayout: O } = ye(), F = de(), L = (x) => {
4017
4017
  i(x.target.value), l(!1);
4018
4018
  }, g = (x) => {
4019
4019
  if (x.stopPropagation(), x.key === "Enter") {
@@ -4035,11 +4035,11 @@ const _e = (n) => ({
4035
4035
  }
4036
4036
  }, [r]);
4037
4037
  function T() {
4038
- var b, S;
4038
+ var b, C;
4039
4039
  let x = s.trim();
4040
- const w = C.filter((E) => !(E.key && E.key === e.key));
4040
+ const w = S.filter((E) => !(E.key && E.key === e.key));
4041
4041
  if (w.find((E) => E.name.toLowerCase() === x.toLowerCase())) {
4042
- d(F("folderExists", { renameFile: x })), l(!0), (b = m.ref.current) == null || b.focus(), (S = m.ref.current) == null || S.select(), m.setIsClicked(!1);
4042
+ d(F("folderExists", { renameFile: x })), l(!0), (b = m.ref.current) == null || b.focus(), (C = m.ref.current) == null || C.select(), m.setIsClicked(!1);
4043
4043
  return;
4044
4044
  }
4045
4045
  x === "" && (x = Mn("New Folder", !0, w)), xe(t, "onCreateFolder", x, v), N((E) => E.filter((M) => M.key !== e.key)), o.close();
@@ -4048,7 +4048,7 @@ const _e = (n) => ({
4048
4048
  var x, w, $;
4049
4049
  if ((x = m.ref.current) == null || x.focus(), (w = m.ref.current) == null || w.select(), ($ = m.ref) != null && $.current) {
4050
4050
  const M = n.current.getBoundingClientRect(), k = m.ref.current, _ = k.getBoundingClientRect();
4051
- M.right - _.left > 313 ? p("right") : p("left"), M.bottom - (_.top + k.clientHeight) > 88 ? h("bottom") : h("top");
4051
+ M.right - _.left > 313 ? f("right") : f("left"), M.bottom - (_.top + k.clientHeight) > 88 ? h("bottom") : h("top");
4052
4052
  }
4053
4053
  }, []), Q(() => {
4054
4054
  m.isClicked && T();
@@ -4071,7 +4071,7 @@ const _e = (n) => ({
4071
4071
  {
4072
4072
  message: a,
4073
4073
  xPlacement: u,
4074
- yPlacement: f
4074
+ yPlacement: p
4075
4075
  }
4076
4076
  )
4077
4077
  ] });
@@ -4127,7 +4127,7 @@ const Dn = ({
4127
4127
  }
4128
4128
  );
4129
4129
  }, Ne = (n) => n.split(".").pop(), Bv = 220, Wv = ({ filesViewRef: n, file: e, onRename: t, triggerAction: o }) => {
4130
- const [s, i] = R(e == null ? void 0 : e.name), [r, l] = R(!1), [a, d] = R(!1), [u, p] = R(""), [f, h] = R("right"), [m, v] = R("bottom"), { currentPathFiles: C, setCurrentPathFiles: N } = he(), { activeLayout: O } = ye(), F = de(), L = ie(null), g = Me(($) => {
4130
+ const [s, i] = R(e == null ? void 0 : e.name), [r, l] = R(!1), [a, d] = R(!1), [u, f] = R(""), [p, h] = R("right"), [m, v] = R("bottom"), { currentPathFiles: S, setCurrentPathFiles: N } = he(), { activeLayout: O } = ye(), F = de(), L = ie(null), g = Me(($) => {
4131
4131
  var b;
4132
4132
  (b = L.current) != null && b.contains($.target) || ($.preventDefault(), $.stopPropagation());
4133
4133
  }), T = ($) => {
@@ -4137,16 +4137,16 @@ const Dn = ({
4137
4137
  }
4138
4138
  if ($.key === "Escape") {
4139
4139
  $.preventDefault(), N(
4140
- (S) => S.map((E) => (E.key === e.key && (E.isEditing = !1), E))
4140
+ (C) => C.map((E) => (E.key === e.key && (E.isEditing = !1), E))
4141
4141
  ), o.close();
4142
4142
  return;
4143
4143
  }
4144
- /[\\/:*?"<>|]/.test($.key) ? ($.preventDefault(), p(F("invalidFileName")), d(!0)) : d(!1);
4144
+ /[\\/:*?"<>|]/.test($.key) ? ($.preventDefault(), f(F("invalidFileName")), d(!0)) : d(!1);
4145
4145
  };
4146
4146
  Q(() => {
4147
4147
  if (a) {
4148
4148
  const $ = setTimeout(() => {
4149
- d(!1), p("");
4149
+ d(!1), f("");
4150
4150
  }, 7e3);
4151
4151
  return () => clearTimeout($);
4152
4152
  }
@@ -4154,25 +4154,25 @@ const Dn = ({
4154
4154
  function x($) {
4155
4155
  if (s === "" || s === e.name) {
4156
4156
  N(
4157
- (b) => b.map((S) => (S.key === e.key && (S.isEditing = !1), S))
4157
+ (b) => b.map((C) => (C.key === e.key && (C.isEditing = !1), C))
4158
4158
  ), o.close();
4159
4159
  return;
4160
- } else if (C.some((b) => b.name === s)) {
4161
- d(!0), p(F("folderExists", { renameFile: s })), g.setIsClicked(!1);
4160
+ } else if (S.some((b) => b.name === s)) {
4161
+ d(!0), f(F("folderExists", { renameFile: s })), g.setIsClicked(!1);
4162
4162
  return;
4163
4163
  } else if (!e.isDirectory && !$) {
4164
- const b = Ne(e.name), S = Ne(s);
4165
- if (b !== S) {
4164
+ const b = Ne(e.name), C = Ne(s);
4165
+ if (b !== C) {
4166
4166
  l(!0);
4167
4167
  return;
4168
4168
  }
4169
4169
  }
4170
- d(!1), xe(t, "onRename", e, s), N((b) => b.filter((S) => S.key !== e.key)), o.close();
4170
+ d(!1), xe(t, "onRename", e, s), N((b) => b.filter((C) => C.key !== e.key)), o.close();
4171
4171
  }
4172
4172
  const w = () => {
4173
- var $, b, S, E, M, k;
4173
+ var $, b, C, E, M, k;
4174
4174
  if ((b = ($ = g.ref) == null ? void 0 : $.current) == null || b.focus(), e.isDirectory)
4175
- (E = (S = g.ref) == null ? void 0 : S.current) == null || E.select();
4175
+ (E = (C = g.ref) == null ? void 0 : C.current) == null || E.select();
4176
4176
  else {
4177
4177
  const _ = Ne(e.name), J = e.name.length - _.length - 1;
4178
4178
  (k = (M = g.ref) == null ? void 0 : M.current) == null || k.setSelectionRange(0, J);
@@ -4206,7 +4206,7 @@ const Dn = ({
4206
4206
  In,
4207
4207
  {
4208
4208
  message: u,
4209
- xPlacement: f,
4209
+ xPlacement: p,
4210
4210
  yPlacement: m
4211
4211
  }
4212
4212
  ),
@@ -4293,11 +4293,11 @@ const Dn = ({
4293
4293
  triggerAction: a,
4294
4294
  handleContextMenu: d,
4295
4295
  setLastSelectedFile: u,
4296
- draggable: p
4296
+ draggable: f
4297
4297
  }) => {
4298
4298
  var pe, we, Te, vt;
4299
- const [f, h] = R(!1), [m, v] = R(0), [C, N] = R("hidden"), [O, F] = R(""), [L, g] = R(null), { activeLayout: T } = ye(), x = T === "grid" ? 48 : 20, w = _e(x), { setCurrentPath: $, currentPathFiles: b, onFolderChange: S } = he(), { setSelectedFiles: E } = ve(), { clipBoard: M, handleCutCopy: k, setClipBoard: _, handlePasting: J } = Ze(), ee = ie(null), re = _e(ct), K = (M == null ? void 0 : M.isMoving) && M.files.find((X) => X.name === e.name && X.path === e.path), y = () => {
4300
- i(e), e.isDirectory ? ($(e.path), S == null || S(e.path), E([])) : s && a.show("previewFile");
4299
+ const [p, h] = R(!1), [m, v] = R(0), [S, N] = R("hidden"), [O, F] = R(""), [L, g] = R(null), { activeLayout: T } = ye(), x = T === "grid" ? 48 : 20, w = _e(x), { setCurrentPath: $, currentPathFiles: b, onFolderChange: C } = he(), { setSelectedFiles: E } = ve(), { clipBoard: M, handleCutCopy: k, setClipBoard: _, handlePasting: J } = Ze(), ee = ie(null), re = _e(ct), K = (M == null ? void 0 : M.isMoving) && M.files.find((X) => X.name === e.name && X.path === e.path), y = () => {
4300
+ i(e), e.isDirectory ? ($(e.path), C == null || C(e.path), E([])) : s && a.show("previewFile");
4301
4301
  }, P = (X, ue) => {
4302
4302
  if (l.length > 0 && X) {
4303
4303
  let ge = !1, be = l[0], Ce = n;
@@ -4323,28 +4323,28 @@ const Dn = ({
4323
4323
  }, j = (X) => {
4324
4324
  X.key === "Enter" && (X.stopPropagation(), E([e]), y());
4325
4325
  }, U = (X) => {
4326
- X.stopPropagation(), X.preventDefault(), !e.isEditing && (f || E([e]), u(e), d(X, !0));
4326
+ X.stopPropagation(), X.preventDefault(), !e.isEditing && (p || E([e]), u(e), d(X, !0));
4327
4327
  }, G = () => {
4328
4328
  N("visible");
4329
4329
  }, Y = () => {
4330
- !f && N("hidden");
4330
+ !p && N("hidden");
4331
4331
  }, W = (X) => {
4332
4332
  X.target.checked ? E((ue) => [...ue, e]) : E((ue) => ue.filter((ge) => ge.name !== e.name && ge.path !== e.path)), h(X.target.checked);
4333
4333
  }, q = (X) => {
4334
4334
  X.dataTransfer.setDragImage(ee.current, 30, 50), X.dataTransfer.effectAllowed = "copy", k(!0);
4335
4335
  }, Z = () => _(null), I = (X) => {
4336
- X.preventDefault(), f || !e.isDirectory ? X.dataTransfer.dropEffect = "none" : (g({ x: X.clientX, y: X.clientY + 12 }), X.dataTransfer.dropEffect = "copy", F("file-drop-zone"));
4336
+ X.preventDefault(), p || !e.isDirectory ? X.dataTransfer.dropEffect = "none" : (g({ x: X.clientX, y: X.clientY + 12 }), X.dataTransfer.dropEffect = "copy", F("file-drop-zone"));
4337
4337
  }, se = (X) => {
4338
4338
  X.currentTarget.contains(X.relatedTarget) || (F((ue) => ue && ""), g(null));
4339
4339
  }, A = (X) => {
4340
- X.preventDefault(), !(f || !e.isDirectory) && (J(e), F((ue) => ue && ""), g(null));
4340
+ X.preventDefault(), !(p || !e.isDirectory) && (J(e), F((ue) => ue && ""), g(null));
4341
4341
  };
4342
4342
  return Q(() => {
4343
4343
  h(l.includes(n)), N(l.includes(n) ? "visible" : "hidden");
4344
4344
  }, [l]), /* @__PURE__ */ z(
4345
4345
  "div",
4346
4346
  {
4347
- className: `file-item-container ${O} ${f || e.isEditing ? "file-selected" : ""} ${K ? "file-moving" : ""}`,
4347
+ className: `file-item-container ${O} ${p || e.isEditing ? "file-selected" : ""} ${K ? "file-moving" : ""}`,
4348
4348
  tabIndex: 0,
4349
4349
  title: e.name,
4350
4350
  onClick: B,
@@ -4352,7 +4352,7 @@ const Dn = ({
4352
4352
  onContextMenu: U,
4353
4353
  onMouseOver: G,
4354
4354
  onMouseLeave: Y,
4355
- draggable: f && p,
4355
+ draggable: p && f,
4356
4356
  onDragStart: q,
4357
4357
  onDragEnd: Z,
4358
4358
  onDragEnter: I,
@@ -4366,8 +4366,8 @@ const Dn = ({
4366
4366
  {
4367
4367
  name: e.name,
4368
4368
  id: e.name,
4369
- checked: f,
4370
- className: `selection-checkbox ${C}`,
4369
+ checked: p,
4370
+ className: `selection-checkbox ${S}`,
4371
4371
  onChange: W,
4372
4372
  onClick: (X) => X.stopPropagation()
4373
4373
  }
@@ -4418,12 +4418,12 @@ const Dn = ({
4418
4418
  o.icon,
4419
4419
  /* @__PURE__ */ c("span", { children: o.title })
4420
4420
  ] }, o.title)) }), _v = ({ filesViewRef: n, contextMenuRef: e, menuItems: t, visible: o, clickPosition: s }) => {
4421
- const [i, r] = R(0), [l, a] = R(0), [d, u] = R(null), [p, f] = R("right"), h = ie(null), m = () => {
4422
- const { clickX: N, clickY: O } = s, F = n.current, L = F.getBoundingClientRect(), g = F.offsetWidth - F.clientWidth, T = e.current.getBoundingClientRect(), x = T.width, w = T.height, $ = N - L.left, b = L.width - ($ + g) > x, S = !b, E = O - L.top, M = L.height - E > w, k = !M;
4423
- b ? (r(`${$}px`), f("right")) : S && (r(`${$ - x}px`), f("left")), M ? a(`${E + F.scrollTop}px`) : k && a(`${E + F.scrollTop - w}px`);
4421
+ const [i, r] = R(0), [l, a] = R(0), [d, u] = R(null), [f, p] = R("right"), h = ie(null), m = () => {
4422
+ const { clickX: N, clickY: O } = s, F = n.current, L = F.getBoundingClientRect(), g = F.offsetWidth - F.clientWidth, T = e.current.getBoundingClientRect(), x = T.width, w = T.height, $ = N - L.left, b = L.width - ($ + g) > x, C = !b, E = O - L.top, M = L.height - E > w, k = !M;
4423
+ b ? (r(`${$}px`), p("right")) : C && (r(`${$ - x}px`), p("left")), M ? a(`${E + F.scrollTop}px`) : k && a(`${E + F.scrollTop - w}px`);
4424
4424
  }, v = (N) => {
4425
4425
  N.preventDefault(), N.stopPropagation();
4426
- }, C = (N) => {
4426
+ }, S = (N) => {
4427
4427
  u(N);
4428
4428
  };
4429
4429
  if (Q(() => {
@@ -4448,7 +4448,7 @@ const Dn = ({
4448
4448
  {
4449
4449
  onClick: N.onClick,
4450
4450
  className: `${N.className ?? ""} ${L ? "active" : ""}`,
4451
- onMouseOver: () => C(O),
4451
+ onMouseOver: () => S(O),
4452
4452
  children: [
4453
4453
  N.icon,
4454
4454
  /* @__PURE__ */ c("span", { children: N.title }),
@@ -4459,7 +4459,7 @@ const Dn = ({
4459
4459
  {
4460
4460
  subMenuRef: h,
4461
4461
  list: N.children,
4462
- position: p
4462
+ position: f
4463
4463
  }
4464
4464
  )
4465
4465
  ] })
@@ -4476,7 +4476,7 @@ function Gv(n) {
4476
4476
  return H({ 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: [] }] })(n);
4477
4477
  }
4478
4478
  const Jv = (n, e, t, o, s) => {
4479
- const [i, r] = R([]), [l, a] = R(!1), [d, u] = R(!1), [p, f] = R({ clickX: 0, clickY: 0 }), [h, m] = R(null), { clipBoard: v, setClipBoard: C, handleCutCopy: N, handlePasting: O } = Ze(), { selectedFiles: F, setSelectedFiles: L, handleDownload: g } = ve(), { currentPath: T, setCurrentPath: x, currentPathFiles: w, setCurrentPathFiles: $, onFolderChange: b } = he(), { activeLayout: S, setActiveLayout: E } = ye(), M = de(), k = () => {
4479
+ const [i, r] = R([]), [l, a] = R(!1), [d, u] = R(!1), [f, p] = R({ clickX: 0, clickY: 0 }), [h, m] = R(null), { clipBoard: v, setClipBoard: S, handleCutCopy: N, handlePasting: O } = Ze(), { selectedFiles: F, setSelectedFiles: L, handleDownload: g } = ve(), { currentPath: T, setCurrentPath: x, currentPathFiles: w, setCurrentPathFiles: $, onFolderChange: b } = he(), { activeLayout: C, setActiveLayout: E } = ye(), M = de(), k = () => {
4480
4480
  s(h), h.isDirectory ? (x(h.path), b == null || b(h.path), r([]), L([])) : e && t.show("previewFile"), a(!1);
4481
4481
  }, _ = (I) => {
4482
4482
  N(I), a(!1);
@@ -4489,7 +4489,7 @@ const Jv = (n, e, t, o, s) => {
4489
4489
  }, K = () => {
4490
4490
  a(!1), t.show("delete");
4491
4491
  }, y = () => {
4492
- a(!1), xe(n, "onRefresh"), C(null);
4492
+ a(!1), xe(n, "onRefresh"), S(null);
4493
4493
  }, P = () => {
4494
4494
  t.show("createFolder"), a(!1);
4495
4495
  }, B = () => {
@@ -4499,14 +4499,14 @@ const Jv = (n, e, t, o, s) => {
4499
4499
  }, U = [
4500
4500
  {
4501
4501
  title: M("view"),
4502
- icon: S === "grid" ? /* @__PURE__ */ c(bt, { size: 18 }) : /* @__PURE__ */ c(je, { size: 18 }),
4502
+ icon: C === "grid" ? /* @__PURE__ */ c(bt, { size: 18 }) : /* @__PURE__ */ c(je, { size: 18 }),
4503
4503
  onClick: () => {
4504
4504
  },
4505
4505
  children: [
4506
4506
  {
4507
4507
  title: M("grid"),
4508
4508
  icon: /* @__PURE__ */ c(bt, { size: 18 }),
4509
- selected: S === "grid",
4509
+ selected: C === "grid",
4510
4510
  onClick: () => {
4511
4511
  E("grid"), a(!1);
4512
4512
  }
@@ -4514,7 +4514,7 @@ const Jv = (n, e, t, o, s) => {
4514
4514
  {
4515
4515
  title: M("list"),
4516
4516
  icon: /* @__PURE__ */ c(je, { size: 18 }),
4517
- selected: S === "list",
4517
+ selected: C === "list",
4518
4518
  onClick: () => {
4519
4519
  E("list"), a(!1);
4520
4520
  }
@@ -4610,7 +4610,7 @@ const Jv = (n, e, t, o, s) => {
4610
4610
  }, q = () => {
4611
4611
  r([]), L((I) => I.length > 0 ? [] : I);
4612
4612
  }, Z = (I, se = !1) => {
4613
- I.preventDefault(), f({ clickX: I.clientX, clickY: I.clientY }), u(se), !se && q(), a(!0);
4613
+ I.preventDefault(), p({ clickX: I.clientX, clickY: I.clientY }), u(se), !se && q(), a(!0);
4614
4614
  };
4615
4615
  return Q(() => {
4616
4616
  if (t.isActive)
@@ -4635,14 +4635,14 @@ const Jv = (n, e, t, o, s) => {
4635
4635
  setVisible: a,
4636
4636
  setLastSelectedFile: m,
4637
4637
  selectedFileIndexes: i,
4638
- clickPosition: p,
4638
+ clickPosition: f,
4639
4639
  isSelectionCtx: d
4640
4640
  };
4641
4641
  }, Xv = ({ unselectFiles: n, onSort: e, sortConfig: t }) => {
4642
- const [o, s] = R(!1), { selectedFiles: i, setSelectedFiles: r } = ve(), { currentPathFiles: l } = he(), a = Ge(() => l.length > 0 && i.length === l.length, [i, l]), d = (p) => {
4643
- p.target.checked ? (r(l), s(!0)) : n();
4644
- }, u = (p) => {
4645
- e && e(p);
4642
+ const [o, s] = R(!1), { selectedFiles: i, setSelectedFiles: r } = ve(), { currentPathFiles: l } = he(), a = Ge(() => l.length > 0 && i.length === l.length, [i, l]), d = (f) => {
4643
+ f.target.checked ? (r(l), s(!0)) : n();
4644
+ }, u = (f) => {
4645
+ e && e(f);
4646
4646
  };
4647
4647
  return /* @__PURE__ */ z(
4648
4648
  "div",
@@ -4706,11 +4706,11 @@ const Jv = (n, e, t, o, s) => {
4706
4706
  triggerAction: i,
4707
4707
  permissions: r
4708
4708
  }) => {
4709
- const { currentPathFiles: l, sortConfig: a, setSortConfig: d } = he(), u = ie(null), { activeLayout: p } = ye(), f = de(), {
4709
+ const { currentPathFiles: l, sortConfig: a, setSortConfig: d } = he(), u = ie(null), { activeLayout: f } = ye(), p = de(), {
4710
4710
  emptySelecCtxItems: h,
4711
4711
  selecCtxItems: m,
4712
4712
  handleContextMenu: v,
4713
- unselectFiles: C,
4713
+ unselectFiles: S,
4714
4714
  visible: N,
4715
4715
  setVisible: O,
4716
4716
  setLastSelectedFile: F,
@@ -4725,11 +4725,11 @@ const Jv = (n, e, t, o, s) => {
4725
4725
  "div",
4726
4726
  {
4727
4727
  ref: u,
4728
- className: `files ${p}`,
4728
+ className: `files ${f}`,
4729
4729
  onContextMenu: v,
4730
- onClick: C,
4730
+ onClick: S,
4731
4731
  children: [
4732
- p === "list" && /* @__PURE__ */ c(Xv, { unselectFiles: C, onSort: w, sortConfig: a }),
4732
+ f === "list" && /* @__PURE__ */ c(Xv, { unselectFiles: S, onSort: w, sortConfig: a }),
4733
4733
  (l == null ? void 0 : l.length) > 0 ? /* @__PURE__ */ c(fe, { children: l.map(($, b) => /* @__PURE__ */ c(
4734
4734
  Kv,
4735
4735
  {
@@ -4748,7 +4748,7 @@ const Jv = (n, e, t, o, s) => {
4748
4748
  draggable: r.move
4749
4749
  },
4750
4750
  b
4751
- )) }) : /* @__PURE__ */ c("div", { className: "empty-folder", children: f("folderEmpty") }),
4751
+ )) }) : /* @__PURE__ */ c("div", { className: "empty-folder", children: p("folderEmpty") }),
4752
4752
  /* @__PURE__ */ c(
4753
4753
  _v,
4754
4754
  {
@@ -4812,7 +4812,7 @@ const o4 = ({
4812
4812
  handleFileRemove: r
4813
4813
  }) => {
4814
4814
  var x, w, $, b;
4815
- const [l, a] = R(0), [d, u] = R(!1), [p, f] = R(!1), [h, m] = R(!1), v = _e(33), C = ie(), { onError: N } = Xe(), O = de(), F = (S) => {
4815
+ const [l, a] = R(0), [d, u] = R(!1), [f, p] = R(!1), [h, m] = R(!1), v = _e(33), S = ie(), { onError: N } = Xe(), O = de(), F = (C) => {
4816
4816
  a(0), o((M) => ({
4817
4817
  ...M,
4818
4818
  [n]: !1
@@ -4821,9 +4821,9 @@ const o4 = ({
4821
4821
  type: "upload",
4822
4822
  message: O("uploadFail"),
4823
4823
  response: {
4824
- status: S.status,
4825
- statusText: S.statusText,
4826
- data: S.response
4824
+ status: C.status,
4825
+ statusText: C.statusText,
4826
+ data: C.response
4827
4827
  }
4828
4828
  };
4829
4829
  t(
@@ -4832,11 +4832,11 @@ const o4 = ({
4832
4832
  error: E.message
4833
4833
  } : k)
4834
4834
  ), m(!0), N(E, e.file);
4835
- }, L = (S) => {
4836
- if (!S.error)
4835
+ }, L = (C) => {
4836
+ if (!C.error)
4837
4837
  return new Promise((E, M) => {
4838
4838
  const k = new XMLHttpRequest();
4839
- C.current = k, o((K) => ({
4839
+ S.current = k, o((K) => ({
4840
4840
  ...K,
4841
4841
  [n]: !0
4842
4842
  })), k.upload.onprogress = (K) => {
@@ -4857,27 +4857,27 @@ const o4 = ({
4857
4857
  const J = s == null ? void 0 : s.headers;
4858
4858
  for (let K in J)
4859
4859
  k.setRequestHeader(K, J[K]);
4860
- const ee = new FormData(), re = S == null ? void 0 : S.appendData;
4860
+ const ee = new FormData(), re = C == null ? void 0 : C.appendData;
4861
4861
  for (let K in re)
4862
4862
  re[K] && ee.append(K, re[K]);
4863
- ee.append("file", S.file), k.send(ee);
4863
+ ee.append("file", C.file), k.send(ee);
4864
4864
  });
4865
4865
  };
4866
4866
  Q(() => {
4867
- C.current || L(e);
4867
+ S.current || L(e);
4868
4868
  }, []);
4869
4869
  const g = () => {
4870
- C.current && (C.current.abort(), o((S) => ({
4871
- ...S,
4870
+ S.current && (S.current.abort(), o((C) => ({
4871
+ ...C,
4872
4872
  [n]: !1
4873
- })), f(!0), a(0));
4873
+ })), p(!0), a(0));
4874
4874
  }, T = () => {
4875
4875
  e != null && e.file && (t(
4876
- (S) => S.map((E, M) => n === M ? {
4876
+ (C) => C.map((E, M) => n === M ? {
4877
4877
  ...E,
4878
4878
  error: !1
4879
4879
  } : E)
4880
- ), L({ ...e, error: !1 }), f(!1), m(!1));
4880
+ ), L({ ...e, error: !1 }), p(!1), m(!1));
4881
4881
  };
4882
4882
  return e.removed ? null : /* @__PURE__ */ z("li", { children: [
4883
4883
  /* @__PURE__ */ c("div", { className: "file-icon", children: v[Ne((x = e.file) == null ? void 0 : x.name)] ?? /* @__PURE__ */ c(Ve, { size: 33 }) }),
@@ -4887,7 +4887,7 @@ const o4 = ({
4887
4887
  /* @__PURE__ */ c("span", { className: "file-name text-truncate", title: (w = e.file) == null ? void 0 : w.name, children: ($ = e.file) == null ? void 0 : $.name }),
4888
4888
  /* @__PURE__ */ c("span", { className: "file-size", children: Qe((b = e.file) == null ? void 0 : b.size) })
4889
4889
  ] }),
4890
- d ? /* @__PURE__ */ c(Nv, { title: O("uploaded"), className: "upload-success" }) : p || h ? /* @__PURE__ */ c(n4, { className: "retry-upload", title: "Retry", onClick: T }) : /* @__PURE__ */ c(
4890
+ d ? /* @__PURE__ */ c(Nv, { title: O("uploaded"), className: "upload-success" }) : f || h ? /* @__PURE__ */ c(n4, { className: "retry-upload", title: "Retry", onClick: T }) : /* @__PURE__ */ c(
4891
4891
  "div",
4892
4892
  {
4893
4893
  className: "rm-file",
@@ -4901,7 +4901,7 @@ const o4 = ({
4901
4901
  t4,
4902
4902
  {
4903
4903
  percent: l,
4904
- isCanceled: p,
4904
+ isCanceled: f,
4905
4905
  isCompleted: d,
4906
4906
  error: e.error
4907
4907
  }
@@ -4915,12 +4915,12 @@ const o4 = ({
4915
4915
  onFileUploading: o,
4916
4916
  onFileUploaded: s
4917
4917
  }) => {
4918
- const [i, r] = R([]), [l, a] = R(!1), [d, u] = R({}), { currentFolder: p, currentPathFiles: f } = he(), { onError: h } = Xe(), m = ie(null), v = de(), C = (T) => {
4918
+ const [i, r] = R([]), [l, a] = R(!1), [d, u] = R({}), { currentFolder: f, currentPathFiles: p } = he(), { onError: h } = Xe(), m = ie(null), v = de(), S = (T) => {
4919
4919
  T.key === "Enter" && m.current.click();
4920
4920
  }, N = (T) => {
4921
4921
  if (t && !t.includes(Ne(T.name)))
4922
4922
  return v("fileTypeNotAllowed");
4923
- if (f.some(
4923
+ if (p.some(
4924
4924
  ($) => $.name.toLowerCase() === T.name.toLowerCase() && !$.isDirectory
4925
4925
  )) return v("fileAlreadyExist");
4926
4926
  if (e && T.size > e) return `${v("maxUploadSize")} ${Qe(e, 0)}.`;
@@ -4929,7 +4929,7 @@ const o4 = ({
4929
4929
  (x) => !i.some((w) => w.file.name.toLowerCase() === x.name.toLowerCase())
4930
4930
  ), T.length > 0) {
4931
4931
  const x = T.map((w) => {
4932
- const $ = o(w, p), b = N(w);
4932
+ const $ = o(w, f), b = N(w);
4933
4933
  return b && h({ type: "upload", message: b }, w), {
4934
4934
  file: w,
4935
4935
  appendData: $,
@@ -4970,7 +4970,7 @@ const o4 = ({
4970
4970
  ] })
4971
4971
  }
4972
4972
  ),
4973
- /* @__PURE__ */ c("div", { className: "btn-choose-file", children: /* @__PURE__ */ z(Ee, { padding: "0", onKeyDown: C, children: [
4973
+ /* @__PURE__ */ c("div", { className: "btn-choose-file", children: /* @__PURE__ */ z(Ee, { padding: "0", onKeyDown: S, children: [
4974
4974
  /* @__PURE__ */ c("label", { htmlFor: "chooseFile", children: v("chooseFile") }),
4975
4975
  /* @__PURE__ */ c(
4976
4976
  "input",
@@ -5008,17 +5008,17 @@ const o4 = ({
5008
5008
  ] });
5009
5009
  }, on = ["jpg", "jpeg", "png"], sn = ["mp4", "mov", "avi"], rn = ["mp3", "wav", "m4a"], an = ["txt", "pdf"], i4 = ({ filePreviewPath: n, filePreviewComponent: e }) => {
5010
5010
  var v;
5011
- const [t, o] = R(!0), [s, i] = R(!1), { selectedFiles: r } = ve(), l = _e(73), a = (v = Ne(r[0].name)) == null ? void 0 : v.toLowerCase(), d = `${n}${r[0].path}`, u = de(), p = Ge(
5011
+ const [t, o] = R(!0), [s, i] = R(!1), { selectedFiles: r } = ve(), l = _e(73), a = (v = Ne(r[0].name)) == null ? void 0 : v.toLowerCase(), d = `${n}${r[0].path}`, u = de(), f = Ge(
5012
5012
  () => e == null ? void 0 : e(r[0]),
5013
5013
  [e]
5014
- ), f = () => {
5014
+ ), p = () => {
5015
5015
  o(!1), i(!1);
5016
5016
  }, h = () => {
5017
5017
  o(!1), i(!0);
5018
5018
  }, m = () => {
5019
5019
  window.location.href = d;
5020
5020
  };
5021
- return $e.isValidElement(p) ? p : /* @__PURE__ */ z("section", { className: `file-previewer ${a === "pdf" ? "pdf-previewer" : ""}`, children: [
5021
+ return $e.isValidElement(f) ? f : /* @__PURE__ */ z("section", { className: `file-previewer ${a === "pdf" ? "pdf-previewer" : ""}`, children: [
5022
5022
  s || ![
5023
5023
  ...on,
5024
5024
  ...sn,
@@ -5045,7 +5045,7 @@ const o4 = ({
5045
5045
  src: d,
5046
5046
  alt: "Preview Unavailable",
5047
5047
  className: `photo-popup-image ${t ? "img-loading" : ""}`,
5048
- onLoad: f,
5048
+ onLoad: p,
5049
5049
  onError: h,
5050
5050
  loading: "lazy"
5051
5051
  }
@@ -5057,7 +5057,7 @@ const o4 = ({
5057
5057
  "iframe",
5058
5058
  {
5059
5059
  src: d,
5060
- onLoad: f,
5060
+ onLoad: p,
5061
5061
  onError: h,
5062
5062
  frameBorder: "0",
5063
5063
  className: `photo-popup-iframe ${t ? "img-loading" : ""}`
@@ -5097,38 +5097,38 @@ const o4 = ({
5097
5097
  refresh: ["F5"],
5098
5098
  clearSelection: ["Escape"]
5099
5099
  }, r4 = (n, e, t) => {
5100
- const { setClipBoard: o, handleCutCopy: s, handlePasting: i } = Ze(), { currentFolder: r, currentPathFiles: l } = he(), { setSelectedFiles: a, handleDownload: d } = ve(), { setActiveLayout: u } = ye(), p = () => {
5100
+ const { setClipBoard: o, handleCutCopy: s, handlePasting: i } = Ze(), { currentFolder: r, currentPathFiles: l } = he(), { selectedFiles: a, setSelectedFiles: d, handleDownload: u } = ve(), { setActiveLayout: f } = ye(), p = () => {
5101
5101
  t.create && n.show("createFolder");
5102
- }, f = () => {
5103
- t.upload && n.show("uploadFile");
5104
5102
  }, h = () => {
5105
- t.move && s(!0);
5103
+ t.upload && n.show("uploadFile");
5106
5104
  }, m = () => {
5107
- t.copy && s(!1);
5105
+ t.move && s(!0);
5108
5106
  }, v = () => {
5107
+ t.copy && s(!1);
5108
+ }, S = () => {
5109
5109
  i(r);
5110
- }, C = () => {
5111
- t.rename && n.show("rename");
5112
5110
  }, N = () => {
5113
- t.download && d();
5111
+ t.rename && n.show("rename");
5114
5112
  }, O = () => {
5115
- t.delete && n.show("delete");
5113
+ t.download && u();
5116
5114
  }, F = () => {
5117
- l.length > 0 && a([l[0]]);
5115
+ t.delete && a.length && n.show("delete");
5118
5116
  }, L = () => {
5119
- l.length > 0 && a([l.at(-1)]);
5117
+ l.length > 0 && d([l[0]]);
5120
5118
  }, g = () => {
5121
- a(l);
5119
+ l.length > 0 && d([l.at(-1)]);
5122
5120
  }, T = () => {
5123
- a((b) => b.length > 0 ? [] : b);
5121
+ d(l);
5124
5122
  }, x = () => {
5125
- xe(e, "onRefresh"), o(null);
5123
+ d((C) => C.length > 0 ? [] : C);
5126
5124
  }, w = () => {
5127
- u("grid");
5125
+ xe(e, "onRefresh"), o(null);
5128
5126
  }, $ = () => {
5129
- u("list");
5127
+ f("grid");
5128
+ }, b = () => {
5129
+ f("list");
5130
5130
  };
5131
- le(ce.createFolder, p, n.isActive), le(ce.uploadFiles, f, n.isActive), le(ce.cut, h, n.isActive), le(ce.copy, m, n.isActive), le(ce.paste, v, n.isActive), le(ce.rename, C, n.isActive), le(ce.download, N, n.isActive), le(ce.delete, O, n.isActive), le(ce.jumpToFirst, F, n.isActive), le(ce.jumpToLast, L, n.isActive), le(ce.selectAll, g, n.isActive), le(ce.clearSelection, T, n.isActive), le(ce.refresh, x, n.isActive), le(ce.gridLayout, w, n.isActive), le(ce.listLayout, $, n.isActive);
5131
+ le(ce.createFolder, p, n.isActive), le(ce.uploadFiles, h, n.isActive), le(ce.cut, m, n.isActive), le(ce.copy, v, n.isActive), le(ce.paste, S, n.isActive), le(ce.rename, N, n.isActive), le(ce.download, O, n.isActive), le(ce.delete, F, n.isActive), le(ce.jumpToFirst, L, n.isActive), le(ce.jumpToLast, g, n.isActive), le(ce.selectAll, T, n.isActive), le(ce.clearSelection, x, n.isActive), le(ce.refresh, w, n.isActive), le(ce.gridLayout, $, n.isActive), le(ce.listLayout, b, n.isActive);
5132
5132
  }, a4 = ({
5133
5133
  fileUploadConfig: n,
5134
5134
  onFileUploading: e,
@@ -5142,7 +5142,7 @@ const o4 = ({
5142
5142
  triggerAction: d,
5143
5143
  permissions: u
5144
5144
  }) => {
5145
- const [p, f] = R(null), { selectedFiles: h } = ve(), m = de();
5145
+ const [f, p] = R(null), { selectedFiles: h } = ve(), m = de();
5146
5146
  r4(d, s, u);
5147
5147
  const v = {
5148
5148
  uploadFile: {
@@ -5178,19 +5178,19 @@ const o4 = ({
5178
5178
  };
5179
5179
  if (Q(() => {
5180
5180
  if (d.isActive) {
5181
- const C = d.actionType;
5182
- C === "previewFile" && (v[C].title = (h == null ? void 0 : h.name) ?? m("preview")), f(v[C]);
5181
+ const S = d.actionType;
5182
+ S === "previewFile" && (v[S].title = (h == null ? void 0 : h.name) ?? m("preview")), p(v[S]);
5183
5183
  } else
5184
- f(null);
5185
- }, [d.isActive]), p)
5184
+ p(null);
5185
+ }, [d.isActive]), f)
5186
5186
  return /* @__PURE__ */ c(
5187
5187
  Dn,
5188
5188
  {
5189
- heading: p.title,
5189
+ heading: f.title,
5190
5190
  show: d.isActive,
5191
5191
  setShow: d.close,
5192
- dialogWidth: p.width,
5193
- children: p == null ? void 0 : p.component
5192
+ dialogWidth: f.width,
5193
+ children: f == null ? void 0 : f.component
5194
5194
  }
5195
5195
  );
5196
5196
  }, l4 = () => {
@@ -5221,7 +5221,7 @@ const o4 = ({
5221
5221
  handleMouseMove: (u) => {
5222
5222
  if (!s) return;
5223
5223
  u.preventDefault();
5224
- const f = r.current.getBoundingClientRect(), h = (u.clientX - f.left) / f.width * 100;
5224
+ const p = r.current.getBoundingClientRect(), h = (u.clientX - p.left) / p.width * 100;
5225
5225
  h >= 15 && h <= 60 && o({ col1: h, col2: 100 - h });
5226
5226
  }
5227
5227
  };
@@ -5263,15 +5263,15 @@ const o4 = ({
5263
5263
  onPaste: a,
5264
5264
  onRename: d,
5265
5265
  onDownload: u,
5266
- onDelete: p = () => null,
5267
- onLayoutChange: f = () => {
5266
+ onDelete: f = () => null,
5267
+ onLayoutChange: p = () => {
5268
5268
  },
5269
5269
  onRefresh: h,
5270
5270
  onFileOpen: m = () => {
5271
5271
  },
5272
5272
  onFolderChange: v = () => {
5273
5273
  },
5274
- onSelect: C,
5274
+ onSelect: S,
5275
5275
  onError: N = () => {
5276
5276
  },
5277
5277
  layout: O = "grid",
@@ -5283,7 +5283,7 @@ const o4 = ({
5283
5283
  width: w = "100%",
5284
5284
  initialPath: $ = "",
5285
5285
  filePreviewComponent: b,
5286
- primaryColor: S = "#6155b4",
5286
+ primaryColor: C = "#6155b4",
5287
5287
  fontFamily: E = "Nunito Sans, sans-serif",
5288
5288
  language: M = "en",
5289
5289
  permissions: k = {},
@@ -5292,7 +5292,7 @@ const o4 = ({
5292
5292
  }) => {
5293
5293
  const [ee, re] = R(J), K = l4(), { containerRef: y, colSizes: P, isDragging: B, handleMouseMove: j, handleMouseUp: U, handleMouseDown: G } = c4(20, 80), Y = {
5294
5294
  "--file-manager-font-family": E,
5295
- "--file-manager-primary-color": S,
5295
+ "--file-manager-primary-color": C,
5296
5296
  height: x,
5297
5297
  width: w
5298
5298
  }, W = Ge(
@@ -5301,11 +5301,11 @@ const o4 = ({
5301
5301
  );
5302
5302
  return /* @__PURE__ */ z("main", { className: "file-explorer", onContextMenu: (q) => q.preventDefault(), style: Y, children: [
5303
5303
  /* @__PURE__ */ c(pt, { loading: t }),
5304
- /* @__PURE__ */ c(ev, { language: M, children: /* @__PURE__ */ c(nv, { filesData: n, onError: N, children: /* @__PURE__ */ c(sv, { initialPath: $, onFolderChange: v, children: /* @__PURE__ */ c(iv, { onDownload: u, onSelect: C, children: /* @__PURE__ */ c(rv, { onPaste: a, onCut: r, onCopy: l, children: /* @__PURE__ */ z(uo, { layout: O, children: [
5304
+ /* @__PURE__ */ c(ev, { language: M, children: /* @__PURE__ */ c(nv, { filesData: n, onError: N, children: /* @__PURE__ */ c(sv, { initialPath: $, onFolderChange: v, children: /* @__PURE__ */ c(iv, { onDownload: u, onSelect: S, children: /* @__PURE__ */ c(rv, { onPaste: a, onCut: r, onCopy: l, children: /* @__PURE__ */ z(uo, { layout: O, children: [
5305
5305
  /* @__PURE__ */ c(
5306
5306
  Ln,
5307
5307
  {
5308
- onLayoutChange: f,
5308
+ onLayoutChange: p,
5309
5309
  onRefresh: h,
5310
5310
  triggerAction: K,
5311
5311
  permissions: W
@@ -5376,7 +5376,7 @@ const o4 = ({
5376
5376
  fileUploadConfig: e,
5377
5377
  onFileUploading: s,
5378
5378
  onFileUploaded: i,
5379
- onDelete: p,
5379
+ onDelete: f,
5380
5380
  onRefresh: h,
5381
5381
  maxFileSize: L,
5382
5382
  filePreviewPath: g,