@canonical/maas-react-components 1.21.0 → 1.23.0

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,7 +1,7 @@
1
- import { jsxs as se, jsx as u, Fragment as De } from "react/jsx-runtime";
2
- import * as ne from "react";
3
- import ut, { useRef as Ce, useState as ye, useEffect as he, useCallback as re, cloneElement as ft, createContext as pt, useId as rr, useContext as Mr, useMemo as ie, useReducer as dt, forwardRef as mt, useImperativeHandle as vt, Fragment as yt } from "react";
4
- import { useListener as gt, Link as bt, Tooltip as ht, Button as Ee, Icon as ke, Row as _t, Col as Et, Input as wt, CheckboxInput as St, useClickOutside as Tt, useOnEscapePressed as xt, SearchBox as Ct } from "@canonical/react-components";
1
+ import { jsxs as K, jsx as l, Fragment as Ae } from "react/jsx-runtime";
2
+ import * as oe from "react";
3
+ import ut, { useRef as Oe, useState as le, useEffect as _e, useCallback as Q, cloneElement as ft, createContext as pt, useId as ke, useContext as Mr, useMemo as se, useReducer as dt, forwardRef as mt, useImperativeHandle as vt, Fragment as gt } from "react";
4
+ import { useListener as yt, Link as bt, Spinner as ht, Tooltip as _t, Button as pe, Icon as we, Row as Et, Col as wt, Input as St, Label as Ct, CheckboxInput as Tt, useClickOutside as xt, useOnEscapePressed as Ot, SearchBox as Dt } from "@canonical/react-components";
5
5
  function Lr(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
@@ -41,9 +41,9 @@ var Br = { exports: {} };
41
41
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
42
42
  })();
43
43
  })(Br);
