dgz-ui-shared 1.0.21 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,67 +1,67 @@
1
- import { G as ze, l as ke, u as Xe, a as He, d as pe, f as Ft, c as Me, R as Qt, _ as Kt, k as Jt, t as en } from "../../MyInput-qse97Dxt.js";
2
- import { M as Lc, y as wc, K as Pc, b as Cc, I as bc, L as Nc, o as vc } from "../../MyInput-qse97Dxt.js";
3
- import { M as xc } from "../../MySelect-U6BUrvYu.js";
4
- import { j as P } from "../../jsx-runtime-C5mzlN2N.js";
5
- import { O as zs, _ as ks, u as Xs } from "../../popover-DDxpKohG-BbuLlzlz.js";
6
- import { u as js } from "../../check-DE-1lGDl-24KCJ29m.js";
7
- import { n as Zs, G as Qs, L as tn, Z as Ks } from "../../timepicker-C_vwQ2np-ymv75b1g.js";
8
- import { d as Js } from "../../dayjs.min-BklwNjWg.js";
9
- import { m as qe } from "../../utils-D0f6bOsw-HrLsble-.js";
10
- import { c as er } from "../../createLucideIcon-B950nf2d.js";
11
- import tr, { createElement as nn } from "react";
12
- import { I as Bc, A as Uc, j as Vc, x as Hc, $ as Yc, Q as Wc, E as qc, S as $c, K as zc, U as kc, y as Xc } from "../../select-BehdTDP2-BxIxRb2_.js";
1
+ import { G as Be, l as Ue, u as Ve, a as Ce, d as ue, f as ft, c as ge, R as Kt, _ as Jt, k as en, t as ot, I as tn } from "../../MyInput-qse97Dxt.js";
2
+ import { M as Pc, y as Cc, K as bc, b as Nc, L as vc, o as Gc } from "../../MyInput-qse97Dxt.js";
3
+ import { M as Fc } from "../../MySelect-U6BUrvYu.js";
4
+ import { j as L } from "../../jsx-runtime-C5mzlN2N.js";
5
+ import { O as ks, _ as js, u as Xs } from "../../popover-DDxpKohG-BbuLlzlz.js";
6
+ import { u as Zs } from "../../check-DE-1lGDl-24KCJ29m.js";
7
+ import { n as Qs, G as Ks, L as nn, Z as Js } from "../../timepicker-C_vwQ2np-ymv75b1g.js";
8
+ import { d as er } from "../../dayjs.min-BklwNjWg.js";
9
+ import { m as xe } from "../../utils-D0f6bOsw-HrLsble-.js";
10
+ import { c as tr } from "../../createLucideIcon-B950nf2d.js";
11
+ import nr, { createElement as sn } from "react";
12
+ import { I as Uc, A as Vc, j as Hc, x as Yc, $ as Wc, Q as qc, E as $c, S as zc, K as kc, U as jc, y as Xc } from "../../select-BehdTDP2-BxIxRb2_.js";
13
13
  /**
14
14
  * @license lucide-react v0.511.0 - ISC
15
15
  *
16
16
  * This source code is licensed under the ISC license.
17
17
  * See the LICENSE file in the root directory of this source tree.
18
18
  */
