vuefinder 2.5.7 → 2.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vuefinder.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Go = Object.defineProperty;
2
2
  var Ko = (t, e, s) => e in t ? Go(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
3
  var mn = (t, e, s) => Ko(t, typeof e != "symbol" ? e + "" : e, s);
4
- import { reactive as Ot, watch as ze, ref as E, shallowRef as Wo, onMounted as Ce, onUnmounted as qs, onUpdated as Rn, nextTick as ft, computed as Ze, inject as ae, openBlock as f, createElementBlock as g, withKeys as $t, unref as a, createElementVNode as o, withModifiers as rt, renderSlot as Dt, normalizeClass as de, toDisplayString as _, createBlock as W, withCtx as se, Fragment as he, renderList as $e, createCommentVNode as j, withDirectives as ve, vModelCheckbox as Pt, createTextVNode as Q, createVNode as Y, vModelSelect as Ss, isRef as Fn, vModelText as St, onBeforeUnmount as In, customRef as Yo, vShow as je, TransitionGroup as Xo, normalizeStyle as os, mergeModels as Jo, useModel as Nn, resolveComponent as Qo, provide as Zo, Transition as er, resolveDynamicComponent as tr } from "vue";
4
+ import { reactive as Ot, watch as Ne, ref as E, shallowRef as Wo, onMounted as Ce, onUnmounted as qs, onUpdated as Rn, nextTick as ft, computed as Ze, inject as ae, openBlock as f, createElementBlock as g, withKeys as $t, unref as r, createElementVNode as o, withModifiers as rt, renderSlot as Dt, normalizeClass as de, toDisplayString as _, createBlock as W, withCtx as se, Fragment as he, renderList as $e, createCommentVNode as j, withDirectives as ve, vModelCheckbox as Pt, createTextVNode as Q, createVNode as Y, vModelSelect as Ss, isRef as Fn, vModelText as St, onBeforeUnmount as In, customRef as Yo, vShow as je, TransitionGroup as Xo, normalizeStyle as os, mergeModels as Jo, useModel as Nn, resolveComponent as Qo, provide as Zo, Transition as er, resolveDynamicComponent as tr } from "vue";
5
5
  import sr from "mitt";
6
6
  import nr from "dragselect";
7
7
  import or from "@uppy/core";
@@ -33,14 +33,14 @@ class ir {
33
33
  * @return {RequestTransformResultInternal}
34
34
  */
35
35
  transformRequestParams(e) {
36
- const s = this.config, r = {};
37
- _s != null && _s !== "" && (r[s.xsrfHeaderName] = _s);
38
- const n = Object.assign({}, s.headers, r, e.headers), c = Object.assign({}, s.params, e.params), i = e.body, d = s.baseUrl + e.url, l = e.method;
36
+ const s = this.config, a = {};
37
+ _s != null && _s !== "" && (a[s.xsrfHeaderName] = _s);
38
+ const n = Object.assign({}, s.headers, a, e.headers), c = Object.assign({}, s.params, e.params), i = e.body, d = s.baseUrl + e.url, l = e.method;
39
39
  let u;
40
40
  l !== "get" && (i instanceof FormData ? (u = i, s.body != null && Object.entries(this.config.body).forEach(([m, v]) => {
41
41
  u.append(m, v);
42
42
  })) : (u = { ...i }, s.body != null && Object.assign(u, this.config.body)));
43
- const h = {
43
+ const p = {
44
44
  url: d,
45
45
  method: l,
46
46
  headers: n,
@@ -55,9 +55,9 @@ class ir {
55
55
  params: c,
56
56
  body: u
57
57
  });
58
- m.url != null && (h.url = m.url), m.method != null && (h.method = m.method), m.params != null && (h.params = m.params ?? {}), m.headers != null && (h.headers = m.headers ?? {}), m.body != null && (h.body = m.body);
58
+ m.url != null && (p.url = m.url), m.method != null && (p.method = m.method), m.params != null && (p.params = m.params ?? {}), m.headers != null && (p.headers = m.headers ?? {}), m.body != null && (p.body = m.body);
59
59
  }
60
- return h;
60
+ return p;
61
61
  }
62
62
  /**
63
63
  * Get download url
@@ -70,12 +70,12 @@ class ir {
70
70
  getDownloadUrl(e, s) {
71
71
  if (s.url != null)
72
72
  return s.url;
73
- const r = this.transformRequestParams({
73
+ const a = this.transformRequestParams({
74
74
  url: "",
75
75
  method: "get",
76
76
  params: { q: "download", adapter: e, path: s.path }
77
77
  });
78
- return r.url + "?" + new URLSearchParams(r.params).toString();
78
+ return a.url + "?" + new URLSearchParams(a.params).toString();
79
79
  }
80
80
  /**
81
81
  * Get preview url
@@ -88,12 +88,12 @@ class ir {
88
88
  getPreviewUrl(e, s) {
89
89
  if (s.url != null)
90
90
  return s.url;
91
- const r = this.transformRequestParams({
91
+ const a = this.transformRequestParams({
92
92
  url: "",
93
93
  method: "get",
94
94
  params: { q: "preview", adapter: e, path: s.path }
95
95
  });
96
- return r.url + "?" + new URLSearchParams(r.params).toString();
96
+ return a.url + "?" + new URLSearchParams(a.params).toString();
97
97
  }
98
98
  /**
99
99
  * Send request
@@ -109,7 +109,7 @@ class ir {
109
109
  * @throws {Record<String,?String>|null} resp json error
110
110
  */
111
111
  async send(e) {
112
- const s = this.transformRequestParams(e), r = e.responseType || "json", n = {
112
+ const s = this.transformRequestParams(e), a = e.responseType || "json", n = {
113
113
  method: e.method,
114
114
  headers: s.headers,
115
115
  signal: e.abortSignal
@@ -120,7 +120,7 @@ class ir {
120
120
  }
121
121
  const i = await fetch(c, n);
122
122
  if (i.ok)
123
- return await i[r]();
123
+ return await i[a]();
124
124
  throw await i.json();
125
125
  }
126
126
  }
@@ -137,8 +137,8 @@ function cr(t) {
137
137
  function dr(t) {
138
138
  let e = localStorage.getItem(t + "_storage");
139
139
  const s = Ot(JSON.parse(e ?? "{}"));
140
- ze(s, r);
141
- function r() {
140
+ Ne(s, a);
141
+ function a() {
142
142
  Object.keys(s).length ? localStorage.setItem(t + "_storage", JSON.stringify(s)) : localStorage.removeItem(t + "_storage");
143
143
  }
144
144
  function n(l, u) {
@@ -156,20 +156,20 @@ async function ur(t, e) {
156
156
  const s = e[t];
157
157
  return typeof s == "function" ? (await s()).default : s;
158
158
  }
159
- function mr(t, e, s, r) {
159
+ function mr(t, e, s, a) {
160
160
  const { getStore: n, setStore: c } = t, i = E({}), d = E(n("locale", e)), l = (m, v = e) => {
161
- ur(m, r).then((p) => {
162
- i.value = p, c("locale", m), d.value = m, c("translations", p), Object.values(r).length > 1 && (s.emit("vf-toast-push", { label: "The language is set to " + m }), s.emit("vf-language-saved"));
163
- }).catch((p) => {
161
+ ur(m, a).then((h) => {
162
+ i.value = h, c("locale", m), d.value = m, c("translations", h), Object.values(a).length > 1 && (s.emit("vf-toast-push", { label: "The language is set to " + m }), s.emit("vf-language-saved"));
163
+ }).catch((h) => {
164
164
  v ? (s.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), l(v, null)) : s.emit("vf-toast-push", { label: "Locale cannot be loaded!", type: "error" });
165
165
  });
166
166
  };
167
- !n("locale") && !r.length ? l(e) : i.value = n("translations");
167
+ !n("locale") && !a.length ? l(e) : i.value = n("translations");
168
168
  const u = (m, ...v) => v.length ? u(m = m.replace("%s", v.shift()), ...v) : m;
169
- function h(m, ...v) {
169
+ function p(m, ...v) {
170
170
  return i.value && i.value.hasOwnProperty(m) ? u(i.value[m], ...v) : u(m, ...v);
171
171
  }
172
- return { t: h, changeLocale: l, locale: d };
172
+ return { t: p, changeLocale: l, locale: d };
173
173
  }
174
174
  const pe = {
175
175
  EDIT: "edit",
@@ -185,16 +185,16 @@ const pe = {
185
185
  FULL_SCREEN: "fullscreen",
186
186
  DOWNLOAD: "download",
187
187
  LANGUAGE: "language"
188
- }, fr = Object.values(pe), hr = "2.5.7";
189
- function Un(t, e, s, r, n) {
190
- return (e = Math, s = e.log, r = 1024, n = s(t) / s(r) | 0, t / e.pow(r, n)).toFixed(0) + " " + (n ? "KMGTPEZY"[--n] + "iB" : "B");
188
+ }, fr = Object.values(pe), hr = "2.5.9";
189
+ function Un(t, e, s, a, n) {
190
+ return (e = Math, s = e.log, a = 1024, n = s(t) / s(a) | 0, t / e.pow(a, n)).toFixed(0) + " " + (n ? "KMGTPEZY"[--n] + "iB" : "B");
191
191
  }
192
- function zn(t, e, s, r, n) {
193
- return (e = Math, s = e.log, r = 1e3, n = s(t) / s(r) | 0, t / e.pow(r, n)).toFixed(0) + " " + (n ? "KMGTPEZY"[--n] + "B" : "B");
192
+ function zn(t, e, s, a, n) {
193
+ return (e = Math, s = e.log, a = 1e3, n = s(t) / s(a) | 0, t / e.pow(a, n)).toFixed(0) + " " + (n ? "KMGTPEZY"[--n] + "B" : "B");
194
194
  }
195
195
  function pr(t) {
196
- const e = { k: 1, m: 2, g: 3, t: 4 }, r = /(\d+(?:\.\d+)?)\s?(k|m|g|t)?b?/i.exec(t);
197
- return r[1] * Math.pow(1024, e[r[2].toLowerCase()]);
196
+ const e = { k: 1, m: 2, g: 3, t: 4 }, a = /(\d+(?:\.\d+)?)\s?(k|m|g|t)?b?/i.exec(t);
197
+ return a[1] * Math.pow(1024, e[a[2].toLowerCase()]);
198
198
  }
199
199
  const st = {
200
200
  SYSTEM: "system",
@@ -202,10 +202,10 @@ const st = {
202
202
  DARK: "dark"
203
203
  };
204
204
  function vr(t, e) {
205
- const s = E(st.SYSTEM), r = E(st.LIGHT);
205
+ const s = E(st.SYSTEM), a = E(st.LIGHT);
206
206
  s.value = t.getStore("theme", e ?? st.SYSTEM);
207
207
  const n = window.matchMedia("(prefers-color-scheme: dark)"), c = (i) => {
208
- s.value === st.DARK || s.value === st.SYSTEM && i.matches ? r.value = st.DARK : r.value = st.LIGHT;
208
+ s.value === st.DARK || s.value === st.SYSTEM && i.matches ? a.value = st.DARK : a.value = st.LIGHT;
209
209
  };
210
210
  return c(n), n.addEventListener("change", c), {
211
211
  /**
@@ -215,7 +215,7 @@ function vr(t, e) {
215
215
  /**
216
216
  * @type {import('vue').Ref<Theme>}
217
217
  */
218
- actualValue: r,
218
+ actualValue: a,
219
219
  /**
220
220
  * @param {Theme} value
221
221
  */
@@ -242,22 +242,22 @@ function gr() {
242
242
  * Released under the MIT license.
243
243
  */
244
244
  const Ve = (t, e) => {
245
- const { o: s, i: r, u: n } = t;
245
+ const { o: s, i: a, u: n } = t;
246
246
  let c = s, i;
247
- const d = (h, m) => {
248
- const v = c, p = h, x = m || (r ? !r(v, p) : v !== p);
249
- return (x || n) && (c = p, i = v), [c, x, i];
247
+ const d = (p, m) => {
248
+ const v = c, h = p, x = m || (a ? !a(v, h) : v !== h);
249
+ return (x || n) && (c = h, i = v), [c, x, i];
250
250
  };
251
- return [e ? (h) => d(e(c, i), h) : d, (h) => [c, !!h, i]];
252
- }, jn = typeof window < "u" && typeof document < "u", Ae = jn ? window : {}, Pn = Math.max, _r = Math.min, Cs = Math.round, Jt = Math.abs, fn = Math.sign, qn = Ae.cancelAnimationFrame, Gs = Ae.requestAnimationFrame, Qt = Ae.setTimeout, Es = Ae.clearTimeout, rs = (t) => typeof Ae[t] < "u" ? Ae[t] : void 0, xr = rs("MutationObserver"), hn = rs("IntersectionObserver"), Zt = rs("ResizeObserver"), Ts = rs("ScrollTimeline"), Gn = jn && Node.ELEMENT_NODE, { toString: Hf, hasOwnProperty: xs } = Object.prototype, as = (t) => t === void 0, Ks = (t) => t === null, qe = (t) => typeof t == "number", ls = (t) => typeof t == "string", Kn = (t) => typeof t == "boolean", Fe = (t) => typeof t == "function", Ge = (t) => Array.isArray(t), Lt = (t) => typeof t == "object" && !Ge(t) && !Ks(t), is = (t) => {
251
+ return [e ? (p) => d(e(c, i), p) : d, (p) => [c, !!p, i]];
252
+ }, jn = typeof window < "u" && typeof document < "u", Ae = jn ? window : {}, Pn = Math.max, _r = Math.min, Cs = Math.round, Jt = Math.abs, fn = Math.sign, qn = Ae.cancelAnimationFrame, Gs = Ae.requestAnimationFrame, Qt = Ae.setTimeout, Es = Ae.clearTimeout, rs = (t) => typeof Ae[t] < "u" ? Ae[t] : void 0, xr = rs("MutationObserver"), hn = rs("IntersectionObserver"), Zt = rs("ResizeObserver"), Ts = rs("ScrollTimeline"), Gn = jn && Node.ELEMENT_NODE, { toString: Bf, hasOwnProperty: xs } = Object.prototype, as = (t) => t === void 0, Ks = (t) => t === null, qe = (t) => typeof t == "number", ls = (t) => typeof t == "string", Kn = (t) => typeof t == "boolean", Fe = (t) => typeof t == "function", Ge = (t) => Array.isArray(t), Lt = (t) => typeof t == "object" && !Ge(t) && !Ks(t), is = (t) => {
253
253
  const e = !!t && t.length, s = qe(e) && e > -1 && e % 1 == 0;
254
254
  return Ge(t) || !Fe(t) && s ? e > 0 && Lt(t) ? e - 1 in t : !0 : !1;
255
255
  }, es = (t) => {
256
256
  if (!t || !Lt(t))
257
257
  return !1;
258
258
  let e;
259
- const s = "constructor", r = t[s], n = r && r.prototype, c = xs.call(t, s), i = n && xs.call(n, "isPrototypeOf");
260
- if (r && !c && !i)
259
+ const s = "constructor", a = t[s], n = a && a.prototype, c = xs.call(t, s), i = n && xs.call(n, "isPrototypeOf");
260
+ if (a && !c && !i)
261
261
  return !1;
262
262
  for (e in t)
263
263
  ;
@@ -281,7 +281,7 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
281
281
  }, Yn = "paddingTop", Xn = "paddingRight", Jn = "paddingLeft", Qn = "paddingBottom", Zn = "marginLeft", eo = "marginRight", to = "marginBottom", br = "overflowX", yr = "overflowY", bt = "width", yt = "height", ot = "visible", ut = "hidden", wt = "scroll", wr = (t) => {
282
282
  const e = String(t || "");
283
283
  return e ? e[0].toUpperCase() + e.slice(1) : "";
284
- }, ds = (t, e, s, r) => {
284
+ }, ds = (t, e, s, a) => {
285
285
  if (t && e) {
286
286
  let n = !0;
287
287
  return ce(s, (c) => {
@@ -293,81 +293,81 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
293
293
  }, so = (t, e) => ds(t, e, ["w", "h"]), Wt = (t, e) => ds(t, e, ["x", "y"]), kr = (t, e) => ds(t, e, ["t", "r", "b", "l"]), at = () => {
294
294
  }, J = (t, ...e) => t.bind(0, ...e), mt = (t) => {
295
295
  let e;
296
- const s = t ? Qt : Gs, r = t ? Es : qn;
296
+ const s = t ? Qt : Gs, a = t ? Es : qn;
297
297
  return [(n) => {
298
- r(e), e = s(() => n(), Fe(t) ? t() : t);
299
- }, () => r(e)];
298
+ a(e), e = s(() => n(), Fe(t) ? t() : t);
299
+ }, () => a(e)];
300
300
  }, As = (t, e) => {
301
- const { _: s, p: r, v: n, m: c } = e || {};
302
- let i, d, l, u, h = at;
301
+ const { _: s, p: a, v: n, m: c } = e || {};
302
+ let i, d, l, u, p = at;
303
303
  const m = function(b) {
304
- h(), Es(i), u = i = d = void 0, h = at, t.apply(this, b);
305
- }, v = (y) => c && d ? c(d, y) : y, p = () => {
306
- h !== at && m(v(l) || l);
304
+ p(), Es(i), u = i = d = void 0, p = at, t.apply(this, b);
305
+ }, v = (y) => c && d ? c(d, y) : y, h = () => {
306
+ p !== at && m(v(l) || l);
307
307
  }, x = function() {
308
308
  const b = dt(arguments), A = Fe(s) ? s() : s;
309
309
  if (qe(A) && A >= 0) {
310
- const U = Fe(r) ? r() : r, B = qe(U) && U >= 0, D = A > 0 ? Qt : Gs, L = A > 0 ? Es : qn, T = v(b) || b, O = m.bind(0, T);
310
+ const U = Fe(a) ? a() : a, B = qe(U) && U >= 0, D = A > 0 ? Qt : Gs, L = A > 0 ? Es : qn, T = v(b) || b, O = m.bind(0, T);
311
311
  let M;
312
- h(), n && !u ? (O(), u = !0, M = D(() => u = void 0, A)) : (M = D(O, A), B && !i && (i = Qt(p, U))), h = () => L(M), d = l = T;
312
+ p(), n && !u ? (O(), u = !0, M = D(() => u = void 0, A)) : (M = D(O, A), B && !i && (i = Qt(h, U))), p = () => L(M), d = l = T;
313
313
  } else
314
314
  m(b);
315
315
  };
316
- return x.S = p, x;
317
- }, no = (t, e) => Object.prototype.hasOwnProperty.call(t, e), et = (t) => t ? Object.keys(t) : [], re = (t, e, s, r, n, c, i) => {
318
- const d = [e, s, r, n, c, i];
316
+ return x.S = h, x;
317
+ }, no = (t, e) => Object.prototype.hasOwnProperty.call(t, e), et = (t) => t ? Object.keys(t) : [], re = (t, e, s, a, n, c, i) => {
318
+ const d = [e, s, a, n, c, i];
319
319
  return (typeof t != "object" || Ks(t)) && !Fe(t) && (t = {}), ce(d, (l) => {
320
- ce(l, (u, h) => {
321
- const m = l[h];
320
+ ce(l, (u, p) => {
321
+ const m = l[p];
322
322
  if (t === m)
323
323
  return !0;
324
324
  const v = Ge(m);
325
325
  if (m && es(m)) {
326
- const p = t[h];
327
- let x = p;
328
- v && !Ge(p) ? x = [] : !v && !es(p) && (x = {}), t[h] = re(x, m);
326
+ const h = t[p];
327
+ let x = h;
328
+ v && !Ge(h) ? x = [] : !v && !es(h) && (x = {}), t[p] = re(x, m);
329
329
  } else
330
- t[h] = v ? m.slice() : m;
330
+ t[p] = v ? m.slice() : m;
331
331
  });
332
332
  }), t;
333
- }, oo = (t, e) => ce(re({}, t), (s, r, n) => {
334
- s === void 0 ? delete n[r] : s && es(s) && (n[r] = oo(s));
333
+ }, oo = (t, e) => ce(re({}, t), (s, a, n) => {
334
+ s === void 0 ? delete n[a] : s && es(s) && (n[a] = oo(s));
335
335
  }), Ys = (t) => {
336
336
  for (const e in t)
337
337
  return !1;
338
338
  return !0;
339
339
  }, Ds = (t, e, s) => Pn(t, _r(e, s)), ht = (t) => dt(new Set((Ge(t) ? t : (t || "").split(" ")).filter((e) => e))), Xs = (t, e) => t && t.getAttribute(e), vn = (t, e) => t && t.hasAttribute(e), Je = (t, e, s) => {
340
- ce(ht(e), (r) => {
341
- t && t.setAttribute(r, String(s || ""));
340
+ ce(ht(e), (a) => {
341
+ t && t.setAttribute(a, String(s || ""));
342
342
  });
343
- }, Ue = (t, e) => {
343
+ }, ze = (t, e) => {
344
344
  ce(ht(e), (s) => t && t.removeAttribute(s));
345
345
  }, us = (t, e) => {
346
- const s = ht(Xs(t, e)), r = J(Je, t, e), n = (c, i) => {
346
+ const s = ht(Xs(t, e)), a = J(Je, t, e), n = (c, i) => {
347
347
  const d = new Set(s);
348
348
  return ce(ht(c), (l) => {
349
349
  d[i](l);
350
350
  }), dt(d).join(" ");
351
351
  };
352
352
  return {
353
- O: (c) => r(n(c, "delete")),
354
- $: (c) => r(n(c, "add")),
353
+ O: (c) => a(n(c, "delete")),
354
+ $: (c) => a(n(c, "add")),
355
355
  C: (c) => {
356
356
  const i = ht(c);
357
357
  return i.reduce((d, l) => d && s.includes(l), i.length > 0);
358
358
  }
359
359
  };
360
- }, ro = (t, e, s) => (us(t, e).O(s), J(Js, t, e, s)), Js = (t, e, s) => (us(t, e).$(s), J(ro, t, e, s)), Ls = (t, e, s, r) => (r ? Js : ro)(t, e, s), Qs = (t, e, s) => us(t, e).C(s), ao = (t) => us(t, "class"), lo = (t, e) => {
360
+ }, ro = (t, e, s) => (us(t, e).O(s), J(Js, t, e, s)), Js = (t, e, s) => (us(t, e).$(s), J(ro, t, e, s)), Ls = (t, e, s, a) => (a ? Js : ro)(t, e, s), Qs = (t, e, s) => us(t, e).C(s), ao = (t) => us(t, "class"), lo = (t, e) => {
361
361
  ao(t).O(e);
362
362
  }, Zs = (t, e) => (ao(t).$(e), J(lo, t, e)), io = (t, e) => {
363
- const s = [], r = e ? cs(e) && e : document;
364
- return r ? xe(s, r.querySelectorAll(t)) : s;
363
+ const s = [], a = e ? cs(e) && e : document;
364
+ return a ? xe(s, a.querySelectorAll(t)) : s;
365
365
  }, $r = (t, e) => {
366
366
  const s = e ? cs(e) && e : document;
367
367
  return s ? s.querySelector(t) : null;
368
368
  }, ss = (t, e) => cs(t) ? t.matches(e) : !1, co = (t) => ss(t, "body"), Vs = (t) => t ? dt(t.childNodes) : [], kt = (t) => t && t.parentElement, _t = (t, e) => cs(t) && t.closest(e), Os = (t) => document.activeElement, Sr = (t, e, s) => {
369
- const r = _t(t, e), n = t && $r(s, r), c = _t(n, e) === r;
370
- return r && n ? r === t || n === t || c && _t(_t(t, s), e) !== r : !1;
369
+ const a = _t(t, e), n = t && $r(s, a), c = _t(n, e) === a;
370
+ return a && n ? a === t || n === t || c && _t(_t(t, s), e) !== a : !1;
371
371
  }, it = (t) => {
372
372
  if (is(t))
373
373
  ce(dt(t), (e) => it(e));
@@ -377,10 +377,10 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
377
377
  }
378
378
  }, uo = (t, e, s) => {
379
379
  if (s && t) {
380
- let r = e, n;
380
+ let a = e, n;
381
381
  return is(s) ? (n = document.createDocumentFragment(), ce(s, (c) => {
382
- c === r && (r = c.previousSibling), n.appendChild(c);
383
- })) : n = s, e && (r ? r !== e && (r = r.nextSibling) : r = t.firstChild), t.insertBefore(n, r || null), () => it(s);
382
+ c === a && (a = c.previousSibling), n.appendChild(c);
383
+ })) : n = s, e && (a ? a !== e && (a = a.nextSibling) : a = t.firstChild), t.insertBefore(n, a || null), () => it(s);
384
384
  }
385
385
  return at;
386
386
  }, Oe = (t, e) => uo(t, null, e), gn = (t, e) => uo(kt(t), t && t.nextSibling, e), xt = (t) => {
@@ -394,25 +394,25 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
394
394
  return isFinite(e) ? e : 0;
395
395
  }, qt = (t) => en(parseFloat(t || "")), xn = (t) => `${(en(t) * 100).toFixed(3)}%`, Hs = (t) => `${en(t)}px`;
396
396
  function Vt(t, e) {
397
- t && e && ce(e, (s, r) => {
397
+ t && e && ce(e, (s, a) => {
398
398
  try {
399
399
  const n = t.style, c = qe(s) ? Hs(s) : (s || "") + "";
400
- Cr.test(r) ? n.setProperty(r, c) : n[r] = c;
400
+ Cr.test(a) ? n.setProperty(a, c) : n[a] = c;
401
401
  } catch {
402
402
  }
403
403
  });
404
404
  }
405
405
  function pt(t, e, s) {
406
- const r = ls(e);
407
- let n = r ? "" : {};
406
+ const a = ls(e);
407
+ let n = a ? "" : {};
408
408
  if (t) {
409
409
  const c = Ae.getComputedStyle(t, s) || t.style;
410
- n = r ? _n(c, e) : dt(e).reduce((i, d) => (i[d] = _n(c, d), i), n);
410
+ n = a ? _n(c, e) : dt(e).reduce((i, d) => (i[d] = _n(c, d), i), n);
411
411
  }
412
412
  return n;
413
413
  }
414
414
  const bn = (t, e, s) => {
415
- const r = e ? `${e}-` : "", n = s ? `-${s}` : "", c = `${r}top${n}`, i = `${r}right${n}`, d = `${r}bottom${n}`, l = `${r}left${n}`, u = pt(t, [c, i, d, l]);
415
+ const a = e ? `${e}-` : "", n = s ? `-${s}` : "", c = `${a}top${n}`, i = `${a}right${n}`, d = `${a}bottom${n}`, l = `${a}left${n}`, u = pt(t, [c, i, d, l]);
416
416
  return {
417
417
  t: qt(u[c]),
418
418
  r: qt(u[i]),
@@ -434,28 +434,28 @@ const bn = (t, e, s) => {
434
434
  }, At = (t) => t.getBoundingClientRect(), Ar = (t) => !!t && Er(t), Rs = (t) => !!(t && (t[yt] || t[bt])), ho = (t, e) => {
435
435
  const s = Rs(t);
436
436
  return !Rs(e) && s;
437
- }, yn = (t, e, s, r) => {
437
+ }, yn = (t, e, s, a) => {
438
438
  ce(ht(e), (n) => {
439
- t && t.removeEventListener(n, s, r);
439
+ t && t.removeEventListener(n, s, a);
440
440
  });
441
- }, fe = (t, e, s, r) => {
441
+ }, fe = (t, e, s, a) => {
442
442
  var n;
443
- const c = (n = r && r.H) != null ? n : !0, i = r && r.I || !1, d = r && r.A || !1, l = {
443
+ const c = (n = a && a.H) != null ? n : !0, i = a && a.I || !1, d = a && a.A || !1, l = {
444
444
  passive: c,
445
445
  capture: i
446
446
  };
447
447
  return J(Ie, ht(e).map((u) => {
448
- const h = d ? (m) => {
449
- yn(t, u, h, i), s && s(m);
448
+ const p = d ? (m) => {
449
+ yn(t, u, p, i), s && s(m);
450
450
  } : s;
451
- return t && t.addEventListener(u, h, l), J(yn, t, u, h, i);
451
+ return t && t.addEventListener(u, p, l), J(yn, t, u, p, i);
452
452
  }));
453
453
  }, po = (t) => t.stopPropagation(), Fs = (t) => t.preventDefault(), vo = (t) => po(t) || Fs(t), Pe = (t, e) => {
454
- const { x: s, y: r } = qe(e) ? {
454
+ const { x: s, y: a } = qe(e) ? {
455
455
  x: e,
456
456
  y: e
457
457
  } : e || {};
458
- qe(s) && (t.scrollLeft = s), qe(r) && (t.scrollTop = r);
458
+ qe(s) && (t.scrollLeft = s), qe(a) && (t.scrollTop = a);
459
459
  }, He = (t) => ({
460
460
  x: t.scrollLeft,
461
461
  y: t.scrollTop
@@ -469,14 +469,14 @@ const bn = (t, e, s) => {
469
469
  y: 0
470
470
  }
471
471
  }), Dr = (t, e) => {
472
- const { T: s, D: r } = t, { w: n, h: c } = e, i = (m, v, p) => {
473
- let x = fn(m) * p, y = fn(v) * p;
472
+ const { T: s, D: a } = t, { w: n, h: c } = e, i = (m, v, h) => {
473
+ let x = fn(m) * h, y = fn(v) * h;
474
474
  if (x === y) {
475
475
  const b = Jt(m), A = Jt(v);
476
476
  y = b > A ? 0 : y, x = b < A ? 0 : x;
477
477
  }
478
478
  return x = x === y ? 0 : x, [x + 0, y + 0];
479
- }, [d, l] = i(s.x, r.x, n), [u, h] = i(s.y, r.y, c);
479
+ }, [d, l] = i(s.x, a.x, n), [u, p] = i(s.y, a.y, c);
480
480
  return {
481
481
  T: {
482
482
  x: d,
@@ -484,20 +484,20 @@ const bn = (t, e, s) => {
484
484
  },
485
485
  D: {
486
486
  x: l,
487
- y: h
487
+ y: p
488
488
  }
489
489
  };
490
490
  }, wn = ({ T: t, D: e }) => {
491
- const s = (r, n) => r === 0 && r <= n;
491
+ const s = (a, n) => a === 0 && a <= n;
492
492
  return {
493
493
  x: s(t.x, e.x),
494
494
  y: s(t.y, e.y)
495
495
  };
496
496
  }, kn = ({ T: t, D: e }, s) => {
497
- const r = (n, c, i) => Ds(0, 1, (n - i) / (n - c) || 0);
497
+ const a = (n, c, i) => Ds(0, 1, (n - i) / (n - c) || 0);
498
498
  return {
499
- x: r(t.x, e.x, s.x),
500
- y: r(t.y, e.y, s.y)
499
+ x: a(t.x, e.x, s.x),
500
+ y: a(t.y, e.y, s.y)
501
501
  };
502
502
  }, Is = (t) => {
503
503
  t && t.focus && t.focus({
@@ -516,30 +516,30 @@ const bn = (t, e, s) => {
516
516
  e.forEach((d) => {
517
517
  d.clear();
518
518
  }), e.clear();
519
- }, r = (c, i) => {
519
+ }, a = (c, i) => {
520
520
  if (ls(c)) {
521
521
  const u = e.get(c) || /* @__PURE__ */ new Set();
522
- return e.set(c, u), $n((h) => {
523
- Fe(h) && u.add(h);
522
+ return e.set(c, u), $n((p) => {
523
+ Fe(p) && u.add(p);
524
524
  }, i), J(s, c, i);
525
525
  }
526
526
  Kn(i) && i && s();
527
527
  const d = et(c), l = [];
528
528
  return ce(d, (u) => {
529
- const h = c[u];
530
- h && xe(l, r(u, h));
529
+ const p = c[u];
530
+ p && xe(l, a(u, p));
531
531
  }), J(Ie, l);
532
532
  }, n = (c, i) => {
533
533
  ce(dt(e.get(c)), (d) => {
534
534
  i && !Ms(i) ? d.apply(0, i) : d();
535
535
  });
536
536
  };
537
- return r(t || {}), [r, s, n];
537
+ return a(t || {}), [a, s, n];
538
538
  }, Sn = (t) => JSON.stringify(t, (e, s) => {
539
539
  if (Fe(s))
540
540
  throw 0;
541
541
  return s;
542
- }), Cn = (t, e) => t ? `${e}`.split(".").reduce((s, r) => s && no(s, r) ? s[r] : void 0, t) : void 0, Lr = {
542
+ }), Cn = (t, e) => t ? `${e}`.split(".").reduce((s, a) => s && no(s, a) ? s[a] : void 0, t) : void 0, Lr = {
543
543
  paddingAbsolute: !1,
544
544
  showNativeOverlaidScrollbars: !1,
545
545
  update: {
@@ -563,8 +563,8 @@ const bn = (t, e, s) => {
563
563
  pointers: ["mouse", "touch", "pen"]
564
564
  }
565
565
  }, _o = (t, e) => {
566
- const s = {}, r = Qe(et(e), et(t));
567
- return ce(r, (n) => {
566
+ const s = {}, a = Qe(et(e), et(t));
567
+ return ce(a, (n) => {
568
568
  const c = t[n], i = e[n];
569
569
  if (Lt(c) && Lt(i))
570
570
  re(s[n] = {}, _o(c, i)), Ys(s[n]) && delete s[n];
@@ -578,7 +578,7 @@ const bn = (t, e, s) => {
578
578
  d && (s[n] = i);
579
579
  }
580
580
  }), s;
581
- }, En = (t, e, s) => (r) => [Cn(t, r), s || Cn(e, r) !== void 0], Ct = "data-overlayscrollbars", Yt = "os-environment", Gt = `${Yt}-scrollbar-hidden`, ys = `${Ct}-initialize`, Xt = "noClipping", Tn = `${Ct}-body`, lt = Ct, Vr = "host", nt = `${Ct}-viewport`, Or = br, Hr = yr, Br = "arrange", xo = "measuring", bo = "scrollbarHidden", Rr = "scrollbarPressed", Fr = "noContent", Us = `${Ct}-padding`, Mn = `${Ct}-content`, sn = "os-size-observer", Ir = `${sn}-appear`, Nr = `${sn}-listener`, Ur = "os-trinsic-observer", zr = "os-theme-none", Be = "os-scrollbar", jr = `${Be}-rtl`, Pr = `${Be}-horizontal`, qr = `${Be}-vertical`, yo = `${Be}-track`, nn = `${Be}-handle`, Gr = `${Be}-visible`, Kr = `${Be}-cornerless`, An = `${Be}-interaction`, Dn = `${Be}-unusable`, zs = `${Be}-auto-hide`, Ln = `${zs}-hidden`, Vn = `${Be}-wheel`, Wr = `${yo}-interactive`, Yr = `${nn}-interactive`;
581
+ }, En = (t, e, s) => (a) => [Cn(t, a), s || Cn(e, a) !== void 0], Ct = "data-overlayscrollbars", Yt = "os-environment", Gt = `${Yt}-scrollbar-hidden`, ys = `${Ct}-initialize`, Xt = "noClipping", Tn = `${Ct}-body`, lt = Ct, Vr = "host", nt = `${Ct}-viewport`, Or = br, Hr = yr, Br = "arrange", xo = "measuring", bo = "scrollbarHidden", Rr = "scrollbarPressed", Fr = "noContent", Us = `${Ct}-padding`, Mn = `${Ct}-content`, sn = "os-size-observer", Ir = `${sn}-appear`, Nr = `${sn}-listener`, Ur = "os-trinsic-observer", zr = "os-theme-none", Be = "os-scrollbar", jr = `${Be}-rtl`, Pr = `${Be}-horizontal`, qr = `${Be}-vertical`, yo = `${Be}-track`, nn = `${Be}-handle`, Gr = `${Be}-visible`, Kr = `${Be}-cornerless`, An = `${Be}-interaction`, Dn = `${Be}-unusable`, zs = `${Be}-auto-hide`, Ln = `${zs}-hidden`, Vn = `${Be}-wheel`, Wr = `${yo}-interactive`, Yr = `${nn}-interactive`;
582
582
  let ws;
583
583
  const Xr = () => {
584
584
  const t = (k, U, B) => {
@@ -599,10 +599,10 @@ const Xr = () => {
599
599
  }, s = `.${Yt}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${Yt} div{width:200%;height:200%;margin:10px 0}.${Gt}{scrollbar-width:none!important}.${Gt}::-webkit-scrollbar,.${Gt}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`, n = mo(`<div class="${Yt}"><div></div><style>${s}</style></div>`)[0], c = n.firstChild, [i, , d] = Ns(), [l, u] = Ve({
600
600
  o: t(n, c),
601
601
  i: Wt
602
- }, J(t, n, c, !0)), [h] = u(), m = e(n), v = {
603
- x: h.x === 0,
604
- y: h.y === 0
605
- }, p = {
602
+ }, J(t, n, c, !0)), [p] = u(), m = e(n), v = {
603
+ x: p.x === 0,
604
+ y: p.y === 0
605
+ }, h = {
606
606
  elements: {
607
607
  host: null,
608
608
  padding: !m,
@@ -616,20 +616,20 @@ const Xr = () => {
616
616
  nativeScrollbarsOverlaid: !1,
617
617
  body: null
618
618
  }
619
- }, x = re({}, Lr), y = J(re, {}, x), b = J(re, {}, p), A = {
620
- k: h,
619
+ }, x = re({}, Lr), y = J(re, {}, x), b = J(re, {}, h), A = {
620
+ k: p,
621
621
  M: v,
622
622
  R: m,
623
623
  V: !!Ts,
624
624
  L: J(i, "r"),
625
625
  P: b,
626
- U: (k) => re(p, k) && b(),
626
+ U: (k) => re(h, k) && b(),
627
627
  N: y,
628
628
  q: (k) => re(x, k) && y(),
629
- B: re({}, p),
629
+ B: re({}, h),
630
630
  F: re({}, x)
631
631
  };
632
- if (Ue(n, "style"), it(n), fe(Ae, "resize", () => {
632
+ if (ze(n, "style"), it(n), fe(Ae, "resize", () => {
633
633
  d("r", []);
634
634
  }), Fe(Ae.matchMedia) && !m && (!v.x || !v.y)) {
635
635
  const k = (U) => {
@@ -646,59 +646,59 @@ const Xr = () => {
646
646
  });
647
647
  }
648
648
  return A;
649
- }, Ke = () => (ws || (ws = Xr()), ws), wo = (t, e) => Fe(e) ? e.apply(0, t) : e, Jr = (t, e, s, r) => {
650
- const n = as(r) ? s : r;
649
+ }, Ke = () => (ws || (ws = Xr()), ws), wo = (t, e) => Fe(e) ? e.apply(0, t) : e, Jr = (t, e, s, a) => {
650
+ const n = as(a) ? s : a;
651
651
  return wo(t, n) || e.apply(0, t);
652
- }, ko = (t, e, s, r) => {
653
- const n = as(r) ? s : r, c = wo(t, n);
652
+ }, ko = (t, e, s, a) => {
653
+ const n = as(a) ? s : a, c = wo(t, n);
654
654
  return !!c && (ts(c) ? c : e.apply(0, t));
655
655
  }, Qr = (t, e) => {
656
- const { nativeScrollbarsOverlaid: s, body: r } = e || {}, { M: n, R: c, P: i } = Ke(), { nativeScrollbarsOverlaid: d, body: l } = i().cancel, u = s ?? d, h = as(r) ? l : r, m = (n.x || n.y) && u, v = t && (Ks(h) ? !c : h);
656
+ const { nativeScrollbarsOverlaid: s, body: a } = e || {}, { M: n, R: c, P: i } = Ke(), { nativeScrollbarsOverlaid: d, body: l } = i().cancel, u = s ?? d, p = as(a) ? l : a, m = (n.x || n.y) && u, v = t && (Ks(p) ? !c : p);
657
657
  return !!m || !!v;
658
658
  }, on = /* @__PURE__ */ new WeakMap(), Zr = (t, e) => {
659
659
  on.set(t, e);
660
660
  }, ea = (t) => {
661
661
  on.delete(t);
662
662
  }, $o = (t) => on.get(t), ta = (t, e, s) => {
663
- let r = !1;
663
+ let a = !1;
664
664
  const n = s ? /* @__PURE__ */ new WeakMap() : !1, c = () => {
665
- r = !0;
665
+ a = !0;
666
666
  }, i = (d) => {
667
667
  if (n && s) {
668
668
  const l = s.map((u) => {
669
- const [h, m] = u || [];
670
- return [m && h ? (d || io)(h, t) : [], m];
669
+ const [p, m] = u || [];
670
+ return [m && p ? (d || io)(p, t) : [], m];
671
671
  });
672
- ce(l, (u) => ce(u[0], (h) => {
673
- const m = u[1], v = n.get(h) || [];
674
- if (t.contains(h) && m) {
675
- const x = fe(h, m, (y) => {
676
- r ? (x(), n.delete(h)) : e(y);
672
+ ce(l, (u) => ce(u[0], (p) => {
673
+ const m = u[1], v = n.get(p) || [];
674
+ if (t.contains(p) && m) {
675
+ const x = fe(p, m, (y) => {
676
+ a ? (x(), n.delete(p)) : e(y);
677
677
  });
678
- n.set(h, xe(v, x));
678
+ n.set(p, xe(v, x));
679
679
  } else
680
- Ie(v), n.delete(h);
680
+ Ie(v), n.delete(p);
681
681
  }));
682
682
  }
683
683
  };
684
684
  return i(), [c, i];
685
- }, On = (t, e, s, r) => {
685
+ }, On = (t, e, s, a) => {
686
686
  let n = !1;
687
- const { j: c, X: i, Y: d, W: l, J: u, K: h } = r || {}, m = As(() => n && s(!0), {
687
+ const { j: c, X: i, Y: d, W: l, J: u, K: p } = a || {}, m = As(() => n && s(!0), {
688
688
  _: 33,
689
689
  p: 99
690
- }), [v, p] = ta(t, m, d), x = c || [], y = i || [], b = Qe(x, y), A = (U, B) => {
690
+ }), [v, h] = ta(t, m, d), x = c || [], y = i || [], b = Qe(x, y), A = (U, B) => {
691
691
  if (!Ms(B)) {
692
- const D = u || at, L = h || at, V = [], T = [];
692
+ const D = u || at, L = p || at, V = [], T = [];
693
693
  let O = !1, M = !1;
694
694
  if (ce(B, (S) => {
695
695
  const { attributeName: H, target: $, type: w, oldValue: I, addedNodes: R, removedNodes: ne } = S, ue = w === "attributes", le = w === "childList", F = t === $, ee = ue && H, te = ee && Xs($, H || ""), X = ls(te) ? te : null, me = ee && I !== X, z = Ws(y, H) && me;
696
696
  if (e && (le || !F)) {
697
- const q = ue && me, P = q && l && ss($, l), N = (P ? !D($, H, I, X) : !ue || q) && !L(S, !!P, t, r);
697
+ const q = ue && me, P = q && l && ss($, l), N = (P ? !D($, H, I, X) : !ue || q) && !L(S, !!P, t, a);
698
698
  ce(R, (G) => xe(V, G)), ce(ne, (G) => xe(V, G)), M = M || N;
699
699
  }
700
700
  !e && F && me && !D($, H, I, X) && (xe(T, H), O = O || z);
701
- }), p((S) => pn(V).reduce((H, $) => (xe(H, io(S, $)), ss($, S) ? xe(H, $) : H), [])), e)
701
+ }), h((S) => pn(V).reduce((H, $) => (xe(H, io(S, $)), ss($, S) ? xe(H, $) : H), [])), e)
702
702
  return !U && M && s(!1), [!1];
703
703
  if (!Ms(T) || O) {
704
704
  const S = [pn(T), O];
@@ -720,59 +720,59 @@ const Xr = () => {
720
720
  return m.S(), A(!0, k.takeRecords());
721
721
  }];
722
722
  }, So = {}, Co = {}, sa = (t) => {
723
- ce(t, (e) => ce(e, (s, r) => {
724
- So[r] = e[r];
723
+ ce(t, (e) => ce(e, (s, a) => {
724
+ So[a] = e[a];
725
725
  }));
726
- }, Eo = (t, e, s) => et(t).map((r) => {
727
- const { static: n, instance: c } = t[r], [i, d, l] = s || [], u = s ? c : n;
726
+ }, Eo = (t, e, s) => et(t).map((a) => {
727
+ const { static: n, instance: c } = t[a], [i, d, l] = s || [], u = s ? c : n;
728
728
  if (u) {
729
- const h = s ? u(i, d, e) : u(e);
730
- return (l || Co)[r] = h;
729
+ const p = s ? u(i, d, e) : u(e);
730
+ return (l || Co)[a] = p;
731
731
  }
732
732
  }), Ht = (t) => Co[t], na = "__osOptionsValidationPlugin", oa = "__osSizeObserverPlugin", ra = (t, e) => {
733
- const { M: s } = e, [r, n] = t("showNativeOverlaidScrollbars");
734
- return [r && s.x && s.y, n];
733
+ const { M: s } = e, [a, n] = t("showNativeOverlaidScrollbars");
734
+ return [a && s.x && s.y, n];
735
735
  }, ns = (t) => t.indexOf(ot) === 0, aa = (t, e) => {
736
736
  const s = (n, c, i, d) => {
737
- const l = n === ot ? ut : n.replace(`${ot}-`, ""), u = ns(n), h = ns(i);
738
- return !c && !d ? ut : u && h ? ot : u ? c && d ? l : c ? ot : ut : c ? l : h && d ? ot : ut;
739
- }, r = {
737
+ const l = n === ot ? ut : n.replace(`${ot}-`, ""), u = ns(n), p = ns(i);
738
+ return !c && !d ? ut : u && p ? ot : u ? c && d ? l : c ? ot : ut : c ? l : p && d ? ot : ut;
739
+ }, a = {
740
740
  x: s(e.x, t.x, e.y, t.y),
741
741
  y: s(e.y, t.y, e.x, t.x)
742
742
  };
743
743
  return {
744
- G: r,
744
+ G: a,
745
745
  Z: {
746
- x: r.x === wt,
747
- y: r.y === wt
746
+ x: a.x === wt,
747
+ y: a.y === wt
748
748
  }
749
749
  };
750
750
  }, To = "__osScrollbarsHidingPlugin", la = "__osClickScrollPlugin", Mo = (t, e, s) => {
751
- const { dt: r } = s || {}, n = Ht(oa), [c] = Ve({
751
+ const { dt: a } = s || {}, n = Ht(oa), [c] = Ve({
752
752
  o: !1,
753
753
  u: !0
754
754
  });
755
755
  return () => {
756
- const i = [], l = mo(`<div class="${sn}"><div class="${Nr}"></div></div>`)[0], u = l.firstChild, h = (m) => {
756
+ const i = [], l = mo(`<div class="${sn}"><div class="${Nr}"></div></div>`)[0], u = l.firstChild, p = (m) => {
757
757
  const v = m instanceof ResizeObserverEntry;
758
- let p = !1, x = !1;
758
+ let h = !1, x = !1;
759
759
  if (v) {
760
760
  const [y, , b] = c(m.contentRect), A = Rs(y);
761
- x = ho(y, b), p = !x && !A;
761
+ x = ho(y, b), h = !x && !A;
762
762
  } else
763
763
  x = m === !0;
764
- p || e({
764
+ h || e({
765
765
  ft: !0,
766
766
  dt: x
767
767
  });
768
768
  };
769
769
  if (Zt) {
770
- const m = new Zt((v) => h(v.pop()));
770
+ const m = new Zt((v) => p(v.pop()));
771
771
  m.observe(u), xe(i, () => {
772
772
  m.disconnect();
773
773
  });
774
774
  } else if (n) {
775
- const [m, v] = n(u, h, r);
775
+ const [m, v] = n(u, p, a);
776
776
  xe(i, Qe([Zs(l, Ir), fe(l, "animationstart", m)], v));
777
777
  } else
778
778
  return at;
@@ -780,12 +780,12 @@ const Xr = () => {
780
780
  };
781
781
  }, ia = (t, e) => {
782
782
  let s;
783
- const r = (l) => l.h === 0 || l.isIntersecting || l.intersectionRatio > 0, n = xt(Ur), [c] = Ve({
783
+ const a = (l) => l.h === 0 || l.isIntersecting || l.intersectionRatio > 0, n = xt(Ur), [c] = Ve({
784
784
  o: !1
785
785
  }), i = (l, u) => {
786
786
  if (l) {
787
- const h = c(r(l)), [, m] = h;
788
- return m && !u && e(h) && [h];
787
+ const p = c(a(l)), [, m] = p;
788
+ return m && !u && e(p) && [p];
789
789
  }
790
790
  }, d = (l, u) => i(u.pop(), l);
791
791
  return [() => {
@@ -798,16 +798,16 @@ const Xr = () => {
798
798
  });
799
799
  else {
800
800
  const u = () => {
801
- const h = Mt(n);
802
- i(h);
801
+ const p = Mt(n);
802
+ i(p);
803
803
  };
804
804
  xe(l, Mo(n, u)()), u();
805
805
  }
806
806
  return J(Ie, xe(l, Oe(t, n)));
807
807
  }, () => s && d(!0, s.takeRecords())];
808
- }, ca = (t, e, s, r) => {
808
+ }, ca = (t, e, s, a) => {
809
809
  let n, c, i, d, l, u;
810
- const h = `[${lt}]`, m = `[${nt}]`, v = [], p = ["wrap", "cols", "rows"], x = ["id", "class", "style", "open"], { vt: y, ht: b, ot: A, gt: k, bt: U, wt: B, nt: D, yt: L, St: V, Ot: T } = t, O = (C) => pt(C, "direction") === "rtl", M = {
810
+ const p = `[${lt}]`, m = `[${nt}]`, v = [], h = ["wrap", "cols", "rows"], x = ["id", "class", "style", "open"], { vt: y, ht: b, ot: A, gt: k, bt: U, wt: B, nt: D, yt: L, St: V, Ot: T } = t, O = (C) => pt(C, "direction") === "rtl", M = {
811
811
  $t: !1,
812
812
  ct: O(y)
813
813
  }, S = Ke(), H = Ht(To), [$] = Ve({
@@ -822,7 +822,7 @@ const Xr = () => {
822
822
  w: Se.w + oe.w,
823
823
  h: Se.h + oe.h
824
824
  };
825
- }), w = B ? p : Qe(x, p), I = As(r, {
825
+ }), w = B ? h : Qe(x, h), I = As(a, {
826
826
  _: () => n,
827
827
  p: () => c,
828
828
  m(C, N) {
@@ -842,9 +842,9 @@ const Xr = () => {
842
842
  };
843
843
  return re(M, {
844
844
  $t: G
845
- }), !N && r(Z), Z;
845
+ }), !N && a(Z), Z;
846
846
  }, ue = ({ ft: C, dt: N }) => {
847
- const K = !(C && !N) && S.R ? I : r, Z = {
847
+ const K = !(C && !N) && S.R ? I : a, Z = {
848
848
  ft: C || N,
849
849
  dt: N
850
850
  };
@@ -853,7 +853,7 @@ const Xr = () => {
853
853
  const [, G] = $(), K = {
854
854
  Ht: G
855
855
  };
856
- return R(K), G && !N && (C ? r : I)(K), K;
856
+ return R(K), G && !N && (C ? a : I)(K), K;
857
857
  }, F = (C, N, G) => {
858
858
  const K = {
859
859
  Et: N
@@ -872,7 +872,7 @@ const Xr = () => {
872
872
  }), l = N;
873
873
  }), P = As(() => {
874
874
  const [, C] = $();
875
- r({
875
+ a({
876
876
  Ht: C
877
877
  });
878
878
  }, {
@@ -896,10 +896,10 @@ const Xr = () => {
896
896
  const [be, ge] = On(U || A, !0, le, {
897
897
  j: Qe(w, ie || []),
898
898
  Y: Se,
899
- W: h,
899
+ W: p,
900
900
  K: (Te, _e) => {
901
901
  const { target: Me, attributeName: Le } = Te;
902
- return (!_e && Le && !D ? Sr(Me, h, m) : !1) || !!_t(Me, `.${Be}`) || !!De(Te);
902
+ return (!_e && Le && !D ? Sr(Me, p, m) : !1) || !!_t(Me, `.${Be}`) || !!De(Te);
903
903
  }
904
904
  });
905
905
  d = be(), i = ge;
@@ -915,14 +915,14 @@ const Xr = () => {
915
915
  }
916
916
  return R(K), K;
917
917
  }, M];
918
- }, da = (t, e, s, r) => {
919
- const { P: n } = Ke(), { scrollbars: c } = n(), { slot: i } = c, { vt: d, ht: l, ot: u, Dt: h, gt: m, yt: v, nt: p } = e, { scrollbars: x } = h ? {} : t, { slot: y } = x || {}, b = /* @__PURE__ */ new Map(), A = (z) => Ts && new Ts({
918
+ }, da = (t, e, s, a) => {
919
+ const { P: n } = Ke(), { scrollbars: c } = n(), { slot: i } = c, { vt: d, ht: l, ot: u, Dt: p, gt: m, yt: v, nt: h } = e, { scrollbars: x } = p ? {} : t, { slot: y } = x || {}, b = /* @__PURE__ */ new Map(), A = (z) => Ts && new Ts({
920
920
  source: m,
921
921
  axis: z
922
922
  }), k = {
923
923
  x: A("x"),
924
924
  y: A("y")
925
- }, U = ko([d, l, u], () => p && v ? d : l, i, y), B = (z, q) => {
925
+ }, U = ko([d, l, u], () => h && v ? d : l, i, y), B = (z, q) => {
926
926
  if (q) {
927
927
  const Z = z ? bt : yt, { kt: ie, Mt: ye } = q, Se = At(ye)[Z], oe = At(ie)[Z];
928
928
  return Ds(0, 1, Se / oe || 0);
@@ -975,7 +975,7 @@ const Xr = () => {
975
975
  }) : M(z, (Z) => [Z.Mt, {
976
976
  transform: K(Z, kn(P, He(m))[C])
977
977
  }]);
978
- }, $ = (z) => p && !v && kt(z) === u, w = [], I = [], R = [], ne = (z, q, P) => {
978
+ }, $ = (z) => h && !v && kt(z) === u, w = [], I = [], R = [], ne = (z, q, P) => {
979
979
  const C = Kn(P), N = C ? P : !0, G = C ? !P : !0;
980
980
  N && O(I, z, q), G && O(R, z, q);
981
981
  }, ue = () => {
@@ -983,7 +983,7 @@ const Xr = () => {
983
983
  }, le = () => {
984
984
  H(I, !0), H(R);
985
985
  }, F = () => {
986
- if (p) {
986
+ if (h) {
987
987
  const { Rt: z, Pt: q } = s, P = wn(q), C = 0.5;
988
988
  if (k.x && k.y)
989
989
  ce(Qe(R, I), ({ Lt: N }) => {
@@ -1017,7 +1017,7 @@ const Xr = () => {
1017
1017
  kt: C,
1018
1018
  Mt: N
1019
1019
  };
1020
- return xe(z ? I : R, G), xe(w, [Oe(P, C), Oe(C, N), J(it, P), V, r(G, ne, H, z)]), G;
1020
+ return xe(z ? I : R, G), xe(w, [Oe(P, C), Oe(C, N), J(it, P), V, a(G, ne, H, z)]), G;
1021
1021
  }, te = J(ee, !0), X = J(ee, !1), me = () => (Oe(U, I[0].Lt), Oe(U, R[0].Lt), J(Ie, w));
1022
1022
  return te(), X(), [{
1023
1023
  Ut: ue,
@@ -1037,8 +1037,8 @@ const Xr = () => {
1037
1037
  Yt: J(M, R)
1038
1038
  }
1039
1039
  }, me];
1040
- }, ua = (t, e, s, r) => (n, c, i, d) => {
1041
- const { ht: l, ot: u, nt: h, gt: m, Jt: v, Ot: p } = e, { Lt: x, kt: y, Mt: b } = n, [A, k] = mt(333), [U, B] = mt(444), [D, L] = mt(), V = J(i, [n], d), T = ($) => {
1040
+ }, ua = (t, e, s, a) => (n, c, i, d) => {
1041
+ const { ht: l, ot: u, nt: p, gt: m, Jt: v, Ot: h } = e, { Lt: x, kt: y, Mt: b } = n, [A, k] = mt(333), [U, B] = mt(444), [D, L] = mt(), V = J(i, [n], d), T = ($) => {
1042
1042
  Fe(m.scrollBy) && m.scrollBy({
1043
1043
  behavior: "smooth",
1044
1044
  left: $.x,
@@ -1057,7 +1057,7 @@ const Xr = () => {
1057
1057
  B();
1058
1058
  const C = !F && le.shiftKey, N = J(At, b), G = J(At, y), K = (_e, Me) => (_e || N())[I] - (Me || G())[I], Z = Cs(At(m)[O]) / Mt(m)[R] || 1, ie = ue(He(m)[ne], 1 / Z), ye = le[w], Se = N(), oe = G(), we = Se[O], Ee = K(Se, oe) + we / 2, Re = ye - oe[I], ke = F ? 0 : Re - Ee, De = (_e) => {
1059
1059
  Ie(Te), ee.releasePointerCapture(_e.pointerId);
1060
- }, be = () => p(Rr, !0), ge = be(), Te = [() => {
1060
+ }, be = () => h(Rr, !0), ge = be(), Te = [() => {
1061
1061
  const _e = He(m);
1062
1062
  ge();
1063
1063
  const Me = He(m), Le = {
@@ -1082,11 +1082,11 @@ const Xr = () => {
1082
1082
  };
1083
1083
  let S = !0;
1084
1084
  const H = ($) => $.propertyName.indexOf(O) > -1;
1085
- return J(Ie, [fe(b, "pointermove pointerleave", r), fe(x, "pointerenter", () => {
1085
+ return J(Ie, [fe(b, "pointermove pointerleave", a), fe(x, "pointerenter", () => {
1086
1086
  c(An, !0);
1087
1087
  }), fe(x, "pointerleave pointercancel", () => {
1088
1088
  c(An, !1);
1089
- }), !h && fe(x, "mousedown", () => {
1089
+ }), !p && fe(x, "mousedown", () => {
1090
1090
  const $ = Os();
1091
1091
  (vn($, nt) || vn($, lt) || $ === document.body) && Qt(J(Is, u), 25);
1092
1092
  }), fe(x, "wheel", ($) => {
@@ -1116,9 +1116,9 @@ const Xr = () => {
1116
1116
  }), {
1117
1117
  I: !0
1118
1118
  }), M(), k, B, L]);
1119
- }, ma = (t, e, s, r, n, c) => {
1120
- let i, d, l, u, h, m = at, v = 0;
1121
- const p = (F) => F.pointerType === "mouse", [x, y] = mt(), [b, A] = mt(100), [k, U] = mt(100), [B, D] = mt(() => v), [L, V] = da(t, n, r, ua(e, n, r, (F) => p(F) && R())), { ht: T, Kt: O, yt: M } = n, { Bt: S, Ut: H, Nt: $, qt: w } = L, I = (F, ee) => {
1119
+ }, ma = (t, e, s, a, n, c) => {
1120
+ let i, d, l, u, p, m = at, v = 0;
1121
+ const h = (F) => F.pointerType === "mouse", [x, y] = mt(), [b, A] = mt(100), [k, U] = mt(100), [B, D] = mt(() => v), [L, V] = da(t, n, a, ua(e, n, a, (F) => h(F) && R())), { ht: T, Kt: O, yt: M } = n, { Bt: S, Ut: H, Nt: $, qt: w } = L, I = (F, ee) => {
1122
1122
  if (D(), F)
1123
1123
  S(Ln);
1124
1124
  else {
@@ -1132,20 +1132,20 @@ const Xr = () => {
1132
1132
  }, ne = (F) => {
1133
1133
  S(zs, F, !0), S(zs, F, !1);
1134
1134
  }, ue = (F) => {
1135
- p(F) && (i = l, l && I(!0));
1135
+ h(F) && (i = l, l && I(!0));
1136
1136
  }, le = [D, A, U, y, () => m(), fe(T, "pointerover", ue, {
1137
1137
  A: !0
1138
1138
  }), fe(T, "pointerenter", ue), fe(T, "pointerleave", (F) => {
1139
- p(F) && (i = !1, l && I(!1));
1139
+ h(F) && (i = !1, l && I(!1));
1140
1140
  }), fe(T, "pointermove", (F) => {
1141
- p(F) && d && R();
1141
+ h(F) && d && R();
1142
1142
  }), fe(O, "scroll", (F) => {
1143
1143
  x(() => {
1144
1144
  $(), R();
1145
1145
  }), c(F), w();
1146
1146
  })];
1147
1147
  return [() => J(Ie, xe(le, V())), ({ It: F, Tt: ee, Gt: te, Qt: X }) => {
1148
- const { Zt: me, tn: z, nn: q, sn: P } = X || {}, { Ct: C, dt: N } = te || {}, { ct: G } = s, { M: K } = Ke(), { G: Z, en: ie } = r, [ye, Se] = F("showNativeOverlaidScrollbars"), [oe, we] = F("scrollbars.theme"), [Ee, Re] = F("scrollbars.visibility"), [ke, De] = F("scrollbars.autoHide"), [be, ge] = F("scrollbars.autoHideSuspend"), [Te] = F("scrollbars.autoHideDelay"), [_e, Me] = F("scrollbars.dragScroll"), [Le, vt] = F("scrollbars.clickScroll"), [Bt, hs] = F("overflow"), ps = N && !ee, vs = ie.x || ie.y, Ne = me || z || P || C || ee, gs = q || Re || hs, Rt = ye && K.x && K.y, Ft = (tt, Et, Tt) => {
1148
+ const { Zt: me, tn: z, nn: q, sn: P } = X || {}, { Ct: C, dt: N } = te || {}, { ct: G } = s, { M: K } = Ke(), { G: Z, en: ie } = a, [ye, Se] = F("showNativeOverlaidScrollbars"), [oe, we] = F("scrollbars.theme"), [Ee, Re] = F("scrollbars.visibility"), [ke, De] = F("scrollbars.autoHide"), [be, ge] = F("scrollbars.autoHideSuspend"), [Te] = F("scrollbars.autoHideDelay"), [_e, Me] = F("scrollbars.dragScroll"), [Le, vt] = F("scrollbars.clickScroll"), [Bt, hs] = F("overflow"), ps = N && !ee, vs = ie.x || ie.y, Ue = me || z || P || C || ee, gs = q || Re || hs, Rt = ye && K.x && K.y, Ft = (tt, Et, Tt) => {
1149
1149
  const It = tt.includes(wt) && (Ee === ot || Ee === "auto" && Et === wt);
1150
1150
  return S(Gr, It, Tt), It;
1151
1151
  };
@@ -1153,14 +1153,14 @@ const Xr = () => {
1153
1153
  m = fe(O, "scroll", J(ne, !0), {
1154
1154
  A: !0
1155
1155
  });
1156
- })) : ne(!0)), Se && S(zr, Rt), we && (S(h), S(oe, !0), h = oe), ge && !be && ne(!0), De && (d = ke === "move", l = ke === "leave", u = ke === "never", I(u, !0)), Me && S(Yr, _e), vt && S(Wr, Le), gs) {
1156
+ })) : ne(!0)), Se && S(zr, Rt), we && (S(p), S(oe, !0), p = oe), ge && !be && ne(!0), De && (d = ke === "move", l = ke === "leave", u = ke === "never", I(u, !0)), Me && S(Yr, _e), vt && S(Wr, Le), gs) {
1157
1157
  const tt = Ft(Bt.x, Z.x, !0), Et = Ft(Bt.y, Z.y, !1);
1158
1158
  S(Kr, !(tt && Et));
1159
1159
  }
1160
- Ne && (H(), $(), w(), S(Dn, !ie.x, !0), S(Dn, !ie.y, !1), S(jr, G && !M));
1160
+ Ue && (H(), $(), w(), S(Dn, !ie.x, !0), S(Dn, !ie.y, !1), S(jr, G && !M));
1161
1161
  }, {}, L];
1162
1162
  }, fa = (t) => {
1163
- const e = Ke(), { P: s, R: r } = e, { elements: n } = s(), { host: c, padding: i, viewport: d, content: l } = n, u = ts(t), h = u ? {} : t, { elements: m } = h, { host: v, padding: p, viewport: x, content: y } = m || {}, b = u ? t : h.target, A = co(b), k = ss(b, "textarea"), U = b.ownerDocument, B = U.documentElement, D = () => U.defaultView || Ae, L = J(Jr, [b]), V = J(ko, [b]), T = J(xt, ""), O = J(L, T, d), M = J(V, T, l), S = O(x), H = S === b, $ = H && A, w = !H && M(y), I = !H && S === w, R = $ ? B : S, ne = k ? L(T, c, v) : b, ue = $ ? R : ne, le = !H && V(T, i, p), F = !I && w, ee = [F, R, le, ue].map((oe) => ts(oe) && !kt(oe) && oe), te = (oe) => oe && Ws(ee, oe), X = te(R) ? b : R, me = {
1163
+ const e = Ke(), { P: s, R: a } = e, { elements: n } = s(), { host: c, padding: i, viewport: d, content: l } = n, u = ts(t), p = u ? {} : t, { elements: m } = p, { host: v, padding: h, viewport: x, content: y } = m || {}, b = u ? t : p.target, A = co(b), k = ss(b, "textarea"), U = b.ownerDocument, B = U.documentElement, D = () => U.defaultView || Ae, L = J(Jr, [b]), V = J(ko, [b]), T = J(xt, ""), O = J(L, T, d), M = J(V, T, l), S = O(x), H = S === b, $ = H && A, w = !H && M(y), I = !H && S === w, R = $ ? B : S, ne = k ? L(T, c, v) : b, ue = $ ? R : ne, le = !H && V(T, i, h), F = !I && w, ee = [F, R, le, ue].map((oe) => ts(oe) && !kt(oe) && oe), te = (oe) => oe && Ws(ee, oe), X = te(R) ? b : R, me = {
1164
1164
  vt: b,
1165
1165
  ht: ue,
1166
1166
  ot: R,
@@ -1178,7 +1178,7 @@ const Xr = () => {
1178
1178
  St: (oe) => Qs(R, nt, oe),
1179
1179
  Ot: (oe, we) => Ls(R, nt, oe, we)
1180
1180
  }, { vt: z, ht: q, cn: P, ot: C, bt: N } = me, G = [() => {
1181
- Ue(q, [lt, ys]), Ue(z, ys), A && Ue(B, [ys, lt]);
1181
+ ze(q, [lt, ys]), ze(z, ys), A && ze(B, [ys, lt]);
1182
1182
  }], K = k && te(q);
1183
1183
  let Z = k ? z : Vs([N, C, P, q, z].find((oe) => oe && !te(oe)));
1184
1184
  const ie = $ ? z : N || C, ye = J(Ie, G);
@@ -1193,26 +1193,26 @@ const Xr = () => {
1193
1193
  gn(q, z), it(q);
1194
1194
  })), Oe(ie, Z), Oe(q, P), Oe(P || q, !H && C), Oe(C, N), xe(G, [be, () => {
1195
1195
  const ge = Os(), Te = te(C), _e = Te && ge === C ? z : ge, Me = Re(_e);
1196
- Ue(P, Us), Ue(N, Mn), Ue(C, nt), A && Ue(B, Tn), De ? Je(C, ke, De) : Ue(C, ke), te(N) && Ee(N), Te && Ee(C), te(P) && Ee(P), Is(_e), Me();
1197
- }]), r && !H && (Js(C, nt, bo), xe(G, J(Ue, C, nt))), Is(!H && A && we === z && oe.top === oe ? C : we), be(), Z = 0, ye;
1196
+ ze(P, Us), ze(N, Mn), ze(C, nt), A && ze(B, Tn), De ? Je(C, ke, De) : ze(C, ke), te(N) && Ee(N), Te && Ee(C), te(P) && Ee(P), Is(_e), Me();
1197
+ }]), a && !H && (Js(C, nt, bo), xe(G, J(ze, C, nt))), Is(!H && A && we === z && oe.top === oe ? C : we), be(), Z = 0, ye;
1198
1198
  }, ye];
1199
- }, ha = ({ bt: t }) => ({ Gt: e, an: s, Tt: r }) => {
1199
+ }, ha = ({ bt: t }) => ({ Gt: e, an: s, Tt: a }) => {
1200
1200
  const { xt: n } = e || {}, { $t: c } = s;
1201
- t && (n || r) && Vt(t, {
1201
+ t && (n || a) && Vt(t, {
1202
1202
  [yt]: c && "100%"
1203
1203
  });
1204
- }, pa = ({ ht: t, cn: e, ot: s, nt: r }, n) => {
1204
+ }, pa = ({ ht: t, cn: e, ot: s, nt: a }, n) => {
1205
1205
  const [c, i] = Ve({
1206
1206
  i: kr,
1207
1207
  o: bn()
1208
1208
  }, J(bn, t, "padding", ""));
1209
- return ({ It: d, Gt: l, an: u, Tt: h }) => {
1210
- let [m, v] = i(h);
1211
- const { R: p } = Ke(), { ft: x, Ht: y, Ct: b } = l || {}, { ct: A } = u, [k, U] = d("paddingAbsolute");
1212
- (x || v || (h || y)) && ([m, v] = c(h));
1213
- const D = !r && (U || b || v);
1209
+ return ({ It: d, Gt: l, an: u, Tt: p }) => {
1210
+ let [m, v] = i(p);
1211
+ const { R: h } = Ke(), { ft: x, Ht: y, Ct: b } = l || {}, { ct: A } = u, [k, U] = d("paddingAbsolute");
1212
+ (x || v || (p || y)) && ([m, v] = c(p));
1213
+ const D = !a && (U || b || v);
1214
1214
  if (D) {
1215
- const L = !k || !e && !p, V = m.r + m.l, T = m.t + m.b, O = {
1215
+ const L = !k || !e && !h, V = m.r + m.l, T = m.t + m.b, O = {
1216
1216
  [eo]: L && !A ? -V : 0,
1217
1217
  [to]: L ? -T : 0,
1218
1218
  [Zn]: L && A ? -V : 0,
@@ -1237,7 +1237,7 @@ const Xr = () => {
1237
1237
  };
1238
1238
  };
1239
1239
  }, va = (t, e) => {
1240
- const s = Ke(), { ht: r, cn: n, ot: c, nt: i, Kt: d, gt: l, yt: u, Ot: h, ln: m } = t, { R: v } = s, p = u && i, x = J(Pn, 0), y = ["display", "direction", "flexDirection", "writingMode"], b = {
1240
+ const s = Ke(), { ht: a, cn: n, ot: c, nt: i, Kt: d, gt: l, yt: u, Ot: p, ln: m } = t, { R: v } = s, h = u && i, x = J(Pn, 0), y = ["display", "direction", "flexDirection", "writingMode"], b = {
1241
1241
  i: so,
1242
1242
  o: {
1243
1243
  w: 0,
@@ -1247,7 +1247,7 @@ const Xr = () => {
1247
1247
  i: Wt,
1248
1248
  o: {}
1249
1249
  }, k = (F) => {
1250
- h(xo, !p && F);
1250
+ p(xo, !h && F);
1251
1251
  }, U = (F, ee) => {
1252
1252
  const te = Ae.devicePixelRatio % 1 !== 0 ? 1 : 0, X = {
1253
1253
  w: x(F.w - ee.w),
@@ -1265,7 +1265,7 @@ const Xr = () => {
1265
1265
  o: go()
1266
1266
  }, () => {
1267
1267
  k(!0);
1268
- const F = He(l), ee = h(Fr, !0), te = fe(d, wt, (P) => {
1268
+ const F = He(l), ee = p(Fr, !0), te = fe(d, wt, (P) => {
1269
1269
  const C = He(l);
1270
1270
  P.isTrusted && C.x === F.x && C.y === F.y && po(P);
1271
1271
  }, {
@@ -1293,14 +1293,14 @@ const Xr = () => {
1293
1293
  };
1294
1294
  }), ne = Ht(To), ue = (F, ee) => `${ee ? Or : Hr}${wr(F)}`, le = (F) => {
1295
1295
  const ee = (X) => [ot, ut, wt].map((me) => ue(me, X)), te = ee(!0).concat(ee()).join(" ");
1296
- h(te), h(et(F).map((X) => ue(F[X], X === "x")).join(" "), !0);
1296
+ p(te), p(et(F).map((X) => ue(F[X], X === "x")).join(" "), !0);
1297
1297
  };
1298
1298
  return ({ It: F, Gt: ee, an: te, Tt: X }, { _n: me }) => {
1299
1299
  const { ft: z, Ht: q, Ct: P, dt: C, zt: N } = ee || {}, G = ne && ne.tt(t, e, te, s, F), { it: K, ut: Z, _t: ie } = G || {}, [ye, Se] = ra(F, s), [oe, we] = F("overflow"), Ee = ns(oe.x), Re = ns(oe.y), ke = z || me || q || P || N || Se;
1300
1300
  let De = D(X), be = V(X), ge = O(X), Te = H(X);
1301
- if (Se && v && h(bo, !ye), ke) {
1302
- Qs(r, lt, Xt) && k(!0);
1303
- const [dn] = Z ? Z() : [], [Nt] = De = B(X), [Ut] = be = L(X), zt = fo(c), jt = p && Mr(m()), qo = {
1301
+ if (Se && v && p(bo, !ye), ke) {
1302
+ Qs(a, lt, Xt) && k(!0);
1303
+ const [dn] = Z ? Z() : [], [Nt] = De = B(X), [Ut] = be = L(X), zt = fo(c), jt = h && Mr(m()), qo = {
1304
1304
  w: x(Ut.w + Nt.w),
1305
1305
  h: x(Ut.h + Nt.h)
1306
1306
  }, un = {
@@ -1309,11 +1309,11 @@ const Xr = () => {
1309
1309
  };
1310
1310
  dn && dn(), Te = S(un), ge = T(U(qo, un), X);
1311
1311
  }
1312
- const [_e, Me] = Te, [Le, vt] = ge, [Bt, hs] = be, [ps, vs] = De, [Ne, gs] = M({
1312
+ const [_e, Me] = Te, [Le, vt] = ge, [Bt, hs] = be, [ps, vs] = De, [Ue, gs] = M({
1313
1313
  x: Le.w > 0,
1314
1314
  y: Le.h > 0
1315
- }), Rt = Ee && Re && (Ne.x || Ne.y) || Ee && Ne.x && !Ne.y || Re && Ne.y && !Ne.x, Ft = me || P || N || vs || hs || Me || vt || we || Se || ke, tt = aa(Ne, oe), [Et, Tt] = $(tt.G), [, It] = w(X), cn = P || C || It || gs || X, [jo, Po] = cn ? I(X) : R();
1316
- return Ft && (Tt && le(tt.G), ie && K && Vt(c, ie(tt, te, K(tt, Bt, ps)))), k(!1), Ls(r, lt, Xt, Rt), Ls(n, Us, Xt, Rt), re(e, {
1315
+ }), Rt = Ee && Re && (Ue.x || Ue.y) || Ee && Ue.x && !Ue.y || Re && Ue.y && !Ue.x, Ft = me || P || N || vs || hs || Me || vt || we || Se || ke, tt = aa(Ue, oe), [Et, Tt] = $(tt.G), [, It] = w(X), cn = P || C || It || gs || X, [jo, Po] = cn ? I(X) : R();
1316
+ return Ft && (Tt && le(tt.G), ie && K && Vt(c, ie(tt, te, K(tt, Bt, ps)))), k(!1), Ls(a, lt, Xt, Rt), Ls(n, Us, Xt, Rt), re(e, {
1317
1317
  G: Et,
1318
1318
  Vt: {
1319
1319
  x: _e.w,
@@ -1323,7 +1323,7 @@ const Xr = () => {
1323
1323
  x: Le.w,
1324
1324
  y: Le.h
1325
1325
  },
1326
- en: Ne,
1326
+ en: Ue,
1327
1327
  Pt: Dr(jo, Le)
1328
1328
  }), {
1329
1329
  nn: Tt,
@@ -1334,7 +1334,7 @@ const Xr = () => {
1334
1334
  };
1335
1335
  };
1336
1336
  }, ga = (t) => {
1337
- const [e, s, r] = fa(t), n = {
1337
+ const [e, s, a] = fa(t), n = {
1338
1338
  cn: {
1339
1339
  t: 0,
1340
1340
  r: 0,
@@ -1368,17 +1368,17 @@ const Xr = () => {
1368
1368
  y: !1
1369
1369
  },
1370
1370
  Pt: go()
1371
- }, { vt: c, gt: i, nt: d } = e, { R: l, M: u } = Ke(), h = !l && (u.x || u.y), m = [ha(e), pa(e, n), va(e, n)];
1371
+ }, { vt: c, gt: i, nt: d } = e, { R: l, M: u } = Ke(), p = !l && (u.x || u.y), m = [ha(e), pa(e, n), va(e, n)];
1372
1372
  return [s, (v) => {
1373
- const p = {}, y = h && He(i);
1373
+ const h = {}, y = p && He(i);
1374
1374
  return ce(m, (b) => {
1375
- re(p, b(v, p) || {});
1376
- }), Pe(i, y), !d && Pe(c, 0), p;
1377
- }, n, e, r];
1378
- }, _a = (t, e, s, r, n) => {
1379
- const c = En(e, {}), [i, d, l, u, h] = ga(t), [m, v, p] = ca(u, l, c, (U) => {
1375
+ re(h, b(v, h) || {});
1376
+ }), Pe(i, y), !d && Pe(c, 0), h;
1377
+ }, n, e, a];
1378
+ }, _a = (t, e, s, a, n) => {
1379
+ const c = En(e, {}), [i, d, l, u, p] = ga(t), [m, v, h] = ca(u, l, c, (U) => {
1380
1380
  k({}, U);
1381
- }), [x, y, , b] = ma(t, e, p, l, u, n), A = (U) => et(U).some((B) => !!U[B]), k = (U, B) => {
1381
+ }), [x, y, , b] = ma(t, e, h, l, u, n), A = (U) => et(U).some((B) => !!U[B]), k = (U, B) => {
1382
1382
  if (s())
1383
1383
  return !1;
1384
1384
  const { fn: D, Tt: L, At: V, pn: T } = U, O = D || {}, M = !!L, S = {
@@ -1391,7 +1391,7 @@ const Xr = () => {
1391
1391
  const H = B || v(re({}, S, {
1392
1392
  At: V
1393
1393
  })), $ = d(re({}, S, {
1394
- an: p,
1394
+ an: h,
1395
1395
  Gt: H
1396
1396
  }));
1397
1397
  y(re({}, S, {
@@ -1399,7 +1399,7 @@ const Xr = () => {
1399
1399
  Qt: $
1400
1400
  }));
1401
1401
  const w = A(H), I = A($), R = w || I || !Ys(O) || M;
1402
- return R && r(U, {
1402
+ return R && a(U, {
1403
1403
  Gt: H,
1404
1404
  Qt: $
1405
1405
  }), R;
@@ -1408,20 +1408,20 @@ const Xr = () => {
1408
1408
  const { rn: U, gt: B } = u, D = He(U), L = [m(), i(), x()];
1409
1409
  return Pe(B, D), J(Ie, L);
1410
1410
  }, k, () => ({
1411
- vn: p,
1411
+ vn: h,
1412
1412
  hn: l
1413
1413
  }), {
1414
1414
  gn: u,
1415
1415
  bn: b
1416
- }, h];
1416
+ }, p];
1417
1417
  }, ct = (t, e, s) => {
1418
- const { N: r } = Ke(), n = ts(t), c = n ? t : t.target, i = $o(c);
1418
+ const { N: a } = Ke(), n = ts(t), c = n ? t : t.target, i = $o(c);
1419
1419
  if (e && !i) {
1420
1420
  let d = !1;
1421
- const l = [], u = {}, h = (M) => {
1421
+ const l = [], u = {}, p = (M) => {
1422
1422
  const S = oo(M), H = Ht(na);
1423
1423
  return H ? H(S, !0) : S;
1424
- }, m = re({}, r(), h(e)), [v, p, x] = Ns(), [y, b, A] = Ns(s), k = (M, S) => {
1424
+ }, m = re({}, a(), p(e)), [v, h, x] = Ns(), [y, b, A] = Ns(s), k = (M, S) => {
1425
1425
  A(M, S), x(M, S);
1426
1426
  }, [U, B, D, L, V] = _a(t, m, () => d, ({ fn: M, Tt: S }, { Gt: H, Qt: $ }) => {
1427
1427
  const { ft: w, Ct: I, xt: R, Ht: ne, Et: ue, dt: le } = H, { Zt: F, tn: ee, nn: te, sn: X } = $;
@@ -1442,11 +1442,11 @@ const Xr = () => {
1442
1442
  force: !!S
1443
1443
  }]);
1444
1444
  }, (M) => k("scroll", [O, M])), T = (M) => {
1445
- ea(c), Ie(l), d = !0, k("destroyed", [O, M]), p(), b();
1445
+ ea(c), Ie(l), d = !0, k("destroyed", [O, M]), h(), b();
1446
1446
  }, O = {
1447
1447
  options(M, S) {
1448
1448
  if (M) {
1449
- const H = S ? r() : {}, $ = _o(m, re(H, h(M)));
1449
+ const H = S ? a() : {}, $ = _o(m, re(H, p(M)));
1450
1450
  Ys($) || (re(m, $), B({
1451
1451
  fn: $
1452
1452
  }));
@@ -1517,20 +1517,20 @@ const Xr = () => {
1517
1517
  return i;
1518
1518
  };
1519
1519
  ct.plugin = (t) => {
1520
- const e = Ge(t), s = e ? t : [t], r = s.map((n) => Eo(n, ct)[0]);
1521
- return sa(s), e ? r : r[0];
1520
+ const e = Ge(t), s = e ? t : [t], a = s.map((n) => Eo(n, ct)[0]);
1521
+ return sa(s), e ? a : a[0];
1522
1522
  };
1523
1523
  ct.valid = (t) => {
1524
1524
  const e = t && t.elements, s = Fe(e) && e();
1525
1525
  return es(s) && !!$o(s.target);
1526
1526
  };
1527
1527
  ct.env = () => {
1528
- const { k: t, M: e, R: s, V: r, B: n, F: c, P: i, U: d, N: l, q: u } = Ke();
1528
+ const { k: t, M: e, R: s, V: a, B: n, F: c, P: i, U: d, N: l, q: u } = Ke();
1529
1529
  return re({}, {
1530
1530
  scrollbarsSize: t,
1531
1531
  scrollbarsOverlaid: e,
1532
1532
  scrollbarsHiding: s,
1533
- scrollTimeline: r,
1533
+ scrollTimeline: a,
1534
1534
  staticDefaultInitialization: n,
1535
1535
  staticDefaultOptions: c,
1536
1536
  getDefaultInitialization: i,
@@ -1541,8 +1541,8 @@ ct.env = () => {
1541
1541
  };
1542
1542
  function xa() {
1543
1543
  let t;
1544
- const e = E(null), s = Math.floor(Math.random() * 2 ** 32), r = E(!1), n = E([]), c = () => n.value, i = () => t.getSelection(), d = () => n.value.length, l = () => t.clearSelection(!0), u = E(), h = E(null), m = E(null), v = E(null);
1545
- function p() {
1544
+ const e = E(null), s = Math.floor(Math.random() * 2 ** 32), a = E(!1), n = E([]), c = () => n.value, i = () => t.getSelection(), d = () => n.value.length, l = () => t.clearSelection(!0), u = E(), p = E(null), m = E(null), v = E(null);
1545
+ function h() {
1546
1546
  t = new nr({
1547
1547
  area: e.value,
1548
1548
  keyboardDrag: !1,
@@ -1552,12 +1552,12 @@ function xa() {
1552
1552
  if (L)
1553
1553
  t.Interaction._reset(D);
1554
1554
  else {
1555
- r.value = !1;
1555
+ a.value = !1;
1556
1556
  const V = e.value.offsetWidth - D.offsetX, T = e.value.offsetHeight - D.offsetY;
1557
1557
  V < 15 && T < 15 && t.Interaction._reset(D), D.target.classList.contains("os-scrollbar-handle") && t.Interaction._reset(D);
1558
1558
  }
1559
1559
  }), document.addEventListener("dragleave", (B) => {
1560
- !B.buttons && r.value && (r.value = !1);
1560
+ !B.buttons && a.value && (a.value = !1);
1561
1561
  });
1562
1562
  }
1563
1563
  const x = () => ft(() => {
@@ -1578,11 +1578,11 @@ function xa() {
1578
1578
  n.value = D.map((T) => JSON.parse(T.dataset.item)), B(D.map((T) => JSON.parse(T.dataset.item)));
1579
1579
  });
1580
1580
  }, k = () => {
1581
- h.value && (e.value.getBoundingClientRect().height < e.value.scrollHeight ? (m.value.style.height = e.value.scrollHeight + "px", m.value.style.display = "block") : (m.value.style.height = "100%", m.value.style.display = "none"));
1581
+ p.value && (e.value.getBoundingClientRect().height < e.value.scrollHeight ? (m.value.style.height = e.value.scrollHeight + "px", m.value.style.display = "block") : (m.value.style.height = "100%", m.value.style.display = "none"));
1582
1582
  }, U = (B) => {
1583
- if (!h.value)
1583
+ if (!p.value)
1584
1584
  return;
1585
- const { scrollOffsetElement: D } = h.value.elements();
1585
+ const { scrollOffsetElement: D } = p.value.elements();
1586
1586
  D.scrollTo(
1587
1587
  {
1588
1588
  top: e.value.scrollTop,
@@ -1603,7 +1603,7 @@ function xa() {
1603
1603
  }
1604
1604
  }, {
1605
1605
  initialized: (B) => {
1606
- h.value = B;
1606
+ p.value = B;
1607
1607
  },
1608
1608
  scroll: (B, D) => {
1609
1609
  const { scrollOffsetElement: L } = B.elements();
@@ -1612,7 +1612,7 @@ function xa() {
1612
1612
  left: 0
1613
1613
  });
1614
1614
  }
1615
- }), p(), k(), new ResizeObserver(k).observe(e.value), e.value.addEventListener("scroll", U), t.subscribe("DS:scroll", ({ isDragging: B }) => B || U());
1615
+ }), h(), k(), new ResizeObserver(k).observe(e.value), e.value.addEventListener("scroll", U), t.subscribe("DS:scroll", ({ isDragging: B }) => B || U());
1616
1616
  }), qs(() => {
1617
1617
  t && t.stop();
1618
1618
  }), Rn(() => {
@@ -1620,7 +1620,7 @@ function xa() {
1620
1620
  }), {
1621
1621
  area: e,
1622
1622
  explorerId: s,
1623
- isDraggingRef: r,
1623
+ isDraggingRef: a,
1624
1624
  scrollBar: m,
1625
1625
  scrollBarContainer: v,
1626
1626
  getSelected: c,
@@ -1633,16 +1633,16 @@ function xa() {
1633
1633
  };
1634
1634
  }
1635
1635
  function ba(t, e) {
1636
- const s = E(t), r = E(e), n = E([]), c = E([]), i = E([]), d = E(!1), l = E(5);
1637
- let u = !1, h = !1;
1636
+ const s = E(t), a = E(e), n = E([]), c = E([]), i = E([]), d = E(!1), l = E(5);
1637
+ let u = !1, p = !1;
1638
1638
  const m = Ot({
1639
1639
  adapter: s,
1640
1640
  storages: [],
1641
- dirname: r,
1641
+ dirname: a,
1642
1642
  files: []
1643
1643
  });
1644
1644
  function v() {
1645
- let k = [], U = [], B = r.value ?? s.value + "://";
1645
+ let k = [], U = [], B = a.value ?? s.value + "://";
1646
1646
  B.length === 0 && (n.value = []), B.replace(s.value + "://", "").split("/").forEach(function(V) {
1647
1647
  k.push(V), k.join("/") !== "" && U.push({
1648
1648
  basename: V,
@@ -1654,7 +1654,7 @@ function ba(t, e) {
1654
1654
  const [D, L] = x(U, l.value);
1655
1655
  i.value = L, n.value = D;
1656
1656
  }
1657
- function p(k) {
1657
+ function h(k) {
1658
1658
  l.value = k, v();
1659
1659
  }
1660
1660
  function x(k, U) {
@@ -1664,22 +1664,22 @@ function ba(t, e) {
1664
1664
  d.value = k ?? !d.value;
1665
1665
  }
1666
1666
  function b() {
1667
- return n.value && n.value.length && !h;
1667
+ return n.value && n.value.length && !p;
1668
1668
  }
1669
1669
  const A = Ze(() => {
1670
1670
  var k;
1671
1671
  return ((k = n.value[n.value.length - 2]) == null ? void 0 : k.path) ?? s.value + "://";
1672
1672
  });
1673
1673
  return Ce(() => {
1674
- }), ze(r, v), Ce(v), {
1674
+ }), Ne(a, v), Ce(v), {
1675
1675
  adapter: s,
1676
- path: r,
1676
+ path: a,
1677
1677
  loading: u,
1678
- searchMode: h,
1678
+ searchMode: p,
1679
1679
  data: m,
1680
1680
  breadcrumbs: n,
1681
1681
  breadcrumbItems: c,
1682
- limitBreadcrumbItems: p,
1682
+ limitBreadcrumbItems: h,
1683
1683
  hiddenBreadcrumbs: i,
1684
1684
  showHiddenBreadcrumbs: d,
1685
1685
  toggleHiddenBreadcrumbs: y,
@@ -1688,7 +1688,7 @@ function ba(t, e) {
1688
1688
  };
1689
1689
  }
1690
1690
  const ya = (t, e) => {
1691
- const s = dr(t.id), r = sr(), n = s.getStore("metricUnits", !1), c = vr(s, t.theme), i = e.i18n, d = t.locale ?? e.locale, l = s.getStore("adapter"), u = (v) => Array.isArray(v) ? v : fr, h = s.getStore("persist-path", t.persist), m = h ? s.getStore("path", t.path) : t.path;
1691
+ const s = dr(t.id), a = sr(), n = s.getStore("metricUnits", !1), c = vr(s, t.theme), i = e.i18n, d = t.locale ?? e.locale, l = s.getStore("adapter"), u = (v) => Array.isArray(v) ? v : fr, p = s.getStore("persist-path", t.persist), m = p ? s.getStore("path", t.path) : t.path;
1692
1692
  return Ot({
1693
1693
  /**
1694
1694
  * Core properties
@@ -1700,11 +1700,11 @@ const ya = (t, e) => {
1700
1700
  // app id
1701
1701
  debug: t.debug,
1702
1702
  // Event Bus
1703
- emitter: r,
1703
+ emitter: a,
1704
1704
  // storage
1705
1705
  storage: s,
1706
1706
  // localization object
1707
- i18n: Ze(() => mr(s, d, r, i)),
1707
+ i18n: Ze(() => mr(s, d, a, i)),
1708
1708
  // modal state
1709
1709
  modal: gr(),
1710
1710
  // dragSelect object, it is responsible for selecting items
@@ -1739,7 +1739,7 @@ const ya = (t, e) => {
1739
1739
  // show large icons in list view
1740
1740
  compactListView: s.getStore("compact-list-view", !0),
1741
1741
  // persist state
1742
- persist: h,
1742
+ persist: p,
1743
1743
  // show thumbnails
1744
1744
  showThumbnails: s.getStore("show-thumbnails", t.showThumbnails),
1745
1745
  // file system
@@ -1750,8 +1750,8 @@ const ya = (t, e) => {
1750
1750
  setup(t) {
1751
1751
  const e = E(null), s = ae("ServiceContainer");
1752
1752
  return Ce(() => {
1753
- const r = document.querySelector(".v-f-modal input");
1754
- r && r.focus(), ft(() => {
1753
+ const a = document.querySelector(".v-f-modal input");
1754
+ a && a.focus(), ft(() => {
1755
1755
  if (document.querySelector(".v-f-modal input") && window.innerWidth < 768) {
1756
1756
  const n = e.value.getBoundingClientRect().bottom + 16;
1757
1757
  window.scrollTo({
@@ -1761,19 +1761,19 @@ const ya = (t, e) => {
1761
1761
  });
1762
1762
  }
1763
1763
  });
1764
- }), (r, n) => (f(), g("div", {
1764
+ }), (a, n) => (f(), g("div", {
1765
1765
  class: "v-f-modal relative z-30",
1766
1766
  "aria-labelledby": "modal-title",
1767
1767
  role: "dialog",
1768
1768
  "aria-modal": "true",
1769
- onKeyup: n[1] || (n[1] = $t((c) => a(s).modal.close(), ["esc"])),
1769
+ onKeyup: n[1] || (n[1] = $t((c) => r(s).modal.close(), ["esc"])),
1770
1770
  tabindex: "0"
1771
1771
  }, [
1772
1772
  wa,
1773
1773
  o("div", ka, [
1774
1774
  o("div", {
1775
1775
  class: "flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0",
1776
- onMousedown: n[0] || (n[0] = rt((c) => a(s).modal.close(), ["self"]))
1776
+ onMousedown: n[0] || (n[0] = rt((c) => r(s).modal.close(), ["self"]))
1777
1777
  }, [
1778
1778
  o("div", {
1779
1779
  ref_key: "modalBody",
@@ -1781,10 +1781,10 @@ const ya = (t, e) => {
1781
1781
  class: "relative bg-white dark:bg-gray-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl md:max-w-2xl lg:max-w-3xl xl:max-w-3xl w-full"
1782
1782
  }, [
1783
1783
  o("div", $a, [
1784
- Dt(r.$slots, "default")
1784
+ Dt(a.$slots, "default")
1785
1785
  ]),
1786
1786
  o("div", Sa, [
1787
- Dt(r.$slots, "buttons")
1787
+ Dt(a.$slots, "buttons")
1788
1788
  ])
1789
1789
  ], 512)
1790
1790
  ], 32)
@@ -1793,15 +1793,15 @@ const ya = (t, e) => {
1793
1793
  }
1794
1794
  }, Ca = (t, e) => {
1795
1795
  const s = t.__vccOpts || t;
1796
- for (const [r, n] of e)
1797
- s[r] = n;
1796
+ for (const [a, n] of e)
1797
+ s[a] = n;
1798
1798
  return s;
1799
1799
  }, Ea = {
1800
1800
  props: {
1801
1801
  on: { type: String, required: !0 }
1802
1802
  },
1803
1803
  setup(t, { emit: e, slots: s }) {
1804
- const r = ae("ServiceContainer"), n = E(!1), { t: c } = r.i18n;
1804
+ const a = ae("ServiceContainer"), n = E(!1), { t: c } = a.i18n;
1805
1805
  let i = null;
1806
1806
  const d = () => {
1807
1807
  clearTimeout(i), n.value = !0, i = setTimeout(() => {
@@ -1809,7 +1809,7 @@ const ya = (t, e) => {
1809
1809
  }, 2e3);
1810
1810
  };
1811
1811
  return Ce(() => {
1812
- r.emitter.on(t.on, d);
1812
+ a.emitter.on(t.on, d);
1813
1813
  }), qs(() => {
1814
1814
  clearTimeout(i);
1815
1815
  }), {
@@ -1818,11 +1818,11 @@ const ya = (t, e) => {
1818
1818
  };
1819
1819
  }
1820
1820
  }, Ta = { key: 1 };
1821
- function Ma(t, e, s, r, n, c) {
1821
+ function Ma(t, e, s, a, n, c) {
1822
1822
  return f(), g("div", {
1823
- class: de(["text-sm text-green-600 dark:text-green-600 transition-opacity duration-500 ease-out", [{ "opacity-0": !r.shown }]])
1823
+ class: de(["text-sm text-green-600 dark:text-green-600 transition-opacity duration-500 ease-out", [{ "opacity-0": !a.shown }]])
1824
1824
  }, [
1825
- t.$slots.default ? Dt(t.$slots, "default", { key: 0 }) : (f(), g("span", Ta, _(r.t("Saved.")), 1))
1825
+ t.$slots.default ? Dt(t.$slots, "default", { key: 0 }) : (f(), g("span", Ta, _(a.t("Saved.")), 1))
1826
1826
  ], 2);
1827
1827
  }
1828
1828
  const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:items-start select-none" }, Da = /* @__PURE__ */ o("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
@@ -1917,7 +1917,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
1917
1917
  }, Il = { class: "m-1 text-sm text-gray-500" }, Ao = {
1918
1918
  __name: "ModalAbout",
1919
1919
  setup(t) {
1920
- const e = ae("ServiceContainer"), { setStore: s, clearStore: r } = e.storage, { t: n, changeLocale: c, locale: i } = e.i18n, d = {
1920
+ const e = ae("ServiceContainer"), { setStore: s, clearStore: a } = e.storage, { t: n, changeLocale: c, locale: i } = e.i18n, d = {
1921
1921
  ABOUT: "about",
1922
1922
  SETTINGS: "settings",
1923
1923
  SHORTCUTS: "shortcuts",
@@ -1927,13 +1927,13 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
1927
1927
  { name: n("Settings"), key: d.SETTINGS },
1928
1928
  { name: n("Shortcuts"), key: d.SHORTCUTS },
1929
1929
  { name: n("Reset"), key: d.RESET }
1930
- ]), u = E("about"), h = async () => {
1931
- r(), location.reload();
1930
+ ]), u = E("about"), p = async () => {
1931
+ a(), location.reload();
1932
1932
  }, m = (B) => {
1933
1933
  e.theme.set(B), e.emitter.emit("vf-theme-saved");
1934
1934
  }, v = () => {
1935
1935
  e.metricUnits = !e.metricUnits, e.filesize = e.metricUnits ? zn : Un, s("metricUnits", e.metricUnits), e.emitter.emit("vf-metric-units-saved");
1936
- }, p = () => {
1936
+ }, h = () => {
1937
1937
  e.compactListView = !e.compactListView, s("compactListView", e.compactListView), e.emitter.emit("vf-compact-view-saved");
1938
1938
  }, x = () => {
1939
1939
  e.showThumbnails = !e.showThumbnails, s("show-thumbnails", e.showThumbnails), e.emitter.emit("vf-show-thumbnails-saved");
@@ -1962,15 +1962,15 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
1962
1962
  buttons: se(() => [
1963
1963
  o("button", {
1964
1964
  type: "button",
1965
- onClick: D[8] || (D[8] = (L) => a(e).modal.close()),
1965
+ onClick: D[8] || (D[8] = (L) => r(e).modal.close()),
1966
1966
  class: "vf-btn vf-btn-secondary"
1967
- }, _(a(n)("Close")), 1)
1967
+ }, _(r(n)("Close")), 1)
1968
1968
  ]),
1969
1969
  default: se(() => [
1970
1970
  o("div", Aa, [
1971
1971
  Da,
1972
1972
  o("div", La, [
1973
- o("h3", Va, _("Vuefinder " + a(e).version), 1),
1973
+ o("h3", Va, _("Vuefinder " + r(e).version), 1),
1974
1974
  o("div", null, [
1975
1975
  o("div", null, [
1976
1976
  o("nav", Oa, [
@@ -1984,12 +1984,12 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
1984
1984
  ])
1985
1985
  ]),
1986
1986
  u.value === d.ABOUT ? (f(), g("div", Ba, [
1987
- o("div", Ra, _(a(n)("Vuefinder is a simple, lightweight, and fast file manager library for Vue.js applications")), 1),
1988
- o("a", Fa, _(a(n)("Project home")), 1),
1989
- o("a", Ia, _(a(n)("Follow on GitHub")), 1)
1987
+ o("div", Ra, _(r(n)("Vuefinder is a simple, lightweight, and fast file manager library for Vue.js applications")), 1),
1988
+ o("a", Fa, _(r(n)("Project home")), 1),
1989
+ o("a", Ia, _(r(n)("Follow on GitHub")), 1)
1990
1990
  ])) : j("", !0),
1991
1991
  u.value === d.SETTINGS ? (f(), g("div", Na, [
1992
- o("div", Ua, _(a(n)("Customize your experience with the following settings.")), 1),
1992
+ o("div", Ua, _(r(n)("Customize your experience with the following settings.")), 1),
1993
1993
  o("div", za, [
1994
1994
  o("fieldset", null, [
1995
1995
  o("div", ja, [
@@ -1999,22 +1999,22 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
1999
1999
  id: "metric_unit",
2000
2000
  name: "metric_unit",
2001
2001
  type: "checkbox",
2002
- "onUpdate:modelValue": D[0] || (D[0] = (L) => a(e).metricUnits = L),
2002
+ "onUpdate:modelValue": D[0] || (D[0] = (L) => r(e).metricUnits = L),
2003
2003
  onClick: v,
2004
2004
  class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"
2005
2005
  }, null, 512), [
2006
- [Pt, a(e).metricUnits]
2006
+ [Pt, r(e).metricUnits]
2007
2007
  ])
2008
2008
  ]),
2009
2009
  o("div", Ga, [
2010
2010
  o("label", Ka, [
2011
- Q(_(a(n)("Use Metric Units")) + " ", 1),
2011
+ Q(_(r(n)("Use Metric Units")) + " ", 1),
2012
2012
  Y(gt, {
2013
2013
  class: "ms-3",
2014
2014
  on: "vf-metric-units-saved"
2015
2015
  }, {
2016
2016
  default: se(() => [
2017
- Q(_(a(n)("Saved.")), 1)
2017
+ Q(_(r(n)("Saved.")), 1)
2018
2018
  ]),
2019
2019
  _: 1
2020
2020
  })
@@ -2027,22 +2027,22 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2027
2027
  id: "large_icons",
2028
2028
  name: "large_icons",
2029
2029
  type: "checkbox",
2030
- "onUpdate:modelValue": D[1] || (D[1] = (L) => a(e).compactListView = L),
2031
- onClick: p,
2030
+ "onUpdate:modelValue": D[1] || (D[1] = (L) => r(e).compactListView = L),
2031
+ onClick: h,
2032
2032
  class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"
2033
2033
  }, null, 512), [
2034
- [Pt, a(e).compactListView]
2034
+ [Pt, r(e).compactListView]
2035
2035
  ])
2036
2036
  ]),
2037
2037
  o("div", Xa, [
2038
2038
  o("label", Ja, [
2039
- Q(_(a(n)("Compact list view")) + " ", 1),
2039
+ Q(_(r(n)("Compact list view")) + " ", 1),
2040
2040
  Y(gt, {
2041
2041
  class: "ms-3",
2042
2042
  on: "vf-compact-view-saved"
2043
2043
  }, {
2044
2044
  default: se(() => [
2045
- Q(_(a(n)("Saved.")), 1)
2045
+ Q(_(r(n)("Saved.")), 1)
2046
2046
  ]),
2047
2047
  _: 1
2048
2048
  })
@@ -2055,22 +2055,22 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2055
2055
  id: "persist_path",
2056
2056
  name: "persist_path",
2057
2057
  type: "checkbox",
2058
- "onUpdate:modelValue": D[2] || (D[2] = (L) => a(e).persist = L),
2058
+ "onUpdate:modelValue": D[2] || (D[2] = (L) => r(e).persist = L),
2059
2059
  onClick: y,
2060
2060
  class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"
2061
2061
  }, null, 512), [
2062
- [Pt, a(e).persist]
2062
+ [Pt, r(e).persist]
2063
2063
  ])
2064
2064
  ]),
2065
2065
  o("div", el, [
2066
2066
  o("label", tl, [
2067
- Q(_(a(n)("Persist path on reload")) + " ", 1),
2067
+ Q(_(r(n)("Persist path on reload")) + " ", 1),
2068
2068
  Y(gt, {
2069
2069
  class: "ms-3",
2070
2070
  on: "vf-persist-path-saved"
2071
2071
  }, {
2072
2072
  default: se(() => [
2073
- Q(_(a(n)("Saved.")), 1)
2073
+ Q(_(r(n)("Saved.")), 1)
2074
2074
  ]),
2075
2075
  _: 1
2076
2076
  })
@@ -2083,22 +2083,22 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2083
2083
  id: "show_thumbnails",
2084
2084
  name: "show_thumbnails",
2085
2085
  type: "checkbox",
2086
- "onUpdate:modelValue": D[3] || (D[3] = (L) => a(e).showThumbnails = L),
2086
+ "onUpdate:modelValue": D[3] || (D[3] = (L) => r(e).showThumbnails = L),
2087
2087
  onClick: x,
2088
2088
  class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"
2089
2089
  }, null, 512), [
2090
- [Pt, a(e).showThumbnails]
2090
+ [Pt, r(e).showThumbnails]
2091
2091
  ])
2092
2092
  ]),
2093
2093
  o("div", ol, [
2094
2094
  o("label", rl, [
2095
- Q(_(a(n)("Show thumbnails")) + " ", 1),
2095
+ Q(_(r(n)("Show thumbnails")) + " ", 1),
2096
2096
  Y(gt, {
2097
2097
  class: "ms-3",
2098
2098
  on: "vf-show-thumbnails-saved"
2099
2099
  }, {
2100
2100
  default: se(() => [
2101
- Q(_(a(n)("Saved.")), 1)
2101
+ Q(_(r(n)("Saved.")), 1)
2102
2102
  ]),
2103
2103
  _: 1
2104
2104
  })
@@ -2107,59 +2107,59 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2107
2107
  ]),
2108
2108
  o("div", al, [
2109
2109
  o("div", ll, [
2110
- o("label", il, _(a(n)("Theme")), 1)
2110
+ o("label", il, _(r(n)("Theme")), 1)
2111
2111
  ]),
2112
2112
  o("div", cl, [
2113
2113
  ve(o("select", {
2114
2114
  id: "theme",
2115
- "onUpdate:modelValue": D[4] || (D[4] = (L) => a(e).theme.value = L),
2115
+ "onUpdate:modelValue": D[4] || (D[4] = (L) => r(e).theme.value = L),
2116
2116
  onChange: D[5] || (D[5] = (L) => m(L.target.value)),
2117
2117
  class: "flex-shrink-0 sm:w-1/2 w-full text-sm text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded"
2118
2118
  }, [
2119
2119
  o("optgroup", {
2120
- label: a(n)("Theme")
2120
+ label: r(n)("Theme")
2121
2121
  }, [
2122
2122
  (f(!0), g(he, null, $e(U.value, (L, V) => (f(), g("option", { value: V }, _(L), 9, ul))), 256))
2123
2123
  ], 8, dl)
2124
2124
  ], 544), [
2125
- [Ss, a(e).theme.value]
2125
+ [Ss, r(e).theme.value]
2126
2126
  ]),
2127
2127
  Y(gt, {
2128
2128
  class: "ms-3 flex-shrink-0 flex-grow basis-full",
2129
2129
  on: "vf-theme-saved"
2130
2130
  }, {
2131
2131
  default: se(() => [
2132
- Q(_(a(n)("Saved.")), 1)
2132
+ Q(_(r(n)("Saved.")), 1)
2133
2133
  ]),
2134
2134
  _: 1
2135
2135
  })
2136
2136
  ])
2137
2137
  ]),
2138
- a(e).features.includes(a(pe).LANGUAGE) && Object.keys(a(k)).length > 1 ? (f(), g("div", ml, [
2138
+ r(e).features.includes(r(pe).LANGUAGE) && Object.keys(r(k)).length > 1 ? (f(), g("div", ml, [
2139
2139
  o("div", fl, [
2140
- o("label", hl, _(a(n)("Language")), 1)
2140
+ o("label", hl, _(r(n)("Language")), 1)
2141
2141
  ]),
2142
2142
  o("div", pl, [
2143
2143
  ve(o("select", {
2144
2144
  id: "language",
2145
2145
  "onUpdate:modelValue": D[6] || (D[6] = (L) => Fn(i) ? i.value = L : null),
2146
- onChange: D[7] || (D[7] = (L) => a(c)(L.target.value)),
2146
+ onChange: D[7] || (D[7] = (L) => r(c)(L.target.value)),
2147
2147
  class: "flex-shrink-0 sm:w-1/2 w-full text-sm text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded"
2148
2148
  }, [
2149
2149
  o("optgroup", {
2150
- label: a(n)("Language")
2150
+ label: r(n)("Language")
2151
2151
  }, [
2152
- (f(!0), g(he, null, $e(a(k), (L, V) => (f(), g("option", { value: V }, _(L), 9, gl))), 256))
2152
+ (f(!0), g(he, null, $e(r(k), (L, V) => (f(), g("option", { value: V }, _(L), 9, gl))), 256))
2153
2153
  ], 8, vl)
2154
2154
  ], 544), [
2155
- [Ss, a(i)]
2155
+ [Ss, r(i)]
2156
2156
  ]),
2157
2157
  Y(gt, {
2158
2158
  class: "ms-3 flex-shrink-0 flex-grow basis-full",
2159
2159
  on: "vf-language-saved"
2160
2160
  }, {
2161
2161
  default: se(() => [
2162
- Q(_(a(n)("Saved.")), 1)
2162
+ Q(_(r(n)("Saved.")), 1)
2163
2163
  ]),
2164
2164
  _: 1
2165
2165
  })
@@ -2172,50 +2172,50 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2172
2172
  u.value === d.SHORTCUTS ? (f(), g("div", _l, [
2173
2173
  o("div", xl, [
2174
2174
  o("div", bl, [
2175
- o("div", null, _(a(n)("Rename")), 1),
2175
+ o("div", null, _(r(n)("Rename")), 1),
2176
2176
  yl
2177
2177
  ]),
2178
2178
  o("div", wl, [
2179
- o("div", null, _(a(n)("Refresh")), 1),
2179
+ o("div", null, _(r(n)("Refresh")), 1),
2180
2180
  kl
2181
2181
  ]),
2182
2182
  o("div", $l, [
2183
- Q(_(a(n)("Delete")) + " ", 1),
2183
+ Q(_(r(n)("Delete")) + " ", 1),
2184
2184
  Sl
2185
2185
  ]),
2186
2186
  o("div", Cl, [
2187
- Q(_(a(n)("Escape")) + " ", 1),
2187
+ Q(_(r(n)("Escape")) + " ", 1),
2188
2188
  El
2189
2189
  ]),
2190
2190
  o("div", Tl, [
2191
- Q(_(a(n)("Select All")) + " ", 1),
2191
+ Q(_(r(n)("Select All")) + " ", 1),
2192
2192
  Ml
2193
2193
  ]),
2194
2194
  o("div", Al, [
2195
- Q(_(a(n)("Search")) + " ", 1),
2195
+ Q(_(r(n)("Search")) + " ", 1),
2196
2196
  Dl
2197
2197
  ]),
2198
2198
  o("div", Ll, [
2199
- Q(_(a(n)("Toggle Sidebar")) + " ", 1),
2199
+ Q(_(r(n)("Toggle Sidebar")) + " ", 1),
2200
2200
  Vl
2201
2201
  ]),
2202
2202
  o("div", Ol, [
2203
- Q(_(a(n)("Open Settings")) + " ", 1),
2203
+ Q(_(r(n)("Open Settings")) + " ", 1),
2204
2204
  Hl
2205
2205
  ]),
2206
2206
  o("div", Bl, [
2207
- Q(_(a(n)("Toggle Full Screen")) + " ", 1),
2207
+ Q(_(r(n)("Toggle Full Screen")) + " ", 1),
2208
2208
  Rl
2209
2209
  ])
2210
2210
  ])
2211
2211
  ])) : j("", !0),
2212
2212
  u.value === d.RESET ? (f(), g("div", Fl, [
2213
- o("div", Il, _(a(n)("Reset all settings to default")), 1),
2213
+ o("div", Il, _(r(n)("Reset all settings to default")), 1),
2214
2214
  o("button", {
2215
- onClick: h,
2215
+ onClick: p,
2216
2216
  type: "button",
2217
2217
  class: "vf-btn vf-btn-secondary"
2218
- }, _(a(n)("Reset Settings")), 1)
2218
+ }, _(r(n)("Reset Settings")), 1)
2219
2219
  ])) : j("", !0)
2220
2220
  ])
2221
2221
  ])
@@ -2249,23 +2249,23 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2249
2249
  emits: ["hidden"],
2250
2250
  setup(t, { emit: e }) {
2251
2251
  var u;
2252
- const s = e, r = ae("ServiceContainer"), { t: n } = r.i18n, c = E(!1), i = E(null), d = E((u = i.value) == null ? void 0 : u.strMessage);
2253
- ze(d, () => c.value = !1);
2252
+ const s = e, a = ae("ServiceContainer"), { t: n } = a.i18n, c = E(!1), i = E(null), d = E((u = i.value) == null ? void 0 : u.strMessage);
2253
+ Ne(d, () => c.value = !1);
2254
2254
  const l = () => {
2255
2255
  s("hidden"), c.value = !0;
2256
2256
  };
2257
- return (h, m) => (f(), g("div", null, [
2257
+ return (p, m) => (f(), g("div", null, [
2258
2258
  c.value ? j("", !0) : (f(), g("div", {
2259
2259
  key: 0,
2260
2260
  ref_key: "strMessage",
2261
2261
  ref: i,
2262
2262
  class: de(["flex mt-2 p-1 px-2 rounded text-sm break-all dark:opacity-75", t.error ? "bg-red-100 text-red-600 " : "bg-emerald-100 text-emerald-600"])
2263
2263
  }, [
2264
- Dt(h.$slots, "default"),
2264
+ Dt(p.$slots, "default"),
2265
2265
  o("div", {
2266
2266
  class: "ml-auto cursor-pointer",
2267
2267
  onClick: l,
2268
- title: a(n)("Close")
2268
+ title: r(n)("Close")
2269
2269
  }, zl, 8, Nl)
2270
2270
  ], 2))
2271
2271
  ]));
@@ -2322,8 +2322,8 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2322
2322
  ], ni = { class: "ml-1.5" }, oi = { class: "m-auto font-bold text-red-500 text-sm dark:text-red-200 text-center" }, rn = {
2323
2323
  __name: "ModalDelete",
2324
2324
  setup(t) {
2325
- const e = ae("ServiceContainer"), { t: s } = e.i18n, r = E(e.modal.data.items), n = E(""), c = () => {
2326
- r.value.length && e.emitter.emit("vf-fetch", {
2325
+ const e = ae("ServiceContainer"), { t: s } = e.i18n, a = E(e.modal.data.items), n = E(""), c = () => {
2326
+ a.value.length && e.emitter.emit("vf-fetch", {
2327
2327
  params: {
2328
2328
  q: "delete",
2329
2329
  m: "post",
@@ -2331,7 +2331,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2331
2331
  path: e.fs.data.dirname
2332
2332
  },
2333
2333
  body: {
2334
- items: r.value.map(({ path: i, type: d }) => ({ path: i, type: d }))
2334
+ items: a.value.map(({ path: i, type: d }) => ({ path: i, type: d }))
2335
2335
  },
2336
2336
  onSuccess: () => {
2337
2337
  e.emitter.emit("vf-toast-push", { label: s("Files deleted.") });
@@ -2347,23 +2347,23 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2347
2347
  type: "button",
2348
2348
  onClick: c,
2349
2349
  class: "vf-btn vf-btn-danger"
2350
- }, _(a(s)("Yes, Delete!")), 1),
2350
+ }, _(r(s)("Yes, Delete!")), 1),
2351
2351
  o("button", {
2352
2352
  type: "button",
2353
- onClick: d[1] || (d[1] = (l) => a(e).modal.close()),
2353
+ onClick: d[1] || (d[1] = (l) => r(e).modal.close()),
2354
2354
  class: "vf-btn vf-btn-secondary"
2355
- }, _(a(s)("Cancel")), 1),
2356
- o("div", oi, _(a(s)("This action cannot be undone.")), 1)
2355
+ }, _(r(s)("Cancel")), 1),
2356
+ o("div", oi, _(r(s)("This action cannot be undone.")), 1)
2357
2357
  ]),
2358
2358
  default: se(() => [
2359
2359
  o("div", jl, [
2360
2360
  Pl,
2361
2361
  o("div", ql, [
2362
- o("h3", Gl, _(a(s)("Delete files")), 1),
2362
+ o("h3", Gl, _(r(s)("Delete files")), 1),
2363
2363
  o("div", Kl, [
2364
- o("p", Wl, _(a(s)("Are you sure you want to delete these files?")), 1),
2364
+ o("p", Wl, _(r(s)("Are you sure you want to delete these files?")), 1),
2365
2365
  o("div", Yl, [
2366
- (f(!0), g(he, null, $e(r.value, (l) => (f(), g("p", Xl, [
2366
+ (f(!0), g(he, null, $e(a.value, (l) => (f(), g("p", Xl, [
2367
2367
  l.type === "dir" ? (f(), g("svg", Jl, Zl)) : (f(), g("svg", ei, si)),
2368
2368
  o("span", ni, _(l.basename), 1)
2369
2369
  ]))), 256))
@@ -2434,7 +2434,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2434
2434
  ], gi = { class: "ml-1.5" }, an = {
2435
2435
  __name: "ModalRename",
2436
2436
  setup(t) {
2437
- const e = ae("ServiceContainer"), { t: s } = e.i18n, r = E(e.modal.data.items[0]), n = E(e.modal.data.items[0].basename), c = E(""), i = () => {
2437
+ const e = ae("ServiceContainer"), { t: s } = e.i18n, a = E(e.modal.data.items[0]), n = E(e.modal.data.items[0].basename), c = E(""), i = () => {
2438
2438
  n.value != "" && e.emitter.emit("vf-fetch", {
2439
2439
  params: {
2440
2440
  q: "rename",
@@ -2443,7 +2443,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2443
2443
  path: e.fs.data.dirname
2444
2444
  },
2445
2445
  body: {
2446
- item: r.value.path,
2446
+ item: a.value.path,
2447
2447
  name: n.value
2448
2448
  },
2449
2449
  onSuccess: () => {
@@ -2460,22 +2460,22 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2460
2460
  type: "button",
2461
2461
  onClick: i,
2462
2462
  class: "vf-btn vf-btn-primary"
2463
- }, _(a(s)("Rename")), 1),
2463
+ }, _(r(s)("Rename")), 1),
2464
2464
  o("button", {
2465
2465
  type: "button",
2466
- onClick: l[2] || (l[2] = (u) => a(e).modal.close()),
2466
+ onClick: l[2] || (l[2] = (u) => r(e).modal.close()),
2467
2467
  class: "vf-btn vf-btn-secondary"
2468
- }, _(a(s)("Cancel")), 1)
2468
+ }, _(r(s)("Cancel")), 1)
2469
2469
  ]),
2470
2470
  default: se(() => [
2471
2471
  o("div", ri, [
2472
2472
  ai,
2473
2473
  o("div", li, [
2474
- o("h3", ii, _(a(s)("Rename")), 1),
2474
+ o("h3", ii, _(r(s)("Rename")), 1),
2475
2475
  o("div", ci, [
2476
2476
  o("p", di, [
2477
- r.value.type === "dir" ? (f(), g("svg", ui, fi)) : (f(), g("svg", hi, vi)),
2478
- o("span", gi, _(r.value.basename), 1)
2477
+ a.value.type === "dir" ? (f(), g("svg", ui, fi)) : (f(), g("svg", hi, vi)),
2478
+ o("span", gi, _(a.value.basename), 1)
2479
2479
  ]),
2480
2480
  ve(o("input", {
2481
2481
  "onUpdate:modelValue": l[0] || (l[0] = (u) => n.value = u),
@@ -2547,8 +2547,8 @@ const xi = { class: "sm:flex sm:items-start" }, bi = /* @__PURE__ */ o("div", {
2547
2547
  setup(t) {
2548
2548
  const e = ae("ServiceContainer");
2549
2549
  e.storage;
2550
- const { t: s } = e.i18n, r = E(""), n = E(""), c = () => {
2551
- r.value !== "" && e.emitter.emit("vf-fetch", {
2550
+ const { t: s } = e.i18n, a = E(""), n = E(""), c = () => {
2551
+ a.value !== "" && e.emitter.emit("vf-fetch", {
2552
2552
  params: {
2553
2553
  q: "newfolder",
2554
2554
  m: "post",
@@ -2556,10 +2556,10 @@ const xi = { class: "sm:flex sm:items-start" }, bi = /* @__PURE__ */ o("div", {
2556
2556
  path: e.fs.data.dirname
2557
2557
  },
2558
2558
  body: {
2559
- name: r.value
2559
+ name: a.value
2560
2560
  },
2561
2561
  onSuccess: () => {
2562
- e.emitter.emit("vf-toast-push", { label: s("%s is created.", r.value) });
2562
+ e.emitter.emit("vf-toast-push", { label: s("%s is created.", a.value) });
2563
2563
  },
2564
2564
  onError: (i) => {
2565
2565
  n.value = s(i.message);
@@ -2572,28 +2572,28 @@ const xi = { class: "sm:flex sm:items-start" }, bi = /* @__PURE__ */ o("div", {
2572
2572
  type: "button",
2573
2573
  onClick: c,
2574
2574
  class: "vf-btn vf-btn-primary"
2575
- }, _(a(s)("Create")), 1),
2575
+ }, _(r(s)("Create")), 1),
2576
2576
  o("button", {
2577
2577
  type: "button",
2578
- onClick: d[2] || (d[2] = (l) => a(e).modal.close()),
2578
+ onClick: d[2] || (d[2] = (l) => r(e).modal.close()),
2579
2579
  class: "vf-btn vf-btn-secondary"
2580
- }, _(a(s)("Cancel")), 1)
2580
+ }, _(r(s)("Cancel")), 1)
2581
2581
  ]),
2582
2582
  default: se(() => [
2583
2583
  o("div", xi, [
2584
2584
  bi,
2585
2585
  o("div", yi, [
2586
- o("h3", wi, _(a(s)("New Folder")), 1),
2586
+ o("h3", wi, _(r(s)("New Folder")), 1),
2587
2587
  o("div", ki, [
2588
- o("p", $i, _(a(s)("Create a new folder")), 1),
2588
+ o("p", $i, _(r(s)("Create a new folder")), 1),
2589
2589
  ve(o("input", {
2590
- "onUpdate:modelValue": d[0] || (d[0] = (l) => r.value = l),
2590
+ "onUpdate:modelValue": d[0] || (d[0] = (l) => a.value = l),
2591
2591
  onKeyup: $t(c, ["enter"]),
2592
2592
  class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
2593
- placeholder: a(s)("Folder Name"),
2593
+ placeholder: r(s)("Folder Name"),
2594
2594
  type: "text"
2595
2595
  }, null, 40, Si), [
2596
- [St, r.value]
2596
+ [St, a.value]
2597
2597
  ]),
2598
2598
  n.value.length ? (f(), W(Ye, {
2599
2599
  key: 0,
@@ -2635,8 +2635,8 @@ const xi = { class: "sm:flex sm:items-start" }, bi = /* @__PURE__ */ o("div", {
2635
2635
  setup(t) {
2636
2636
  const e = ae("ServiceContainer");
2637
2637
  e.storage;
2638
- const { t: s } = e.i18n, r = E(""), n = E(""), c = () => {
2639
- r.value !== "" && e.emitter.emit("vf-fetch", {
2638
+ const { t: s } = e.i18n, a = E(""), n = E(""), c = () => {
2639
+ a.value !== "" && e.emitter.emit("vf-fetch", {
2640
2640
  params: {
2641
2641
  q: "newfile",
2642
2642
  m: "post",
@@ -2644,10 +2644,10 @@ const xi = { class: "sm:flex sm:items-start" }, bi = /* @__PURE__ */ o("div", {
2644
2644
  path: e.fs.data.dirname
2645
2645
  },
2646
2646
  body: {
2647
- name: r.value
2647
+ name: a.value
2648
2648
  },
2649
2649
  onSuccess: () => {
2650
- e.emitter.emit("vf-toast-push", { label: s("%s is created.", r.value) });
2650
+ e.emitter.emit("vf-toast-push", { label: s("%s is created.", a.value) });
2651
2651
  },
2652
2652
  onError: (i) => {
2653
2653
  n.value = s(i.message);
@@ -2660,28 +2660,28 @@ const xi = { class: "sm:flex sm:items-start" }, bi = /* @__PURE__ */ o("div", {
2660
2660
  type: "button",
2661
2661
  onClick: c,
2662
2662
  class: "vf-btn vf-btn-primary"
2663
- }, _(a(s)("Create")), 1),
2663
+ }, _(r(s)("Create")), 1),
2664
2664
  o("button", {
2665
2665
  type: "button",
2666
- onClick: d[2] || (d[2] = (l) => a(e).modal.close()),
2666
+ onClick: d[2] || (d[2] = (l) => r(e).modal.close()),
2667
2667
  class: "vf-btn vf-btn-secondary"
2668
- }, _(a(s)("Cancel")), 1)
2668
+ }, _(r(s)("Cancel")), 1)
2669
2669
  ]),
2670
2670
  default: se(() => [
2671
2671
  o("div", Ci, [
2672
2672
  Ei,
2673
2673
  o("div", Ti, [
2674
- o("h3", Mi, _(a(s)("New File")), 1),
2674
+ o("h3", Mi, _(r(s)("New File")), 1),
2675
2675
  o("div", Ai, [
2676
- o("p", Di, _(a(s)("Create a new file")), 1),
2676
+ o("p", Di, _(r(s)("Create a new file")), 1),
2677
2677
  ve(o("input", {
2678
- "onUpdate:modelValue": d[0] || (d[0] = (l) => r.value = l),
2678
+ "onUpdate:modelValue": d[0] || (d[0] = (l) => a.value = l),
2679
2679
  onKeyup: $t(c, ["enter"]),
2680
2680
  class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
2681
- placeholder: a(s)("File Name"),
2681
+ placeholder: r(s)("File Name"),
2682
2682
  type: "text"
2683
2683
  }, null, 40, Li), [
2684
- [St, r.value]
2684
+ [St, a.value]
2685
2685
  ]),
2686
2686
  n.value.length ? (f(), W(Ye, {
2687
2687
  key: 0,
@@ -2753,13 +2753,13 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2753
2753
  }, ec = ["disabled"], tc = {
2754
2754
  __name: "ModalUpload",
2755
2755
  setup(t) {
2756
- const e = ae("ServiceContainer"), { t: s } = e.i18n, r = s("uppy"), n = {
2756
+ const e = ae("ServiceContainer"), { t: s } = e.i18n, a = s("uppy"), n = {
2757
2757
  PENDING: 0,
2758
2758
  CANCELED: 1,
2759
2759
  UPLOADING: 2,
2760
2760
  ERROR: 3,
2761
2761
  DONE: 10
2762
- }, c = E({ QUEUE_ENTRY_STATUS: n }), i = E(null), d = E(null), l = E(null), u = E(null), h = E(null), m = E(null), v = E([]), p = E(""), x = E(!1), y = E(!1);
2762
+ }, c = E({ QUEUE_ENTRY_STATUS: n }), i = E(null), d = E(null), l = E(null), u = E(null), p = E(null), m = E(null), v = E([]), h = E(""), x = E(!1), y = E(!1);
2763
2763
  let b;
2764
2764
  function A(H) {
2765
2765
  return v.value.findIndex(($) => $.id === H);
@@ -2803,10 +2803,10 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2803
2803
  function L() {
2804
2804
  if (!x.value) {
2805
2805
  if (!v.value.filter((H) => H.status !== n.DONE).length) {
2806
- p.value = s("Please select file to upload first.");
2806
+ h.value = s("Please select file to upload first.");
2807
2807
  return;
2808
2808
  }
2809
- p.value = "", b.retryAll(), b.upload();
2809
+ h.value = "", b.retryAll(), b.upload();
2810
2810
  }
2811
2811
  }
2812
2812
  function V() {
@@ -2849,11 +2849,11 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2849
2849
  //maxNumberOfFiles
2850
2850
  //allowedFileTypes
2851
2851
  },
2852
- locale: r,
2852
+ locale: a,
2853
2853
  onBeforeFileAdded(w, I) {
2854
2854
  if (I[w.id] != null) {
2855
2855
  const ne = A(w.id);
2856
- v.value[ne].status === n.PENDING && (p.value = b.i18n("noDuplicates", { fileName: w.name })), v.value = v.value.filter((ue) => ue.id !== w.id);
2856
+ v.value[ne].status === n.PENDING && (h.value = b.i18n("noDuplicates", { fileName: w.name })), v.value = v.value.filter((ue) => ue.id !== w.id);
2857
2857
  }
2858
2858
  return v.value.push({
2859
2859
  id: w.id,
@@ -2880,7 +2880,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2880
2880
  }
2881
2881
  }), b.on("restriction-failed", (w, I) => {
2882
2882
  const R = v.value[A(w.id)];
2883
- T(R), p.value = I.message;
2883
+ T(R), h.value = I.message;
2884
2884
  }), b.on("upload", () => {
2885
2885
  const w = S();
2886
2886
  b.setMeta({ ...w.body });
@@ -2898,7 +2898,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2898
2898
  const R = v.value[A(w.id)];
2899
2899
  R.percent = null, R.status = n.ERROR, I.isNetworkError ? R.statusName = s("Network Error, Unable establish connection to the server or interrupted.") : R.statusName = I ? I.message : s("Unknown Error");
2900
2900
  }), b.on("error", (w) => {
2901
- p.value = w.message, x.value = !1, e.emitter.emit("vf-fetch", {
2901
+ h.value = w.message, x.value = !1, e.emitter.emit("vf-fetch", {
2902
2902
  params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname },
2903
2903
  noCloseModal: !0
2904
2904
  });
@@ -2909,7 +2909,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2909
2909
  });
2910
2910
  }), u.value.addEventListener("click", () => {
2911
2911
  d.value.click();
2912
- }), h.value.addEventListener("click", () => {
2912
+ }), p.value.addEventListener("click", () => {
2913
2913
  l.value.click();
2914
2914
  }), m.value.addEventListener("dragover", (w) => {
2915
2915
  w.preventDefault(), y.value = !0;
@@ -2949,24 +2949,24 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2949
2949
  class: de(["vf-btn vf-btn-primary", x.value ? "bg-blue-200 hover:bg-blue-200 dark:bg-gray-700/50 dark:hover:bg-gray-700/50 dark:text-gray-500" : "bg-blue-600 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-500"]),
2950
2950
  disabled: x.value,
2951
2951
  onClick: rt(L, ["prevent"])
2952
- }, _(a(s)("Upload")), 11, ec),
2952
+ }, _(r(s)("Upload")), 11, ec),
2953
2953
  x.value ? (f(), g("button", {
2954
2954
  key: 0,
2955
2955
  type: "button",
2956
2956
  class: "vf-btn vf-btn-secondary",
2957
2957
  onClick: rt(V, ["prevent"])
2958
- }, _(a(s)("Cancel")), 1)) : (f(), g("button", {
2958
+ }, _(r(s)("Cancel")), 1)) : (f(), g("button", {
2959
2959
  key: 1,
2960
2960
  type: "button",
2961
2961
  class: "vf-btn vf-btn-secondary",
2962
2962
  onClick: rt(M, ["prevent"])
2963
- }, _(a(s)("Close")), 1))
2963
+ }, _(r(s)("Close")), 1))
2964
2964
  ]),
2965
2965
  default: se(() => [
2966
2966
  o("div", Oi, [
2967
2967
  Hi,
2968
2968
  o("div", Bi, [
2969
- o("h3", Ri, _(a(s)("Upload Files")), 1),
2969
+ o("h3", Ri, _(r(s)("Upload Files")), 1),
2970
2970
  o("div", Fi, [
2971
2971
  o("div", {
2972
2972
  ref_key: "dropArea",
@@ -2974,7 +2974,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2974
2974
  class: "flex items-center justify-center text-lg mb-4 text-gray-500 border-2 border-gray-300 rounded border-dashed select-none cursor-pointer dark:border-gray-600 h-[120px]",
2975
2975
  onClick: D
2976
2976
  }, [
2977
- y.value ? (f(), g("div", Ii, _(a(s)("Release to drop these files.")), 1)) : (f(), g("div", Ni, _(a(s)("Drag and drop the files/folders to here or click here.")), 1))
2977
+ y.value ? (f(), g("div", Ii, _(r(s)("Release to drop these files.")), 1)) : (f(), g("div", Ni, _(r(s)("Drag and drop the files/folders to here or click here.")), 1))
2978
2978
  ], 512),
2979
2979
  o("div", {
2980
2980
  ref_key: "container",
@@ -2986,25 +2986,25 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2986
2986
  ref: u,
2987
2987
  type: "button",
2988
2988
  class: "vf-btn vf-btn-secondary"
2989
- }, _(a(s)("Select Files")), 513),
2989
+ }, _(r(s)("Select Files")), 513),
2990
2990
  o("button", {
2991
2991
  ref_key: "pickFolders",
2992
- ref: h,
2992
+ ref: p,
2993
2993
  type: "button",
2994
2994
  class: "vf-btn vf-btn-secondary"
2995
- }, _(a(s)("Select Folders")), 513),
2995
+ }, _(r(s)("Select Folders")), 513),
2996
2996
  o("button", {
2997
2997
  type: "button",
2998
2998
  class: "vf-btn vf-btn-secondary",
2999
2999
  disabled: x.value,
3000
3000
  onClick: $[0] || ($[0] = (w) => O(!1))
3001
- }, _(a(s)("Clear all")), 9, Ui),
3001
+ }, _(r(s)("Clear all")), 9, Ui),
3002
3002
  o("button", {
3003
3003
  type: "button",
3004
3004
  class: "vf-btn vf-btn-secondary",
3005
3005
  disabled: x.value,
3006
3006
  onClick: $[1] || ($[1] = (w) => O(!0))
3007
- }, _(a(s)("Clear only successful")), 9, zi)
3007
+ }, _(r(s)("Clear only successful")), 9, zi)
3008
3008
  ], 512),
3009
3009
  o("div", ji, [
3010
3010
  (f(!0), g(he, null, $e(v.value, (w) => (f(), g("div", {
@@ -3018,8 +3018,8 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
3018
3018
  }, null, 10, qi)
3019
3019
  ]),
3020
3020
  o("div", Gi, [
3021
- o("div", Ki, _(a(js)(w.name, 40)) + " (" + _(w.size) + ")", 1),
3022
- o("div", Wi, _(a(js)(w.name, 16)) + " (" + _(w.size) + ")", 1),
3021
+ o("div", Ki, _(r(js)(w.name, 40)) + " (" + _(w.size) + ")", 1),
3022
+ o("div", Wi, _(r(js)(w.name, 16)) + " (" + _(w.size) + ")", 1),
3023
3023
  o("div", {
3024
3024
  class: de(["flex break-all text-left", U(w)])
3025
3025
  }, [
@@ -3030,20 +3030,20 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
3030
3030
  o("button", {
3031
3031
  type: "button",
3032
3032
  class: de(["rounded w-5 h-5 border-1 text-base leading-none font-medium focus:outline-none dark:border-gray-200 dark:text-gray-400 dark:hover:text-gray-200 dark:bg-gray-600 ml-auto sm:text-xs hover:text-red-600", x.value ? "disabled:bg-gray-100 text-white text-opacity-50" : "bg-gray-100"]),
3033
- title: a(s)("Delete"),
3033
+ title: r(s)("Delete"),
3034
3034
  disabled: x.value,
3035
3035
  onClick: (I) => T(w)
3036
3036
  }, Qi, 10, Xi)
3037
3037
  ]))), 128)),
3038
- v.value.length ? j("", !0) : (f(), g("div", Zi, _(a(s)("No files selected!")), 1))
3038
+ v.value.length ? j("", !0) : (f(), g("div", Zi, _(r(s)("No files selected!")), 1))
3039
3039
  ]),
3040
- p.value.length ? (f(), W(Ye, {
3040
+ h.value.length ? (f(), W(Ye, {
3041
3041
  key: 0,
3042
- onHidden: $[2] || ($[2] = (w) => p.value = ""),
3042
+ onHidden: $[2] || ($[2] = (w) => h.value = ""),
3043
3043
  error: ""
3044
3044
  }, {
3045
3045
  default: se(() => [
3046
- Q(_(p.value), 1)
3046
+ Q(_(h.value), 1)
3047
3047
  ]),
3048
3048
  _: 1
3049
3049
  })) : j("", !0)
@@ -3118,7 +3118,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
3118
3118
  ], hc = { class: "ml-1.5" }, pc = { class: "my-1 text-sm text-gray-500" }, Lo = {
3119
3119
  __name: "ModalUnarchive",
3120
3120
  setup(t) {
3121
- const e = ae("ServiceContainer"), { t: s } = e.i18n, r = E(e.modal.data.items[0]), n = E(""), c = E([]), i = () => {
3121
+ const e = ae("ServiceContainer"), { t: s } = e.i18n, a = E(e.modal.data.items[0]), n = E(""), c = E([]), i = () => {
3122
3122
  e.emitter.emit("vf-fetch", {
3123
3123
  params: {
3124
3124
  q: "unarchive",
@@ -3127,7 +3127,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
3127
3127
  path: e.fs.data.dirname
3128
3128
  },
3129
3129
  body: {
3130
- item: r.value.path
3130
+ item: a.value.path
3131
3131
  },
3132
3132
  onSuccess: () => {
3133
3133
  e.emitter.emit("vf-toast-push", { label: s("The file unarchived.") });
@@ -3143,24 +3143,24 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
3143
3143
  type: "button",
3144
3144
  onClick: i,
3145
3145
  class: "vf-btn vf-btn-primary"
3146
- }, _(a(s)("Unarchive")), 1),
3146
+ }, _(r(s)("Unarchive")), 1),
3147
3147
  o("button", {
3148
3148
  type: "button",
3149
- onClick: l[1] || (l[1] = (u) => a(e).modal.close()),
3149
+ onClick: l[1] || (l[1] = (u) => r(e).modal.close()),
3150
3150
  class: "vf-btn vf-btn-secondary"
3151
- }, _(a(s)("Cancel")), 1)
3151
+ }, _(r(s)("Cancel")), 1)
3152
3152
  ]),
3153
3153
  default: se(() => [
3154
3154
  o("div", sc, [
3155
3155
  nc,
3156
3156
  o("div", oc, [
3157
- o("h3", rc, _(a(s)("Unarchive")), 1),
3157
+ o("h3", rc, _(r(s)("Unarchive")), 1),
3158
3158
  o("div", ac, [
3159
3159
  (f(!0), g(he, null, $e(c.value, (u) => (f(), g("p", lc, [
3160
3160
  u.type === "dir" ? (f(), g("svg", ic, dc)) : (f(), g("svg", uc, fc)),
3161
3161
  o("span", hc, _(u.basename), 1)
3162
3162
  ]))), 256)),
3163
- o("p", pc, _(a(s)("The archive will be unarchived at")) + " (" + _(a(e).fs.data.dirname) + ")", 1),
3163
+ o("p", pc, _(r(s)("The archive will be unarchived at")) + " (" + _(r(e).fs.data.dirname) + ")", 1),
3164
3164
  n.value.length ? (f(), W(Ye, {
3165
3165
  key: 0,
3166
3166
  onHidden: l[0] || (l[0] = (u) => n.value = ""),
@@ -3230,7 +3230,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
3230
3230
  ], Mc = { class: "ml-1.5" }, Ac = ["placeholder"], Vo = {
3231
3231
  __name: "ModalArchive",
3232
3232
  setup(t) {
3233
- const e = ae("ServiceContainer"), { t: s } = e.i18n, r = E(""), n = E(""), c = E(e.modal.data.items), i = () => {
3233
+ const e = ae("ServiceContainer"), { t: s } = e.i18n, a = E(""), n = E(""), c = E(e.modal.data.items), i = () => {
3234
3234
  c.value.length && e.emitter.emit("vf-fetch", {
3235
3235
  params: {
3236
3236
  q: "archive",
@@ -3240,7 +3240,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
3240
3240
  },
3241
3241
  body: {
3242
3242
  items: c.value.map(({ path: d, type: l }) => ({ path: d, type: l })),
3243
- name: r.value
3243
+ name: a.value
3244
3244
  },
3245
3245
  onSuccess: () => {
3246
3246
  e.emitter.emit("vf-toast-push", { label: s("The file(s) archived.") });
@@ -3256,18 +3256,18 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
3256
3256
  type: "button",
3257
3257
  onClick: i,
3258
3258
  class: "vf-btn vf-btn-primary"
3259
- }, _(a(s)("Archive")), 1),
3259
+ }, _(r(s)("Archive")), 1),
3260
3260
  o("button", {
3261
3261
  type: "button",
3262
- onClick: l[2] || (l[2] = (u) => a(e).modal.close()),
3262
+ onClick: l[2] || (l[2] = (u) => r(e).modal.close()),
3263
3263
  class: "vf-btn vf-btn-secondary"
3264
- }, _(a(s)("Cancel")), 1)
3264
+ }, _(r(s)("Cancel")), 1)
3265
3265
  ]),
3266
3266
  default: se(() => [
3267
3267
  o("div", vc, [
3268
3268
  gc,
3269
3269
  o("div", _c, [
3270
- o("h3", xc, _(a(s)("Archive the files")), 1),
3270
+ o("h3", xc, _(r(s)("Archive the files")), 1),
3271
3271
  o("div", bc, [
3272
3272
  o("div", yc, [
3273
3273
  (f(!0), g(he, null, $e(c.value, (u) => (f(), g("p", wc, [
@@ -3276,13 +3276,13 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
3276
3276
  ]))), 256))
3277
3277
  ]),
3278
3278
  ve(o("input", {
3279
- "onUpdate:modelValue": l[0] || (l[0] = (u) => r.value = u),
3279
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => a.value = u),
3280
3280
  onKeyup: $t(i, ["enter"]),
3281
3281
  class: "my-1 px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
3282
- placeholder: a(s)("Archive name. (.zip file will be created)"),
3282
+ placeholder: r(s)("Archive name. (.zip file will be created)"),
3283
3283
  type: "text"
3284
3284
  }, null, 40, Ac), [
3285
- [St, r.value]
3285
+ [St, a.value]
3286
3286
  ]),
3287
3287
  n.value.length ? (f(), W(Ye, {
3288
3288
  key: 0,
@@ -3465,14 +3465,14 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3465
3465
  }, Kd = { class: "pl-2" }, Wd = { class: "dark:bg-gray-700 bg-gray-200 text-xs px-2 py-1 rounded" }, Yd = { class: "flex text-center items-center justify-end" }, Xd = ["title"], Jd = ["title"], Qd = {
3466
3466
  __name: "Toolbar",
3467
3467
  setup(t) {
3468
- const e = ae("ServiceContainer"), { setStore: s } = e.storage, { t: r } = e.i18n, n = e.dragSelect, c = E("");
3468
+ const e = ae("ServiceContainer"), { setStore: s } = e.storage, { t: a } = e.i18n, n = e.dragSelect, c = E("");
3469
3469
  e.emitter.on("vf-search-query", ({ newQuery: l }) => {
3470
3470
  c.value = l;
3471
3471
  });
3472
3472
  const i = () => {
3473
3473
  e.fullScreen = !e.fullScreen;
3474
3474
  };
3475
- ze(() => e.fullScreen, () => {
3475
+ Ne(() => e.fullScreen, () => {
3476
3476
  e.fullScreen ? document.querySelector("body").style.overflow = "hidden" : document.querySelector("body").style.overflow = "", s("full-screen", e.fullScreen), e.emitter.emit("vf-fullscreen-toggle");
3477
3477
  });
3478
3478
  const d = () => {
@@ -3481,95 +3481,95 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3481
3481
  return (l, u) => (f(), g("div", Rd, [
3482
3482
  c.value.length ? (f(), g("div", Gd, [
3483
3483
  o("div", Kd, [
3484
- Q(_(a(r)("Search results for")) + " ", 1),
3484
+ Q(_(r(a)("Search results for")) + " ", 1),
3485
3485
  o("span", Wd, _(c.value), 1)
3486
3486
  ]),
3487
- a(e).fs.loading ? (f(), W(a(ln), { key: 0 })) : j("", !0)
3487
+ r(e).fs.loading ? (f(), W(r(ln), { key: 0 })) : j("", !0)
3488
3488
  ])) : (f(), g("div", Fd, [
3489
- a(e).features.includes(a(pe).NEW_FOLDER) ? (f(), g("div", {
3489
+ r(e).features.includes(r(pe).NEW_FOLDER) ? (f(), g("div", {
3490
3490
  key: 0,
3491
3491
  class: "mx-1.5",
3492
- title: a(r)("New Folder"),
3493
- onClick: u[0] || (u[0] = (h) => a(e).modal.open(Do, { items: a(n).getSelected() }))
3492
+ title: r(a)("New Folder"),
3493
+ onClick: u[0] || (u[0] = (p) => r(e).modal.open(Do, { items: r(n).getSelected() }))
3494
3494
  }, [
3495
- Y(a(Hc))
3495
+ Y(r(Hc))
3496
3496
  ], 8, Id)) : j("", !0),
3497
- a(e).features.includes(a(pe).NEW_FILE) ? (f(), g("div", {
3497
+ r(e).features.includes(r(pe).NEW_FILE) ? (f(), g("div", {
3498
3498
  key: 1,
3499
3499
  class: "mx-1.5",
3500
- title: a(r)("New File"),
3501
- onClick: u[1] || (u[1] = (h) => a(e).modal.open(Vi, { items: a(n).getSelected() }))
3500
+ title: r(a)("New File"),
3501
+ onClick: u[1] || (u[1] = (p) => r(e).modal.open(Vi, { items: r(n).getSelected() }))
3502
3502
  }, [
3503
- Y(a(Nc))
3503
+ Y(r(Nc))
3504
3504
  ], 8, Nd)) : j("", !0),
3505
- a(e).features.includes(a(pe).RENAME) ? (f(), g("div", {
3505
+ r(e).features.includes(r(pe).RENAME) ? (f(), g("div", {
3506
3506
  key: 2,
3507
3507
  class: "mx-1.5",
3508
- title: a(r)("Rename"),
3509
- onClick: u[2] || (u[2] = (h) => a(n).getCount() !== 1 || a(e).modal.open(an, { items: a(n).getSelected() }))
3508
+ title: r(a)("Rename"),
3509
+ onClick: u[2] || (u[2] = (p) => r(n).getCount() !== 1 || r(e).modal.open(an, { items: r(n).getSelected() }))
3510
3510
  }, [
3511
- Y(a(qc), {
3512
- class: de(a(n).getCount() === 1 ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3511
+ Y(r(qc), {
3512
+ class: de(r(n).getCount() === 1 ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3513
3513
  }, null, 8, ["class"])
3514
3514
  ], 8, Ud)) : j("", !0),
3515
- a(e).features.includes(a(pe).DELETE) ? (f(), g("div", {
3515
+ r(e).features.includes(r(pe).DELETE) ? (f(), g("div", {
3516
3516
  key: 3,
3517
3517
  class: "mx-1.5",
3518
- title: a(r)("Delete"),
3519
- onClick: u[3] || (u[3] = (h) => !a(n).getCount() || a(e).modal.open(rn, { items: a(n).getSelected() }))
3518
+ title: r(a)("Delete"),
3519
+ onClick: u[3] || (u[3] = (p) => !r(n).getCount() || r(e).modal.open(rn, { items: r(n).getSelected() }))
3520
3520
  }, [
3521
- Y(a(Xc), {
3522
- class: de(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3521
+ Y(r(Xc), {
3522
+ class: de(r(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3523
3523
  }, null, 8, ["class"])
3524
3524
  ], 8, zd)) : j("", !0),
3525
- a(e).features.includes(a(pe).UPLOAD) ? (f(), g("div", {
3525
+ r(e).features.includes(r(pe).UPLOAD) ? (f(), g("div", {
3526
3526
  key: 4,
3527
3527
  class: "mx-1.5",
3528
- title: a(r)("Upload"),
3529
- onClick: u[4] || (u[4] = (h) => a(e).modal.open(tc, { items: a(n).getSelected() }))
3528
+ title: r(a)("Upload"),
3529
+ onClick: u[4] || (u[4] = (p) => r(e).modal.open(tc, { items: r(n).getSelected() }))
3530
3530
  }, [
3531
- Y(a(td))
3531
+ Y(r(td))
3532
3532
  ], 8, jd)) : j("", !0),
3533
- a(e).features.includes(a(pe).UNARCHIVE) && a(n).getCount() === 1 && a(n).getSelected()[0].mime_type === "application/zip" ? (f(), g("div", {
3533
+ r(e).features.includes(r(pe).UNARCHIVE) && r(n).getCount() === 1 && r(n).getSelected()[0].mime_type === "application/zip" ? (f(), g("div", {
3534
3534
  key: 5,
3535
3535
  class: "mx-1.5",
3536
- title: a(r)("Unarchive"),
3537
- onClick: u[5] || (u[5] = (h) => !a(n).getCount() || a(e).modal.open(Lo, { items: a(n).getSelected() }))
3536
+ title: r(a)("Unarchive"),
3537
+ onClick: u[5] || (u[5] = (p) => !r(n).getCount() || r(e).modal.open(Lo, { items: r(n).getSelected() }))
3538
3538
  }, [
3539
- Y(a(ud), {
3540
- class: de(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3539
+ Y(r(ud), {
3540
+ class: de(r(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3541
3541
  }, null, 8, ["class"])
3542
3542
  ], 8, Pd)) : j("", !0),
3543
- a(e).features.includes(a(pe).ARCHIVE) ? (f(), g("div", {
3543
+ r(e).features.includes(r(pe).ARCHIVE) ? (f(), g("div", {
3544
3544
  key: 6,
3545
3545
  class: "mx-1.5",
3546
- title: a(r)("Archive"),
3547
- onClick: u[6] || (u[6] = (h) => !a(n).getCount() || a(e).modal.open(Vo, { items: a(n).getSelected() }))
3546
+ title: r(a)("Archive"),
3547
+ onClick: u[6] || (u[6] = (p) => !r(n).getCount() || r(e).modal.open(Vo, { items: r(n).getSelected() }))
3548
3548
  }, [
3549
- Y(a(ad), {
3550
- class: de(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3549
+ Y(r(ad), {
3550
+ class: de(r(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3551
3551
  }, null, 8, ["class"])
3552
3552
  ], 8, qd)) : j("", !0)
3553
3553
  ])),
3554
3554
  o("div", Yd, [
3555
- a(e).features.includes(a(pe).FULL_SCREEN) ? (f(), g("div", {
3555
+ r(e).features.includes(r(pe).FULL_SCREEN) ? (f(), g("div", {
3556
3556
  key: 0,
3557
3557
  onClick: i,
3558
3558
  class: "mx-1.5",
3559
- title: a(r)("Toggle Full Screen")
3559
+ title: r(a)("Toggle Full Screen")
3560
3560
  }, [
3561
- a(e).fullScreen ? (f(), W(a(Cd), { key: 0 })) : (f(), W(a(yd), { key: 1 }))
3561
+ r(e).fullScreen ? (f(), W(r(Cd), { key: 0 })) : (f(), W(r(yd), { key: 1 }))
3562
3562
  ], 8, Xd)) : j("", !0),
3563
3563
  o("div", {
3564
3564
  class: "mx-1.5",
3565
- title: a(r)("Change View"),
3566
- onClick: u[7] || (u[7] = (h) => c.value.length || d())
3565
+ title: r(a)("Change View"),
3566
+ onClick: u[7] || (u[7] = (p) => c.value.length || d())
3567
3567
  }, [
3568
- a(e).view === "grid" ? (f(), W(a(Dd), {
3568
+ r(e).view === "grid" ? (f(), W(r(Dd), {
3569
3569
  key: 0,
3570
3570
  class: de(c.value.length ? "vf-toolbar-icon-disabled" : "vf-toolbar-icon")
3571
3571
  }, null, 8, ["class"])) : j("", !0),
3572
- a(e).view === "list" ? (f(), W(a(Bd), {
3572
+ r(e).view === "list" ? (f(), W(r(Bd), {
3573
3573
  key: 1,
3574
3574
  class: de(c.value.length ? "vf-toolbar-icon-disabled" : "vf-toolbar-icon")
3575
3575
  }, null, 8, ["class"])) : j("", !0)
@@ -3578,21 +3578,21 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3578
3578
  ]));
3579
3579
  }
3580
3580
  }, Zd = (t, e = 0, s = !1) => {
3581
- let r;
3581
+ let a;
3582
3582
  return (...n) => {
3583
- s && !r && t(...n), clearTimeout(r), r = setTimeout(() => {
3583
+ s && !a && t(...n), clearTimeout(a), a = setTimeout(() => {
3584
3584
  t(...n);
3585
3585
  }, e);
3586
3586
  };
3587
3587
  }, Hn = (t, e, s) => {
3588
- const r = E(t);
3588
+ const a = E(t);
3589
3589
  return Yo((n, c) => ({
3590
3590
  get() {
3591
- return n(), r.value;
3591
+ return n(), a.value;
3592
3592
  },
3593
3593
  set: Zd(
3594
3594
  (i) => {
3595
- r.value = i, c();
3595
+ a.value = i, c();
3596
3596
  },
3597
3597
  e,
3598
3598
  s
@@ -3661,8 +3661,8 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3661
3661
  ], -1), gu = { class: "ml-1.5 overflow-auto" }, _u = { class: "m-1 mr-auto font-bold text-gray-500 text-sm dark:text-gray-200 self-center" }, Ps = {
3662
3662
  __name: "ModalMove",
3663
3663
  setup(t) {
3664
- const e = ae("ServiceContainer"), { t: s } = e.i18n, r = E(e.modal.data.items.from), n = E(""), c = () => {
3665
- r.value.length && e.emitter.emit("vf-fetch", {
3664
+ const e = ae("ServiceContainer"), { t: s } = e.i18n, a = E(e.modal.data.items.from), n = E(""), c = () => {
3665
+ a.value.length && e.emitter.emit("vf-fetch", {
3666
3666
  params: {
3667
3667
  q: "move",
3668
3668
  m: "post",
@@ -3670,7 +3670,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3670
3670
  path: e.fs.data.dirname
3671
3671
  },
3672
3672
  body: {
3673
- items: r.value.map(({ path: i, type: d }) => ({ path: i, type: d })),
3673
+ items: a.value.map(({ path: i, type: d }) => ({ path: i, type: d })),
3674
3674
  item: e.modal.data.items.to.path
3675
3675
  },
3676
3676
  onSuccess: () => {
@@ -3687,32 +3687,32 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3687
3687
  type: "button",
3688
3688
  onClick: c,
3689
3689
  class: "vf-btn vf-btn-primary"
3690
- }, _(a(s)("Yes, Move!")), 1),
3690
+ }, _(r(s)("Yes, Move!")), 1),
3691
3691
  o("button", {
3692
3692
  type: "button",
3693
- onClick: d[1] || (d[1] = (l) => a(e).modal.close()),
3693
+ onClick: d[1] || (d[1] = (l) => r(e).modal.close()),
3694
3694
  class: "vf-btn vf-btn-secondary"
3695
- }, _(a(s)("Cancel")), 1),
3696
- o("div", _u, _(a(s)("%s item(s) selected.", r.value.length)), 1)
3695
+ }, _(r(s)("Cancel")), 1),
3696
+ o("div", _u, _(r(s)("%s item(s) selected.", a.value.length)), 1)
3697
3697
  ]),
3698
3698
  default: se(() => [
3699
3699
  o("div", eu, [
3700
3700
  tu,
3701
3701
  o("div", su, [
3702
- o("h3", nu, _(a(s)("Move files")), 1),
3703
- o("p", ou, _(a(s)("Are you sure you want to move these files?")), 1),
3702
+ o("h3", nu, _(r(s)("Move files")), 1),
3703
+ o("p", ou, _(r(s)("Are you sure you want to move these files?")), 1),
3704
3704
  o("div", ru, [
3705
- (f(!0), g(he, null, $e(r.value, (l) => (f(), g("div", au, [
3705
+ (f(!0), g(he, null, $e(a.value, (l) => (f(), g("div", au, [
3706
3706
  o("div", null, [
3707
3707
  l.type === "dir" ? (f(), g("svg", lu, cu)) : (f(), g("svg", du, mu))
3708
3708
  ]),
3709
3709
  o("div", fu, _(l.path), 1)
3710
3710
  ]))), 256))
3711
3711
  ]),
3712
- o("h4", hu, _(a(s)("Target Directory")), 1),
3712
+ o("h4", hu, _(r(s)("Target Directory")), 1),
3713
3713
  o("p", pu, [
3714
3714
  vu,
3715
- o("span", gu, _(a(e).modal.data.items.to.path), 1)
3715
+ o("span", gu, _(r(e).modal.data.items.to.path), 1)
3716
3716
  ]),
3717
3717
  n.value.length ? (f(), W(Ye, {
3718
3718
  key: 0,
@@ -3867,8 +3867,8 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3867
3867
  }, g0 = /* @__PURE__ */ o("div", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), _0 = { class: "relative" }, x0 = /* @__PURE__ */ o("span", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), b0 = ["onDragover", "onDragleave", "onDrop", "title", "onClick"], y0 = { class: "relative flex bg-white dark:bg-gray-700 justify-between items-center rounded p-1 ml-2 w-full" }, w0 = ["placeholder"], k0 = { class: "z-30 absolute top-[65px] md:top-[75px] left-[90px] rounded -mx-1.5 mt-1 bg-neutral-50 dark:bg-gray-800 max-w-80 max-h-50 shadow overflow-y-auto text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600" }, $0 = ["onDrop", "onClick"], S0 = { class: "flex pointer-events-none" }, C0 = { class: "inline-block w-full text-ellipsis overflow-hidden" }, E0 = {
3868
3868
  __name: "Breadcrumb",
3869
3869
  setup(t) {
3870
- const e = ae("ServiceContainer"), { t: s } = e.i18n, r = e.dragSelect, { setStore: n } = e.storage, c = E(null), i = Hn(0, 100);
3871
- ze(i, (V) => {
3870
+ const e = ae("ServiceContainer"), { t: s } = e.i18n, a = e.dragSelect, { setStore: n } = e.storage, c = E(null), i = Hn(0, 100);
3871
+ Ne(i, (V) => {
3872
3872
  const T = c.value.children;
3873
3873
  let O = 0, M = 0, S = 5, H = 1;
3874
3874
  e.fs.limitBreadcrumbItems(S), ft(() => {
@@ -3884,7 +3884,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3884
3884
  new ResizeObserver(d).observe(c.value);
3885
3885
  });
3886
3886
  const l = (V, T = null) => {
3887
- V.preventDefault(), r.isDraggingRef.value = !1, m(V), T ?? (T = e.fs.hiddenBreadcrumbs.length - 1);
3887
+ V.preventDefault(), a.isDraggingRef.value = !1, m(V), T ?? (T = e.fs.hiddenBreadcrumbs.length - 1);
3888
3888
  let O = JSON.parse(V.dataTransfer.getData("items"));
3889
3889
  if (O.find((M) => M.storage !== e.fs.adapter)) {
3890
3890
  alert("Moving items between different storages is not supported yet.");
@@ -3897,7 +3897,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3897
3897
  }
3898
3898
  });
3899
3899
  }, u = (V, T = null) => {
3900
- V.preventDefault(), r.isDraggingRef.value = !1, m(V), T ?? (T = e.fs.breadcrumbs.length - 2);
3900
+ V.preventDefault(), a.isDraggingRef.value = !1, m(V), T ?? (T = e.fs.breadcrumbs.length - 2);
3901
3901
  let O = JSON.parse(V.dataTransfer.getData("items"));
3902
3902
  if (O.find((M) => M.storage !== e.fs.adapter)) {
3903
3903
  alert("Moving items between different storages is not supported yet.");
@@ -3909,13 +3909,13 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3909
3909
  to: e.fs.breadcrumbs[T] ?? { path: e.fs.adapter + "://" }
3910
3910
  }
3911
3911
  });
3912
- }, h = (V) => {
3912
+ }, p = (V) => {
3913
3913
  V.preventDefault(), e.fs.isGoUpAvailable() ? (V.dataTransfer.dropEffect = "copy", V.currentTarget.classList.add("bg-blue-200", "dark:bg-slate-600")) : (V.dataTransfer.dropEffect = "none", V.dataTransfer.effectAllowed = "none");
3914
3914
  }, m = (V) => {
3915
3915
  V.preventDefault(), V.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-600"), e.fs.isGoUpAvailable() && V.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-600");
3916
3916
  }, v = () => {
3917
3917
  D(), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname } });
3918
- }, p = () => {
3918
+ }, h = () => {
3919
3919
  D(), !e.fs.isGoUpAvailable() || e.emitter.emit("vf-fetch", {
3920
3920
  params: {
3921
3921
  q: "index",
@@ -3939,15 +3939,15 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3939
3939
  }, A = () => {
3940
3940
  e.showTreeView = !e.showTreeView;
3941
3941
  };
3942
- ze(() => e.showTreeView, (V, T) => {
3942
+ Ne(() => e.showTreeView, (V, T) => {
3943
3943
  V !== T && n("show-tree-view", V);
3944
3944
  });
3945
3945
  const k = E(null), U = () => {
3946
3946
  e.features.includes(pe.SEARCH) && (e.fs.searchMode = !0, ft(() => k.value.focus()));
3947
3947
  }, B = Hn("", 400);
3948
- ze(B, (V) => {
3948
+ Ne(B, (V) => {
3949
3949
  e.emitter.emit("vf-toast-clear"), e.emitter.emit("vf-search-query", { newQuery: V });
3950
- }), ze(() => e.fs.searchMode, (V) => {
3950
+ }), Ne(() => e.fs.searchMode, (V) => {
3951
3951
  V && ft(() => k.value.focus());
3952
3952
  });
3953
3953
  const D = () => {
@@ -3961,59 +3961,59 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3961
3961
  };
3962
3962
  return (V, T) => (f(), g("div", d0, [
3963
3963
  o("span", {
3964
- title: a(s)("Toggle Tree View")
3964
+ title: r(s)("Toggle Tree View")
3965
3965
  }, [
3966
- Y(a(o0), {
3966
+ Y(r(o0), {
3967
3967
  onClick: A,
3968
- class: de(["h-6 w-6 p-0.5 rounded cursor-pointer text-slate-700", a(e).showTreeView ? "bg-gray-300 dark:bg-gray-700" : ""])
3968
+ class: de(["h-6 w-6 p-0.5 rounded cursor-pointer text-slate-700", r(e).showTreeView ? "bg-gray-300 dark:bg-gray-700" : ""])
3969
3969
  }, null, 8, ["class"])
3970
3970
  ], 8, u0),
3971
3971
  o("span", {
3972
- title: a(s)("Go up a directory")
3972
+ title: r(s)("Go up a directory")
3973
3973
  }, [
3974
- Y(a(Tu), {
3975
- onDragover: T[0] || (T[0] = (O) => h(O)),
3974
+ Y(r(Tu), {
3975
+ onDragover: T[0] || (T[0] = (O) => p(O)),
3976
3976
  onDragleave: T[1] || (T[1] = (O) => m(O)),
3977
3977
  onDrop: T[2] || (T[2] = (O) => u(O)),
3978
- onClick: p,
3979
- class: de(a(e).fs.isGoUpAvailable() ? "text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer" : "text-gray-400 dark:text-neutral-500")
3978
+ onClick: h,
3979
+ class: de(r(e).fs.isGoUpAvailable() ? "text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer" : "text-gray-400 dark:text-neutral-500")
3980
3980
  }, null, 8, ["class"])
3981
3981
  ], 8, m0),
3982
- a(e).fs.loading ? (f(), g("span", {
3982
+ r(e).fs.loading ? (f(), g("span", {
3983
3983
  key: 1,
3984
- title: a(s)("Cancel")
3984
+ title: r(s)("Cancel")
3985
3985
  }, [
3986
- Y(a(Vu), {
3987
- onClick: T[3] || (T[3] = (O) => a(e).emitter.emit("vf-fetch-abort"))
3986
+ Y(r(Vu), {
3987
+ onClick: T[3] || (T[3] = (O) => r(e).emitter.emit("vf-fetch-abort"))
3988
3988
  })
3989
3989
  ], 8, h0)) : (f(), g("span", {
3990
3990
  key: 0,
3991
- title: a(s)("Refresh")
3991
+ title: r(s)("Refresh")
3992
3992
  }, [
3993
- Y(a(ku), { onClick: v })
3993
+ Y(r(ku), { onClick: v })
3994
3994
  ], 8, f0)),
3995
3995
  ve(o("div", {
3996
3996
  onClick: rt(U, ["self"]),
3997
3997
  class: "group flex bg-white dark:bg-gray-700 items-center rounded p-1 ml-2 w-full overflow-hidden"
3998
3998
  }, [
3999
3999
  o("div", null, [
4000
- Y(a(Fu), {
4001
- onDragover: T[4] || (T[4] = (O) => h(O)),
4000
+ Y(r(Fu), {
4001
+ onDragover: T[4] || (T[4] = (O) => p(O)),
4002
4002
  onDragleave: T[5] || (T[5] = (O) => m(O)),
4003
4003
  onDrop: T[6] || (T[6] = (O) => u(O, -1)),
4004
- onClick: T[7] || (T[7] = (O) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: a(e).fs.adapter } }))
4004
+ onClick: T[7] || (T[7] = (O) => r(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: r(e).fs.adapter } }))
4005
4005
  })
4006
4006
  ]),
4007
4007
  o("div", p0, [
4008
- a(e).fs.hiddenBreadcrumbs.length ? ve((f(), g("div", v0, [
4008
+ r(e).fs.hiddenBreadcrumbs.length ? ve((f(), g("div", v0, [
4009
4009
  g0,
4010
4010
  o("div", _0, [
4011
4011
  o("span", {
4012
- onDragenter: T[8] || (T[8] = (O) => a(e).fs.toggleHiddenBreadcrumbs(!0)),
4013
- onClick: T[9] || (T[9] = (O) => a(e).fs.toggleHiddenBreadcrumbs()),
4012
+ onDragenter: T[8] || (T[8] = (O) => r(e).fs.toggleHiddenBreadcrumbs(!0)),
4013
+ onClick: T[9] || (T[9] = (O) => r(e).fs.toggleHiddenBreadcrumbs()),
4014
4014
  class: "text-slate-700 dark:text-slate-200 hover:bg-neutral-100 dark:hover:bg-gray-800 rounded cursor-pointer"
4015
4015
  }, [
4016
- Y(a(c0), { class: "px-1 pointer-events-none" })
4016
+ Y(r(c0), { class: "px-1 pointer-events-none" })
4017
4017
  ], 32)
4018
4018
  ])
4019
4019
  ])), [
@@ -4026,25 +4026,25 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4026
4026
  class: "flex leading-6 w-full overflow-hidden",
4027
4027
  onClick: rt(U, ["self"])
4028
4028
  }, [
4029
- (f(!0), g(he, null, $e(a(e).fs.breadcrumbs, (O, M) => (f(), g("div", { key: M }, [
4029
+ (f(!0), g(he, null, $e(r(e).fs.breadcrumbs, (O, M) => (f(), g("div", { key: M }, [
4030
4030
  x0,
4031
4031
  o("span", {
4032
- onDragover: (S) => M === a(e).fs.breadcrumbs.length - 1 || h(S),
4033
- onDragleave: (S) => M === a(e).fs.breadcrumbs.length - 1 || m(S),
4034
- onDrop: (S) => M === a(e).fs.breadcrumbs.length - 1 || u(S, M),
4032
+ onDragover: (S) => M === r(e).fs.breadcrumbs.length - 1 || p(S),
4033
+ onDragleave: (S) => M === r(e).fs.breadcrumbs.length - 1 || m(S),
4034
+ onDrop: (S) => M === r(e).fs.breadcrumbs.length - 1 || u(S, M),
4035
4035
  class: "px-1.5 py-1 text-slate-700 dark:text-slate-200 hover:bg-neutral-100 dark:hover:bg-gray-800 rounded cursor-pointer whitespace-nowrap",
4036
4036
  title: O.basename,
4037
- onClick: (S) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: a(e).fs.adapter, path: O.path } })
4037
+ onClick: (S) => r(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: r(e).fs.adapter, path: O.path } })
4038
4038
  }, _(O.name), 41, b0)
4039
4039
  ]))), 128))
4040
4040
  ], 512),
4041
- a(e).fs.loading ? (f(), W(a(ln), { key: 0 })) : j("", !0)
4041
+ r(e).fs.loading ? (f(), W(r(ln), { key: 0 })) : j("", !0)
4042
4042
  ], 512), [
4043
- [je, !a(e).fs.searchMode]
4043
+ [je, !r(e).fs.searchMode]
4044
4044
  ]),
4045
4045
  ve(o("div", y0, [
4046
4046
  o("div", null, [
4047
- Y(a(ju))
4047
+ Y(r(ju))
4048
4048
  ]),
4049
4049
  ve(o("input", {
4050
4050
  ref_key: "searchInput",
@@ -4052,20 +4052,20 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4052
4052
  onKeydown: $t(D, ["esc"]),
4053
4053
  onBlur: L,
4054
4054
  "onUpdate:modelValue": T[10] || (T[10] = (O) => Fn(B) ? B.value = O : null),
4055
- placeholder: a(s)("Search anything.."),
4055
+ placeholder: r(s)("Search anything.."),
4056
4056
  class: "w-full pb-0 px-1 border-0 text-base ring-0 outline-0 text-gray-600 focus:ring-transparent focus:border-transparent dark:focus:ring-transparent dark:focus:border-transparent dark:text-gray-300 bg-transparent",
4057
4057
  type: "text"
4058
4058
  }, null, 40, w0), [
4059
- [St, a(B)]
4059
+ [St, r(B)]
4060
4060
  ]),
4061
- Y(a(Wu), { onClick: D })
4061
+ Y(r(Wu), { onClick: D })
4062
4062
  ], 512), [
4063
- [je, a(e).fs.searchMode]
4063
+ [je, r(e).fs.searchMode]
4064
4064
  ]),
4065
4065
  ve(o("div", k0, [
4066
- (f(!0), g(he, null, $e(a(e).fs.hiddenBreadcrumbs, (O, M) => (f(), g("div", {
4066
+ (f(!0), g(he, null, $e(r(e).fs.hiddenBreadcrumbs, (O, M) => (f(), g("div", {
4067
4067
  key: M,
4068
- onDragover: T[11] || (T[11] = (S) => h(S)),
4068
+ onDragover: T[11] || (T[11] = (S) => p(S)),
4069
4069
  onDragleave: T[12] || (T[12] = (S) => m(S)),
4070
4070
  onDrop: (S) => l(S, M),
4071
4071
  onClick: (S) => x(O),
@@ -4073,24 +4073,24 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4073
4073
  }, [
4074
4074
  o("div", S0, [
4075
4075
  o("span", null, [
4076
- Y(a(fs), { class: "h-5 w-5" })
4076
+ Y(r(fs), { class: "h-5 w-5" })
4077
4077
  ]),
4078
4078
  Q(),
4079
4079
  o("span", C0, _(O.name), 1)
4080
4080
  ])
4081
4081
  ], 40, $0))), 128))
4082
4082
  ], 512), [
4083
- [je, a(e).fs.showHiddenBreadcrumbs]
4083
+ [je, r(e).fs.showHiddenBreadcrumbs]
4084
4084
  ])
4085
4085
  ]));
4086
4086
  }
4087
4087
  }, Oo = (t, e = null) => new Date(t * 1e3).toLocaleString(e ?? navigator.language ?? "en-US"), T0 = ["onClick"], M0 = {
4088
4088
  __name: "Toast",
4089
4089
  setup(t) {
4090
- const e = ae("ServiceContainer"), { getStore: s } = e.storage, r = E(s("full-screen", !1)), n = E([]), c = (l) => l === "error" ? "text-red-400 border-red-400 dark:text-red-300 dark:border-red-300" : "text-lime-600 border-lime-600 dark:text-lime-300 dark:border-lime-1300", i = (l) => {
4090
+ const e = ae("ServiceContainer"), { getStore: s } = e.storage, a = E(s("full-screen", !1)), n = E([]), c = (l) => l === "error" ? "text-red-400 border-red-400 dark:text-red-300 dark:border-red-300" : "text-lime-600 border-lime-600 dark:text-lime-300 dark:border-lime-1300", i = (l) => {
4091
4091
  n.value.splice(l, 1);
4092
4092
  }, d = (l) => {
4093
- let u = n.value.findIndex((h) => h.id === l);
4093
+ let u = n.value.findIndex((p) => p.id === l);
4094
4094
  u !== -1 && i(u);
4095
4095
  };
4096
4096
  return e.emitter.on("vf-toast-clear", () => {
@@ -4101,7 +4101,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4101
4101
  d(u);
4102
4102
  }, 5e3);
4103
4103
  }), (l, u) => (f(), g("div", {
4104
- class: de([r.value.value ? "fixed" : "absolute", "max-w-fit flex flex-col bottom-0 left-1/2 -translate-x-1/2 z-10"])
4104
+ class: de([a.value.value ? "fixed" : "absolute", "max-w-fit flex flex-col bottom-0 left-1/2 -translate-x-1/2 z-10"])
4105
4105
  }, [
4106
4106
  Y(Xo, {
4107
4107
  name: "vf-toast-item",
@@ -4109,11 +4109,11 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4109
4109
  "leave-to-class": "opacity-0"
4110
4110
  }, {
4111
4111
  default: se(() => [
4112
- (f(!0), g(he, null, $e(n.value, (h, m) => (f(), g("div", {
4112
+ (f(!0), g(he, null, $e(n.value, (p, m) => (f(), g("div", {
4113
4113
  onClick: (v) => i(m),
4114
- key: h,
4115
- class: de([c(h.type), "inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 dark:bg-gray-600 border text-xs sm:text-sm rounded cursor-pointer"])
4116
- }, _(h.label), 11, T0))), 128))
4114
+ key: p,
4115
+ class: de([c(p.type), "inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 dark:bg-gray-600 border text-xs sm:text-sm rounded cursor-pointer"])
4116
+ }, _(p.label), 11, T0))), 128))
4117
4117
  ]),
4118
4118
  _: 1
4119
4119
  })
@@ -4154,8 +4154,8 @@ const I0 = { render: F0 }, Kt = {
4154
4154
  props: { direction: String },
4155
4155
  setup(t) {
4156
4156
  return (e, s) => (f(), g("div", null, [
4157
- t.direction === "asc" ? (f(), W(a(O0), { key: 0 })) : j("", !0),
4158
- t.direction === "desc" ? (f(), W(a(I0), { key: 1 })) : j("", !0)
4157
+ t.direction === "asc" ? (f(), W(r(O0), { key: 0 })) : j("", !0),
4158
+ t.direction === "desc" ? (f(), W(r(I0), { key: 1 })) : j("", !0)
4159
4159
  ]));
4160
4160
  }
4161
4161
  }, N0 = {
@@ -4188,10 +4188,10 @@ const P0 = { render: j0 }, ks = {
4188
4188
  },
4189
4189
  setup(t) {
4190
4190
  return (e, s) => (f(), g("span", null, [
4191
- t.type === "dir" ? (f(), W(a(fs), {
4191
+ t.type === "dir" ? (f(), W(r(fs), {
4192
4192
  key: 0,
4193
4193
  class: de({ "h-5 w-5": t.small, "h-10 w-10 md:h-12 md:w-12 m-auto": !t.small })
4194
- }, null, 8, ["class"])) : (f(), W(a(P0), {
4194
+ }, null, 8, ["class"])) : (f(), W(r(P0), {
4195
4195
  key: 1,
4196
4196
  class: de({ "h-5 w-5": t.small, "h-10 w-10 md:h-12 md:w-12 m-auto": !t.small })
4197
4197
  }, null, 8, ["class"]))
@@ -4223,8 +4223,8 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4223
4223
  },
4224
4224
  setup(t) {
4225
4225
  const e = t;
4226
- return (s, r) => (f(), g("div", X0, [
4227
- Y(a(Y0)),
4226
+ return (s, a) => (f(), g("div", X0, [
4227
+ Y(r(Y0)),
4228
4228
  o("div", J0, _(e.count), 1)
4229
4229
  ]));
4230
4230
  }
@@ -4235,19 +4235,19 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4235
4235
  __name: "Text",
4236
4236
  emits: ["success"],
4237
4237
  setup(t, { emit: e }) {
4238
- const s = e, r = E(""), n = E(""), c = E(null), i = E(!1), d = E(""), l = E(!1), u = ae("ServiceContainer"), { t: h } = u.i18n;
4238
+ const s = e, a = E(""), n = E(""), c = E(null), i = E(!1), d = E(""), l = E(!1), u = ae("ServiceContainer"), { t: p } = u.i18n;
4239
4239
  Ce(() => {
4240
4240
  u.requester.send({
4241
4241
  url: "",
4242
4242
  method: "get",
4243
4243
  params: { q: "preview", adapter: u.modal.data.adapter, path: u.modal.data.item.path },
4244
4244
  responseType: "text"
4245
- }).then((p) => {
4246
- r.value = p, s("success");
4245
+ }).then((h) => {
4246
+ a.value = h, s("success");
4247
4247
  });
4248
4248
  });
4249
4249
  const m = () => {
4250
- i.value = !i.value, n.value = r.value;
4250
+ i.value = !i.value, n.value = a.value;
4251
4251
  }, v = () => {
4252
4252
  d.value = "", l.value = !1, u.requester.send({
4253
4253
  url: "",
@@ -4261,30 +4261,30 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4261
4261
  content: n.value
4262
4262
  },
4263
4263
  responseType: "text"
4264
- }).then((p) => {
4265
- d.value = h("Updated."), r.value = p, s("success"), i.value = !i.value;
4266
- }).catch((p) => {
4267
- d.value = h(p.message), l.value = !0;
4264
+ }).then((h) => {
4265
+ d.value = p("Updated."), a.value = h, s("success"), i.value = !i.value;
4266
+ }).catch((h) => {
4267
+ d.value = p(h.message), l.value = !0;
4268
4268
  });
4269
4269
  };
4270
- return (p, x) => (f(), g(he, null, [
4270
+ return (h, x) => (f(), g(he, null, [
4271
4271
  o("div", Z0, [
4272
4272
  o("div", {
4273
4273
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
4274
4274
  id: "modal-title",
4275
- title: a(u).modal.data.item.path
4276
- }, _(a(u).modal.data.item.basename), 9, em),
4275
+ title: r(u).modal.data.item.path
4276
+ }, _(r(u).modal.data.item.basename), 9, em),
4277
4277
  o("div", tm, [
4278
4278
  i.value ? (f(), g("button", {
4279
4279
  key: 0,
4280
4280
  onClick: v,
4281
4281
  class: "ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm"
4282
- }, _(a(h)("Save")), 1)) : j("", !0),
4283
- a(u).features.includes(a(pe).EDIT) ? (f(), g("button", {
4282
+ }, _(r(p)("Save")), 1)) : j("", !0),
4283
+ r(u).features.includes(r(pe).EDIT) ? (f(), g("button", {
4284
4284
  key: 1,
4285
4285
  class: "ml-1 px-2 py-1 text-blue-500",
4286
4286
  onClick: x[0] || (x[0] = (y) => m())
4287
- }, _(i.value ? a(h)("Cancel") : a(h)("Edit")), 1)) : j("", !0)
4287
+ }, _(i.value ? r(p)("Cancel") : r(p)("Edit")), 1)) : j("", !0)
4288
4288
  ])
4289
4289
  ]),
4290
4290
  o("div", null, [
@@ -4301,7 +4301,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4301
4301
  }, null, 512), [
4302
4302
  [St, n.value]
4303
4303
  ])
4304
- ])) : (f(), g("pre", sm, _(r.value), 1)),
4304
+ ])) : (f(), g("pre", sm, _(a.value), 1)),
4305
4305
  d.value.length ? (f(), W(Ye, {
4306
4306
  key: 2,
4307
4307
  onHidden: x[2] || (x[2] = (y) => d.value = ""),
@@ -4319,7 +4319,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4319
4319
  __name: "Image",
4320
4320
  emits: ["success"],
4321
4321
  setup(t, { emit: e }) {
4322
- const s = e, r = ae("ServiceContainer"), { t: n } = r.i18n, c = E(null), i = E(null), d = E(!1), l = E(""), u = E(!1), h = () => {
4322
+ const s = e, a = ae("ServiceContainer"), { t: n } = a.i18n, c = E(null), i = E(null), d = E(!1), l = E(""), u = E(!1), p = () => {
4323
4323
  d.value = !d.value, d.value ? i.value = new lr(c.value, {
4324
4324
  crop(v) {
4325
4325
  }
@@ -4331,18 +4331,18 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4331
4331
  }).toBlob(
4332
4332
  (v) => {
4333
4333
  l.value = "", u.value = !1;
4334
- const p = new FormData();
4335
- p.set("file", v), r.requester.send({
4334
+ const h = new FormData();
4335
+ h.set("file", v), a.requester.send({
4336
4336
  url: "",
4337
4337
  method: "post",
4338
4338
  params: {
4339
4339
  q: "upload",
4340
- adapter: r.modal.data.adapter,
4341
- path: r.modal.data.item.path
4340
+ adapter: a.modal.data.adapter,
4341
+ path: a.modal.data.item.path
4342
4342
  },
4343
- body: p
4343
+ body: h
4344
4344
  }).then((x) => {
4345
- l.value = n("Updated."), c.value.src = r.requester.getPreviewUrl(r.modal.data.adapter, r.modal.data.item), h(), s("success");
4345
+ l.value = n("Updated."), c.value.src = a.requester.getPreviewUrl(a.modal.data.adapter, a.modal.data.item), p(), s("success");
4346
4346
  }).catch((x) => {
4347
4347
  l.value = n(x.message), u.value = !0;
4348
4348
  });
@@ -4351,24 +4351,24 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4351
4351
  };
4352
4352
  return Ce(() => {
4353
4353
  s("success");
4354
- }), (v, p) => (f(), g(he, null, [
4354
+ }), (v, h) => (f(), g(he, null, [
4355
4355
  o("div", rm, [
4356
4356
  o("h3", {
4357
4357
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
4358
4358
  id: "modal-title",
4359
- title: a(r).modal.data.item.path
4360
- }, _(a(r).modal.data.item.basename), 9, am),
4359
+ title: r(a).modal.data.item.path
4360
+ }, _(r(a).modal.data.item.basename), 9, am),
4361
4361
  o("div", lm, [
4362
4362
  d.value ? (f(), g("button", {
4363
4363
  key: 0,
4364
4364
  onClick: m,
4365
4365
  class: "ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm"
4366
- }, _(a(n)("Crop")), 1)) : j("", !0),
4367
- a(r).features.includes(a(pe).EDIT) ? (f(), g("button", {
4366
+ }, _(r(n)("Crop")), 1)) : j("", !0),
4367
+ r(a).features.includes(r(pe).EDIT) ? (f(), g("button", {
4368
4368
  key: 1,
4369
4369
  class: "ml-1 px-2 py-1 text-blue-500",
4370
- onClick: p[0] || (p[0] = (x) => h())
4371
- }, _(d.value ? a(n)("Cancel") : a(n)("Edit")), 1)) : j("", !0)
4370
+ onClick: h[0] || (h[0] = (x) => p())
4371
+ }, _(d.value ? r(n)("Cancel") : r(n)("Edit")), 1)) : j("", !0)
4372
4372
  ])
4373
4373
  ]),
4374
4374
  o("div", im, [
@@ -4376,13 +4376,13 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4376
4376
  ref_key: "image",
4377
4377
  ref: c,
4378
4378
  class: "max-w-[50vh] max-h-[50vh]",
4379
- src: a(r).requester.getPreviewUrl(a(r).modal.data.adapter, a(r).modal.data.item),
4379
+ src: r(a).requester.getPreviewUrl(r(a).modal.data.adapter, r(a).modal.data.item),
4380
4380
  alt: ""
4381
4381
  }, null, 8, cm)
4382
4382
  ]),
4383
4383
  l.value.length ? (f(), W(Ye, {
4384
4384
  key: 0,
4385
- onHidden: p[1] || (p[1] = (x) => l.value = ""),
4385
+ onHidden: h[1] || (h[1] = (x) => l.value = ""),
4386
4386
  error: u.value
4387
4387
  }, {
4388
4388
  default: se(() => [
@@ -4396,16 +4396,16 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4396
4396
  __name: "Default",
4397
4397
  emits: ["success"],
4398
4398
  setup(t, { emit: e }) {
4399
- const s = ae("ServiceContainer"), r = e;
4399
+ const s = ae("ServiceContainer"), a = e;
4400
4400
  return Ce(() => {
4401
- r("success");
4401
+ a("success");
4402
4402
  }), (n, c) => (f(), g(he, null, [
4403
4403
  o("div", um, [
4404
4404
  o("h3", {
4405
4405
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
4406
4406
  id: "modal-title",
4407
- title: a(s).modal.data.item.path
4408
- }, _(a(s).modal.data.item.basename), 9, mm)
4407
+ title: r(s).modal.data.item.path
4408
+ }, _(r(s).modal.data.item.basename), 9, mm)
4409
4409
  ]),
4410
4410
  fm
4411
4411
  ], 64));
@@ -4418,15 +4418,15 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4418
4418
  __name: "Video",
4419
4419
  emits: ["success"],
4420
4420
  setup(t, { emit: e }) {
4421
- const s = ae("ServiceContainer"), r = e, n = () => s.requester.getPreviewUrl(s.modal.data.adapter, s.modal.data.item);
4421
+ const s = ae("ServiceContainer"), a = e, n = () => s.requester.getPreviewUrl(s.modal.data.adapter, s.modal.data.item);
4422
4422
  return Ce(() => {
4423
- r("success");
4423
+ a("success");
4424
4424
  }), (c, i) => (f(), g("div", null, [
4425
4425
  o("h3", {
4426
4426
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
4427
4427
  id: "modal-title",
4428
- title: a(s).modal.data.item.path
4429
- }, _(a(s).modal.data.item.basename), 9, pm),
4428
+ title: r(s).modal.data.item.path
4429
+ }, _(r(s).modal.data.item.basename), 9, pm),
4430
4430
  o("div", null, [
4431
4431
  o("video", vm, [
4432
4432
  o("source", {
@@ -4445,15 +4445,15 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4445
4445
  __name: "Audio",
4446
4446
  emits: ["success"],
4447
4447
  setup(t, { emit: e }) {
4448
- const s = e, r = ae("ServiceContainer"), n = () => r.requester.getPreviewUrl(r.modal.data.adapter, r.modal.data.item);
4448
+ const s = e, a = ae("ServiceContainer"), n = () => a.requester.getPreviewUrl(a.modal.data.adapter, a.modal.data.item);
4449
4449
  return Ce(() => {
4450
4450
  s("success");
4451
4451
  }), (c, i) => (f(), g(he, null, [
4452
4452
  o("h3", {
4453
4453
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
4454
4454
  id: "modal-title",
4455
- title: a(r).modal.data.item.path
4456
- }, _(a(r).modal.data.item.basename), 9, xm),
4455
+ title: r(a).modal.data.item.path
4456
+ }, _(r(a).modal.data.item.basename), 9, xm),
4457
4457
  o("div", null, [
4458
4458
  o("audio", bm, [
4459
4459
  o("source", {
@@ -4475,15 +4475,15 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4475
4475
  __name: "Pdf",
4476
4476
  emits: ["success"],
4477
4477
  setup(t, { emit: e }) {
4478
- const s = ae("ServiceContainer"), r = e, n = () => s.requester.getPreviewUrl(s.modal.data.adapter, s.modal.data.item);
4478
+ const s = ae("ServiceContainer"), a = e, n = () => s.requester.getPreviewUrl(s.modal.data.adapter, s.modal.data.item);
4479
4479
  return Ce(() => {
4480
- r("success");
4480
+ a("success");
4481
4481
  }), (c, i) => (f(), g(he, null, [
4482
4482
  o("h3", {
4483
4483
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
4484
4484
  id: "modal-title",
4485
- title: a(s).modal.data.item.path
4486
- }, _(a(s).modal.data.item.basename), 9, km),
4485
+ title: r(s).modal.data.item.path
4486
+ }, _(r(s).modal.data.item.basename), 9, km),
4487
4487
  o("div", null, [
4488
4488
  o("object", {
4489
4489
  class: "h-[60vh]",
@@ -4530,66 +4530,66 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4530
4530
  }, Im = ["download", "href"], Ho = {
4531
4531
  __name: "ModalPreview",
4532
4532
  setup(t) {
4533
- const e = ae("ServiceContainer"), { t: s } = e.i18n, r = E(!1), n = (i) => (e.modal.data.item.mime_type ?? "").startsWith(i), c = e.features.includes(pe.PREVIEW);
4534
- return c || (r.value = !0), (i, d) => (f(), W(We, null, {
4533
+ const e = ae("ServiceContainer"), { t: s } = e.i18n, a = E(!1), n = (i) => (e.modal.data.item.mime_type ?? "").startsWith(i), c = e.features.includes(pe.PREVIEW);
4534
+ return c || (a.value = !0), (i, d) => (f(), W(We, null, {
4535
4535
  buttons: se(() => [
4536
4536
  o("button", {
4537
4537
  type: "button",
4538
- onClick: d[6] || (d[6] = (l) => a(e).modal.close()),
4538
+ onClick: d[6] || (d[6] = (l) => r(e).modal.close()),
4539
4539
  class: "vf-btn vf-btn-secondary"
4540
- }, _(a(s)("Close")), 1),
4541
- a(e).features.includes(a(pe).DOWNLOAD) ? (f(), g("a", {
4540
+ }, _(r(s)("Close")), 1),
4541
+ r(e).features.includes(r(pe).DOWNLOAD) ? (f(), g("a", {
4542
4542
  key: 0,
4543
4543
  target: "_blank",
4544
4544
  class: "vf-btn vf-btn-primary",
4545
- download: a(e).requester.getDownloadUrl(a(e).modal.data.adapter, a(e).modal.data.item),
4546
- href: a(e).requester.getDownloadUrl(a(e).modal.data.adapter, a(e).modal.data.item)
4547
- }, _(a(s)("Download")), 9, Im)) : j("", !0)
4545
+ download: r(e).requester.getDownloadUrl(r(e).modal.data.adapter, r(e).modal.data.item),
4546
+ href: r(e).requester.getDownloadUrl(r(e).modal.data.adapter, r(e).modal.data.item)
4547
+ }, _(r(s)("Download")), 9, Im)) : j("", !0)
4548
4548
  ]),
4549
4549
  default: se(() => [
4550
4550
  o("div", Mm, [
4551
4551
  o("div", Am, [
4552
- a(c) ? (f(), g("div", Dm, [
4552
+ r(c) ? (f(), g("div", Dm, [
4553
4553
  n("text") ? (f(), W(om, {
4554
4554
  key: 0,
4555
- onSuccess: d[0] || (d[0] = (l) => r.value = !0)
4555
+ onSuccess: d[0] || (d[0] = (l) => a.value = !0)
4556
4556
  })) : n("image") ? (f(), W(dm, {
4557
4557
  key: 1,
4558
- onSuccess: d[1] || (d[1] = (l) => r.value = !0)
4558
+ onSuccess: d[1] || (d[1] = (l) => a.value = !0)
4559
4559
  })) : n("video") ? (f(), W(_m, {
4560
4560
  key: 2,
4561
- onSuccess: d[2] || (d[2] = (l) => r.value = !0)
4561
+ onSuccess: d[2] || (d[2] = (l) => a.value = !0)
4562
4562
  })) : n("audio") ? (f(), W(wm, {
4563
4563
  key: 3,
4564
- onSuccess: d[3] || (d[3] = (l) => r.value = !0)
4564
+ onSuccess: d[3] || (d[3] = (l) => a.value = !0)
4565
4565
  })) : n("application/pdf") ? (f(), W(Tm, {
4566
4566
  key: 4,
4567
- onSuccess: d[4] || (d[4] = (l) => r.value = !0)
4567
+ onSuccess: d[4] || (d[4] = (l) => a.value = !0)
4568
4568
  })) : (f(), W(hm, {
4569
4569
  key: 5,
4570
- onSuccess: d[5] || (d[5] = (l) => r.value = !0)
4570
+ onSuccess: d[5] || (d[5] = (l) => a.value = !0)
4571
4571
  }))
4572
4572
  ])) : j("", !0),
4573
4573
  o("div", Lm, [
4574
- r.value === !1 ? (f(), g("div", Vm, [
4574
+ a.value === !1 ? (f(), g("div", Vm, [
4575
4575
  Om,
4576
- o("span", null, _(a(s)("Loading")), 1)
4576
+ o("span", null, _(r(s)("Loading")), 1)
4577
4577
  ])) : j("", !0)
4578
4578
  ])
4579
4579
  ])
4580
4580
  ]),
4581
4581
  o("div", Hm, [
4582
4582
  o("div", null, [
4583
- o("span", Bm, _(a(s)("File Size")) + ": ", 1),
4584
- Q(_(a(e).filesize(a(e).modal.data.item.file_size)), 1)
4583
+ o("span", Bm, _(r(s)("File Size")) + ": ", 1),
4584
+ Q(_(r(e).filesize(r(e).modal.data.item.file_size)), 1)
4585
4585
  ]),
4586
4586
  o("div", null, [
4587
- o("span", Rm, _(a(s)("Last Modified")) + ": ", 1),
4588
- Q(" " + _(a(Oo)(a(e).modal.data.item.last_modified)), 1)
4587
+ o("span", Rm, _(r(s)("Last Modified")) + ": ", 1),
4588
+ Q(" " + _(r(Oo)(r(e).modal.data.item.last_modified)), 1)
4589
4589
  ])
4590
4590
  ]),
4591
- a(e).features.includes(a(pe).DOWNLOAD) ? (f(), g("div", Fm, [
4592
- o("span", null, _(a(s)(`Download doesn't work? You can try right-click "Download" button, select "Save link as...".`)), 1)
4591
+ r(e).features.includes(r(pe).DOWNLOAD) ? (f(), g("div", Fm, [
4592
+ o("span", null, _(r(s)(`Download doesn't work? You can try right-click "Download" button, select "Save link as...".`)), 1)
4593
4593
  ])) : j("", !0)
4594
4594
  ]),
4595
4595
  _: 1
@@ -4622,38 +4622,38 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4622
4622
  dragImage: { type: Object }
4623
4623
  },
4624
4624
  setup(t) {
4625
- const e = ae("ServiceContainer"), s = e.dragSelect, r = t, n = (p) => {
4626
- p.type === "dir" ? (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: p.path } })) : e.modal.open(Ho, { adapter: e.fs.adapter, item: p });
4625
+ const e = ae("ServiceContainer"), s = e.dragSelect, a = t, n = (h) => {
4626
+ h.type === "dir" ? (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: h.path } })) : e.modal.open(Ho, { adapter: e.fs.adapter, item: h });
4627
4627
  }, c = {
4628
- mounted(p, x, y, b) {
4629
- y.props.draggable && (p.addEventListener("dragstart", (A) => i(A, x.value)), p.addEventListener("dragover", (A) => l(A, x.value)), p.addEventListener("drop", (A) => d(A, x.value)));
4628
+ mounted(h, x, y, b) {
4629
+ y.props.draggable && (h.addEventListener("dragstart", (A) => i(A, x.value)), h.addEventListener("dragover", (A) => l(A, x.value)), h.addEventListener("drop", (A) => d(A, x.value)));
4630
4630
  },
4631
- beforeUnmount(p, x, y, b) {
4632
- y.props.draggable && (p.removeEventListener("dragstart", i), p.removeEventListener("dragover", l), p.removeEventListener("drop", d));
4631
+ beforeUnmount(h, x, y, b) {
4632
+ y.props.draggable && (h.removeEventListener("dragstart", i), h.removeEventListener("dragover", l), h.removeEventListener("drop", d));
4633
4633
  }
4634
- }, i = (p, x) => {
4635
- if (p.altKey || p.ctrlKey || p.metaKey)
4636
- return p.preventDefault(), !1;
4637
- s.isDraggingRef.value = !0, p.dataTransfer.setDragImage(r.dragImage.$el, 0, 15), p.dataTransfer.effectAllowed = "all", p.dataTransfer.dropEffect = "copy", p.dataTransfer.setData("items", JSON.stringify(s.getSelected()));
4638
- }, d = (p, x) => {
4639
- p.preventDefault(), s.isDraggingRef.value = !1;
4640
- let y = JSON.parse(p.dataTransfer.getData("items"));
4634
+ }, i = (h, x) => {
4635
+ if (h.altKey || h.ctrlKey || h.metaKey)
4636
+ return h.preventDefault(), !1;
4637
+ s.isDraggingRef.value = !0, h.dataTransfer.setDragImage(a.dragImage.$el, 0, 15), h.dataTransfer.effectAllowed = "all", h.dataTransfer.dropEffect = "copy", h.dataTransfer.setData("items", JSON.stringify(s.getSelected()));
4638
+ }, d = (h, x) => {
4639
+ h.preventDefault(), s.isDraggingRef.value = !1;
4640
+ let y = JSON.parse(h.dataTransfer.getData("items"));
4641
4641
  if (y.find((b) => b.storage !== e.fs.adapter)) {
4642
4642
  alert("Moving items between different storages is not supported yet.");
4643
4643
  return;
4644
4644
  }
4645
4645
  e.modal.open(Ps, { items: { from: y, to: x } });
4646
- }, l = (p, x) => {
4647
- p.preventDefault(), !x || x.type !== "dir" || s.getSelection().find((y) => y === p.currentTarget) ? (p.dataTransfer.dropEffect = "none", p.dataTransfer.effectAllowed = "none") : p.dataTransfer.dropEffect = "copy";
4646
+ }, l = (h, x) => {
4647
+ h.preventDefault(), !x || x.type !== "dir" || s.getSelection().find((y) => y === h.currentTarget) ? (h.dataTransfer.dropEffect = "none", h.dataTransfer.effectAllowed = "none") : h.dataTransfer.dropEffect = "copy";
4648
4648
  };
4649
- let u = null, h = !1;
4649
+ let u = null, p = !1;
4650
4650
  const m = () => {
4651
4651
  u && clearTimeout(u);
4652
- }, v = (p) => {
4653
- if (!h)
4654
- h = !0, setTimeout(() => h = !1, 300);
4652
+ }, v = (h) => {
4653
+ if (!p)
4654
+ p = !0, setTimeout(() => p = !1, 300);
4655
4655
  else
4656
- return h = !1, n(r.item), clearTimeout(u), !1;
4656
+ return p = !1, n(a.item), clearTimeout(u), !1;
4657
4657
  u = setTimeout(() => {
4658
4658
  const x = new MouseEvent("contextmenu", {
4659
4659
  bubbles: !0,
@@ -4661,15 +4661,15 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4661
4661
  view: window,
4662
4662
  button: 2,
4663
4663
  buttons: 0,
4664
- clientX: p.target.getBoundingClientRect().x,
4665
- clientY: p.target.getBoundingClientRect().y
4664
+ clientX: h.target.getBoundingClientRect().x,
4665
+ clientY: h.target.getBoundingClientRect().y
4666
4666
  });
4667
- p.target.dispatchEvent(x);
4667
+ h.target.dispatchEvent(x);
4668
4668
  }, 500);
4669
4669
  };
4670
- return (p, x) => ve((f(), g("div", {
4671
- style: os({ opacity: a(s).isDraggingRef.value && a(s).getSelection().find((y) => p.$el === y) ? "0.5 !important" : "" }),
4672
- class: de(["vf-item-" + a(s).explorerId, "relative"]),
4670
+ return (h, x) => ve((f(), g("div", {
4671
+ style: os({ opacity: r(s).isDraggingRef.value && r(s).getSelection().find((y) => h.$el === y) ? "0.5 !important" : "" }),
4672
+ class: de(["vf-item-" + r(s).explorerId, "relative"]),
4673
4673
  "data-type": t.item.type,
4674
4674
  key: t.item.path,
4675
4675
  "data-item": JSON.stringify(t.item),
@@ -4677,10 +4677,10 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4677
4677
  onDblclick: x[0] || (x[0] = (y) => n(t.item)),
4678
4678
  onTouchstart: x[1] || (x[1] = (y) => v(y)),
4679
4679
  onTouchend: x[2] || (x[2] = (y) => m()),
4680
- onContextmenu: x[3] || (x[3] = rt((y) => a(e).emitter.emit("vf-contextmenu-show", { event: y, items: a(s).getSelected(), target: t.item }), ["prevent"]))
4680
+ onContextmenu: x[3] || (x[3] = rt((y) => r(e).emitter.emit("vf-contextmenu-show", { event: y, items: r(s).getSelected(), target: t.item }), ["prevent"]))
4681
4681
  }, [
4682
- Dt(p.$slots, "default"),
4683
- a(e).pinnedFolders.find((y) => y.path === t.item.path) ? (f(), W(a(Bo), {
4682
+ Dt(h.$slots, "default"),
4683
+ r(e).pinnedFolders.find((y) => y.path === t.item.path) ? (f(), W(r(Bo), {
4684
4684
  key: 0,
4685
4685
  class: "absolute top-0 right-0 text-amber-600"
4686
4686
  })) : j("", !0)
@@ -4697,7 +4697,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4697
4697
  }, l1 = { class: "break-all" }, i1 = {
4698
4698
  __name: "Explorer",
4699
4699
  setup(t) {
4700
- const e = ae("ServiceContainer"), { t: s } = e.i18n, r = (m) => m == null ? void 0 : m.substring(0, 3), n = E(null), c = E(""), i = e.dragSelect;
4700
+ const e = ae("ServiceContainer"), { t: s } = e.i18n, a = (m) => m == null ? void 0 : m.substring(0, 3), n = E(null), c = E(""), i = e.dragSelect;
4701
4701
  let d;
4702
4702
  e.emitter.on("vf-fullscreen-toggle", () => {
4703
4703
  i.area.value.style.height = null;
@@ -4715,12 +4715,12 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4715
4715
  }) : e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname } });
4716
4716
  });
4717
4717
  const l = Ot({ active: !1, column: "", order: "" }), u = (m = !0) => {
4718
- let v = [...e.fs.data.files], p = l.column, x = l.order === "asc" ? 1 : -1;
4718
+ let v = [...e.fs.data.files], h = l.column, x = l.order === "asc" ? 1 : -1;
4719
4719
  if (!m)
4720
4720
  return v;
4721
4721
  const y = (b, A) => typeof b == "string" && typeof A == "string" ? b.toLowerCase().localeCompare(A.toLowerCase()) : b < A ? -1 : b > A ? 1 : 0;
4722
- return l.active && (v = v.slice().sort((b, A) => y(b[p], A[p]) * x)), v;
4723
- }, h = (m) => {
4722
+ return l.active && (v = v.slice().sort((b, A) => y(b[h], A[h]) * x)), v;
4723
+ }, p = (m) => {
4724
4724
  l.active && l.column === m ? (l.active = l.order === "asc", l.column = m, l.order = "desc") : (l.active = !0, l.column = m, l.order = "asc");
4725
4725
  };
4726
4726
  return Ce(() => {
@@ -4730,12 +4730,12 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4730
4730
  }), In(() => {
4731
4731
  d.destroy();
4732
4732
  }), (m, v) => (f(), g("div", Gm, [
4733
- a(e).view === "list" || c.value.length ? (f(), g("div", Km, [
4733
+ r(e).view === "list" || c.value.length ? (f(), g("div", Km, [
4734
4734
  o("div", {
4735
- onClick: v[0] || (v[0] = (p) => h("basename")),
4735
+ onClick: v[0] || (v[0] = (h) => p("basename")),
4736
4736
  class: "col-span-7 vf-sort-button"
4737
4737
  }, [
4738
- Q(_(a(s)("Name")) + " ", 1),
4738
+ Q(_(r(s)("Name")) + " ", 1),
4739
4739
  ve(Y(Kt, {
4740
4740
  direction: l.order
4741
4741
  }, null, 8, ["direction"]), [
@@ -4744,10 +4744,10 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4744
4744
  ]),
4745
4745
  c.value.length ? j("", !0) : (f(), g("div", {
4746
4746
  key: 0,
4747
- onClick: v[1] || (v[1] = (p) => h("file_size")),
4747
+ onClick: v[1] || (v[1] = (h) => p("file_size")),
4748
4748
  class: "justify-center col-span-2 vf-sort-button"
4749
4749
  }, [
4750
- Q(_(a(s)("Size")) + " ", 1),
4750
+ Q(_(r(s)("Size")) + " ", 1),
4751
4751
  ve(Y(Kt, {
4752
4752
  direction: l.order
4753
4753
  }, null, 8, ["direction"]), [
@@ -4756,10 +4756,10 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4756
4756
  ])),
4757
4757
  c.value.length ? j("", !0) : (f(), g("div", {
4758
4758
  key: 1,
4759
- onClick: v[2] || (v[2] = (p) => h("last_modified")),
4759
+ onClick: v[2] || (v[2] = (h) => p("last_modified")),
4760
4760
  class: "justify-center col-span-3 vf-sort-button"
4761
4761
  }, [
4762
- Q(_(a(s)("Date")) + " ", 1),
4762
+ Q(_(r(s)("Date")) + " ", 1),
4763
4763
  ve(Y(Kt, {
4764
4764
  direction: l.order
4765
4765
  }, null, 8, ["direction"]), [
@@ -4768,10 +4768,10 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4768
4768
  ])),
4769
4769
  c.value.length ? (f(), g("div", {
4770
4770
  key: 2,
4771
- onClick: v[3] || (v[3] = (p) => h("path")),
4771
+ onClick: v[3] || (v[3] = (h) => p("path")),
4772
4772
  class: "justify-center col-span-5 vf-sort-button"
4773
4773
  }, [
4774
- Q(_(a(s)("Filepath")) + " ", 1),
4774
+ Q(_(r(s)("Filepath")) + " ", 1),
4775
4775
  ve(Y(Kt, {
4776
4776
  direction: l.order
4777
4777
  }, null, 8, ["direction"]), [
@@ -4783,25 +4783,25 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4783
4783
  Y(Q0, {
4784
4784
  ref_key: "dragImage",
4785
4785
  ref: n,
4786
- count: a(i).getCount()
4786
+ count: r(i).getCount()
4787
4787
  }, null, 8, ["count"])
4788
4788
  ]),
4789
4789
  o("div", {
4790
- ref: a(i).scrollBarContainer,
4791
- class: de(["vf-explorer-scrollbar-container", [{ "grid-view": a(e).view === "grid" }, { "search-active": c.value.length }]])
4790
+ ref: r(i).scrollBarContainer,
4791
+ class: de(["vf-explorer-scrollbar-container", [{ "grid-view": r(e).view === "grid" }, { "search-active": c.value.length }]])
4792
4792
  }, [
4793
4793
  o("div", {
4794
- ref: a(i).scrollBar,
4794
+ ref: r(i).scrollBar,
4795
4795
  class: "w-5 bg-transparent pointer-events-none"
4796
4796
  }, null, 512)
4797
4797
  ], 2),
4798
4798
  o("div", {
4799
- ref: a(i).area,
4799
+ ref: r(i).area,
4800
4800
  class: "h-full w-full text-xs p-1 vf-explorer-scrollbar vf-selector-area min-h-[150px] z-0 overflow-y-auto",
4801
- onContextmenu: v[4] || (v[4] = rt((p) => a(e).emitter.emit("vf-contextmenu-show", { event: p, items: a(i).getSelected() }), ["self", "prevent"]))
4801
+ onContextmenu: v[4] || (v[4] = rt((h) => r(e).emitter.emit("vf-contextmenu-show", { event: h, items: r(i).getSelected() }), ["self", "prevent"]))
4802
4802
  }, [
4803
- c.value.length ? (f(!0), g(he, { key: 0 }, $e(u(), (p, x) => (f(), W($s, {
4804
- item: p,
4803
+ c.value.length ? (f(!0), g(he, { key: 0 }, $e(u(), (h, x) => (f(), W($s, {
4804
+ item: h,
4805
4805
  index: x,
4806
4806
  dragImage: n.value,
4807
4807
  class: "vf-item vf-item-list"
@@ -4810,41 +4810,41 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4810
4810
  o("div", Ym, [
4811
4811
  o("div", Xm, [
4812
4812
  Y(ks, {
4813
- type: p.type,
4814
- small: a(e).compactListView
4813
+ type: h.type,
4814
+ small: r(e).compactListView
4815
4815
  }, null, 8, ["type", "small"]),
4816
- o("span", Jm, _(p.basename), 1)
4816
+ o("span", Jm, _(h.basename), 1)
4817
4817
  ]),
4818
- o("div", Qm, _(p.path), 1)
4818
+ o("div", Qm, _(h.path), 1)
4819
4819
  ])
4820
4820
  ]),
4821
4821
  _: 2
4822
4822
  }, 1032, ["item", "index", "dragImage"]))), 256)) : j("", !0),
4823
- a(e).view === "list" && !c.value.length ? (f(!0), g(he, { key: 1 }, $e(u(), (p, x) => (f(), W($s, {
4824
- item: p,
4823
+ r(e).view === "list" && !c.value.length ? (f(!0), g(he, { key: 1 }, $e(u(), (h, x) => (f(), W($s, {
4824
+ item: h,
4825
4825
  index: x,
4826
4826
  dragImage: n.value,
4827
4827
  class: "vf-item vf-item-list",
4828
4828
  draggable: "true",
4829
- key: p.path
4829
+ key: h.path
4830
4830
  }, {
4831
4831
  default: se(() => [
4832
4832
  o("div", Zm, [
4833
4833
  o("div", e1, [
4834
4834
  Y(ks, {
4835
- type: p.type,
4836
- small: a(e).compactListView
4835
+ type: h.type,
4836
+ small: r(e).compactListView
4837
4837
  }, null, 8, ["type", "small"]),
4838
- o("span", t1, _(p.basename), 1)
4838
+ o("span", t1, _(h.basename), 1)
4839
4839
  ]),
4840
- o("div", s1, _(p.file_size ? a(e).filesize(p.file_size) : ""), 1),
4841
- o("div", n1, _(a(Oo)(p.last_modified)), 1)
4840
+ o("div", s1, _(h.file_size ? r(e).filesize(h.file_size) : ""), 1),
4841
+ o("div", n1, _(r(Oo)(h.last_modified)), 1)
4842
4842
  ])
4843
4843
  ]),
4844
4844
  _: 2
4845
4845
  }, 1032, ["item", "index", "dragImage"]))), 128)) : j("", !0),
4846
- a(e).view === "grid" && !c.value.length ? (f(!0), g(he, { key: 2 }, $e(u(!1), (p, x) => (f(), W($s, {
4847
- item: p,
4846
+ r(e).view === "grid" && !c.value.length ? (f(!0), g(he, { key: 2 }, $e(u(!1), (h, x) => (f(), W($s, {
4847
+ item: h,
4848
4848
  index: x,
4849
4849
  dragImage: n.value,
4850
4850
  class: "vf-item vf-item-grid",
@@ -4853,19 +4853,19 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4853
4853
  default: se(() => [
4854
4854
  o("div", null, [
4855
4855
  o("div", o1, [
4856
- (p.mime_type ?? "").startsWith("image") && a(e).showThumbnails ? (f(), g("img", {
4856
+ (h.mime_type ?? "").startsWith("image") && r(e).showThumbnails ? (f(), g("img", {
4857
4857
  src: "data:image/png;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
4858
4858
  class: "lazy h-10 md:h-12 m-auto",
4859
- "data-src": a(e).requester.getPreviewUrl(a(e).fs.adapter, p),
4860
- alt: p.basename,
4861
- key: p.path
4859
+ "data-src": r(e).requester.getPreviewUrl(r(e).fs.adapter, h),
4860
+ alt: h.basename,
4861
+ key: h.path
4862
4862
  }, null, 8, r1)) : (f(), W(ks, {
4863
4863
  key: 1,
4864
- type: p.type
4864
+ type: h.type
4865
4865
  }, null, 8, ["type"])),
4866
- !((p.mime_type ?? "").startsWith("image") && a(e).showThumbnails) && p.type !== "dir" ? (f(), g("div", a1, _(r(p.extension)), 1)) : j("", !0)
4866
+ !((h.mime_type ?? "").startsWith("image") && r(e).showThumbnails) && h.type !== "dir" ? (f(), g("div", a1, _(a(h.extension)), 1)) : j("", !0)
4867
4867
  ]),
4868
- o("span", l1, _(a(js)(p.basename)), 1)
4868
+ o("span", l1, _(r(js)(h.basename)), 1)
4869
4869
  ])
4870
4870
  ]),
4871
4871
  _: 2
@@ -4877,7 +4877,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4877
4877
  }, c1 = ["href", "download"], d1 = ["onClick"], u1 = {
4878
4878
  __name: "ContextMenu",
4879
4879
  setup(t) {
4880
- const e = ae("ServiceContainer"), { t: s } = e.i18n, r = E(null), n = E([]), c = E(""), i = Ot({
4880
+ const e = ae("ServiceContainer"), { t: s } = e.i18n, a = E(null), n = E([]), c = E(""), i = Ot({
4881
4881
  active: !1,
4882
4882
  items: [],
4883
4883
  positions: {
@@ -4979,23 +4979,23 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4979
4979
  };
4980
4980
  e.emitter.on("vf-search-query", ({ newQuery: m }) => {
4981
4981
  c.value = m;
4982
- }), e.emitter.on("vf-contextmenu-show", ({ event: m, items: v, target: p = null }) => {
4982
+ }), e.emitter.on("vf-contextmenu-show", ({ event: m, items: v, target: h = null }) => {
4983
4983
  if (i.items = [], c.value)
4984
- if (p)
4985
- i.items.push(l.openDir), e.emitter.emit("vf-context-selected", [p]);
4984
+ if (h)
4985
+ i.items.push(l.openDir), e.emitter.emit("vf-context-selected", [h]);
4986
4986
  else
4987
4987
  return;
4988
- else !p && !c.value ? (i.items.push(l.refresh), i.items.push(l.selectAll), i.items.push(l.newfolder), e.emitter.emit("vf-context-selected", [])) : v.length > 1 && v.some((x) => x.path === p.path) ? (i.items.push(l.refresh), i.items.push(l.archive), i.items.push(l.delete), e.emitter.emit("vf-context-selected", v)) : (p.type === "dir" ? (i.items.push(l.open), e.pinnedFolders.findIndex((x) => x.path === p.path) !== -1 ? i.items.push(l.unpinFolder) : i.items.push(l.pinFolder)) : (i.items.push(l.preview), i.items.push(l.download)), i.items.push(l.rename), p.mime_type === "application/zip" ? i.items.push(l.unarchive) : i.items.push(l.archive), i.items.push(l.delete), e.emitter.emit("vf-context-selected", [p]));
4989
- h(m);
4988
+ else !h && !c.value ? (i.items.push(l.refresh), i.items.push(l.selectAll), i.items.push(l.newfolder), e.emitter.emit("vf-context-selected", [])) : v.length > 1 && v.some((x) => x.path === h.path) ? (i.items.push(l.refresh), i.items.push(l.archive), i.items.push(l.delete), e.emitter.emit("vf-context-selected", v)) : (h.type === "dir" ? (i.items.push(l.open), e.pinnedFolders.findIndex((x) => x.path === h.path) !== -1 ? i.items.push(l.unpinFolder) : i.items.push(l.pinFolder)) : (i.items.push(l.preview), i.items.push(l.download)), i.items.push(l.rename), h.mime_type === "application/zip" ? i.items.push(l.unarchive) : i.items.push(l.archive), i.items.push(l.delete), e.emitter.emit("vf-context-selected", [h]));
4989
+ p(m);
4990
4990
  }), e.emitter.on("vf-contextmenu-hide", () => {
4991
4991
  i.active = !1;
4992
4992
  });
4993
- const h = (m) => {
4994
- const v = e.dragSelect.area.value, p = e.root.getBoundingClientRect(), x = v.getBoundingClientRect();
4995
- let y = m.clientX - p.left, b = m.clientY - p.top;
4993
+ const p = (m) => {
4994
+ const v = e.dragSelect.area.value, h = e.root.getBoundingClientRect(), x = v.getBoundingClientRect();
4995
+ let y = m.clientX - h.left, b = m.clientY - h.top;
4996
4996
  i.active = !0, ft(() => {
4997
4997
  var B;
4998
- const A = (B = r.value) == null ? void 0 : B.getBoundingClientRect();
4998
+ const A = (B = a.value) == null ? void 0 : B.getBoundingClientRect();
4999
4999
  let k = (A == null ? void 0 : A.height) ?? 0, U = (A == null ? void 0 : A.width) ?? 0;
5000
5000
  y = x.right - m.pageX + window.scrollX < U ? y - U : y, b = x.bottom - m.pageY + window.scrollY < k ? b - k : b, i.positions = {
5001
5001
  left: y + "px",
@@ -5005,29 +5005,29 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
5005
5005
  };
5006
5006
  return (m, v) => ve((f(), g("ul", {
5007
5007
  ref_key: "contextmenu",
5008
- ref: r,
5008
+ ref: a,
5009
5009
  style: os(i.positions),
5010
5010
  class: "z-30 absolute text-xs bg-neutral-50 dark:bg-gray-800 text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600 shadow rounded-sm select-none"
5011
5011
  }, [
5012
- (f(!0), g(he, null, $e(d.value, (p) => (f(), g("li", {
5012
+ (f(!0), g(he, null, $e(d.value, (h) => (f(), g("li", {
5013
5013
  class: "cursor-pointer hover:bg-neutral-200 dark:hover:bg-gray-700",
5014
- key: p.title
5014
+ key: h.title
5015
5015
  }, [
5016
- p.link ? (f(), g("a", {
5016
+ h.link ? (f(), g("a", {
5017
5017
  key: 0,
5018
5018
  class: "block pl-2 pr-3 py-2",
5019
5019
  target: "_blank",
5020
- href: p.link,
5021
- download: p.link,
5022
- onClick: v[0] || (v[0] = (x) => a(e).emitter.emit("vf-contextmenu-hide"))
5020
+ href: h.link,
5021
+ download: h.link,
5022
+ onClick: v[0] || (v[0] = (x) => r(e).emitter.emit("vf-contextmenu-hide"))
5023
5023
  }, [
5024
- o("span", null, _(p.title()), 1)
5024
+ o("span", null, _(h.title()), 1)
5025
5025
  ], 8, c1)) : (f(), g("div", {
5026
5026
  key: 1,
5027
5027
  class: "pl-2 pr-3 py-1.5",
5028
- onClick: (x) => u(p)
5028
+ onClick: (x) => u(h)
5029
5029
  }, [
5030
- o("span", null, _(p.title()), 1)
5030
+ o("span", null, _(h.title()), 1)
5031
5031
  ], 8, d1))
5032
5032
  ]))), 128))
5033
5033
  ], 4)), [
@@ -5070,8 +5070,8 @@ function x1(t, e) {
5070
5070
  const b1 = { render: x1 }, y1 = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none grow-0" }, w1 = { class: "flex leading-5 items-center" }, k1 = ["title"], $1 = { class: "z-[1] pointer-events-none" }, S1 = ["value"], C1 = { class: "ml-3" }, E1 = { key: 0 }, T1 = { class: "ml-1" }, M1 = { class: "flex leading-5 items-center justify-end" }, A1 = ["disabled"], D1 = ["title"], L1 = {
5071
5071
  __name: "Statusbar",
5072
5072
  setup(t) {
5073
- const e = ae("ServiceContainer"), { t: s } = e.i18n, { setStore: r } = e.storage, n = e.dragSelect, c = () => {
5074
- e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter } }), r("adapter", e.fs.adapter);
5073
+ const e = ae("ServiceContainer"), { t: s } = e.i18n, { setStore: a } = e.storage, n = e.dragSelect, c = () => {
5074
+ e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter } }), a("adapter", e.fs.adapter);
5075
5075
  }, i = E("");
5076
5076
  e.emitter.on("vf-search-query", ({ newQuery: l }) => {
5077
5077
  i.value = l;
@@ -5084,40 +5084,40 @@ const b1 = { render: x1 }, y1 = { class: "p-1 text-xs border-t border-neutral-30
5084
5084
  o("div", w1, [
5085
5085
  o("div", {
5086
5086
  class: "flex leading-5 items-center rounded border dark:bg-gray-700 dark:border-gray-600",
5087
- title: a(s)("Storage")
5087
+ title: r(s)("Storage")
5088
5088
  }, [
5089
5089
  o("div", $1, [
5090
- Y(a(Ro))
5090
+ Y(r(Ro))
5091
5091
  ]),
5092
5092
  ve(o("select", {
5093
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(e).fs.adapter = h),
5093
+ "onUpdate:modelValue": u[0] || (u[0] = (p) => r(e).fs.adapter = p),
5094
5094
  onChange: c,
5095
5095
  class: "border-0 py-0.5 text-xs text-slate-500 bg-white dark:text-neutral-50 dark:bg-gray-700 rounded uppercase focus:outline-0 cursor-pointer",
5096
5096
  tabindex: "-1"
5097
5097
  }, [
5098
- (f(!0), g(he, null, $e(a(e).fs.data.storages, (h) => (f(), g("option", { value: h }, _(h), 9, S1))), 256))
5098
+ (f(!0), g(he, null, $e(r(e).fs.data.storages, (p) => (f(), g("option", { value: p }, _(p), 9, S1))), 256))
5099
5099
  ], 544), [
5100
- [Ss, a(e).fs.adapter]
5100
+ [Ss, r(e).fs.adapter]
5101
5101
  ])
5102
5102
  ], 8, k1),
5103
5103
  o("div", C1, [
5104
- i.value.length ? (f(), g("span", E1, _(a(e).fs.data.files.length) + " items found. ", 1)) : j("", !0),
5105
- o("span", T1, _(a(e).dragSelect.getCount() > 0 ? a(s)("%s item(s) selected.", a(e).dragSelect.getCount()) : ""), 1)
5104
+ i.value.length ? (f(), g("span", E1, _(r(e).fs.data.files.length) + " items found. ", 1)) : j("", !0),
5105
+ o("span", T1, _(r(e).dragSelect.getCount() > 0 ? r(s)("%s item(s) selected.", r(e).dragSelect.getCount()) : ""), 1)
5106
5106
  ])
5107
5107
  ]),
5108
5108
  o("div", M1, [
5109
- a(e).selectButton.active ? (f(), g("button", {
5109
+ r(e).selectButton.active ? (f(), g("button", {
5110
5110
  key: 0,
5111
5111
  class: de(["vf-btn py-0 vf-btn-primary", { disabled: !d.value }]),
5112
5112
  disabled: !d.value,
5113
- onClick: u[1] || (u[1] = (h) => a(e).selectButton.click(a(n).getSelected(), h))
5114
- }, _(a(s)("Select")), 11, A1)) : j("", !0),
5113
+ onClick: u[1] || (u[1] = (p) => r(e).selectButton.click(r(n).getSelected(), p))
5114
+ }, _(r(s)("Select")), 11, A1)) : j("", !0),
5115
5115
  o("span", {
5116
5116
  class: "mr-1",
5117
- title: a(s)("About"),
5118
- onClick: u[2] || (u[2] = (h) => a(e).modal.open(Ao))
5117
+ title: r(s)("About"),
5118
+ onClick: u[2] || (u[2] = (p) => r(e).modal.open(Ao))
5119
5119
  }, [
5120
- Y(a(b1))
5120
+ Y(r(b1))
5121
5121
  ], 8, D1)
5122
5122
  ])
5123
5123
  ]));
@@ -5192,10 +5192,10 @@ function Q1(t, e) {
5192
5192
  }
5193
5193
  const No = { render: Q1 };
5194
5194
  function Uo(t, e) {
5195
- const s = t.findIndex((r) => r.path === e.path);
5195
+ const s = t.findIndex((a) => a.path === e.path);
5196
5196
  s > -1 ? t[s] = e : t.push(e);
5197
5197
  }
5198
- const Z1 = {
5198
+ const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
5199
5199
  key: 1,
5200
5200
  class: "cursor-pointer"
5201
5201
  }, zo = {
@@ -5217,14 +5217,18 @@ const Z1 = {
5217
5217
  setup(t) {
5218
5218
  const e = t, s = ae("ServiceContainer");
5219
5219
  s.i18n;
5220
- const r = Nn(t, "modelValue"), n = E(!1);
5220
+ const a = Nn(t, "modelValue"), n = E(!1);
5221
+ Ne(
5222
+ () => a.value,
5223
+ () => {
5224
+ var d;
5225
+ return ((d = c()) == null ? void 0 : d.folders.length) || i();
5226
+ }
5227
+ );
5221
5228
  function c() {
5222
- return r.value = !r.value;
5229
+ return s.treeViewData.find((d) => d.path === e.path);
5223
5230
  }
5224
- function i() {
5225
- return s.treeViewData.find((l) => l.path === e.path);
5226
- }
5227
- const d = () => {
5231
+ const i = () => {
5228
5232
  n.value = !0, s.requester.send({
5229
5233
  url: "",
5230
5234
  method: "get",
@@ -5233,31 +5237,25 @@ const Z1 = {
5233
5237
  adapter: e.adapter,
5234
5238
  path: e.path
5235
5239
  }
5236
- }).then((l) => {
5237
- Uo(s.treeViewData, { path: e.path, ...l });
5238
- }).catch((l) => {
5240
+ }).then((d) => {
5241
+ Uo(s.treeViewData, { path: e.path, ...d });
5242
+ }).catch((d) => {
5239
5243
  }).finally(() => {
5240
5244
  n.value = !1;
5241
5245
  });
5242
5246
  };
5243
- return (l, u) => {
5244
- var h;
5245
- return f(), g("div", {
5246
- class: "h-5 w-5 shrink-0",
5247
- onClick: u[0] || (u[0] = (m) => {
5248
- var v;
5249
- return (!r.value || ((v = i()) == null ? void 0 : v.folders.length)) && c() && (i() || d());
5250
- })
5251
- }, [
5252
- n.value ? (f(), W(a(ln), {
5247
+ return (d, l) => {
5248
+ var u;
5249
+ return f(), g("div", Z1, [
5250
+ n.value ? (f(), W(r(ln), {
5253
5251
  key: 0,
5254
5252
  class: "p-1"
5255
- })) : (f(), g("div", Z1, [
5256
- r.value && ((h = i()) != null && h.folders.length) ? (f(), W(a(No), {
5253
+ })) : (f(), g("div", ef, [
5254
+ a.value && ((u = c()) != null && u.folders.length) ? (f(), W(r(No), {
5257
5255
  key: 0,
5258
5256
  class: "text-gray-600"
5259
5257
  })) : j("", !0),
5260
- r.value ? j("", !0) : (f(), W(a(Io), {
5258
+ a.value ? j("", !0) : (f(), W(r(Io), {
5261
5259
  key: 1,
5262
5260
  class: "text-gray-400"
5263
5261
  }))
@@ -5265,7 +5263,7 @@ const Z1 = {
5265
5263
  ]);
5266
5264
  };
5267
5265
  }
5268
- }, ef = { class: "block" }, tf = { class: "flex hover:text-sky-700 dark:hover:text-sky-200/50 rounded" }, sf = { class: "h-5 w-5 shrink-0" }, nf = ["onClick"], of = { class: "h-5 w-5 shrink-0" }, rf = { class: "pl-4" }, af = {
5266
+ }, tf = { class: "block" }, sf = { class: "flex hover:text-sky-700 dark:hover:text-sky-200/50 rounded" }, nf = ["onClick"], of = ["onClick"], rf = { class: "h-5 w-5 shrink-0" }, af = { class: "pl-4" }, lf = {
5269
5267
  __name: "TreeSubfolderList",
5270
5268
  props: {
5271
5269
  adapter: {
@@ -5278,41 +5276,44 @@ const Z1 = {
5278
5276
  }
5279
5277
  },
5280
5278
  setup(t) {
5281
- const e = ae("ServiceContainer"), s = E([]), r = t, n = Ze(() => {
5279
+ const e = ae("ServiceContainer"), s = E([]), a = t, n = Ze(() => {
5282
5280
  var c;
5283
- return ((c = e.treeViewData.find((i) => i.path === r.path)) == null ? void 0 : c.folders) || [];
5281
+ return ((c = e.treeViewData.find((i) => i.path === a.path)) == null ? void 0 : c.folders) || [];
5284
5282
  });
5285
5283
  return (c, i) => {
5286
5284
  const d = Qo("TreeSubfolderList", !0);
5287
- return f(), g("ul", ef, [
5285
+ return f(), g("ul", tf, [
5288
5286
  (f(!0), g(he, null, $e(n.value, (l, u) => (f(), g("li", {
5289
5287
  class: "flex flex-col space-x-0.5 py-0.5 text-sm",
5290
5288
  key: l.path
5291
5289
  }, [
5292
- o("div", tf, [
5293
- o("div", sf, [
5290
+ o("div", sf, [
5291
+ o("div", {
5292
+ class: "h-5 w-5 shrink-0",
5293
+ onClick: (p) => s.value[l.path] = !s.value[l.path]
5294
+ }, [
5294
5295
  Y(zo, {
5295
5296
  adapter: t.adapter,
5296
5297
  path: l.path,
5297
5298
  modelValue: s.value[l.path],
5298
- "onUpdate:modelValue": (h) => s.value[l.path] = h
5299
+ "onUpdate:modelValue": (p) => s.value[l.path] = p
5299
5300
  }, null, 8, ["adapter", "path", "modelValue", "onUpdate:modelValue"])
5300
- ]),
5301
+ ], 8, nf),
5301
5302
  o("div", {
5302
5303
  class: "flex cursor-pointer",
5303
- onClick: (h) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: r.adapter, path: l.path } })
5304
+ onClick: (p) => r(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: a.adapter, path: l.path } })
5304
5305
  }, [
5305
- o("div", of, [
5306
- a(e).fs.path === l.path ? (f(), W(a(Fo), { key: 0 })) : (f(), W(a(fs), { key: 1 }))
5306
+ o("div", rf, [
5307
+ r(e).fs.path === l.path ? (f(), W(r(Fo), { key: 0 })) : (f(), W(r(fs), { key: 1 }))
5307
5308
  ]),
5308
5309
  o("div", {
5309
- class: de(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400": a(e).fs.path === l.path }])
5310
+ class: de(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400": r(e).fs.path === l.path }])
5310
5311
  }, _(l.basename), 3)
5311
- ], 8, nf)
5312
+ ], 8, of)
5312
5313
  ]),
5313
- o("div", rf, [
5314
+ o("div", af, [
5314
5315
  ve(Y(d, {
5315
- adapter: r.adapter,
5316
+ adapter: a.adapter,
5316
5317
  path: l.path
5317
5318
  }, null, 8, ["adapter", "path"]), [
5318
5319
  [je, s.value[l.path]]
@@ -5322,7 +5323,7 @@ const Z1 = {
5322
5323
  ]);
5323
5324
  };
5324
5325
  }
5325
- }, lf = { class: "pt-1 px-1 uppercase font-bold text-gray-400 dark:text-gray-500 text-xs flex justify-between bg-gray-100 dark:bg-[#2e3c51] border-b dark:border-gray-600" }, cf = {
5326
+ }, cf = { class: "pointer-events-none" }, df = {
5326
5327
  __name: "TreeStorageItem",
5327
5328
  props: {
5328
5329
  storage: {
@@ -5331,32 +5332,32 @@ const Z1 = {
5331
5332
  }
5332
5333
  },
5333
5334
  setup(t) {
5334
- const e = ae("ServiceContainer"), s = E(!1), r = (n) => {
5335
- e.fs.adapter = n, s.value = !s.value, e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: n } }), e.storage.setStore("adapter", n);
5336
- };
5337
- return (n, c) => (f(), g(he, null, [
5338
- o("div", lf, [
5335
+ const e = ae("ServiceContainer"), s = E(!1);
5336
+ return (a, n) => (f(), g(he, null, [
5337
+ o("div", {
5338
+ onClick: n[1] || (n[1] = (c) => s.value = !s.value),
5339
+ class: "pt-1 px-1 uppercase font-bold text-gray-400 dark:text-gray-500 text-xs flex justify-between bg-gray-100 dark:bg-[#2e3c51] border-b dark:border-gray-600 cursor-pointer"
5340
+ }, [
5339
5341
  o("div", {
5340
- class: de(["flex flex-1 space-x-1 items-center cursor-pointer", t.storage === a(e).fs.adapter ? "text-gray-700/80 dark:text-gray-300/80 text-bold" : ""]),
5341
- onClick: c[0] || (c[0] = (i) => r(t.storage))
5342
+ class: de(["flex flex-1 space-x-1 items-center", t.storage === r(e).fs.adapter ? "text-gray-700/80 dark:text-gray-300/80 text-bold" : ""])
5342
5343
  }, [
5343
5344
  o("div", {
5344
- class: de(["h-5 w-5 shrink-0", t.storage === a(e).fs.adapter ? "text-sky-500 dark:text-slate-300" : ""])
5345
+ class: de(["h-5 w-5 shrink-0", t.storage === r(e).fs.adapter ? "text-sky-500 dark:text-slate-300" : ""])
5345
5346
  }, [
5346
- Y(a(Ro))
5347
+ Y(r(Ro))
5347
5348
  ], 2),
5348
5349
  o("div", null, _(t.storage), 1)
5349
5350
  ], 2),
5350
- o("div", null, [
5351
+ o("div", cf, [
5351
5352
  Y(zo, {
5352
5353
  adapter: t.storage,
5353
5354
  path: t.storage + "://",
5354
5355
  modelValue: s.value,
5355
- "onUpdate:modelValue": c[1] || (c[1] = (i) => s.value = i)
5356
+ "onUpdate:modelValue": n[0] || (n[0] = (c) => s.value = c)
5356
5357
  }, null, 8, ["adapter", "path", "modelValue"])
5357
5358
  ])
5358
5359
  ]),
5359
- ve(Y(af, {
5360
+ ve(Y(lf, {
5360
5361
  adapter: t.storage,
5361
5362
  path: t.storage + "://",
5362
5363
  class: "overflow-x-auto"
@@ -5365,7 +5366,7 @@ const Z1 = {
5365
5366
  ])
5366
5367
  ], 64));
5367
5368
  }
5368
- }, df = { class: "h-5 w-5 shrink-0" }, uf = { class: "cursor-pointer" }, mf = {
5369
+ }, uf = { class: "h-5 w-5 shrink-0" }, mf = { class: "cursor-pointer" }, ff = {
5369
5370
  __name: "FolderIndicator",
5370
5371
  props: {
5371
5372
  modelValue: {},
@@ -5374,34 +5375,34 @@ const Z1 = {
5374
5375
  emits: ["update:modelValue"],
5375
5376
  setup(t) {
5376
5377
  const e = Nn(t, "modelValue");
5377
- return (s, r) => (f(), g("div", df, [
5378
- o("div", uf, [
5379
- e.value ? (f(), W(a(No), {
5378
+ return (s, a) => (f(), g("div", uf, [
5379
+ o("div", mf, [
5380
+ e.value ? (f(), W(r(No), {
5380
5381
  key: 0,
5381
5382
  class: "text-gray-600"
5382
5383
  })) : j("", !0),
5383
- e.value ? j("", !0) : (f(), W(a(Io), {
5384
+ e.value ? j("", !0) : (f(), W(r(Io), {
5384
5385
  key: 1,
5385
5386
  class: "text-gray-400"
5386
5387
  }))
5387
5388
  ])
5388
5389
  ]));
5389
5390
  }
5390
- }, ff = { class: "sticky left-0 dark:border-gray-600" }, hf = { class: "flex items-center space-x-1" }, pf = { class: "text-nowrap" }, vf = {
5391
+ }, hf = { class: "sticky left-0 dark:border-gray-600" }, pf = { class: "flex items-center space-x-1" }, vf = { class: "text-nowrap" }, gf = {
5391
5392
  key: 0,
5392
5393
  class: "block"
5393
- }, gf = { class: "flex pl-2 py-0.5 text-sm justify-between pr-1" }, _f = ["onClick"], xf = ["title"], bf = ["onClick"], yf = { key: 0 }, wf = { class: "p-1 text-xs text-center" }, kf = {
5394
+ }, _f = { class: "flex pl-2 py-0.5 text-sm justify-between pr-1" }, xf = ["onClick"], bf = ["title"], yf = ["onClick"], wf = { key: 0 }, kf = { class: "p-1 text-xs text-center" }, $f = {
5394
5395
  __name: "TreeView",
5395
5396
  setup(t) {
5396
- const e = ae("ServiceContainer"), { t: s } = e.i18n, { getStore: r, setStore: n } = e.storage, c = E(190), i = E(r("pinned-folders-opened", !0));
5397
- ze(i, (h) => n("pinned-folders-opened", h));
5398
- const d = (h) => {
5399
- e.pinnedFolders = e.pinnedFolders.filter((m) => m.path !== h.path), e.storage.setStore("pinned-folders", e.pinnedFolders);
5400
- }, l = (h) => {
5401
- const m = h.clientX, v = h.target.parentElement, p = v.getBoundingClientRect().width;
5397
+ const e = ae("ServiceContainer"), { t: s } = e.i18n, { getStore: a, setStore: n } = e.storage, c = E(190), i = E(a("pinned-folders-opened", !0));
5398
+ Ne(i, (p) => n("pinned-folders-opened", p));
5399
+ const d = (p) => {
5400
+ e.pinnedFolders = e.pinnedFolders.filter((m) => m.path !== p.path), e.storage.setStore("pinned-folders", e.pinnedFolders);
5401
+ }, l = (p) => {
5402
+ const m = p.clientX, v = p.target.parentElement, h = v.getBoundingClientRect().width;
5402
5403
  v.classList.remove("transition-[width]"), v.classList.add("transition-none");
5403
5404
  const x = (b) => {
5404
- c.value = p + b.clientX - m, c.value < 50 && (c.value = 0, e.showTreeView = !1), c.value > 50 && (e.showTreeView = !0);
5405
+ c.value = h + b.clientX - m, c.value < 50 && (c.value = 0, e.showTreeView = !1), c.value > 50 && (e.showTreeView = !0);
5405
5406
  }, y = () => {
5406
5407
  const b = v.getBoundingClientRect();
5407
5408
  c.value = b.width, v.classList.add("transition-[width]"), v.classList.remove("transition-none"), window.removeEventListener("mousemove", x), window.removeEventListener("mouseup", y);
@@ -5410,20 +5411,20 @@ const Z1 = {
5410
5411
  }, u = E(null);
5411
5412
  return Ce(() => {
5412
5413
  ct(u.value, {});
5413
- }), ze(e.fs.data, (h, m) => {
5414
- const v = h.files.filter((p) => p.type === "dir");
5415
- Uo(e.treeViewData, { path: e.fs.path, folders: v.map((p) => ({
5416
- adapter: p.storage,
5417
- path: p.path,
5418
- basename: p.basename
5414
+ }), Ne(e.fs.data, (p, m) => {
5415
+ const v = p.files.filter((h) => h.type === "dir");
5416
+ Uo(e.treeViewData, { path: e.fs.path, folders: v.map((h) => ({
5417
+ adapter: h.storage,
5418
+ path: h.path,
5419
+ basename: h.basename
5419
5420
  })) });
5420
- }), (h, m) => (f(), g(he, null, [
5421
+ }), (p, m) => (f(), g(he, null, [
5421
5422
  o("div", {
5422
- onClick: m[0] || (m[0] = (v) => a(e).showTreeView = !a(e).showTreeView),
5423
- class: de(["w-full h-full bg-gray-300/10 dark:bg-gray-700/10 z-[1]", a(e).showTreeView ? "backdrop-blur-sm absolute md:hidden" : "hidden"])
5423
+ onClick: m[0] || (m[0] = (v) => r(e).showTreeView = !r(e).showTreeView),
5424
+ class: de(["w-full h-full bg-gray-300/10 dark:bg-gray-700/10 z-[1]", r(e).showTreeView ? "backdrop-blur-sm absolute md:hidden" : "hidden"])
5424
5425
  }, null, 2),
5425
5426
  o("div", {
5426
- style: os(a(e).showTreeView ? "min-width:100px;max-width:75%; width: " + c.value + "px" : "width: 0"),
5427
+ style: os(r(e).showTreeView ? "min-width:100px;max-width:75%; width: " + c.value + "px" : "width: 0"),
5427
5428
  class: "absolute h-full md:h-auto md:relative shadow-lg shrink-0 transition-[width] ease-in-out duration-200 z-[1] bg-gray-50 dark:bg-[#242f41]"
5428
5429
  }, [
5429
5430
  o("div", {
@@ -5431,63 +5432,63 @@ const Z1 = {
5431
5432
  ref: u,
5432
5433
  class: "h-full border-r dark:border-gray-600/50 pb-4"
5433
5434
  }, [
5434
- o("div", ff, [
5435
+ o("div", hf, [
5435
5436
  o("div", {
5436
5437
  onClick: m[2] || (m[2] = (v) => i.value = !i.value),
5437
5438
  class: "bg-gray-100 dark:bg-[#2e3c51] dark:border-gray-600 border-b p-1 uppercase font-bold text-gray-400 dark:text-gray-400 text-xs flex items-center justify-between cursor-pointer"
5438
5439
  }, [
5439
- o("div", hf, [
5440
- Y(a(Bo), { class: "text-amber-600" }),
5441
- o("div", pf, _(a(s)("Pinned Folders")), 1)
5440
+ o("div", pf, [
5441
+ Y(r(Bo), { class: "text-amber-600" }),
5442
+ o("div", vf, _(r(s)("Pinned Folders")), 1)
5442
5443
  ]),
5443
- Y(mf, {
5444
+ Y(ff, {
5444
5445
  modelValue: i.value,
5445
5446
  "onUpdate:modelValue": m[1] || (m[1] = (v) => i.value = v)
5446
5447
  }, null, 8, ["modelValue"])
5447
5448
  ]),
5448
- i.value ? (f(), g("ul", vf, [
5449
- (f(!0), g(he, null, $e(a(e).pinnedFolders, (v) => (f(), g("li", gf, [
5449
+ i.value ? (f(), g("ul", gf, [
5450
+ (f(!0), g(he, null, $e(r(e).pinnedFolders, (v) => (f(), g("li", _f, [
5450
5451
  o("div", {
5451
5452
  class: "flex hover:text-sky-500 dark:hover:text-sky-200/50 rounded cursor-pointer",
5452
- onClick: (p) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: v.storage, path: v.path } })
5453
+ onClick: (h) => r(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: v.storage, path: v.path } })
5453
5454
  }, [
5454
- a(e).fs.path !== v.path ? (f(), W(a(fs), {
5455
+ r(e).fs.path !== v.path ? (f(), W(r(fs), {
5455
5456
  key: 0,
5456
5457
  class: "h-5 w-5"
5457
5458
  })) : j("", !0),
5458
- a(e).fs.path === v.path ? (f(), W(a(Fo), {
5459
+ r(e).fs.path === v.path ? (f(), W(r(Fo), {
5459
5460
  key: 1,
5460
5461
  class: "h-5 w-5"
5461
5462
  })) : j("", !0),
5462
5463
  o("div", {
5463
5464
  title: v.path,
5464
- class: de(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400": a(e).fs.path === v.path }])
5465
- }, _(v.basename), 11, xf)
5466
- ], 8, _f),
5465
+ class: de(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400": r(e).fs.path === v.path }])
5466
+ }, _(v.basename), 11, bf)
5467
+ ], 8, xf),
5467
5468
  o("div", {
5468
5469
  class: "cursor-pointer",
5469
- onClick: (p) => d(v)
5470
+ onClick: (h) => d(v)
5470
5471
  }, [
5471
- Y(a(z1), { class: "p-0.5 text-gray-300 hover:text-gray-400 dark:text-gray-600 hover:dark:text-gray-400" })
5472
- ], 8, bf)
5472
+ Y(r(z1), { class: "p-0.5 text-gray-300 hover:text-gray-400 dark:text-gray-600 hover:dark:text-gray-400" })
5473
+ ], 8, yf)
5473
5474
  ]))), 256)),
5474
- a(e).pinnedFolders.length ? j("", !0) : (f(), g("li", yf, [
5475
- o("div", wf, _(a(s)("No folders pinned")), 1)
5475
+ r(e).pinnedFolders.length ? j("", !0) : (f(), g("li", wf, [
5476
+ o("div", kf, _(r(s)("No folders pinned")), 1)
5476
5477
  ]))
5477
5478
  ])) : j("", !0)
5478
5479
  ]),
5479
- (f(!0), g(he, null, $e(a(e).fs.data.storages, (v) => (f(), g("div", null, [
5480
- Y(cf, { storage: v }, null, 8, ["storage"])
5480
+ (f(!0), g(he, null, $e(r(e).fs.data.storages, (v) => (f(), g("div", null, [
5481
+ Y(df, { storage: v }, null, 8, ["storage"])
5481
5482
  ]))), 256))
5482
5483
  ], 512),
5483
5484
  o("div", {
5484
5485
  onMousedown: l,
5485
- class: de([(a(e).showTreeView, ""), "transition-colors ease-in-out duration-200 top-0 hover:bg-slate-600/10 dark:hover:bg-slate-300/10 w-1 h-full absolute -right-0.5 cursor-ew-resize"])
5486
+ class: de([(r(e).showTreeView, ""), "transition-colors ease-in-out duration-200 top-0 hover:bg-slate-600/10 dark:hover:bg-slate-300/10 w-1 h-full absolute -right-0.5 cursor-ew-resize"])
5486
5487
  }, null, 34)
5487
5488
  ], 4)
5488
5489
  ], 64));
5489
5490
  }
5490
- }, $f = { class: "relative flex overflow-hidden h-full" }, Sf = {
5491
+ }, Sf = { class: "relative flex overflow-hidden h-full" }, Cf = {
5491
5492
  __name: "VueFinder",
5492
5493
  props: {
5493
5494
  id: {
@@ -5567,60 +5568,60 @@ const Z1 = {
5567
5568
  n.root = i;
5568
5569
  const d = n.dragSelect;
5569
5570
  _i(n);
5570
- const l = (h) => {
5571
- Object.assign(n.fs.data, h), d.clearSelection(), d.refreshSelection();
5571
+ const l = (p) => {
5572
+ Object.assign(n.fs.data, p), d.clearSelection(), d.refreshSelection();
5572
5573
  };
5573
5574
  let u;
5574
5575
  return n.emitter.on("vf-fetch-abort", () => {
5575
5576
  u.abort(), n.fs.loading = !1;
5576
- }), n.emitter.on("vf-fetch", ({ params: h, body: m = null, onSuccess: v = null, onError: p = null, noCloseModal: x = !1 }) => {
5577
- ["index", "search"].includes(h.q) && (u && u.abort(), n.fs.loading = !0), u = new AbortController();
5577
+ }), n.emitter.on("vf-fetch", ({ params: p, body: m = null, onSuccess: v = null, onError: h = null, noCloseModal: x = !1 }) => {
5578
+ ["index", "search"].includes(p.q) && (u && u.abort(), n.fs.loading = !0), u = new AbortController();
5578
5579
  const y = u.signal;
5579
5580
  n.requester.send({
5580
5581
  url: "",
5581
- method: h.m || "get",
5582
- params: h,
5582
+ method: p.m || "get",
5583
+ params: p,
5583
5584
  body: m,
5584
5585
  abortSignal: y
5585
5586
  }).then((b) => {
5586
- n.fs.adapter = b.adapter, n.persist && (n.fs.path = b.dirname, c("path", n.fs.path)), ["index", "search"].includes(h.q) && (n.fs.loading = !1), x || n.modal.close(), l(b), v && v(b);
5587
+ n.fs.adapter = b.adapter, n.persist && (n.fs.path = b.dirname, c("path", n.fs.path)), ["index", "search"].includes(p.q) && (n.fs.loading = !1), x || n.modal.close(), l(b), v && v(b);
5587
5588
  }).catch((b) => {
5588
- console.error(b), p && p(b);
5589
+ console.error(b), h && h(b);
5589
5590
  });
5590
5591
  }), Ce(() => {
5591
- let h = {};
5592
- n.fs.path.includes("://") && (h = {
5592
+ let p = {};
5593
+ n.fs.path.includes("://") && (p = {
5593
5594
  adapter: n.fs.path.split("://")[0],
5594
5595
  path: n.fs.path
5595
- }), n.emitter.emit("vf-fetch", { params: { q: "index", adapter: n.fs.adapter, ...h } }), d.onSelect((m) => {
5596
+ }), n.emitter.emit("vf-fetch", { params: { q: "index", adapter: n.fs.adapter, ...p } }), d.onSelect((m) => {
5596
5597
  s("select", m);
5597
5598
  });
5598
- }), (h, m) => (f(), g("div", {
5599
+ }), (p, m) => (f(), g("div", {
5599
5600
  class: "vuefinder",
5600
5601
  ref_key: "root",
5601
5602
  ref: i,
5602
5603
  tabindex: "0"
5603
5604
  }, [
5604
5605
  o("div", {
5605
- class: de(a(n).theme.actualValue)
5606
+ class: de(r(n).theme.actualValue)
5606
5607
  }, [
5607
5608
  o("div", {
5608
- class: de([a(n).fullScreen ? "fixed w-screen inset-0 z-20" : "relative rounded resize-y ", "overflow-hidden min-h-44 border flex flex-col bg-white dark:bg-gray-800 text-gray-700 dark:text-neutral-400 border-neutral-300 dark:border-gray-900 select-none"]),
5609
- style: os(a(n).fullScreen ? "" : "max-height: " + t.maxHeight),
5610
- onMousedown: m[0] || (m[0] = (v) => a(n).emitter.emit("vf-contextmenu-hide")),
5611
- onTouchstart: m[1] || (m[1] = (v) => a(n).emitter.emit("vf-contextmenu-hide"))
5609
+ class: de([r(n).fullScreen ? "fixed w-screen inset-0 z-20" : "relative rounded resize-y ", "overflow-hidden min-h-44 border flex flex-col bg-white dark:bg-gray-800 text-gray-700 dark:text-neutral-400 border-neutral-300 dark:border-gray-900 select-none"]),
5610
+ style: os(r(n).fullScreen ? "" : "max-height: " + t.maxHeight),
5611
+ onMousedown: m[0] || (m[0] = (v) => r(n).emitter.emit("vf-contextmenu-hide")),
5612
+ onTouchstart: m[1] || (m[1] = (v) => r(n).emitter.emit("vf-contextmenu-hide"))
5612
5613
  }, [
5613
5614
  Y(Qd),
5614
5615
  Y(E0),
5615
- o("div", $f, [
5616
- Y(kf),
5616
+ o("div", Sf, [
5617
+ Y($f),
5617
5618
  Y(i1)
5618
5619
  ]),
5619
5620
  Y(L1)
5620
5621
  ], 38),
5621
5622
  Y(er, { name: "fade" }, {
5622
5623
  default: se(() => [
5623
- a(n).modal.visible ? (f(), W(tr(a(n).modal.type), { key: 0 })) : j("", !0)
5624
+ r(n).modal.visible ? (f(), W(tr(r(n).modal.type), { key: 0 })) : j("", !0)
5624
5625
  ]),
5625
5626
  _: 1
5626
5627
  }),
@@ -5628,7 +5629,7 @@ const Z1 = {
5628
5629
  ], 2)
5629
5630
  ], 512));
5630
5631
  }
5631
- }, Bf = {
5632
+ }, Rf = {
5632
5633
  /**
5633
5634
  * @param {import('vue').App} app
5634
5635
  * @param options
@@ -5636,9 +5637,9 @@ const Z1 = {
5636
5637
  install(t, e = {}) {
5637
5638
  e.i18n = e.i18n ?? {};
5638
5639
  let [s] = Object.keys(e.i18n);
5639
- e.locale = e.locale ?? s ?? "en", t.provide("VueFinderOptions", e), t.component("VueFinder", Sf);
5640
+ e.locale = e.locale ?? s ?? "en", t.provide("VueFinderOptions", e), t.component("VueFinder", Cf);
5640
5641
  }
5641
5642
  };
5642
5643
  export {
5643
- Bf as default
5644
+ Rf as default
5644
5645
  };