44
- var Ot = Br.exports;
45
- const z = /* @__PURE__ */ Lr(Ot);
46
- const ve = {
44
+ var At = Br.exports;
45
+ const B = /* @__PURE__ */ Lr(At);
46
+ const ye = {
47
47
  caution: "#F99B11",
48
48
  light: "#F7F7F7",
49
49
  linkFaded: "#D3E4ED",
@@ -52,23 +52,23 @@ const ve = {
52
52
  positiveFaded: "#B7CCB9",
53
53
  positiveMid: "#4DAB4D",
54
54
  positive: "#0E8420"
55
- }, So = [
56
- ve.link,
57
- ve.positive,
58
- ve.negative,
59
- ve.caution
60
- ], Dt = ve.linkFaded, zr = ve.caution, tr = ve.light, mr = 2, vr = 1, yr = (e, r) => {
55
+ }, Oo = [
56
+ ye.link,
57
+ ye.positive,
58
+ ye.negative,
59
+ ye.caution
60
+ ], Pt = ye.linkFaded, zr = ye.caution, tr = ye.light, mr = 2, vr = 1, gr = (e, r) => {
61
61
  var a, o;
62
62
  const t = ((o = (a = e == null ? void 0 : e.current) == null ? void 0 : a.getBoundingClientRect()) == null ? void 0 : o.width) || 0;
63
63
  return t > r * mr ? t / r : mr;
64
- }, _e = {
64
+ }, Ee = {
65
65
  bar: "meter-bar",
66
66
  container: "meter-container",
67
67
  filled: "meter-filled",
68
68
  label: "meter-label",
69
69
  meteroverflow: "meter-overflow",
70
70
  segments: "meter-segments"
71
- }, At = ({
71
+ }, Rt = ({
72
72
  className: e,
73
73
  children: r,
74
74
  data: t,
@@ -77,31 +77,31 @@ const ve = {
77
77
  size: o = "regular",
78
78
  ...s
79
79
  }) => {
80
- const i = Ce(null), m = t == null ? void 0 : t.reduce((O, w) => O + w.value, 0), c = n || m, y = t.map((O) => O.value / c * 100), [g, h] = ye(0);
81
- he(() => {
82
- h(a === "segmented" ? yr(i, c) : 0);
80
+ const i = Oe(null), f = t == null ? void 0 : t.reduce((_, C) => _ + C.value, 0), c = n || f, v = t.map((_) => _.value / c * 100), [b, h] = le(0);
81
+ _e(() => {
82
+ h(a === "segmented" ? gr(i, c) : 0);
83
83
  }, [c, a]);
84
- const S = re(() => {
85
- h(yr(i, c));
84
+ const y = Q(() => {
85
+ h(gr(i, c));
86
86
  }, [i, c, h]);
87
- return gt(window, S, "resize", !0, a === "segmented"), /* @__PURE__ */ se(
87
+ return yt(window, y, "resize", !0, a === "segmented"), /* @__PURE__ */ K(
88
88
  "div",
89
89
  {
90
- className: z("p-meter", e, {
90
+ className: B("p-meter", e, {
91
91
  "p-meter--small": o === "small"
92
92
  }),
93
93
  "aria-label": s == null ? void 0 : s["aria-label"],
94
- "data-testid": _e.container,
94
+ "data-testid": Ee.container,
95
95
  ref: i,
96
96
  children: [
97
- /* @__PURE__ */ u(Pt, { children: /* @__PURE__ */ u(
98
- It,
97
+ /* @__PURE__ */ l(It, { children: /* @__PURE__ */ l(
98
+ Ft,
99
99
  {
100
100
  data: t,
101
- datumWidths: y,
101
+ datumWidths: v,
102
102
  maximum: c,
103
103
  overColor: zr,
104
- segmentWidth: g,
104
+ segmentWidth: b,
105
105
  separatorColor: tr
106
106
  }
107
107
  ) }),
@@ -109,27 +109,27 @@ const ve = {
109
109
  ]
110
110
  }
111
111
  );
112
- }, Pt = ({ children: e }) => /* @__PURE__ */ u(
112
+ }, It = ({ children: e }) => /* @__PURE__ */ l(
113
113
  "div",
114
114
  {
115
115
  className: "p-meter__bar",
116
- "data-testid": _e.bar,
117
- style: { backgroundColor: Dt },
116
+ "data-testid": Ee.bar,
117
+ style: { backgroundColor: Pt },
118
118
  children: e
119
119
  }
120
- ), It = ({
120
+ ), Ft = ({
121
121
  data: e,
122
122
  datumWidths: r,
123
123
  maximum: t,
124
124
  segmentWidth: n
125
125
  }) => {
126
- const a = () => (e == null ? void 0 : e.reduce((i, m) => i + m.value, 0)) > t, o = (i, m) => ({
126
+ const a = () => (e == null ? void 0 : e.reduce((i, f) => i + f.value, 0)) > t, o = (i, f) => ({
127
127
  backgroundColor: i.color,
128
128
  left: `${r == null ? void 0 : r.reduce(
129
- (c, y, g) => m > g ? c + y : c,
129
+ (c, v, b) => f > b ? c + v : c,
130
130
  0
131
131
  )}%`,
132
- width: `${r[m]}%`
132
+ width: `${r[f]}%`
133
133
  }), s = () => ({
134
134
  background: `repeating-linear-gradient(
135
135
  to right,
@@ -139,107 +139,114 @@ const ve = {
139
139
  ${tr} ${n}px
140
140
  )`
141
141
  });
142
- return /* @__PURE__ */ se(De, { children: [
143
- a() ? /* @__PURE__ */ u(
142
+ return /* @__PURE__ */ K(Ae, { children: [
143
+ a() ? /* @__PURE__ */ l(
144
144
  "div",
145
145
  {
146
146
  className: "p-meter__filled",
147
- "data-testid": _e.meteroverflow,
147
+ "data-testid": Ee.meteroverflow,
148
148
  style: { backgroundColor: zr, width: "100%" }
149
149
  }
150
- ) : e == null ? void 0 : e.map((i, m) => /* @__PURE__ */ u(
150
+ ) : e == null ? void 0 : e.map((i, f) => /* @__PURE__ */ l(
151
151
  "div",
152
152
  {
153
153
  className: "p-meter__filled",
154
- "data-testid": _e.filled,
155
- style: o(i, m)
154
+ "data-testid": Ee.filled,
155
+ style: o(i, f)
156
156
  },
157
- `meter-${m}`
157
+ `meter-${f}`
158
158
  )),
159
- n > 0 && /* @__PURE__ */ u(
159
+ n > 0 && /* @__PURE__ */ l(
160
160
  "div",
161
161
  {
162
162
  className: "p-meter__separators",
163
- "data-testid": _e.segments,
163
+ "data-testid": Ee.segments,
164
164
  style: s()
165
165
  }
166
166
  )
167
167
  ] });
168
- }, Rt = ({
168
+ }, jt = ({
169
169
  className: e,
170
170
  children: r
171
- }) => /* @__PURE__ */ u(
171
+ }) => /* @__PURE__ */ l(
172
172
  "div",
173
173
  {
174
- className: z("p-meter__label", e),
175
- "data-testid": _e.label,
174
+ className: B("p-meter__label", e),
175
+ "data-testid": Ee.label,
176
176
  children: r
177
177
  }
178
178
  );
179
- At.Label = Rt;
180
- const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href: r, rel: "noreferrer noopener", target: "_blank", children: e }), Ft = ({ children: e }) => /* @__PURE__ */ u(De, { children: e }), jt = ({
179
+ Rt.Label = jt;
180
+ const Do = ({ children: e, to: r, ...t }) => /* @__PURE__ */ l(bt, { ...t, href: r, rel: "noreferrer noopener", target: "_blank", children: e });
181
+ const Nt = ({
182
+ percentComplete: e
183
+ }) => /* @__PURE__ */ K("small", { className: "progress-indicator", children: [
184
+ e,
185
+ "% ",
186
+ /* @__PURE__ */ l(ht, { className: "progress-indicator__spinner" })
187
+ ] }), kt = ({ children: e }) => /* @__PURE__ */ l(Ae, { children: e }), $t = ({
181
188
  isCollapsed: e,
182
189
  setIsCollapsed: r,
183
190
  className: t
184
- }) => /* @__PURE__ */ u(
185
- ht,
191
+ }) => /* @__PURE__ */ l(
192
+ _t,
186
193
  {
187
194
  className: "p-side-navigation__tooltip-wrapper",
188
- message: /* @__PURE__ */ se(De, { children: [
195
+ message: /* @__PURE__ */ K(Ae, { children: [
189
196
  e ? "expand" : "collapse",
190
197
  "( ",
191
- /* @__PURE__ */ u("code", { children: "[" }),
198
+ /* @__PURE__ */ l("code", { children: "[" }),
192
199
  " )"
193
200
  ] }),
194
201
  position: "right",
195
202
  tooltipClassName: "p-side-navigation__tooltip",
196
- children: /* @__PURE__ */ u(
197
- Ee,
203
+ children: /* @__PURE__ */ l(
204
+ pe,
198
205
  {
199
206
  appearance: "base",
200
207
  "aria-label": `${e ? "expand" : "collapse"} main navigation`,
201
- className: z(
208
+ className: B(
202
209
  "is-dense has-icon is-dark u-no-margin l-navigation-collapse-toggle",
203
210
  t
204
211
  ),
205
212
  onClick: (n) => {
206
213
  r(!e), n.stopPropagation(), n.currentTarget.blur();
207
214
  },
208
- children: /* @__PURE__ */ u(ke, { light: !0, name: "sidebar-toggle" })
215
+ children: /* @__PURE__ */ l(we, { light: !0, name: "sidebar-toggle" })
209
216
  }
210
217
  )
211
218
  }
212
- ), kt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__content", children: /* @__PURE__ */ u("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Nt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__controls u-no-margin--top", children: e }), $t = ({ children: e }) => /* @__PURE__ */ u("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ u("div", { className: "p-panel is-dark", children: e }) }), Mt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__footer", children: e }), Lt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__header", children: e }), Bt = ({ light: e = !0, name: r }) => /* @__PURE__ */ u(ke, { className: "p-side-navigation__icon", light: e, name: r }), zt = ({ children: e, className: r, hasActiveChild: t }) => /* @__PURE__ */ u("li", { className: z("p-side-navigation__item", r, { "has-active-child": t }), children: e }), Wt = ({ children: e, id: r, variant: t = "base" }) => /* @__PURE__ */ u("span", { className: z("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: r, children: e }), Yt = ({
219
+ ), Mt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__content", children: /* @__PURE__ */ l("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Lt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__controls u-no-margin--top", children: e }), Bt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ l("div", { className: "p-panel is-dark", children: e }) }), zt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__footer", children: e }), Wt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__header", children: e }), Yt = ({ light: e = !0, name: r }) => /* @__PURE__ */ l(we, { className: "p-side-navigation__icon", light: e, name: r }), qt = ({ children: e, className: r, hasActiveChild: t }) => /* @__PURE__ */ l("li", { className: B("p-side-navigation__item", r, { "has-active-child": t }), children: e }), Ut = ({ children: e, id: r, variant: t = "base" }) => /* @__PURE__ */ l("span", { className: B("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: r, children: e }), Kt = ({
213
220
  as: e,
214
221
  ...r
215
- }) => /* @__PURE__ */ u(
222
+ }) => /* @__PURE__ */ l(
216
223
  e || "a",
217
224
  {
218
- className: z("p-side-navigation__link", r.className),
225
+ className: B("p-side-navigation__link", r.className),
219
226
  ...r
220
227
  }
221
- ), qt = ({ children: e, className: r }) => /* @__PURE__ */ u("ul", { className: z("p-side-navigation__list", r), children: e }), Kt = ({
228
+ ), Ht = ({ children: e, className: r }) => /* @__PURE__ */ l("ul", { className: B("p-side-navigation__list", r), children: e }), Gt = ({
222
229
  as: e,
223
230
  children: r,
224
231
  className: t,
225
232
  ...n
226
- }) => /* @__PURE__ */ u(e || "a", { className: z("p-panel__logo", t), ...n, children: /* @__PURE__ */ u("div", { className: "p-navigation__tagged-logo", children: r }) }), Ht = ({ children: e }) => ft(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), Ut = ({ children: e, variant: r = "base" }) => /* @__PURE__ */ u(
233
+ }) => /* @__PURE__ */ l(e || "a", { className: B("p-panel__logo", t), ...n, children: /* @__PURE__ */ l("div", { className: "p-navigation__tagged-logo", children: r }) }), Vt = ({ children: e }) => ft(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), Jt = ({ children: e, variant: r = "base" }) => /* @__PURE__ */ l(
227
234
  "div",
228
235
  {
229
- className: z("p-panel__logo-name is-fading-when-collapsed", {
236
+ className: B("p-panel__logo-name is-fading-when-collapsed", {
230
237
  "p-panel__logo-name--small": r === "small"
231
238
  }),
232
239
  children: e
233
240
  }
234
- ), Gt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-navigation__logo-tag", children: e }), Vt = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-panel__logo-text", children: e }), Jt = ({
241
+ ), Zt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-navigation__logo-tag", children: e }), Xt = ({ children: e }) => /* @__PURE__ */ l("span", { className: "p-panel__logo-text", children: e }), Qt = ({
235
242
  children: e,
236
243
  className: r,
237
244
  onClick: t
238
- }) => /* @__PURE__ */ u(
239
- Ee,
245
+ }) => /* @__PURE__ */ l(
246
+ pe,
240
247
  {
241
248
  appearance: "base",
242
- className: z(
249
+ className: B(
243
250
  "p-side-navigation__button--menu has-icon is-dark",
244
251
  r
245
252
  ),
@@ -248,30 +255,30 @@ const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href:
248
255
  },
249
256
  children: e
250
257
  }
251
- ), Zt = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-side-navigation__text", children: e });
252
- const H = ({ children: e, className: r, isCollapsed: t }) => /* @__PURE__ */ u("header", { "aria-label": "main navigation", className: z("l-navigation is-maas", r, { "is-collapsed": t, "is-pinned": !t }), children: e }), Xt = ({ children: e, className: r }) => /* @__PURE__ */ u("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ u("div", { className: z("p-panel is-dark", r), children: e }) });
253
- H.Header = Lt;
254
- H.Banner = Ft;
255
- H.Drawer = $t;
256
- H.Controls = Nt;
257
- H.CollapseToggle = jt;
258
- H.Content = kt;
259
- H.Footer = Mt;
260
- H.List = qt;
261
- H.Item = zt;
262
- H.Link = Yt;
263
- H.Text = Zt;
264
- H.Icon = Bt;
265
- H.Label = Wt;
266
- H.Logo = Kt;
267
- H.LogoTag = Gt;
268
- H.LogoIcon = Ht;
269
- H.LogoName = Ut;
270
- H.LogoText = Vt;
271
- Xt.MenuButton = Jt;
258
+ ), en = ({ children: e }) => /* @__PURE__ */ l("span", { className: "p-side-navigation__text", children: e });
259
+ const H = ({ children: e, className: r, isCollapsed: t }) => /* @__PURE__ */ l("header", { "aria-label": "main navigation", className: B("l-navigation is-maas", r, { "is-collapsed": t, "is-pinned": !t }), children: e }), rn = ({ children: e, className: r }) => /* @__PURE__ */ l("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ l("div", { className: B("p-panel is-dark", r), children: e }) });
260
+ H.Header = Wt;
261
+ H.Banner = kt;
262
+ H.Drawer = Bt;
263
+ H.Controls = Lt;
264
+ H.CollapseToggle = $t;
265
+ H.Content = Mt;
266
+ H.Footer = zt;
267
+ H.List = Ht;
268
+ H.Item = qt;
269
+ H.Link = Kt;
270
+ H.Text = en;
271
+ H.Icon = Yt;
272
+ H.Label = Ut;
273
+ H.Logo = Gt;
274
+ H.LogoTag = Zt;
275
+ H.LogoIcon = Vt;
276
+ H.LogoName = Jt;
277
+ H.LogoText = Xt;
278
+ rn.MenuButton = Qt;
272
279
  const lr = pt(null), Wr = ({ children: e }) => {
273
- const r = rr();
274
- return /* @__PURE__ */ u(lr.Provider, { value: r, children: /* @__PURE__ */ u(
280
+ const r = ke();
281
+ return /* @__PURE__ */ l(lr.Provider, { value: r, children: /* @__PURE__ */ l(
275
282
  "div",
276
283
  {
277
284
  role: "group",
@@ -281,27 +288,27 @@ const lr = pt(null), Wr = ({ children: e }) => {
281
288
  children: e
282
289
  }
283
290
  ) });
284
- }, Qt = ({ children: e }) => {
291
+ }, tn = ({ children: e }) => {
285
292
  const r = Mr(lr);
286
- return /* @__PURE__ */ u("label", { id: `${r}_label`, children: e });
287
- }, en = ({ children: e }) => {
293
+ return /* @__PURE__ */ l("label", { id: `${r}_label`, children: e });
294
+ }, nn = ({ children: e }) => {
288
295
  const r = Mr(lr);
289
- return /* @__PURE__ */ u("p", { className: "p-form-help-text", id: `${r}_description`, children: e });
296
+ return /* @__PURE__ */ l("p", { className: "p-form-help-text", id: `${r}_description`, children: e });
290
297
  };
291
- Wr.Label = Qt;
292
- Wr.Description = en;
293
- const ur = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-form-section", children: e }), rn = ({ children: e }) => /* @__PURE__ */ u("h5", { className: "p-form-section__title u-no-padding--top", children: e }), tn = ({ children: e }) => /* @__PURE__ */ u("p", { className: "p-form-help-text", children: e }), nn = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-form-section__content", children: e });
294
- ur.Title = rn;
295
- ur.Description = tn;
296
- ur.Content = nn;
297
- function on(e) {
298
- const [r, t] = ne.useState(null), n = ne.useRef(null), a = ne.useCallback(() => {
298
+ Wr.Label = tn;
299
+ Wr.Description = nn;
300
+ const ur = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-form-section", children: e }), on = ({ children: e }) => /* @__PURE__ */ l("h5", { className: "p-form-section__title u-no-padding--top", children: e }), an = ({ children: e }) => /* @__PURE__ */ l("p", { className: "p-form-help-text", children: e }), sn = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-form-section__content", children: e });
301
+ ur.Title = on;
302
+ ur.Description = an;
303
+ ur.Content = sn;
304
+ function cn(e) {
305
+ const [r, t] = oe.useState(null), n = oe.useRef(null), a = oe.useCallback(() => {
299
306
  if (e.current) {
300
307
  const o = e.current.getBoundingClientRect();
301
308
  t(o);
302
309
  }
303
310
  }, [e]);
304
- return ne.useEffect(() => {
311
+ return oe.useEffect(() => {
305
312
  const o = new ResizeObserver(() => {
306
313
  n.current && cancelAnimationFrame(n.current), n.current = requestAnimationFrame(a);
307
314
  });
@@ -310,38 +317,38 @@ function on(e) {
310
317
  };
311
318
  }, [e, a]), r;
312
319
  }
313
- const Yr = ne.createContext(null), qr = ne.createContext([!1, () => {
314
- }]), Kr = ({ children: e }) => {
315
- const r = ne.useRef(null), t = on(r), [n, a] = ne.useState(!1);
316
- return /* @__PURE__ */ u(
320
+ const Yr = oe.createContext(null), qr = oe.createContext([!1, () => {
321
+ }]), Ur = ({ children: e }) => {
322
+ const r = oe.useRef(null), t = cn(r), [n, a] = oe.useState(!1);
323
+ return /* @__PURE__ */ l(
317
324
  "header",
318
325
  {
319
- className: z("main-toolbar", {
326
+ className: B("main-toolbar", {
320
327
  "main-toolbar--stacked": n
321
328
  }),
322
329
  ref: r,
323
- children: /* @__PURE__ */ u(Yr.Provider, { value: t, children: /* @__PURE__ */ u(qr.Provider, { value: [n, a], children: e }) })
330
+ children: /* @__PURE__ */ l(Yr.Provider, { value: t, children: /* @__PURE__ */ l(qr.Provider, { value: [n, a], children: e }) })
324
331
  }
325
332
  );
326
- }, an = ({
333
+ }, ln = ({
327
334
  as: e,
328
335
  children: r,
329
336
  className: t,
330
337
  ...n
331
- }) => /* @__PURE__ */ u(
338
+ }) => /* @__PURE__ */ l(
332
339
  e || "h1",
333
340
  {
334
- className: z("main-toolbar__title p-heading--4", t),
341
+ className: B("main-toolbar__title p-heading--4", t),
335
342
  "data-testid": "main-toolbar-heading",
336
343
  ...n,
337
344
  children: r
338
345
  }
339
- ), sn = ({ children: e }) => {
340
- const r = ne.useContext(Yr), [t, n] = ne.useContext(qr), a = ne.useRef(null);
341
- return ne.useEffect(() => {
346
+ ), un = ({ children: e }) => {
347
+ const r = oe.useContext(Yr), [t, n] = oe.useContext(qr), a = oe.useRef(null);
348
+ return oe.useEffect(() => {
342
349
  !a.current || !r || n(a.current.getBoundingClientRect().width > r.width);
343
- }, [n, r, a]), /* @__PURE__ */ se(De, { children: [
344
- /* @__PURE__ */ u(
350
+ }, [n, r, a]), /* @__PURE__ */ K(Ae, { children: [
351
+ /* @__PURE__ */ l(
345
352
  "div",
346
353
  {
347
354
  "aria-hidden": "true",
@@ -351,10 +358,10 @@ const Yr = ne.createContext(null), qr = ne.createContext([!1, () => {
351
358
  children: e
352
359
  }
353
360
  ),
354
- /* @__PURE__ */ u(
361
+ /* @__PURE__ */ l(
355
362
  "div",
356
363
  {
357
- className: z("main-toolbar__controls", {
364
+ className: B("main-toolbar__controls", {
358
365
  "main-toolbar__controls--stacked": t
359
366
  }),
360
367
  children: e
@@ -362,46 +369,46 @@ const Yr = ne.createContext(null), qr = ne.createContext([!1, () => {
362
369
  )
363
370
  ] });
364
371
  };
365
- Kr.Title = an;
366
- Kr.Controls = sn;
367
- const Le = ({
372
+ Ur.Title = ln;
373
+ Ur.Controls = un;
374
+ const Be = ({
368
375
  children: e,
369
376
  className: r,
370
377
  as: t,
371
378
  variant: n = "wide",
372
379
  ...a
373
380
  }) => {
374
- const o = t || "section", s = z("content-section", r);
375
- return /* @__PURE__ */ u(o, { ...a, className: s, children: /* @__PURE__ */ u(_t, { children: /* @__PURE__ */ u(Et, { size: n === "narrow" ? 6 : 12, children: e }) }) });
376
- }, cn = ({ children: e, className: r, as: t, ...n }) => /* @__PURE__ */ u(
381
+ const o = t || "section", s = B("content-section", r);
382
+ return /* @__PURE__ */ l(o, { ...a, className: s, children: /* @__PURE__ */ l(Et, { children: /* @__PURE__ */ l(wt, { size: n === "narrow" ? 6 : 12, children: e }) }) });
383
+ }, fn = ({ children: e, className: r, as: t, ...n }) => /* @__PURE__ */ l(
377
384
  t || "h1",
378
385
  {
379
386
  ...n,
380
- className: z("content-section__title p-heading--4", r),
387
+ className: B("content-section__title p-heading--4", r),
381
388
  children: e
382
389
  }
383
- ), ln = ({ children: e, className: r }) => /* @__PURE__ */ u("header", { className: z("content-section__header", r), children: e }), un = ({ children: e, className: r }) => /* @__PURE__ */ u("div", { className: z("content-section__body", r), children: e }), fn = ({ children: e, className: r }) => /* @__PURE__ */ u("footer", { className: z("content-section__footer", r), children: e });
384
- Le.Title = cn;
385
- Le.Header = ln;
386
- Le.Content = un;
387
- Le.Footer = fn;
388
- const Hr = ({
390
+ ), pn = ({ children: e, className: r }) => /* @__PURE__ */ l("header", { className: B("content-section__header", r), children: e }), dn = ({ children: e, className: r }) => /* @__PURE__ */ l("div", { className: B("content-section__body", r), children: e }), mn = ({ children: e, className: r }) => /* @__PURE__ */ l("footer", { className: B("content-section__footer", r), children: e });
391
+ Be.Title = fn;
392
+ Be.Header = pn;
393
+ Be.Content = dn;
394
+ Be.Footer = mn;
395
+ const Kr = ({
389
396
  children: e,
390
397
  className: r,
391
398
  isVisible: t
392
- }) => /* @__PURE__ */ u(
399
+ }) => /* @__PURE__ */ l(
393
400
  "div",
394
401
  {
395
- className: z("fade-in--down", r),
402
+ className: B("fade-in--down", r),
396
403
  "aria-hidden": t ? "false" : "true",
397
404
  style: { visibility: t ? "visible" : "hidden" },
398
405
  children: e
399
406
  }
400
- ), xo = ({
407
+ ), Ao = ({
401
408
  children: e,
402
409
  ...r
403
- }) => /* @__PURE__ */ u(Hr, { isVisible: !r["aria-hidden"], children: /* @__PURE__ */ u("div", { className: "p-form__nested-group", ...r, children: e }) });
404
- const pn = ({
410
+ }) => /* @__PURE__ */ l(Kr, { isVisible: !r["aria-hidden"], children: /* @__PURE__ */ l("div", { className: "p-form__nested-group", ...r, children: e }) });
411
+ const vn = ({
405
412
  className: e,
406
413
  currentPage: r,
407
414
  error: t,
@@ -410,29 +417,29 @@ const pn = ({
410
417
  onInputChange: o,
411
418
  onNextClick: s,
412
419
  onPreviousClick: i,
413
- totalPages: m,
420
+ totalPages: f,
414
421
  ...c
415
- }) => /* @__PURE__ */ u(
422
+ }) => /* @__PURE__ */ l(
416
423
  "nav",
417
424
  {
418
425
  "aria-label": (c == null ? void 0 : c["aria-label"]) || "pagination",
419
- className: z("p-pagination", e),
420
- children: /* @__PURE__ */ se("span", { className: "p-pagination--items", children: [
421
- /* @__PURE__ */ u(
422
- Ee,
426
+ className: B("p-pagination", e),
427
+ children: /* @__PURE__ */ K("span", { className: "p-pagination--items", children: [
428
+ /* @__PURE__ */ l(
429
+ pe,
423
430
  {
424
431
  "aria-label": "Previous page",
425
432
  className: "p-pagination__link--previous",
426
433
  disabled: r === 1 || n,
427
434
  onClick: i,
428
435
  type: "button",
429
- children: /* @__PURE__ */ u(ke, { name: "chevron-down" })
436
+ children: /* @__PURE__ */ l(we, { name: "chevron-down" })
430
437
  }
431
438
  ),
432
- /* @__PURE__ */ u("strong", { children: "Page " }),
439
+ /* @__PURE__ */ l("strong", { children: "Page " }),
433
440
  " ",
434
- /* @__PURE__ */ u(
435
- wt,
441
+ /* @__PURE__ */ l(
442
+ St,
436
443
  {
437
444
  "aria-label": "page number",
438
445
  className: "p-pagination__input",
@@ -447,32 +454,32 @@ const pn = ({
447
454
  }
448
455
  ),
449
456
  " ",
450
- /* @__PURE__ */ se("strong", { className: "u-no-wrap", children: [
457
+ /* @__PURE__ */ K("strong", { className: "u-no-wrap", children: [
451
458
  " of ",
452
- m
459
+ f
453
460
  ] }),
454
- /* @__PURE__ */ u(
455
- Ee,
461
+ /* @__PURE__ */ l(
462
+ pe,
456
463
  {
457
464
  "aria-label": "Next page",
458
465
  className: "p-pagination__link--next",
459
- disabled: r === m || n,
466
+ disabled: r === f || n,
460
467
  onClick: s,
461
468
  type: "button",
462
- children: /* @__PURE__ */ u(ke, { name: "chevron-up" })
469
+ children: /* @__PURE__ */ l(we, { name: "chevron-up" })
463
470
  }
464
471
  )
465
472
  ] })
466
473
  }
467
- ), Co = ({
474
+ ), Po = ({
468
475
  currentPage: e,
469
476
  disabled: r,
470
477
  paginate: t,
471
478
  totalPages: n
472
479
  }) => {
473
- const [a, o] = ye(e), [s, i] = ye("");
474
- return /* @__PURE__ */ u(
475
- pn,
480
+ const [a, o] = le(e), [s, i] = le("");
481
+ return /* @__PURE__ */ l(
482
+ vn,
476
483
  {
477
484
  currentPage: a,
478
485
  error: s,
@@ -481,8 +488,8 @@ const pn = ({
481
488
  o(e), i("");
482
489
  },
483
490
  onInputChange: (h) => {
484
- const { value: S, valueAsNumber: O } = h.target;
485
- S ? (o(O), O > n || O < 1 ? i(`${O} is not a valid page number.`) : (i(""), t(O))) : i("Enter a page number.");
491
+ const { value: y, valueAsNumber: _ } = h.target;
492
+ y ? (o(_), _ > n || _ < 1 ? i(`${_} is not a valid page number.`) : (i(""), t(_))) : i("Enter a page number.");
486
493
  },
487
494
  onNextClick: () => {
488
495
  o((h) => Number(h) + 1), t(Number(e) + 1);
@@ -494,13 +501,13 @@ const pn = ({
494
501
  }
495
502
  );
496
503
  };
497
- const Oo = ({ activeStep: e, items: r }) => /* @__PURE__ */ u("ol", { className: "stepper", children: r.map((t, n) => {
504
+ const Ro = ({ activeStep: e, items: r }) => /* @__PURE__ */ l("ol", { className: "stepper", children: r.map((t, n) => {
498
505
  const a = n === e, o = n < e;
499
- return /* @__PURE__ */ u("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ u(
506
+ return /* @__PURE__ */ l("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ l(
500
507
  "p",
501
508
  {
502
509
  "aria-label": o ? `${t} (completed)` : t,
503
- className: z("stepper__title", {
510
+ className: B("stepper__title", {
504
511
  "stepper__title--is-active": a,
505
512
  "stepper__title--is-complete": o
506
513
  }),
@@ -508,7 +515,7 @@ const Oo = ({ activeStep: e, items: r }) => /* @__PURE__ */ u("ol", { className:
508
515
  }
509
516
  ) }, n);
510
517
  }) });
511
- var nr = { exports: {} }, Fe = { exports: {} }, F = {};
518
+ var nr = { exports: {} }, je = { exports: {} }, F = {};
512
519
  /** @license React v16.13.1
513
520
  * react-is.production.min.js
514
521
  *
@@ -517,71 +524,71 @@ var nr = { exports: {} }, Fe = { exports: {} }, F = {};
517
524
  * This source code is licensed under the MIT license found in the
518
525
  * LICENSE file in the root directory of this source tree.
519
526
  */
520
- var gr;
521
- function dn() {
522
- if (gr)
527
+ var yr;
528
+ function gn() {
529
+ if (yr)
523
530
  return F;
524
- gr = 1;
525
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
526
- function A(f) {
527
- if (typeof f == "object" && f !== null) {
528
- var Z = f.$$typeof;
529
- switch (Z) {
531
+ yr = 1;
532
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, b = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, U = e ? Symbol.for("react.scope") : 60119;
533
+ function A(p) {
534
+ if (typeof p == "object" && p !== null) {
535
+ var X = p.$$typeof;
536
+ switch (X) {
530
537
  case r:
531
- switch (f = f.type, f) {
532
- case m:
538
+ switch (p = p.type, p) {
539
+ case f:
533
540
  case c:
534
541
  case n:
535
542
  case o:
536
543
  case a:
537
- case g:
538
- return f;
544
+ case b:
545
+ return p;
539
546
  default:
540
- switch (f = f && f.$$typeof, f) {
547
+ switch (p = p && p.$$typeof, p) {
541
548
  case i:
549
+ case v:
550
+ case _:
542
551
  case y:
543
- case O:
544
- case S:
545
552
  case s:
546
- return f;
553
+ return p;
547
554
  default:
548
- return Z;
555
+ return X;
549
556
  }
550
557
  }
551
558
  case t:
552
- return Z;
559
+ return X;
553
560
  }
554
561
  }
555
562
  }
556
- function N(f) {
557
- return A(f) === c;
563
+ function k(p) {
564
+ return A(p) === c;
558
565
  }
559
- return F.AsyncMode = m, F.ConcurrentMode = c, F.ContextConsumer = i, F.ContextProvider = s, F.Element = r, F.ForwardRef = y, F.Fragment = n, F.Lazy = O, F.Memo = S, F.Portal = t, F.Profiler = o, F.StrictMode = a, F.Suspense = g, F.isAsyncMode = function(f) {
560
- return N(f) || A(f) === m;
561
- }, F.isConcurrentMode = N, F.isContextConsumer = function(f) {
562
- return A(f) === i;
563
- }, F.isContextProvider = function(f) {
564
- return A(f) === s;
565
- }, F.isElement = function(f) {
566
- return typeof f == "object" && f !== null && f.$$typeof === r;
567
- }, F.isForwardRef = function(f) {
568
- return A(f) === y;
569
- }, F.isFragment = function(f) {
570
- return A(f) === n;
571
- }, F.isLazy = function(f) {
572
- return A(f) === O;
573
- }, F.isMemo = function(f) {
574
- return A(f) === S;
575
- }, F.isPortal = function(f) {
576
- return A(f) === t;
577
- }, F.isProfiler = function(f) {
578
- return A(f) === o;
579
- }, F.isStrictMode = function(f) {
580
- return A(f) === a;
581
- }, F.isSuspense = function(f) {
582
- return A(f) === g;
583
- }, F.isValidElementType = function(f) {
584
- return typeof f == "string" || typeof f == "function" || f === n || f === c || f === o || f === a || f === g || f === h || typeof f == "object" && f !== null && (f.$$typeof === O || f.$$typeof === S || f.$$typeof === s || f.$$typeof === i || f.$$typeof === y || f.$$typeof === L || f.$$typeof === k || f.$$typeof === K || f.$$typeof === w);
566
+ return F.AsyncMode = f, F.ConcurrentMode = c, F.ContextConsumer = i, F.ContextProvider = s, F.Element = r, F.ForwardRef = v, F.Fragment = n, F.Lazy = _, F.Memo = y, F.Portal = t, F.Profiler = o, F.StrictMode = a, F.Suspense = b, F.isAsyncMode = function(p) {
567
+ return k(p) || A(p) === f;
568
+ }, F.isConcurrentMode = k, F.isContextConsumer = function(p) {
569
+ return A(p) === i;
570
+ }, F.isContextProvider = function(p) {
571
+ return A(p) === s;
572
+ }, F.isElement = function(p) {
573
+ return typeof p == "object" && p !== null && p.$$typeof === r;
574
+ }, F.isForwardRef = function(p) {
575
+ return A(p) === v;
576
+ }, F.isFragment = function(p) {
577
+ return A(p) === n;
578
+ }, F.isLazy = function(p) {
579
+ return A(p) === _;
580
+ }, F.isMemo = function(p) {
581
+ return A(p) === y;
582
+ }, F.isPortal = function(p) {
583
+ return A(p) === t;
584
+ }, F.isProfiler = function(p) {
585
+ return A(p) === o;
586
+ }, F.isStrictMode = function(p) {
587
+ return A(p) === a;
588
+ }, F.isSuspense = function(p) {
589
+ return A(p) === b;
590
+ }, F.isValidElementType = function(p) {
591
+ return typeof p == "string" || typeof p == "function" || p === n || p === c || p === o || p === a || p === b || p === h || typeof p == "object" && p !== null && (p.$$typeof === _ || p.$$typeof === y || p.$$typeof === s || p.$$typeof === i || p.$$typeof === v || p.$$typeof === L || p.$$typeof === N || p.$$typeof === U || p.$$typeof === C);
585
592
  }, F.typeOf = A, F;
586
593
  }
587
594
  var j = {};
@@ -594,101 +601,101 @@ var j = {};
594
601
  * LICENSE file in the root directory of this source tree.
595
602
  */
596
603
  var br;
597
- function mn() {
604
+ function yn() {
598
605
  return br || (br = 1, process.env.NODE_ENV !== "production" && function() {
599
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
600
- function A(p) {
601
- return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
602
- p === n || p === c || p === o || p === a || p === g || p === h || typeof p == "object" && p !== null && (p.$$typeof === O || p.$$typeof === S || p.$$typeof === s || p.$$typeof === i || p.$$typeof === y || p.$$typeof === L || p.$$typeof === k || p.$$typeof === K || p.$$typeof === w);
603
- }
604
- function N(p) {
605
- if (typeof p == "object" && p !== null) {
606
- var Q = p.$$typeof;
607
- switch (Q) {
606
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, b = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, U = e ? Symbol.for("react.scope") : 60119;
607
+ function A(d) {
608
+ return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
609
+ d === n || d === c || d === o || d === a || d === b || d === h || typeof d == "object" && d !== null && (d.$$typeof === _ || d.$$typeof === y || d.$$typeof === s || d.$$typeof === i || d.$$typeof === v || d.$$typeof === L || d.$$typeof === N || d.$$typeof === U || d.$$typeof === C);
610
+ }
611
+ function k(d) {
612
+ if (typeof d == "object" && d !== null) {
613
+ var re = d.$$typeof;
614
+ switch (re) {
608
615
  case r:
609
- var de = p.type;
610
- switch (de) {
611
- case m:
616
+ var ve = d.type;
617
+ switch (ve) {
618
+ case f:
612
619
  case c:
613
620
  case n:
614
621
  case o:
615
622
  case a:
616
- case g:
617
- return de;
623
+ case b:
624
+ return ve;
618
625
  default:
619
- var Te = de && de.$$typeof;
626
+ var Te = ve && ve.$$typeof;
620
627
  switch (Te) {
621
628
  case i:
629
+ case v:
630
+ case _:
622
631
  case y:
623
- case O:
624
- case S:
625
632
  case s:
626
633
  return Te;
627
634
  default:
628
- return Q;
635
+ return re;
629
636
  }
630
637
  }
631
638
  case t:
632
- return Q;
639
+ return re;
633
640
  }
634
641
  }
635
642
  }
636
- var f = m, Z = c, $ = i, V = s, X = r, ce = y, fe = n, pe = O, le = S, W = t, J = o, te = a, oe = g, ue = !1;
637
- function U(p) {
638
- return ue || (ue = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), l(p) || N(p) === m;
643
+ var p = f, X = c, $ = i, J = s, ee = r, ce = v, de = n, me = _, ue = y, W = t, Z = o, ne = a, ae = b, fe = !1;
644
+ function G(d) {
645
+ return fe || (fe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), u(d) || k(d) === f;
639
646
  }
640
- function l(p) {
641
- return N(p) === c;
647
+ function u(d) {
648
+ return k(d) === c;
642
649
  }
643
- function v(p) {
644
- return N(p) === i;
650
+ function g(d) {
651
+ return k(d) === i;
645
652
  }
646
- function T(p) {
647
- return N(p) === s;
653
+ function T(d) {
654
+ return k(d) === s;
648
655
  }
649
- function x(p) {
650
- return typeof p == "object" && p !== null && p.$$typeof === r;
656
+ function x(d) {
657
+ return typeof d == "object" && d !== null && d.$$typeof === r;
651
658
  }
652
- function _(p) {
653
- return N(p) === y;
659
+ function w(d) {
660
+ return k(d) === v;
654
661
  }
655
- function P(p) {
656
- return N(p) === n;
662
+ function P(d) {
663
+ return k(d) === n;
657
664
  }
658
- function E(p) {
659
- return N(p) === O;
665
+ function S(d) {
666
+ return k(d) === _;
660
667
  }
661
- function C(p) {
662
- return N(p) === S;
668
+ function O(d) {
669
+ return k(d) === y;
663
670
  }
664
- function I(p) {
665
- return N(p) === t;
671
+ function R(d) {
672
+ return k(d) === t;
666
673
  }
667
- function R(p) {
668
- return N(p) === o;
674
+ function I(d) {
675
+ return k(d) === o;
669
676
  }
670
- function D(p) {
671
- return N(p) === a;
677
+ function D(d) {
678
+ return k(d) === a;
672
679
  }
673
- function q(p) {
674
- return N(p) === g;
680
+ function q(d) {
681
+ return k(d) === b;
675
682
  }
676
- j.AsyncMode = f, j.ConcurrentMode = Z, j.ContextConsumer = $, j.ContextProvider = V, j.Element = X, j.ForwardRef = ce, j.Fragment = fe, j.Lazy = pe, j.Memo = le, j.Portal = W, j.Profiler = J, j.StrictMode = te, j.Suspense = oe, j.isAsyncMode = U, j.isConcurrentMode = l, j.isContextConsumer = v, j.isContextProvider = T, j.isElement = x, j.isForwardRef = _, j.isFragment = P, j.isLazy = E, j.isMemo = C, j.isPortal = I, j.isProfiler = R, j.isStrictMode = D, j.isSuspense = q, j.isValidElementType = A, j.typeOf = N;
683
+ j.AsyncMode = p, j.ConcurrentMode = X, j.ContextConsumer = $, j.ContextProvider = J, j.Element = ee, j.ForwardRef = ce, j.Fragment = de, j.Lazy = me, j.Memo = ue, j.Portal = W, j.Profiler = Z, j.StrictMode = ne, j.Suspense = ae, j.isAsyncMode = G, j.isConcurrentMode = u, j.isContextConsumer = g, j.isContextProvider = T, j.isElement = x, j.isForwardRef = w, j.isFragment = P, j.isLazy = S, j.isMemo = O, j.isPortal = R, j.isProfiler = I, j.isStrictMode = D, j.isSuspense = q, j.isValidElementType = A, j.typeOf = k;
677
684
  }()), j;
678
685
  }
679
686
  var hr;
680
- function Ur() {
681
- return hr || (hr = 1, process.env.NODE_ENV === "production" ? Fe.exports = dn() : Fe.exports = mn()), Fe.exports;
687
+ function Hr() {
688
+ return hr || (hr = 1, process.env.NODE_ENV === "production" ? je.exports = gn() : je.exports = yn()), je.exports;
682
689
  }
683
690
  /*
684
691
  object-assign
685
692
  (c) Sindre Sorhus
686
693
  @license MIT
687
694
  */
688
- var Ge, _r;
689
- function vn() {
695
+ var Ve, _r;
696
+ function bn() {
690
697
  if (_r)
691
- return Ge;
698
+ return Ve;
692
699
  _r = 1;
693
700
  var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
694
701
  function n(o) {
@@ -705,49 +712,49 @@ function vn() {
705
712
  return !1;
706
713
  for (var s = {}, i = 0; i < 10; i++)
707
714
  s["_" + String.fromCharCode(i)] = i;
708
- var m = Object.getOwnPropertyNames(s).map(function(y) {
709
- return s[y];
715
+ var f = Object.getOwnPropertyNames(s).map(function(v) {
716
+ return s[v];
710
717
  });
711
- if (m.join("") !== "0123456789")
718
+ if (f.join("") !== "0123456789")
712
719
  return !1;
713
720
  var c = {};
714
- return "abcdefghijklmnopqrst".split("").forEach(function(y) {
715
- c[y] = y;
721
+ return "abcdefghijklmnopqrst".split("").forEach(function(v) {
722
+ c[v] = v;
716
723
  }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
717
724
  } catch {
718
725
  return !1;
719
726
  }
720
727
  }
721
- return Ge = a() ? Object.assign : function(o, s) {
722
- for (var i, m = n(o), c, y = 1; y < arguments.length; y++) {
723
- i = Object(arguments[y]);
724
- for (var g in i)
725
- r.call(i, g) && (m[g] = i[g]);
728
+ return Ve = a() ? Object.assign : function(o, s) {
729
+ for (var i, f = n(o), c, v = 1; v < arguments.length; v++) {
730
+ i = Object(arguments[v]);
731
+ for (var b in i)
732
+ r.call(i, b) && (f[b] = i[b]);
726
733
  if (e) {
727
734
  c = e(i);
728
735
  for (var h = 0; h < c.length; h++)
729
- t.call(i, c[h]) && (m[c[h]] = i[c[h]]);
736
+ t.call(i, c[h]) && (f[c[h]] = i[c[h]]);
730
737
  }
731
738
  }
732
- return m;
733
- }, Ge;
739
+ return f;
740
+ }, Ve;
734
741
  }
735
- var Ve, Er;
742
+ var Je, Er;
736
743
  function fr() {
737
744
  if (Er)
738
- return Ve;
745
+ return Je;
739
746
  Er = 1;
740
747
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
741
- return Ve = e, Ve;
748
+ return Je = e, Je;
742
749
  }
743
- var Je, wr;
750
+ var Ze, wr;
744
751
  function Gr() {
745
- return wr || (wr = 1, Je = Function.call.bind(Object.prototype.hasOwnProperty)), Je;
752
+ return wr || (wr = 1, Ze = Function.call.bind(Object.prototype.hasOwnProperty)), Ze;
746
753
  }
747
- var Ze, Sr;
748
- function yn() {
754
+ var Xe, Sr;
755
+ function hn() {
749
756
  if (Sr)
750
- return Ze;
757
+ return Xe;
751
758
  Sr = 1;
752
759
  var e = function() {
753
760
  };
@@ -762,29 +769,29 @@ function yn() {
762
769
  }
763
770
  };
764
771
  }
765
- function a(o, s, i, m, c) {
772
+ function a(o, s, i, f, c) {
766
773
  if (process.env.NODE_ENV !== "production") {
767
- for (var y in o)
768
- if (n(o, y)) {
769
- var g;
774
+ for (var v in o)
775
+ if (n(o, v)) {
776
+ var b;
770
777
  try {
771
- if (typeof o[y] != "function") {
778
+ if (typeof o[v] != "function") {
772
779
  var h = Error(
773
- (m || "React class") + ": " + i + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
780
+ (f || "React class") + ": " + i + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
774
781
  );
775
782
  throw h.name = "Invariant Violation", h;
776
783
  }
777
- g = o[y](s, y, m, i, null, r);
778
- } catch (O) {
779
- g = O;
784
+ b = o[v](s, v, f, i, null, r);
785
+ } catch (_) {
786
+ b = _;
780
787
  }
781
- if (g && !(g instanceof Error) && e(
782
- (m || "React class") + ": type specification of " + i + " `" + y + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
783
- ), g instanceof Error && !(g.message in t)) {
784
- t[g.message] = !0;
785
- var S = c ? c() : "";
788
+ if (b && !(b instanceof Error) && e(
789
+ (f || "React class") + ": type specification of " + i + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof b + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
790
+ ), b instanceof Error && !(b.message in t)) {
791
+ t[b.message] = !0;
792
+ var y = c ? c() : "";
786
793
  e(
787
- "Failed " + i + " type: " + g.message + (S ?? "")
794
+ "Failed " + i + " type: " + b.message + (y ?? "")
788
795
  );
789
796
  }
790
797
  }
@@ -792,282 +799,282 @@ function yn() {
792
799
  }
793
800
  return a.resetWarningCache = function() {
794
801
  process.env.NODE_ENV !== "production" && (t = {});
795
- }, Ze = a, Ze;
802
+ }, Xe = a, Xe;
796
803
  }
797
- var Xe, Tr;
798
- function gn() {
799
- if (Tr)
800
- return Xe;
801
- Tr = 1;
802
- var e = Ur(), r = vn(), t = fr(), n = Gr(), a = yn(), o = function() {
804
+ var Qe, Cr;
805
+ function _n() {
806
+ if (Cr)
807
+ return Qe;
808
+ Cr = 1;
809
+ var e = Hr(), r = bn(), t = fr(), n = Gr(), a = hn(), o = function() {
803
810
  };
804
811
  process.env.NODE_ENV !== "production" && (o = function(i) {
805
- var m = "Warning: " + i;
806
- typeof console < "u" && console.error(m);
812
+ var f = "Warning: " + i;
813
+ typeof console < "u" && console.error(f);
807
814
  try {
808
- throw new Error(m);
815
+ throw new Error(f);
809
816
  } catch {
810
817
  }
811
818
  });
812
819
  function s() {
813
820
  return null;
814
821
  }
815
- return Xe = function(i, m) {
816
- var c = typeof Symbol == "function" && Symbol.iterator, y = "@@iterator";
817
- function g(l) {
818
- var v = l && (c && l[c] || l[y]);
819
- if (typeof v == "function")
820
- return v;
821
- }
822
- var h = "<<anonymous>>", S = {
823
- array: k("array"),
824
- bigint: k("bigint"),
825
- bool: k("boolean"),
826
- func: k("function"),
827
- number: k("number"),
828
- object: k("object"),
829
- string: k("string"),
830
- symbol: k("symbol"),
831
- any: K(),
822
+ return Qe = function(i, f) {
823
+ var c = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
824
+ function b(u) {
825
+ var g = u && (c && u[c] || u[v]);
826
+ if (typeof g == "function")
827
+ return g;
828
+ }
829
+ var h = "<<anonymous>>", y = {
830
+ array: N("array"),
831
+ bigint: N("bigint"),
832
+ bool: N("boolean"),
833
+ func: N("function"),
834
+ number: N("number"),
835
+ object: N("object"),
836
+ string: N("string"),
837
+ symbol: N("symbol"),
838
+ any: U(),
832
839
  arrayOf: A,
833
- element: N(),
834
- elementType: f(),
835
- instanceOf: Z,
840
+ element: k(),
841
+ elementType: p(),
842
+ instanceOf: X,
836
843
  node: ce(),
837
- objectOf: V,
844
+ objectOf: J,
838
845
  oneOf: $,
839
- oneOfType: X,
840
- shape: pe,
841
- exact: le
846
+ oneOfType: ee,
847
+ shape: me,
848
+ exact: ue
842
849
  };
843
- function O(l, v) {
844
- return l === v ? l !== 0 || 1 / l === 1 / v : l !== l && v !== v;
850
+ function _(u, g) {
851
+ return u === g ? u !== 0 || 1 / u === 1 / g : u !== u && g !== g;
845
852
  }
846
- function w(l, v) {
847
- this.message = l, this.data = v && typeof v == "object" ? v : {}, this.stack = "";
853
+ function C(u, g) {
854
+ this.message = u, this.data = g && typeof g == "object" ? g : {}, this.stack = "";
848
855
  }
849
- w.prototype = Error.prototype;
850
- function L(l) {
856
+ C.prototype = Error.prototype;
857
+ function L(u) {
851
858
  if (process.env.NODE_ENV !== "production")
852
- var v = {}, T = 0;
853
- function x(P, E, C, I, R, D, q) {
854
- if (I = I || h, D = D || C, q !== t) {
855
- if (m) {
856
- var p = new Error(
859
+ var g = {}, T = 0;
860
+ function x(P, S, O, R, I, D, q) {
861
+ if (R = R || h, D = D || O, q !== t) {
862
+ if (f) {
863
+ var d = new Error(
857
864
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
858
865
  );
859
- throw p.name = "Invariant Violation", p;
866
+ throw d.name = "Invariant Violation", d;
860
867
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
861
- var Q = I + ":" + C;
862
- !v[Q] && // Avoid spamming the console because they are often not actionable except for lib authors
868
+ var re = R + ":" + O;
869
+ !g[re] && // Avoid spamming the console because they are often not actionable except for lib authors
863
870
  T < 3 && (o(
864
- "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + I + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
865
- ), v[Q] = !0, T++);
871
+ "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + R + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
872
+ ), g[re] = !0, T++);
866
873
  }
867
874
  }
868
- return E[C] == null ? P ? E[C] === null ? new w("The " + R + " `" + D + "` is marked as required " + ("in `" + I + "`, but its value is `null`.")) : new w("The " + R + " `" + D + "` is marked as required in " + ("`" + I + "`, but its value is `undefined`.")) : null : l(E, C, I, R, D);
875
+ return S[O] == null ? P ? S[O] === null ? new C("The " + I + " `" + D + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new C("The " + I + " `" + D + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : u(S, O, R, I, D);
869
876
  }
870
- var _ = x.bind(null, !1);
871
- return _.isRequired = x.bind(null, !0), _;
872
- }
873
- function k(l) {
874
- function v(T, x, _, P, E, C) {
875
- var I = T[x], R = te(I);
876
- if (R !== l) {
877
- var D = oe(I);
878
- return new w(
879
- "Invalid " + P + " `" + E + "` of type " + ("`" + D + "` supplied to `" + _ + "`, expected ") + ("`" + l + "`."),
880
- { expectedType: l }
877
+ var w = x.bind(null, !1);
878
+ return w.isRequired = x.bind(null, !0), w;
879
+ }
880
+ function N(u) {
881
+ function g(T, x, w, P, S, O) {
882
+ var R = T[x], I = ne(R);
883
+ if (I !== u) {
884
+ var D = ae(R);
885
+ return new C(
886
+ "Invalid " + P + " `" + S + "` of type " + ("`" + D + "` supplied to `" + w + "`, expected ") + ("`" + u + "`."),
887
+ { expectedType: u }
881
888
  );
882
889
  }
883
890
  return null;
884
891
  }
885
- return L(v);
892
+ return L(g);
886
893
  }
887
- function K() {
894
+ function U() {
888
895
  return L(s);
889
896
  }
890
- function A(l) {
891
- function v(T, x, _, P, E) {
892
- if (typeof l != "function")
893
- return new w("Property `" + E + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
894
- var C = T[x];
895
- if (!Array.isArray(C)) {
896
- var I = te(C);
897
- return new w("Invalid " + P + " `" + E + "` of type " + ("`" + I + "` supplied to `" + _ + "`, expected an array."));
897
+ function A(u) {
898
+ function g(T, x, w, P, S) {
899
+ if (typeof u != "function")
900
+ return new C("Property `" + S + "` of component `" + w + "` has invalid PropType notation inside arrayOf.");
901
+ var O = T[x];
902
+ if (!Array.isArray(O)) {
903
+ var R = ne(O);
904
+ return new C("Invalid " + P + " `" + S + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected an array."));
898
905
  }
899
- for (var R = 0; R < C.length; R++) {
900
- var D = l(C, R, _, P, E + "[" + R + "]", t);
906
+ for (var I = 0; I < O.length; I++) {
907
+ var D = u(O, I, w, P, S + "[" + I + "]", t);
901
908
  if (D instanceof Error)
902
909
  return D;
903
910
  }
904
911
  return null;
905
912
  }
906
- return L(v);
907
- }
908
- function N() {
909
- function l(v, T, x, _, P) {
910
- var E = v[T];
911
- if (!i(E)) {
912
- var C = te(E);
913
- return new w("Invalid " + _ + " `" + P + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected a single ReactElement."));
913
+ return L(g);
914
+ }
915
+ function k() {
916
+ function u(g, T, x, w, P) {
917
+ var S = g[T];
918
+ if (!i(S)) {
919
+ var O = ne(S);
920
+ return new C("Invalid " + w + " `" + P + "` of type " + ("`" + O + "` supplied to `" + x + "`, expected a single ReactElement."));
914
921
  }
915
922
  return null;
916
923
  }
917
- return L(l);
918
- }
919
- function f() {
920
- function l(v, T, x, _, P) {
921
- var E = v[T];
922
- if (!e.isValidElementType(E)) {
923
- var C = te(E);
924
- return new w("Invalid " + _ + " `" + P + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected a single ReactElement type."));
924
+ return L(u);
925
+ }
926
+ function p() {
927
+ function u(g, T, x, w, P) {
928
+ var S = g[T];
929
+ if (!e.isValidElementType(S)) {
930
+ var O = ne(S);
931
+ return new C("Invalid " + w + " `" + P + "` of type " + ("`" + O + "` supplied to `" + x + "`, expected a single ReactElement type."));
925
932
  }
926
933
  return null;
927
934
  }
928
- return L(l);
935
+ return L(u);
929
936
  }
930
- function Z(l) {
931
- function v(T, x, _, P, E) {
932
- if (!(T[x] instanceof l)) {
933
- var C = l.name || h, I = U(T[x]);
934
- return new w("Invalid " + P + " `" + E + "` of type " + ("`" + I + "` supplied to `" + _ + "`, expected ") + ("instance of `" + C + "`."));
937
+ function X(u) {
938
+ function g(T, x, w, P, S) {
939
+ if (!(T[x] instanceof u)) {
940
+ var O = u.name || h, R = G(T[x]);
941
+ return new C("Invalid " + P + " `" + S + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected ") + ("instance of `" + O + "`."));
935
942
  }
936
943
  return null;
937
944
  }
938
- return L(v);
945
+ return L(g);
939
946
  }
940
- function $(l) {
941
- if (!Array.isArray(l))
947
+ function $(u) {
948
+ if (!Array.isArray(u))
942
949
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
943
950
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
944
951
  ) : o("Invalid argument supplied to oneOf, expected an array.")), s;
945
- function v(T, x, _, P, E) {
946
- for (var C = T[x], I = 0; I < l.length; I++)
947
- if (O(C, l[I]))
952
+ function g(T, x, w, P, S) {
953
+ for (var O = T[x], R = 0; R < u.length; R++)
954
+ if (_(O, u[R]))
948
955
  return null;
949
- var R = JSON.stringify(l, function(q, p) {
950
- var Q = oe(p);
951
- return Q === "symbol" ? String(p) : p;
956
+ var I = JSON.stringify(u, function(q, d) {
957
+ var re = ae(d);
958
+ return re === "symbol" ? String(d) : d;
952
959
  });
953
- return new w("Invalid " + P + " `" + E + "` of value `" + String(C) + "` " + ("supplied to `" + _ + "`, expected one of " + R + "."));
960
+ return new C("Invalid " + P + " `" + S + "` of value `" + String(O) + "` " + ("supplied to `" + w + "`, expected one of " + I + "."));
954
961
  }
955
- return L(v);
956
- }
957
- function V(l) {
958
- function v(T, x, _, P, E) {
959
- if (typeof l != "function")
960
- return new w("Property `" + E + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
961
- var C = T[x], I = te(C);
962
- if (I !== "object")
963
- return new w("Invalid " + P + " `" + E + "` of type " + ("`" + I + "` supplied to `" + _ + "`, expected an object."));
964
- for (var R in C)
965
- if (n(C, R)) {
966
- var D = l(C, R, _, P, E + "." + R, t);
962
+ return L(g);
963
+ }
964
+ function J(u) {
965
+ function g(T, x, w, P, S) {
966
+ if (typeof u != "function")
967
+ return new C("Property `" + S + "` of component `" + w + "` has invalid PropType notation inside objectOf.");
968
+ var O = T[x], R = ne(O);
969
+ if (R !== "object")
970
+ return new C("Invalid " + P + " `" + S + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected an object."));
971
+ for (var I in O)
972
+ if (n(O, I)) {
973
+ var D = u(O, I, w, P, S + "." + I, t);
967
974
  if (D instanceof Error)
968
975
  return D;
969
976
  }
970
977
  return null;
971
978
  }
972
- return L(v);
979
+ return L(g);
973
980
  }
974
- function X(l) {
975
- if (!Array.isArray(l))
981
+ function ee(u) {
982
+ if (!Array.isArray(u))
976
983
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
977
- for (var v = 0; v < l.length; v++) {
978
- var T = l[v];
984
+ for (var g = 0; g < u.length; g++) {
985
+ var T = u[g];
979
986
  if (typeof T != "function")
980
987
  return o(
981
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ue(T) + " at index " + v + "."
988
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + fe(T) + " at index " + g + "."
982
989
  ), s;
983
990
  }
984
- function x(_, P, E, C, I) {
985
- for (var R = [], D = 0; D < l.length; D++) {
986
- var q = l[D], p = q(_, P, E, C, I, t);
987
- if (p == null)
991
+ function x(w, P, S, O, R) {
992
+ for (var I = [], D = 0; D < u.length; D++) {
993
+ var q = u[D], d = q(w, P, S, O, R, t);
994
+ if (d == null)
988
995
  return null;
989
- p.data && n(p.data, "expectedType") && R.push(p.data.expectedType);
996
+ d.data && n(d.data, "expectedType") && I.push(d.data.expectedType);
990
997
  }
991
- var Q = R.length > 0 ? ", expected one of type [" + R.join(", ") + "]" : "";
992
- return new w("Invalid " + C + " `" + I + "` supplied to " + ("`" + E + "`" + Q + "."));
998
+ var re = I.length > 0 ? ", expected one of type [" + I.join(", ") + "]" : "";
999
+ return new C("Invalid " + O + " `" + R + "` supplied to " + ("`" + S + "`" + re + "."));
993
1000
  }
994
1001
  return L(x);
995
1002
  }
996
1003
  function ce() {
997
- function l(v, T, x, _, P) {
998
- return W(v[T]) ? null : new w("Invalid " + _ + " `" + P + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
1004
+ function u(g, T, x, w, P) {
1005
+ return W(g[T]) ? null : new C("Invalid " + w + " `" + P + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
999
1006
  }
1000
- return L(l);
1007
+ return L(u);
1001
1008
  }
1002
- function fe(l, v, T, x, _) {
1003
- return new w(
1004
- (l || "React class") + ": " + v + " type `" + T + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
1009
+ function de(u, g, T, x, w) {
1010
+ return new C(
1011
+ (u || "React class") + ": " + g + " type `" + T + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + w + "`."
1005
1012
  );
1006
1013
  }
1007
- function pe(l) {
1008
- function v(T, x, _, P, E) {
1009
- var C = T[x], I = te(C);
1010
- if (I !== "object")
1011
- return new w("Invalid " + P + " `" + E + "` of type `" + I + "` " + ("supplied to `" + _ + "`, expected `object`."));
1012
- for (var R in l) {
1013
- var D = l[R];
1014
+ function me(u) {
1015
+ function g(T, x, w, P, S) {
1016
+ var O = T[x], R = ne(O);
1017
+ if (R !== "object")
1018
+ return new C("Invalid " + P + " `" + S + "` of type `" + R + "` " + ("supplied to `" + w + "`, expected `object`."));
1019
+ for (var I in u) {
1020
+ var D = u[I];
1014
1021
  if (typeof D != "function")
1015
- return fe(_, P, E, R, oe(D));
1016
- var q = D(C, R, _, P, E + "." + R, t);
1022
+ return de(w, P, S, I, ae(D));
1023
+ var q = D(O, I, w, P, S + "." + I, t);
1017
1024
  if (q)
1018
1025
  return q;
1019
1026
  }
1020
1027
  return null;
1021
1028
  }
1022
- return L(v);
1023
- }
1024
- function le(l) {
1025
- function v(T, x, _, P, E) {
1026
- var C = T[x], I = te(C);
1027
- if (I !== "object")
1028
- return new w("Invalid " + P + " `" + E + "` of type `" + I + "` " + ("supplied to `" + _ + "`, expected `object`."));
1029
- var R = r({}, T[x], l);
1030
- for (var D in R) {
1031
- var q = l[D];
1032
- if (n(l, D) && typeof q != "function")
1033
- return fe(_, P, E, D, oe(q));
1029
+ return L(g);
1030
+ }
1031
+ function ue(u) {
1032
+ function g(T, x, w, P, S) {
1033
+ var O = T[x], R = ne(O);
1034
+ if (R !== "object")
1035
+ return new C("Invalid " + P + " `" + S + "` of type `" + R + "` " + ("supplied to `" + w + "`, expected `object`."));
1036
+ var I = r({}, T[x], u);
1037
+ for (var D in I) {
1038
+ var q = u[D];
1039
+ if (n(u, D) && typeof q != "function")
1040
+ return de(w, P, S, D, ae(q));
1034
1041
  if (!q)
1035
- return new w(
1036
- "Invalid " + P + " `" + E + "` key `" + D + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(T[x], null, " ") + `
1037
- Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1042
+ return new C(
1043
+ "Invalid " + P + " `" + S + "` key `" + D + "` supplied to `" + w + "`.\nBad object: " + JSON.stringify(T[x], null, " ") + `
1044
+ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
1038
1045
  );
1039
- var p = q(C, D, _, P, E + "." + D, t);
1040
- if (p)
1041
- return p;
1046
+ var d = q(O, D, w, P, S + "." + D, t);
1047
+ if (d)
1048
+ return d;
1042
1049
  }
1043
1050
  return null;
1044
1051
  }
1045
- return L(v);
1052
+ return L(g);
1046
1053
  }
1047
- function W(l) {
1048
- switch (typeof l) {
1054
+ function W(u) {
1055
+ switch (typeof u) {
1049
1056
  case "number":
1050
1057
  case "string":
1051
1058
  case "undefined":
1052
1059
  return !0;
1053
1060
  case "boolean":
1054
- return !l;
1061
+ return !u;
1055
1062
  case "object":
1056
- if (Array.isArray(l))
1057
- return l.every(W);
1058
- if (l === null || i(l))
1063
+ if (Array.isArray(u))
1064
+ return u.every(W);
1065
+ if (u === null || i(u))
1059
1066
  return !0;
1060
- var v = g(l);
1061
- if (v) {
1062
- var T = v.call(l), x;
1063
- if (v !== l.entries) {
1067
+ var g = b(u);
1068
+ if (g) {
1069
+ var T = g.call(u), x;
1070
+ if (g !== u.entries) {
1064
1071
  for (; !(x = T.next()).done; )
1065
1072
  if (!W(x.value))
1066
1073
  return !1;
1067
1074
  } else
1068
1075
  for (; !(x = T.next()).done; ) {
1069
- var _ = x.value;
1070
- if (_ && !W(_[1]))
1076
+ var w = x.value;
1077
+ if (w && !W(w[1]))
1071
1078
  return !1;
1072
1079
  }
1073
1080
  } else
@@ -1077,58 +1084,58 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1077
1084
  return !1;
1078
1085
  }
1079
1086
  }
1080
- function J(l, v) {
1081
- return l === "symbol" ? !0 : v ? v["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && v instanceof Symbol : !1;
1087
+ function Z(u, g) {
1088
+ return u === "symbol" ? !0 : g ? g["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && g instanceof Symbol : !1;
1082
1089
  }
1083
- function te(l) {
1084
- var v = typeof l;
1085
- return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : J(v, l) ? "symbol" : v;
1090
+ function ne(u) {
1091
+ var g = typeof u;
1092
+ return Array.isArray(u) ? "array" : u instanceof RegExp ? "object" : Z(g, u) ? "symbol" : g;
1086
1093
  }
1087
- function oe(l) {
1088
- if (typeof l > "u" || l === null)
1089
- return "" + l;
1090
- var v = te(l);
1091
- if (v === "object") {
1092
- if (l instanceof Date)
1094
+ function ae(u) {
1095
+ if (typeof u > "u" || u === null)
1096
+ return "" + u;
1097
+ var g = ne(u);
1098
+ if (g === "object") {
1099
+ if (u instanceof Date)
1093
1100
  return "date";
1094
- if (l instanceof RegExp)
1101
+ if (u instanceof RegExp)
1095
1102
  return "regexp";
1096
1103
  }
1097
- return v;
1104
+ return g;
1098
1105
  }
1099
- function ue(l) {
1100
- var v = oe(l);
1101
- switch (v) {
1106
+ function fe(u) {
1107
+ var g = ae(u);
1108
+ switch (g) {
1102
1109
  case "array":
1103
1110
  case "object":
1104
- return "an " + v;
1111
+ return "an " + g;
1105
1112
  case "boolean":
1106
1113
  case "date":
1107
1114
  case "regexp":
1108
- return "a " + v;
1115
+ return "a " + g;
1109
1116
  default:
1110
- return v;
1117
+ return g;
1111
1118
  }
1112
1119
  }
1113
- function U(l) {
1114
- return !l.constructor || !l.constructor.name ? h : l.constructor.name;
1120
+ function G(u) {
1121
+ return !u.constructor || !u.constructor.name ? h : u.constructor.name;
1115
1122
  }
1116
- return S.checkPropTypes = a, S.resetWarningCache = a.resetWarningCache, S.PropTypes = S, S;
1117
- }, Xe;
1123
+ return y.checkPropTypes = a, y.resetWarningCache = a.resetWarningCache, y.PropTypes = y, y;
1124
+ }, Qe;
1118
1125
  }
1119
- var Qe, xr;
1120
- function bn() {
1121
- if (xr)
1122
- return Qe;
1123
- xr = 1;
1126
+ var er, Tr;
1127
+ function En() {
1128
+ if (Tr)
1129
+ return er;
1130
+ Tr = 1;
1124
1131
  var e = fr();
1125
1132
  function r() {
1126
1133
  }
1127
1134
  function t() {
1128
1135
  }
1129
- return t.resetWarningCache = r, Qe = function() {
1130
- function n(s, i, m, c, y, g) {
1131
- if (g !== e) {
1136
+ return t.resetWarningCache = r, er = function() {
1137
+ function n(s, i, f, c, v, b) {
1138
+ if (b !== e) {
1132
1139
  var h = new Error(
1133
1140
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
1134
1141
  );
@@ -1163,43 +1170,43 @@ function bn() {
1163
1170
  resetWarningCache: r
1164
1171
  };
1165
1172
  return o.PropTypes = o, o;
1166
- }, Qe;
1173
+ }, er;
1167
1174
  }
1168
1175
  if (process.env.NODE_ENV !== "production") {
1169
- var hn = Ur(), _n = !0;
1170
- nr.exports = gn()(hn.isElement, _n);
1176
+ var wn = Hr(), Sn = !0;
1177
+ nr.exports = _n()(wn.isElement, Sn);
1171
1178
  } else
1172
- nr.exports = bn()();
1173
- var En = nr.exports;
1174
- const M = /* @__PURE__ */ Lr(En);
1175
- function we(e, r, t, n) {
1179
+ nr.exports = En()();
1180
+ var Cn = nr.exports;
1181
+ const M = /* @__PURE__ */ Lr(Cn);
1182
+ function Se(e, r, t, n) {
1176
1183
  function a(o) {
1177
1184
  return o instanceof t ? o : new t(function(s) {
1178
1185
  s(o);
1179
1186
  });
1180
1187
  }
1181
1188
  return new (t || (t = Promise))(function(o, s) {
1182
- function i(y) {
1189
+ function i(v) {
1183
1190
  try {
1184
- c(n.next(y));
1185
- } catch (g) {
1186
- s(g);
1191
+ c(n.next(v));
1192
+ } catch (b) {
1193
+ s(b);
1187
1194
  }
1188
1195
  }
1189
- function m(y) {
1196
+ function f(v) {
1190
1197
  try {
1191
- c(n.throw(y));
1192
- } catch (g) {
1193
- s(g);
1198
+ c(n.throw(v));
1199
+ } catch (b) {
1200
+ s(b);
1194
1201
  }
1195
1202
  }
1196
- function c(y) {
1197
- y.done ? o(y.value) : a(y.value).then(i, m);
1203
+ function c(v) {
1204
+ v.done ? o(v.value) : a(v.value).then(i, f);
1198
1205
  }
1199
1206
  c((n = n.apply(e, r || [])).next());
1200
1207
  });
1201
1208
  }
1202
- function Se(e, r) {
1209
+ function Ce(e, r) {
1203
1210
  var t = { label: 0, sent: function() {
1204
1211
  if (o[0] & 1)
1205
1212
  throw o[1];
@@ -1209,11 +1216,11 @@ function Se(e, r) {
1209
1216
  return this;
1210
1217
  }), s;
1211
1218
  function i(c) {
1212
- return function(y) {
1213
- return m([c, y]);
1219
+ return function(v) {
1220
+ return f([c, v]);
1214
1221
  };
1215
1222
  }
1216
- function m(c) {
1223
+ function f(c) {
1217
1224
  if (n)
1218
1225
  throw new TypeError("Generator is already executing.");
1219
1226
  for (; s && (s = 0, c[0] && (t = 0)), t; )
@@ -1254,8 +1261,8 @@ function Se(e, r) {
1254
1261
  continue;
1255
1262
  }
1256
1263
  c = r.call(e, t);
1257
- } catch (y) {
1258
- c = [6, y], a = 0;
1264
+ } catch (v) {
1265
+ c = [6, v], a = 0;
1259
1266
  } finally {
1260
1267
  n = o = 0;
1261
1268
  }
@@ -1264,7 +1271,7 @@ function Se(e, r) {
1264
1271
  return { value: c[0] ? c[1] : void 0, done: !0 };
1265
1272
  }
1266
1273
  }
1267
- function Cr(e, r) {
1274
+ function xr(e, r) {
1268
1275
  var t = typeof Symbol == "function" && e[Symbol.iterator];
1269
1276
  if (!t)
1270
1277
  return e;
@@ -1290,7 +1297,7 @@ function Or(e, r, t) {
1290
1297
  (o || !(n in r)) && (o || (o = Array.prototype.slice.call(r, 0, n)), o[n] = r[n]);
1291
1298
  return e.concat(o || Array.prototype.slice.call(r));
1292
1299
  }
1293
- var wn = /* @__PURE__ */ new Map([
1300
+ var Tn = /* @__PURE__ */ new Map([
1294
1301
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
1295
1302
  ["aac", "audio/aac"],
1296
1303
  ["abw", "application/x-abiword"],
@@ -1374,8 +1381,8 @@ var wn = /* @__PURE__ */ new Map([
1374
1381
  ["mov", "video/quicktime"],
1375
1382
  ["msg", "application/vnd.ms-outlook"]
1376
1383
  ]);
1377
- function Ae(e, r) {
1378
- var t = Sn(e);
1384
+ function Pe(e, r) {
1385
+ var t = xn(e);
1379
1386
  if (typeof t.path != "string") {
1380
1387
  var n = e.webkitRelativePath;
1381
1388
  Object.defineProperty(t, "path", {
@@ -1387,10 +1394,10 @@ function Ae(e, r) {
1387
1394
  }
1388
1395
  return t;
1389
1396
  }
1390
- function Sn(e) {
1397
+ function xn(e) {
1391
1398
  var r = e.name, t = r && r.lastIndexOf(".") !== -1;
1392
1399
  if (t && !e.type) {
1393
- var n = r.split(".").pop().toLowerCase(), a = wn.get(n);
1400
+ var n = r.split(".").pop().toLowerCase(), a = Tn.get(n);
1394
1401
  a && Object.defineProperty(e, "type", {
1395
1402
  value: a,
1396
1403
  writable: !1,
@@ -1400,39 +1407,39 @@ function Sn(e) {
1400
1407
  }
1401
1408
  return e;
1402
1409
  }
1403
- var Tn = [
1410
+ var On = [
1404
1411
  // Thumbnail cache files for macOS and Windows
1405
1412
  ".DS_Store",
1406
1413
  "Thumbs.db"
1407
1414
  // Windows
1408
1415
  ];
1409
- function xn(e) {
1410
- return we(this, void 0, void 0, function() {
1411
- return Se(this, function(r) {
1412
- return Ne(e) && Cn(e.dataTransfer) ? [2, Pn(e.dataTransfer, e.type)] : On(e) ? [2, Dn(e)] : Array.isArray(e) && e.every(function(t) {
1416
+ function Dn(e) {
1417
+ return Se(this, void 0, void 0, function() {
1418
+ return Ce(this, function(r) {
1419
+ return $e(e) && An(e.dataTransfer) ? [2, Fn(e.dataTransfer, e.type)] : Pn(e) ? [2, Rn(e)] : Array.isArray(e) && e.every(function(t) {
1413
1420
  return "getFile" in t && typeof t.getFile == "function";
1414
- }) ? [2, An(e)] : [2, []];
1421
+ }) ? [2, In(e)] : [2, []];
1415
1422
  });
1416
1423
  });
1417
1424
  }
1418
- function Cn(e) {
1419
- return Ne(e);
1425
+ function An(e) {
1426
+ return $e(e);
1420
1427
  }
1421
- function On(e) {
1422
- return Ne(e) && Ne(e.target);
1428
+ function Pn(e) {
1429
+ return $e(e) && $e(e.target);
1423
1430
  }
1424
- function Ne(e) {
1431
+ function $e(e) {
1425
1432
  return typeof e == "object" && e !== null;
1426
1433
  }
1427
- function Dn(e) {
1434
+ function Rn(e) {
1428
1435
  return or(e.target.files).map(function(r) {
1429
- return Ae(r);
1436
+ return Pe(r);
1430
1437
  });
1431
1438
  }
1432
- function An(e) {
1433
- return we(this, void 0, void 0, function() {
1439
+ function In(e) {
1440
+ return Se(this, void 0, void 0, function() {
1434
1441
  var r;
1435
- return Se(this, function(t) {
1442
+ return Ce(this, function(t) {
1436
1443
  switch (t.label) {
1437
1444
  case 0:
1438
1445
  return [4, Promise.all(e.map(function(n) {
@@ -1440,26 +1447,26 @@ function An(e) {
1440
1447
  }))];
1441
1448
  case 1:
1442
1449
  return r = t.sent(), [2, r.map(function(n) {
1443
- return Ae(n);
1450
+ return Pe(n);
1444
1451
  })];
1445
1452
  }
1446
1453
  });
1447
1454
  });
1448
1455
  }
1449
- function Pn(e, r) {
1450
- return we(this, void 0, void 0, function() {
1456
+ function Fn(e, r) {
1457
+ return Se(this, void 0, void 0, function() {
1451
1458
  var t, n;
1452
- return Se(this, function(a) {
1459
+ return Ce(this, function(a) {
1453
1460
  switch (a.label) {
1454
1461
  case 0:
1455
1462
  return e.items ? (t = or(e.items).filter(function(o) {
1456
1463
  return o.kind === "file";
1457
- }), r !== "drop" ? [2, t] : [4, Promise.all(t.map(In))]) : [3, 2];
1464
+ }), r !== "drop" ? [2, t] : [4, Promise.all(t.map(jn))]) : [3, 2];
1458
1465
  case 1:
1459
1466
  return n = a.sent(), [2, Dr(Vr(n))];
1460
1467
  case 2:
1461
1468
  return [2, Dr(or(e.files).map(function(o) {
1462
- return Ae(o);
1469
+ return Pe(o);
1463
1470
  }))];
1464
1471
  }
1465
1472
  });
@@ -1467,7 +1474,7 @@ function Pn(e, r) {
1467
1474
  }
1468
1475
  function Dr(e) {
1469
1476
  return e.filter(function(r) {
1470
- return Tn.indexOf(r.name) === -1;
1477
+ return On.indexOf(r.name) === -1;
1471
1478
  });
1472
1479
  }
1473
1480
  function or(e) {
@@ -1479,7 +1486,7 @@ function or(e) {
1479
1486
  }
1480
1487
  return r;
1481
1488
  }
1482
- function In(e) {
1489
+ function jn(e) {
1483
1490
  if (typeof e.webkitGetAsEntry != "function")
1484
1491
  return Ar(e);
1485
1492
  var r = e.webkitGetAsEntry();
@@ -1487,20 +1494,20 @@ function In(e) {
1487
1494
  }
1488
1495
  function Vr(e) {
1489
1496
  return e.reduce(function(r, t) {
1490
- return Or(Or([], Cr(r), !1), Cr(Array.isArray(t) ? Vr(t) : [t]), !1);
1497
+ return Or(Or([], xr(r), !1), xr(Array.isArray(t) ? Vr(t) : [t]), !1);
1491
1498
  }, []);
1492
1499
  }
1493
1500
  function Ar(e) {
1494
1501
  var r = e.getAsFile();
1495
1502
  if (!r)
1496
1503
  return Promise.reject("".concat(e, " is not a File"));
1497
- var t = Ae(r);
1504
+ var t = Pe(r);
1498
1505
  return Promise.resolve(t);
1499
1506
  }
1500
- function Rn(e) {
1501
- return we(this, void 0, void 0, function() {
1502
- return Se(this, function(r) {
1503
- return [2, e.isDirectory ? Jr(e) : Fn(e)];
1507
+ function Nn(e) {
1508
+ return Se(this, void 0, void 0, function() {
1509
+ return Ce(this, function(r) {
1510
+ return [2, e.isDirectory ? Jr(e) : kn(e)];
1504
1511
  });
1505
1512
  });
1506
1513
  }
@@ -1511,24 +1518,24 @@ function Jr(e) {
1511
1518
  function o() {
1512
1519
  var s = this;
1513
1520
  r.readEntries(function(i) {
1514
- return we(s, void 0, void 0, function() {
1515
- var m, c, y;
1516
- return Se(this, function(g) {
1517
- switch (g.label) {
1521
+ return Se(s, void 0, void 0, function() {
1522
+ var f, c, v;
1523
+ return Ce(this, function(b) {
1524
+ switch (b.label) {
1518
1525
  case 0:
1519
1526
  if (i.length)
1520
1527
  return [3, 5];
1521
- g.label = 1;
1528
+ b.label = 1;
1522
1529
  case 1:
1523
- return g.trys.push([1, 3, , 4]), [4, Promise.all(a)];
1530
+ return b.trys.push([1, 3, , 4]), [4, Promise.all(a)];
1524
1531
  case 2:
1525
- return m = g.sent(), t(m), [3, 4];
1532
+ return f = b.sent(), t(f), [3, 4];
1526
1533
  case 3:
1527
- return c = g.sent(), n(c), [3, 4];
1534
+ return c = b.sent(), n(c), [3, 4];
1528
1535
  case 4:
1529
1536
  return [3, 6];
1530
1537
  case 5:
1531
- y = Promise.all(i.map(Rn)), a.push(y), o(), g.label = 6;
1538
+ v = Promise.all(i.map(Nn)), a.push(v), o(), b.label = 6;
1532
1539
  case 6:
1533
1540
  return [
1534
1541
  2
@@ -1544,12 +1551,12 @@ function Jr(e) {
1544
1551
  o();
1545
1552
  });
1546
1553
  }
1547
- function Fn(e) {
1548
- return we(this, void 0, void 0, function() {
1549
- return Se(this, function(r) {
1554
+ function kn(e) {
1555
+ return Se(this, void 0, void 0, function() {
1556
+ return Ce(this, function(r) {
1550
1557
  return [2, new Promise(function(t, n) {
1551
1558
  e.file(function(a) {
1552
- var o = Ae(a, e.fullPath);
1559
+ var o = Pe(a, e.fullPath);
1553
1560
  t(o);
1554
1561
  }, function(a) {
1555
1562
  n(a);
@@ -1558,7 +1565,7 @@ function Fn(e) {
1558
1565
  });
1559
1566
  });
1560
1567
  }
1561
- var jn = function(e, r) {
1568
+ var $n = function(e, r) {
1562
1569
  if (e && r) {
1563
1570
  var t = Array.isArray(r) ? r : r.split(","), n = e.name || "", a = (e.type || "").toLowerCase(), o = a.replace(/\/.*$/, "");
1564
1571
  return t.some(function(s) {
@@ -1569,21 +1576,21 @@ var jn = function(e, r) {
1569
1576
  return !0;
1570
1577
  };
1571
1578
  function Pr(e) {
1572
- return $n(e) || Nn(e) || Xr(e) || kn();
1579
+ return Bn(e) || Ln(e) || Xr(e) || Mn();
1573
1580
  }
1574
- function kn() {
1581
+ function Mn() {
1575
1582
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1576
1583
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1577
1584
  }
1578
- function Nn(e) {
1585
+ function Ln(e) {
1579
1586
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
1580
1587
  return Array.from(e);
1581
1588
  }
1582
- function $n(e) {
1589
+ function Bn(e) {
1583
1590
  if (Array.isArray(e))
1584
1591
  return ar(e);
1585
1592
  }
1586
- function Ir(e, r) {
1593
+ function Rr(e, r) {
1587
1594
  var t = Object.keys(e);
1588
1595
  if (Object.getOwnPropertySymbols) {
1589
1596
  var n = Object.getOwnPropertySymbols(e);
@@ -1593,12 +1600,12 @@ function Ir(e, r) {
1593
1600
  }
1594
1601
  return t;
1595
1602
  }
1596
- function Rr(e) {
1603
+ function Ir(e) {
1597
1604
  for (var r = 1; r < arguments.length; r++) {
1598
1605
  var t = arguments[r] != null ? arguments[r] : {};
1599
- r % 2 ? Ir(Object(t), !0).forEach(function(n) {
1606
+ r % 2 ? Rr(Object(t), !0).forEach(function(n) {
1600
1607
  Zr(e, n, t[n]);
1601
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Ir(Object(t)).forEach(function(n) {
1608
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Rr(Object(t)).forEach(function(n) {
1602
1609
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1603
1610
  });
1604
1611
  }
@@ -1607,10 +1614,10 @@ function Rr(e) {
1607
1614
  function Zr(e, r, t) {
1608
1615
  return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
1609
1616
  }
1610
- function Oe(e, r) {
1611
- return Bn(e) || Ln(e, r) || Xr(e, r) || Mn();
1617
+ function De(e, r) {
1618
+ return Yn(e) || Wn(e, r) || Xr(e, r) || zn();
1612
1619
  }
1613
- function Mn() {
1620
+ function zn() {
1614
1621
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1615
1622
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1616
1623
  }
@@ -1631,15 +1638,15 @@ function ar(e, r) {
1631
1638
  n[t] = e[t];
1632
1639
  return n;
1633
1640
  }
1634
- function Ln(e, r) {
1641
+ function Wn(e, r) {
1635
1642
  var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1636
1643
  if (t != null) {
1637
1644
  var n = [], a = !0, o = !1, s, i;
1638
1645
  try {
1639
1646
  for (t = t.call(e); !(a = (s = t.next()).done) && (n.push(s.value), !(r && n.length === r)); a = !0)
1640
1647
  ;
1641
- } catch (m) {
1642
- o = !0, i = m;
1648
+ } catch (f) {
1649
+ o = !0, i = f;
1643
1650
  } finally {
1644
1651
  try {
1645
1652
  !a && t.return != null && t.return();
@@ -1651,103 +1658,103 @@ function Ln(e, r) {
1651
1658
  return n;
1652
1659
  }
1653
1660
  }
1654
- function Bn(e) {
1661
+ function Yn(e) {
1655
1662
  if (Array.isArray(e))
1656
1663
  return e;
1657
1664
  }
1658
- var zn = "file-invalid-type", Wn = "file-too-large", Yn = "file-too-small", qn = "too-many-files", Kn = function(r) {
1665
+ var qn = "file-invalid-type", Un = "file-too-large", Kn = "file-too-small", Hn = "too-many-files", Gn = function(r) {
1659
1666
  r = Array.isArray(r) && r.length === 1 ? r[0] : r;
1660
1667
  var t = Array.isArray(r) ? "one of ".concat(r.join(", ")) : r;
1661
1668
  return {
1662
- code: zn,
1669
+ code: qn,
1663
1670
  message: "File type must be ".concat(t)
1664
1671
  };
1665
1672
  }, Fr = function(r) {
1666
1673
  return {
1667
- code: Wn,
1674
+ code: Un,
1668
1675
  message: "File is larger than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
1669
1676
  };
1670
1677
  }, jr = function(r) {
1671
1678
  return {
1672
- code: Yn,
1679
+ code: Kn,
1673
1680
  message: "File is smaller than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
1674
1681
  };
1675
- }, Hn = {
1676
- code: qn,
1682
+ }, Vn = {
1683
+ code: Hn,
1677
1684
  message: "Too many files"
1678
1685
  };
1679
1686
  function Qr(e, r) {
1680
- var t = e.type === "application/x-moz-file" || jn(e, r);
1681
- return [t, t ? null : Kn(r)];
1687
+ var t = e.type === "application/x-moz-file" || $n(e, r);
1688
+ return [t, t ? null : Gn(r)];
1682
1689
  }
1683
1690
  function et(e, r, t) {
1684
- if (me(e.size))
1685
- if (me(r) && me(t)) {
1691
+ if (ge(e.size))
1692
+ if (ge(r) && ge(t)) {
1686
1693
  if (e.size > t)
1687
1694
  return [!1, Fr(t)];
1688
1695
  if (e.size < r)
1689
1696
  return [!1, jr(r)];
1690
1697
  } else {
1691
- if (me(r) && e.size < r)
1698
+ if (ge(r) && e.size < r)
1692
1699
  return [!1, jr(r)];
1693
- if (me(t) && e.size > t)
1700
+ if (ge(t) && e.size > t)
1694
1701
  return [!1, Fr(t)];
1695
1702
  }
1696
1703
  return [!0, null];
1697
1704
  }
1698
- function me(e) {
1705
+ function ge(e) {
1699
1706
  return e != null;
1700
1707
  }
1701
- function Un(e) {
1708
+ function Jn(e) {
1702
1709
  var r = e.files, t = e.accept, n = e.minSize, a = e.maxSize, o = e.multiple, s = e.maxFiles, i = e.validator;
1703
- return !o && r.length > 1 || o && s >= 1 && r.length > s ? !1 : r.every(function(m) {
1704
- var c = Qr(m, t), y = Oe(c, 1), g = y[0], h = et(m, n, a), S = Oe(h, 1), O = S[0], w = i ? i(m) : null;
1705
- return g && O && !w;
1710
+ return !o && r.length > 1 || o && s >= 1 && r.length > s ? !1 : r.every(function(f) {
1711
+ var c = Qr(f, t), v = De(c, 1), b = v[0], h = et(f, n, a), y = De(h, 1), _ = y[0], C = i ? i(f) : null;
1712
+ return b && _ && !C;
1706
1713
  });
1707
1714
  }
1708
- function $e(e) {
1715
+ function Me(e) {
1709
1716
  return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
1710
1717
  }
1711
- function je(e) {
1718
+ function Ne(e) {
1712
1719
  return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(r) {
1713
1720
  return r === "Files" || r === "application/x-moz-file";
1714
1721
  }) : !!e.target && !!e.target.files;
1715
1722
  }
1716
- function kr(e) {
1723
+ function Nr(e) {
1717
1724
  e.preventDefault();
1718
1725
  }
1719
- function Gn(e) {
1726
+ function Zn(e) {
1720
1727
  return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
1721
1728
  }
1722
- function Vn(e) {
1729
+ function Xn(e) {
1723
1730
  return e.indexOf("Edge/") !== -1;
1724
1731
  }
1725
- function Jn() {
1732
+ function Qn() {
1726
1733
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
1727
- return Gn(e) || Vn(e);
1734
+ return Zn(e) || Xn(e);
1728
1735
  }
1729
- function ae() {
1736
+ function ie() {
1730
1737
  for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1731
1738
  r[t] = arguments[t];
1732
1739
  return function(n) {
1733
1740
  for (var a = arguments.length, o = new Array(a > 1 ? a - 1 : 0), s = 1; s < a; s++)
1734
1741
  o[s - 1] = arguments[s];
1735
1742
  return r.some(function(i) {
1736
- return !$e(n) && i && i.apply(void 0, [n].concat(o)), $e(n);
1743
+ return !Me(n) && i && i.apply(void 0, [n].concat(o)), Me(n);
1737
1744
  });
1738
1745
  };
1739
1746
  }
1740
- function Zn() {
1747
+ function eo() {
1741
1748
  return "showOpenFilePicker" in window;
1742
1749
  }
1743
- function Xn(e) {
1744
- if (me(e)) {
1750
+ function ro(e) {
1751
+ if (ge(e)) {
1745
1752
  var r = Object.entries(e).filter(function(t) {
1746
- var n = Oe(t, 2), a = n[0], o = n[1], s = !0;
1753
+ var n = De(t, 2), a = n[0], o = n[1], s = !0;
1747
1754
  return rt(a) || (console.warn('Skipped "'.concat(a, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), s = !1), (!Array.isArray(o) || !o.every(tt)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), s = !1), s;
1748
1755
  }).reduce(function(t, n) {
1749
- var a = Oe(n, 2), o = a[0], s = a[1];
1750
- return Rr(Rr({}, t), {}, Zr({}, o, s));
1756
+ var a = De(n, 2), o = a[0], s = a[1];
1757
+ return Ir(Ir({}, t), {}, Zr({}, o, s));
1751
1758
  }, {});
1752
1759
  return [{
1753
1760
  // description is required due to https://crbug.com/1264708
@@ -1757,19 +1764,19 @@ function Xn(e) {
1757
1764
  }
1758
1765
  return e;
1759
1766
  }
1760
- function Qn(e) {
1761
- if (me(e))
1767
+ function to(e) {
1768
+ if (ge(e))
1762
1769
  return Object.entries(e).reduce(function(r, t) {
1763
- var n = Oe(t, 2), a = n[0], o = n[1];
1770
+ var n = De(t, 2), a = n[0], o = n[1];
1764
1771
  return [].concat(Pr(r), [a], Pr(o));
1765
1772
  }, []).filter(function(r) {
1766
1773
  return rt(r) || tt(r);
1767
1774
  }).join(",");
1768
1775
  }
1769
- function eo(e) {
1776
+ function no(e) {
1770
1777
  return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
1771
1778
  }
1772
- function ro(e) {
1779
+ function oo(e) {
1773
1780
  return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
1774
1781
  }
1775
1782
  function rt(e) {
@@ -1778,26 +1785,26 @@ function rt(e) {
1778
1785
  function tt(e) {
1779
1786
  return /^.*\.[\w]+$/.test(e);
1780
1787
  }
1781
- var to = ["children"], no = ["open"], oo = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], ao = ["refKey", "onChange", "onClick"];
1782
- function io(e) {
1783
- return lo(e) || co(e) || nt(e) || so();
1788
+ var ao = ["children"], io = ["open"], so = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], co = ["refKey", "onChange", "onClick"];
1789
+ function lo(e) {
1790
+ return po(e) || fo(e) || nt(e) || uo();
1784
1791
  }
1785
- function so() {
1792
+ function uo() {
1786
1793
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1787
1794
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1788
1795
  }
1789
- function co(e) {
1796
+ function fo(e) {
1790
1797
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
1791
1798
  return Array.from(e);
1792
1799
  }
1793
- function lo(e) {
1800
+ function po(e) {
1794
1801
  if (Array.isArray(e))
1795
1802
  return ir(e);
1796
1803
  }
1797
- function er(e, r) {
1798
- return po(e) || fo(e, r) || nt(e, r) || uo();
1804
+ function rr(e, r) {
1805
+ return go(e) || vo(e, r) || nt(e, r) || mo();
1799
1806
  }
1800
- function uo() {
1807
+ function mo() {
1801
1808
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1802
1809
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1803
1810
  }
@@ -1818,15 +1825,15 @@ function ir(e, r) {
1818
1825
  n[t] = e[t];
1819
1826
  return n;
1820
1827
  }
1821
- function fo(e, r) {
1828
+ function vo(e, r) {
1822
1829
  var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1823
1830
  if (t != null) {
1824
1831
  var n = [], a = !0, o = !1, s, i;
1825
1832
  try {
1826
1833
  for (t = t.call(e); !(a = (s = t.next()).done) && (n.push(s.value), !(r && n.length === r)); a = !0)
1827
1834
  ;
1828
- } catch (m) {
1829
- o = !0, i = m;
1835
+ } catch (f) {
1836
+ o = !0, i = f;
1830
1837
  } finally {
1831
1838
  try {
1832
1839
  !a && t.return != null && t.return();
@@ -1838,11 +1845,11 @@ function fo(e, r) {
1838
1845
  return n;
1839
1846
  }
1840
1847
  }
1841
- function po(e) {
1848
+ function go(e) {
1842
1849
  if (Array.isArray(e))
1843
1850
  return e;
1844
1851
  }
1845
- function Nr(e, r) {
1852
+ function kr(e, r) {
1846
1853
  var t = Object.keys(e);
1847
1854
  if (Object.getOwnPropertySymbols) {
1848
1855
  var n = Object.getOwnPropertySymbols(e);
@@ -1852,12 +1859,12 @@ function Nr(e, r) {
1852
1859
  }
1853
1860
  return t;
1854
1861
  }
1855
- function B(e) {
1862
+ function z(e) {
1856
1863
  for (var r = 1; r < arguments.length; r++) {
1857
1864
  var t = arguments[r] != null ? arguments[r] : {};
1858
- r % 2 ? Nr(Object(t), !0).forEach(function(n) {
1865
+ r % 2 ? kr(Object(t), !0).forEach(function(n) {
1859
1866
  sr(e, n, t[n]);
1860
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Nr(Object(t)).forEach(function(n) {
1867
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : kr(Object(t)).forEach(function(n) {
1861
1868
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1862
1869
  });
1863
1870
  }
@@ -1866,10 +1873,10 @@ function B(e) {
1866
1873
  function sr(e, r, t) {
1867
1874
  return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
1868
1875
  }
1869
- function Me(e, r) {
1876
+ function Le(e, r) {
1870
1877
  if (e == null)
1871
1878
  return {};
1872
- var t = mo(e, r), n, a;
1879
+ var t = yo(e, r), n, a;
1873
1880
  if (Object.getOwnPropertySymbols) {
1874
1881
  var o = Object.getOwnPropertySymbols(e);
1875
1882
  for (a = 0; a < o.length; a++)
@@ -1877,7 +1884,7 @@ function Me(e, r) {
1877
1884
  }
1878
1885
  return t;
1879
1886
  }
1880
- function mo(e, r) {
1887
+ function yo(e, r) {
1881
1888
  if (e == null)
1882
1889
  return {};
1883
1890
  var t = {}, n = Object.keys(e), a, o;
@@ -1886,19 +1893,19 @@ function mo(e, r) {
1886
1893
  return t;
1887
1894
  }
1888
1895
  var pr = /* @__PURE__ */ mt(function(e, r) {
1889
- var t = e.children, n = Me(e, to), a = at(n), o = a.open, s = Me(a, no);
1896
+ var t = e.children, n = Le(e, ao), a = at(n), o = a.open, s = Le(a, io);
1890
1897
  return vt(r, function() {
1891
1898
  return {
1892
1899
  open: o
1893
1900
  };
1894
- }, [o]), /* @__PURE__ */ ut.createElement(yt, null, t(B(B({}, s), {}, {
1901
+ }, [o]), /* @__PURE__ */ ut.createElement(gt, null, t(z(z({}, s), {}, {
1895
1902
  open: o
1896
1903
  })));
1897
1904
  });
1898
1905
  pr.displayName = "Dropzone";
1899
1906
  var ot = {
1900
1907
  disabled: !1,
1901
- getFilesFromEvent: xn,
1908
+ getFilesFromEvent: Dn,
1902
1909
  maxSize: 1 / 0,
1903
1910
  minSize: 0,
1904
1911
  multiple: !0,
@@ -2091,252 +2098,366 @@ var cr = {
2091
2098
  fileRejections: []
2092
2099
  };
2093
2100
  function at() {
2094
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = B(B({}, ot), e), t = r.accept, n = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, s = r.minSize, i = r.multiple, m = r.maxFiles, c = r.onDragEnter, y = r.onDragLeave, g = r.onDragOver, h = r.onDrop, S = r.onDropAccepted, O = r.onDropRejected, w = r.onFileDialogCancel, L = r.onFileDialogOpen, k = r.useFsAccessApi, K = r.autoFocus, A = r.preventDropOnDocument, N = r.noClick, f = r.noKeyboard, Z = r.noDrag, $ = r.noDragEventsBubbling, V = r.onError, X = r.validator, ce = ie(function() {
2095
- return Qn(t);
2096
- }, [t]), fe = ie(function() {
2097
- return Xn(t);
2098
- }, [t]), pe = ie(function() {
2101
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = z(z({}, ot), e), t = r.accept, n = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, s = r.minSize, i = r.multiple, f = r.maxFiles, c = r.onDragEnter, v = r.onDragLeave, b = r.onDragOver, h = r.onDrop, y = r.onDropAccepted, _ = r.onDropRejected, C = r.onFileDialogCancel, L = r.onFileDialogOpen, N = r.useFsAccessApi, U = r.autoFocus, A = r.preventDropOnDocument, k = r.noClick, p = r.noKeyboard, X = r.noDrag, $ = r.noDragEventsBubbling, J = r.onError, ee = r.validator, ce = se(function() {
2102
+ return to(t);
2103
+ }, [t]), de = se(function() {
2104
+ return ro(t);
2105
+ }, [t]), me = se(function() {
2099
2106
  return typeof L == "function" ? L : $r;
2100
- }, [L]), le = ie(function() {
2101
- return typeof w == "function" ? w : $r;
2102
- }, [w]), W = Ce(null), J = Ce(null), te = dt(vo, cr), oe = er(te, 2), ue = oe[0], U = oe[1], l = ue.isFocused, v = ue.isFileDialogActive, T = Ce(typeof window < "u" && window.isSecureContext && k && Zn()), x = function() {
2103
- !T.current && v && setTimeout(function() {
2104
- if (J.current) {
2105
- var b = J.current.files;
2106
- b.length || (U({
2107
+ }, [L]), ue = se(function() {
2108
+ return typeof C == "function" ? C : $r;
2109
+ }, [C]), W = Oe(null), Z = Oe(null), ne = dt(bo, cr), ae = rr(ne, 2), fe = ae[0], G = ae[1], u = fe.isFocused, g = fe.isFileDialogActive, T = Oe(typeof window < "u" && window.isSecureContext && N && eo()), x = function() {
2110
+ !T.current && g && setTimeout(function() {
2111
+ if (Z.current) {
2112
+ var E = Z.current.files;
2113
+ E.length || (G({
2107
2114
  type: "closeDialog"
2108
- }), le());
2115
+ }), ue());
2109
2116
  }
2110
2117
  }, 300);
2111
2118
  };
2112
- he(function() {
2119
+ _e(function() {
2113
2120
  return window.addEventListener("focus", x, !1), function() {
2114
2121
  window.removeEventListener("focus", x, !1);
2115
2122
  };
2116
- }, [J, v, le, T]);
2117
- var _ = Ce([]), P = function(b) {
2118
- W.current && W.current.contains(b.target) || (b.preventDefault(), _.current = []);
2123
+ }, [Z, g, ue, T]);
2124
+ var w = Oe([]), P = function(E) {
2125
+ W.current && W.current.contains(E.target) || (E.preventDefault(), w.current = []);
2119
2126
  };
2120
- he(function() {
2121
- return A && (document.addEventListener("dragover", kr, !1), document.addEventListener("drop", P, !1)), function() {
2122
- A && (document.removeEventListener("dragover", kr), document.removeEventListener("drop", P));
2127
+ _e(function() {
2128
+ return A && (document.addEventListener("dragover", Nr, !1), document.addEventListener("drop", P, !1)), function() {
2129
+ A && (document.removeEventListener("dragover", Nr), document.removeEventListener("drop", P));
2123
2130
  };
2124
- }, [W, A]), he(function() {
2125
- return !n && K && W.current && W.current.focus(), function() {
2131
+ }, [W, A]), _e(function() {
2132
+ return !n && U && W.current && W.current.focus(), function() {
2126
2133
  };
2127
- }, [W, K, n]);
2128
- var E = re(function(d) {
2129
- V ? V(d) : console.error(d);
2130
- }, [V]), C = re(function(d) {
2131
- d.preventDefault(), d.persist(), Ie(d), _.current = [].concat(io(_.current), [d.target]), je(d) && Promise.resolve(a(d)).then(function(b) {
2132
- if (!($e(d) && !$)) {
2133
- var Y = b.length, G = Y > 0 && Un({
2134
- files: b,
2134
+ }, [W, U, n]);
2135
+ var S = Q(function(m) {
2136
+ J ? J(m) : console.error(m);
2137
+ }, [J]), O = Q(function(m) {
2138
+ m.preventDefault(), m.persist(), Ie(m), w.current = [].concat(lo(w.current), [m.target]), Ne(m) && Promise.resolve(a(m)).then(function(E) {
2139
+ if (!(Me(m) && !$)) {
2140
+ var Y = E.length, V = Y > 0 && Jn({
2141
+ files: E,
2135
2142
  accept: ce,
2136
2143
  minSize: s,
2137
2144
  maxSize: o,
2138
2145
  multiple: i,
2139
- maxFiles: m,
2140
- validator: X
2141
- }), ee = Y > 0 && !G;
2142
- U({
2143
- isDragAccept: G,
2144
- isDragReject: ee,
2146
+ maxFiles: f,
2147
+ validator: ee
2148
+ }), te = Y > 0 && !V;
2149
+ G({
2150
+ isDragAccept: V,
2151
+ isDragReject: te,
2145
2152
  isDragActive: !0,
2146
2153
  type: "setDraggedFiles"
2147
- }), c && c(d);
2154
+ }), c && c(m);
2148
2155
  }
2149
- }).catch(function(b) {
2150
- return E(b);
2156
+ }).catch(function(E) {
2157
+ return S(E);
2151
2158
  });
2152
- }, [a, c, E, $, ce, s, o, i, m, X]), I = re(function(d) {
2153
- d.preventDefault(), d.persist(), Ie(d);
2154
- var b = je(d);
2155
- if (b && d.dataTransfer)
2159
+ }, [a, c, S, $, ce, s, o, i, f, ee]), R = Q(function(m) {
2160
+ m.preventDefault(), m.persist(), Ie(m);
2161
+ var E = Ne(m);
2162
+ if (E && m.dataTransfer)
2156
2163
  try {
2157
- d.dataTransfer.dropEffect = "copy";
2164
+ m.dataTransfer.dropEffect = "copy";
2158
2165
  } catch {
2159
2166
  }
2160
- return b && g && g(d), !1;
2161
- }, [g, $]), R = re(function(d) {
2162
- d.preventDefault(), d.persist(), Ie(d);
2163
- var b = _.current.filter(function(G) {
2164
- return W.current && W.current.contains(G);
2165
- }), Y = b.indexOf(d.target);
2166
- Y !== -1 && b.splice(Y, 1), _.current = b, !(b.length > 0) && (U({
2167
+ return E && b && b(m), !1;
2168
+ }, [b, $]), I = Q(function(m) {
2169
+ m.preventDefault(), m.persist(), Ie(m);
2170
+ var E = w.current.filter(function(V) {
2171
+ return W.current && W.current.contains(V);
2172
+ }), Y = E.indexOf(m.target);
2173
+ Y !== -1 && E.splice(Y, 1), w.current = E, !(E.length > 0) && (G({
2167
2174
  type: "setDraggedFiles",
2168
2175
  isDragActive: !1,
2169
2176
  isDragAccept: !1,
2170
2177
  isDragReject: !1
2171
- }), je(d) && y && y(d));
2172
- }, [W, y, $]), D = re(function(d, b) {
2173
- var Y = [], G = [];
2174
- d.forEach(function(ee) {
2175
- var xe = Qr(ee, ce), be = er(xe, 2), ze = be[0], We = be[1], Ye = et(ee, s, o), Re = er(Ye, 2), qe = Re[0], Ke = Re[1], He = X ? X(ee) : null;
2176
- if (ze && qe && !He)
2177
- Y.push(ee);
2178
+ }), Ne(m) && v && v(m));
2179
+ }, [W, v, $]), D = Q(function(m, E) {
2180
+ var Y = [], V = [];
2181
+ m.forEach(function(te) {
2182
+ var xe = Qr(te, ce), he = rr(xe, 2), We = he[0], Ye = he[1], qe = et(te, s, o), Fe = rr(qe, 2), Ue = Fe[0], Ke = Fe[1], He = ee ? ee(te) : null;
2183
+ if (We && Ue && !He)
2184
+ Y.push(te);
2178
2185
  else {
2179
- var Ue = [We, Ke];
2180
- He && (Ue = Ue.concat(He)), G.push({
2181
- file: ee,
2182
- errors: Ue.filter(function(lt) {
2186
+ var Ge = [Ye, Ke];
2187
+ He && (Ge = Ge.concat(He)), V.push({
2188
+ file: te,
2189
+ errors: Ge.filter(function(lt) {
2183
2190
  return lt;
2184
2191
  })
2185
2192
  });
2186
2193
  }
2187
- }), (!i && Y.length > 1 || i && m >= 1 && Y.length > m) && (Y.forEach(function(ee) {
2188
- G.push({
2189
- file: ee,
2190
- errors: [Hn]
2194
+ }), (!i && Y.length > 1 || i && f >= 1 && Y.length > f) && (Y.forEach(function(te) {
2195
+ V.push({
2196
+ file: te,
2197
+ errors: [Vn]
2191
2198
  });
2192
- }), Y.splice(0)), U({
2199
+ }), Y.splice(0)), G({
2193
2200
  acceptedFiles: Y,
2194
- fileRejections: G,
2201
+ fileRejections: V,
2195
2202
  type: "setFiles"
2196
- }), h && h(Y, G, b), G.length > 0 && O && O(G, b), Y.length > 0 && S && S(Y, b);
2197
- }, [U, i, ce, s, o, m, h, S, O, X]), q = re(function(d) {
2198
- d.preventDefault(), d.persist(), Ie(d), _.current = [], je(d) && Promise.resolve(a(d)).then(function(b) {
2199
- $e(d) && !$ || D(b, d);
2200
- }).catch(function(b) {
2201
- return E(b);
2202
- }), U({
2203
+ }), h && h(Y, V, E), V.length > 0 && _ && _(V, E), Y.length > 0 && y && y(Y, E);
2204
+ }, [G, i, ce, s, o, f, h, y, _, ee]), q = Q(function(m) {
2205
+ m.preventDefault(), m.persist(), Ie(m), w.current = [], Ne(m) && Promise.resolve(a(m)).then(function(E) {
2206
+ Me(m) && !$ || D(E, m);
2207
+ }).catch(function(E) {
2208
+ return S(E);
2209
+ }), G({
2203
2210
  type: "reset"
2204
2211
  });
2205
- }, [a, D, E, $]), p = re(function() {
2212
+ }, [a, D, S, $]), d = Q(function() {
2206
2213
  if (T.current) {
2207
- U({
2214
+ G({
2208
2215
  type: "openDialog"
2209
- }), pe();
2210
- var d = {
2216
+ }), me();
2217
+ var m = {
2211
2218
  multiple: i,
2212
- types: fe
2219
+ types: de
2213
2220
  };
2214
- window.showOpenFilePicker(d).then(function(b) {
2215
- return a(b);
2216
- }).then(function(b) {
2217
- D(b, null), U({
2221
+ window.showOpenFilePicker(m).then(function(E) {
2222
+ return a(E);
2223
+ }).then(function(E) {
2224
+ D(E, null), G({
2218
2225
  type: "closeDialog"
2219
2226
  });
2220
- }).catch(function(b) {
2221
- eo(b) ? (le(b), U({
2227
+ }).catch(function(E) {
2228
+ no(E) ? (ue(E), G({
2222
2229
  type: "closeDialog"
2223
- })) : ro(b) ? (T.current = !1, J.current ? (J.current.value = null, J.current.click()) : E(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : E(b);
2230
+ })) : oo(E) ? (T.current = !1, Z.current ? (Z.current.value = null, Z.current.click()) : S(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : S(E);
2224
2231
  });
2225
2232
  return;
2226
2233
  }
2227
- J.current && (U({
2234
+ Z.current && (G({
2228
2235
  type: "openDialog"
2229
- }), pe(), J.current.value = null, J.current.click());
2230
- }, [U, pe, le, k, D, E, fe, i]), Q = re(function(d) {
2231
- !W.current || !W.current.isEqualNode(d.target) || (d.key === " " || d.key === "Enter" || d.keyCode === 32 || d.keyCode === 13) && (d.preventDefault(), p());
2232
- }, [W, p]), de = re(function() {
2233
- U({
2236
+ }), me(), Z.current.value = null, Z.current.click());
2237
+ }, [G, me, ue, N, D, S, de, i]), re = Q(function(m) {
2238
+ !W.current || !W.current.isEqualNode(m.target) || (m.key === " " || m.key === "Enter" || m.keyCode === 32 || m.keyCode === 13) && (m.preventDefault(), d());
2239
+ }, [W, d]), ve = Q(function() {
2240
+ G({
2234
2241
  type: "focus"
2235
2242
  });
2236
- }, []), Te = re(function() {
2237
- U({
2243
+ }, []), Te = Q(function() {
2244
+ G({
2238
2245
  type: "blur"
2239
2246
  });
2240
- }, []), dr = re(function() {
2241
- N || (Jn() ? setTimeout(p, 0) : p());
2242
- }, [N, p]), ge = function(b) {
2243
- return n ? null : b;
2244
- }, Be = function(b) {
2245
- return f ? null : ge(b);
2246
- }, Pe = function(b) {
2247
- return Z ? null : ge(b);
2248
- }, Ie = function(b) {
2249
- $ && b.stopPropagation();
2250
- }, it = ie(function() {
2247
+ }, []), dr = Q(function() {
2248
+ k || (Qn() ? setTimeout(d, 0) : d());
2249
+ }, [k, d]), be = function(E) {
2250
+ return n ? null : E;
2251
+ }, ze = function(E) {
2252
+ return p ? null : be(E);
2253
+ }, Re = function(E) {
2254
+ return X ? null : be(E);
2255
+ }, Ie = function(E) {
2256
+ $ && E.stopPropagation();
2257
+ }, it = se(function() {
2251
2258
  return function() {
2252
- var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, b = d.refKey, Y = b === void 0 ? "ref" : b, G = d.role, ee = d.onKeyDown, xe = d.onFocus, be = d.onBlur, ze = d.onClick, We = d.onDragEnter, Ye = d.onDragOver, Re = d.onDragLeave, qe = d.onDrop, Ke = Me(d, oo);
2253
- return B(B(sr({
2254
- onKeyDown: Be(ae(ee, Q)),
2255
- onFocus: Be(ae(xe, de)),
2256
- onBlur: Be(ae(be, Te)),
2257
- onClick: ge(ae(ze, dr)),
2258
- onDragEnter: Pe(ae(We, C)),
2259
- onDragOver: Pe(ae(Ye, I)),
2260
- onDragLeave: Pe(ae(Re, R)),
2261
- onDrop: Pe(ae(qe, q)),
2262
- role: typeof G == "string" && G !== "" ? G : "presentation"
2263
- }, Y, W), !n && !f ? {
2259
+ var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = m.refKey, Y = E === void 0 ? "ref" : E, V = m.role, te = m.onKeyDown, xe = m.onFocus, he = m.onBlur, We = m.onClick, Ye = m.onDragEnter, qe = m.onDragOver, Fe = m.onDragLeave, Ue = m.onDrop, Ke = Le(m, so);
2260
+ return z(z(sr({
2261
+ onKeyDown: ze(ie(te, re)),
2262
+ onFocus: ze(ie(xe, ve)),
2263
+ onBlur: ze(ie(he, Te)),
2264
+ onClick: be(ie(We, dr)),
2265
+ onDragEnter: Re(ie(Ye, O)),
2266
+ onDragOver: Re(ie(qe, R)),
2267
+ onDragLeave: Re(ie(Fe, I)),
2268
+ onDrop: Re(ie(Ue, q)),
2269
+ role: typeof V == "string" && V !== "" ? V : "presentation"
2270
+ }, Y, W), !n && !p ? {
2264
2271
  tabIndex: 0
2265
2272
  } : {}), Ke);
2266
2273
  };
2267
- }, [W, Q, de, Te, dr, C, I, R, q, f, Z, n]), st = re(function(d) {
2268
- d.stopPropagation();
2269
- }, []), ct = ie(function() {
2274
+ }, [W, re, ve, Te, dr, O, R, I, q, p, X, n]), st = Q(function(m) {
2275
+ m.stopPropagation();
2276
+ }, []), ct = se(function() {
2270
2277
  return function() {
2271
- var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, b = d.refKey, Y = b === void 0 ? "ref" : b, G = d.onChange, ee = d.onClick, xe = Me(d, ao), be = sr({
2278
+ var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = m.refKey, Y = E === void 0 ? "ref" : E, V = m.onChange, te = m.onClick, xe = Le(m, co), he = sr({
2272
2279
  accept: ce,
2273
2280
  multiple: i,
2274
2281
  type: "file",
2275
2282
  style: {
2276
2283
  display: "none"
2277
2284
  },
2278
- onChange: ge(ae(G, q)),
2279
- onClick: ge(ae(ee, st)),
2285
+ onChange: be(ie(V, q)),
2286
+ onClick: be(ie(te, st)),
2280
2287
  tabIndex: -1
2281
- }, Y, J);
2282
- return B(B({}, be), xe);
2288
+ }, Y, Z);
2289
+ return z(z({}, he), xe);
2283
2290
  };
2284
- }, [J, t, i, q, n]);
2285
- return B(B({}, ue), {}, {
2286
- isFocused: l && !n,
2291
+ }, [Z, t, i, q, n]);
2292
+ return z(z({}, fe), {}, {
2293
+ isFocused: u && !n,
2287
2294
  getRootProps: it,
2288
2295
  getInputProps: ct,
2289
2296
  rootRef: W,
2290
- inputRef: J,
2291
- open: ge(p)
2297
+ inputRef: Z,
2298
+ open: be(d)
2292
2299
  });
2293
2300
  }
2294
- function vo(e, r) {
2301
+ function bo(e, r) {
2295
2302
  switch (r.type) {
2296
2303
  case "focus":
2297
- return B(B({}, e), {}, {
2304
+ return z(z({}, e), {}, {
2298
2305
  isFocused: !0
2299
2306
  });
2300
2307
  case "blur":
2301
- return B(B({}, e), {}, {
2308
+ return z(z({}, e), {}, {
2302
2309
  isFocused: !1
2303
2310
  });
2304
2311
  case "openDialog":
2305
- return B(B({}, cr), {}, {
2312
+ return z(z({}, cr), {}, {
2306
2313
  isFileDialogActive: !0
2307
2314
  });
2308
2315
  case "closeDialog":
2309
- return B(B({}, e), {}, {
2316
+ return z(z({}, e), {}, {
2310
2317
  isFileDialogActive: !1
2311
2318
  });
2312
2319
  case "setDraggedFiles":
2313
- return B(B({}, e), {}, {
2320
+ return z(z({}, e), {}, {
2314
2321
  isDragActive: r.isDragActive,
2315
2322
  isDragAccept: r.isDragAccept,
2316
2323
  isDragReject: r.isDragReject
2317
2324
  });
2318
2325
  case "setFiles":
2319
- return B(B({}, e), {}, {
2326
+ return z(z({}, e), {}, {
2320
2327
  acceptedFiles: r.acceptedFiles,
2321
2328
  fileRejections: r.fileRejections
2322
2329
  });
2323
2330
  case "reset":
2324
- return B({}, cr);
2331
+ return z({}, cr);
2325
2332
  default:
2326
2333
  return e;
2327
2334
  }
2328
2335
  }
2329
2336
  function $r() {
2330
2337
  }
2331
- const Do = ({
2332
- onFileUpload: e
2338
+ const ho = ({
2339
+ accept: e,
2340
+ error: r,
2341
+ files: t,
2342
+ help: n,
2343
+ label: a,
2344
+ maxFiles: o,
2345
+ maxSize: s,
2346
+ onFileUpload: i,
2347
+ rejectedFiles: f,
2348
+ removeFile: c,
2349
+ removeRejectedFile: v
2333
2350
  }) => {
2334
- const { getRootProps: r } = at({
2335
- onDrop: e
2336
- });
2337
- return /* @__PURE__ */ u("div", { ...r(), className: "file-upload", "data-testid": "file-upload", children: /* @__PURE__ */ u("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" }) });
2351
+ const { getRootProps: b } = at({
2352
+ accept: e,
2353
+ maxFiles: o,
2354
+ maxSize: s,
2355
+ onDrop: i
2356
+ }), h = ke();
2357
+ return /* @__PURE__ */ K(
2358
+ "div",
2359
+ {
2360
+ className: B("p-form__group p-form-validation", {
2361
+ "is-error": !!r
2362
+ }),
2363
+ children: [
2364
+ a && /* @__PURE__ */ l(Ct, { id: h, children: a }),
2365
+ n && /* @__PURE__ */ l("p", { className: "p-form-help-text", children: n }),
2366
+ /* @__PURE__ */ K("div", { className: "p-form__control", children: [
2367
+ !o || t.length < o ? /* @__PURE__ */ l("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ l(
2368
+ "div",
2369
+ {
2370
+ ...b(),
2371
+ "aria-labelledby": a ? h : void 0,
2372
+ className: "file-upload",
2373
+ "data-testid": "file-upload",
2374
+ children: /* @__PURE__ */ l("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" })
2375
+ }
2376
+ ) }) : null,
2377
+ r ? /* @__PURE__ */ K("p", { className: "p-form-validation__message", children: [
2378
+ /* @__PURE__ */ l("strong", { children: "Error: " }),
2379
+ r
2380
+ ] }) : null,
2381
+ /* @__PURE__ */ K("div", { className: "file-upload__files-list", children: [
2382
+ f && f.map((y) => /* @__PURE__ */ K("span", { className: "is-error", children: [
2383
+ /* @__PURE__ */ K("div", { className: "file-upload__file is-rejected", children: [
2384
+ y.file.name,
2385
+ /* @__PURE__ */ l(
2386
+ pe,
2387
+ {
2388
+ appearance: "base",
2389
+ className: "file-upload__file-remove-button",
2390
+ onClick: () => v(y),
2391
+ type: "button",
2392
+ children: /* @__PURE__ */ l(we, { name: "close", children: "Remove file" })
2393
+ }
2394
+ )
2395
+ ] }),
2396
+ y.errors.map((_) => /* @__PURE__ */ l(
2397
+ "p",
2398
+ {
2399
+ className: "p-form-validation__message",
2400
+ children: _.message
2401
+ },
2402
+ `${y.file.name}-${_.code}`
2403
+ ))
2404
+ ] }, y.file.name)),
2405
+ t && t.map((y) => /* @__PURE__ */ K("div", { className: "file-upload__file", children: [
2406
+ y.name,
2407
+ y.percentUploaded !== void 0 ? /* @__PURE__ */ l(Nt, { percentComplete: y.percentUploaded }) : /* @__PURE__ */ l(
2408
+ pe,
2409
+ {
2410
+ appearance: "base",
2411
+ className: "file-upload__file-remove-button",
2412
+ onClick: () => c(y),
2413
+ type: "button",
2414
+ children: /* @__PURE__ */ l(we, { name: "close", children: "Remove file" })
2415
+ }
2416
+ )
2417
+ ] }, y.name))
2418
+ ] })
2419
+ ] })
2420
+ ]
2421
+ }
2422
+ );
2423
+ }, Io = ({
2424
+ accept: e,
2425
+ error: r,
2426
+ help: t,
2427
+ label: n,
2428
+ maxFiles: a,
2429
+ maxSize: o
2430
+ }) => {
2431
+ const [s, i] = le([]), [f, c] = le([]), v = Q(
2432
+ (y, _) => {
2433
+ i([...s, ...y]), c([...f, ..._]);
2434
+ },
2435
+ [s, f]
2436
+ );
2437
+ return /* @__PURE__ */ l(
2438
+ ho,
2439
+ {
2440
+ accept: e,
2441
+ error: r,
2442
+ files: s,
2443
+ rejectedFiles: f,
2444
+ help: t,
2445
+ label: n,
2446
+ maxFiles: a,
2447
+ maxSize: o,
2448
+ onFileUpload: v,
2449
+ removeFile: (y) => {
2450
+ const _ = [...s];
2451
+ _.splice(_.indexOf(y), 1), i(_);
2452
+ },
2453
+ removeRejectedFile: (y) => {
2454
+ const _ = [...f];
2455
+ _.splice(_.indexOf(y), 1), c(_);
2456
+ }
2457
+ }
2458
+ );
2338
2459
  };
2339
- const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go = (e) => (r, t) => {
2460
+ const _o = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Eo = (e) => (r, t) => {
2340
2461
  if (e) {
2341
2462
  const n = e.has(r.value), a = e.has(t.value);
2342
2463
  if (n && !a)
@@ -2345,13 +2466,13 @@ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go =
2345
2466
  return 1;
2346
2467
  }
2347
2468
  return 0;
2348
- }, bo = (e) => {
2469
+ }, wo = (e) => {
2349
2470
  const r = /* @__PURE__ */ new Map();
2350
2471
  return e.forEach((t) => {
2351
2472
  const n = t.group || "Ungrouped", a = r.get(n) || [];
2352
2473
  a.push(t), r.set(n, a);
2353
2474
  }), Array.from(r, ([t, n]) => ({ group: t, items: n }));
2354
- }, ho = ({
2475
+ }, So = ({
2355
2476
  items: e,
2356
2477
  selectedItems: r,
2357
2478
  disabledItems: t,
@@ -2359,49 +2480,49 @@ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go =
2359
2480
  updateItems: a,
2360
2481
  isOpen: o,
2361
2482
  footer: s,
2362
- sortFn: i = yo,
2363
- groupFn: m = bo,
2483
+ sortFn: i = _o,
2484
+ groupFn: f = wo,
2364
2485
  ...c
2365
2486
  }) => {
2366
- const y = ie(
2367
- () => new Set(r.map((k) => k.value)),
2487
+ const v = se(
2488
+ () => new Set(r.map((N) => N.value)),
2368
2489
  [r]
2369
- ), g = ie(
2370
- () => new Set(t.map((k) => k.value)),
2490
+ ), b = se(
2491
+ () => new Set(t.map((N) => N.value)),
2371
2492
  [t]
2372
- ), [h, S] = ye(new Set(y));
2373
- he(() => {
2374
- o && S(new Set(y));
2493
+ ), [h, y] = le(new Set(v));
2494
+ _e(() => {
2495
+ o && y(new Set(v));
2375
2496
  }, [o]);
2376
- const O = ie(() => e.some((k) => k.group), [e]), w = ie(
2377
- () => O ? m(e) : [{ group: "Ungrouped", items: e }],
2378
- [e, m]
2379
- ), L = (k) => {
2380
- const { checked: K, value: A } = k.target, N = e.find((f) => `${f.value}` === A);
2381
- if (N) {
2382
- const f = K ? [...r, N] : r.filter((Z) => `${Z.value}` !== A) ?? [];
2383
- a(f);
2497
+ const _ = se(() => e.some((N) => N.group), [e]), C = se(
2498
+ () => _ ? f(e) : [{ group: "Ungrouped", items: e }],
2499
+ [e, f]
2500
+ ), L = (N) => {
2501
+ const { checked: U, value: A } = N.target, k = e.find((p) => `${p.value}` === A);
2502
+ if (k) {
2503
+ const p = U ? [...r, k] : r.filter((X) => `${X.value}` !== A) ?? [];
2504
+ a(p);
2384
2505
  }
2385
2506
  };
2386
- return /* @__PURE__ */ u(Hr, { isVisible: o, className: "put-above", children: /* @__PURE__ */ se("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
2507
+ return /* @__PURE__ */ l(Kr, { isVisible: o, className: "put-above", children: /* @__PURE__ */ K("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
2387
2508
  n || null,
2388
- w.map(({ group: k, items: K }) => /* @__PURE__ */ se("div", { className: "multi-select__group", children: [
2389
- O ? /* @__PURE__ */ u("h5", { className: "multi-select__dropdown-header", children: k }) : null,
2390
- /* @__PURE__ */ u("ul", { className: "multi-select__dropdown-list", "aria-label": k, children: K.sort(i).sort(go(h)).map((A) => /* @__PURE__ */ u("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ u(
2391
- St,
2509
+ C.map(({ group: N, items: U }) => /* @__PURE__ */ K("div", { className: "multi-select__group", children: [
2510
+ _ ? /* @__PURE__ */ l("h5", { className: "multi-select__dropdown-header", children: N }) : null,
2511
+ /* @__PURE__ */ l("ul", { className: "multi-select__dropdown-list", "aria-label": N, children: U.sort(i).sort(Eo(h)).map((A) => /* @__PURE__ */ l("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ l(
2512
+ Tt,
2392
2513
  {
2393
- disabled: g.has(A.value),
2514
+ disabled: b.has(A.value),
2394
2515
  label: A.label,
2395
- checked: y.has(A.value),
2516
+ checked: v.has(A.value),
2396
2517
  value: A.value,
2397
2518
  onChange: L
2398
2519
  },
2399
2520
  A.value
2400
2521
  ) }, A.value)) })
2401
- ] }, k)),
2402
- s ? /* @__PURE__ */ u("div", { className: "multi-select__footer", children: s }) : null
2522
+ ] }, N)),
2523
+ s ? /* @__PURE__ */ l("div", { className: "multi-select__footer", children: s }) : null
2403
2524
  ] }) });
2404
- }, Ao = ({
2525
+ }, Fo = ({
2405
2526
  disabled: e,
2406
2527
  selectedItems: r = [],
2407
2528
  label: t,
@@ -2410,100 +2531,100 @@ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go =
2410
2531
  required: o = !1,
2411
2532
  items: s = [],
2412
2533
  disabledItems: i = [],
2413
- dropdownHeader: m,
2534
+ dropdownHeader: f,
2414
2535
  dropdownFooter: c,
2415
- variant: y = "search"
2536
+ variant: v = "search"
2416
2537
  }) => {
2417
- const g = Tt(() => {
2418
- S(!1), w("");
2538
+ const b = xt(() => {
2539
+ y(!1), C("");
2419
2540
  });
2420
- xt(() => {
2421
- S(!1), w("");
2541
+ Ot(() => {
2542
+ y(!1), C("");
2422
2543
  });
2423
- const [h, S] = ye(!1), [O, w] = ye("");
2424
- he(() => {
2425
- h || w("");
2544
+ const [h, y] = le(!1), [_, C] = le("");
2545
+ _e(() => {
2546
+ h || C("");
2426
2547
  }, [h]);
2427
- const [L, k] = ye([]), K = r || L, A = ($) => {
2428
- const V = Array.from(new Set($));
2429
- k(V), n && n(V);
2430
- }, N = rr(), f = rr(), Z = K.filter(
2431
- ($) => s.some((V) => V.value === $.value)
2548
+ const [L, N] = le([]), U = r || L, A = ($) => {
2549
+ const J = Array.from(new Set($));
2550
+ N(J), n && n(J);
2551
+ }, k = ke(), p = ke(), X = U.filter(
2552
+ ($) => s.some((J) => J.value === $.value)
2432
2553
  ).map(($) => $.label).join(", ");
2433
- return /* @__PURE__ */ u("div", { ref: g, children: /* @__PURE__ */ se("div", { className: "multi-select", children: [
2434
- y === "search" ? /* @__PURE__ */ u(
2435
- Ct,
2554
+ return /* @__PURE__ */ l("div", { ref: b, children: /* @__PURE__ */ K("div", { className: "multi-select", children: [
2555
+ v === "search" ? /* @__PURE__ */ l(
2556
+ Dt,
2436
2557
  {
2437
2558
  externallyControlled: !0,
2438
- "aria-controls": N,
2559
+ "aria-controls": k,
2439
2560
  "aria-expanded": h,
2440
- id: f,
2561
+ id: p,
2441
2562
  role: "combobox",
2442
2563
  "aria-label": t || a || "Search",
2443
2564
  disabled: e,
2444
2565
  autoComplete: "off",
2445
2566
  onChange: ($) => {
2446
- w($), S(!0);
2567
+ C($), y(!0);
2447
2568
  },
2448
- onFocus: () => S(!0),
2569
+ onFocus: () => y(!0),
2449
2570
  placeholder: a ?? "Search",
2450
2571
  required: o,
2451
2572
  type: "text",
2452
- value: O,
2573
+ value: _,
2453
2574
  className: "multi-select__input"
2454
2575
  }
2455
- ) : /* @__PURE__ */ u(
2576
+ ) : /* @__PURE__ */ l(
2456
2577
  "button",
2457
2578
  {
2458
2579
  role: "combobox",
2459
2580
  type: "button",
2460
2581
  "aria-label": t || a || "Select items",
2461
- "aria-controls": N,
2582
+ "aria-controls": k,
2462
2583
  "aria-expanded": h,
2463
2584
  className: "multi-select__select-button",
2464
2585
  onClick: () => {
2465
- S(($) => !$);
2586
+ y(($) => !$);
2466
2587
  },
2467
- children: /* @__PURE__ */ u("span", { className: "multi-select__condensed-text", children: K.length > 0 ? Z : a ?? "Select items" })
2588
+ children: /* @__PURE__ */ l("span", { className: "multi-select__condensed-text", children: U.length > 0 ? X : a ?? "Select items" })
2468
2589
  }
2469
2590
  ),
2470
- /* @__PURE__ */ u(
2471
- ho,
2591
+ /* @__PURE__ */ l(
2592
+ So,
2472
2593
  {
2473
- id: N,
2594
+ id: k,
2474
2595
  isOpen: h,
2475
- items: O.length > 0 ? s.filter(
2476
- ($) => $.label.toLowerCase().includes(O.toLowerCase())
2596
+ items: _.length > 0 ? s.filter(
2597
+ ($) => $.label.toLowerCase().includes(_.toLowerCase())
2477
2598
  ) : s,
2478
- selectedItems: K,
2599
+ selectedItems: U,
2479
2600
  disabledItems: i,
2480
- header: m,
2601
+ header: f,
2481
2602
  updateItems: A,
2482
- footer: c || /* @__PURE__ */ se(De, { children: [
2483
- /* @__PURE__ */ u(
2484
- Ee,
2603
+ footer: c || /* @__PURE__ */ K(Ae, { children: [
2604
+ /* @__PURE__ */ l(
2605
+ pe,
2485
2606
  {
2486
2607
  appearance: "link",
2487
2608
  onClick: () => {
2488
2609
  const $ = s.filter(
2489
- (V) => !i.some(
2490
- (X) => X.value === V.value
2610
+ (J) => !i.some(
2611
+ (ee) => ee.value === J.value
2491
2612
  )
2492
2613
  );
2493
- A([...K, ...$]);
2614
+ A([...U, ...$]);
2494
2615
  },
2495
2616
  type: "button",
2496
2617
  children: "Select all"
2497
2618
  }
2498
2619
  ),
2499
- /* @__PURE__ */ u(
2500
- Ee,
2620
+ /* @__PURE__ */ l(
2621
+ pe,
2501
2622
  {
2502
2623
  appearance: "link",
2503
2624
  onClick: () => {
2504
- const $ = K.filter(
2505
- (V) => i.some(
2506
- (X) => X.value === V.value
2625
+ const $ = U.filter(
2626
+ (J) => i.some(
2627
+ (ee) => ee.value === J.value
2507
2628
  )
2508
2629
  );
2509
2630
  A($);
@@ -2516,7 +2637,7 @@ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go =
2516
2637
  }
2517
2638
  )
2518
2639
  ] }) });
2519
- }, Po = ({ value: e, unit: r }, {
2640
+ }, jo = ({ value: e, unit: r }, {
2520
2641
  binary: t = !1,
2521
2642
  convertTo: n,
2522
2643
  decimals: a = 2,
@@ -2525,35 +2646,37 @@ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go =
2525
2646
  const s = e < 0, i = Math.abs(e);
2526
2647
  if (i === 0)
2527
2648
  return { value: 0, unit: n || "B" };
2528
- const m = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], y = c.findIndex((w) => w === r) || 0, g = i * Math.pow(m, y), h = n ? c.findIndex((w) => w === n) : Math.floor(Math.log(g) / Math.log(m));
2529
- let S = g / Math.pow(m, h);
2530
- if (S % 1 !== 0) {
2531
- const w = Math.pow(10, a);
2532
- S = Math[o](S * w) / w;
2649
+ const f = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], v = c.findIndex((C) => C === r) || 0, b = i * Math.pow(f, v), h = n ? c.findIndex((C) => C === n) : Math.floor(Math.log(b) / Math.log(f));
2650
+ let y = b / Math.pow(f, h);
2651
+ if (y % 1 !== 0) {
2652
+ const C = Math.pow(10, a);
2653
+ y = Math[o](y * C) / C;
2533
2654
  }
2534
2655
  return {
2535
- value: s ? -S : S,
2656
+ value: s ? -y : y,
2536
2657
  unit: c[h]
2537
2658
  };
2538
2659
  };
2539
2660
  export {
2540
- Le as ContentSection,
2541
- To as ExternalLink,
2542
- Do as FileUpload,
2661
+ Be as ContentSection,
2662
+ Do as ExternalLink,
2663
+ ho as FileUpload,
2664
+ Io as FileUploadContainer,
2543
2665
  ur as FormSection,
2544
2666
  Wr as InputGroup,
2545
- Kr as MainToolbar,
2546
- At as Meter,
2547
- Ao as MultiSelect,
2548
- ho as MultiSelectDropdown,
2667
+ Ur as MainToolbar,
2668
+ Rt as Meter,
2669
+ Fo as MultiSelect,
2670
+ So as MultiSelectDropdown,
2549
2671
  H as Navigation,
2550
- Xt as NavigationBar,
2551
- xo as NestedFormGroup,
2552
- pn as Pagination,
2553
- Co as PaginationContainer,
2554
- Oo as Stepper,
2555
- So as defaultFilledColors,
2556
- Po as formatBytes,
2557
- ve as meterColor,
2558
- _e as testIds
2672
+ rn as NavigationBar,
2673
+ Ao as NestedFormGroup,
2674
+ vn as Pagination,
2675
+ Po as PaginationContainer,
2676
+ Nt as ProgressIndicator,
2677
+ Ro as Stepper,
2678
+ Oo as defaultFilledColors,
2679
+ jo as formatBytes,
2680
+ ye as meterColor,
2681
+ Ee as testIds
2559
2682
  };