19
- const nr = [
19
+ const sr = [
20
20
  ["path", { d: "M8 2v4", key: "1cmpym" }],
21
21
  ["path", { d: "M16 2v4", key: "4m81vk" }],
22
22
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
23
23
  ["path", { d: "M3 10h18", key: "8toen8" }]
24
- ], sr = er("calendar", nr), hc = ({
24
+ ], rr = tr("calendar", sr), Rc = ({
25
25
  control: e,
26
26
  name: t,
27
27
  label: n,
28
28
  helperText: s,
29
29
  required: r,
30
30
  rules: a,
31
- format: i = Zs,
31
+ format: i = Qs,
32
32
  placeholder: l
33
33
  }) => {
34
- const o = n && /* @__PURE__ */ P.jsxs(Me, { className: "my-3 text-body-xs-medium", children: [
34
+ const o = n && /* @__PURE__ */ L.jsxs(ge, { className: "my-3 text-body-xs-medium", children: [
35
35
  n,
36
36
  " ",
37
- r && /* @__PURE__ */ P.jsx("span", { className: "text-red-600", children: "*" })
37
+ r && /* @__PURE__ */ L.jsx("span", { className: "text-red-600", children: "*" })
38
38
  ] });
39
- return /* @__PURE__ */ P.jsx(P.Fragment, { children: t && e && /* @__PURE__ */ P.jsx(
40
- ze,
39
+ return /* @__PURE__ */ L.jsx(L.Fragment, { children: t && e && /* @__PURE__ */ L.jsx(
40
+ Be,
41
41
  {
42
42
  control: e,
43
43
  name: t,
44
44
  rules: a,
45
- render: ({ field: d, formState: c }) => /* @__PURE__ */ P.jsxs(ke, { className: "flex flex-col relative", children: [
45
+ render: ({ field: d, formState: c }) => /* @__PURE__ */ L.jsxs(Ue, { className: "flex flex-col relative", children: [
46
46
  o,
47
- /* @__PURE__ */ P.jsxs(zs, { children: [
48
- /* @__PURE__ */ P.jsx(ks, { asChild: !0, children: /* @__PURE__ */ P.jsx(Xe, { children: /* @__PURE__ */ P.jsxs(
49
- js,
47
+ /* @__PURE__ */ L.jsxs(ks, { children: [
48
+ /* @__PURE__ */ L.jsx(js, { asChild: !0, children: /* @__PURE__ */ L.jsx(Ve, { children: /* @__PURE__ */ L.jsxs(
49
+ Zs,
50
50
  {
51
51
  variant: "secondary",
52
- className: qe(
52
+ className: xe(
53
53
  "pl-3 mb-0 text-left text-secondary !text-body-sm-regular font-normal border-alpha-strong bg-transparent hover:bg-transparent focus:ring-item-primary",
54
- He.get(c.errors, `${t}`) && "focus:ring-item-destructive border-item-destructive bg-item-destructive-focus text-item-destructive hover:bg-item-destructive-focus dark:bg-transparent",
54
+ Ce.get(c.errors, `${t}`) && "focus:ring-item-destructive border-item-destructive bg-item-destructive-focus text-item-destructive hover:bg-item-destructive-focus dark:bg-transparent",
55
55
  d.value && "text-primary"
56
56
  ),
57
57
  children: [
58
- d.value ? Js(d.value).format(i) : l && l,
59
- /* @__PURE__ */ P.jsx(sr, { className: "ml-auto h-4 w-4" })
58
+ d.value ? er(d.value).format(i) : l && l,
59
+ /* @__PURE__ */ L.jsx(rr, { className: "ml-auto h-4 w-4" })
60
60
  ]
61
61
  }
62
62
  ) }) }),
63
- /* @__PURE__ */ P.jsx(Xs, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ P.jsx(
64
- Qs,
63
+ /* @__PURE__ */ L.jsx(Xs, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ L.jsx(
64
+ Ks,
65
65
  {
66
66
  mode: "single",
67
67
  selected: d.value,
@@ -70,61 +70,61 @@ const nr = [
70
70
  }
71
71
  ) })
72
72
  ] }),
73
- /* @__PURE__ */ P.jsx(pe, { children: s }),
74
- /* @__PURE__ */ P.jsx("div", { className: "relative", children: /* @__PURE__ */ P.jsx(Ft, {}) })
73
+ /* @__PURE__ */ L.jsx(ue, { children: s }),
74
+ /* @__PURE__ */ L.jsx("div", { className: "relative", children: /* @__PURE__ */ L.jsx(ft, {}) })
75
75
  ] })
76
76
  }
77
77
  ) });
78
- }, Rc = ({
78
+ }, Oc = ({
79
79
  control: e,
80
80
  name: t,
81
81
  label: n,
82
82
  rules: s,
83
83
  helperText: r,
84
84
  ...a
85
- }) => t && e ? /* @__PURE__ */ P.jsx(
86
- ze,
85
+ }) => t && e ? /* @__PURE__ */ L.jsx(
86
+ Be,
87
87
  {
88
88
  control: e,
89
89
  name: t,
90
90
  rules: s,
91
- render: ({ field: i }) => /* @__PURE__ */ P.jsxs(ke, { className: "flex flex-row items-start space-x-3", children: [
92
- /* @__PURE__ */ P.jsx(Xe, { children: /* @__PURE__ */ P.jsx(
93
- Qt,
91
+ render: ({ field: i }) => /* @__PURE__ */ L.jsxs(Ue, { className: "flex flex-row items-start space-x-3", children: [
92
+ /* @__PURE__ */ L.jsx(Ve, { children: /* @__PURE__ */ L.jsx(
93
+ Kt,
94
94
  {
95
95
  checked: i.value,
96
96
  onCheckedChange: i.onChange,
97
97
  ...a
98
98
  }
99
99
  ) }),
100
- /* @__PURE__ */ P.jsxs("div", { className: "space-y-1 leading-none", children: [
101
- n && /* @__PURE__ */ P.jsx(Me, { children: n }),
102
- /* @__PURE__ */ P.jsx(pe, { children: r })
100
+ /* @__PURE__ */ L.jsxs("div", { className: "space-y-1 leading-none", children: [
101
+ n && /* @__PURE__ */ L.jsx(ge, { children: n }),
102
+ /* @__PURE__ */ L.jsx(ue, { children: r })
103
103
  ] })
104
104
  ] })
105
105
  }
106
- ) : /* @__PURE__ */ P.jsxs("div", { className: "flex flex-row items-start space-x-3 space-y-0 rounded-md border p-4", children: [
107
- /* @__PURE__ */ P.jsx(Qt, { ...a }),
108
- /* @__PURE__ */ P.jsxs("div", { className: "space-y-1 leading-none", children: [
109
- n && /* @__PURE__ */ P.jsx(Me, { children: n }),
110
- /* @__PURE__ */ P.jsx(pe, { children: r })
106
+ ) : /* @__PURE__ */ L.jsxs("div", { className: "flex flex-row items-start space-x-3 space-y-0 rounded-md border p-4", children: [
107
+ /* @__PURE__ */ L.jsx(Kt, { ...a }),
108
+ /* @__PURE__ */ L.jsxs("div", { className: "space-y-1 leading-none", children: [
109
+ n && /* @__PURE__ */ L.jsx(ge, { children: n }),
110
+ /* @__PURE__ */ L.jsx(ue, { children: r })
111
111
  ] })
112
- ] }), Oc = ({
112
+ ] }), Sc = ({
113
113
  control: e,
114
114
  name: t,
115
115
  label: n,
116
116
  helperText: s,
117
117
  rules: r,
118
118
  ...a
119
- }) => t && e ? /* @__PURE__ */ P.jsx(
120
- ze,
119
+ }) => t && e ? /* @__PURE__ */ L.jsx(
120
+ Be,
121
121
  {
122
122
  control: e,
123
123
  name: t,
124
124
  rules: r,
125
- render: ({ field: i }) => /* @__PURE__ */ P.jsxs(ke, { className: "flex items-center gap-2", children: [
126
- /* @__PURE__ */ P.jsx(Xe, { children: /* @__PURE__ */ P.jsx(
127
- Kt,
125
+ render: ({ field: i }) => /* @__PURE__ */ L.jsxs(Ue, { className: "flex items-center gap-2", children: [
126
+ /* @__PURE__ */ L.jsx(Ve, { children: /* @__PURE__ */ L.jsx(
127
+ Jt,
128
128
  {
129
129
  className: "m-0",
130
130
  checked: i.value,
@@ -132,29 +132,29 @@ const nr = [
132
132
  ...a
133
133
  }
134
134
  ) }),
135
- /* @__PURE__ */ P.jsxs("div", { className: "space-y-1 leading-none mb-1", children: [
136
- n && /* @__PURE__ */ P.jsx(
137
- Me,
135
+ /* @__PURE__ */ L.jsxs("div", { className: "space-y-1 leading-none mb-1", children: [
136
+ n && /* @__PURE__ */ L.jsx(
137
+ ge,
138
138
  {
139
- className: qe("text-primary", a.disabled && "opacity-40"),
139
+ className: xe("text-primary", a.disabled && "opacity-40"),
140
140
  children: n
141
141
  }
142
142
  ),
143
- /* @__PURE__ */ P.jsx(pe, { children: s })
143
+ /* @__PURE__ */ L.jsx(ue, { children: s })
144
144
  ] })
145
145
  ] })
146
146
  }
147
- ) : /* @__PURE__ */ P.jsxs("div", { className: "flex flex-row items-center space-x-3", children: [
148
- /* @__PURE__ */ P.jsx(Kt, { ...a }),
149
- /* @__PURE__ */ P.jsxs("div", { className: "space-y-1 leading-none mb-1", children: [
150
- n && /* @__PURE__ */ P.jsx(
151
- Me,
147
+ ) : /* @__PURE__ */ L.jsxs("div", { className: "flex flex-row items-center space-x-3", children: [
148
+ /* @__PURE__ */ L.jsx(Jt, { ...a }),
149
+ /* @__PURE__ */ L.jsxs("div", { className: "space-y-1 leading-none mb-1", children: [
150
+ n && /* @__PURE__ */ L.jsx(
151
+ ge,
152
152
  {
153
- className: qe("text-primary", a.disabled && "opacity-40"),
153
+ className: xe("text-primary", a.disabled && "opacity-40"),
154
154
  children: n
155
155
  }
156
156
  ),
157
- /* @__PURE__ */ P.jsx(pe, { children: s })
157
+ /* @__PURE__ */ L.jsx(ue, { children: s })
158
158
  ] })
159
159
  ] });
160
160
  /*!
@@ -162,7 +162,7 @@ const nr = [
162
162
  * Licensed under MIT, https://opensource.org/licenses/MIT/
163
163
  * Please visit https://pqina.nl/filepond/ for details.
164
164
  */
165
- const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
165
+ const ir = (e) => e instanceof HTMLElement, ar = (e, t = [], n = []) => {
166
166
  const s = {
167
167
  ...e
168
168
  }, r = [], a = [], i = () => ({ ...s }), l = () => {
@@ -203,7 +203,7 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
203
203
  ...p
204
204
  };
205
205
  }), f;
206
- }, ar = (e, t, n) => {
206
+ }, or = (e, t, n) => {
207
207
  if (typeof n == "function") {
208
208
  e[t] = n;
209
209
  return;
@@ -215,21 +215,21 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
215
215
  }, Te = (e) => {
216
216
  const t = {};
217
217
  return Y(e, (n) => {
218
- ar(t, n, e[n]);
218
+ or(t, n, e[n]);
219
219
  }), t;
220
220
  }, z = (e, t, n = null) => {
221
221
  if (n === null)
222
222
  return e.getAttribute(t) || e.hasAttribute(t);
223
223
  e.setAttribute(t, n);
224
- }, or = "http://www.w3.org/2000/svg", lr = ["svg", "path"], sn = (e) => lr.includes(e), ot = (e, t, n = {}) => {
224
+ }, lr = "http://www.w3.org/2000/svg", cr = ["svg", "path"], rn = (e) => cr.includes(e), lt = (e, t, n = {}) => {
225
225
  typeof t == "object" && (n = t, t = null);
226
- const s = sn(e) ? document.createElementNS(or, e) : document.createElement(e);
227
- return t && (sn(e) ? z(s, "class", t) : s.className = t), Y(n, (r, a) => {
226
+ const s = rn(e) ? document.createElementNS(lr, e) : document.createElement(e);
227
+ return t && (rn(e) ? z(s, "class", t) : s.className = t), Y(n, (r, a) => {
228
228
  z(s, r, a);
229
229
  }), s;
230
- }, cr = (e) => (t, n) => {
230
+ }, dr = (e) => (t, n) => {
231
231
  typeof n < "u" && e.children[n] ? e.insertBefore(t, e.children[n]) : e.appendChild(t);
232
- }, dr = (e, t) => (n, s) => (typeof s < "u" ? t.splice(s, 0, n) : t.push(n), n), ur = (e, t) => (n) => (t.splice(t.indexOf(n), 1), n.element.parentNode && e.removeChild(n.element), n), fr = typeof window < "u" && typeof window.document < "u", es = () => fr, Er = es() ? ot("svg") : {}, pr = "children" in Er ? (e) => e.children.length : (e) => e.childNodes.length, ts = (e, t, n, s) => {
232
+ }, ur = (e, t) => (n, s) => (typeof s < "u" ? t.splice(s, 0, n) : t.push(n), n), fr = (e, t) => (n) => (t.splice(t.indexOf(n), 1), n.element.parentNode && e.removeChild(n.element), n), Er = typeof window < "u" && typeof window.document < "u", ts = () => Er, pr = ts() ? lt("svg") : {}, Ir = "children" in pr ? (e) => e.children.length : (e) => e.childNodes.length, ns = (e, t, n, s) => {
233
233
  const r = n[0] || e.left, a = n[1] || e.top, i = r + e.width, l = a + e.height * (s[1] || 1), o = {
234
234
  // the rectangle of the element itself
235
235
  element: {
@@ -252,29 +252,29 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
252
252
  }
253
253
  };
254
254
  return t.filter((d) => !d.isRectIgnored()).map((d) => d.rect).forEach((d) => {
255
- rn(o.inner, { ...d.inner }), rn(o.outer, { ...d.outer });
256
- }), an(o.inner), o.outer.bottom += o.element.marginBottom, o.outer.right += o.element.marginRight, an(o.outer), o;
257
- }, rn = (e, t) => {
255
+ an(o.inner, { ...d.inner }), an(o.outer, { ...d.outer });
256
+ }), on(o.inner), o.outer.bottom += o.element.marginBottom, o.outer.right += o.element.marginRight, on(o.outer), o;
257
+ }, an = (e, t) => {
258
258
  t.top += e.top, t.right += e.left, t.bottom += e.top, t.left += e.left, t.bottom > e.bottom && (e.bottom = t.bottom), t.right > e.right && (e.right = t.right);
259
- }, an = (e) => {
259
+ }, on = (e) => {
260
260
  e.width = e.right - e.left, e.height = e.bottom - e.top;
261
- }, he = (e) => typeof e == "number", Ir = (e, t, n, s = 1e-3) => Math.abs(e - t) < s && Math.abs(n) < s, _r = (
261
+ }, Re = (e) => typeof e == "number", _r = (e, t, n, s = 1e-3) => Math.abs(e - t) < s && Math.abs(n) < s, mr = (
262
262
  // default options
263
263
  ({ stiffness: e = 0.5, damping: t = 0.75, mass: n = 10 } = {}) => {
264
264
  let s = null, r = null, a = 0, i = !1;
265
265
  const d = Te({
266
266
  interpolate: (c, f) => {
267
267
  if (i) return;
268
- if (!(he(s) && he(r))) {
268
+ if (!(Re(s) && Re(r))) {
269
269
  i = !0, a = 0;
270
270
  return;
271
271
  }
272
272
  const I = -(r - s) * e;
273
- a += I / n, r += a, a *= t, Ir(r, s, a) || f ? (r = s, a = 0, i = !0, d.onupdate(r), d.oncomplete(r)) : d.onupdate(r);
273
+ a += I / n, r += a, a *= t, _r(r, s, a) || f ? (r = s, a = 0, i = !0, d.onupdate(r), d.oncomplete(r)) : d.onupdate(r);
274
274
  },
275
275
  target: {
276
276
  set: (c) => {
277
- if (he(c) && !he(r) && (r = c), s === null && (s = c, r = c), s = c, r === s || typeof s > "u") {
277
+ if (Re(c) && !Re(r) && (r = c), s === null && (s = c, r = c), s = c, r === s || typeof s > "u") {
278
278
  i = !0, a = 0, d.onupdate(r), d.oncomplete(r);
279
279
  return;
280
280
  }
@@ -292,9 +292,9 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
292
292
  });
293
293
  return d;
294
294
  }
295
- ), mr = (e) => e < 0.5 ? 2 * e * e : -1 + (4 - 2 * e) * e, Tr = (
295
+ ), Tr = (e) => e < 0.5 ? 2 * e * e : -1 + (4 - 2 * e) * e, gr = (
296
296
  // default values
297
- ({ duration: e = 500, easing: t = mr, delay: n = 0 } = {}) => {
297
+ ({ duration: e = 500, easing: t = Tr, delay: n = 0 } = {}) => {
298
298
  let s = null, r, a, i = !0, l = !1, o = null;
299
299
  const c = Te({
300
300
  interpolate: (f, I) => {
@@ -320,13 +320,13 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
320
320
  });
321
321
  return c;
322
322
  }
323
- ), on = {
324
- spring: _r,
325
- tween: Tr
326
- }, gr = (e, t, n) => {
323
+ ), ln = {
324
+ spring: mr,
325
+ tween: gr
326
+ }, hr = (e, t, n) => {
327
327
  const s = e[t] && typeof e[t][n] == "object" ? e[t][n] : e[t] || e, r = typeof s == "string" ? s : s.type, a = typeof s == "object" ? { ...s } : {};
328
- return on[r] ? on[r](a) : null;
329
- }, Bt = (e, t, n, s = !1) => {
328
+ return ln[r] ? ln[r](a) : null;
329
+ }, Ut = (e, t, n, s = !1) => {
330
330
  t = Array.isArray(t) ? t : [t], t.forEach((r) => {
331
331
  e.forEach((a) => {
332
332
  let i = a, l = () => n[a], o = (d) => n[a] = d;
@@ -336,15 +336,15 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
336
336
  });
337
337
  });
338
338
  });
339
- }, hr = ({ mixinConfig: e, viewProps: t, viewInternalAPI: n, viewExternalAPI: s }) => {
339
+ }, Rr = ({ mixinConfig: e, viewProps: t, viewInternalAPI: n, viewExternalAPI: s }) => {
340
340
  const r = { ...t }, a = [];
341
341
  return Y(e, (i, l) => {
342
- const o = gr(l);
342
+ const o = hr(l);
343
343
  if (!o)
344
344
  return;
345
345
  o.onupdate = (c) => {
346
346
  t[i] = c;
347
- }, o.target = r[i], Bt([{
347
+ }, o.target = r[i], Ut([{
348
348
  key: i,
349
349
  setter: (c) => {
350
350
  o.target !== c && (o.target = c);
@@ -361,11 +361,11 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
361
361
  destroy: () => {
362
362
  }
363
363
  };
364
- }, Rr = (e) => (t, n) => {
365
- e.addEventListener(t, n);
366
364
  }, Or = (e) => (t, n) => {
365
+ e.addEventListener(t, n);
366
+ }, Sr = (e) => (t, n) => {
367
367
  e.removeEventListener(t, n);
368
- }, Sr = ({
368
+ }, Dr = ({
369
369
  mixinConfig: e,
370
370
  viewProps: t,
371
371
  viewInternalAPI: n,
@@ -373,7 +373,7 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
373
373
  viewState: r,
374
374
  view: a
375
375
  }) => {
376
- const i = [], l = Rr(a.element), o = Or(a.element);
376
+ const i = [], l = Or(a.element), o = Sr(a.element);
377
377
  return s.on = (d, c) => {
378
378
  i.push({
379
379
  type: d,
@@ -389,9 +389,9 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
389
389
  });
390
390
  }
391
391
  };
392
- }, Dr = ({ mixinConfig: e, viewProps: t, viewExternalAPI: n }) => {
393
- Bt(e, n, t);
394
- }, Z = (e) => e != null, yr = {
392
+ }, yr = ({ mixinConfig: e, viewProps: t, viewExternalAPI: n }) => {
393
+ Ut(e, n, t);
394
+ }, Z = (e) => e != null, Ar = {
395
395
  opacity: 1,
396
396
  scaleX: 1,
397
397
  scaleY: 1,
@@ -402,28 +402,28 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
402
402
  rotateZ: 0,
403
403
  originX: 0,
404
404
  originY: 0
405
- }, Ar = ({ mixinConfig: e, viewProps: t, viewInternalAPI: n, viewExternalAPI: s, view: r }) => {
405
+ }, Mr = ({ mixinConfig: e, viewProps: t, viewInternalAPI: n, viewExternalAPI: s, view: r }) => {
406
406
  const a = { ...t }, i = {};
407
- Bt(e, [n, s], t);
408
- const l = () => [t.translateX || 0, t.translateY || 0], o = () => [t.scaleX || 0, t.scaleY || 0], d = () => r.rect ? ts(r.rect, r.childViews, l(), o()) : null;
407
+ Ut(e, [n, s], t);
408
+ const l = () => [t.translateX || 0, t.translateY || 0], o = () => [t.scaleX || 0, t.scaleY || 0], d = () => r.rect ? ns(r.rect, r.childViews, l(), o()) : null;
409
409
  return n.rect = { get: d }, s.rect = { get: d }, e.forEach((c) => {
410
- t[c] = typeof a[c] > "u" ? yr[c] : a[c];
410
+ t[c] = typeof a[c] > "u" ? Ar[c] : a[c];
411
411
  }), {
412
412
  write: () => {
413
- if (Mr(i, t))
414
- return Lr(r.element, t), Object.assign(i, { ...t }), !0;
413
+ if (Lr(i, t))
414
+ return wr(r.element, t), Object.assign(i, { ...t }), !0;
415
415
  },
416
416
  destroy: () => {
417
417
  }
418
418
  };
419
- }, Mr = (e, t) => {
419
+ }, Lr = (e, t) => {
420
420
  if (Object.keys(e).length !== Object.keys(t).length)
421
421
  return !0;
422
422
  for (const n in t)
423
423
  if (t[n] !== e[n])
424
424
  return !0;
425
425
  return !1;
426
- }, Lr = (e, {
426
+ }, wr = (e, {
427
427
  opacity: t,
428
428
  perspective: n,
429
429
  translateX: s,
@@ -442,12 +442,12 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
442
442
  (Z(c) || Z(f)) && (_ += `transform-origin: ${c || 0}px ${f || 0}px;`), Z(n) && (u += `perspective(${n}px) `), (Z(s) || Z(r)) && (u += `translate3d(${s || 0}px, ${r || 0}px, 0) `), (Z(a) || Z(i)) && (u += `scale3d(${Z(a) ? a : 1}, ${Z(i) ? i : 1}, 1) `), Z(d) && (u += `rotateZ(${d}rad) `), Z(l) && (u += `rotateX(${l}rad) `), Z(o) && (u += `rotateY(${o}rad) `), u.length && (_ += `transform:${u};`), Z(t) && (_ += `opacity:${t};`, t === 0 && (_ += "visibility:hidden;"), t < 1 && (_ += "pointer-events:none;")), Z(p) && (_ += `height:${p}px;`), Z(I) && (_ += `width:${I}px;`);
443
443
  const T = e.elementCurrentStyle || "";
444
444
  (_.length !== T.length || _ !== T) && (e.style.cssText = _, e.elementCurrentStyle = _);
445
- }, wr = {
446
- styles: Ar,
447
- listeners: Sr,
448
- animations: hr,
449
- apis: Dr
450
- }, ln = (e = {}, t = {}, n = {}) => (t.layoutCalculated || (e.paddingTop = parseInt(n.paddingTop, 10) || 0, e.marginTop = parseInt(n.marginTop, 10) || 0, e.marginRight = parseInt(n.marginRight, 10) || 0, e.marginBottom = parseInt(n.marginBottom, 10) || 0, e.marginLeft = parseInt(n.marginLeft, 10) || 0, t.layoutCalculated = !0), e.left = t.offsetLeft || 0, e.top = t.offsetTop || 0, e.width = t.offsetWidth || 0, e.height = t.offsetHeight || 0, e.right = e.left + e.width, e.bottom = e.top + e.height, e.scrollTop = t.scrollTop, e.hidden = t.offsetParent === null, e), $ = (
445
+ }, Pr = {
446
+ styles: Mr,
447
+ listeners: Dr,
448
+ animations: Rr,
449
+ apis: yr
450
+ }, cn = (e = {}, t = {}, n = {}) => (t.layoutCalculated || (e.paddingTop = parseInt(n.paddingTop, 10) || 0, e.marginTop = parseInt(n.marginTop, 10) || 0, e.marginRight = parseInt(n.marginRight, 10) || 0, e.marginBottom = parseInt(n.marginBottom, 10) || 0, e.marginLeft = parseInt(n.marginLeft, 10) || 0, t.layoutCalculated = !0), e.left = t.offsetLeft || 0, e.top = t.offsetTop || 0, e.width = t.offsetWidth || 0, e.height = t.offsetHeight || 0, e.right = e.left + e.width, e.bottom = e.top + e.height, e.scrollTop = t.scrollTop, e.hidden = t.offsetParent === null, e), $ = (
451
451
  // default view definition
452
452
  ({
453
453
  // element definition
@@ -475,49 +475,49 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
475
475
  // mixins
476
476
  mixins: I = []
477
477
  } = {}) => (p, u = {}) => {
478
- const _ = ot(e, `filepond--${t}`, n), T = window.getComputedStyle(_, null), h = ln();
478
+ const _ = lt(e, `filepond--${t}`, n), T = window.getComputedStyle(_, null), h = cn();
479
479
  let E = null, m = !1;
480
480
  const R = [], S = [], M = {}, N = {}, D = [
481
481
  r
482
482
  // default writer
483
- ], L = [
483
+ ], w = [
484
484
  s
485
485
  // default reader
486
486
  ], G = [
487
487
  i
488
488
  // default destroy
489
- ], w = () => _, C = () => R.concat(), V = () => M, A = (U) => (j, Ee) => j(U, Ee), B = () => E || (E = ts(h, R, [0, 0], [1, 1]), E), O = () => T, y = () => {
490
- E = null, R.forEach((Ee) => Ee._read()), !(f && h.width && h.height) && ln(h, _, T);
491
- const j = { root: oe, props: u, rect: h };
492
- L.forEach((Ee) => Ee(j));
493
- }, b = (U, j, Ee) => {
494
- let Pe = j.length === 0;
489
+ ], P = () => _, C = () => R.concat(), V = () => M, A = (U) => (X, pe) => X(U, pe), B = () => E || (E = ns(h, R, [0, 0], [1, 1]), E), O = () => T, y = () => {
490
+ E = null, R.forEach((pe) => pe._read()), !(f && h.width && h.height) && cn(h, _, T);
491
+ const X = { root: oe, props: u, rect: h };
492
+ w.forEach((pe) => pe(X));
493
+ }, b = (U, X, pe) => {
494
+ let Pe = X.length === 0;
495
495
  return D.forEach((J) => {
496
496
  J({
497
497
  props: u,
498
498
  root: oe,
499
- actions: j,
499
+ actions: X,
500
500
  timestamp: U,
501
- shouldOptimize: Ee
501
+ shouldOptimize: pe
502
502
  }) === !1 && (Pe = !1);
503
503
  }), S.forEach((J) => {
504
504
  J.write(U) === !1 && (Pe = !1);
505
505
  }), R.filter((J) => !!J.element.parentNode).forEach((J) => {
506
506
  J._write(
507
507
  U,
508
- l(J, j),
509
- Ee
508
+ l(J, X),
509
+ pe
510
510
  ) || (Pe = !1);
511
511
  }), R.forEach((J, Ze) => {
512
512
  J.element.parentNode || (oe.appendChild(J.element, Ze), J._read(), J._write(
513
513
  U,
514
- l(J, j),
515
- Ee
514
+ l(J, X),
515
+ pe
516
516
  ), Pe = !1);
517
517
  }), m = Pe, d({
518
518
  props: u,
519
519
  root: oe,
520
- actions: j,
520
+ actions: X,
521
521
  timestamp: U
522
522
  }), Pe;
523
523
  }, v = () => {
@@ -526,7 +526,7 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
526
526
  }), R.forEach((U) => U._destroy());
527
527
  }, H = {
528
528
  element: {
529
- get: w
529
+ get: P
530
530
  },
531
531
  style: {
532
532
  get: O
@@ -545,24 +545,24 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
545
545
  },
546
546
  // dom modifiers
547
547
  is: (U) => t === U,
548
- appendChild: cr(_),
548
+ appendChild: dr(_),
549
549
  createChildView: A(p),
550
550
  linkView: (U) => (R.push(U), U),
551
551
  unlinkView: (U) => {
552
552
  R.splice(R.indexOf(U), 1);
553
553
  },
554
- appendChildView: dr(_, R),
555
- removeChildView: ur(_, R),
554
+ appendChildView: ur(_, R),
555
+ removeChildView: fr(_, R),
556
556
  registerWriter: (U) => D.push(U),
557
- registerReader: (U) => L.push(U),
557
+ registerReader: (U) => w.push(U),
558
558
  registerDestroyer: (U) => G.push(U),
559
559
  invalidateLayout: () => _.layoutCalculated = !1,
560
560
  // access to data store
561
561
  dispatch: p.dispatch,
562
562
  query: p.query
563
- }, ge = {
563
+ }, he = {
564
564
  element: {
565
- get: w
565
+ get: P
566
566
  },
567
567
  childViews: {
568
568
  get: C
@@ -577,34 +577,34 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
577
577
  _read: y,
578
578
  _write: b,
579
579
  _destroy: v
580
- }, Fe = {
580
+ }, Ye = {
581
581
  ...H,
582
582
  rect: {
583
583
  get: () => h
584
584
  }
585
585
  };
586
- Object.keys(I).sort((U, j) => U === "styles" ? 1 : j === "styles" ? -1 : 0).forEach((U) => {
587
- const j = wr[U]({
586
+ Object.keys(I).sort((U, X) => U === "styles" ? 1 : X === "styles" ? -1 : 0).forEach((U) => {
587
+ const X = Pr[U]({
588
588
  mixinConfig: I[U],
589
589
  viewProps: u,
590
590
  viewState: N,
591
591
  viewInternalAPI: F,
592
- viewExternalAPI: ge,
593
- view: Te(Fe)
592
+ viewExternalAPI: he,
593
+ view: Te(Ye)
594
594
  });
595
- j && S.push(j);
595
+ X && S.push(X);
596
596
  });
597
597
  const oe = Te(F);
598
598
  a({
599
599
  root: oe,
600
600
  props: u
601
601
  });
602
- const Tt = pr(_);
603
- return R.forEach((U, j) => {
604
- oe.appendChild(U.element, Tt + j);
605
- }), o(oe), Te(ge);
602
+ const ht = Ir(_);
603
+ return R.forEach((U, X) => {
604
+ oe.appendChild(U.element, ht + X);
605
+ }), o(oe), Te(he);
606
606
  }
607
- ), Pr = (e, t, n = 60) => {
607
+ ), Cr = (e, t, n = 60) => {
608
608
  const s = "__framePainter";
609
609
  if (window[s]) {
610
610
  window[s].readers.push(e), window[s].writers.push(t);
@@ -636,30 +636,30 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
636
636
  r.filter((l) => e[l.type]).forEach(
637
637
  (l) => e[l.type]({ root: n, props: s, action: l.data, timestamp: a, shouldOptimize: i })
638
638
  ), t && t({ root: n, props: s, actions: r, timestamp: a, shouldOptimize: i });
639
- }, cn = (e, t) => t.parentNode.insertBefore(e, t), dn = (e, t) => t.parentNode.insertBefore(e, t.nextSibling), ut = (e) => Array.isArray(e), Ie = (e) => e == null, Cr = (e) => e.trim(), ft = (e) => "" + e, br = (e, t = ",") => Ie(e) ? [] : ut(e) ? e : ft(e).split(t).map(Cr).filter((n) => n.length), ns = (e) => typeof e == "boolean", ss = (e) => ns(e) ? e : e === "true", Q = (e) => typeof e == "string", rs = (e) => he(e) ? e : Q(e) ? ft(e).replace(/[a-z]+/gi, "") : 0, it = (e) => parseInt(rs(e), 10), un = (e) => parseFloat(rs(e)), xe = (e) => he(e) && isFinite(e) && Math.floor(e) === e, fn = (e, t = 1e3) => {
640
- if (xe(e))
639
+ }, dn = (e, t) => t.parentNode.insertBefore(e, t), un = (e, t) => t.parentNode.insertBefore(e, t.nextSibling), Et = (e) => Array.isArray(e), Ie = (e) => e == null, br = (e) => e.trim(), pt = (e) => "" + e, Nr = (e, t = ",") => Ie(e) ? [] : Et(e) ? e : pt(e).split(t).map(br).filter((n) => n.length), ss = (e) => typeof e == "boolean", rs = (e) => ss(e) ? e : e === "true", Q = (e) => typeof e == "string", is = (e) => Re(e) ? e : Q(e) ? pt(e).replace(/[a-z]+/gi, "") : 0, it = (e) => parseInt(is(e), 10), fn = (e) => parseFloat(is(e)), He = (e) => Re(e) && isFinite(e) && Math.floor(e) === e, En = (e, t = 1e3) => {
640
+ if (He(e))
641
641
  return e;
642
- let n = ft(e).trim();
642
+ let n = pt(e).trim();
643
643
  return /MB$/i.test(n) ? (n = n.replace(/MB$i/, "").trim(), it(n) * t * t) : /KB/i.test(n) ? (n = n.replace(/KB$i/, "").trim(), it(n) * t) : it(n);
644
- }, Re = (e) => typeof e == "function", Nr = (e) => {
644
+ }, Oe = (e) => typeof e == "function", vr = (e) => {
645
645
  let t = self, n = e.split("."), s = null;
646
646
  for (; s = n.shift(); )
647
647
  if (t = t[s], !t)
648
648
  return null;
649
649
  return t;
650
- }, En = {
650
+ }, pn = {
651
651
  process: "POST",
652
652
  patch: "PATCH",
653
653
  revert: "DELETE",
654
654
  fetch: "GET",
655
655
  restore: "GET",
656
656
  load: "GET"
657
- }, vr = (e) => {
657
+ }, Gr = (e) => {
658
658
  const t = {};
659
- return t.url = Q(e) ? e : e.url || "", t.timeout = e.timeout ? parseInt(e.timeout, 10) : 0, t.headers = e.headers ? e.headers : {}, Y(En, (n) => {
660
- t[n] = Gr(n, e[n], En[n], t.timeout, t.headers);
659
+ return t.url = Q(e) ? e : e.url || "", t.timeout = e.timeout ? parseInt(e.timeout, 10) : 0, t.headers = e.headers ? e.headers : {}, Y(pn, (n) => {
660
+ t[n] = xr(n, e[n], pn[n], t.timeout, t.headers);
661
661
  }), t.process = e.process || Q(e) || e.url ? t.process : null, t.remove = e.remove || null, delete t.headers, t;
662
- }, Gr = (e, t, n, s, r) => {
662
+ }, xr = (e, t, n, s, r) => {
663
663
  if (t === null)
664
664
  return null;
665
665
  if (typeof t == "function")
@@ -683,51 +683,51 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
683
683
  value: i[1]
684
684
  };
685
685
  }
686
- return a.withCredentials = ss(a.withCredentials), a;
687
- }, xr = (e) => vr(e), Fr = (e) => e === null, X = (e) => typeof e == "object" && e !== null, Br = (e) => X(e) && Q(e.url) && X(e.process) && X(e.revert) && X(e.restore) && X(e.fetch), Mt = (e) => ut(e) ? "array" : Fr(e) ? "null" : xe(e) ? "int" : /^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e) ? "bytes" : Br(e) ? "api" : typeof e, Ur = (e) => e.replace(/{\s*'/g, '{"').replace(/'\s*}/g, '"}').replace(/'\s*:/g, '":').replace(/:\s*'/g, ':"').replace(/,\s*'/g, ',"').replace(/'\s*,/g, '",'), Vr = {
688
- array: br,
689
- boolean: ss,
690
- int: (e) => Mt(e) === "bytes" ? fn(e) : it(e),
691
- number: un,
692
- float: un,
693
- bytes: fn,
694
- string: (e) => Re(e) ? e : ft(e),
695
- function: (e) => Nr(e),
696
- serverapi: xr,
686
+ return a.withCredentials = rs(a.withCredentials), a;
687
+ }, Fr = (e) => Gr(e), Br = (e) => e === null, j = (e) => typeof e == "object" && e !== null, Ur = (e) => j(e) && Q(e.url) && j(e.process) && j(e.revert) && j(e.restore) && j(e.fetch), wt = (e) => Et(e) ? "array" : Br(e) ? "null" : He(e) ? "int" : /^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e) ? "bytes" : Ur(e) ? "api" : typeof e, Vr = (e) => e.replace(/{\s*'/g, '{"').replace(/'\s*}/g, '"}').replace(/'\s*:/g, '":').replace(/:\s*'/g, ':"').replace(/,\s*'/g, ',"').replace(/'\s*,/g, '",'), Hr = {
688
+ array: Nr,
689
+ boolean: rs,
690
+ int: (e) => wt(e) === "bytes" ? En(e) : it(e),
691
+ number: fn,
692
+ float: fn,
693
+ bytes: En,
694
+ string: (e) => Oe(e) ? e : pt(e),
695
+ function: (e) => vr(e),
696
+ serverapi: Fr,
697
697
  object: (e) => {
698
698
  try {
699
- return JSON.parse(Ur(e));
699
+ return JSON.parse(Vr(e));
700
700
  } catch {
701
701
  return null;
702
702
  }
703
703
  }
704
- }, Hr = (e, t) => Vr[t](e), is = (e, t, n) => {
704
+ }, Yr = (e, t) => Hr[t](e), as = (e, t, n) => {
705
705
  if (e === t)
706
706
  return e;
707
- let s = Mt(e);
707
+ let s = wt(e);
708
708
  if (s !== n) {
709
- const r = Hr(e, n);
710
- if (s = Mt(r), r === null)
709
+ const r = Yr(e, n);
710
+ if (s = wt(r), r === null)
711
711
  throw `Trying to assign value with incorrect type to "${option}", allowed type: "${n}"`;
712
712
  e = r;
713
713
  }
714
714
  return e;
715
- }, Yr = (e, t) => {
715
+ }, Wr = (e, t) => {
716
716
  let n = e;
717
717
  return {
718
718
  enumerable: !0,
719
719
  get: () => n,
720
720
  set: (s) => {
721
- n = is(s, e, t);
721
+ n = as(s, e, t);
722
722
  }
723
723
  };
724
- }, Wr = (e) => {
724
+ }, qr = (e) => {
725
725
  const t = {};
726
726
  return Y(e, (n) => {
727
727
  const s = e[n];
728
- t[n] = Yr(s[0], s[1]);
728
+ t[n] = Wr(s[0], s[1]);
729
729
  }), Te(t);
730
- }, qr = (e) => ({
730
+ }, $r = (e) => ({
731
731
  // model
732
732
  items: [],
733
733
  // timeout used for calling update items
@@ -737,23 +737,23 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
737
737
  // queue of items waiting to be processed
738
738
  processingQueue: [],
739
739
  // options
740
- options: Wr(e)
741
- }), Et = (e, t = "-") => e.split(/(?=[A-Z])/).map((n) => n.toLowerCase()).join(t), $r = (e, t) => {
740
+ options: qr(e)
741
+ }), It = (e, t = "-") => e.split(/(?=[A-Z])/).map((n) => n.toLowerCase()).join(t), zr = (e, t) => {
742
742
  const n = {};
743
743
  return Y(t, (s) => {
744
744
  n[s] = {
745
745
  get: () => e.getState().options[s],
746
746
  set: (r) => {
747
- e.dispatch(`SET_${Et(s, "_").toUpperCase()}`, {
747
+ e.dispatch(`SET_${It(s, "_").toUpperCase()}`, {
748
748
  value: r
749
749
  });
750
750
  }
751
751
  };
752
752
  }), n;
753
- }, zr = (e) => (t, n, s) => {
753
+ }, kr = (e) => (t, n, s) => {
754
754
  const r = {};
755
755
  return Y(e, (a) => {
756
- const i = Et(a, "_").toUpperCase();
756
+ const i = It(a, "_").toUpperCase();
757
757
  r[`SET_${i}`] = (l) => {
758
758
  try {
759
759
  s.options[a] = l.value;
@@ -762,10 +762,10 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
762
762
  t(`DID_SET_${i}`, { value: s.options[a] });
763
763
  };
764
764
  }), r;
765
- }, kr = (e) => (t) => {
765
+ }, jr = (e) => (t) => {
766
766
  const n = {};
767
767
  return Y(e, (s) => {
768
- n[`GET_${Et(s, "_").toUpperCase()}`] = (r) => t.options[s];
768
+ n[`GET_${It(s, "_").toUpperCase()}`] = (r) => t.options[s];
769
769
  }), n;
770
770
  }, ae = {
771
771
  API: 1,
@@ -773,11 +773,11 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
773
773
  BROWSE: 3,
774
774
  PASTE: 4,
775
775
  NONE: 5
776
- }, Ut = () => Math.random().toString(36).substring(2, 11), Vt = (e, t) => e.splice(t, 1), Xr = (e, t) => {
776
+ }, Vt = () => Math.random().toString(36).substring(2, 11), Ht = (e, t) => e.splice(t, 1), Xr = (e, t) => {
777
777
  t ? e() : document.hidden ? Promise.resolve(1).then(e) : setTimeout(e, 0);
778
- }, pt = () => {
778
+ }, _t = () => {
779
779
  const e = [], t = (s, r) => {
780
- Vt(
780
+ Ht(
781
781
  e,
782
782
  e.findIndex((a) => a.event === s && (a.cb === r || !r))
783
783
  );
@@ -804,11 +804,11 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
804
804
  },
805
805
  off: t
806
806
  };
807
- }, as = (e, t, n) => {
807
+ }, os = (e, t, n) => {
808
808
  Object.getOwnPropertyNames(e).filter((s) => !n.includes(s)).forEach(
809
809
  (s) => Object.defineProperty(t, s, Object.getOwnPropertyDescriptor(e, s))
810
810
  );
811
- }, jr = [
811
+ }, Zr = [
812
812
  "fire",
813
813
  "process",
814
814
  "revert",
@@ -826,10 +826,10 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
826
826
  "freeze"
827
827
  ], ee = (e) => {
828
828
  const t = {};
829
- return as(e, t, jr), t;
830
- }, Zr = (e) => {
829
+ return os(e, t, Zr), t;
830
+ }, Qr = (e) => {
831
831
  e.forEach((t, n) => {
832
- t.released && Vt(e, n);
832
+ t.released && Ht(e, n);
833
833
  });
834
834
  }, x = {
835
835
  INIT: 1,
@@ -845,9 +845,9 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
845
845
  INPUT: 1,
846
846
  LIMBO: 2,
847
847
  LOCAL: 3
848
- }, os = (e) => /[^0-9]+/.exec(e), ls = () => os(1.1.toLocaleString())[0], Qr = () => {
849
- const e = ls(), t = 1e3.toLocaleString();
850
- return t !== "1000" ? os(t)[0] : e === "." ? "," : ".";
848
+ }, ls = (e) => /[^0-9]+/.exec(e), cs = () => ls(1.1.toLocaleString())[0], Kr = () => {
849
+ const e = cs(), t = 1e3.toLocaleString();
850
+ return t !== "1000" ? ls(t)[0] : e === "." ? "," : ".";
851
851
  }, g = {
852
852
  BOOLEAN: "boolean",
853
853
  INT: "int",
@@ -859,8 +859,8 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
859
859
  ACTION: "action",
860
860
  SERVER_API: "serverapi",
861
861
  REGEX: "regex"
862
- }, Ht = [], le = (e, t, n) => new Promise((s, r) => {
863
- const a = Ht.filter((l) => l.key === e).map((l) => l.cb);
862
+ }, Yt = [], le = (e, t, n) => new Promise((s, r) => {
863
+ const a = Yt.filter((l) => l.key === e).map((l) => l.cb);
864
864
  if (a.length === 0) {
865
865
  s(t);
866
866
  return;
@@ -873,15 +873,15 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
873
873
  i(t, n)
874
874
  // all executed
875
875
  ).then((l) => s(l)).catch((l) => r(l));
876
- }), Le = (e, t, n) => Ht.filter((s) => s.key === e).map((s) => s.cb(t, n)), Kr = (e, t) => Ht.push({ key: e, cb: t }), Jr = (e) => Object.assign(Ce, e), lt = () => ({ ...Ce }), ei = (e) => {
876
+ }), Le = (e, t, n) => Yt.filter((s) => s.key === e).map((s) => s.cb(t, n)), Jr = (e, t) => Yt.push({ key: e, cb: t }), ei = (e) => Object.assign(be, e), ct = () => ({ ...be }), ti = (e) => {
877
877
  Y(e, (t, n) => {
878
- Ce[t] && (Ce[t][0] = is(
878
+ be[t] && (be[t][0] = as(
879
879
  n,
880
- Ce[t][0],
881
- Ce[t][1]
880
+ be[t][0],
881
+ be[t][1]
882
882
  ));
883
883
  });
884
- }, Ce = {
884
+ }, be = {
885
885
  // the id to add to the root element
886
886
  id: [null, g.STRING],
887
887
  // input field name to use
@@ -969,9 +969,9 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
969
969
  labelFileSizeKilobytes: ["KB", g.STRING],
970
970
  labelFileSizeMegabytes: ["MB", g.STRING],
971
971
  labelFileSizeGigabytes: ["GB", g.STRING],
972
- labelDecimalSeparator: [ls(), g.STRING],
972
+ labelDecimalSeparator: [cs(), g.STRING],
973
973
  // Default is locale separator
974
- labelThousandsSeparator: [Qr(), g.STRING],
974
+ labelThousandsSeparator: [Kr(), g.STRING],
975
975
  // Default is locale separator
976
976
  labelIdle: [
977
977
  'Drag & Drop your files or <span class="filepond--label-action">Browse</span>',
@@ -1064,7 +1064,7 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
1064
1064
  files: [[], g.ARRAY],
1065
1065
  // show support by displaying credits
1066
1066
  credits: [["https://pqina.nl/", "Powered by PQINA"], g.ARRAY]
1067
- }, Oe = (e, t) => Ie(t) ? e[0] || null : xe(t) ? e[t] || null : (typeof t == "object" && (t = t.id), e.find((n) => n.id === t) || null), cs = (e) => {
1067
+ }, Se = (e, t) => Ie(t) ? e[0] || null : He(t) ? e[t] || null : (typeof t == "object" && (t = t.id), e.find((n) => n.id === t) || null), ds = (e) => {
1068
1068
  if (Ie(e))
1069
1069
  return e;
1070
1070
  if (/:/.test(e)) {
@@ -1072,7 +1072,7 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
1072
1072
  return t[1] / t[0];
1073
1073
  }
1074
1074
  return parseFloat(e);
1075
- }, ce = (e) => e.filter((t) => !t.archived), ti = {
1075
+ }, ce = (e) => e.filter((t) => !t.archived), ni = {
1076
1076
  EMPTY: 0,
1077
1077
  IDLE: 1,
1078
1078
  // waiting
@@ -1084,7 +1084,7 @@ const rr = (e) => e instanceof HTMLElement, ir = (e, t = [], n = []) => {
1084
1084
  // all files uploaded
1085
1085
  };
1086
1086
  let Qe = null;
1087
- const ni = () => {
1087
+ const si = () => {
1088
1088
  if (Qe === null)
1089
1089
  try {
1090
1090
  const e = new DataTransfer();
@@ -1095,72 +1095,72 @@ const ni = () => {
1095
1095
  Qe = !1;
1096
1096
  }
1097
1097
  return Qe;
1098
- }, si = [
1098
+ }, ri = [
1099
1099
  x.LOAD_ERROR,
1100
1100
  x.PROCESSING_ERROR,
1101
1101
  x.PROCESSING_REVERT_ERROR
1102
- ], ri = [
1102
+ ], ii = [
1103
1103
  x.LOADING,
1104
1104
  x.PROCESSING,
1105
1105
  x.PROCESSING_QUEUED,
1106
1106
  x.INIT
1107
- ], ii = [x.PROCESSING_COMPLETE], ai = (e) => si.includes(e.status), oi = (e) => ri.includes(e.status), li = (e) => ii.includes(e.status), pn = (e) => X(e.options.server) && (X(e.options.server.process) || Re(e.options.server.process)), ci = (e) => ({
1107
+ ], ai = [x.PROCESSING_COMPLETE], oi = (e) => ri.includes(e.status), li = (e) => ii.includes(e.status), ci = (e) => ai.includes(e.status), In = (e) => j(e.options.server) && (j(e.options.server.process) || Oe(e.options.server.process)), di = (e) => ({
1108
1108
  GET_STATUS: () => {
1109
- const t = ce(e.items), { EMPTY: n, ERROR: s, BUSY: r, IDLE: a, READY: i } = ti;
1110
- return t.length === 0 ? n : t.some(ai) ? s : t.some(oi) ? r : t.some(li) ? i : a;
1109
+ const t = ce(e.items), { EMPTY: n, ERROR: s, BUSY: r, IDLE: a, READY: i } = ni;
1110
+ return t.length === 0 ? n : t.some(oi) ? s : t.some(li) ? r : t.some(ci) ? i : a;
1111
1111
  },
1112
- GET_ITEM: (t) => Oe(e.items, t),
1113
- GET_ACTIVE_ITEM: (t) => Oe(ce(e.items), t),
1112
+ GET_ITEM: (t) => Se(e.items, t),
1113
+ GET_ACTIVE_ITEM: (t) => Se(ce(e.items), t),
1114
1114
  GET_ACTIVE_ITEMS: () => ce(e.items),
1115
1115
  GET_ITEMS: () => e.items,
1116
1116
  GET_ITEM_NAME: (t) => {
1117
- const n = Oe(e.items, t);
1117
+ const n = Se(e.items, t);
1118
1118
  return n ? n.filename : null;
1119
1119
  },
1120
1120
  GET_ITEM_SIZE: (t) => {
1121
- const n = Oe(e.items, t);
1121
+ const n = Se(e.items, t);
1122
1122
  return n ? n.fileSize : null;
1123
1123
  },
1124
1124
  GET_STYLES: () => Object.keys(e.options).filter((t) => /^style/.test(t)).map((t) => ({
1125
1125
  name: t,
1126
1126
  value: e.options[t]
1127
1127
  })),
1128
- GET_PANEL_ASPECT_RATIO: () => /circle/.test(e.options.stylePanelLayout) ? 1 : cs(e.options.stylePanelAspectRatio),
1128
+ GET_PANEL_ASPECT_RATIO: () => /circle/.test(e.options.stylePanelLayout) ? 1 : ds(e.options.stylePanelAspectRatio),
1129
1129
  GET_ITEM_PANEL_ASPECT_RATIO: () => e.options.styleItemPanelAspectRatio,
1130
1130
  GET_ITEMS_BY_STATUS: (t) => ce(e.items).filter((n) => n.status === t),
1131
1131
  GET_TOTAL_ITEMS: () => ce(e.items).length,
1132
- SHOULD_UPDATE_FILE_INPUT: () => e.options.storeAsFile && ni() && !pn(e),
1133
- IS_ASYNC: () => pn(e),
1132
+ SHOULD_UPDATE_FILE_INPUT: () => e.options.storeAsFile && si() && !In(e),
1133
+ IS_ASYNC: () => In(e),
1134
1134
  GET_FILE_SIZE_LABELS: (t) => ({
1135
1135
  labelBytes: t("GET_LABEL_FILE_SIZE_BYTES") || void 0,
1136
1136
  labelKilobytes: t("GET_LABEL_FILE_SIZE_KILOBYTES") || void 0,
1137
1137
  labelMegabytes: t("GET_LABEL_FILE_SIZE_MEGABYTES") || void 0,
1138
1138
  labelGigabytes: t("GET_LABEL_FILE_SIZE_GIGABYTES") || void 0
1139
1139
  })
1140
- }), di = (e) => {
1140
+ }), ui = (e) => {
1141
1141
  const t = ce(e.items).length;
1142
1142
  if (!e.options.allowMultiple)
1143
1143
  return t === 0;
1144
1144
  const n = e.options.maxFiles;
1145
1145
  return n === null || t < n;
1146
- }, ds = (e, t, n) => Math.max(Math.min(n, e), t), ui = (e, t, n) => e.splice(t, 0, n), fi = (e, t, n) => Ie(t) ? null : typeof n > "u" ? (e.push(t), t) : (n = ds(n, 0, e.length), ui(e, n, t), t), Lt = (e) => /^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(
1146
+ }, us = (e, t, n) => Math.max(Math.min(n, e), t), fi = (e, t, n) => e.splice(t, 0, n), Ei = (e, t, n) => Ie(t) ? null : typeof n > "u" ? (e.push(t), t) : (n = us(n, 0, e.length), fi(e, n, t), t), Pt = (e) => /^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(
1147
1147
  e
1148
- ), je = (e) => `${e}`.split("/").pop().split("?").shift(), It = (e) => e.split(".").pop(), Ei = (e) => {
1148
+ ), Xe = (e) => `${e}`.split("/").pop().split("?").shift(), mt = (e) => e.split(".").pop(), pi = (e) => {
1149
1149
  if (typeof e != "string")
1150
1150
  return "";
1151
1151
  const t = e.split("/").pop();
1152
1152
  return /svg/.test(t) ? "svg" : /zip|compressed/.test(t) ? "zip" : /plain/.test(t) ? "txt" : /msword/.test(t) ? "doc" : /[a-z]+/.test(t) ? t === "jpeg" ? "jpg" : t : "";
1153
- }, Be = (e, t = "") => (t + e).slice(-t.length), us = (e = /* @__PURE__ */ new Date()) => `${e.getFullYear()}-${Be(e.getMonth() + 1, "00")}-${Be(
1153
+ }, We = (e, t = "") => (t + e).slice(-t.length), fs = (e = /* @__PURE__ */ new Date()) => `${e.getFullYear()}-${We(e.getMonth() + 1, "00")}-${We(
1154
1154
  e.getDate(),
1155
1155
  "00"
1156
- )}_${Be(e.getHours(), "00")}-${Be(e.getMinutes(), "00")}-${Be(
1156
+ )}_${We(e.getHours(), "00")}-${We(e.getMinutes(), "00")}-${We(
1157
1157
  e.getSeconds(),
1158
1158
  "00"
1159
- )}`, Ge = (e, t, n = null, s = null) => {
1159
+ )}`, Fe = (e, t, n = null, s = null) => {
1160
1160
  const r = typeof n == "string" ? e.slice(0, e.size, n) : e.slice(0, e.size, e.type);
1161
- return r.lastModifiedDate = /* @__PURE__ */ new Date(), e._relativePath && (r._relativePath = e._relativePath), Q(t) || (t = us()), t && s === null && It(t) ? r.name = t : (s = s || Ei(r.type), r.name = t + (s ? "." + s : "")), r;
1162
- }, pi = () => window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder, fs = (e, t) => {
1163
- const n = pi();
1161
+ return r.lastModifiedDate = /* @__PURE__ */ new Date(), e._relativePath && (r._relativePath = e._relativePath), Q(t) || (t = fs()), t && s === null && mt(t) ? r.name = t : (s = s || pi(r.type), r.name = t + (s ? "." + s : "")), r;
1162
+ }, Ii = () => window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder, Es = (e, t) => {
1163
+ const n = Ii();
1164
1164
  if (n) {
1165
1165
  const s = new n();
1166
1166
  return s.append(e), s.getBlob(t);
@@ -1168,25 +1168,25 @@ const ni = () => {
1168
1168
  return new Blob([e], {
1169
1169
  type: t
1170
1170
  });
1171
- }, Ii = (e, t) => {
1171
+ }, _i = (e, t) => {
1172
1172
  const n = new ArrayBuffer(e.length), s = new Uint8Array(n);
1173
1173
  for (let r = 0; r < e.length; r++)
1174
1174
  s[r] = e.charCodeAt(r);
1175
- return fs(n, t);
1176
- }, Es = (e) => (/^data:(.+);/.exec(e) || [])[1] || null, _i = (e) => e.split(",")[1].replace(/\s/g, ""), mi = (e) => atob(_i(e)), Ti = (e) => {
1177
- const t = Es(e), n = mi(e);
1178
- return Ii(n, t);
1179
- }, gi = (e, t, n) => Ge(Ti(e), t, null, n), hi = (e) => {
1175
+ return Es(n, t);
1176
+ }, ps = (e) => (/^data:(.+);/.exec(e) || [])[1] || null, mi = (e) => e.split(",")[1].replace(/\s/g, ""), Ti = (e) => atob(mi(e)), gi = (e) => {
1177
+ const t = ps(e), n = Ti(e);
1178
+ return _i(n, t);
1179
+ }, hi = (e, t, n) => Fe(gi(e), t, null, n), Ri = (e) => {
1180
1180
  if (!/^content-disposition:/i.test(e)) return null;
1181
1181
  const t = e.split(/filename=|filename\*=.+''/).splice(1).map((n) => n.trim().replace(/^["']|[;"']{0,2}$/g, "")).filter((n) => n.length);
1182
1182
  return t.length ? decodeURI(t[t.length - 1]) : null;
1183
- }, Ri = (e) => {
1183
+ }, Oi = (e) => {
1184
1184
  if (/content-length:/i.test(e)) {
1185
1185
  const t = e.match(/[0-9]+/)[0];
1186
1186
  return t ? parseInt(t, 10) : null;
1187
1187
  }
1188
1188
  return null;
1189
- }, Oi = (e) => /x-content-transfer-id:/i.test(e) && (e.split(":")[1] || "").trim() || null, Yt = (e) => {
1189
+ }, Si = (e) => /x-content-transfer-id:/i.test(e) && (e.split(":")[1] || "").trim() || null, Wt = (e) => {
1190
1190
  const t = {
1191
1191
  source: null,
1192
1192
  name: null,
@@ -1194,24 +1194,24 @@ const ni = () => {
1194
1194
  }, n = e.split(`
1195
1195
  `);
1196
1196
  for (let s of n) {
1197
- const r = hi(s);
1197
+ const r = Ri(s);
1198
1198
  if (r) {
1199
1199
  t.name = r;
1200
1200
  continue;
1201
1201
  }
1202
- const a = Ri(s);
1202
+ const a = Oi(s);
1203
1203
  if (a) {
1204
1204
  t.size = a;
1205
1205
  continue;
1206
1206
  }
1207
- const i = Oi(s);
1207
+ const i = Si(s);
1208
1208
  if (i) {
1209
1209
  t.source = i;
1210
1210
  continue;
1211
1211
  }
1212
1212
  }
1213
1213
  return t;
1214
- }, Si = (e) => {
1214
+ }, Di = (e) => {
1215
1215
  const t = {
1216
1216
  source: null,
1217
1217
  complete: !1,
@@ -1224,7 +1224,7 @@ const ni = () => {
1224
1224
  t.request && t.request.abort && t.request.abort();
1225
1225
  }, r = () => {
1226
1226
  const l = t.source;
1227
- i.fire("init", l), l instanceof File ? i.fire("load", l) : l instanceof Blob ? i.fire("load", Ge(l, l.name)) : Lt(l) ? i.fire("load", gi(l)) : a(l);
1227
+ i.fire("init", l), l instanceof File ? i.fire("load", l) : l instanceof Blob ? i.fire("load", Fe(l, l.name)) : Pt(l) ? i.fire("load", hi(l)) : a(l);
1228
1228
  }, a = (l) => {
1229
1229
  if (!e) {
1230
1230
  i.fire("error", {
@@ -1237,7 +1237,7 @@ const ni = () => {
1237
1237
  t.timestamp = Date.now(), t.request = e(
1238
1238
  l,
1239
1239
  (o) => {
1240
- t.duration = Date.now() - t.timestamp, t.complete = !0, o instanceof Blob && (o = Ge(o, o.name || je(l))), i.fire(
1240
+ t.duration = Date.now() - t.timestamp, t.complete = !0, o instanceof Blob && (o = Fe(o, o.name || Xe(l))), i.fire(
1241
1241
  "load",
1242
1242
  // if has received blob, we go with blob, if no response, we return null
1243
1243
  o instanceof Blob ? o : o ? o.body : null
@@ -1264,7 +1264,7 @@ const ni = () => {
1264
1264
  i.fire("abort");
1265
1265
  },
1266
1266
  (o) => {
1267
- const d = Yt(
1267
+ const d = Wt(
1268
1268
  typeof o == "string" ? o : o.headers
1269
1269
  );
1270
1270
  i.fire("meta", {
@@ -1275,7 +1275,7 @@ const ni = () => {
1275
1275
  }
1276
1276
  );
1277
1277
  }, i = {
1278
- ...pt(),
1278
+ ..._t(),
1279
1279
  setSource: (l) => t.source = l,
1280
1280
  getProgress: n,
1281
1281
  // file load progress
@@ -1285,7 +1285,7 @@ const ni = () => {
1285
1285
  // start load
1286
1286
  };
1287
1287
  return i;
1288
- }, In = (e) => /GET|HEAD/.test(e), Se = (e, t, n) => {
1288
+ }, _n = (e) => /GET|HEAD/.test(e), De = (e, t, n) => {
1289
1289
  const s = {
1290
1290
  onheaders: () => {
1291
1291
  },
@@ -1309,8 +1309,8 @@ const ni = () => {
1309
1309
  headers: {},
1310
1310
  withCredentials: !1,
1311
1311
  ...n
1312
- }, t = encodeURI(t), In(n.method) && e && (t = `${t}${encodeURIComponent(typeof e == "string" ? e : JSON.stringify(e))}`);
1313
- const i = new XMLHttpRequest(), l = In(n.method) ? i : i.upload;
1312
+ }, t = encodeURI(t), _n(n.method) && e && (t = `${t}${encodeURIComponent(typeof e == "string" ? e : JSON.stringify(e))}`);
1313
+ const i = new XMLHttpRequest(), l = _n(n.method) ? i : i.upload;
1314
1314
  return l.onprogress = (o) => {
1315
1315
  r || s.onprogress(o.lengthComputable, o.loaded, o.total);
1316
1316
  }, i.onreadystatechange = () => {
@@ -1319,7 +1319,7 @@ const ni = () => {
1319
1319
  i.status >= 200 && i.status < 300 ? s.onload(i) : s.onerror(i);
1320
1320
  }, i.onerror = () => s.onerror(i), i.onabort = () => {
1321
1321
  r = !0, s.onabort();
1322
- }, i.ontimeout = () => s.ontimeout(i), i.open(n.method, t, !0), xe(n.timeout) && (i.timeout = n.timeout), Object.keys(n.headers).forEach((o) => {
1322
+ }, i.ontimeout = () => s.ontimeout(i), i.open(n.method, t, !0), He(n.timeout) && (i.timeout = n.timeout), Object.keys(n.headers).forEach((o) => {
1323
1323
  const d = unescape(encodeURIComponent(n.headers[o]));
1324
1324
  i.setRequestHeader(o, d);
1325
1325
  }), n.responseType && (i.responseType = n.responseType), n.withCredentials && (i.withCredentials = !0), i.send(e), s;
@@ -1328,31 +1328,31 @@ const ni = () => {
1328
1328
  code: t,
1329
1329
  body: n,
1330
1330
  headers: s
1331
- }), De = (e) => (t) => {
1331
+ }), ye = (e) => (t) => {
1332
1332
  e(W("error", 0, "Timeout", t.getAllResponseHeaders()));
1333
- }, _n = (e) => /\?/.test(e), Ye = (...e) => {
1333
+ }, mn = (e) => /\?/.test(e), ze = (...e) => {
1334
1334
  let t = "";
1335
1335
  return e.forEach((n) => {
1336
- t += _n(t) && _n(n) ? n.replace(/\?/, "&") : n;
1336
+ t += mn(t) && mn(n) ? n.replace(/\?/, "&") : n;
1337
1337
  }), t;
1338
- }, gt = (e = "", t) => {
1338
+ }, Rt = (e = "", t) => {
1339
1339
  if (typeof t == "function")
1340
1340
  return t;
1341
1341
  if (!t || !Q(t.url))
1342
1342
  return null;
1343
1343
  const n = t.onload || ((r) => r), s = t.onerror || ((r) => null);
1344
1344
  return (r, a, i, l, o, d) => {
1345
- const c = Se(r, Ye(e, t.url), {
1345
+ const c = De(r, ze(e, t.url), {
1346
1346
  ...t,
1347
1347
  responseType: "blob"
1348
1348
  });
1349
1349
  return c.onload = (f) => {
1350
- const I = f.getAllResponseHeaders(), p = Yt(I).name || je(r);
1350
+ const I = f.getAllResponseHeaders(), p = Wt(I).name || Xe(r);
1351
1351
  a(
1352
1352
  W(
1353
1353
  "load",
1354
1354
  f.status,
1355
- t.method === "HEAD" ? null : Ge(n(f.response), p),
1355
+ t.method === "HEAD" ? null : Fe(n(f.response), p),
1356
1356
  I
1357
1357
  )
1358
1358
  );
@@ -1367,7 +1367,7 @@ const ni = () => {
1367
1367
  );
1368
1368
  }, c.onheaders = (f) => {
1369
1369
  d(W("headers", f.status, null, f.getAllResponseHeaders()));
1370
- }, c.ontimeout = De(i), c.onprogress = l, c.onabort = o, c;
1370
+ }, c.ontimeout = ye(i), c.onprogress = l, c.onabort = o, c;
1371
1371
  };
1372
1372
  }, se = {
1373
1373
  QUEUED: 0,
@@ -1375,20 +1375,20 @@ const ni = () => {
1375
1375
  PROCESSING: 2,
1376
1376
  ERROR: 3,
1377
1377
  WAITING: 4
1378
- }, Di = (e, t, n, s, r, a, i, l, o, d, c) => {
1378
+ }, yi = (e, t, n, s, r, a, i, l, o, d, c) => {
1379
1379
  const f = [], { chunkTransferId: I, chunkServer: p, chunkSize: u, chunkRetryDelays: _ } = c, T = {
1380
1380
  serverId: I,
1381
1381
  aborted: !1
1382
1382
  }, h = t.ondata || ((A) => A), E = t.onload || ((A, B) => B === "HEAD" ? A.getResponseHeader("Upload-Offset") : A.response), m = t.onerror || ((A) => null), R = (A) => {
1383
1383
  const B = new FormData();
1384
- X(r) && B.append(n, JSON.stringify(r));
1384
+ j(r) && B.append(n, JSON.stringify(r));
1385
1385
  const O = typeof t.headers == "function" ? t.headers(s, r) : {
1386
1386
  ...t.headers,
1387
1387
  "Upload-Length": s.size
1388
1388
  }, y = {
1389
1389
  ...t,
1390
1390
  headers: O
1391
- }, b = Se(h(B), Ye(e, t.url), y);
1391
+ }, b = De(h(B), ze(e, t.url), y);
1392
1392
  b.onload = (v) => A(E(v, y.method)), b.onerror = (v) => i(
1393
1393
  W(
1394
1394
  "error",
@@ -1396,14 +1396,14 @@ const ni = () => {
1396
1396
  m(v.response) || v.statusText,
1397
1397
  v.getAllResponseHeaders()
1398
1398
  )
1399
- ), b.ontimeout = De(i);
1399
+ ), b.ontimeout = ye(i);
1400
1400
  }, S = (A) => {
1401
- const B = Ye(e, p.url, T.serverId), y = {
1401
+ const B = ze(e, p.url, T.serverId), y = {
1402
1402
  headers: typeof t.headers == "function" ? t.headers(T.serverId) : {
1403
1403
  ...t.headers
1404
1404
  },
1405
1405
  method: "HEAD"
1406
- }, b = Se(null, B, y);
1406
+ }, b = De(null, B, y);
1407
1407
  b.onload = (v) => A(E(v, y.method)), b.onerror = (v) => i(
1408
1408
  W(
1409
1409
  "error",
@@ -1411,7 +1411,7 @@ const ni = () => {
1411
1411
  m(v.response) || v.statusText,
1412
1412
  v.getAllResponseHeaders()
1413
1413
  )
1414
- ), b.ontimeout = De(i);
1414
+ ), b.ontimeout = ye(i);
1415
1415
  }, M = Math.floor(s.size / u);
1416
1416
  for (let A = 0; A <= M; A++) {
1417
1417
  const B = A * u, O = s.slice(B, B + u, "application/offset+octet-stream");
@@ -1429,7 +1429,7 @@ const ni = () => {
1429
1429
  timeout: null
1430
1430
  };
1431
1431
  }
1432
- const N = () => a(T.serverId), D = (A) => A.status === se.QUEUED || A.status === se.ERROR, L = (A) => {
1432
+ const N = () => a(T.serverId), D = (A) => A.status === se.QUEUED || A.status === se.ERROR, w = (A) => {
1433
1433
  if (T.aborted) return;
1434
1434
  if (A = A || f.find(D), !A) {
1435
1435
  f.every((F) => F.status === se.COMPLETE) && N();
@@ -1437,20 +1437,20 @@ const ni = () => {
1437
1437
  }
1438
1438
  A.status = se.PROCESSING, A.progress = null;
1439
1439
  const B = p.ondata || ((F) => F), O = p.onerror || ((F) => null), y = p.onload || (() => {
1440
- }), b = Ye(e, p.url, T.serverId), v = typeof p.headers == "function" ? p.headers(A) : {
1440
+ }), b = ze(e, p.url, T.serverId), v = typeof p.headers == "function" ? p.headers(A) : {
1441
1441
  ...p.headers,
1442
1442
  "Content-Type": "application/offset+octet-stream",
1443
1443
  "Upload-Offset": A.offset,
1444
1444
  "Upload-Length": s.size,
1445
1445
  "Upload-Name": s.name
1446
- }, H = A.request = Se(B(A.data), b, {
1446
+ }, H = A.request = De(B(A.data), b, {
1447
1447
  ...p,
1448
1448
  headers: v
1449
1449
  });
1450
1450
  H.onload = (F) => {
1451
1451
  y(F, A.index, f.length), A.status = se.COMPLETE, A.request = null, C();
1452
- }, H.onprogress = (F, ge, Fe) => {
1453
- A.progress = F ? ge : null, w();
1452
+ }, H.onprogress = (F, he, Ye) => {
1453
+ A.progress = F ? he : null, P();
1454
1454
  }, H.onerror = (F) => {
1455
1455
  A.status = se.ERROR, A.request = null, A.error = O(F.response) || F.statusText, G(A) || i(
1456
1456
  W(
@@ -1461,19 +1461,19 @@ const ni = () => {
1461
1461
  )
1462
1462
  );
1463
1463
  }, H.ontimeout = (F) => {
1464
- A.status = se.ERROR, A.request = null, G(A) || De(i)(F);
1464
+ A.status = se.ERROR, A.request = null, G(A) || ye(i)(F);
1465
1465
  }, H.onabort = () => {
1466
1466
  A.status = se.QUEUED, A.request = null, o();
1467
1467
  };
1468
1468
  }, G = (A) => A.retries.length === 0 ? !1 : (A.status = se.WAITING, clearTimeout(A.timeout), A.timeout = setTimeout(() => {
1469
- L(A);
1470
- }, A.retries.shift()), !0), w = () => {
1469
+ w(A);
1470
+ }, A.retries.shift()), !0), P = () => {
1471
1471
  const A = f.reduce((O, y) => O === null || y.progress === null ? null : O + y.progress, 0);
1472
1472
  if (A === null) return l(!1, 0, 0);
1473
1473
  const B = f.reduce((O, y) => O + y.size, 0);
1474
1474
  l(!0, A, B);
1475
1475
  }, C = () => {
1476
- f.filter((B) => B.status === se.PROCESSING).length >= 1 || L();
1476
+ f.filter((B) => B.status === se.PROCESSING).length >= 1 || w();
1477
1477
  }, V = () => {
1478
1478
  f.forEach((A) => {
1479
1479
  clearTimeout(A.timeout), A.request && A.request.abort();
@@ -1490,11 +1490,11 @@ const ni = () => {
1490
1490
  T.aborted = !0, V();
1491
1491
  }
1492
1492
  };
1493
- }, yi = (e, t, n, s) => (r, a, i, l, o, d, c) => {
1493
+ }, Ai = (e, t, n, s) => (r, a, i, l, o, d, c) => {
1494
1494
  if (!r) return;
1495
1495
  const f = s.chunkUploads, I = f && r.size > s.chunkSize, p = f && (I || s.chunkForce);
1496
1496
  if (r instanceof Blob && p)
1497
- return Di(
1497
+ return yi(
1498
1498
  e,
1499
1499
  t,
1500
1500
  n,
@@ -1514,14 +1514,14 @@ const ni = () => {
1514
1514
  headers: h
1515
1515
  };
1516
1516
  var m = new FormData();
1517
- X(a) && m.append(n, JSON.stringify(a)), (r instanceof Blob ? [{ name: null, file: r }] : r).forEach((S) => {
1517
+ j(a) && m.append(n, JSON.stringify(a)), (r instanceof Blob ? [{ name: null, file: r }] : r).forEach((S) => {
1518
1518
  m.append(
1519
1519
  n,
1520
1520
  S.file,
1521
1521
  S.name === null ? S.file.name : `${S.name}${S.file.name}`
1522
1522
  );
1523
1523
  });
1524
- const R = Se(u(m), Ye(e, t.url), E);
1524
+ const R = De(u(m), ze(e, t.url), E);
1525
1525
  return R.onload = (S) => {
1526
1526
  i(W("load", S.status, _(S.response), S.getAllResponseHeaders()));
1527
1527
  }, R.onerror = (S) => {
@@ -1533,15 +1533,15 @@ const ni = () => {
1533
1533
  S.getAllResponseHeaders()
1534
1534
  )
1535
1535
  );
1536
- }, R.ontimeout = De(l), R.onprogress = o, R.onabort = d, R;
1537
- }, Ai = (e = "", t, n, s) => typeof t == "function" ? (...r) => t(n, ...r, s) : !t || !Q(t.url) ? null : yi(e, t, n, s), Ue = (e = "", t) => {
1536
+ }, R.ontimeout = ye(l), R.onprogress = o, R.onabort = d, R;
1537
+ }, Mi = (e = "", t, n, s) => typeof t == "function" ? (...r) => t(n, ...r, s) : !t || !Q(t.url) ? null : Ai(e, t, n, s), qe = (e = "", t) => {
1538
1538
  if (typeof t == "function")
1539
1539
  return t;
1540
1540
  if (!t || !Q(t.url))
1541
1541
  return (r, a) => a();
1542
1542
  const n = t.onload || ((r) => r), s = t.onerror || ((r) => null);
1543
1543
  return (r, a, i) => {
1544
- const l = Se(
1544
+ const l = De(
1545
1545
  r,
1546
1546
  e + t.url,
1547
1547
  t
@@ -1565,12 +1565,12 @@ const ni = () => {
1565
1565
  o.getAllResponseHeaders()
1566
1566
  )
1567
1567
  );
1568
- }, l.ontimeout = De(i), l;
1568
+ }, l.ontimeout = ye(i), l;
1569
1569
  };
1570
- }, ps = (e = 0, t = 1) => e + Math.random() * (t - e), Mi = (e, t = 1e3, n = 0, s = 25, r = 250) => {
1570
+ }, Is = (e = 0, t = 1) => e + Math.random() * (t - e), Li = (e, t = 1e3, n = 0, s = 25, r = 250) => {
1571
1571
  let a = null;
1572
1572
  const i = Date.now(), l = () => {
1573
- let o = Date.now() - i, d = ps(s, r);
1573
+ let o = Date.now() - i, d = Is(s, r);
1574
1574
  o + d > t && (d = o + d - t);
1575
1575
  let c = o / t;
1576
1576
  if (c >= 1 || document.hidden) {
@@ -1584,7 +1584,7 @@ const ni = () => {
1584
1584
  clearTimeout(a);
1585
1585
  }
1586
1586
  };
1587
- }, Li = (e, t) => {
1587
+ }, wi = (e, t) => {
1588
1588
  const n = {
1589
1589
  complete: !1,
1590
1590
  perceivedProgress: 0,
@@ -1601,13 +1601,13 @@ const ni = () => {
1601
1601
  }, p = () => {
1602
1602
  n.complete = !0, d.fire("load-perceived", n.response.body);
1603
1603
  };
1604
- d.fire("start"), n.timestamp = Date.now(), n.perceivedPerformanceUpdater = Mi(
1604
+ d.fire("start"), n.timestamp = Date.now(), n.perceivedPerformanceUpdater = Li(
1605
1605
  (u) => {
1606
1606
  n.perceivedProgress = u, n.perceivedDuration = Date.now() - n.timestamp, I(), n.response && n.perceivedProgress === 1 && !n.complete && p();
1607
1607
  },
1608
1608
  // random delay as in a list of files you start noticing
1609
1609
  // files uploading at the exact same speed
1610
- s ? ps(750, 1500) : 0
1610
+ s ? Is(750, 1500) : 0
1611
1611
  ), n.request = e(
1612
1612
  // the file to process
1613
1613
  c,
@@ -1617,7 +1617,7 @@ const ni = () => {
1617
1617
  // load expects the body to be a server id if
1618
1618
  // you want to make use of revert
1619
1619
  (u) => {
1620
- n.response = X(u) ? u : {
1620
+ n.response = j(u) ? u : {
1621
1621
  type: "load",
1622
1622
  code: 200,
1623
1623
  body: `${u}`,
@@ -1628,7 +1628,7 @@ const ni = () => {
1628
1628
  (u) => {
1629
1629
  n.perceivedPerformanceUpdater.clear(), d.fire(
1630
1630
  "error",
1631
- X(u) ? u : {
1631
+ j(u) ? u : {
1632
1632
  type: "error",
1633
1633
  code: 0,
1634
1634
  body: `${u}`
@@ -1653,7 +1653,7 @@ const ni = () => {
1653
1653
  }, i = () => {
1654
1654
  a(), n.complete = !1, n.perceivedProgress = 0, n.progress = 0, n.timestamp = null, n.perceivedDuration = 0, n.duration = 0, n.request = null, n.response = null;
1655
1655
  }, l = s ? () => n.progress ? Math.min(n.progress, n.perceivedProgress) : null : () => n.progress || null, o = s ? () => Math.min(n.duration, n.perceivedDuration) : () => n.duration, d = {
1656
- ...pt(),
1656
+ ..._t(),
1657
1657
  process: r,
1658
1658
  // start processing file
1659
1659
  abort: a,
@@ -1663,24 +1663,24 @@ const ni = () => {
1663
1663
  reset: i
1664
1664
  };
1665
1665
  return d;
1666
- }, Is = (e) => e.substring(0, e.lastIndexOf(".")) || e, wi = (e) => {
1666
+ }, _s = (e) => e.substring(0, e.lastIndexOf(".")) || e, Pi = (e) => {
1667
1667
  let t = [e.name, e.size, e.type];
1668
- return e instanceof Blob || Lt(e) ? t[0] = e.name || us() : Lt(e) ? (t[1] = e.length, t[2] = Es(e)) : Q(e) && (t[0] = je(e), t[1] = 0, t[2] = "application/octet-stream"), {
1668
+ return e instanceof Blob || Pt(e) ? t[0] = e.name || fs() : Pt(e) ? (t[1] = e.length, t[2] = ps(e)) : Q(e) && (t[0] = Xe(e), t[1] = 0, t[2] = "application/octet-stream"), {
1669
1669
  name: t[0],
1670
1670
  size: t[1],
1671
1671
  type: t[2]
1672
1672
  };
1673
- }, ye = (e) => !!(e instanceof File || e instanceof Blob && e.name), _s = (e) => {
1674
- if (!X(e)) return e;
1675
- const t = ut(e) ? [] : {};
1673
+ }, Ae = (e) => !!(e instanceof File || e instanceof Blob && e.name), ms = (e) => {
1674
+ if (!j(e)) return e;
1675
+ const t = Et(e) ? [] : {};
1676
1676
  for (const n in e) {
1677
1677
  if (!e.hasOwnProperty(n)) continue;
1678
1678
  const s = e[n];
1679
- t[n] = s && X(s) ? _s(s) : s;
1679
+ t[n] = s && j(s) ? ms(s) : s;
1680
1680
  }
1681
1681
  return t;
1682
- }, Pi = (e = null, t = null, n = null) => {
1683
- const s = Ut(), r = {
1682
+ }, Ci = (e = null, t = null, n = null) => {
1683
+ const s = Vt(), r = {
1684
1684
  // is archived
1685
1685
  archived: !1,
1686
1686
  // if is frozen, no longer fires events
@@ -1704,36 +1704,36 @@ const ni = () => {
1704
1704
  activeProcessor: null
1705
1705
  };
1706
1706
  let a = null;
1707
- const i = {}, l = (D) => r.status = D, o = (D, ...L) => {
1708
- r.released || r.frozen || M.fire(D, ...L);
1709
- }, d = () => It(r.file.name), c = () => r.file.type, f = () => r.file.size, I = () => r.file, p = (D, L, G) => {
1707
+ const i = {}, l = (D) => r.status = D, o = (D, ...w) => {
1708
+ r.released || r.frozen || M.fire(D, ...w);
1709
+ }, d = () => mt(r.file.name), c = () => r.file.type, f = () => r.file.size, I = () => r.file, p = (D, w, G) => {
1710
1710
  if (r.source = D, M.fireSync("init"), r.file) {
1711
1711
  M.fireSync("load-skip");
1712
1712
  return;
1713
1713
  }
1714
- r.file = wi(D), L.on("init", () => {
1714
+ r.file = Pi(D), w.on("init", () => {
1715
1715
  o("load-init");
1716
- }), L.on("meta", (w) => {
1717
- r.file.size = w.size, r.file.filename = w.filename, w.source && (e = k.LIMBO, r.serverFileReference = w.source, r.status = x.PROCESSING_COMPLETE), o("load-meta");
1718
- }), L.on("progress", (w) => {
1719
- l(x.LOADING), o("load-progress", w);
1720
- }), L.on("error", (w) => {
1721
- l(x.LOAD_ERROR), o("load-request-error", w);
1722
- }), L.on("abort", () => {
1716
+ }), w.on("meta", (P) => {
1717
+ r.file.size = P.size, r.file.filename = P.filename, P.source && (e = k.LIMBO, r.serverFileReference = P.source, r.status = x.PROCESSING_COMPLETE), o("load-meta");
1718
+ }), w.on("progress", (P) => {
1719
+ l(x.LOADING), o("load-progress", P);
1720
+ }), w.on("error", (P) => {
1721
+ l(x.LOAD_ERROR), o("load-request-error", P);
1722
+ }), w.on("abort", () => {
1723
1723
  l(x.INIT), o("load-abort");
1724
- }), L.on("load", (w) => {
1724
+ }), w.on("load", (P) => {
1725
1725
  r.activeLoader = null;
1726
1726
  const C = (A) => {
1727
- r.file = ye(A) ? A : r.file, e === k.LIMBO && r.serverFileReference ? l(x.PROCESSING_COMPLETE) : l(x.IDLE), o("load");
1727
+ r.file = Ae(A) ? A : r.file, e === k.LIMBO && r.serverFileReference ? l(x.PROCESSING_COMPLETE) : l(x.IDLE), o("load");
1728
1728
  }, V = (A) => {
1729
- r.file = w, o("load-meta"), l(x.LOAD_ERROR), o("load-file-error", A);
1729
+ r.file = P, o("load-meta"), l(x.LOAD_ERROR), o("load-file-error", A);
1730
1730
  };
1731
1731
  if (r.serverFileReference) {
1732
- C(w);
1732
+ C(P);
1733
1733
  return;
1734
1734
  }
1735
- G(w, C, V);
1736
- }), L.setSource(D), r.activeLoader = L, L.load();
1735
+ G(P, C, V);
1736
+ }), w.setSource(D), r.activeLoader = w, w.load();
1737
1737
  }, u = () => {
1738
1738
  r.activeLoader && r.activeLoader.load();
1739
1739
  }, _ = () => {
@@ -1742,14 +1742,14 @@ const ni = () => {
1742
1742
  return;
1743
1743
  }
1744
1744
  l(x.INIT), o("load-abort");
1745
- }, T = (D, L) => {
1745
+ }, T = (D, w) => {
1746
1746
  if (r.processingAborted) {
1747
1747
  r.processingAborted = !1;
1748
1748
  return;
1749
1749
  }
1750
1750
  if (l(x.PROCESSING), a = null, !(r.file instanceof Blob)) {
1751
1751
  M.on("load", () => {
1752
- T(D, L);
1752
+ T(D, w);
1753
1753
  });
1754
1754
  return;
1755
1755
  }
@@ -1770,8 +1770,8 @@ const ni = () => {
1770
1770
  });
1771
1771
  const G = (C) => {
1772
1772
  r.archived || D.process(C, { ...i });
1773
- }, w = console.error;
1774
- L(r.file, G, w), r.activeProcessor = D;
1773
+ }, P = console.error;
1774
+ w(r.file, G, P), r.activeProcessor = D;
1775
1775
  }, h = () => {
1776
1776
  r.processingAborted = !1, l(x.PROCESSING_QUEUED);
1777
1777
  }, E = () => new Promise((D) => {
@@ -1782,7 +1782,7 @@ const ni = () => {
1782
1782
  a = () => {
1783
1783
  D();
1784
1784
  }, r.activeProcessor.abort();
1785
- }), m = (D, L) => new Promise((G, w) => {
1785
+ }), m = (D, w) => new Promise((G, P) => {
1786
1786
  const C = r.serverFileReference !== null ? r.serverFileReference : r.transferId;
1787
1787
  if (C === null) {
1788
1788
  G();
@@ -1794,17 +1794,17 @@ const ni = () => {
1794
1794
  r.serverFileReference = null, r.transferId = null, G();
1795
1795
  },
1796
1796
  (V) => {
1797
- if (!L) {
1797
+ if (!w) {
1798
1798
  G();
1799
1799
  return;
1800
1800
  }
1801
- l(x.PROCESSING_REVERT_ERROR), o("process-revert-error"), w(V);
1801
+ l(x.PROCESSING_REVERT_ERROR), o("process-revert-error"), P(V);
1802
1802
  }
1803
1803
  ), l(x.IDLE), o("process-revert");
1804
- }), R = (D, L, G) => {
1805
- const w = D.split("."), C = w[0], V = w.pop();
1804
+ }), R = (D, w, G) => {
1805
+ const P = D.split("."), C = P[0], V = P.pop();
1806
1806
  let A = i;
1807
- w.forEach((B) => A = A[B]), JSON.stringify(A[V]) !== JSON.stringify(L) && (A[V] = L, o("metadata-update", {
1807
+ P.forEach((B) => A = A[B]), JSON.stringify(A[V]) !== JSON.stringify(w) && (A[V] = w, o("metadata-update", {
1808
1808
  key: C,
1809
1809
  value: i[C],
1810
1810
  silent: G
@@ -1816,24 +1816,24 @@ const ni = () => {
1816
1816
  transferId: { get: () => r.transferId },
1817
1817
  status: { get: () => r.status },
1818
1818
  filename: { get: () => r.file.name },
1819
- filenameWithoutExtension: { get: () => Is(r.file.name) },
1819
+ filenameWithoutExtension: { get: () => _s(r.file.name) },
1820
1820
  fileExtension: { get: d },
1821
1821
  fileType: { get: c },
1822
1822
  fileSize: { get: f },
1823
1823
  file: { get: I },
1824
1824
  relativePath: { get: () => r.file._relativePath },
1825
1825
  source: { get: () => r.source },
1826
- getMetadata: (D) => _s(D ? i[D] : i),
1827
- setMetadata: (D, L, G) => {
1828
- if (X(D)) {
1829
- const w = D;
1830
- return Object.keys(w).forEach((C) => {
1831
- R(C, w[C], L);
1826
+ getMetadata: (D) => ms(D ? i[D] : i),
1827
+ setMetadata: (D, w, G) => {
1828
+ if (j(D)) {
1829
+ const P = D;
1830
+ return Object.keys(P).forEach((C) => {
1831
+ R(C, P[C], w);
1832
1832
  }), D;
1833
1833
  }
1834
- return R(D, L, G), L;
1834
+ return R(D, w, G), w;
1835
1835
  },
1836
- extend: (D, L) => N[D] = L,
1836
+ extend: (D, w) => N[D] = w,
1837
1837
  abortLoad: _,
1838
1838
  retryLoad: u,
1839
1839
  requestProcessing: h,
@@ -1841,7 +1841,7 @@ const ni = () => {
1841
1841
  load: p,
1842
1842
  process: T,
1843
1843
  revert: m,
1844
- ...pt(),
1844
+ ..._t(),
1845
1845
  freeze: () => r.frozen = !0,
1846
1846
  release: () => r.released = !0,
1847
1847
  released: { get: () => r.released },
@@ -1851,28 +1851,28 @@ const ni = () => {
1851
1851
  setFile: (D) => r.file = D
1852
1852
  }, N = Te(M);
1853
1853
  return N;
1854
- }, Ci = (e, t) => Ie(t) ? 0 : Q(t) ? e.findIndex((n) => n.id === t) : -1, mn = (e, t) => {
1855
- const n = Ci(e, t);
1854
+ }, bi = (e, t) => Ie(t) ? 0 : Q(t) ? e.findIndex((n) => n.id === t) : -1, Tn = (e, t) => {
1855
+ const n = bi(e, t);
1856
1856
  if (!(n < 0))
1857
1857
  return e[n] || null;
1858
- }, Tn = (e, t, n, s, r, a) => {
1859
- const i = Se(null, e, {
1858
+ }, gn = (e, t, n, s, r, a) => {
1859
+ const i = De(null, e, {
1860
1860
  method: "GET",
1861
1861
  responseType: "blob"
1862
1862
  });
1863
1863
  return i.onload = (l) => {
1864
- const o = l.getAllResponseHeaders(), d = Yt(o).name || je(e);
1865
- t(W("load", l.status, Ge(l.response, d), o));
1864
+ const o = l.getAllResponseHeaders(), d = Wt(o).name || Xe(e);
1865
+ t(W("load", l.status, Fe(l.response, d), o));
1866
1866
  }, i.onerror = (l) => {
1867
1867
  n(W("error", l.status, l.statusText, l.getAllResponseHeaders()));
1868
1868
  }, i.onheaders = (l) => {
1869
1869
  a(W("headers", l.status, null, l.getAllResponseHeaders()));
1870
- }, i.ontimeout = De(n), i.onprogress = s, i.onabort = r, i;
1871
- }, gn = (e) => (e.indexOf("//") === 0 && (e = location.protocol + e), e.toLowerCase().replace("blob:", "").replace(/([a-z])?:\/\//, "$1").split("/")[0]), bi = (e) => (e.indexOf(":") > -1 || e.indexOf("//") > -1) && gn(location.href) !== gn(e), Ke = (e) => (...t) => Re(e) ? e(...t) : e, Ni = (e) => !ye(e.file), ht = (e, t) => {
1870
+ }, i.ontimeout = ye(n), i.onprogress = s, i.onabort = r, i;
1871
+ }, hn = (e) => (e.indexOf("//") === 0 && (e = location.protocol + e), e.toLowerCase().replace("blob:", "").replace(/([a-z])?:\/\//, "$1").split("/")[0]), Ni = (e) => (e.indexOf(":") > -1 || e.indexOf("//") > -1) && hn(location.href) !== hn(e), Ke = (e) => (...t) => Oe(e) ? e(...t) : e, vi = (e) => !Ae(e.file), Ot = (e, t) => {
1872
1872
  clearTimeout(t.listUpdateTimeout), t.listUpdateTimeout = setTimeout(() => {
1873
1873
  e("DID_UPDATE_ITEMS", { items: ce(t.items) });
1874
1874
  }, 0);
1875
- }, hn = (e, ...t) => new Promise((n) => {
1875
+ }, Rn = (e, ...t) => new Promise((n) => {
1876
1876
  if (!e)
1877
1877
  return n(!0);
1878
1878
  const s = e(...t);
@@ -1881,7 +1881,7 @@ const ni = () => {
1881
1881
  if (typeof s == "boolean")
1882
1882
  return n(s);
1883
1883
  typeof s.then == "function" && s.then(n);
1884
- }), Rt = (e, t) => {
1884
+ }), St = (e, t) => {
1885
1885
  e.items.sort((n, s) => t(ee(n), ee(s)));
1886
1886
  }, re = (e, t) => ({
1887
1887
  query: n,
@@ -1891,7 +1891,7 @@ const ni = () => {
1891
1891
  },
1892
1892
  ...a
1893
1893
  } = {}) => {
1894
- const i = Oe(e.items, n);
1894
+ const i = Se(e.items, n);
1895
1895
  if (!i) {
1896
1896
  r({
1897
1897
  error: W("error", 0, "Item not found"),
@@ -1900,7 +1900,7 @@ const ni = () => {
1900
1900
  return;
1901
1901
  }
1902
1902
  t(i, s, r, a || {});
1903
- }, vi = (e, t, n) => ({
1903
+ }, Gi = (e, t, n) => ({
1904
1904
  /**
1905
1905
  * Aborts all ongoing processes
1906
1906
  */
@@ -1930,7 +1930,7 @@ const ni = () => {
1930
1930
  },
1931
1931
  DID_UPDATE_ITEM_METADATA: ({ id: s, action: r, change: a }) => {
1932
1932
  a.silent || (clearTimeout(n.itemUpdateTimeout), n.itemUpdateTimeout = setTimeout(() => {
1933
- const i = mn(n.items, s);
1933
+ const i = Tn(n.items, s);
1934
1934
  if (!t("IS_ASYNC")) {
1935
1935
  le("SHOULD_PREPARE_OUTPUT", !1, {
1936
1936
  item: i,
@@ -1964,7 +1964,7 @@ const ni = () => {
1964
1964
  }, 32);
1965
1965
  }, o = (c) => {
1966
1966
  i.revert(
1967
- Ue(n.options.server.url, n.options.server.revert),
1967
+ qe(n.options.server.url, n.options.server.revert),
1968
1968
  t("GET_FORCE_REVERT")
1969
1969
  ).then(c ? l : () => {
1970
1970
  }).catch(() => {
@@ -1981,13 +1981,13 @@ const ni = () => {
1981
1981
  }, 0));
1982
1982
  },
1983
1983
  MOVE_ITEM: ({ query: s, index: r }) => {
1984
- const a = Oe(n.items, s);
1984
+ const a = Se(n.items, s);
1985
1985
  if (!a) return;
1986
1986
  const i = n.items.indexOf(a);
1987
- r = ds(r, 0, n.items.length - 1), i !== r && n.items.splice(r, 0, n.items.splice(i, 1)[0]);
1987
+ r = us(r, 0, n.items.length - 1), i !== r && n.items.splice(r, 0, n.items.splice(i, 1)[0]);
1988
1988
  },
1989
1989
  SORT: ({ compare: s }) => {
1990
- Rt(n, s), e("DID_SORT_ITEMS", {
1990
+ St(n, s), e("DID_SORT_ITEMS", {
1991
1991
  items: t("GET_ACTIVE_ITEMS")
1992
1992
  });
1993
1993
  },
@@ -1999,7 +1999,7 @@ const ni = () => {
1999
1999
  const p = t("GET_ITEM_INSERT_LOCATION"), u = t("GET_TOTAL_ITEMS");
2000
2000
  o = p === "before" ? 0 : u;
2001
2001
  }
2002
- const d = t("GET_IGNORED_FILES"), c = (p) => ye(p) ? !d.includes(p.name.toLowerCase()) : !Ie(p), I = s.filter(c).map(
2002
+ const d = t("GET_IGNORED_FILES"), c = (p) => Ae(p) ? !d.includes(p.name.toLowerCase()) : !Ie(p), I = s.filter(c).map(
2003
2003
  (p) => new Promise((u, _) => {
2004
2004
  e("ADD_ITEM", {
2005
2005
  interactionMethod: a,
@@ -2035,9 +2035,9 @@ const ni = () => {
2035
2035
  });
2036
2036
  return;
2037
2037
  }
2038
- if (ye(s) && n.options.ignoredFiles.includes(s.name.toLowerCase()))
2038
+ if (Ae(s) && n.options.ignoredFiles.includes(s.name.toLowerCase()))
2039
2039
  return;
2040
- if (!di(n)) {
2040
+ if (!ui(n)) {
2041
2041
  if (n.options.allowMultiple || !n.options.allowMultiple && !n.options.allowReplace) {
2042
2042
  const E = W("warning", 0, "Max files");
2043
2043
  e("DID_THROW_MAX_FILES", {
@@ -2050,7 +2050,7 @@ const ni = () => {
2050
2050
  if (h.status === x.PROCESSING_COMPLETE || h.status === x.PROCESSING_REVERT_ERROR) {
2051
2051
  const E = t("GET_FORCE_REVERT");
2052
2052
  if (h.revert(
2053
- Ue(n.options.server.url, n.options.server.revert),
2053
+ qe(n.options.server.url, n.options.server.revert),
2054
2054
  E
2055
2055
  ).then(() => {
2056
2056
  E && e("ADD_ITEM", {
@@ -2066,7 +2066,7 @@ const ni = () => {
2066
2066
  }
2067
2067
  e("REMOVE_ITEM", { query: h.id });
2068
2068
  }
2069
- const d = o.type === "local" ? k.LOCAL : o.type === "limbo" ? k.LIMBO : k.INPUT, c = Pi(
2069
+ const d = o.type === "local" ? k.LOCAL : o.type === "limbo" ? k.LIMBO : k.INPUT, c = Ci(
2070
2070
  // where did this file come from
2071
2071
  d,
2072
2072
  // an input file never has a server file reference
@@ -2078,7 +2078,7 @@ const ni = () => {
2078
2078
  c.setMetadata(h, o.metadata[h]);
2079
2079
  }), Le("DID_CREATE_ITEM", c, { query: t, dispatch: e });
2080
2080
  const f = t("GET_ITEM_INSERT_LOCATION");
2081
- n.options.itemInsertLocationFreedom || (r = f === "before" ? -1 : n.items.length), fi(n.items, c, r), Re(f) && s && Rt(n, f);
2081
+ n.options.itemInsertLocationFreedom || (r = f === "before" ? -1 : n.items.length), Ei(n.items, c, r), Oe(f) && s && St(n, f);
2082
2082
  const I = c.id;
2083
2083
  c.on("init", () => {
2084
2084
  e("DID_INIT_ITEM", { id: I });
@@ -2119,7 +2119,7 @@ const ni = () => {
2119
2119
  e("REMOVE_ITEM", { query: I });
2120
2120
  }), c.on("load-skip", () => {
2121
2121
  c.on("metadata-update", (h) => {
2122
- ye(c.file) && e("DID_UPDATE_ITEM_METADATA", { id: I, change: h });
2122
+ Ae(c.file) && e("DID_UPDATE_ITEM_METADATA", { id: I, change: h });
2123
2123
  }), e("COMPLETE_LOAD_ITEM", {
2124
2124
  query: I,
2125
2125
  item: c,
@@ -2150,7 +2150,7 @@ const ni = () => {
2150
2150
  source: s,
2151
2151
  success: i
2152
2152
  }
2153
- }), ht(e, n);
2153
+ }), Ot(e, n);
2154
2154
  };
2155
2155
  if (m) {
2156
2156
  e(
@@ -2171,7 +2171,7 @@ const ni = () => {
2171
2171
  );
2172
2172
  };
2173
2173
  le("DID_LOAD_ITEM", c, { query: t, dispatch: e }).then(() => {
2174
- hn(t("GET_BEFORE_ADD_FILE"), ee(c)).then(
2174
+ Rn(t("GET_BEFORE_ADD_FILE"), ee(c)).then(
2175
2175
  h
2176
2176
  );
2177
2177
  }).catch((E) => {
@@ -2214,18 +2214,18 @@ const ni = () => {
2214
2214
  e("DID_ABORT_ITEM_PROCESSING", { id: I });
2215
2215
  }), c.on("process-revert", () => {
2216
2216
  e("DID_REVERT_ITEM_PROCESSING", { id: I }), e("DID_DEFINE_VALUE", { id: I, value: null });
2217
- }), e("DID_ADD_ITEM", { id: I, index: r, interactionMethod: a }), ht(e, n);
2217
+ }), e("DID_ADD_ITEM", { id: I, index: r, interactionMethod: a }), Ot(e, n);
2218
2218
  const { url: p, load: u, restore: _, fetch: T } = n.options.server || {};
2219
2219
  c.load(
2220
2220
  s,
2221
2221
  // this creates a function that loads the file based on the type of file (string, base64, blob, file) and location of file (local, remote, limbo)
2222
- Si(
2222
+ Di(
2223
2223
  d === k.INPUT ? (
2224
2224
  // input, if is remote, see if should use custom fetch, else use default fetchBlob
2225
- Q(s) && bi(s) && T ? gt(p, T) : Tn
2225
+ Q(s) && Ni(s) && T ? Rt(p, T) : gn
2226
2226
  ) : (
2227
2227
  // limbo or local
2228
- d === k.LIMBO ? gt(p, _) : gt(p, u)
2228
+ d === k.LIMBO ? Rt(p, _) : Rt(p, u)
2229
2229
  )
2230
2230
  // local
2231
2231
  ),
@@ -2251,7 +2251,7 @@ const ni = () => {
2251
2251
  },
2252
2252
  COMPLETE_LOAD_ITEM: ({ item: s, data: r }) => {
2253
2253
  const { success: a, source: i } = r, l = t("GET_ITEM_INSERT_LOCATION");
2254
- if (Re(l) && i && Rt(n, l), e("DID_LOAD_ITEM", {
2254
+ if (Oe(l) && i && St(n, l), e("DID_LOAD_ITEM", {
2255
2255
  id: s.id,
2256
2256
  error: null,
2257
2257
  serverFileReference: s.origin === k.INPUT ? null : i
@@ -2298,7 +2298,7 @@ const ni = () => {
2298
2298
  s.status === x.PROCESSING_ERROR)) {
2299
2299
  const l = () => e("REQUEST_ITEM_PROCESSING", { query: s, success: r, failure: a }), o = () => document.hidden ? l() : setTimeout(l, 32);
2300
2300
  s.status === x.PROCESSING_COMPLETE || s.status === x.PROCESSING_REVERT_ERROR ? s.revert(
2301
- Ue(n.options.server.url, n.options.server.revert),
2301
+ qe(n.options.server.url, n.options.server.revert),
2302
2302
  t("GET_FORCE_REVERT")
2303
2303
  ).then(o).catch(() => {
2304
2304
  }) : s.status === x.PROCESSING && s.abortProcessing().then(o);
@@ -2320,7 +2320,7 @@ const ni = () => {
2320
2320
  const o = () => {
2321
2321
  const c = n.processingQueue.shift();
2322
2322
  if (!c) return;
2323
- const { id: f, success: I, failure: p } = c, u = Oe(n.items, f);
2323
+ const { id: f, success: I, failure: p } = c, u = Se(n.items, f);
2324
2324
  if (!u || u.archived) {
2325
2325
  o();
2326
2326
  return;
@@ -2330,7 +2330,7 @@ const ni = () => {
2330
2330
  s.onOnce("process-complete", () => {
2331
2331
  r(ee(s)), o();
2332
2332
  const c = n.options.server;
2333
- if (n.options.instantUpload && s.origin === k.LOCAL && Re(c.remove)) {
2333
+ if (n.options.instantUpload && s.origin === k.LOCAL && Oe(c.remove)) {
2334
2334
  const p = () => {
2335
2335
  };
2336
2336
  s.origin = k.LIMBO, n.options.server.remove(s.source, p, p);
@@ -2341,8 +2341,8 @@ const ni = () => {
2341
2341
  });
2342
2342
  const d = n.options;
2343
2343
  s.process(
2344
- Li(
2345
- Ai(d.server.url, d.server.process, d.name, {
2344
+ wi(
2345
+ Mi(d.server.url, d.server.process, d.name, {
2346
2346
  chunkTransferId: s.transferId,
2347
2347
  chunkServer: d.server.patch,
2348
2348
  chunkUploads: d.chunkUploads,
@@ -2366,7 +2366,7 @@ const ni = () => {
2366
2366
  e("REQUEST_ITEM_PROCESSING", { query: s });
2367
2367
  }),
2368
2368
  REQUEST_REMOVE_ITEM: re(n, (s) => {
2369
- hn(t("GET_BEFORE_REMOVE_FILE"), ee(s)).then((r) => {
2369
+ Rn(t("GET_BEFORE_REMOVE_FILE"), ee(s)).then((r) => {
2370
2370
  r && e("REMOVE_ITEM", { query: s });
2371
2371
  });
2372
2372
  }),
@@ -2376,9 +2376,9 @@ const ni = () => {
2376
2376
  REMOVE_ITEM: re(n, (s, r, a, i) => {
2377
2377
  const l = () => {
2378
2378
  const d = s.id;
2379
- mn(n.items, d).archive(), e("DID_REMOVE_ITEM", { error: null, id: d, item: s }), ht(e, n), r(ee(s));
2379
+ Tn(n.items, d).archive(), e("DID_REMOVE_ITEM", { error: null, id: d, item: s }), Ot(e, n), r(ee(s));
2380
2380
  }, o = n.options.server;
2381
- s.origin === k.LOCAL && o && Re(o.remove) && i.remove !== !1 ? (e("DID_START_ITEM_REMOVE", { id: s.id }), o.remove(
2381
+ s.origin === k.LOCAL && o && Oe(o.remove) && i.remove !== !1 ? (e("DID_START_ITEM_REMOVE", { id: s.id }), o.remove(
2382
2382
  s.source,
2383
2383
  () => l(),
2384
2384
  (d) => {
@@ -2395,7 +2395,7 @@ const ni = () => {
2395
2395
  // or if the file isn't big enough for chunked uploads but chunkForce is set then call
2396
2396
  // revert before removing from the view...
2397
2397
  n.options.chunkUploads && s.file.size > n.options.chunkSize || n.options.chunkUploads && n.options.chunkForce) && s.revert(
2398
- Ue(n.options.server.url, n.options.server.revert),
2398
+ qe(n.options.server.url, n.options.server.revert),
2399
2399
  t("GET_FORCE_REVERT")
2400
2400
  ), l());
2401
2401
  }),
@@ -2430,44 +2430,44 @@ const ni = () => {
2430
2430
  }),
2431
2431
  REVERT_ITEM_PROCESSING: re(n, (s) => {
2432
2432
  s.revert(
2433
- Ue(n.options.server.url, n.options.server.revert),
2433
+ qe(n.options.server.url, n.options.server.revert),
2434
2434
  t("GET_FORCE_REVERT")
2435
2435
  ).then(() => {
2436
- (n.options.instantUpload || Ni(s)) && e("REMOVE_ITEM", { query: s.id });
2436
+ (n.options.instantUpload || vi(s)) && e("REMOVE_ITEM", { query: s.id });
2437
2437
  }).catch(() => {
2438
2438
  });
2439
2439
  }),
2440
2440
  SET_OPTIONS: ({ options: s }) => {
2441
- const r = Object.keys(s), a = Gi.filter((l) => r.includes(l));
2441
+ const r = Object.keys(s), a = xi.filter((l) => r.includes(l));
2442
2442
  [
2443
2443
  // add prioritized first if passed to options, else remove
2444
2444
  ...a,
2445
2445
  // prevent duplicate keys
2446
2446
  ...Object.keys(s).filter((l) => !a.includes(l))
2447
2447
  ].forEach((l) => {
2448
- e(`SET_${Et(l, "_").toUpperCase()}`, {
2448
+ e(`SET_${It(l, "_").toUpperCase()}`, {
2449
2449
  value: s[l]
2450
2450
  });
2451
2451
  });
2452
2452
  }
2453
- }), Gi = [
2453
+ }), xi = [
2454
2454
  "server"
2455
2455
  // must be processed before "files"
2456
- ], Wt = (e) => e, _e = (e) => document.createElement(e), q = (e, t) => {
2456
+ ], qt = (e) => e, _e = (e) => document.createElement(e), q = (e, t) => {
2457
2457
  let n = e.childNodes[0];
2458
2458
  n ? t !== n.nodeValue && (n.nodeValue = t) : (n = document.createTextNode(t), e.appendChild(n));
2459
- }, Rn = (e, t, n, s) => {
2459
+ }, On = (e, t, n, s) => {
2460
2460
  const r = (s % 360 - 90) * Math.PI / 180;
2461
2461
  return {
2462
2462
  x: e + n * Math.cos(r),
2463
2463
  y: t + n * Math.sin(r)
2464
2464
  };
2465
- }, xi = (e, t, n, s, r, a) => {
2466
- const i = Rn(e, t, n, r), l = Rn(e, t, n, s);
2465
+ }, Fi = (e, t, n, s, r, a) => {
2466
+ const i = On(e, t, n, r), l = On(e, t, n, s);
2467
2467
  return ["M", i.x, i.y, "A", n, n, 0, a, 0, l.x, l.y].join(" ");
2468
- }, Fi = (e, t, n, s, r) => {
2468
+ }, Bi = (e, t, n, s, r) => {
2469
2469
  let a = 1;
2470
- return r > s && r - s <= 0.5 && (a = 0), s > r && s - r >= 0.5 && (a = 0), xi(
2470
+ return r > s && r - s <= 0.5 && (a = 0), s > r && s - r >= 0.5 && (a = 0), Fi(
2471
2471
  e,
2472
2472
  t,
2473
2473
  n,
@@ -2475,29 +2475,29 @@ const ni = () => {
2475
2475
  Math.min(0.9999, r) * 360,
2476
2476
  a
2477
2477
  );
2478
- }, Bi = ({ root: e, props: t }) => {
2478
+ }, Ui = ({ root: e, props: t }) => {
2479
2479
  t.spin = !1, t.progress = 0, t.opacity = 0;
2480
- const n = ot("svg");
2481
- e.ref.path = ot("path", {
2480
+ const n = lt("svg");
2481
+ e.ref.path = lt("path", {
2482
2482
  "stroke-width": 2,
2483
2483
  "stroke-linecap": "round"
2484
2484
  }), n.appendChild(e.ref.path), e.ref.svg = n, e.appendChild(n);
2485
- }, Ui = ({ root: e, props: t }) => {
2485
+ }, Vi = ({ root: e, props: t }) => {
2486
2486
  if (t.opacity === 0)
2487
2487
  return;
2488
2488
  t.align && (e.element.dataset.align = t.align);
2489
2489
  const n = parseInt(z(e.ref.path, "stroke-width"), 10), s = e.rect.element.width * 0.5;
2490
2490
  let r = 0, a = 0;
2491
2491
  t.spin ? (r = 0, a = 0.5) : (r = 0, a = t.progress);
2492
- const i = Fi(s, s, s - n, r, a);
2492
+ const i = Bi(s, s, s - n, r, a);
2493
2493
  z(e.ref.path, "d", i), z(e.ref.path, "stroke-opacity", t.spin || t.progress > 0 ? 1 : 0);
2494
- }, On = $({
2494
+ }, Sn = $({
2495
2495
  tag: "div",
2496
2496
  name: "progress-indicator",
2497
2497
  ignoreRectUpdate: !0,
2498
2498
  ignoreRect: !0,
2499
- create: Bi,
2500
- write: Ui,
2499
+ create: Ui,
2500
+ write: Vi,
2501
2501
  mixins: {
2502
2502
  apis: ["progress", "spin", "align"],
2503
2503
  styles: ["opacity"],
@@ -2511,12 +2511,12 @@ const ni = () => {
2511
2511
  }
2512
2512
  }
2513
2513
  }
2514
- }), Vi = ({ root: e, props: t }) => {
2514
+ }), Hi = ({ root: e, props: t }) => {
2515
2515
  e.element.innerHTML = (t.icon || "") + `<span>${t.label}</span>`, t.isDisabled = !1;
2516
- }, Hi = ({ root: e, props: t }) => {
2516
+ }, Yi = ({ root: e, props: t }) => {
2517
2517
  const { isDisabled: n } = t, s = e.query("GET_DISABLED") || t.opacity === 0;
2518
2518
  s && !n ? (t.isDisabled = !0, z(e.element, "disabled", "disabled")) : !s && n && (t.isDisabled = !1, e.element.removeAttribute("disabled"));
2519
- }, ms = $({
2519
+ }, Ts = $({
2520
2520
  tag: "button",
2521
2521
  attributes: {
2522
2522
  type: "button"
@@ -2536,9 +2536,9 @@ const ni = () => {
2536
2536
  },
2537
2537
  listeners: !0
2538
2538
  },
2539
- create: Vi,
2540
- write: Hi
2541
- }), Ts = (e, t = ".", n = 1e3, s = {}) => {
2539
+ create: Hi,
2540
+ write: Yi
2541
+ }), gs = (e, t = ".", n = 1e3, s = {}) => {
2542
2542
  const {
2543
2543
  labelBytes: r = "bytes",
2544
2544
  labelKilobytes: a = "KB",
@@ -2547,42 +2547,42 @@ const ni = () => {
2547
2547
  } = s;
2548
2548
  e = Math.round(Math.abs(e));
2549
2549
  const o = n, d = n * n, c = n * n * n;
2550
- return e < o ? `${e} ${r}` : e < d ? `${Math.floor(e / o)} ${a}` : e < c ? `${Sn(e / d, 1, t)} ${i}` : `${Sn(e / c, 2, t)} ${l}`;
2551
- }, Sn = (e, t, n) => e.toFixed(t).split(".").filter((s) => s !== "0").join(n), Yi = ({ root: e, props: t }) => {
2550
+ return e < o ? `${e} ${r}` : e < d ? `${Math.floor(e / o)} ${a}` : e < c ? `${Dn(e / d, 1, t)} ${i}` : `${Dn(e / c, 2, t)} ${l}`;
2551
+ }, Dn = (e, t, n) => e.toFixed(t).split(".").filter((s) => s !== "0").join(n), Wi = ({ root: e, props: t }) => {
2552
2552
  const n = _e("span");
2553
2553
  n.className = "filepond--file-info-main", z(n, "aria-hidden", "true"), e.appendChild(n), e.ref.fileName = n;
2554
2554
  const s = _e("span");
2555
- s.className = "filepond--file-info-sub", e.appendChild(s), e.ref.fileSize = s, q(s, e.query("GET_LABEL_FILE_WAITING_FOR_SIZE")), q(n, Wt(e.query("GET_ITEM_NAME", t.id)));
2556
- }, wt = ({ root: e, props: t }) => {
2555
+ s.className = "filepond--file-info-sub", e.appendChild(s), e.ref.fileSize = s, q(s, e.query("GET_LABEL_FILE_WAITING_FOR_SIZE")), q(n, qt(e.query("GET_ITEM_NAME", t.id)));
2556
+ }, Ct = ({ root: e, props: t }) => {
2557
2557
  q(
2558
2558
  e.ref.fileSize,
2559
- Ts(
2559
+ gs(
2560
2560
  e.query("GET_ITEM_SIZE", t.id),
2561
2561
  ".",
2562
2562
  e.query("GET_FILE_SIZE_BASE"),
2563
2563
  e.query("GET_FILE_SIZE_LABELS", e.query)
2564
2564
  )
2565
- ), q(e.ref.fileName, Wt(e.query("GET_ITEM_NAME", t.id)));
2566
- }, Dn = ({ root: e, props: t }) => {
2567
- if (xe(e.query("GET_ITEM_SIZE", t.id))) {
2568
- wt({ root: e, props: t });
2565
+ ), q(e.ref.fileName, qt(e.query("GET_ITEM_NAME", t.id)));
2566
+ }, yn = ({ root: e, props: t }) => {
2567
+ if (He(e.query("GET_ITEM_SIZE", t.id))) {
2568
+ Ct({ root: e, props: t });
2569
2569
  return;
2570
2570
  }
2571
2571
  q(e.ref.fileSize, e.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"));
2572
- }, Wi = $({
2572
+ }, qi = $({
2573
2573
  name: "file-info",
2574
2574
  ignoreRect: !0,
2575
2575
  ignoreRectUpdate: !0,
2576
2576
  write: K({
2577
- DID_LOAD_ITEM: wt,
2578
- DID_UPDATE_ITEM_META: wt,
2579
- DID_THROW_ITEM_LOAD_ERROR: Dn,
2580
- DID_THROW_ITEM_INVALID: Dn
2577
+ DID_LOAD_ITEM: Ct,
2578
+ DID_UPDATE_ITEM_META: Ct,
2579
+ DID_THROW_ITEM_LOAD_ERROR: yn,
2580
+ DID_THROW_ITEM_INVALID: yn
2581
2581
  }),
2582
2582
  didCreateView: (e) => {
2583
2583
  Le("CREATE_VIEW", { ...e, view: e });
2584
2584
  },
2585
- create: Yi,
2585
+ create: Wi,
2586
2586
  mixins: {
2587
2587
  styles: ["translateX", "translateY"],
2588
2588
  animations: {
@@ -2590,49 +2590,49 @@ const ni = () => {
2590
2590
  translateY: "spring"
2591
2591
  }
2592
2592
  }
2593
- }), gs = (e) => Math.round(e * 100), qi = ({ root: e }) => {
2593
+ }), hs = (e) => Math.round(e * 100), $i = ({ root: e }) => {
2594
2594
  const t = _e("span");
2595
2595
  t.className = "filepond--file-status-main", e.appendChild(t), e.ref.main = t;
2596
2596
  const n = _e("span");
2597
- n.className = "filepond--file-status-sub", e.appendChild(n), e.ref.sub = n, hs({ root: e, action: { progress: null } });
2598
- }, hs = ({ root: e, action: t }) => {
2599
- const n = t.progress === null ? e.query("GET_LABEL_FILE_LOADING") : `${e.query("GET_LABEL_FILE_LOADING")} ${gs(t.progress)}%`;
2597
+ n.className = "filepond--file-status-sub", e.appendChild(n), e.ref.sub = n, Rs({ root: e, action: { progress: null } });
2598
+ }, Rs = ({ root: e, action: t }) => {
2599
+ const n = t.progress === null ? e.query("GET_LABEL_FILE_LOADING") : `${e.query("GET_LABEL_FILE_LOADING")} ${hs(t.progress)}%`;
2600
2600
  q(e.ref.main, n), q(e.ref.sub, e.query("GET_LABEL_TAP_TO_CANCEL"));
2601
- }, $i = ({ root: e, action: t }) => {
2602
- const n = t.progress === null ? e.query("GET_LABEL_FILE_PROCESSING") : `${e.query("GET_LABEL_FILE_PROCESSING")} ${gs(t.progress)}%`;
2601
+ }, zi = ({ root: e, action: t }) => {
2602
+ const n = t.progress === null ? e.query("GET_LABEL_FILE_PROCESSING") : `${e.query("GET_LABEL_FILE_PROCESSING")} ${hs(t.progress)}%`;
2603
2603
  q(e.ref.main, n), q(e.ref.sub, e.query("GET_LABEL_TAP_TO_CANCEL"));
2604
- }, zi = ({ root: e }) => {
2605
- q(e.ref.main, e.query("GET_LABEL_FILE_PROCESSING")), q(e.ref.sub, e.query("GET_LABEL_TAP_TO_CANCEL"));
2606
2604
  }, ki = ({ root: e }) => {
2605
+ q(e.ref.main, e.query("GET_LABEL_FILE_PROCESSING")), q(e.ref.sub, e.query("GET_LABEL_TAP_TO_CANCEL"));
2606
+ }, ji = ({ root: e }) => {
2607
2607
  q(e.ref.main, e.query("GET_LABEL_FILE_PROCESSING_ABORTED")), q(e.ref.sub, e.query("GET_LABEL_TAP_TO_RETRY"));
2608
2608
  }, Xi = ({ root: e }) => {
2609
2609
  q(e.ref.main, e.query("GET_LABEL_FILE_PROCESSING_COMPLETE")), q(e.ref.sub, e.query("GET_LABEL_TAP_TO_UNDO"));
2610
- }, yn = ({ root: e }) => {
2610
+ }, An = ({ root: e }) => {
2611
2611
  q(e.ref.main, ""), q(e.ref.sub, "");
2612
- }, Ve = ({ root: e, action: t }) => {
2612
+ }, $e = ({ root: e, action: t }) => {
2613
2613
  q(e.ref.main, t.status.main), q(e.ref.sub, t.status.sub);
2614
- }, ji = $({
2614
+ }, Zi = $({
2615
2615
  name: "file-status",
2616
2616
  ignoreRect: !0,
2617
2617
  ignoreRectUpdate: !0,
2618
2618
  write: K({
2619
- DID_LOAD_ITEM: yn,
2620
- DID_REVERT_ITEM_PROCESSING: yn,
2621
- DID_REQUEST_ITEM_PROCESSING: zi,
2622
- DID_ABORT_ITEM_PROCESSING: ki,
2619
+ DID_LOAD_ITEM: An,
2620
+ DID_REVERT_ITEM_PROCESSING: An,
2621
+ DID_REQUEST_ITEM_PROCESSING: ki,
2622
+ DID_ABORT_ITEM_PROCESSING: ji,
2623
2623
  DID_COMPLETE_ITEM_PROCESSING: Xi,
2624
- DID_UPDATE_ITEM_PROCESS_PROGRESS: $i,
2625
- DID_UPDATE_ITEM_LOAD_PROGRESS: hs,
2626
- DID_THROW_ITEM_LOAD_ERROR: Ve,
2627
- DID_THROW_ITEM_INVALID: Ve,
2628
- DID_THROW_ITEM_PROCESSING_ERROR: Ve,
2629
- DID_THROW_ITEM_PROCESSING_REVERT_ERROR: Ve,
2630
- DID_THROW_ITEM_REMOVE_ERROR: Ve
2624
+ DID_UPDATE_ITEM_PROCESS_PROGRESS: zi,
2625
+ DID_UPDATE_ITEM_LOAD_PROGRESS: Rs,
2626
+ DID_THROW_ITEM_LOAD_ERROR: $e,
2627
+ DID_THROW_ITEM_INVALID: $e,
2628
+ DID_THROW_ITEM_PROCESSING_ERROR: $e,
2629
+ DID_THROW_ITEM_PROCESSING_REVERT_ERROR: $e,
2630
+ DID_THROW_ITEM_REMOVE_ERROR: $e
2631
2631
  }),
2632
2632
  didCreateView: (e) => {
2633
2633
  Le("CREATE_VIEW", { ...e, view: e });
2634
2634
  },
2635
- create: qi,
2635
+ create: $i,
2636
2636
  mixins: {
2637
2637
  styles: ["translateX", "translateY", "opacity"],
2638
2638
  animations: {
@@ -2641,7 +2641,7 @@ const ni = () => {
2641
2641
  translateY: "spring"
2642
2642
  }
2643
2643
  }
2644
- }), Pt = {
2644
+ }), bt = {
2645
2645
  AbortItemLoad: {
2646
2646
  label: "GET_LABEL_BUTTON_ABORT_ITEM_LOAD",
2647
2647
  action: "ABORT_ITEM_LOAD",
@@ -2696,15 +2696,15 @@ const ni = () => {
2696
2696
  align: "BUTTON_PROCESS_ITEM_POSITION"
2697
2697
  // right
2698
2698
  }
2699
- }, Ct = [];
2700
- Y(Pt, (e) => {
2701
- Ct.push(e);
2699
+ }, Nt = [];
2700
+ Y(bt, (e) => {
2701
+ Nt.push(e);
2702
2702
  });
2703
2703
  const ne = (e) => {
2704
- if (bt(e) === "right") return 0;
2704
+ if (vt(e) === "right") return 0;
2705
2705
  const t = e.ref.buttonRemoveItem.rect.element;
2706
2706
  return t.hidden ? null : t.width + t.left;
2707
- }, Zi = (e) => e.ref.buttonAbortItemLoad.rect.element.width, Je = (e) => Math.floor(e.ref.buttonRemoveItem.rect.element.height / 4), Qi = (e) => Math.floor(e.ref.buttonRemoveItem.rect.element.left / 2), Ki = (e) => e.query("GET_STYLE_LOAD_INDICATOR_POSITION"), Ji = (e) => e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION"), bt = (e) => e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION"), ea = {
2707
+ }, Qi = (e) => e.ref.buttonAbortItemLoad.rect.element.width, Je = (e) => Math.floor(e.ref.buttonRemoveItem.rect.element.height / 4), Ki = (e) => Math.floor(e.ref.buttonRemoveItem.rect.element.left / 2), Ji = (e) => e.query("GET_STYLE_LOAD_INDICATOR_POSITION"), ea = (e) => e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION"), vt = (e) => e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION"), ta = {
2708
2708
  buttonAbortItemLoad: { opacity: 0 },
2709
2709
  buttonRetryItemLoad: { opacity: 0 },
2710
2710
  buttonRemoveItem: { opacity: 0 },
@@ -2712,21 +2712,21 @@ const ne = (e) => {
2712
2712
  buttonAbortItemProcessing: { opacity: 0 },
2713
2713
  buttonRetryItemProcessing: { opacity: 0 },
2714
2714
  buttonRevertItemProcessing: { opacity: 0 },
2715
- loadProgressIndicator: { opacity: 0, align: Ki },
2716
- processProgressIndicator: { opacity: 0, align: Ji },
2715
+ loadProgressIndicator: { opacity: 0, align: Ji },
2716
+ processProgressIndicator: { opacity: 0, align: ea },
2717
2717
  processingCompleteIndicator: { opacity: 0, scaleX: 0.75, scaleY: 0.75 },
2718
2718
  info: { translateX: 0, translateY: 0, opacity: 0 },
2719
2719
  status: { translateX: 0, translateY: 0, opacity: 0 }
2720
- }, An = {
2720
+ }, Mn = {
2721
2721
  buttonRemoveItem: { opacity: 1 },
2722
2722
  buttonProcessItem: { opacity: 1 },
2723
2723
  info: { translateX: ne },
2724
2724
  status: { translateX: ne }
2725
- }, Ot = {
2725
+ }, Dt = {
2726
2726
  buttonAbortItemProcessing: { opacity: 1 },
2727
2727
  processProgressIndicator: { opacity: 1 },
2728
2728
  status: { opacity: 1 }
2729
- }, be = {
2729
+ }, Ne = {
2730
2730
  DID_THROW_ITEM_INVALID: {
2731
2731
  buttonRemoveItem: { opacity: 1 },
2732
2732
  info: { translateX: ne },
@@ -2744,25 +2744,25 @@ const ne = (e) => {
2744
2744
  status: { opacity: 1 }
2745
2745
  },
2746
2746
  DID_START_ITEM_REMOVE: {
2747
- processProgressIndicator: { opacity: 1, align: bt },
2747
+ processProgressIndicator: { opacity: 1, align: vt },
2748
2748
  info: { translateX: ne },
2749
2749
  status: { opacity: 0 }
2750
2750
  },
2751
2751
  DID_THROW_ITEM_REMOVE_ERROR: {
2752
- processProgressIndicator: { opacity: 0, align: bt },
2752
+ processProgressIndicator: { opacity: 0, align: vt },
2753
2753
  buttonRemoveItem: { opacity: 1 },
2754
2754
  info: { translateX: ne },
2755
2755
  status: { opacity: 1, translateX: ne }
2756
2756
  },
2757
- DID_LOAD_ITEM: An,
2757
+ DID_LOAD_ITEM: Mn,
2758
2758
  DID_LOAD_LOCAL_ITEM: {
2759
2759
  buttonRemoveItem: { opacity: 1 },
2760
2760
  info: { translateX: ne },
2761
2761
  status: { translateX: ne }
2762
2762
  },
2763
- DID_START_ITEM_PROCESSING: Ot,
2764
- DID_REQUEST_ITEM_PROCESSING: Ot,
2765
- DID_UPDATE_ITEM_PROCESS_PROGRESS: Ot,
2763
+ DID_START_ITEM_PROCESSING: Dt,
2764
+ DID_REQUEST_ITEM_PROCESSING: Dt,
2765
+ DID_UPDATE_ITEM_PROCESS_PROGRESS: Dt,
2766
2766
  DID_COMPLETE_ITEM_PROCESSING: {
2767
2767
  buttonRevertItemProcessing: { opacity: 1 },
2768
2768
  info: { opacity: 1 },
@@ -2785,8 +2785,8 @@ const ne = (e) => {
2785
2785
  info: { translateX: ne },
2786
2786
  status: { opacity: 1 }
2787
2787
  },
2788
- DID_REVERT_ITEM_PROCESSING: An
2789
- }, ta = $({
2788
+ DID_REVERT_ITEM_PROCESSING: Mn
2789
+ }, na = $({
2790
2790
  create: ({ root: e }) => {
2791
2791
  e.element.innerHTML = e.query("GET_ICON_DONE");
2792
2792
  },
@@ -2800,14 +2800,14 @@ const ne = (e) => {
2800
2800
  opacity: { type: "tween", duration: 250 }
2801
2801
  }
2802
2802
  }
2803
- }), na = ({ root: e, props: t }) => {
2804
- const n = Object.keys(Pt).reduce((u, _) => (u[_] = { ...Pt[_] }, u), {}), { id: s } = t, r = e.query("GET_ALLOW_REVERT"), a = e.query("GET_ALLOW_REMOVE"), i = e.query("GET_ALLOW_PROCESS"), l = e.query("GET_INSTANT_UPLOAD"), o = e.query("IS_ASYNC"), d = e.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");
2803
+ }), sa = ({ root: e, props: t }) => {
2804
+ const n = Object.keys(bt).reduce((u, _) => (u[_] = { ...bt[_] }, u), {}), { id: s } = t, r = e.query("GET_ALLOW_REVERT"), a = e.query("GET_ALLOW_REMOVE"), i = e.query("GET_ALLOW_PROCESS"), l = e.query("GET_INSTANT_UPLOAD"), o = e.query("IS_ASYNC"), d = e.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");
2805
2805
  let c;
2806
2806
  o ? i && !r ? c = (u) => !/RevertItemProcessing/.test(u) : !i && r ? c = (u) => !/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(u) : !i && !r && (c = (u) => !/Process/.test(u)) : c = (u) => !/Process/.test(u);
2807
- const f = c ? Ct.filter(c) : Ct.concat();
2807
+ const f = c ? Nt.filter(c) : Nt.concat();
2808
2808
  if (l && r && (n.RevertItemProcessing.label = "GET_LABEL_BUTTON_REMOVE_ITEM", n.RevertItemProcessing.icon = "GET_ICON_REMOVE"), o && !r) {
2809
- const u = be.DID_COMPLETE_ITEM_PROCESSING;
2810
- u.info.translateX = Qi, u.info.translateY = Je, u.status.translateY = Je, u.processingCompleteIndicator = { opacity: 1, scaleX: 1, scaleY: 1 };
2809
+ const u = Ne.DID_COMPLETE_ITEM_PROCESSING;
2810
+ u.info.translateX = Ki, u.info.translateY = Je, u.status.translateY = Je, u.processingCompleteIndicator = { opacity: 1, scaleX: 1, scaleY: 1 };
2811
2811
  }
2812
2812
  if (o && !i && ([
2813
2813
  "DID_START_ITEM_PROCESSING",
@@ -2815,14 +2815,14 @@ const ne = (e) => {
2815
2815
  "DID_UPDATE_ITEM_PROCESS_PROGRESS",
2816
2816
  "DID_THROW_ITEM_PROCESSING_ERROR"
2817
2817
  ].forEach((u) => {
2818
- be[u].status.translateY = Je;
2819
- }), be.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX = Zi), d && r) {
2818
+ Ne[u].status.translateY = Je;
2819
+ }), Ne.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX = Qi), d && r) {
2820
2820
  n.RevertItemProcessing.align = "BUTTON_REMOVE_ITEM_POSITION";
2821
- const u = be.DID_COMPLETE_ITEM_PROCESSING;
2821
+ const u = Ne.DID_COMPLETE_ITEM_PROCESSING;
2822
2822
  u.info.translateX = ne, u.status.translateY = Je, u.processingCompleteIndicator = { opacity: 1, scaleX: 1, scaleY: 1 };
2823
2823
  }
2824
2824
  a || (n.RemoveItem.disabled = !0), Y(n, (u, _) => {
2825
- const T = e.createChildView(ms, {
2825
+ const T = e.createChildView(Ts, {
2826
2826
  label: e.query(_.label),
2827
2827
  icon: e.query(_.icon),
2828
2828
  opacity: 0
@@ -2831,31 +2831,31 @@ const ne = (e) => {
2831
2831
  h.stopPropagation(), !_.disabled && e.dispatch(_.action, { query: s });
2832
2832
  }), e.ref[`button${u}`] = T;
2833
2833
  }), e.ref.processingCompleteIndicator = e.appendChildView(
2834
- e.createChildView(ta)
2834
+ e.createChildView(na)
2835
2835
  ), e.ref.processingCompleteIndicator.element.dataset.align = e.query(
2836
2836
  "GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"
2837
- ), e.ref.info = e.appendChildView(e.createChildView(Wi, { id: s })), e.ref.status = e.appendChildView(e.createChildView(ji, { id: s }));
2837
+ ), e.ref.info = e.appendChildView(e.createChildView(qi, { id: s })), e.ref.status = e.appendChildView(e.createChildView(Zi, { id: s }));
2838
2838
  const I = e.appendChildView(
2839
- e.createChildView(On, {
2839
+ e.createChildView(Sn, {
2840
2840
  opacity: 0,
2841
2841
  align: e.query("GET_STYLE_LOAD_INDICATOR_POSITION")
2842
2842
  })
2843
2843
  );
2844
2844
  I.element.classList.add("filepond--load-indicator"), e.ref.loadProgressIndicator = I;
2845
2845
  const p = e.appendChildView(
2846
- e.createChildView(On, {
2846
+ e.createChildView(Sn, {
2847
2847
  opacity: 0,
2848
2848
  align: e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")
2849
2849
  })
2850
2850
  );
2851
2851
  p.element.classList.add("filepond--process-indicator"), e.ref.processProgressIndicator = p, e.ref.activeStyles = [];
2852
- }, sa = ({ root: e, actions: t, props: n }) => {
2853
- ra({ root: e, actions: t, props: n });
2854
- let s = t.concat().filter((r) => /^DID_/.test(r.type)).reverse().find((r) => be[r.type]);
2852
+ }, ra = ({ root: e, actions: t, props: n }) => {
2853
+ ia({ root: e, actions: t, props: n });
2854
+ let s = t.concat().filter((r) => /^DID_/.test(r.type)).reverse().find((r) => Ne[r.type]);
2855
2855
  if (s) {
2856
2856
  e.ref.activeStyles = [];
2857
- const r = be[s.type];
2858
- Y(ea, (a, i) => {
2857
+ const r = Ne[s.type];
2858
+ Y(ta, (a, i) => {
2859
2859
  const l = e.ref[a];
2860
2860
  Y(i, (o, d) => {
2861
2861
  const c = r[a] && typeof r[a][o] < "u" ? r[a][o] : d;
@@ -2866,7 +2866,7 @@ const ne = (e) => {
2866
2866
  e.ref.activeStyles.forEach(({ control: r, key: a, value: i }) => {
2867
2867
  r[a] = typeof i == "function" ? i(e) : i;
2868
2868
  });
2869
- }, ra = K({
2869
+ }, ia = K({
2870
2870
  DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING: ({ root: e, action: t }) => {
2871
2871
  e.ref.buttonAbortItemProcessing.label = t.value;
2872
2872
  },
@@ -2891,29 +2891,29 @@ const ne = (e) => {
2891
2891
  DID_UPDATE_ITEM_PROCESS_PROGRESS: ({ root: e, action: t }) => {
2892
2892
  e.ref.processProgressIndicator.spin = !1, e.ref.processProgressIndicator.progress = t.progress;
2893
2893
  }
2894
- }), ia = $({
2895
- create: na,
2896
- write: sa,
2894
+ }), aa = $({
2895
+ create: sa,
2896
+ write: ra,
2897
2897
  didCreateView: (e) => {
2898
2898
  Le("CREATE_VIEW", { ...e, view: e });
2899
2899
  },
2900
2900
  name: "file"
2901
- }), aa = ({ root: e, props: t }) => {
2902
- e.ref.fileName = _e("legend"), e.appendChild(e.ref.fileName), e.ref.file = e.appendChildView(e.createChildView(ia, { id: t.id })), e.ref.data = !1;
2903
- }, oa = ({ root: e, props: t }) => {
2904
- q(e.ref.fileName, Wt(e.query("GET_ITEM_NAME", t.id)));
2905
- }, la = $({
2906
- create: aa,
2901
+ }), oa = ({ root: e, props: t }) => {
2902
+ e.ref.fileName = _e("legend"), e.appendChild(e.ref.fileName), e.ref.file = e.appendChildView(e.createChildView(aa, { id: t.id })), e.ref.data = !1;
2903
+ }, la = ({ root: e, props: t }) => {
2904
+ q(e.ref.fileName, qt(e.query("GET_ITEM_NAME", t.id)));
2905
+ }, ca = $({
2906
+ create: oa,
2907
2907
  ignoreRect: !0,
2908
2908
  write: K({
2909
- DID_LOAD_ITEM: oa
2909
+ DID_LOAD_ITEM: la
2910
2910
  }),
2911
2911
  didCreateView: (e) => {
2912
2912
  Le("CREATE_VIEW", { ...e, view: e });
2913
2913
  },
2914
2914
  tag: "fieldset",
2915
2915
  name: "file-wrapper"
2916
- }), Mn = { type: "spring", damping: 0.6, mass: 7 }, ca = ({ root: e, props: t }) => {
2916
+ }), Ln = { type: "spring", damping: 0.6, mass: 7 }, da = ({ root: e, props: t }) => {
2917
2917
  [
2918
2918
  {
2919
2919
  name: "top"
@@ -2926,7 +2926,7 @@ const ne = (e) => {
2926
2926
  },
2927
2927
  mixins: {
2928
2928
  animations: {
2929
- scaleY: Mn
2929
+ scaleY: Ln
2930
2930
  },
2931
2931
  styles: ["translateY", "scaleY"]
2932
2932
  }
@@ -2938,35 +2938,35 @@ const ne = (e) => {
2938
2938
  },
2939
2939
  mixins: {
2940
2940
  animations: {
2941
- translateY: Mn
2941
+ translateY: Ln
2942
2942
  },
2943
2943
  styles: ["translateY"]
2944
2944
  }
2945
2945
  }
2946
2946
  ].forEach((n) => {
2947
- da(e, n, t.name);
2947
+ ua(e, n, t.name);
2948
2948
  }), e.element.classList.add(`filepond--${t.name}`), e.ref.scalable = null;
2949
- }, da = (e, t, n) => {
2949
+ }, ua = (e, t, n) => {
2950
2950
  const s = $({
2951
2951
  name: `panel-${t.name} filepond--${n}`,
2952
2952
  mixins: t.mixins,
2953
2953
  ignoreRectUpdate: !0
2954
2954
  }), r = e.createChildView(s, t.props);
2955
2955
  e.ref[t.name] = e.appendChildView(r);
2956
- }, ua = ({ root: e, props: t }) => {
2957
- if ((e.ref.scalable === null || t.scalable !== e.ref.scalable) && (e.ref.scalable = ns(t.scalable) ? t.scalable : !0, e.element.dataset.scalable = e.ref.scalable), !t.height) return;
2956
+ }, fa = ({ root: e, props: t }) => {
2957
+ if ((e.ref.scalable === null || t.scalable !== e.ref.scalable) && (e.ref.scalable = ss(t.scalable) ? t.scalable : !0, e.element.dataset.scalable = e.ref.scalable), !t.height) return;
2958
2958
  const n = e.ref.top.rect.element, s = e.ref.bottom.rect.element, r = Math.max(n.height + s.height, t.height);
2959
2959
  e.ref.center.translateY = n.height, e.ref.center.scaleY = (r - n.height - s.height) / 100, e.ref.bottom.translateY = r - s.height;
2960
- }, Rs = $({
2960
+ }, Os = $({
2961
2961
  name: "panel",
2962
2962
  read: ({ root: e, props: t }) => t.heightCurrent = e.ref.bottom.translateY,
2963
- write: ua,
2964
- create: ca,
2963
+ write: fa,
2964
+ create: da,
2965
2965
  ignoreRect: !0,
2966
2966
  mixins: {
2967
2967
  apis: ["height", "heightCurrent", "scalable"]
2968
2968
  }
2969
- }), fa = (e) => {
2969
+ }), Ea = (e) => {
2970
2970
  const t = e.map((s) => s.id);
2971
2971
  let n;
2972
2972
  return {
@@ -2976,12 +2976,12 @@ const ne = (e) => {
2976
2976
  getIndex: () => n,
2977
2977
  getItemIndex: (s) => t.indexOf(s.id)
2978
2978
  };
2979
- }, Ln = {
2979
+ }, wn = {
2980
2980
  type: "spring",
2981
2981
  stiffness: 0.75,
2982
2982
  damping: 0.45,
2983
2983
  mass: 10
2984
- }, wn = "spring", Pn = {
2984
+ }, Pn = "spring", Cn = {
2985
2985
  DID_START_ITEM_LOAD: "busy",
2986
2986
  DID_UPDATE_ITEM_LOAD_PROGRESS: "loading",
2987
2987
  DID_THROW_ITEM_INVALID: "load-invalid",
@@ -2997,8 +2997,8 @@ const ne = (e) => {
2997
2997
  DID_THROW_ITEM_PROCESSING_REVERT_ERROR: "processing-revert-error",
2998
2998
  DID_ABORT_ITEM_PROCESSING: "cancelled",
2999
2999
  DID_REVERT_ITEM_PROCESSING: "idle"
3000
- }, Ea = ({ root: e, props: t }) => {
3001
- if (e.ref.handleClick = (s) => e.dispatch("DID_ACTIVATE_ITEM", { id: t.id }), e.element.id = `filepond--item-${t.id}`, e.element.addEventListener("click", e.ref.handleClick), e.ref.container = e.appendChildView(e.createChildView(la, { id: t.id })), e.ref.panel = e.appendChildView(e.createChildView(Rs, { name: "item-panel" })), e.ref.panel.height = null, t.markedForRemoval = !1, !e.query("GET_ALLOW_REORDER")) return;
3000
+ }, pa = ({ root: e, props: t }) => {
3001
+ if (e.ref.handleClick = (s) => e.dispatch("DID_ACTIVATE_ITEM", { id: t.id }), e.element.id = `filepond--item-${t.id}`, e.element.addEventListener("click", e.ref.handleClick), e.ref.container = e.appendChildView(e.createChildView(ca, { id: t.id })), e.ref.panel = e.appendChildView(e.createChildView(Os, { name: "item-panel" })), e.ref.panel.height = null, t.markedForRemoval = !1, !e.query("GET_ALLOW_REORDER")) return;
3002
3002
  e.element.dataset.dragState = "idle";
3003
3003
  const n = (s) => {
3004
3004
  if (!s.isPrimary) return;
@@ -3014,7 +3014,7 @@ const ne = (e) => {
3014
3014
  x: s.offsetX,
3015
3015
  y: s.offsetY
3016
3016
  };
3017
- const i = fa(e.query("GET_ACTIVE_ITEMS"));
3017
+ const i = Ea(e.query("GET_ACTIVE_ITEMS"));
3018
3018
  e.dispatch("DID_GRAB_ITEM", { id: t.id, dragState: i });
3019
3019
  const l = (f) => {
3020
3020
  if (!f.isPrimary) return;
@@ -3035,11 +3035,11 @@ const ne = (e) => {
3035
3035
  document.addEventListener("pointercancel", d), document.addEventListener("pointermove", l), document.addEventListener("pointerup", o);
3036
3036
  };
3037
3037
  e.element.addEventListener("pointerdown", n);
3038
- }, pa = K({
3038
+ }, Ia = K({
3039
3039
  DID_UPDATE_PANEL_HEIGHT: ({ root: e, action: t }) => {
3040
3040
  e.height = t.height;
3041
3041
  }
3042
- }), Ia = K(
3042
+ }), _a = K(
3043
3043
  {
3044
3044
  DID_GRAB_ITEM: ({ root: e, props: t }) => {
3045
3045
  t.dragOrigin = {
@@ -3056,14 +3056,14 @@ const ne = (e) => {
3056
3056
  },
3057
3057
  ({ root: e, actions: t, props: n, shouldOptimize: s }) => {
3058
3058
  e.element.dataset.dragState === "drop" && e.scaleX <= 1 && (e.element.dataset.dragState = "idle");
3059
- let r = t.concat().filter((i) => /^DID_/.test(i.type)).reverse().find((i) => Pn[i.type]);
3060
- r && r.type !== n.currentState && (n.currentState = r.type, e.element.dataset.filepondItemState = Pn[n.currentState] || "");
3059
+ let r = t.concat().filter((i) => /^DID_/.test(i.type)).reverse().find((i) => Cn[i.type]);
3060
+ r && r.type !== n.currentState && (n.currentState = r.type, e.element.dataset.filepondItemState = Cn[n.currentState] || "");
3061
3061
  const a = e.query("GET_ITEM_PANEL_ASPECT_RATIO") || e.query("GET_PANEL_ASPECT_RATIO");
3062
- a ? s || (e.height = e.rect.element.width * a) : (pa({ root: e, actions: t, props: n }), !e.height && e.ref.container.rect.element.height > 0 && (e.height = e.ref.container.rect.element.height)), s && (e.ref.panel.height = null), e.ref.panel.height = e.height;
3062
+ a ? s || (e.height = e.rect.element.width * a) : (Ia({ root: e, actions: t, props: n }), !e.height && e.ref.container.rect.element.height > 0 && (e.height = e.ref.container.rect.element.height)), s && (e.ref.panel.height = null), e.ref.panel.height = e.height;
3063
3063
  }
3064
- ), _a = $({
3065
- create: Ea,
3066
- write: Ia,
3064
+ ), ma = $({
3065
+ create: pa,
3066
+ write: _a,
3067
3067
  destroy: ({ root: e, props: t }) => {
3068
3068
  e.element.removeEventListener("click", e.ref.handleClick), e.dispatch("RELEASE_ITEM", { query: t.id });
3069
3069
  },
@@ -3081,21 +3081,21 @@ const ne = (e) => {
3081
3081
  ],
3082
3082
  styles: ["translateX", "translateY", "scaleX", "scaleY", "opacity", "height"],
3083
3083
  animations: {
3084
- scaleX: wn,
3085
- scaleY: wn,
3086
- translateX: Ln,
3087
- translateY: Ln,
3084
+ scaleX: Pn,
3085
+ scaleY: Pn,
3086
+ translateX: wn,
3087
+ translateY: wn,
3088
3088
  opacity: { type: "tween", duration: 150 }
3089
3089
  }
3090
3090
  }
3091
3091
  });
3092
- var qt = (e, t) => Math.max(1, Math.floor((e + 1) / t));
3093
- const $t = (e, t, n) => {
3092
+ var $t = (e, t) => Math.max(1, Math.floor((e + 1) / t));
3093
+ const zt = (e, t, n) => {
3094
3094
  if (!n) return;
3095
3095
  const s = e.rect.element.width, r = t.length;
3096
3096
  let a = null;
3097
3097
  if (r === 0 || n.top < t[0].rect.element.top) return -1;
3098
- const l = t[0].rect.element, o = l.marginLeft + l.marginRight, d = l.width + o, c = qt(s, d);
3098
+ const l = t[0].rect.element, o = l.marginLeft + l.marginRight, d = l.width + o, c = $t(s, d);
3099
3099
  if (c === 1) {
3100
3100
  for (let p = 0; p < r; p++) {
3101
3101
  const u = t[p], _ = u.rect.outer.top + u.rect.element.height * 0.5;
@@ -3129,9 +3129,9 @@ const $t = (e, t, n) => {
3129
3129
  set setWidth(e) {
3130
3130
  (this.width === 0 || e === 0) && (this.width = e);
3131
3131
  }
3132
- }, ma = ({ root: e }) => {
3132
+ }, Ta = ({ root: e }) => {
3133
3133
  z(e.element, "role", "list"), e.ref.lastItemSpanwDate = Date.now();
3134
- }, Ta = ({ root: e, action: t }) => {
3134
+ }, ga = ({ root: e, action: t }) => {
3135
3135
  const { id: n, index: s, interactionMethod: r } = t;
3136
3136
  e.ref.addIndex = s;
3137
3137
  const a = Date.now();
@@ -3144,7 +3144,7 @@ const $t = (e, t, n) => {
3144
3144
  e.ref.lastItemSpanwDate = i, e.appendChildView(
3145
3145
  e.createChildView(
3146
3146
  // view type
3147
- _a,
3147
+ ma,
3148
3148
  // props
3149
3149
  {
3150
3150
  spawnDate: i,
@@ -3155,20 +3155,20 @@ const $t = (e, t, n) => {
3155
3155
  ),
3156
3156
  s
3157
3157
  );
3158
- }, Cn = (e, t, n, s = 0, r = 1) => {
3159
- e.dragOffset ? (e.translateX = null, e.translateY = null, e.translateX = e.dragOrigin.x + e.dragOffset.x, e.translateY = e.dragOrigin.y + e.dragOffset.y, e.scaleX = 1.025, e.scaleY = 1.025) : (e.translateX = t, e.translateY = n, Date.now() > e.spawnDate && (e.opacity === 0 && ga(e, t, n, s, r), e.scaleX = 1, e.scaleY = 1, e.opacity = 1));
3160
- }, ga = (e, t, n, s, r) => {
3158
+ }, bn = (e, t, n, s = 0, r = 1) => {
3159
+ e.dragOffset ? (e.translateX = null, e.translateY = null, e.translateX = e.dragOrigin.x + e.dragOffset.x, e.translateY = e.dragOrigin.y + e.dragOffset.y, e.scaleX = 1.025, e.scaleY = 1.025) : (e.translateX = t, e.translateY = n, Date.now() > e.spawnDate && (e.opacity === 0 && ha(e, t, n, s, r), e.scaleX = 1, e.scaleY = 1, e.opacity = 1));
3160
+ }, ha = (e, t, n, s, r) => {
3161
3161
  e.interactionMethod === ae.NONE ? (e.translateX = null, e.translateX = t, e.translateY = null, e.translateY = n) : e.interactionMethod === ae.DROP ? (e.translateX = null, e.translateX = t - s * 20, e.translateY = null, e.translateY = n - r * 10, e.scaleX = 0.8, e.scaleY = 0.8) : e.interactionMethod === ae.BROWSE ? (e.translateY = null, e.translateY = n - 30) : e.interactionMethod === ae.API && (e.translateX = null, e.translateX = t - 30, e.translateY = null);
3162
- }, ha = ({ root: e, action: t }) => {
3162
+ }, Ra = ({ root: e, action: t }) => {
3163
3163
  const { id: n } = t, s = e.childViews.find((r) => r.id === n);
3164
3164
  s && (s.scaleX = 0.9, s.scaleY = 0.9, s.opacity = 0, s.markedForRemoval = !0);
3165
- }, St = (e) => e.rect.element.height + e.rect.element.marginBottom * 0.5 + e.rect.element.marginTop * 0.5, Ra = (e) => e.rect.element.width + e.rect.element.marginLeft * 0.5 + e.rect.element.marginRight * 0.5, Oa = ({ root: e, action: t }) => {
3165
+ }, yt = (e) => e.rect.element.height + e.rect.element.marginBottom * 0.5 + e.rect.element.marginTop * 0.5, Oa = (e) => e.rect.element.width + e.rect.element.marginLeft * 0.5 + e.rect.element.marginRight * 0.5, Sa = ({ root: e, action: t }) => {
3166
3166
  const { id: n, dragState: s } = t, r = e.query("GET_ITEM", { id: n }), a = e.childViews.find((T) => T.id === n), i = e.childViews.length, l = s.getItemIndex(r);
3167
3167
  if (!a) return;
3168
3168
  const o = {
3169
3169
  x: a.dragOrigin.x + a.dragOffset.x + a.dragCenter.x,
3170
3170
  y: a.dragOrigin.y + a.dragOffset.y + a.dragCenter.y
3171
- }, d = St(a), c = Ra(a);
3171
+ }, d = yt(a), c = Oa(a);
3172
3172
  let f = Math.floor(e.rect.outer.width / c);
3173
3173
  f > i && (f = i);
3174
3174
  const I = Math.floor(i / f + 1);
@@ -3180,20 +3180,20 @@ const $t = (e, t, n) => {
3180
3180
  return o.y > et.getHeight || o.y < 0 || o.x > et.getWidth || o.x < 0 ? l : this.y * f + this.x;
3181
3181
  },
3182
3182
  getColIndex: function() {
3183
- const h = e.query("GET_ACTIVE_ITEMS"), E = e.childViews.filter((w) => w.rect.element.height), m = h.map(
3184
- (w) => E.find((C) => C.id === w.id)
3185
- ), R = m.findIndex((w) => w === a), S = St(a), M = m.length;
3186
- let N = M, D = 0, L = 0, G = 0;
3187
- for (let w = 0; w < M; w++)
3188
- if (D = St(m[w]), G = L, L = G + D, o.y < L) {
3189
- if (R > w) {
3183
+ const h = e.query("GET_ACTIVE_ITEMS"), E = e.childViews.filter((P) => P.rect.element.height), m = h.map(
3184
+ (P) => E.find((C) => C.id === P.id)
3185
+ ), R = m.findIndex((P) => P === a), S = yt(a), M = m.length;
3186
+ let N = M, D = 0, w = 0, G = 0;
3187
+ for (let P = 0; P < M; P++)
3188
+ if (D = yt(m[P]), G = w, w = G + D, o.y < w) {
3189
+ if (R > P) {
3190
3190
  if (o.y < G + S) {
3191
- N = w;
3191
+ N = P;
3192
3192
  break;
3193
3193
  }
3194
3194
  continue;
3195
3195
  }
3196
- N = w;
3196
+ N = P;
3197
3197
  break;
3198
3198
  }
3199
3199
  return N;
@@ -3210,25 +3210,25 @@ const $t = (e, t, n) => {
3210
3210
  target: u
3211
3211
  });
3212
3212
  }
3213
- }, Sa = K({
3214
- DID_ADD_ITEM: Ta,
3215
- DID_REMOVE_ITEM: ha,
3216
- DID_DRAG_ITEM: Oa
3217
- }), Da = ({ root: e, props: t, actions: n, shouldOptimize: s }) => {
3218
- Sa({ root: e, props: t, actions: n });
3219
- const { dragCoordinates: r } = t, a = e.rect.element.width, i = e.childViews.filter((m) => m.rect.element.height), l = e.query("GET_ACTIVE_ITEMS").map((m) => i.find((R) => R.id === m.id)).filter((m) => m), o = r ? $t(e, l, r) : null, d = e.ref.addIndex || null;
3213
+ }, Da = K({
3214
+ DID_ADD_ITEM: ga,
3215
+ DID_REMOVE_ITEM: Ra,
3216
+ DID_DRAG_ITEM: Sa
3217
+ }), ya = ({ root: e, props: t, actions: n, shouldOptimize: s }) => {
3218
+ Da({ root: e, props: t, actions: n });
3219
+ const { dragCoordinates: r } = t, a = e.rect.element.width, i = e.childViews.filter((m) => m.rect.element.height), l = e.query("GET_ACTIVE_ITEMS").map((m) => i.find((R) => R.id === m.id)).filter((m) => m), o = r ? zt(e, l, r) : null, d = e.ref.addIndex || null;
3220
3220
  e.ref.addIndex = null;
3221
3221
  let c = 0, f = 0, I = 0;
3222
3222
  if (l.length === 0) return;
3223
- const p = l[0].rect.element, u = p.marginTop + p.marginBottom, _ = p.marginLeft + p.marginRight, T = p.width + _, h = p.height + u, E = qt(a, T);
3223
+ const p = l[0].rect.element, u = p.marginTop + p.marginBottom, _ = p.marginLeft + p.marginRight, T = p.width + _, h = p.height + u, E = $t(a, T);
3224
3224
  if (E === 1) {
3225
3225
  let m = 0, R = 0;
3226
3226
  l.forEach((S, M) => {
3227
3227
  if (o) {
3228
- let L = M - o;
3229
- L === -2 ? R = -u * 0.25 : L === -1 ? R = -u * 0.75 : L === 0 ? R = u * 0.75 : L === 1 ? R = u * 0.25 : R = 0;
3228
+ let w = M - o;
3229
+ w === -2 ? R = -u * 0.25 : w === -1 ? R = -u * 0.75 : w === 0 ? R = u * 0.75 : w === 1 ? R = u * 0.25 : R = 0;
3230
3230
  }
3231
- s && (S.translateX = null, S.translateY = null), S.markedForRemoval || Cn(S, 0, m + R);
3231
+ s && (S.translateX = null, S.translateY = null), S.markedForRemoval || bn(S, 0, m + R);
3232
3232
  let D = (S.rect.element.height + u) * (S.markedForRemoval ? S.opacity : 1);
3233
3233
  m += D;
3234
3234
  });
@@ -3236,13 +3236,13 @@ const $t = (e, t, n) => {
3236
3236
  let m = 0, R = 0;
3237
3237
  l.forEach((S, M) => {
3238
3238
  M === o && (c = 1), M === d && (I += 1), S.markedForRemoval && S.opacity < 0.5 && (f -= 1);
3239
- const N = M + I + c + f, D = N % E, L = Math.floor(N / E), G = D * T, w = L * h, C = Math.sign(G - m), V = Math.sign(w - R);
3240
- m = G, R = w, !S.markedForRemoval && (s && (S.translateX = null, S.translateY = null), Cn(S, G, w, C, V));
3239
+ const N = M + I + c + f, D = N % E, w = Math.floor(N / E), G = D * T, P = w * h, C = Math.sign(G - m), V = Math.sign(P - R);
3240
+ m = G, R = P, !S.markedForRemoval && (s && (S.translateX = null, S.translateY = null), bn(S, G, P, C, V));
3241
3241
  });
3242
3242
  }
3243
- }, ya = (e, t) => t.filter((n) => n.data && n.data.id ? e.id === n.data.id : !0), Aa = $({
3244
- create: ma,
3245
- write: Da,
3243
+ }, Aa = (e, t) => t.filter((n) => n.data && n.data.id ? e.id === n.data.id : !0), Ma = $({
3244
+ create: Ta,
3245
+ write: ya,
3246
3246
  tag: "ul",
3247
3247
  name: "list",
3248
3248
  didWriteView: ({ root: e }) => {
@@ -3250,30 +3250,30 @@ const $t = (e, t, n) => {
3250
3250
  t._destroy(), e.removeChildView(t);
3251
3251
  });
3252
3252
  },
3253
- filterFrameActionsForChild: ya,
3253
+ filterFrameActionsForChild: Aa,
3254
3254
  mixins: {
3255
3255
  apis: ["dragCoordinates"]
3256
3256
  }
3257
- }), Ma = ({ root: e, props: t }) => {
3258
- e.ref.list = e.appendChildView(e.createChildView(Aa)), t.dragCoordinates = null, t.overflowing = !1;
3259
- }, La = ({ root: e, props: t, action: n }) => {
3257
+ }), La = ({ root: e, props: t }) => {
3258
+ e.ref.list = e.appendChildView(e.createChildView(Ma)), t.dragCoordinates = null, t.overflowing = !1;
3259
+ }, wa = ({ root: e, props: t, action: n }) => {
3260
3260
  e.query("GET_ITEM_INSERT_LOCATION_FREEDOM") && (t.dragCoordinates = {
3261
3261
  left: n.position.scopeLeft - e.ref.list.rect.element.left,
3262
3262
  top: n.position.scopeTop - (e.rect.outer.top + e.rect.element.marginTop + e.rect.element.scrollTop)
3263
3263
  });
3264
- }, wa = ({ props: e }) => {
3264
+ }, Pa = ({ props: e }) => {
3265
3265
  e.dragCoordinates = null;
3266
- }, Pa = K({
3267
- DID_DRAG: La,
3268
- DID_END_DRAG: wa
3269
- }), Ca = ({ root: e, props: t, actions: n }) => {
3270
- if (Pa({ root: e, props: t, actions: n }), e.ref.list.dragCoordinates = t.dragCoordinates, t.overflowing && !t.overflow && (t.overflowing = !1, e.element.dataset.state = "", e.height = null), t.overflow) {
3266
+ }, Ca = K({
3267
+ DID_DRAG: wa,
3268
+ DID_END_DRAG: Pa
3269
+ }), ba = ({ root: e, props: t, actions: n }) => {
3270
+ if (Ca({ root: e, props: t, actions: n }), e.ref.list.dragCoordinates = t.dragCoordinates, t.overflowing && !t.overflow && (t.overflowing = !1, e.element.dataset.state = "", e.height = null), t.overflow) {
3271
3271
  const s = Math.round(t.overflow);
3272
3272
  s !== e.height && (t.overflowing = !0, e.element.dataset.state = "overflow", e.height = s);
3273
3273
  }
3274
- }, ba = $({
3275
- create: Ma,
3276
- write: Ca,
3274
+ }, Na = $({
3275
+ create: La,
3276
+ write: ba,
3277
3277
  name: "list-scroller",
3278
3278
  mixins: {
3279
3279
  apis: ["overflow", "dragCoordinates"],
@@ -3284,7 +3284,7 @@ const $t = (e, t, n) => {
3284
3284
  }
3285
3285
  }), de = (e, t, n, s = "") => {
3286
3286
  n ? z(e, t, s) : e.removeAttribute(t);
3287
- }, Na = (e) => {
3287
+ }, va = (e) => {
3288
3288
  if (!(!e || e.value === "")) {
3289
3289
  try {
3290
3290
  e.value = "";
@@ -3295,29 +3295,29 @@ const $t = (e, t, n) => {
3295
3295
  t.appendChild(e), t.reset(), s ? n.insertBefore(e, s) : n.appendChild(e);
3296
3296
  }
3297
3297
  }
3298
- }, va = ({ root: e, props: t }) => {
3299
- e.element.id = `filepond--browser-${t.id}`, z(e.element, "name", e.query("GET_NAME")), z(e.element, "aria-controls", `filepond--assistant-${t.id}`), z(e.element, "aria-labelledby", `filepond--drop-label-${t.id}`), Os({ root: e, action: { value: e.query("GET_ACCEPTED_FILE_TYPES") } }), Ss({ root: e, action: { value: e.query("GET_ALLOW_MULTIPLE") } }), Ds({ root: e, action: { value: e.query("GET_ALLOW_DIRECTORIES_ONLY") } }), Nt({ root: e }), ys({ root: e, action: { value: e.query("GET_REQUIRED") } }), As({ root: e, action: { value: e.query("GET_CAPTURE_METHOD") } }), e.ref.handleChange = (n) => {
3298
+ }, Ga = ({ root: e, props: t }) => {
3299
+ e.element.id = `filepond--browser-${t.id}`, z(e.element, "name", e.query("GET_NAME")), z(e.element, "aria-controls", `filepond--assistant-${t.id}`), z(e.element, "aria-labelledby", `filepond--drop-label-${t.id}`), Ss({ root: e, action: { value: e.query("GET_ACCEPTED_FILE_TYPES") } }), Ds({ root: e, action: { value: e.query("GET_ALLOW_MULTIPLE") } }), ys({ root: e, action: { value: e.query("GET_ALLOW_DIRECTORIES_ONLY") } }), Gt({ root: e }), As({ root: e, action: { value: e.query("GET_REQUIRED") } }), Ms({ root: e, action: { value: e.query("GET_CAPTURE_METHOD") } }), e.ref.handleChange = (n) => {
3300
3300
  if (!e.element.value)
3301
3301
  return;
3302
3302
  const s = Array.from(e.element.files).map((r) => (r._relativePath = r.webkitRelativePath, r));
3303
3303
  setTimeout(() => {
3304
- t.onload(s), Na(e.element);
3304
+ t.onload(s), va(e.element);
3305
3305
  }, 250);
3306
3306
  }, e.element.addEventListener("change", e.ref.handleChange);
3307
- }, Os = ({ root: e, action: t }) => {
3308
- e.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE") && de(e.element, "accept", !!t.value, t.value ? t.value.join(",") : "");
3309
3307
  }, Ss = ({ root: e, action: t }) => {
3310
- de(e.element, "multiple", t.value);
3308
+ e.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE") && de(e.element, "accept", !!t.value, t.value ? t.value.join(",") : "");
3311
3309
  }, Ds = ({ root: e, action: t }) => {
3310
+ de(e.element, "multiple", t.value);
3311
+ }, ys = ({ root: e, action: t }) => {
3312
3312
  de(e.element, "webkitdirectory", t.value);
3313
- }, Nt = ({ root: e }) => {
3313
+ }, Gt = ({ root: e }) => {
3314
3314
  const t = e.query("GET_DISABLED"), n = e.query("GET_ALLOW_BROWSE"), s = t || !n;
3315
3315
  de(e.element, "disabled", s);
3316
- }, ys = ({ root: e, action: t }) => {
3317
- t.value ? e.query("GET_TOTAL_ITEMS") === 0 && de(e.element, "required", !0) : de(e.element, "required", !1);
3318
3316
  }, As = ({ root: e, action: t }) => {
3317
+ t.value ? e.query("GET_TOTAL_ITEMS") === 0 && de(e.element, "required", !0) : de(e.element, "required", !1);
3318
+ }, Ms = ({ root: e, action: t }) => {
3319
3319
  de(e.element, "capture", !!t.value, t.value === !0 ? "" : t.value);
3320
- }, bn = ({ root: e }) => {
3320
+ }, Nn = ({ root: e }) => {
3321
3321
  const { element: t } = e;
3322
3322
  if (e.query("GET_TOTAL_ITEMS") > 0) {
3323
3323
  de(t, "required", !1), de(t, "name", !1);
@@ -3330,9 +3330,9 @@ const $t = (e, t, n) => {
3330
3330
  );
3331
3331
  } else
3332
3332
  de(t, "name", !0, e.query("GET_NAME")), e.query("GET_CHECK_VALIDITY") && t.setCustomValidity(""), e.query("GET_REQUIRED") && de(t, "required", !0);
3333
- }, Ga = ({ root: e }) => {
3333
+ }, xa = ({ root: e }) => {
3334
3334
  e.query("GET_CHECK_VALIDITY") && e.element.setCustomValidity(e.query("GET_LABEL_INVALID_FIELD"));
3335
- }, xa = $({
3335
+ }, Fa = $({
3336
3336
  tag: "input",
3337
3337
  name: "browser",
3338
3338
  ignoreRect: !0,
@@ -3340,46 +3340,46 @@ const $t = (e, t, n) => {
3340
3340
  attributes: {
3341
3341
  type: "file"
3342
3342
  },
3343
- create: va,
3343
+ create: Ga,
3344
3344
  destroy: ({ root: e }) => {
3345
3345
  e.element.removeEventListener("change", e.ref.handleChange);
3346
3346
  },
3347
3347
  write: K({
3348
- DID_LOAD_ITEM: bn,
3349
- DID_REMOVE_ITEM: bn,
3350
- DID_THROW_ITEM_INVALID: Ga,
3351
- DID_SET_DISABLED: Nt,
3352
- DID_SET_ALLOW_BROWSE: Nt,
3353
- DID_SET_ALLOW_DIRECTORIES_ONLY: Ds,
3354
- DID_SET_ALLOW_MULTIPLE: Ss,
3355
- DID_SET_ACCEPTED_FILE_TYPES: Os,
3356
- DID_SET_CAPTURE_METHOD: As,
3357
- DID_SET_REQUIRED: ys
3348
+ DID_LOAD_ITEM: Nn,
3349
+ DID_REMOVE_ITEM: Nn,
3350
+ DID_THROW_ITEM_INVALID: xa,
3351
+ DID_SET_DISABLED: Gt,
3352
+ DID_SET_ALLOW_BROWSE: Gt,
3353
+ DID_SET_ALLOW_DIRECTORIES_ONLY: ys,
3354
+ DID_SET_ALLOW_MULTIPLE: Ds,
3355
+ DID_SET_ACCEPTED_FILE_TYPES: Ss,
3356
+ DID_SET_CAPTURE_METHOD: Ms,
3357
+ DID_SET_REQUIRED: As
3358
3358
  })
3359
- }), Nn = {
3359
+ }), vn = {
3360
3360
  ENTER: 13,
3361
3361
  SPACE: 32
3362
- }, Fa = ({ root: e, props: t }) => {
3362
+ }, Ba = ({ root: e, props: t }) => {
3363
3363
  const n = _e("label");
3364
3364
  z(n, "for", `filepond--browser-${t.id}`), z(n, "id", `filepond--drop-label-${t.id}`), e.ref.handleKeyDown = (s) => {
3365
- (s.keyCode === Nn.ENTER || s.keyCode === Nn.SPACE) && (s.preventDefault(), e.ref.label.click());
3365
+ (s.keyCode === vn.ENTER || s.keyCode === vn.SPACE) && (s.preventDefault(), e.ref.label.click());
3366
3366
  }, e.ref.handleClick = (s) => {
3367
3367
  s.target === n || n.contains(s.target) || e.ref.label.click();
3368
- }, n.addEventListener("keydown", e.ref.handleKeyDown), e.element.addEventListener("click", e.ref.handleClick), Ms(n, t.caption), e.appendChild(n), e.ref.label = n;
3369
- }, Ms = (e, t) => {
3368
+ }, n.addEventListener("keydown", e.ref.handleKeyDown), e.element.addEventListener("click", e.ref.handleClick), Ls(n, t.caption), e.appendChild(n), e.ref.label = n;
3369
+ }, Ls = (e, t) => {
3370
3370
  e.innerHTML = t;
3371
3371
  const n = e.querySelector(".filepond--label-action");
3372
3372
  return n && z(n, "tabindex", "0"), t;
3373
- }, Ba = $({
3373
+ }, Ua = $({
3374
3374
  name: "drop-label",
3375
3375
  ignoreRect: !0,
3376
- create: Fa,
3376
+ create: Ba,
3377
3377
  destroy: ({ root: e }) => {
3378
3378
  e.ref.label.addEventListener("keydown", e.ref.handleKeyDown), e.element.removeEventListener("click", e.ref.handleClick);
3379
3379
  },
3380
3380
  write: K({
3381
3381
  DID_SET_LABEL_IDLE: ({ root: e, action: t }) => {
3382
- Ms(e.ref.label, t.value);
3382
+ Ls(e.ref.label, t.value);
3383
3383
  }
3384
3384
  }),
3385
3385
  mixins: {
@@ -3390,7 +3390,7 @@ const $t = (e, t, n) => {
3390
3390
  translateY: "spring"
3391
3391
  }
3392
3392
  }
3393
- }), Ua = $({
3393
+ }), Va = $({
3394
3394
  name: "drip-blob",
3395
3395
  ignoreRect: !0,
3396
3396
  mixins: {
@@ -3403,10 +3403,10 @@ const $t = (e, t, n) => {
3403
3403
  opacity: { type: "tween", duration: 250 }
3404
3404
  }
3405
3405
  }
3406
- }), Va = ({ root: e }) => {
3406
+ }), Ha = ({ root: e }) => {
3407
3407
  const t = e.rect.element.width * 0.5, n = e.rect.element.height * 0.5;
3408
3408
  e.ref.blob = e.appendChildView(
3409
- e.createChildView(Ua, {
3409
+ e.createChildView(Va, {
3410
3410
  opacity: 0,
3411
3411
  scaleX: 2.5,
3412
3412
  scaleY: 2.5,
@@ -3414,30 +3414,30 @@ const $t = (e, t, n) => {
3414
3414
  translateY: n
3415
3415
  })
3416
3416
  );
3417
- }, Ha = ({ root: e, action: t }) => {
3417
+ }, Ya = ({ root: e, action: t }) => {
3418
3418
  if (!e.ref.blob) {
3419
- Va({ root: e });
3419
+ Ha({ root: e });
3420
3420
  return;
3421
3421
  }
3422
3422
  e.ref.blob.translateX = t.position.scopeLeft, e.ref.blob.translateY = t.position.scopeTop, e.ref.blob.scaleX = 1, e.ref.blob.scaleY = 1, e.ref.blob.opacity = 1;
3423
- }, Ya = ({ root: e }) => {
3424
- e.ref.blob && (e.ref.blob.opacity = 0);
3425
3423
  }, Wa = ({ root: e }) => {
3424
+ e.ref.blob && (e.ref.blob.opacity = 0);
3425
+ }, qa = ({ root: e }) => {
3426
3426
  e.ref.blob && (e.ref.blob.scaleX = 2.5, e.ref.blob.scaleY = 2.5, e.ref.blob.opacity = 0);
3427
- }, qa = ({ root: e, props: t, actions: n }) => {
3428
- $a({ root: e, props: t, actions: n });
3427
+ }, $a = ({ root: e, props: t, actions: n }) => {
3428
+ za({ root: e, props: t, actions: n });
3429
3429
  const { blob: s } = e.ref;
3430
3430
  n.length === 0 && s && s.opacity === 0 && (e.removeChildView(s), e.ref.blob = null);
3431
- }, $a = K({
3432
- DID_DRAG: Ha,
3433
- DID_DROP: Wa,
3434
- DID_END_DRAG: Ya
3435
- }), za = $({
3431
+ }, za = K({
3432
+ DID_DRAG: Ya,
3433
+ DID_DROP: qa,
3434
+ DID_END_DRAG: Wa
3435
+ }), ka = $({
3436
3436
  ignoreRect: !0,
3437
3437
  ignoreRectUpdate: !0,
3438
3438
  name: "drip",
3439
- write: qa
3440
- }), Ls = (e, t) => {
3439
+ write: $a
3440
+ }), ws = (e, t) => {
3441
3441
  try {
3442
3442
  const n = new DataTransfer();
3443
3443
  t.forEach((s) => {
@@ -3451,60 +3451,60 @@ const $t = (e, t, n) => {
3451
3451
  return !1;
3452
3452
  }
3453
3453
  return !0;
3454
- }, ka = ({ root: e }) => {
3454
+ }, ja = ({ root: e }) => {
3455
3455
  e.ref.fields = {};
3456
3456
  const t = document.createElement("legend");
3457
3457
  t.textContent = "Files", e.element.appendChild(t);
3458
- }, _t = (e, t) => e.ref.fields[t], zt = (e) => {
3458
+ }, Tt = (e, t) => e.ref.fields[t], kt = (e) => {
3459
3459
  e.query("GET_ACTIVE_ITEMS").forEach((t) => {
3460
3460
  e.ref.fields[t.id] && e.element.appendChild(e.ref.fields[t.id]);
3461
3461
  });
3462
- }, vn = ({ root: e }) => zt(e), Xa = ({ root: e, action: t }) => {
3462
+ }, Gn = ({ root: e }) => kt(e), Xa = ({ root: e, action: t }) => {
3463
3463
  const r = !(e.query("GET_ITEM", t.id).origin === k.LOCAL) && e.query("SHOULD_UPDATE_FILE_INPUT"), a = _e("input");
3464
- a.type = r ? "file" : "hidden", a.name = e.query("GET_NAME"), e.ref.fields[t.id] = a, zt(e);
3465
- }, ja = ({ root: e, action: t }) => {
3466
- const n = _t(e, t.id);
3464
+ a.type = r ? "file" : "hidden", a.name = e.query("GET_NAME"), e.ref.fields[t.id] = a, kt(e);
3465
+ }, Za = ({ root: e, action: t }) => {
3466
+ const n = Tt(e, t.id);
3467
3467
  if (!n || (t.serverFileReference !== null && (n.value = t.serverFileReference), !e.query("SHOULD_UPDATE_FILE_INPUT"))) return;
3468
3468
  const s = e.query("GET_ITEM", t.id);
3469
- Ls(n, [s.file]);
3470
- }, Za = ({ root: e, action: t }) => {
3469
+ ws(n, [s.file]);
3470
+ }, Qa = ({ root: e, action: t }) => {
3471
3471
  e.query("SHOULD_UPDATE_FILE_INPUT") && setTimeout(() => {
3472
- const n = _t(e, t.id);
3473
- n && Ls(n, [t.file]);
3472
+ const n = Tt(e, t.id);
3473
+ n && ws(n, [t.file]);
3474
3474
  }, 0);
3475
- }, Qa = ({ root: e }) => {
3475
+ }, Ka = ({ root: e }) => {
3476
3476
  e.element.disabled = e.query("GET_DISABLED");
3477
- }, Ka = ({ root: e, action: t }) => {
3478
- const n = _t(e, t.id);
3479
- n && (n.parentNode && n.parentNode.removeChild(n), delete e.ref.fields[t.id]);
3480
3477
  }, Ja = ({ root: e, action: t }) => {
3481
- const n = _t(e, t.id);
3482
- n && (t.value === null ? n.removeAttribute("value") : n.type != "file" && (n.value = t.value), zt(e));
3483
- }, eo = K({
3484
- DID_SET_DISABLED: Qa,
3478
+ const n = Tt(e, t.id);
3479
+ n && (n.parentNode && n.parentNode.removeChild(n), delete e.ref.fields[t.id]);
3480
+ }, eo = ({ root: e, action: t }) => {
3481
+ const n = Tt(e, t.id);
3482
+ n && (t.value === null ? n.removeAttribute("value") : n.type != "file" && (n.value = t.value), kt(e));
3483
+ }, to = K({
3484
+ DID_SET_DISABLED: Ka,
3485
3485
  DID_ADD_ITEM: Xa,
3486
- DID_LOAD_ITEM: ja,
3487
- DID_REMOVE_ITEM: Ka,
3488
- DID_DEFINE_VALUE: Ja,
3489
- DID_PREPARE_OUTPUT: Za,
3490
- DID_REORDER_ITEMS: vn,
3491
- DID_SORT_ITEMS: vn
3492
- }), to = $({
3486
+ DID_LOAD_ITEM: Za,
3487
+ DID_REMOVE_ITEM: Ja,
3488
+ DID_DEFINE_VALUE: eo,
3489
+ DID_PREPARE_OUTPUT: Qa,
3490
+ DID_REORDER_ITEMS: Gn,
3491
+ DID_SORT_ITEMS: Gn
3492
+ }), no = $({
3493
3493
  tag: "fieldset",
3494
3494
  name: "data",
3495
- create: ka,
3496
- write: eo,
3495
+ create: ja,
3496
+ write: to,
3497
3497
  ignoreRect: !0
3498
- }), no = (e) => "getRootNode" in e ? e.getRootNode() : document, so = ["jpg", "jpeg", "png", "gif", "bmp", "webp", "svg", "tiff"], ro = ["css", "csv", "html", "txt"], io = {
3498
+ }), so = (e) => "getRootNode" in e ? e.getRootNode() : document, ro = ["jpg", "jpeg", "png", "gif", "bmp", "webp", "svg", "tiff"], io = ["css", "csv", "html", "txt"], ao = {
3499
3499
  zip: "zip|compressed",
3500
3500
  epub: "application/epub+zip"
3501
- }, ws = (e = "") => (e = e.toLowerCase(), so.includes(e) ? "image/" + (e === "jpg" ? "jpeg" : e === "svg" ? "svg+xml" : e) : ro.includes(e) ? "text/" + e : io[e] || ""), kt = (e) => new Promise((t, n) => {
3502
- const s = po(e);
3503
- if (s.length && !ao(e))
3501
+ }, Ps = (e = "") => (e = e.toLowerCase(), ro.includes(e) ? "image/" + (e === "jpg" ? "jpeg" : e === "svg" ? "svg+xml" : e) : io.includes(e) ? "text/" + e : ao[e] || ""), jt = (e) => new Promise((t, n) => {
3502
+ const s = Io(e);
3503
+ if (s.length && !oo(e))
3504
3504
  return t(s);
3505
- oo(e).then(t);
3506
- }), ao = (e) => e.files ? e.files.length > 0 : !1, oo = (e) => new Promise((t, n) => {
3507
- const s = (e.items ? Array.from(e.items) : []).filter((r) => lo(r)).map((r) => co(r));
3505
+ lo(e).then(t);
3506
+ }), oo = (e) => e.files ? e.files.length > 0 : !1, lo = (e) => new Promise((t, n) => {
3507
+ const s = (e.items ? Array.from(e.items) : []).filter((r) => co(r)).map((r) => uo(r));
3508
3508
  if (!s.length) {
3509
3509
  t(e.files ? Array.from(e.files) : []);
3510
3510
  return;
@@ -3517,20 +3517,20 @@ const $t = (e, t, n) => {
3517
3517
  a.filter((i) => i).map((i) => (i._relativePath || (i._relativePath = i.webkitRelativePath), i))
3518
3518
  );
3519
3519
  }).catch(console.error);
3520
- }), lo = (e) => {
3521
- if (Ps(e)) {
3520
+ }), co = (e) => {
3521
+ if (Cs(e)) {
3522
3522
  const t = Xt(e);
3523
3523
  if (t)
3524
3524
  return t.isFile || t.isDirectory;
3525
3525
  }
3526
3526
  return e.kind === "file";
3527
- }, co = (e) => new Promise((t, n) => {
3528
- if (Eo(e)) {
3529
- uo(Xt(e)).then(t).catch(n);
3527
+ }, uo = (e) => new Promise((t, n) => {
3528
+ if (po(e)) {
3529
+ fo(Xt(e)).then(t).catch(n);
3530
3530
  return;
3531
3531
  }
3532
3532
  t([e.getAsFile()]);
3533
- }), uo = (e) => new Promise((t, n) => {
3533
+ }), fo = (e) => new Promise((t, n) => {
3534
3534
  const s = [];
3535
3535
  let r = 0, a = 0;
3536
3536
  const i = () => {
@@ -3545,7 +3545,7 @@ const $t = (e, t, n) => {
3545
3545
  }
3546
3546
  f.forEach((I) => {
3547
3547
  I.isDirectory ? l(I) : (a++, I.file((p) => {
3548
- const u = fo(p);
3548
+ const u = Eo(p);
3549
3549
  I.fullPath && (u._relativePath = I.fullPath), s.push(u), a--, i();
3550
3550
  }));
3551
3551
  }), c();
@@ -3554,23 +3554,23 @@ const $t = (e, t, n) => {
3554
3554
  c();
3555
3555
  };
3556
3556
  l(e);
3557
- }), fo = (e) => {
3557
+ }), Eo = (e) => {
3558
3558
  if (e.type.length) return e;
3559
- const t = e.lastModifiedDate, n = e.name, s = ws(It(e.name));
3559
+ const t = e.lastModifiedDate, n = e.name, s = Ps(mt(e.name));
3560
3560
  return s.length && (e = e.slice(0, e.size, s), e.name = n, e.lastModifiedDate = t), e;
3561
- }, Eo = (e) => Ps(e) && (Xt(e) || {}).isDirectory, Ps = (e) => "webkitGetAsEntry" in e, Xt = (e) => e.webkitGetAsEntry(), po = (e) => {
3561
+ }, po = (e) => Cs(e) && (Xt(e) || {}).isDirectory, Cs = (e) => "webkitGetAsEntry" in e, Xt = (e) => e.webkitGetAsEntry(), Io = (e) => {
3562
3562
  let t = [];
3563
3563
  try {
3564
- if (t = _o(e), t.length)
3564
+ if (t = mo(e), t.length)
3565
3565
  return t;
3566
- t = Io(e);
3566
+ t = _o(e);
3567
3567
  } catch {
3568
3568
  }
3569
3569
  return t;
3570
- }, Io = (e) => {
3570
+ }, _o = (e) => {
3571
3571
  let t = e.getData("url");
3572
3572
  return typeof t == "string" && t.length ? [t] : [];
3573
- }, _o = (e) => {
3573
+ }, mo = (e) => {
3574
3574
  let t = e.getData("text/html");
3575
3575
  if (typeof t == "string" && t.length) {
3576
3576
  const n = t.match(/src\s*=\s*"(.+?)"/);
@@ -3578,13 +3578,13 @@ const $t = (e, t, n) => {
3578
3578
  return [n[1]];
3579
3579
  }
3580
3580
  return [];
3581
- }, ct = [], Ae = (e) => ({
3581
+ }, dt = [], Me = (e) => ({
3582
3582
  pageLeft: e.pageX,
3583
3583
  pageTop: e.pageY,
3584
3584
  scopeLeft: e.offsetX || e.layerX,
3585
3585
  scopeTop: e.offsetY || e.layerY
3586
- }), mo = (e, t, n) => {
3587
- const s = To(t), r = {
3586
+ }), To = (e, t, n) => {
3587
+ const s = go(t), r = {
3588
3588
  element: e,
3589
3589
  filterElement: n,
3590
3590
  state: null,
@@ -3602,18 +3602,18 @@ const $t = (e, t, n) => {
3602
3602
  }
3603
3603
  };
3604
3604
  return r.destroy = s.addListener(r), r;
3605
- }, To = (e) => {
3606
- const t = ct.find((s) => s.element === e);
3605
+ }, go = (e) => {
3606
+ const t = dt.find((s) => s.element === e);
3607
3607
  if (t)
3608
3608
  return t;
3609
- const n = go(e);
3610
- return ct.push(n), n;
3611
- }, go = (e) => {
3609
+ const n = ho(e);
3610
+ return dt.push(n), n;
3611
+ }, ho = (e) => {
3612
3612
  const t = [], n = {
3613
- dragenter: Ro,
3614
- dragover: Oo,
3615
- dragleave: Do,
3616
- drop: So
3613
+ dragenter: Oo,
3614
+ dragover: So,
3615
+ dragleave: yo,
3616
+ drop: Do
3617
3617
  }, s = {};
3618
3618
  Y(n, (a, i) => {
3619
3619
  s[a] = i(e, t), e.addEventListener(a, s[a], !1);
@@ -3621,34 +3621,34 @@ const $t = (e, t, n) => {
3621
3621
  const r = {
3622
3622
  element: e,
3623
3623
  addListener: (a) => (t.push(a), () => {
3624
- t.splice(t.indexOf(a), 1), t.length === 0 && (ct.splice(ct.indexOf(r), 1), Y(n, (i) => {
3624
+ t.splice(t.indexOf(a), 1), t.length === 0 && (dt.splice(dt.indexOf(r), 1), Y(n, (i) => {
3625
3625
  e.removeEventListener(i, s[i], !1);
3626
3626
  }));
3627
3627
  })
3628
3628
  };
3629
3629
  return r;
3630
- }, ho = (e, t) => ("elementFromPoint" in e || (e = document), e.elementFromPoint(t.x, t.y)), jt = (e, t) => {
3631
- const n = no(t), s = ho(n, {
3630
+ }, Ro = (e, t) => ("elementFromPoint" in e || (e = document), e.elementFromPoint(t.x, t.y)), Zt = (e, t) => {
3631
+ const n = so(t), s = Ro(n, {
3632
3632
  x: e.pageX - window.pageXOffset,
3633
3633
  y: e.pageY - window.pageYOffset
3634
3634
  });
3635
3635
  return s === t || t.contains(s);
3636
3636
  };
3637
- let Cs = null;
3637
+ let bs = null;
3638
3638
  const tt = (e, t) => {
3639
3639
  try {
3640
3640
  e.dropEffect = t;
3641
3641
  } catch {
3642
3642
  }
3643
- }, Ro = (e, t) => (n) => {
3644
- n.preventDefault(), Cs = n.target, t.forEach((s) => {
3643
+ }, Oo = (e, t) => (n) => {
3644
+ n.preventDefault(), bs = n.target, t.forEach((s) => {
3645
3645
  const { element: r, onenter: a } = s;
3646
- jt(n, r) && (s.state = "enter", a(Ae(n)));
3646
+ Zt(n, r) && (s.state = "enter", a(Me(n)));
3647
3647
  });
3648
- }, Oo = (e, t) => (n) => {
3648
+ }, So = (e, t) => (n) => {
3649
3649
  n.preventDefault();
3650
3650
  const s = n.dataTransfer;
3651
- kt(s).then((r) => {
3651
+ jt(s).then((r) => {
3652
3652
  let a = !1;
3653
3653
  t.some((i) => {
3654
3654
  const { filterElement: l, element: o, onenter: d, onexit: c, ondrag: f, allowdrop: I } = i;
@@ -3658,40 +3658,40 @@ const tt = (e, t) => {
3658
3658
  tt(s, "none");
3659
3659
  return;
3660
3660
  }
3661
- if (jt(n, o)) {
3661
+ if (Zt(n, o)) {
3662
3662
  if (a = !0, i.state === null) {
3663
- i.state = "enter", d(Ae(n));
3663
+ i.state = "enter", d(Me(n));
3664
3664
  return;
3665
3665
  }
3666
3666
  if (i.state = "over", l && !p) {
3667
3667
  tt(s, "none");
3668
3668
  return;
3669
3669
  }
3670
- f(Ae(n));
3670
+ f(Me(n));
3671
3671
  } else
3672
- l && !a && tt(s, "none"), i.state && (i.state = null, c(Ae(n)));
3672
+ l && !a && tt(s, "none"), i.state && (i.state = null, c(Me(n)));
3673
3673
  });
3674
3674
  });
3675
- }, So = (e, t) => (n) => {
3675
+ }, Do = (e, t) => (n) => {
3676
3676
  n.preventDefault();
3677
3677
  const s = n.dataTransfer;
3678
- kt(s).then((r) => {
3678
+ jt(s).then((r) => {
3679
3679
  t.forEach((a) => {
3680
3680
  const { filterElement: i, element: l, ondrop: o, onexit: d, allowdrop: c } = a;
3681
- if (a.state = null, !(i && !jt(n, l))) {
3682
- if (!c(r)) return d(Ae(n));
3683
- o(Ae(n), r);
3681
+ if (a.state = null, !(i && !Zt(n, l))) {
3682
+ if (!c(r)) return d(Me(n));
3683
+ o(Me(n), r);
3684
3684
  }
3685
3685
  });
3686
3686
  });
3687
- }, Do = (e, t) => (n) => {
3688
- Cs === n.target && t.forEach((s) => {
3687
+ }, yo = (e, t) => (n) => {
3688
+ bs === n.target && t.forEach((s) => {
3689
3689
  const { onexit: r } = s;
3690
- s.state = null, r(Ae(n));
3690
+ s.state = null, r(Me(n));
3691
3691
  });
3692
- }, yo = (e, t, n) => {
3692
+ }, Ao = (e, t, n) => {
3693
3693
  e.classList.add("filepond--hopper");
3694
- const { catchesDropsOnPage: s, requiresDropOnElement: r, filterItems: a = (c) => c } = n, i = mo(
3694
+ const { catchesDropsOnPage: s, requiresDropOnElement: r, filterItems: a = (c) => c } = n, i = To(
3695
3695
  e,
3696
3696
  s ? document.documentElement : e,
3697
3697
  r
@@ -3729,8 +3729,8 @@ const tt = (e, t) => {
3729
3729
  };
3730
3730
  return d;
3731
3731
  };
3732
- let vt = !1;
3733
- const ve = [], bs = (e) => {
3732
+ let xt = !1;
3733
+ const Ge = [], Ns = (e) => {
3734
3734
  const t = document.activeElement;
3735
3735
  if (t && (/textarea|input/i.test(t.nodeName) || t.getAttribute("contenteditable") === "true" || t.getAttribute("contenteditable") === "")) {
3736
3736
  let s = !1, r = t;
@@ -3743,72 +3743,72 @@ const ve = [], bs = (e) => {
3743
3743
  }
3744
3744
  if (!s) return;
3745
3745
  }
3746
- kt(e.clipboardData).then((s) => {
3747
- s.length && ve.forEach((r) => r(s));
3746
+ jt(e.clipboardData).then((s) => {
3747
+ s.length && Ge.forEach((r) => r(s));
3748
3748
  });
3749
- }, Ao = (e) => {
3750
- ve.includes(e) || (ve.push(e), !vt && (vt = !0, document.addEventListener("paste", bs)));
3751
3749
  }, Mo = (e) => {
3752
- Vt(ve, ve.indexOf(e)), ve.length === 0 && (document.removeEventListener("paste", bs), vt = !1);
3753
- }, Lo = () => {
3750
+ Ge.includes(e) || (Ge.push(e), !xt && (xt = !0, document.addEventListener("paste", Ns)));
3751
+ }, Lo = (e) => {
3752
+ Ht(Ge, Ge.indexOf(e)), Ge.length === 0 && (document.removeEventListener("paste", Ns), xt = !1);
3753
+ }, wo = () => {
3754
3754
  const e = (n) => {
3755
3755
  t.onload(n);
3756
3756
  }, t = {
3757
3757
  destroy: () => {
3758
- Mo(e);
3758
+ Lo(e);
3759
3759
  },
3760
3760
  onload: () => {
3761
3761
  }
3762
3762
  };
3763
- return Ao(e), t;
3764
- }, wo = ({ root: e, props: t }) => {
3763
+ return Mo(e), t;
3764
+ }, Po = ({ root: e, props: t }) => {
3765
3765
  e.element.id = `filepond--assistant-${t.id}`, z(e.element, "role", "alert"), z(e.element, "aria-live", "polite"), z(e.element, "aria-relevant", "additions");
3766
3766
  };
3767
- let Gn = null, xn = null;
3768
- const Dt = [], mt = (e, t) => {
3767
+ let xn = null, Fn = null;
3768
+ const At = [], gt = (e, t) => {
3769
3769
  e.element.textContent = t;
3770
- }, Po = (e) => {
3770
+ }, Co = (e) => {
3771
3771
  e.element.textContent = "";
3772
- }, Ns = (e, t, n) => {
3772
+ }, vs = (e, t, n) => {
3773
3773
  const s = e.query("GET_TOTAL_ITEMS");
3774
- mt(
3774
+ gt(
3775
3775
  e,
3776
3776
  `${n} ${t}, ${s} ${s === 1 ? e.query("GET_LABEL_FILE_COUNT_SINGULAR") : e.query("GET_LABEL_FILE_COUNT_PLURAL")}`
3777
- ), clearTimeout(xn), xn = setTimeout(() => {
3778
- Po(e);
3777
+ ), clearTimeout(Fn), Fn = setTimeout(() => {
3778
+ Co(e);
3779
3779
  }, 1500);
3780
- }, vs = (e) => e.element.parentNode.contains(document.activeElement), Co = ({ root: e, action: t }) => {
3781
- if (!vs(e))
3780
+ }, Gs = (e) => e.element.parentNode.contains(document.activeElement), bo = ({ root: e, action: t }) => {
3781
+ if (!Gs(e))
3782
3782
  return;
3783
3783
  e.element.textContent = "";
3784
3784
  const n = e.query("GET_ITEM", t.id);
3785
- Dt.push(n.filename), clearTimeout(Gn), Gn = setTimeout(() => {
3786
- Ns(e, Dt.join(", "), e.query("GET_LABEL_FILE_ADDED")), Dt.length = 0;
3785
+ At.push(n.filename), clearTimeout(xn), xn = setTimeout(() => {
3786
+ vs(e, At.join(", "), e.query("GET_LABEL_FILE_ADDED")), At.length = 0;
3787
3787
  }, 750);
3788
- }, bo = ({ root: e, action: t }) => {
3789
- if (!vs(e))
3788
+ }, No = ({ root: e, action: t }) => {
3789
+ if (!Gs(e))
3790
3790
  return;
3791
3791
  const n = t.item;
3792
- Ns(e, n.filename, e.query("GET_LABEL_FILE_REMOVED"));
3793
- }, No = ({ root: e, action: t }) => {
3792
+ vs(e, n.filename, e.query("GET_LABEL_FILE_REMOVED"));
3793
+ }, vo = ({ root: e, action: t }) => {
3794
3794
  const s = e.query("GET_ITEM", t.id).filename, r = e.query("GET_LABEL_FILE_PROCESSING_COMPLETE");
3795
- mt(e, `${s} ${r}`);
3796
- }, Fn = ({ root: e, action: t }) => {
3795
+ gt(e, `${s} ${r}`);
3796
+ }, Bn = ({ root: e, action: t }) => {
3797
3797
  const s = e.query("GET_ITEM", t.id).filename, r = e.query("GET_LABEL_FILE_PROCESSING_ABORTED");
3798
- mt(e, `${s} ${r}`);
3798
+ gt(e, `${s} ${r}`);
3799
3799
  }, nt = ({ root: e, action: t }) => {
3800
3800
  const s = e.query("GET_ITEM", t.id).filename;
3801
- mt(e, `${t.status.main} ${s} ${t.status.sub}`);
3802
- }, vo = $({
3803
- create: wo,
3801
+ gt(e, `${t.status.main} ${s} ${t.status.sub}`);
3802
+ }, Go = $({
3803
+ create: Po,
3804
3804
  ignoreRect: !0,
3805
3805
  ignoreRectUpdate: !0,
3806
3806
  write: K({
3807
- DID_LOAD_ITEM: Co,
3808
- DID_REMOVE_ITEM: bo,
3809
- DID_COMPLETE_ITEM_PROCESSING: No,
3810
- DID_ABORT_ITEM_PROCESSING: Fn,
3811
- DID_REVERT_ITEM_PROCESSING: Fn,
3807
+ DID_LOAD_ITEM: bo,
3808
+ DID_REMOVE_ITEM: No,
3809
+ DID_COMPLETE_ITEM_PROCESSING: vo,
3810
+ DID_ABORT_ITEM_PROCESSING: Bn,
3811
+ DID_REVERT_ITEM_PROCESSING: Bn,
3812
3812
  DID_THROW_ITEM_REMOVE_ERROR: nt,
3813
3813
  DID_THROW_ITEM_LOAD_ERROR: nt,
3814
3814
  DID_THROW_ITEM_INVALID: nt,
@@ -3816,7 +3816,7 @@ const Dt = [], mt = (e, t) => {
3816
3816
  }),
3817
3817
  tag: "span",
3818
3818
  name: "assistant"
3819
- }), Gs = (e, t = "-") => e.replace(new RegExp(`${t}.`, "g"), (n) => n.charAt(1).toUpperCase()), xs = (e, t = 16, n = !0) => {
3819
+ }), xs = (e, t = "-") => e.replace(new RegExp(`${t}.`, "g"), (n) => n.charAt(1).toUpperCase()), Fs = (e, t = 16, n = !0) => {
3820
3820
  let s = Date.now(), r = null;
3821
3821
  return (...a) => {
3822
3822
  clearTimeout(r);
@@ -3825,57 +3825,57 @@ const Dt = [], mt = (e, t) => {
3825
3825
  };
3826
3826
  i < t ? n || (r = setTimeout(l, t - i)) : l();
3827
3827
  };
3828
- }, Go = 1e6, dt = (e) => e.preventDefault(), xo = ({ root: e, props: t }) => {
3828
+ }, xo = 1e6, ut = (e) => e.preventDefault(), Fo = ({ root: e, props: t }) => {
3829
3829
  const n = e.query("GET_ID");
3830
3830
  n && (e.element.id = n);
3831
3831
  const s = e.query("GET_CLASS_NAME");
3832
3832
  s && s.split(" ").filter((o) => o.length).forEach((o) => {
3833
3833
  e.element.classList.add(o);
3834
3834
  }), e.ref.label = e.appendChildView(
3835
- e.createChildView(Ba, {
3835
+ e.createChildView(Ua, {
3836
3836
  ...t,
3837
3837
  translateY: null,
3838
3838
  caption: e.query("GET_LABEL_IDLE")
3839
3839
  })
3840
- ), e.ref.list = e.appendChildView(e.createChildView(ba, { translateY: null })), e.ref.panel = e.appendChildView(e.createChildView(Rs, { name: "panel-root" })), e.ref.assistant = e.appendChildView(e.createChildView(vo, { ...t })), e.ref.data = e.appendChildView(e.createChildView(to, { ...t })), e.ref.measure = _e("div"), e.ref.measure.style.height = "100%", e.element.appendChild(e.ref.measure), e.ref.bounds = null, e.query("GET_STYLES").filter((o) => !Ie(o.value)).map(({ name: o, value: d }) => {
3840
+ ), e.ref.list = e.appendChildView(e.createChildView(Na, { translateY: null })), e.ref.panel = e.appendChildView(e.createChildView(Os, { name: "panel-root" })), e.ref.assistant = e.appendChildView(e.createChildView(Go, { ...t })), e.ref.data = e.appendChildView(e.createChildView(no, { ...t })), e.ref.measure = _e("div"), e.ref.measure.style.height = "100%", e.element.appendChild(e.ref.measure), e.ref.bounds = null, e.query("GET_STYLES").filter((o) => !Ie(o.value)).map(({ name: o, value: d }) => {
3841
3841
  e.element.dataset[o] = d;
3842
- }), e.ref.widthPrevious = null, e.ref.widthUpdated = xs(() => {
3842
+ }), e.ref.widthPrevious = null, e.ref.widthUpdated = Fs(() => {
3843
3843
  e.ref.updateHistory = [], e.dispatch("DID_RESIZE_ROOT");
3844
3844
  }, 250), e.ref.previousAspectRatio = null, e.ref.updateHistory = [];
3845
3845
  const r = window.matchMedia("(pointer: fine) and (hover: hover)").matches, a = "PointerEvent" in window;
3846
- e.query("GET_ALLOW_REORDER") && a && !r && (e.element.addEventListener("touchmove", dt, { passive: !1 }), e.element.addEventListener("gesturestart", dt));
3846
+ e.query("GET_ALLOW_REORDER") && a && !r && (e.element.addEventListener("touchmove", ut, { passive: !1 }), e.element.addEventListener("gesturestart", ut));
3847
3847
  const i = e.query("GET_CREDITS");
3848
3848
  if (i.length === 2) {
3849
3849
  const o = document.createElement("a");
3850
3850
  o.className = "filepond--credits", o.href = i[0], o.tabIndex = -1, o.target = "_blank", o.rel = "noopener noreferrer nofollow", o.textContent = i[1], e.element.appendChild(o), e.ref.credits = o;
3851
3851
  }
3852
- }, Fo = ({ root: e, props: t, actions: n }) => {
3853
- if (Yo({ root: e, props: t, actions: n }), n.filter((M) => /^DID_SET_STYLE_/.test(M.type)).filter((M) => !Ie(M.data.value)).map(({ type: M, data: N }) => {
3854
- const D = Gs(M.substring(8).toLowerCase(), "_");
3852
+ }, Bo = ({ root: e, props: t, actions: n }) => {
3853
+ if (Wo({ root: e, props: t, actions: n }), n.filter((M) => /^DID_SET_STYLE_/.test(M.type)).filter((M) => !Ie(M.data.value)).map(({ type: M, data: N }) => {
3854
+ const D = xs(M.substring(8).toLowerCase(), "_");
3855
3855
  e.element.dataset[D] = N.value, e.invalidateLayout();
3856
3856
  }), e.rect.element.hidden) return;
3857
3857
  e.rect.element.width !== e.ref.widthPrevious && (e.ref.widthPrevious = e.rect.element.width, e.ref.widthUpdated());
3858
3858
  let s = e.ref.bounds;
3859
- s || (s = e.ref.bounds = Vo(e), e.element.removeChild(e.ref.measure), e.ref.measure = null);
3859
+ s || (s = e.ref.bounds = Ho(e), e.element.removeChild(e.ref.measure), e.ref.measure = null);
3860
3860
  const { hopper: r, label: a, list: i, panel: l } = e.ref;
3861
3861
  r && r.updateHopperState();
3862
- const o = e.query("GET_PANEL_ASPECT_RATIO"), d = e.query("GET_ALLOW_MULTIPLE"), c = e.query("GET_TOTAL_ITEMS"), f = d ? e.query("GET_MAX_FILES") || Go : 1, I = c === f, p = n.find((M) => M.type === "DID_ADD_ITEM");
3862
+ const o = e.query("GET_PANEL_ASPECT_RATIO"), d = e.query("GET_ALLOW_MULTIPLE"), c = e.query("GET_TOTAL_ITEMS"), f = d ? e.query("GET_MAX_FILES") || xo : 1, I = c === f, p = n.find((M) => M.type === "DID_ADD_ITEM");
3863
3863
  if (I && p) {
3864
3864
  const M = p.data.interactionMethod;
3865
3865
  a.opacity = 0, d ? a.translateY = -40 : M === ae.API ? a.translateX = 40 : M === ae.BROWSE ? a.translateY = 40 : a.translateY = 30;
3866
3866
  } else I || (a.opacity = 1, a.translateX = 0, a.translateY = 0);
3867
- const u = Bo(e), _ = Uo(e), T = a.rect.element.height, h = !d || I ? 0 : T, E = I ? i.rect.element.marginTop : 0, m = c === 0 ? 0 : i.rect.element.marginBottom, R = h + E + _.visual + m, S = h + E + _.bounds + m;
3867
+ const u = Uo(e), _ = Vo(e), T = a.rect.element.height, h = !d || I ? 0 : T, E = I ? i.rect.element.marginTop : 0, m = c === 0 ? 0 : i.rect.element.marginBottom, R = h + E + _.visual + m, S = h + E + _.bounds + m;
3868
3868
  if (i.translateY = Math.max(0, h - i.rect.element.marginTop) - u.top, o) {
3869
3869
  const M = e.rect.element.width, N = M * o;
3870
3870
  o !== e.ref.previousAspectRatio && (e.ref.previousAspectRatio = o, e.ref.updateHistory = []);
3871
3871
  const D = e.ref.updateHistory;
3872
3872
  D.push(M);
3873
- const L = 2;
3874
- if (D.length > L * 2) {
3875
- const w = D.length, C = w - 10;
3873
+ const w = 2;
3874
+ if (D.length > w * 2) {
3875
+ const P = D.length, C = P - 10;
3876
3876
  let V = 0;
3877
- for (let A = w; A >= C; A--)
3878
- if (D[A] === D[A - 2] && V++, V >= L)
3877
+ for (let A = P; A >= C; A--)
3878
+ if (D[A] === D[A - 2] && V++, V >= w)
3879
3879
  return;
3880
3880
  }
3881
3881
  l.scalable = !1, l.height = N;
@@ -3913,7 +3913,7 @@ const Dt = [], mt = (e, t) => {
3913
3913
  l.scalable = !0, l.height = Math.max(T, R - M), e.height = Math.max(T, S - M);
3914
3914
  }
3915
3915
  e.ref.credits && l.heightCurrent && (e.ref.credits.style.transform = `translateY(${l.heightCurrent}px)`);
3916
- }, Bo = (e) => {
3916
+ }, Uo = (e) => {
3917
3917
  const t = e.ref.list.childViews[0].childViews[0];
3918
3918
  return t ? {
3919
3919
  top: t.rect.element.marginTop,
@@ -3922,42 +3922,42 @@ const Dt = [], mt = (e, t) => {
3922
3922
  top: 0,
3923
3923
  bottom: 0
3924
3924
  };
3925
- }, Uo = (e) => {
3925
+ }, Vo = (e) => {
3926
3926
  let t = 0, n = 0;
3927
3927
  const s = e.ref.list, r = s.childViews[0], a = r.childViews.filter((E) => E.rect.element.height), i = e.query("GET_ACTIVE_ITEMS").map((E) => a.find((m) => m.id === E.id)).filter((E) => E);
3928
3928
  if (i.length === 0) return { visual: t, bounds: n };
3929
- const l = r.rect.element.width, o = $t(r, i, s.dragCoordinates), d = i[0].rect.element, c = d.marginTop + d.marginBottom, f = d.marginLeft + d.marginRight, I = d.width + f, p = d.height + c, u = typeof o < "u" && o >= 0 ? 1 : 0, _ = i.find((E) => E.markedForRemoval && E.opacity < 0.45) ? -1 : 0, T = i.length + u + _, h = qt(l, I);
3929
+ const l = r.rect.element.width, o = zt(r, i, s.dragCoordinates), d = i[0].rect.element, c = d.marginTop + d.marginBottom, f = d.marginLeft + d.marginRight, I = d.width + f, p = d.height + c, u = typeof o < "u" && o >= 0 ? 1 : 0, _ = i.find((E) => E.markedForRemoval && E.opacity < 0.45) ? -1 : 0, T = i.length + u + _, h = $t(l, I);
3930
3930
  return h === 1 ? i.forEach((E) => {
3931
3931
  const m = E.rect.element.height + c;
3932
3932
  n += m, t += m * E.opacity;
3933
3933
  }) : (n = Math.ceil(T / h) * p, t = n), { visual: t, bounds: n };
3934
- }, Vo = (e) => {
3934
+ }, Ho = (e) => {
3935
3935
  const t = e.ref.measureHeight || null;
3936
3936
  return {
3937
3937
  cappedHeight: parseInt(e.style.maxHeight, 10) || null,
3938
3938
  fixedHeight: t === 0 ? null : t
3939
3939
  };
3940
- }, Zt = (e, t) => {
3940
+ }, Qt = (e, t) => {
3941
3941
  const n = e.query("GET_ALLOW_REPLACE"), s = e.query("GET_ALLOW_MULTIPLE"), r = e.query("GET_TOTAL_ITEMS");
3942
3942
  let a = e.query("GET_MAX_FILES");
3943
3943
  const i = t.length;
3944
3944
  return !s && i > 1 ? (e.dispatch("DID_THROW_MAX_FILES", {
3945
3945
  source: t,
3946
3946
  error: W("warning", 0, "Max files")
3947
- }), !0) : (a = s ? a : 1, !s && n ? !1 : xe(a) && r + i > a ? (e.dispatch("DID_THROW_MAX_FILES", {
3947
+ }), !0) : (a = s ? a : 1, !s && n ? !1 : He(a) && r + i > a ? (e.dispatch("DID_THROW_MAX_FILES", {
3948
3948
  source: t,
3949
3949
  error: W("warning", 0, "Max files")
3950
3950
  }), !0) : !1);
3951
- }, Ho = (e, t, n) => {
3951
+ }, Yo = (e, t, n) => {
3952
3952
  const s = e.childViews[0];
3953
- return $t(s, t, {
3953
+ return zt(s, t, {
3954
3954
  left: n.scopeLeft - s.rect.element.left,
3955
3955
  top: n.scopeTop - (e.rect.outer.top + e.rect.element.marginTop + e.rect.element.scrollTop)
3956
3956
  });
3957
- }, Bn = (e) => {
3957
+ }, Un = (e) => {
3958
3958
  const t = e.query("GET_ALLOW_DROP"), n = e.query("GET_DISABLED"), s = t && !n;
3959
3959
  if (s && !e.ref.hopper) {
3960
- const r = yo(
3960
+ const r = Ao(
3961
3961
  e.element,
3962
3962
  (a) => {
3963
3963
  const i = e.query("GET_BEFORE_DROP_FILE") || (() => !0);
@@ -3970,7 +3970,7 @@ const Dt = [], mt = (e, t) => {
3970
3970
  {
3971
3971
  filterItems: (a) => {
3972
3972
  const i = e.query("GET_IGNORED_FILES");
3973
- return a.filter((l) => ye(l) ? !i.includes(l.name.toLowerCase()) : !0);
3973
+ return a.filter((l) => Ae(l) ? !i.includes(l.name.toLowerCase()) : !0);
3974
3974
  },
3975
3975
  catchesDropsOnPage: e.query("GET_DROP_ON_PAGE"),
3976
3976
  requiresDropOnElement: e.query("GET_DROP_ON_ELEMENT")
@@ -3979,31 +3979,31 @@ const Dt = [], mt = (e, t) => {
3979
3979
  r.onload = (a, i) => {
3980
3980
  const o = e.ref.list.childViews[0].childViews.filter((c) => c.rect.element.height), d = e.query("GET_ACTIVE_ITEMS").map((c) => o.find((f) => f.id === c.id)).filter((c) => c);
3981
3981
  le("ADD_ITEMS", a, { dispatch: e.dispatch }).then((c) => {
3982
- if (Zt(e, c)) return !1;
3982
+ if (Qt(e, c)) return !1;
3983
3983
  e.dispatch("ADD_ITEMS", {
3984
3984
  items: c,
3985
- index: Ho(e.ref.list, d, i),
3985
+ index: Yo(e.ref.list, d, i),
3986
3986
  interactionMethod: ae.DROP
3987
3987
  });
3988
3988
  }), e.dispatch("DID_DROP", { position: i }), e.dispatch("DID_END_DRAG", { position: i });
3989
3989
  }, r.ondragstart = (a) => {
3990
3990
  e.dispatch("DID_START_DRAG", { position: a });
3991
- }, r.ondrag = xs((a) => {
3991
+ }, r.ondrag = Fs((a) => {
3992
3992
  e.dispatch("DID_DRAG", { position: a });
3993
3993
  }), r.ondragend = (a) => {
3994
3994
  e.dispatch("DID_END_DRAG", { position: a });
3995
- }, e.ref.hopper = r, e.ref.drip = e.appendChildView(e.createChildView(za));
3995
+ }, e.ref.hopper = r, e.ref.drip = e.appendChildView(e.createChildView(ka));
3996
3996
  } else !s && e.ref.hopper && (e.ref.hopper.destroy(), e.ref.hopper = null, e.removeChildView(e.ref.drip));
3997
- }, Un = (e, t) => {
3997
+ }, Vn = (e, t) => {
3998
3998
  const n = e.query("GET_ALLOW_BROWSE"), s = e.query("GET_DISABLED"), r = n && !s;
3999
3999
  r && !e.ref.browser ? e.ref.browser = e.appendChildView(
4000
- e.createChildView(xa, {
4000
+ e.createChildView(Fa, {
4001
4001
  ...t,
4002
4002
  onload: (a) => {
4003
4003
  le("ADD_ITEMS", a, {
4004
4004
  dispatch: e.dispatch
4005
4005
  }).then((i) => {
4006
- if (Zt(e, i)) return !1;
4006
+ if (Qt(e, i)) return !1;
4007
4007
  e.dispatch("ADD_ITEMS", {
4008
4008
  items: i,
4009
4009
  index: -1,
@@ -4014,11 +4014,11 @@ const Dt = [], mt = (e, t) => {
4014
4014
  }),
4015
4015
  0
4016
4016
  ) : !r && e.ref.browser && (e.removeChildView(e.ref.browser), e.ref.browser = null);
4017
- }, Vn = (e) => {
4017
+ }, Hn = (e) => {
4018
4018
  const t = e.query("GET_ALLOW_PASTE"), n = e.query("GET_DISABLED"), s = t && !n;
4019
- s && !e.ref.paster ? (e.ref.paster = Lo(), e.ref.paster.onload = (r) => {
4019
+ s && !e.ref.paster ? (e.ref.paster = wo(), e.ref.paster.onload = (r) => {
4020
4020
  le("ADD_ITEMS", r, { dispatch: e.dispatch }).then((a) => {
4021
- if (Zt(e, a)) return !1;
4021
+ if (Qt(e, a)) return !1;
4022
4022
  e.dispatch("ADD_ITEMS", {
4023
4023
  items: a,
4024
4024
  index: -1,
@@ -4026,41 +4026,41 @@ const Dt = [], mt = (e, t) => {
4026
4026
  });
4027
4027
  });
4028
4028
  }) : !s && e.ref.paster && (e.ref.paster.destroy(), e.ref.paster = null);
4029
- }, Yo = K({
4029
+ }, Wo = K({
4030
4030
  DID_SET_ALLOW_BROWSE: ({ root: e, props: t }) => {
4031
- Un(e, t);
4031
+ Vn(e, t);
4032
4032
  },
4033
4033
  DID_SET_ALLOW_DROP: ({ root: e }) => {
4034
- Bn(e);
4034
+ Un(e);
4035
4035
  },
4036
4036
  DID_SET_ALLOW_PASTE: ({ root: e }) => {
4037
- Vn(e);
4037
+ Hn(e);
4038
4038
  },
4039
4039
  DID_SET_DISABLED: ({ root: e, props: t }) => {
4040
- Bn(e), Vn(e), Un(e, t), e.query("GET_DISABLED") ? e.element.dataset.disabled = "disabled" : e.element.removeAttribute("data-disabled");
4040
+ Un(e), Hn(e), Vn(e, t), e.query("GET_DISABLED") ? e.element.dataset.disabled = "disabled" : e.element.removeAttribute("data-disabled");
4041
4041
  }
4042
- }), Wo = $({
4042
+ }), qo = $({
4043
4043
  name: "root",
4044
4044
  read: ({ root: e }) => {
4045
4045
  e.ref.measure && (e.ref.measureHeight = e.ref.measure.offsetHeight);
4046
4046
  },
4047
- create: xo,
4048
- write: Fo,
4047
+ create: Fo,
4048
+ write: Bo,
4049
4049
  destroy: ({ root: e }) => {
4050
- e.ref.paster && e.ref.paster.destroy(), e.ref.hopper && e.ref.hopper.destroy(), e.element.removeEventListener("touchmove", dt), e.element.removeEventListener("gesturestart", dt);
4050
+ e.ref.paster && e.ref.paster.destroy(), e.ref.hopper && e.ref.hopper.destroy(), e.element.removeEventListener("touchmove", ut), e.element.removeEventListener("gesturestart", ut);
4051
4051
  },
4052
4052
  mixins: {
4053
4053
  styles: ["height"]
4054
4054
  }
4055
- }), qo = (e = {}) => {
4055
+ }), $o = (e = {}) => {
4056
4056
  let t = null;
4057
- const n = lt(), s = ir(
4057
+ const n = ct(), s = ar(
4058
4058
  // initial state (should be serializable)
4059
- qr(n),
4059
+ $r(n),
4060
4060
  // queries
4061
- [ci, kr(n)],
4061
+ [di, jr(n)],
4062
4062
  // action handlers
4063
- [vi, zr(n)]
4063
+ [Gi, kr(n)]
4064
4064
  );
4065
4065
  s.dispatch("SET_OPTIONS", { options: e });
4066
4066
  const r = () => {
@@ -4074,7 +4074,7 @@ const Dt = [], mt = (e, t) => {
4074
4074
  }, 500);
4075
4075
  };
4076
4076
  window.addEventListener("resize", c);
4077
- const f = Wo(s, { id: Ut() });
4077
+ const f = qo(s, { id: Vt() });
4078
4078
  let I = !1, p = !1;
4079
4079
  const u = {
4080
4080
  // necessary for update loop
@@ -4091,7 +4091,7 @@ const Dt = [], mt = (e, t) => {
4091
4091
  */
4092
4092
  _write: (O) => {
4093
4093
  const y = s.processActionQueue().filter((b) => !/^SET_/.test(b.type));
4094
- I && !y.length || (E(y), I = f._write(O, y, l), Zr(s.query("GET_ITEMS")), I && s.processDispatchQueue());
4094
+ I && !y.length || (E(y), I = f._write(O, y, l), Qr(s.query("GET_ITEMS")), I && s.processDispatchQueue());
4095
4095
  }
4096
4096
  }, _ = (O) => (y) => {
4097
4097
  const b = {
@@ -4168,10 +4168,10 @@ const Dt = [], mt = (e, t) => {
4168
4168
  }
4169
4169
  });
4170
4170
  }), M = (O, y = {}) => new Promise((b, v) => {
4171
- L([{ source: O, options: y }], { index: y.index }).then((H) => b(H && H[0])).catch(v);
4172
- }), N = (O) => O.file && O.id, D = (O, y) => (typeof O == "object" && !N(O) && !y && (y = O, O = void 0), s.dispatch("REMOVE_ITEM", { ...y, query: O }), s.query("GET_ACTIVE_ITEM", O) === null), L = (...O) => new Promise((y, b) => {
4171
+ w([{ source: O, options: y }], { index: y.index }).then((H) => b(H && H[0])).catch(v);
4172
+ }), N = (O) => O.file && O.id, D = (O, y) => (typeof O == "object" && !N(O) && !y && (y = O, O = void 0), s.dispatch("REMOVE_ITEM", { ...y, query: O }), s.query("GET_ACTIVE_ITEM", O) === null), w = (...O) => new Promise((y, b) => {
4173
4173
  const v = [], H = {};
4174
- if (ut(O[0]))
4174
+ if (Et(O[0]))
4175
4175
  v.push.apply(v, O[0]), Object.assign(H, O[1] || {});
4176
4176
  else {
4177
4177
  const F = O[O.length - 1];
@@ -4184,7 +4184,7 @@ const Dt = [], mt = (e, t) => {
4184
4184
  success: y,
4185
4185
  failure: b
4186
4186
  });
4187
- }), G = () => s.query("GET_ACTIVE_ITEMS"), w = (O) => new Promise((y, b) => {
4187
+ }), G = () => s.query("GET_ACTIVE_ITEMS"), P = (O) => new Promise((y, b) => {
4188
4188
  s.dispatch("REQUEST_ITEM_PROCESSING", {
4189
4189
  query: O,
4190
4190
  success: (v) => {
@@ -4203,22 +4203,22 @@ const Dt = [], mt = (e, t) => {
4203
4203
  const b = G().filter(
4204
4204
  (v) => !(v.status === x.IDLE && v.origin === k.LOCAL) && v.status !== x.PROCESSING && v.status !== x.PROCESSING_COMPLETE && v.status !== x.PROCESSING_REVERT_ERROR
4205
4205
  );
4206
- return Promise.all(b.map(w));
4206
+ return Promise.all(b.map(P));
4207
4207
  }
4208
- return Promise.all(y.map(w));
4208
+ return Promise.all(y.map(P));
4209
4209
  }, A = (...O) => {
4210
4210
  const y = Array.isArray(O[0]) ? O[0] : O;
4211
4211
  let b;
4212
4212
  typeof y[y.length - 1] == "object" ? b = y.pop() : Array.isArray(O[0]) && (b = O[1]);
4213
4213
  const v = G();
4214
- return y.length ? y.map((F) => he(F) ? v[F] ? v[F].id : null : F).filter((F) => F).map((F) => D(F, b)) : Promise.all(v.map((F) => D(F, b)));
4214
+ return y.length ? y.map((F) => Re(F) ? v[F] ? v[F].id : null : F).filter((F) => F).map((F) => D(F, b)) : Promise.all(v.map((F) => D(F, b)));
4215
4215
  }, B = {
4216
4216
  // supports events
4217
- ...pt(),
4217
+ ..._t(),
4218
4218
  // inject private api methods
4219
4219
  ...u,
4220
4220
  // inject all getters and setters
4221
- ...$r(s, n),
4221
+ ...zr(s, n),
4222
4222
  /**
4223
4223
  * Override options defined in options object
4224
4224
  * @param options
@@ -4235,7 +4235,7 @@ const Dt = [], mt = (e, t) => {
4235
4235
  * @param sources - the sources of the files to load
4236
4236
  * @param options - object, { index: 0 }
4237
4237
  */
4238
- addFiles: L,
4238
+ addFiles: w,
4239
4239
  /**
4240
4240
  * Returns the file objects matching the given query
4241
4241
  * @param query { string, number, null }
@@ -4245,7 +4245,7 @@ const Dt = [], mt = (e, t) => {
4245
4245
  * Upload file with given name
4246
4246
  * @param query { string, number, null }
4247
4247
  */
4248
- processFile: w,
4248
+ processFile: P,
4249
4249
  /**
4250
4250
  * Request prepare output for file with given name
4251
4251
  * @param query { string, number, null }
@@ -4296,11 +4296,11 @@ const Dt = [], mt = (e, t) => {
4296
4296
  /**
4297
4297
  * Inserts the plugin before the target element
4298
4298
  */
4299
- insertBefore: (O) => cn(f.element, O),
4299
+ insertBefore: (O) => dn(f.element, O),
4300
4300
  /**
4301
4301
  * Inserts the plugin after the target element
4302
4302
  */
4303
- insertAfter: (O) => dn(f.element, O),
4303
+ insertAfter: (O) => un(f.element, O),
4304
4304
  /**
4305
4305
  * Appends the plugin to the target element
4306
4306
  */
@@ -4309,13 +4309,13 @@ const Dt = [], mt = (e, t) => {
4309
4309
  * Replaces an element with the app
4310
4310
  */
4311
4311
  replaceElement: (O) => {
4312
- cn(f.element, O), O.parentNode.removeChild(O), t = O;
4312
+ dn(f.element, O), O.parentNode.removeChild(O), t = O;
4313
4313
  },
4314
4314
  /**
4315
4315
  * Restores the original element
4316
4316
  */
4317
4317
  restoreElement: () => {
4318
- t && (dn(t, f.element), f.element.parentNode.removeChild(f.element), t = null);
4318
+ t && (un(t, f.element), f.element.parentNode.removeChild(f.element), t = null);
4319
4319
  },
4320
4320
  /**
4321
4321
  * Returns true if the app root is attached to given element
@@ -4336,17 +4336,17 @@ const Dt = [], mt = (e, t) => {
4336
4336
  }
4337
4337
  };
4338
4338
  return s.dispatch("DID_INIT"), Te(B);
4339
- }, Fs = (e = {}) => {
4339
+ }, Bs = (e = {}) => {
4340
4340
  const t = {};
4341
- return Y(lt(), (s, r) => {
4341
+ return Y(ct(), (s, r) => {
4342
4342
  t[s] = r[0];
4343
- }), qo({
4343
+ }), $o({
4344
4344
  // default options
4345
4345
  ...t,
4346
4346
  // custom options
4347
4347
  ...e
4348
4348
  });
4349
- }, $o = (e) => e.charAt(0).toLowerCase() + e.slice(1), zo = (e) => Gs(e.replace(/^data-/, "")), Bs = (e, t) => {
4349
+ }, zo = (e) => e.charAt(0).toLowerCase() + e.slice(1), ko = (e) => xs(e.replace(/^data-/, "")), Us = (e, t) => {
4350
4350
  Y(t, (n, s) => {
4351
4351
  Y(e, (r, a) => {
4352
4352
  const i = new RegExp(n);
@@ -4357,19 +4357,19 @@ const Dt = [], mt = (e, t) => {
4357
4357
  return;
4358
4358
  }
4359
4359
  const o = s.group;
4360
- X(s) && !e[o] && (e[o] = {}), e[o][$o(r.replace(i, ""))] = a;
4361
- }), s.mapping && Bs(e[s.group], s.mapping);
4360
+ j(s) && !e[o] && (e[o] = {}), e[o][zo(r.replace(i, ""))] = a;
4361
+ }), s.mapping && Us(e[s.group], s.mapping);
4362
4362
  });
4363
- }, ko = (e, t = {}) => {
4363
+ }, jo = (e, t = {}) => {
4364
4364
  const n = [];
4365
4365
  Y(e.attributes, (r) => {
4366
4366
  n.push(e.attributes[r]);
4367
4367
  });
4368
4368
  const s = n.filter((r) => r.name).reduce((r, a) => {
4369
4369
  const i = z(e, a.name);
4370
- return r[zo(a.name)] = i === a.name ? !0 : i, r;
4370
+ return r[ko(a.name)] = i === a.name ? !0 : i, r;
4371
4371
  }, {});
4372
- return Bs(s, t), s;
4372
+ return Us(s, t), s;
4373
4373
  }, Xo = (e, t = {}) => {
4374
4374
  const n = {
4375
4375
  // translate to other name
@@ -4405,12 +4405,12 @@ const Dt = [], mt = (e, t) => {
4405
4405
  Le("SET_ATTRIBUTE_TO_OPTION_MAP", n);
4406
4406
  const s = {
4407
4407
  ...t
4408
- }, r = ko(
4408
+ }, r = jo(
4409
4409
  e.nodeName === "FIELDSET" ? e.querySelector("input[type=file]") : e,
4410
4410
  n
4411
4411
  );
4412
4412
  Object.keys(r).forEach((i) => {
4413
- X(r[i]) ? (X(s[i]) || (s[i] = {}), Object.assign(s[i], r[i])) : s[i] = r[i];
4413
+ j(r[i]) ? (j(s[i]) || (s[i] = {}), Object.assign(s[i], r[i])) : s[i] = r[i];
4414
4414
  }), s.files = (t.files || []).concat(
4415
4415
  Array.from(e.querySelectorAll("input:not([type=file])")).map((i) => ({
4416
4416
  source: i.value,
@@ -4419,14 +4419,14 @@ const Dt = [], mt = (e, t) => {
4419
4419
  }
4420
4420
  }))
4421
4421
  );
4422
- const a = Fs(s);
4422
+ const a = Bs(s);
4423
4423
  return e.files && Array.from(e.files).forEach((i) => {
4424
4424
  a.addFile(i);
4425
4425
  }), a.replaceElement(e), a;
4426
- }, jo = (...e) => rr(e[0]) ? Xo(...e) : Fs(...e), Zo = ["fire", "_read", "_write"], Hn = (e) => {
4426
+ }, Zo = (...e) => ir(e[0]) ? Xo(...e) : Bs(...e), Qo = ["fire", "_read", "_write"], Yn = (e) => {
4427
4427
  const t = {};
4428
- return as(e, t, Zo), t;
4429
- }, Qo = (e, t) => e.replace(/(?:{([a-zA-Z]+)})/g, (n, s) => t[s]), Ko = (e) => {
4428
+ return os(e, t, Qo), t;
4429
+ }, Ko = (e, t) => e.replace(/(?:{([a-zA-Z]+)})/g, (n, s) => t[s]), Jo = (e) => {
4430
4430
  const t = new Blob(["(", e.toString(), ")()"], {
4431
4431
  type: "application/javascript"
4432
4432
  }), n = URL.createObjectURL(t), s = new Worker(n);
@@ -4434,7 +4434,7 @@ const Dt = [], mt = (e, t) => {
4434
4434
  transfer: (r, a) => {
4435
4435
  },
4436
4436
  post: (r, a, i) => {
4437
- const l = Ut();
4437
+ const l = Vt();
4438
4438
  s.onmessage = (o) => {
4439
4439
  o.data.id === l && a(o.data.message);
4440
4440
  }, s.postMessage(
@@ -4449,68 +4449,68 @@ const Dt = [], mt = (e, t) => {
4449
4449
  s.terminate(), URL.revokeObjectURL(n);
4450
4450
  }
4451
4451
  };
4452
- }, Jo = (e) => new Promise((t, n) => {
4452
+ }, el = (e) => new Promise((t, n) => {
4453
4453
  const s = new Image();
4454
4454
  s.onload = () => {
4455
4455
  t(s);
4456
4456
  }, s.onerror = (r) => {
4457
4457
  n(r);
4458
4458
  }, s.src = e;
4459
- }), Us = (e, t) => {
4459
+ }), Vs = (e, t) => {
4460
4460
  const n = e.slice(0, e.size, e.type);
4461
4461
  return n.lastModifiedDate = e.lastModifiedDate, n.name = t, n;
4462
- }, el = (e) => Us(e, e.name), Yn = [], tl = (e) => {
4463
- if (Yn.includes(e))
4462
+ }, tl = (e) => Vs(e, e.name), Wn = [], nl = (e) => {
4463
+ if (Wn.includes(e))
4464
4464
  return;
4465
- Yn.push(e);
4465
+ Wn.push(e);
4466
4466
  const t = e({
4467
- addFilter: Kr,
4467
+ addFilter: Jr,
4468
4468
  utils: {
4469
4469
  Type: g,
4470
4470
  forin: Y,
4471
4471
  isString: Q,
4472
- isFile: ye,
4473
- toNaturalFileSize: Ts,
4474
- replaceInString: Qo,
4475
- getExtensionFromFilename: It,
4476
- getFilenameWithoutExtension: Is,
4477
- guesstimateMimeType: ws,
4478
- getFileFromBlob: Ge,
4479
- getFilenameFromURL: je,
4472
+ isFile: Ae,
4473
+ toNaturalFileSize: gs,
4474
+ replaceInString: Ko,
4475
+ getExtensionFromFilename: mt,
4476
+ getFilenameWithoutExtension: _s,
4477
+ guesstimateMimeType: Ps,
4478
+ getFileFromBlob: Fe,
4479
+ getFilenameFromURL: Xe,
4480
4480
  createRoute: K,
4481
- createWorker: Ko,
4481
+ createWorker: Jo,
4482
4482
  createView: $,
4483
4483
  createItemAPI: ee,
4484
- loadImage: Jo,
4485
- copyFile: el,
4486
- renameFile: Us,
4487
- createBlob: fs,
4484
+ loadImage: el,
4485
+ copyFile: tl,
4486
+ renameFile: Vs,
4487
+ createBlob: Es,
4488
4488
  applyFilterChain: le,
4489
4489
  text: q,
4490
- getNumericAspectRatioFromString: cs
4490
+ getNumericAspectRatioFromString: ds
4491
4491
  },
4492
4492
  views: {
4493
- fileActionButton: ms
4493
+ fileActionButton: Ts
4494
4494
  }
4495
4495
  });
4496
- Jr(t.options);
4497
- }, nl = () => Object.prototype.toString.call(window.operamini) === "[object OperaMini]", sl = () => "Promise" in window, rl = () => "slice" in Blob.prototype, il = () => "URL" in window && "createObjectURL" in window.URL, al = () => "visibilityState" in document, ol = () => "performance" in window, ll = () => "supports" in (window.CSS || {}), cl = () => /MSIE|Trident/.test(window.navigator.userAgent), Gt = (() => {
4496
+ ei(t.options);
4497
+ }, sl = () => Object.prototype.toString.call(window.operamini) === "[object OperaMini]", rl = () => "Promise" in window, il = () => "slice" in Blob.prototype, al = () => "URL" in window && "createObjectURL" in window.URL, ol = () => "visibilityState" in document, ll = () => "performance" in window, cl = () => "supports" in (window.CSS || {}), dl = () => /MSIE|Trident/.test(window.navigator.userAgent), Ft = (() => {
4498
4498
  const e = (
4499
4499
  // Has to be a browser
4500
- es() && // Can't run on Opera Mini due to lack of everything
4501
- !nl() && // Require these APIs to feature detect a modern browser
4502
- al() && sl() && rl() && il() && ol() && // doesn't need CSSSupports but is a good way to detect Safari 9+ (we do want to support IE11 though)
4503
- (ll() || cl())
4500
+ ts() && // Can't run on Opera Mini due to lack of everything
4501
+ !sl() && // Require these APIs to feature detect a modern browser
4502
+ ol() && rl() && il() && al() && ll() && // doesn't need CSSSupports but is a good way to detect Safari 9+ (we do want to support IE11 though)
4503
+ (cl() || dl())
4504
4504
  );
4505
4505
  return () => e;
4506
4506
  })(), me = {
4507
4507
  // active app instances, used to redraw the apps and to find the later
4508
4508
  apps: []
4509
- }, dl = "filepond", we = () => {
4509
+ }, ul = "filepond", we = () => {
4510
4510
  };
4511
- let Wn = {}, at = we, yt = we, qn = we, $n = we, xt = we, zn = we, kn = we;
4512
- if (Gt()) {
4513
- Pr(
4511
+ let qn = {}, at = we, Mt = we, $n = we, zn = we, Bt = we, kn = we, jn = we;
4512
+ if (Ft()) {
4513
+ Cr(
4514
4514
  () => {
4515
4515
  me.apps.forEach((n) => n._read());
4516
4516
  },
@@ -4522,42 +4522,42 @@ if (Gt()) {
4522
4522
  document.dispatchEvent(
4523
4523
  new CustomEvent("FilePond:loaded", {
4524
4524
  detail: {
4525
- supported: Gt,
4525
+ supported: Ft,
4526
4526
  create: at,
4527
- destroy: yt,
4528
- parse: qn,
4529
- find: $n,
4530
- registerPlugin: xt,
4531
- setOptions: kn
4527
+ destroy: Mt,
4528
+ parse: $n,
4529
+ find: zn,
4530
+ registerPlugin: Bt,
4531
+ setOptions: jn
4532
4532
  }
4533
4533
  })
4534
4534
  ), document.removeEventListener("DOMContentLoaded", e);
4535
4535
  };
4536
4536
  document.readyState !== "loading" ? setTimeout(() => e(), 0) : document.addEventListener("DOMContentLoaded", e);
4537
- const t = () => Y(lt(), (n, s) => {
4538
- Wn[n] = s[1];
4537
+ const t = () => Y(ct(), (n, s) => {
4538
+ qn[n] = s[1];
4539
4539
  });
4540
- Wn = {}, t(), at = (...n) => {
4541
- const s = jo(...n);
4542
- return s.on("destroy", yt), me.apps.push(s), Hn(s);
4543
- }, yt = (n) => {
4540
+ qn = {}, t(), at = (...n) => {
4541
+ const s = Zo(...n);
4542
+ return s.on("destroy", Mt), me.apps.push(s), Yn(s);
4543
+ }, Mt = (n) => {
4544
4544
  const s = me.apps.findIndex((r) => r.isAttachedTo(n));
4545
4545
  return s >= 0 ? (me.apps.splice(s, 1)[0].restoreElement(), !0) : !1;
4546
- }, qn = (n) => Array.from(n.querySelectorAll(`.${dl}`)).filter(
4546
+ }, $n = (n) => Array.from(n.querySelectorAll(`.${ul}`)).filter(
4547
4547
  (a) => !me.apps.find((i) => i.isAttachedTo(a))
4548
- ).map((a) => at(a)), $n = (n) => {
4548
+ ).map((a) => at(a)), zn = (n) => {
4549
4549
  const s = me.apps.find((r) => r.isAttachedTo(n));
4550
- return s ? Hn(s) : null;
4551
- }, xt = (...n) => {
4552
- n.forEach(tl), t();
4553
- }, zn = () => {
4550
+ return s ? Yn(s) : null;
4551
+ }, Bt = (...n) => {
4552
+ n.forEach(nl), t();
4553
+ }, kn = () => {
4554
4554
  const n = {};
4555
- return Y(lt(), (s, r) => {
4555
+ return Y(ct(), (s, r) => {
4556
4556
  n[s] = r[0];
4557
4557
  }), n;
4558
- }, kn = (n) => (X(n) && (me.apps.forEach((s) => {
4558
+ }, jn = (n) => (j(n) && (me.apps.forEach((s) => {
4559
4559
  s.setOptions(n);
4560
- }), ei(n)), zn());
4560
+ }), ti(n)), kn());
4561
4561
  }
4562
4562
  /*!
4563
4563
  * react-filepond v7.1.3
@@ -4568,7 +4568,7 @@ if (Gt()) {
4568
4568
  *
4569
4569
  * Licensed under the MIT license.
4570
4570
  */
4571
- const ul = Gt(), fl = [
4571
+ const fl = Ft(), El = [
4572
4572
  "setOptions",
4573
4573
  "on",
4574
4574
  "off",
@@ -4581,13 +4581,13 @@ const ul = Gt(), fl = [
4581
4581
  "restoreElement",
4582
4582
  "destroy"
4583
4583
  ];
4584
- class Sc extends tr.Component {
4584
+ class Dc extends nr.Component {
4585
4585
  constructor(t) {
4586
4586
  super(t), this.allowFilesSync = !0;
4587
4587
  }
4588
4588
  // Will setup FilePond instance when mounted
4589
4589
  componentDidMount() {
4590
- if (this._input = this._element.querySelector('input[type="file"]'), this._inputClone = this._input.cloneNode(), !ul) return;
4590
+ if (this._input = this._element.querySelector('input[type="file"]'), this._inputClone = this._input.cloneNode(), !fl) return;
4591
4591
  const t = Object.assign({}, this.props);
4592
4592
  if (t.onupdatefiles) {
4593
4593
  const n = t.onupdatefiles;
@@ -4595,7 +4595,7 @@ class Sc extends tr.Component {
4595
4595
  this.allowFilesSync = !1, n(s);
4596
4596
  };
4597
4597
  }
4598
- this._pond = at(this._input, t), Object.keys(this._pond).filter((n) => !fl.includes(n)).forEach((n) => {
4598
+ this._pond = at(this._input, t), Object.keys(this._pond).filter((n) => !El.includes(n)).forEach((n) => {
4599
4599
  this[n] = this._pond[n];
4600
4600
  });
4601
4601
  }
@@ -4625,13 +4625,13 @@ class Sc extends tr.Component {
4625
4625
  captureMethod: i,
4626
4626
  acceptedFileTypes: l
4627
4627
  } = this.props;
4628
- return nn(
4628
+ return sn(
4629
4629
  "div",
4630
4630
  {
4631
4631
  className: "filepond--wrapper",
4632
4632
  ref: (o) => this._element = o
4633
4633
  },
4634
- nn("input", {
4634
+ sn("input", {
4635
4635
  type: "file",
4636
4636
  name: n,
4637
4637
  id: t,
@@ -4649,24 +4649,24 @@ class Sc extends tr.Component {
4649
4649
  * Licensed under MIT, https://opensource.org/licenses/MIT/
4650
4650
  * Please visit https://pqina.nl/filepond/ for details.
4651
4651
  */
4652
- const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn = (e, t) => $e(e.x + t.x, e.y + t.y), pl = (e) => {
4652
+ const pl = (e) => /^image/.test(e.type), Xn = (e, t) => je(e.x * t, e.y * t), Zn = (e, t) => je(e.x + t.x, e.y + t.y), Il = (e) => {
4653
4653
  const t = Math.sqrt(e.x * e.x + e.y * e.y);
4654
4654
  return t === 0 ? {
4655
4655
  x: 0,
4656
4656
  y: 0
4657
- } : $e(e.x / t, e.y / t);
4657
+ } : je(e.x / t, e.y / t);
4658
4658
  }, st = (e, t, n) => {
4659
- const s = Math.cos(t), r = Math.sin(t), a = $e(e.x - n.x, e.y - n.y);
4660
- return $e(
4659
+ const s = Math.cos(t), r = Math.sin(t), a = je(e.x - n.x, e.y - n.y);
4660
+ return je(
4661
4661
  n.x + s * a.x - r * a.y,
4662
4662
  n.y + r * a.x + s * a.y
4663
4663
  );
4664
- }, $e = (e = 0, t = 0) => ({ x: e, y: t }), te = (e, t, n = 1, s) => {
4664
+ }, je = (e = 0, t = 0) => ({ x: e, y: t }), te = (e, t, n = 1, s) => {
4665
4665
  if (typeof e == "string")
4666
4666
  return parseFloat(e) * n;
4667
4667
  if (typeof e == "number")
4668
4668
  return e * (s ? t[s] : Math.min(t.width, t.height));
4669
- }, Il = (e, t, n) => {
4669
+ }, _l = (e, t, n) => {
4670
4670
  const s = e.borderStyle || e.lineStyle || "solid", r = e.backgroundColor || e.fontColor || "transparent", a = e.borderColor || e.lineColor || "transparent", i = te(
4671
4671
  e.borderWidth || e.lineWidth,
4672
4672
  t,
@@ -4681,7 +4681,7 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
4681
4681
  fill: r,
4682
4682
  opacity: c
4683
4683
  };
4684
- }, ie = (e) => e != null, _l = (e, t, n = 1) => {
4684
+ }, ie = (e) => e != null, ml = (e, t, n = 1) => {
4685
4685
  let s = te(e.x, t, n, "width") || te(e.left, t, n, "width"), r = te(e.y, t, n, "height") || te(e.top, t, n, "height"), a = te(e.width, t, n, "width"), i = te(e.height, t, n, "height"), l = te(e.right, t, n, "width"), o = te(e.bottom, t, n, "height");
4686
4686
  return ie(r) || (ie(i) && ie(o) ? r = t.height - i - o : r = o), ie(s) || (ie(a) && ie(l) ? s = t.width - a - l : s = l), ie(a) || (ie(s) && ie(l) ? a = t.width - s - l : a = 0), ie(i) || (ie(r) && ie(o) ? i = t.height - r - o : i = 0), {
4687
4687
  x: s || 0,
@@ -4689,37 +4689,37 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
4689
4689
  width: a || 0,
4690
4690
  height: i || 0
4691
4691
  };
4692
- }, ml = (e) => e.map((t, n) => `${n === 0 ? "M" : "L"} ${t.x} ${t.y}`).join(" "), fe = (e, t) => Object.keys(t).forEach((n) => e.setAttribute(n, t[n])), Tl = "http://www.w3.org/2000/svg", Ne = (e, t) => {
4693
- const n = document.createElementNS(Tl, e);
4694
- return t && fe(n, t), n;
4695
- }, gl = (e) => fe(e, {
4692
+ }, Tl = (e) => e.map((t, n) => `${n === 0 ? "M" : "L"} ${t.x} ${t.y}`).join(" "), Ee = (e, t) => Object.keys(t).forEach((n) => e.setAttribute(n, t[n])), gl = "http://www.w3.org/2000/svg", ve = (e, t) => {
4693
+ const n = document.createElementNS(gl, e);
4694
+ return t && Ee(n, t), n;
4695
+ }, hl = (e) => Ee(e, {
4696
4696
  ...e.rect,
4697
4697
  ...e.styles
4698
- }), hl = (e) => {
4698
+ }), Rl = (e) => {
4699
4699
  const t = e.rect.x + e.rect.width * 0.5, n = e.rect.y + e.rect.height * 0.5, s = e.rect.width * 0.5, r = e.rect.height * 0.5;
4700
- return fe(e, {
4700
+ return Ee(e, {
4701
4701
  cx: t,
4702
4702
  cy: n,
4703
4703
  rx: s,
4704
4704
  ry: r,
4705
4705
  ...e.styles
4706
4706
  });
4707
- }, Rl = {
4707
+ }, Ol = {
4708
4708
  contain: "xMidYMid meet",
4709
4709
  cover: "xMidYMid slice"
4710
- }, Ol = (e, t) => {
4711
- fe(e, {
4710
+ }, Sl = (e, t) => {
4711
+ Ee(e, {
4712
4712
  ...e.rect,
4713
4713
  ...e.styles,
4714
- preserveAspectRatio: Rl[t.fit] || "none"
4714
+ preserveAspectRatio: Ol[t.fit] || "none"
4715
4715
  });
4716
- }, Sl = {
4716
+ }, Dl = {
4717
4717
  left: "start",
4718
4718
  center: "middle",
4719
4719
  right: "end"
4720
- }, Dl = (e, t, n, s) => {
4721
- const r = te(t.fontSize, n, s), a = t.fontFamily || "sans-serif", i = t.fontWeight || "normal", l = Sl[t.textAlign] || "start";
4722
- fe(e, {
4720
+ }, yl = (e, t, n, s) => {
4721
+ const r = te(t.fontSize, n, s), a = t.fontFamily || "sans-serif", i = t.fontWeight || "normal", l = Dl[t.textAlign] || "start";
4722
+ Ee(e, {
4723
4723
  ...e.rect,
4724
4724
  ...e.styles,
4725
4725
  "stroke-width": 0,
@@ -4728,8 +4728,8 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
4728
4728
  "font-family": a,
4729
4729
  "text-anchor": l
4730
4730
  }), e.text !== t.text && (e.text = t.text, e.textContent = t.text.length ? t.text : " ");
4731
- }, yl = (e, t, n, s) => {
4732
- fe(e, {
4731
+ }, Al = (e, t, n, s) => {
4732
+ Ee(e, {
4733
4733
  ...e.rect,
4734
4734
  ...e.styles,
4735
4735
  fill: "none"
@@ -4738,44 +4738,44 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
4738
4738
  x: e.rect.x + e.rect.width,
4739
4739
  y: e.rect.y + e.rect.height
4740
4740
  };
4741
- if (fe(r, {
4741
+ if (Ee(r, {
4742
4742
  x1: l.x,
4743
4743
  y1: l.y,
4744
4744
  x2: o.x,
4745
4745
  y2: o.y
4746
4746
  }), !t.lineDecoration) return;
4747
4747
  a.style.display = "none", i.style.display = "none";
4748
- const d = pl({
4748
+ const d = Il({
4749
4749
  x: o.x - l.x,
4750
4750
  y: o.y - l.y
4751
4751
  }), c = te(0.05, n, s);
4752
4752
  if (t.lineDecoration.indexOf("arrow-begin") !== -1) {
4753
- const f = Xn(d, c), I = jn(l, f), p = st(l, 2, I), u = st(l, -2, I);
4754
- fe(a, {
4753
+ const f = Xn(d, c), I = Zn(l, f), p = st(l, 2, I), u = st(l, -2, I);
4754
+ Ee(a, {
4755
4755
  style: "display:block;",
4756
4756
  d: `M${p.x},${p.y} L${l.x},${l.y} L${u.x},${u.y}`
4757
4757
  });
4758
4758
  }
4759
4759
  if (t.lineDecoration.indexOf("arrow-end") !== -1) {
4760
- const f = Xn(d, -c), I = jn(o, f), p = st(o, 2, I), u = st(o, -2, I);
4761
- fe(i, {
4760
+ const f = Xn(d, -c), I = Zn(o, f), p = st(o, 2, I), u = st(o, -2, I);
4761
+ Ee(i, {
4762
4762
  style: "display:block;",
4763
4763
  d: `M${p.x},${p.y} L${o.x},${o.y} L${u.x},${u.y}`
4764
4764
  });
4765
4765
  }
4766
- }, Al = (e, t, n, s) => {
4767
- fe(e, {
4766
+ }, Ml = (e, t, n, s) => {
4767
+ Ee(e, {
4768
4768
  ...e.styles,
4769
4769
  fill: "none",
4770
- d: ml(
4770
+ d: Tl(
4771
4771
  t.points.map((r) => ({
4772
4772
  x: te(r.x, n, s, "width"),
4773
4773
  y: te(r.y, n, s, "height")
4774
4774
  }))
4775
4775
  )
4776
4776
  });
4777
- }, rt = (e) => (t) => Ne(e, { id: t.id }), Ml = (e) => {
4778
- const t = Ne("image", {
4777
+ }, rt = (e) => (t) => ve(e, { id: t.id }), Ll = (e) => {
4778
+ const t = ve("image", {
4779
4779
  id: e.id,
4780
4780
  "stroke-linecap": "round",
4781
4781
  "stroke-linejoin": "round",
@@ -4788,34 +4788,34 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
4788
4788
  "xlink:href",
4789
4789
  e.src
4790
4790
  ), t;
4791
- }, Ll = (e) => {
4792
- const t = Ne("g", {
4791
+ }, wl = (e) => {
4792
+ const t = ve("g", {
4793
4793
  id: e.id,
4794
4794
  "stroke-linecap": "round",
4795
4795
  "stroke-linejoin": "round"
4796
- }), n = Ne("line");
4796
+ }), n = ve("line");
4797
4797
  t.appendChild(n);
4798
- const s = Ne("path");
4798
+ const s = ve("path");
4799
4799
  t.appendChild(s);
4800
- const r = Ne("path");
4800
+ const r = ve("path");
4801
4801
  return t.appendChild(r), t;
4802
- }, wl = {
4803
- image: Ml,
4802
+ }, Pl = {
4803
+ image: Ll,
4804
4804
  rect: rt("rect"),
4805
4805
  ellipse: rt("ellipse"),
4806
4806
  text: rt("text"),
4807
4807
  path: rt("path"),
4808
- line: Ll
4809
- }, Pl = {
4810
- rect: gl,
4811
- ellipse: hl,
4812
- image: Ol,
4813
- text: Dl,
4814
- path: Al,
4815
- line: yl
4816
- }, Cl = (e, t) => wl[e](t), bl = (e, t, n, s, r) => {
4817
- t !== "path" && (e.rect = _l(n, s, r)), e.styles = Il(n, s, r), Pl[t](e, n, s, r);
4818
- }, Nl = [
4808
+ line: wl
4809
+ }, Cl = {
4810
+ rect: hl,
4811
+ ellipse: Rl,
4812
+ image: Sl,
4813
+ text: yl,
4814
+ path: Ml,
4815
+ line: Al
4816
+ }, bl = (e, t) => Pl[e](t), Nl = (e, t, n, s, r) => {
4817
+ t !== "path" && (e.rect = ml(n, s, r)), e.styles = _l(n, s, r), Cl[t](e, n, s, r);
4818
+ }, vl = [
4819
4819
  "x",
4820
4820
  "y",
4821
4821
  "left",
@@ -4824,8 +4824,8 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
4824
4824
  "bottom",
4825
4825
  "width",
4826
4826
  "height"
4827
- ], vl = (e) => typeof e == "string" && /%/.test(e) ? parseFloat(e) / 100 : e, Gl = (e) => {
4828
- const [t, n] = e, s = n.points ? {} : Nl.reduce((r, a) => (r[a] = vl(n[a]), r), {});
4827
+ ], Gl = (e) => typeof e == "string" && /%/.test(e) ? parseFloat(e) / 100 : e, xl = (e) => {
4828
+ const [t, n] = e, s = n.points ? {} : vl.reduce((r, a) => (r[a] = Gl(n[a]), r), {});
4829
4829
  return [
4830
4830
  t,
4831
4831
  {
@@ -4834,7 +4834,7 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
4834
4834
  ...s
4835
4835
  }
4836
4836
  ];
4837
- }, xl = (e, t) => e[1].zIndex > t[1].zIndex ? 1 : e[1].zIndex < t[1].zIndex ? -1 : 0, Fl = (e) => e.utils.createView({
4837
+ }, Fl = (e, t) => e[1].zIndex > t[1].zIndex ? 1 : e[1].zIndex < t[1].zIndex ? -1 : 0, Bl = (e) => e.utils.createView({
4838
4838
  name: "image-preview-markup",
4839
4839
  tag: "svg",
4840
4840
  ignoreRect: !0,
@@ -4869,27 +4869,27 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
4869
4869
  const f = Math.min(i / o, l / d);
4870
4870
  t.element.innerHTML = "";
4871
4871
  const I = t.query("GET_IMAGE_PREVIEW_MARKUP_FILTER");
4872
- a.filter(I).map(Gl).sort(xl).forEach((p) => {
4873
- const [u, _] = p, T = Cl(u, _);
4874
- bl(T, u, _, c, f), t.element.appendChild(T);
4872
+ a.filter(I).map(xl).sort(Fl).forEach((p) => {
4873
+ const [u, _] = p, T = bl(u, _);
4874
+ Nl(T, u, _, c, f), t.element.appendChild(T);
4875
4875
  });
4876
4876
  }
4877
- }), We = (e, t) => ({ x: e, y: t }), Bl = (e, t) => e.x * t.x + e.y * t.y, Zn = (e, t) => We(e.x - t.x, e.y - t.y), Ul = (e, t) => Bl(Zn(e, t), Zn(e, t)), Qn = (e, t) => Math.sqrt(Ul(e, t)), Kn = (e, t) => {
4877
+ }), ke = (e, t) => ({ x: e, y: t }), Ul = (e, t) => e.x * t.x + e.y * t.y, Qn = (e, t) => ke(e.x - t.x, e.y - t.y), Vl = (e, t) => Ul(Qn(e, t), Qn(e, t)), Kn = (e, t) => Math.sqrt(Vl(e, t)), Jn = (e, t) => {
4878
4878
  const n = e, s = 1.5707963267948966, r = t, a = 1.5707963267948966 - t, i = Math.sin(s), l = Math.sin(r), o = Math.sin(a), d = Math.cos(a), c = n / i, f = c * l, I = c * o;
4879
- return We(d * f, d * I);
4880
- }, Vl = (e, t) => {
4881
- const n = e.width, s = e.height, r = Kn(n, t), a = Kn(s, t), i = We(e.x + Math.abs(r.x), e.y - Math.abs(r.y)), l = We(
4879
+ return ke(d * f, d * I);
4880
+ }, Hl = (e, t) => {
4881
+ const n = e.width, s = e.height, r = Jn(n, t), a = Jn(s, t), i = ke(e.x + Math.abs(r.x), e.y - Math.abs(r.y)), l = ke(
4882
4882
  e.x + e.width + Math.abs(a.y),
4883
4883
  e.y + Math.abs(a.x)
4884
- ), o = We(
4884
+ ), o = ke(
4885
4885
  e.x - Math.abs(a.y),
4886
4886
  e.y + e.height - Math.abs(a.x)
4887
4887
  );
4888
4888
  return {
4889
- width: Qn(i, l),
4890
- height: Qn(i, o)
4889
+ width: Kn(i, l),
4890
+ height: Kn(i, o)
4891
4891
  };
4892
- }, Hl = (e, t, n = 1) => {
4892
+ }, Yl = (e, t, n = 1) => {
4893
4893
  const s = e.height / e.width;
4894
4894
  let r = 1, a = t, i = 1, l = s;
4895
4895
  l > a && (l = a, i = l / s);
@@ -4898,13 +4898,13 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
4898
4898
  width: d,
4899
4899
  height: c
4900
4900
  };
4901
- }, Vs = (e, t, n, s) => {
4902
- const r = s.x > 0.5 ? 1 - s.x : s.x, a = s.y > 0.5 ? 1 - s.y : s.y, i = r * 2 * e.width, l = a * 2 * e.height, o = Vl(t, n);
4901
+ }, Hs = (e, t, n, s) => {
4902
+ const r = s.x > 0.5 ? 1 - s.x : s.x, a = s.y > 0.5 ? 1 - s.y : s.y, i = r * 2 * e.width, l = a * 2 * e.height, o = Hl(t, n);
4903
4903
  return Math.max(
4904
4904
  o.width / i,
4905
4905
  o.height / l
4906
4906
  );
4907
- }, Hs = (e, t) => {
4907
+ }, Ys = (e, t) => {
4908
4908
  let n = e.width, s = n * t;
4909
4909
  s > e.height && (s = e.height, n = s / t);
4910
4910
  const r = (e.width - n) * 0.5, a = (e.height - s) * 0.5;
@@ -4914,15 +4914,15 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
4914
4914
  width: n,
4915
4915
  height: s
4916
4916
  };
4917
- }, Yl = (e, t = {}) => {
4917
+ }, Wl = (e, t = {}) => {
4918
4918
  let { zoom: n, rotation: s, center: r, aspectRatio: a } = t;
4919
4919
  a || (a = e.height / e.width);
4920
- const i = Hl(e, a, n), l = {
4920
+ const i = Yl(e, a, n), l = {
4921
4921
  width: i.width,
4922
4922
  height: i.height
4923
- }, o = typeof t.scaleToFit > "u" || t.scaleToFit, d = Vs(
4923
+ }, o = typeof t.scaleToFit > "u" || t.scaleToFit, d = Hs(
4924
4924
  e,
4925
- Hs(l, a),
4925
+ Ys(l, a),
4926
4926
  s,
4927
4927
  o ? r : { x: 0.5, y: 0.5 }
4928
4928
  ), c = n * d;
@@ -4932,19 +4932,19 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
4932
4932
  width: Math.round(i.width / c),
4933
4933
  height: Math.round(i.height / c)
4934
4934
  };
4935
- }, ue = {
4935
+ }, fe = {
4936
4936
  type: "spring",
4937
4937
  stiffness: 0.5,
4938
4938
  damping: 0.45,
4939
4939
  mass: 10
4940
- }, Wl = (e) => e.utils.createView({
4940
+ }, ql = (e) => e.utils.createView({
4941
4941
  name: "image-bitmap",
4942
4942
  ignoreRect: !0,
4943
4943
  mixins: { styles: ["scaleX", "scaleY"] },
4944
4944
  create: ({ root: t, props: n }) => {
4945
4945
  t.appendChild(n.image);
4946
4946
  }
4947
- }), ql = (e) => e.utils.createView({
4947
+ }), $l = (e) => e.utils.createView({
4948
4948
  name: "image-canvas-wrapper",
4949
4949
  tag: "div",
4950
4950
  ignoreRect: !0,
@@ -4960,25 +4960,25 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
4960
4960
  "rotateZ"
4961
4961
  ],
4962
4962
  animations: {
4963
- originX: ue,
4964
- originY: ue,
4965
- scaleX: ue,
4966
- scaleY: ue,
4967
- translateX: ue,
4968
- translateY: ue,
4969
- rotateZ: ue
4963
+ originX: fe,
4964
+ originY: fe,
4965
+ scaleX: fe,
4966
+ scaleY: fe,
4967
+ translateX: fe,
4968
+ translateY: fe,
4969
+ rotateZ: fe
4970
4970
  }
4971
4971
  },
4972
4972
  create: ({ root: t, props: n }) => {
4973
4973
  n.width = n.image.width, n.height = n.image.height, t.ref.bitmap = t.appendChildView(
4974
- t.createChildView(Wl(e), { image: n.image })
4974
+ t.createChildView(ql(e), { image: n.image })
4975
4975
  );
4976
4976
  },
4977
4977
  write: ({ root: t, props: n }) => {
4978
4978
  const { flip: s } = n.crop, { bitmap: r } = t.ref;
4979
4979
  r.scaleX = s.horizontal ? -1 : 1, r.scaleY = s.vertical ? -1 : 1;
4980
4980
  }
4981
- }), $l = (e) => e.utils.createView({
4981
+ }), zl = (e) => e.utils.createView({
4982
4982
  name: "image-clip",
4983
4983
  tag: "div",
4984
4984
  ignoreRect: !0,
@@ -5003,12 +5003,12 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
5003
5003
  create: ({ root: t, props: n }) => {
5004
5004
  t.ref.image = t.appendChildView(
5005
5005
  t.createChildView(
5006
- ql(e),
5006
+ $l(e),
5007
5007
  Object.assign({}, n)
5008
5008
  )
5009
5009
  ), t.ref.createMarkup = () => {
5010
5010
  t.ref.markup || (t.ref.markup = t.appendChildView(
5011
- t.createChildView(Fl(e), Object.assign({}, n))
5011
+ t.createChildView(Bl(e), Object.assign({}, n))
5012
5012
  ));
5013
5013
  }, t.ref.destroyMarkup = () => {
5014
5014
  t.ref.markup && (t.removeChildView(t.ref.markup), t.ref.markup = null);
@@ -5037,13 +5037,13 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
5037
5037
  }, p = {
5038
5038
  x: c.center.x - f.width * r.center.x,
5039
5039
  y: c.center.y - f.height * r.center.y
5040
- }, u = Math.PI * 2 + r.rotation % (Math.PI * 2), _ = r.aspectRatio || f.height / f.width, T = typeof r.scaleToFit > "u" || r.scaleToFit, h = Vs(
5040
+ }, u = Math.PI * 2 + r.rotation % (Math.PI * 2), _ = r.aspectRatio || f.height / f.width, T = typeof r.scaleToFit > "u" || r.scaleToFit, h = Hs(
5041
5041
  f,
5042
- Hs(c, _),
5042
+ Ys(c, _),
5043
5043
  u,
5044
5044
  T ? r.center : { x: 0.5, y: 0.5 }
5045
5045
  ), E = r.zoom * h;
5046
- a && a.length ? (t.ref.createMarkup(), t.ref.markup.width = o, t.ref.markup.height = d, t.ref.markup.resize = i, t.ref.markup.dirty = l, t.ref.markup.markup = a, t.ref.markup.crop = Yl(f, r)) : t.ref.markup && t.ref.destroyMarkup();
5046
+ a && a.length ? (t.ref.createMarkup(), t.ref.markup.width = o, t.ref.markup.height = d, t.ref.markup.resize = i, t.ref.markup.dirty = l, t.ref.markup.markup = a, t.ref.markup.crop = Wl(f, r)) : t.ref.markup && t.ref.destroyMarkup();
5047
5047
  const m = t.ref.image;
5048
5048
  if (s) {
5049
5049
  m.originX = null, m.originY = null, m.translateX = null, m.translateY = null, m.rotateZ = null, m.scaleX = null, m.scaleY = null;
@@ -5051,7 +5051,7 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
5051
5051
  }
5052
5052
  m.originX = I.x, m.originY = I.y, m.translateX = p.x, m.translateY = p.y, m.rotateZ = u, m.scaleX = E, m.scaleY = E;
5053
5053
  }
5054
- }), zl = (e) => e.utils.createView({
5054
+ }), kl = (e) => e.utils.createView({
5055
5055
  name: "image-preview",
5056
5056
  tag: "div",
5057
5057
  ignoreRect: !0,
@@ -5059,15 +5059,15 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
5059
5059
  apis: ["image", "crop", "markup", "resize", "dirty", "background"],
5060
5060
  styles: ["translateY", "scaleX", "scaleY", "opacity"],
5061
5061
  animations: {
5062
- scaleX: ue,
5063
- scaleY: ue,
5064
- translateY: ue,
5062
+ scaleX: fe,
5063
+ scaleY: fe,
5064
+ translateY: fe,
5065
5065
  opacity: { type: "tween", duration: 400 }
5066
5066
  }
5067
5067
  },
5068
5068
  create: ({ root: t, props: n }) => {
5069
5069
  t.ref.clip = t.appendChildView(
5070
- t.createChildView($l(e), {
5070
+ t.createChildView(zl(e), {
5071
5071
  id: n.id,
5072
5072
  image: n.image,
5073
5073
  crop: n.crop,
@@ -5094,7 +5094,7 @@ const El = (e) => /^image/.test(e.type), Xn = (e, t) => $e(e.x * t, e.y * t), jn
5094
5094
  R > I && (R = I, m = R * f), m > p && (m = p, R = p / f), r.width = R, r.height = m;
5095
5095
  }
5096
5096
  });
5097
- let kl = `<svg width="500" height="200" viewBox="0 0 500 200" preserveAspectRatio="none">
5097
+ let jl = `<svg width="500" height="200" viewBox="0 0 500 200" preserveAspectRatio="none">
5098
5098
  <defs>
5099
5099
  <radialGradient id="gradient-__UID__" cx=".5" cy="1.25" r="1.15">
5100
5100
  <stop offset='50%' stop-color='#000000'/>
@@ -5112,22 +5112,22 @@ let kl = `<svg width="500" height="200" viewBox="0 0 500 200" preserveAspectRati
5112
5112
  </mask>
5113
5113
  </defs>
5114
5114
  <rect x="0" width="500" height="200" fill="currentColor" mask="url(#mask-__UID__)"></rect>
5115
- </svg>`, Jn = 0;
5115
+ </svg>`, es = 0;
5116
5116
  const Xl = (e) => e.utils.createView({
5117
5117
  name: "image-preview-overlay",
5118
5118
  tag: "div",
5119
5119
  ignoreRect: !0,
5120
5120
  create: ({ root: t, props: n }) => {
5121
- let s = kl;
5121
+ let s = jl;
5122
5122
  if (document.querySelector("base")) {
5123
5123
  const r = new URL(
5124
5124
  window.location.href.replace(window.location.hash, "")
5125
5125
  ).href;
5126
5126
  s = s.replace(/url\(\#/g, "url(" + r + "#");
5127
5127
  }
5128
- Jn++, t.element.classList.add(
5128
+ es++, t.element.classList.add(
5129
5129
  `filepond--image-preview-overlay-${n.status}`
5130
- ), t.element.innerHTML = s.replace(/__UID__/g, Jn);
5130
+ ), t.element.innerHTML = s.replace(/__UID__/g, es);
5131
5131
  },
5132
5132
  mixins: {
5133
5133
  styles: ["opacity"],
@@ -5135,41 +5135,41 @@ const Xl = (e) => e.utils.createView({
5135
5135
  opacity: { type: "spring", mass: 25 }
5136
5136
  }
5137
5137
  }
5138
- }), jl = function() {
5138
+ }), Zl = function() {
5139
5139
  self.onmessage = (e) => {
5140
5140
  createImageBitmap(e.data.message.file).then((t) => {
5141
5141
  self.postMessage({ id: e.data.id, message: t }, [t]);
5142
5142
  });
5143
5143
  };
5144
- }, Zl = function() {
5144
+ }, Ql = function() {
5145
5145
  self.onmessage = (e) => {
5146
5146
  const t = e.data.message.imageData, n = e.data.message.colorMatrix, s = t.data, r = s.length, a = n[0], i = n[1], l = n[2], o = n[3], d = n[4], c = n[5], f = n[6], I = n[7], p = n[8], u = n[9], _ = n[10], T = n[11], h = n[12], E = n[13], m = n[14], R = n[15], S = n[16], M = n[17], N = n[18], D = n[19];
5147
- let L = 0, G = 0, w = 0, C = 0, V = 0;
5148
- for (; L < r; L += 4)
5149
- G = s[L] / 255, w = s[L + 1] / 255, C = s[L + 2] / 255, V = s[L + 3] / 255, s[L] = Math.max(
5147
+ let w = 0, G = 0, P = 0, C = 0, V = 0;
5148
+ for (; w < r; w += 4)
5149
+ G = s[w] / 255, P = s[w + 1] / 255, C = s[w + 2] / 255, V = s[w + 3] / 255, s[w] = Math.max(
5150
5150
  0,
5151
- Math.min((G * a + w * i + C * l + V * o + d) * 255, 255)
5152
- ), s[L + 1] = Math.max(
5151
+ Math.min((G * a + P * i + C * l + V * o + d) * 255, 255)
5152
+ ), s[w + 1] = Math.max(
5153
5153
  0,
5154
- Math.min((G * c + w * f + C * I + V * p + u) * 255, 255)
5155
- ), s[L + 2] = Math.max(
5154
+ Math.min((G * c + P * f + C * I + V * p + u) * 255, 255)
5155
+ ), s[w + 2] = Math.max(
5156
5156
  0,
5157
- Math.min((G * _ + w * T + C * h + V * E + m) * 255, 255)
5158
- ), s[L + 3] = Math.max(
5157
+ Math.min((G * _ + P * T + C * h + V * E + m) * 255, 255)
5158
+ ), s[w + 3] = Math.max(
5159
5159
  0,
5160
- Math.min((G * R + w * S + C * M + V * N + D) * 255, 255)
5160
+ Math.min((G * R + P * S + C * M + V * N + D) * 255, 255)
5161
5161
  );
5162
5162
  self.postMessage({ id: e.data.id, message: t }, [
5163
5163
  t.data.buffer
5164
5164
  ]);
5165
5165
  };
5166
- }, Ql = (e, t) => {
5166
+ }, Kl = (e, t) => {
5167
5167
  let n = new Image();
5168
5168
  n.onload = () => {
5169
5169
  const s = n.naturalWidth, r = n.naturalHeight;
5170
5170
  n = null, t(s, r);
5171
5171
  }, n.src = e;
5172
- }, Kl = {
5172
+ }, Jl = {
5173
5173
  1: () => [1, 0, 0, 1, 0, 0],
5174
5174
  2: (e) => [-1, 0, 0, 1, e, 0],
5175
5175
  3: (e, t) => [-1, 0, 0, -1, e, t],
@@ -5178,16 +5178,16 @@ const Xl = (e) => e.utils.createView({
5178
5178
  6: (e, t) => [0, 1, -1, 0, t, 0],
5179
5179
  7: (e, t) => [0, -1, -1, 0, t, e],
5180
5180
  8: (e) => [0, -1, 1, 0, 0, e]
5181
- }, Jl = (e, t, n, s) => {
5182
- s !== -1 && e.transform.apply(e, Kl[s](t, n));
5183
5181
  }, ec = (e, t, n, s) => {
5182
+ s !== -1 && e.transform.apply(e, Jl[s](t, n));
5183
+ }, tc = (e, t, n, s) => {
5184
5184
  t = Math.round(t), n = Math.round(n);
5185
5185
  const r = document.createElement("canvas");
5186
5186
  r.width = t, r.height = n;
5187
5187
  const a = r.getContext("2d");
5188
- return s >= 5 && s <= 8 && ([t, n] = [n, t]), Jl(a, t, n, s), a.drawImage(e, 0, 0, t, n), r;
5189
- }, Ys = (e) => /^image/.test(e.type) && !/svg/.test(e.type), tc = 10, nc = 10, sc = (e) => {
5190
- const t = Math.min(tc / e.width, nc / e.height), n = document.createElement("canvas"), s = n.getContext("2d"), r = n.width = Math.ceil(e.width * t), a = n.height = Math.ceil(e.height * t);
5188
+ return s >= 5 && s <= 8 && ([t, n] = [n, t]), ec(a, t, n, s), a.drawImage(e, 0, 0, t, n), r;
5189
+ }, Ws = (e) => /^image/.test(e.type) && !/svg/.test(e.type), nc = 10, sc = 10, rc = (e) => {
5190
+ const t = Math.min(nc / e.width, sc / e.height), n = document.createElement("canvas"), s = n.getContext("2d"), r = n.width = Math.ceil(e.width * t), a = n.height = Math.ceil(e.height * t);
5191
5191
  s.drawImage(e, 0, 0, r, a);
5192
5192
  let i = null;
5193
5193
  try {
@@ -5199,8 +5199,8 @@ const Xl = (e) => e.utils.createView({
5199
5199
  let o = 0, d = 0, c = 0, f = 0;
5200
5200
  for (; f < l; f += 4)
5201
5201
  o += i[f] * i[f], d += i[f + 1] * i[f + 1], c += i[f + 2] * i[f + 2];
5202
- return o = At(o, l), d = At(d, l), c = At(c, l), { r: o, g: d, b: c };
5203
- }, At = (e, t) => Math.floor(Math.sqrt(e / (t / 4))), rc = (e, t) => (t = t || document.createElement("canvas"), t.width = e.width, t.height = e.height, t.getContext("2d").drawImage(e, 0, 0), t), ic = (e) => {
5202
+ return o = Lt(o, l), d = Lt(d, l), c = Lt(c, l), { r: o, g: d, b: c };
5203
+ }, Lt = (e, t) => Math.floor(Math.sqrt(e / (t / 4))), ic = (e, t) => (t = t || document.createElement("canvas"), t.width = e.width, t.height = e.height, t.getContext("2d").drawImage(e, 0, 0), t), ac = (e) => {
5204
5204
  let t;
5205
5205
  try {
5206
5206
  t = new ImageData(e.width, e.height);
@@ -5208,20 +5208,20 @@ const Xl = (e) => e.utils.createView({
5208
5208
  t = document.createElement("canvas").getContext("2d").createImageData(e.width, e.height);
5209
5209
  }
5210
5210
  return t.data.set(new Uint8ClampedArray(e.data)), t;
5211
- }, ac = (e) => new Promise((t, n) => {
5211
+ }, oc = (e) => new Promise((t, n) => {
5212
5212
  const s = new Image();
5213
5213
  s.crossOrigin = "Anonymous", s.onload = () => {
5214
5214
  t(s);
5215
5215
  }, s.onerror = (r) => {
5216
5216
  n(r);
5217
5217
  }, s.src = e;
5218
- }), oc = (e) => {
5219
- const t = Xl(e), n = zl(e), { createWorker: s } = e.utils, r = (E, m, R) => new Promise((S) => {
5218
+ }), lc = (e) => {
5219
+ const t = Xl(e), n = kl(e), { createWorker: s } = e.utils, r = (E, m, R) => new Promise((S) => {
5220
5220
  E.ref.imageData || (E.ref.imageData = R.getContext("2d").getImageData(0, 0, R.width, R.height));
5221
- const M = ic(E.ref.imageData);
5221
+ const M = ac(E.ref.imageData);
5222
5222
  if (!m || m.length !== 20)
5223
5223
  return R.getContext("2d").putImageData(M, 0, 0), S();
5224
- const N = s(Zl);
5224
+ const N = s(Ql);
5225
5225
  N.post(
5226
5226
  {
5227
5227
  imageData: M,
@@ -5255,16 +5255,16 @@ const Xl = (e) => e.utils.createView({
5255
5255
  }, D = E.query(
5256
5256
  "GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"
5257
5257
  );
5258
- let L, G, w = !1;
5259
- E.query("GET_IMAGE_PREVIEW_MARKUP_SHOW") && (L = M.getMetadata("markup") || [], G = M.getMetadata("resize"), w = !0);
5258
+ let w, G, P = !1;
5259
+ E.query("GET_IMAGE_PREVIEW_MARKUP_SHOW") && (w = M.getMetadata("markup") || [], G = M.getMetadata("resize"), P = !0);
5260
5260
  const C = E.appendChildView(
5261
5261
  E.createChildView(n, {
5262
5262
  id: S,
5263
5263
  image: R,
5264
5264
  crop: N,
5265
5265
  resize: G,
5266
- markup: L,
5267
- dirty: w,
5266
+ markup: w,
5267
+ dirty: P,
5268
5268
  background: D,
5269
5269
  opacity: 0,
5270
5270
  scaleX: 1.15,
@@ -5296,19 +5296,19 @@ const Xl = (e) => e.utils.createView({
5296
5296
  const M = S.getMetadata("crop"), N = E.ref.images[E.ref.images.length - 1];
5297
5297
  if (M && M.aspectRatio && N.crop && N.crop.aspectRatio && Math.abs(M.aspectRatio - N.crop.aspectRatio) > 1e-5) {
5298
5298
  const D = i({ root: E });
5299
- l({ root: E, props: m, image: rc(D.image) });
5299
+ l({ root: E, props: m, image: ic(D.image) });
5300
5300
  } else
5301
5301
  o({ root: E, props: m });
5302
5302
  }
5303
5303
  }
5304
5304
  }, c = (E) => {
5305
5305
  const R = window.navigator.userAgent.match(/Firefox\/([0-9]+)\./), S = R ? parseInt(R[1]) : null;
5306
- return S !== null && S <= 58 ? !1 : "createImageBitmap" in window && Ys(E);
5306
+ return S !== null && S <= 58 ? !1 : "createImageBitmap" in window && Ws(E);
5307
5307
  }, f = ({ root: E, props: m }) => {
5308
5308
  const { id: R } = m, S = E.query("GET_ITEM", R);
5309
5309
  if (!S) return;
5310
5310
  const M = URL.createObjectURL(S.file);
5311
- Ql(M, (N, D) => {
5311
+ Kl(M, (N, D) => {
5312
5312
  E.dispatch("DID_IMAGE_PREVIEW_CALCULATE_SIZE", {
5313
5313
  id: R,
5314
5314
  width: N,
@@ -5319,37 +5319,37 @@ const Xl = (e) => e.utils.createView({
5319
5319
  const { id: R } = m, S = E.query("GET_ITEM", R);
5320
5320
  if (!S) return;
5321
5321
  const M = URL.createObjectURL(S.file), N = () => {
5322
- ac(M).then(D);
5323
- }, D = (L) => {
5322
+ oc(M).then(D);
5323
+ }, D = (w) => {
5324
5324
  URL.revokeObjectURL(M);
5325
- const w = (S.getMetadata("exif") || {}).orientation || -1;
5326
- let { width: C, height: V } = L;
5325
+ const P = (S.getMetadata("exif") || {}).orientation || -1;
5326
+ let { width: C, height: V } = w;
5327
5327
  if (!C || !V) return;
5328
- w >= 5 && w <= 8 && ([C, V] = [V, C]);
5328
+ P >= 5 && P <= 8 && ([C, V] = [V, C]);
5329
5329
  const A = Math.max(1, window.devicePixelRatio * 0.75), O = E.query("GET_IMAGE_PREVIEW_ZOOM_FACTOR") * A, y = V / C, b = E.rect.element.width, v = E.rect.element.height;
5330
5330
  let H = b, F = H * y;
5331
5331
  y > 1 ? (H = Math.min(C, b * O), F = H * y) : (F = Math.min(V, v * O), H = F / y);
5332
- const ge = ec(
5333
- L,
5332
+ const he = tc(
5333
+ w,
5334
5334
  H,
5335
5335
  F,
5336
- w
5337
- ), Fe = () => {
5338
- const Tt = E.query(
5336
+ P
5337
+ ), Ye = () => {
5338
+ const ht = E.query(
5339
5339
  "GET_IMAGE_PREVIEW_CALCULATE_AVERAGE_IMAGE_COLOR"
5340
- ) ? sc(data) : null;
5341
- S.setMetadata("color", Tt, !0), "close" in L && L.close(), E.ref.overlayShadow.opacity = 1, l({ root: E, props: m, image: ge });
5340
+ ) ? rc(data) : null;
5341
+ S.setMetadata("color", ht, !0), "close" in w && w.close(), E.ref.overlayShadow.opacity = 1, l({ root: E, props: m, image: he });
5342
5342
  }, oe = S.getMetadata("filter");
5343
- oe ? r(E, oe, ge).then(Fe) : Fe();
5343
+ oe ? r(E, oe, he).then(Ye) : Ye();
5344
5344
  };
5345
5345
  if (c(S.file)) {
5346
- const L = s(jl);
5347
- L.post(
5346
+ const w = s(Zl);
5347
+ w.post(
5348
5348
  {
5349
5349
  file: S.file
5350
5350
  },
5351
5351
  (G) => {
5352
- if (L.terminate(), !G) {
5352
+ if (w.terminate(), !G) {
5353
5353
  N();
5354
5354
  return;
5355
5355
  }
@@ -5425,8 +5425,8 @@ const Xl = (e) => e.utils.createView({
5425
5425
  }
5426
5426
  )
5427
5427
  });
5428
- }, Ws = (e) => {
5429
- const { addFilter: t, utils: n } = e, { Type: s, createRoute: r, isFile: a } = n, i = oc(e);
5428
+ }, qs = (e) => {
5429
+ const { addFilter: t, utils: n } = e, { Type: s, createRoute: r, isFile: a } = n, i = lc(e);
5430
5430
  return t("CREATE_VIEW", (l) => {
5431
5431
  const { is: o, view: d, query: c } = l;
5432
5432
  if (!o("file") || !c("GET_ALLOW_IMAGE_PREVIEW")) return;
@@ -5434,7 +5434,7 @@ const Xl = (e) => e.utils.createView({
5434
5434
  const { id: E } = h, m = c("GET_ITEM", E);
5435
5435
  if (!m || !a(m.file) || m.archived) return;
5436
5436
  const R = m.file;
5437
- if (!El(R) || !c("GET_IMAGE_PREVIEW_FILTER_ITEM")(m)) return;
5437
+ if (!pl(R) || !c("GET_IMAGE_PREVIEW_FILTER_ITEM")(m)) return;
5438
5438
  const S = "createImageBitmap" in (window || {}), M = c("GET_IMAGE_PREVIEW_MAX_FILE_SIZE");
5439
5439
  if (!S && M && R.size > M)
5440
5440
  return;
@@ -5457,14 +5457,14 @@ const Xl = (e) => e.utils.createView({
5457
5457
  if (R || S || M) return;
5458
5458
  let { imageWidth: N, imageHeight: D } = T.ref;
5459
5459
  if (!N || !D) return;
5460
- const L = T.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"), G = T.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"), C = (m.getMetadata("exif") || {}).orientation || -1;
5461
- if (C >= 5 && C <= 8 && ([N, D] = [D, N]), !Ys(m.file) || T.query("GET_IMAGE_PREVIEW_UPSCALE")) {
5460
+ const w = T.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"), G = T.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"), C = (m.getMetadata("exif") || {}).orientation || -1;
5461
+ if (C >= 5 && C <= 8 && ([N, D] = [D, N]), !Ws(m.file) || T.query("GET_IMAGE_PREVIEW_UPSCALE")) {
5462
5462
  const b = 2048 / N;
5463
5463
  N *= b, D *= b;
5464
5464
  }
5465
5465
  const V = D / N, A = (m.getMetadata("crop") || {}).aspectRatio || V;
5466
5466
  let B = Math.max(
5467
- L,
5467
+ w,
5468
5468
  Math.min(D, G)
5469
5469
  );
5470
5470
  const O = T.rect.element.width, y = Math.min(
@@ -5532,16 +5532,16 @@ const Xl = (e) => e.utils.createView({
5532
5532
  imagePreviewMarkupFilter: [() => !0, s.FUNCTION]
5533
5533
  }
5534
5534
  };
5535
- }, lc = typeof window < "u" && typeof window.document < "u";
5536
- lc && document.dispatchEvent(
5537
- new CustomEvent("FilePond:pluginloaded", { detail: Ws })
5535
+ }, cc = typeof window < "u" && typeof window.document < "u";
5536
+ cc && document.dispatchEvent(
5537
+ new CustomEvent("FilePond:pluginloaded", { detail: qs })
5538
5538
  );
5539
5539
  /*!
5540
5540
  * FilePondPluginFileValidateType 1.2.9
5541
5541
  * Licensed under MIT, https://opensource.org/licenses/MIT/
5542
5542
  * Please visit https://pqina.nl/filepond/ for details.
5543
5543
  */
5544
- const qs = ({ addFilter: e, utils: t }) => {
5544
+ const $s = ({ addFilter: e, utils: t }) => {
5545
5545
  const {
5546
5546
  Type: n,
5547
5547
  isString: s,
@@ -5634,14 +5634,14 @@ const qs = ({ addFilter: e, utils: t }) => {
5634
5634
  fileValidateTypeDetectType: [null, n.FUNCTION]
5635
5635
  }
5636
5636
  };
5637
- }, cc = typeof window < "u" && typeof window.document < "u";
5638
- cc && document.dispatchEvent(new CustomEvent("FilePond:pluginloaded", { detail: qs }));
5637
+ }, dc = typeof window < "u" && typeof window.document < "u";
5638
+ dc && document.dispatchEvent(new CustomEvent("FilePond:pluginloaded", { detail: $s }));
5639
5639
  /*!
5640
5640
  * FilePondPluginFileValidateSize 2.2.8
5641
5641
  * Licensed under MIT, https://opensource.org/licenses/MIT/
5642
5642
  * Please visit https://pqina.nl/filepond/ for details.
5643
5643
  */
5644
- const $s = ({ addFilter: e, utils: t }) => {
5644
+ const zs = ({ addFilter: e, utils: t }) => {
5645
5645
  const { Type: n, replaceInString: s, toNaturalFileSize: r } = t;
5646
5646
  return e("ALLOW_HOPPER_ITEM", (a, { query: i }) => {
5647
5647
  if (!i("GET_ALLOW_FILE_SIZE_VALIDATION"))
@@ -5733,14 +5733,14 @@ const $s = ({ addFilter: e, utils: t }) => {
5733
5733
  labelMaxTotalFileSize: ["Maximum total file size is {filesize}", n.STRING]
5734
5734
  }
5735
5735
  };
5736
- }, dc = typeof window < "u" && typeof window.document < "u";
5737
- dc && document.dispatchEvent(new CustomEvent("FilePond:pluginloaded", { detail: $s }));
5738
- xt(
5736
+ }, uc = typeof window < "u" && typeof window.document < "u";
5737
+ uc && document.dispatchEvent(new CustomEvent("FilePond:pluginloaded", { detail: zs }));
5738
+ Bt(
5739
+ $s,
5739
5740
  qs,
5740
- Ws,
5741
- $s
5741
+ zs
5742
5742
  );
5743
- const Dc = ({
5743
+ const yc = ({
5744
5744
  control: e,
5745
5745
  name: t,
5746
5746
  label: n,
@@ -5755,31 +5755,31 @@ const Dc = ({
5755
5755
  beforeRemoveFile: f,
5756
5756
  ...I
5757
5757
  }) => {
5758
- const p = n && /* @__PURE__ */ P.jsxs(Me, { className: "my-3 text-body-xs-medium", children: [
5758
+ const p = n && /* @__PURE__ */ L.jsxs(ge, { className: "my-3 text-body-xs-medium", children: [
5759
5759
  n,
5760
5760
  " ",
5761
- r && /* @__PURE__ */ P.jsx("span", { className: "text-red-600", children: "*" })
5761
+ r && /* @__PURE__ */ L.jsx("span", { className: "text-red-600", children: "*" })
5762
5762
  ] });
5763
- return t && e ? /* @__PURE__ */ P.jsx(
5764
- ze,
5763
+ return t && e ? /* @__PURE__ */ L.jsx(
5764
+ Be,
5765
5765
  {
5766
5766
  control: e,
5767
5767
  name: t,
5768
5768
  rules: c,
5769
- render: ({ field: u, formState: _ }) => /* @__PURE__ */ P.jsxs(ke, { children: [
5769
+ render: ({ field: u, formState: _ }) => /* @__PURE__ */ L.jsxs(Ue, { children: [
5770
5770
  p,
5771
- /* @__PURE__ */ P.jsx(Xe, { children: /* @__PURE__ */ P.jsx(
5772
- Jt,
5771
+ /* @__PURE__ */ L.jsx(Ve, { children: /* @__PURE__ */ L.jsx(
5772
+ en,
5773
5773
  {
5774
- variant: He.get(_.errors, `${t}`) ? "failure" : "default",
5775
- files: u.value ? He.isArray(u.value) ? u.value : [u.value] : [],
5774
+ variant: Ce.get(_.errors, `${t}`) ? "failure" : "default",
5775
+ files: u.value ? Ce.isArray(u.value) ? u.value : [u.value] : [],
5776
5776
  name: u.name,
5777
5777
  ...I,
5778
- className: en(["mb-0 mt-2 rounded-xl", a]),
5778
+ className: ot(["mb-0 mt-2 rounded-xl", a]),
5779
5779
  onupdatefiles: (T = []) => {
5780
5780
  l && l > 1 ? u.onChange(
5781
- T.map((h) => He.get(h, "source"))
5782
- ) : u.onChange(He.get(T, "[0].source", void 0)), d && d(T);
5781
+ T.map((h) => Ce.get(h, "source"))
5782
+ ) : u.onChange(Ce.get(T, "[0].source", void 0)), d && d(T);
5783
5783
  },
5784
5784
  beforeRemoveFile: (T) => (f && f(T.source), !0),
5785
5785
  maxFiles: l,
@@ -5790,26 +5790,26 @@ const Dc = ({
5790
5790
  ...I
5791
5791
  }
5792
5792
  ) }),
5793
- /* @__PURE__ */ P.jsx(pe, { children: s }),
5794
- /* @__PURE__ */ P.jsx(Ft, { className: qe(i && "absolute") })
5793
+ /* @__PURE__ */ L.jsx(ue, { children: s }),
5794
+ /* @__PURE__ */ L.jsx(ft, { className: xe(i && "absolute") })
5795
5795
  ] })
5796
5796
  }
5797
- ) : /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
5797
+ ) : /* @__PURE__ */ L.jsxs(L.Fragment, { children: [
5798
5798
  p,
5799
- /* @__PURE__ */ P.jsx(
5800
- Jt,
5799
+ /* @__PURE__ */ L.jsx(
5800
+ en,
5801
5801
  {
5802
5802
  ...I,
5803
5803
  maxFiles: l,
5804
5804
  maxFileSize: o,
5805
5805
  onupdatefiles: d,
5806
5806
  beforeRemoveFile: f,
5807
- className: en(["mb-0 mt-2 rounded-xl", a])
5807
+ className: ot(["mb-0 mt-2 rounded-xl", a])
5808
5808
  }
5809
5809
  ),
5810
- /* @__PURE__ */ P.jsx(pe, { children: s })
5810
+ /* @__PURE__ */ L.jsx(ue, { children: s })
5811
5811
  ] });
5812
- }, yc = ({
5812
+ }, Ac = ({
5813
5813
  control: e,
5814
5814
  name: t,
5815
5815
  label: n,
@@ -5820,72 +5820,115 @@ const Dc = ({
5820
5820
  floatingError: l,
5821
5821
  ...o
5822
5822
  }) => {
5823
- const d = n && /* @__PURE__ */ P.jsxs(Me, { className: "my-3", children: [
5823
+ const d = n && /* @__PURE__ */ L.jsxs(ge, { className: "my-3", children: [
5824
5824
  n,
5825
5825
  " ",
5826
- r && /* @__PURE__ */ P.jsx("span", { className: "text-red-600", children: "*" })
5826
+ r && /* @__PURE__ */ L.jsx("span", { className: "text-red-600", children: "*" })
5827
5827
  ] });
5828
- return t && e ? /* @__PURE__ */ P.jsx(
5829
- ze,
5828
+ return t && e ? /* @__PURE__ */ L.jsx(
5829
+ Be,
5830
5830
  {
5831
5831
  control: e,
5832
5832
  name: t,
5833
5833
  rules: i,
5834
- render: ({ field: c }) => /* @__PURE__ */ P.jsxs(ke, { children: [
5834
+ render: ({ field: c }) => /* @__PURE__ */ L.jsxs(Ue, { children: [
5835
5835
  d,
5836
- /* @__PURE__ */ P.jsx(Xe, { children: /* @__PURE__ */ P.jsx(
5837
- tn,
5836
+ /* @__PURE__ */ L.jsx(Ve, { children: /* @__PURE__ */ L.jsx(
5837
+ nn,
5838
5838
  {
5839
5839
  className: "mt-1",
5840
5840
  value: c.value,
5841
5841
  onChange: (f) => {
5842
- c.onChange(f.format(Ks));
5842
+ c.onChange(f.format(Js));
5843
5843
  },
5844
5844
  ...o
5845
5845
  }
5846
5846
  ) }),
5847
- /* @__PURE__ */ P.jsx(pe, { children: s }),
5848
- /* @__PURE__ */ P.jsx(Ft, { className: qe(l && "absolute") })
5847
+ /* @__PURE__ */ L.jsx(ue, { children: s }),
5848
+ /* @__PURE__ */ L.jsx(ft, { className: xe(l && "absolute") })
5849
+ ] })
5850
+ }
5851
+ ) : /* @__PURE__ */ L.jsxs(L.Fragment, { children: [
5852
+ d,
5853
+ /* @__PURE__ */ L.jsx(nn, { className: "mt-1", ...o }),
5854
+ /* @__PURE__ */ L.jsx(ue, { children: s })
5855
+ ] });
5856
+ }, Mc = ({
5857
+ control: e,
5858
+ name: t,
5859
+ label: n,
5860
+ helperText: s,
5861
+ required: r,
5862
+ rules: a,
5863
+ className: i,
5864
+ floatingError: l,
5865
+ ...o
5866
+ }) => {
5867
+ const d = n && /* @__PURE__ */ L.jsxs(ge, { className: "my-3 text-body-xs-medium", children: [
5868
+ n,
5869
+ " ",
5870
+ r && /* @__PURE__ */ L.jsx("span", { className: "text-red-600", children: "*" })
5871
+ ] });
5872
+ return t && e ? /* @__PURE__ */ L.jsx(
5873
+ Be,
5874
+ {
5875
+ control: e,
5876
+ name: t,
5877
+ rules: a,
5878
+ render: ({ field: c, formState: f }) => /* @__PURE__ */ L.jsxs(Ue, { children: [
5879
+ d,
5880
+ /* @__PURE__ */ L.jsx(Ve, { children: /* @__PURE__ */ L.jsx(
5881
+ tn,
5882
+ {
5883
+ variant: Ce.get(f.errors, `${t}`) ? "failure" : "default",
5884
+ ...o,
5885
+ ...c,
5886
+ className: ot(["mt-2", i])
5887
+ }
5888
+ ) }),
5889
+ /* @__PURE__ */ L.jsx(ue, { children: s }),
5890
+ /* @__PURE__ */ L.jsx(ft, { className: xe(l && "absolute") })
5849
5891
  ] })
5850
5892
  }
5851
- ) : /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
5893
+ ) : /* @__PURE__ */ L.jsxs(L.Fragment, { children: [
5852
5894
  d,
5853
- /* @__PURE__ */ P.jsx(tn, { className: "mt-1", ...o }),
5854
- /* @__PURE__ */ P.jsx(pe, { children: s })
5895
+ /* @__PURE__ */ L.jsx(tn, { ...o, className: ot(["mt-2", i]) }),
5896
+ /* @__PURE__ */ L.jsx(ue, { children: s })
5855
5897
  ] });
5856
5898
  };
5857
5899
  export {
5858
- Qt as Checkbox,
5859
- Jt as FileUpload,
5860
- Lc as Form,
5861
- Xe as FormControl,
5862
- pe as FormDescription,
5863
- ze as FormField,
5864
- ke as FormItem,
5865
- Me as FormLabel,
5866
- Ft as FormMessage,
5867
- wc as Input,
5868
- Pc as Label,
5869
- Rc as MyCheckbox,
5870
- hc as MyDatePicker,
5871
- Dc as MyFilepond,
5872
- Cc as MyInput,
5873
- xc as MySelect,
5874
- Oc as MySwitch,
5875
- yc as MyTimePicker,
5876
- Bc as ReactSelect,
5877
- Uc as Select,
5878
- Vc as SelectContent,
5879
- Hc as SelectGroup,
5880
- Yc as SelectItem,
5881
- Wc as SelectLabel,
5882
- qc as SelectScrollDownButton,
5883
- $c as SelectScrollUpButton,
5884
- zc as SelectSeparator,
5885
- kc as SelectTrigger,
5900
+ Kt as Checkbox,
5901
+ en as FileUpload,
5902
+ Pc as Form,
5903
+ Ve as FormControl,
5904
+ ue as FormDescription,
5905
+ Be as FormField,
5906
+ Ue as FormItem,
5907
+ ge as FormLabel,
5908
+ ft as FormMessage,
5909
+ Cc as Input,
5910
+ bc as Label,
5911
+ Oc as MyCheckbox,
5912
+ Rc as MyDatePicker,
5913
+ yc as MyFilepond,
5914
+ Nc as MyInput,
5915
+ Fc as MySelect,
5916
+ Sc as MySwitch,
5917
+ Mc as MyTextarea,
5918
+ Ac as MyTimePicker,
5919
+ Uc as ReactSelect,
5920
+ Vc as Select,
5921
+ Hc as SelectContent,
5922
+ Yc as SelectGroup,
5923
+ Wc as SelectItem,
5924
+ qc as SelectLabel,
5925
+ $c as SelectScrollDownButton,
5926
+ zc as SelectScrollUpButton,
5927
+ kc as SelectSeparator,
5928
+ jc as SelectTrigger,
5886
5929
  Xc as SelectValue,
5887
- Kt as Switch,
5888
- bc as Textarea,
5889
- Nc as inputVariants,
5890
- vc as useFormField
5930
+ Jt as Switch,
5931
+ tn as Textarea,
5932
+ vc as inputVariants,
5933
+ Gc as useFormField
5891
5934
  };