@canonical/maas-react-components 2.1.0 → 2.3.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,8 +1,8 @@
1
- import { jsxs as G, jsx as d, Fragment as be } from "react/jsx-runtime";
2
- import * as pe from "react";
3
- import Ci, { useRef as de, useState as ge, useEffect as xe, useCallback as U, cloneElement as _i, createContext as $n, useId as et, useContext as Nt, useMemo as le, useReducer as Mn, forwardRef as Ri, useImperativeHandle as Ei, Fragment as On, useLayoutEffect as Ht } from "react";
4
- import { useListener as ki, Link as Fi, Spinner as qt, Tooltip as Gt, Button as _e, Icon as Re, Row as Pi, Col as Ii, Input as Di, Label as Ai, CheckboxInput as $i, useClickOutside as Mi, useOnEscapePressed as Oi, SearchBox as jn, Select as ji, ICONS as en } from "@canonical/react-components";
5
- function Bt(e) {
1
+ import { jsxs as G, jsx as u, Fragment as be } from "react/jsx-runtime";
2
+ import * as ue from "react";
3
+ import _i, { useRef as fe, useState as de, useEffect as ge, useCallback as U, cloneElement as Ri, createContext as $n, useId as et, useContext as Ht, useMemo as re, useReducer as Mn, forwardRef as ki, useImperativeHandle as Ei, Fragment as On, useLayoutEffect as qt } from "react";
4
+ import { useListener as Fi, Link as Pi, Spinner as Gt, Tooltip as Bt, Button as Re, Icon as Ce, Row as Ii, Col as Di, Input as Ai, Label as $i, CheckboxInput as Mi, useClickOutside as Oi, useOnEscapePressed as ji, SearchBox as jn, Select as Ti, ICONS as It } from "@canonical/react-components";
5
+ function Ut(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
8
8
  var ft = { exports: {} };
@@ -12,7 +12,7 @@ var ft = { exports: {} };
12
12
  http://jedwatson.github.io/classnames
13
13
  */
14
14
  var tn;
15
- function Ti() {
15
+ function zi() {
16
16
  return tn || (tn = 1, function(e) {
17
17
  (function() {
18
18
  var n = {}.hasOwnProperty;
@@ -44,8 +44,8 @@ function Ti() {
44
44
  })();
45
45
  }(ft)), ft.exports;
46
46
  }
47
- var zi = Ti();
48
- const L = /* @__PURE__ */ Bt(zi), Ie = {
47
+ var Vi = zi();
48
+ const L = /* @__PURE__ */ Ut(Vi), De = {
49
49
  caution: "#F99B11",
50
50
  light: "#F7F7F7",
51
51
  linkFaded: "#D3E4ED",
@@ -54,12 +54,12 @@ const L = /* @__PURE__ */ Bt(zi), Ie = {
54
54
  positiveFaded: "#B7CCB9",
55
55
  positiveMid: "#4DAB4D",
56
56
  positive: "#0E8420"
57
- }, Xr = [
58
- Ie.link,
59
- Ie.positive,
60
- Ie.negative,
61
- Ie.caution
62
- ], Vi = Ie.linkFaded, Tn = Ie.caution, It = Ie.light, nn = 2, on = 1, an = (e, n) => {
57
+ }, Jr = [
58
+ De.link,
59
+ De.positive,
60
+ De.negative,
61
+ De.caution
62
+ ], Li = De.linkFaded, Tn = De.caution, Dt = De.light, nn = 2, on = 1, an = (e, n) => {
63
63
  var o, a;
64
64
  const t = ((a = (o = e == null ? void 0 : e.current) == null ? void 0 : o.getBoundingClientRect()) == null ? void 0 : a.width) || 0;
65
65
  return t > n * nn ? t / n : nn;
@@ -70,7 +70,7 @@ const L = /* @__PURE__ */ Bt(zi), Ie = {
70
70
  label: "meter-label",
71
71
  meteroverflow: "meter-overflow",
72
72
  segments: "meter-segments"
73
- }, Li = ({
73
+ }, Ni = ({
74
74
  className: e,
75
75
  children: n,
76
76
  data: t,
@@ -79,14 +79,14 @@ const L = /* @__PURE__ */ Bt(zi), Ie = {
79
79
  size: a = "regular",
80
80
  ...l
81
81
  }) => {
82
- const r = de(null), s = t == null ? void 0 : t.reduce((m, v) => m + v.value, 0), c = i || s, u = t.map((m) => m.value / c * 100), [f, g] = ge(0);
83
- xe(() => {
82
+ const r = fe(null), s = t == null ? void 0 : t.reduce((m, v) => m + v.value, 0), c = i || s, d = t.map((m) => m.value / c * 100), [f, g] = de(0);
83
+ ge(() => {
84
84
  g(o === "segmented" ? an(r, c) : 0);
85
85
  }, [c, o]);
86
86
  const p = U(() => {
87
87
  g(an(r, c));
88
88
  }, [r, c, g]);
89
- return ki(window, p, "resize", !0, o === "segmented"), /* @__PURE__ */ G(
89
+ return Fi(window, p, "resize", !0, o === "segmented"), /* @__PURE__ */ G(
90
90
  "div",
91
91
  {
92
92
  className: L("p-meter", e, {
@@ -96,30 +96,30 @@ const L = /* @__PURE__ */ Bt(zi), Ie = {
96
96
  "data-testid": Oe.container,
97
97
  ref: r,
98
98
  children: [
99
- /* @__PURE__ */ d(Ni, { children: /* @__PURE__ */ d(
100
- Hi,
99
+ /* @__PURE__ */ u(Hi, { children: /* @__PURE__ */ u(
100
+ qi,
101
101
  {
102
102
  data: t,
103
- datumWidths: u,
103
+ datumWidths: d,
104
104
  maximum: c,
105
105
  overColor: Tn,
106
106
  segmentWidth: f,
107
- separatorColor: It
107
+ separatorColor: Dt
108
108
  }
109
109
  ) }),
110
110
  n
111
111
  ]
112
112
  }
113
113
  );
114
- }, Ni = ({ children: e }) => /* @__PURE__ */ d(
114
+ }, Hi = ({ children: e }) => /* @__PURE__ */ u(
115
115
  "div",
116
116
  {
117
117
  className: "p-meter__bar",
118
118
  "data-testid": Oe.bar,
119
- style: { backgroundColor: Vi },
119
+ style: { backgroundColor: Li },
120
120
  children: e
121
121
  }
122
- ), Hi = ({
122
+ ), qi = ({
123
123
  data: e,
124
124
  datumWidths: n,
125
125
  maximum: t,
@@ -128,7 +128,7 @@ const L = /* @__PURE__ */ Bt(zi), Ie = {
128
128
  const o = () => (e == null ? void 0 : e.reduce((r, s) => r + s.value, 0)) > t, a = (r, s) => ({
129
129
  backgroundColor: r.color,
130
130
  left: `${n == null ? void 0 : n.reduce(
131
- (c, u, f) => s > f ? c + u : c,
131
+ (c, d, f) => s > f ? c + d : c,
132
132
  0
133
133
  )}%`,
134
134
  width: `${n[s]}%`
@@ -137,19 +137,19 @@ const L = /* @__PURE__ */ Bt(zi), Ie = {
137
137
  to right,
138
138
  transparent 0,
139
139
  transparent ${i - on}px,
140
- ${It} ${i - on}px,
141
- ${It} ${i}px
140
+ ${Dt} ${i - on}px,
141
+ ${Dt} ${i}px
142
142
  )`
143
143
  });
144
144
  return /* @__PURE__ */ G(be, { children: [
145
- o() ? /* @__PURE__ */ d(
145
+ o() ? /* @__PURE__ */ u(
146
146
  "div",
147
147
  {
148
148
  className: "p-meter__filled",
149
149
  "data-testid": Oe.meteroverflow,
150
150
  style: { backgroundColor: Tn, width: "100%" }
151
151
  }
152
- ) : e == null ? void 0 : e.map((r, s) => /* @__PURE__ */ d(
152
+ ) : e == null ? void 0 : e.map((r, s) => /* @__PURE__ */ u(
153
153
  "div",
154
154
  {
155
155
  className: "p-meter__filled",
@@ -158,7 +158,7 @@ const L = /* @__PURE__ */ Bt(zi), Ie = {
158
158
  },
159
159
  `meter-${s}`
160
160
  )),
161
- i > 0 && /* @__PURE__ */ d(
161
+ i > 0 && /* @__PURE__ */ u(
162
162
  "div",
163
163
  {
164
164
  className: "p-meter__separators",
@@ -167,10 +167,10 @@ const L = /* @__PURE__ */ Bt(zi), Ie = {
167
167
  }
168
168
  )
169
169
  ] });
170
- }, qi = ({
170
+ }, Gi = ({
171
171
  className: e,
172
172
  children: n
173
- }) => /* @__PURE__ */ d(
173
+ }) => /* @__PURE__ */ u(
174
174
  "div",
175
175
  {
176
176
  className: L("p-meter__label", e),
@@ -178,48 +178,81 @@ const L = /* @__PURE__ */ Bt(zi), Ie = {
178
178
  children: n
179
179
  }
180
180
  );
181
- Li.Label = qi;
182
- const Qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ d(Fi, { ...t, href: n, rel: "noreferrer noopener", target: "_blank", children: e }), Gi = ({
181
+ Ni.Label = Gi;
182
+ const Zr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(Pi, { ...t, href: n, rel: "noreferrer noopener", target: "_blank", children: e }), Bi = ({
183
183
  percentComplete: e
184
184
  }) => /* @__PURE__ */ G("small", { className: "progress-indicator", children: [
185
185
  e,
186
186
  "% ",
187
- /* @__PURE__ */ d(qt, { className: "progress-indicator__spinner" })
188
- ] }), Bi = ({
189
- text: e,
190
- children: n,
191
- className: t,
192
- isPending: i = !1
187
+ /* @__PURE__ */ u(Gt, { className: "progress-indicator__spinner" })
188
+ ] }), zn = ({
189
+ className: e,
190
+ width: n,
191
+ height: t,
192
+ isPending: i,
193
+ text: o,
194
+ children: a,
195
+ variant: l = "text",
196
+ style: r,
197
+ ...s
193
198
  }) => {
194
- const o = Math.floor(Math.random() * 750);
195
- return i ? /* @__PURE__ */ d(
196
- "span",
199
+ if (ge(() => {
200
+ i !== void 0 && console.warn(
201
+ "[Placeholder] The `isPending` prop is deprecated and will be removed in a future major version. Control skeleton visibility with conditional rendering at the call-site instead."
202
+ );
203
+ }, [i]), ge(() => {
204
+ o !== void 0 && console.warn(
205
+ "[Placeholder] The `text` prop is deprecated and will be removed in a future major version. Use the `width` prop to set the skeleton width."
206
+ );
207
+ }, [o]), ge(() => {
208
+ a !== void 0 && console.warn(
209
+ "[Placeholder] Passing `children` to Placeholder is deprecated and will be removed in a future major version. Render children outside the Placeholder and control visibility at the call-site."
210
+ );
211
+ }, [a]), l === "text") {
212
+ if (!i)
213
+ return /* @__PURE__ */ u(be, { children: a });
214
+ const d = Math.floor(Math.random() * 750), f = n ?? "fit-content";
215
+ return /* @__PURE__ */ u(
216
+ "div",
217
+ {
218
+ "aria-label": "loading",
219
+ className: L("p-placeholder", e),
220
+ role: "progressbar",
221
+ style: { animationDelay: `${d}ms`, width: f, height: t, ...r },
222
+ ...s,
223
+ children: /* @__PURE__ */ u("span", { "aria-hidden": "true", className: "p-placeholder__sizer", children: o || a || "Loading" })
224
+ }
225
+ );
226
+ }
227
+ const c = o && !n ? "fit-content" : n;
228
+ return /* @__PURE__ */ u(
229
+ "div",
197
230
  {
198
231
  "aria-label": "loading",
199
- className: L("p-placeholder", t),
232
+ className: L("p-placeholder", e),
200
233
  role: "progressbar",
201
- style: { animationDelay: `${o}ms` },
202
- children: /* @__PURE__ */ d("span", { "aria-hidden": "true", children: e || n || "Loading" })
234
+ style: { width: c, height: t, ...r },
235
+ ...s
203
236
  }
204
- ) : /* @__PURE__ */ d(be, { children: n });
205
- }, Ui = ({ children: e }) => /* @__PURE__ */ d(be, { children: e }), Ki = ({
237
+ );
238
+ }, Ui = ({ children: e }) => /* @__PURE__ */ u(be, { children: e }), Ki = ({
206
239
  isCollapsed: e,
207
240
  setIsCollapsed: n,
208
241
  className: t
209
- }) => /* @__PURE__ */ d(
210
- Gt,
242
+ }) => /* @__PURE__ */ u(
243
+ Bt,
211
244
  {
212
245
  className: "p-side-navigation__tooltip-wrapper",
213
246
  message: /* @__PURE__ */ G(be, { children: [
214
247
  e ? "expand" : "collapse",
215
248
  "( ",
216
- /* @__PURE__ */ d("code", { children: "[" }),
249
+ /* @__PURE__ */ u("code", { children: "[" }),
217
250
  " )"
218
251
  ] }),
219
252
  position: "right",
220
253
  tooltipClassName: "p-side-navigation__tooltip",
221
- children: /* @__PURE__ */ d(
222
- _e,
254
+ children: /* @__PURE__ */ u(
255
+ Re,
223
256
  {
224
257
  appearance: "base",
225
258
  "aria-label": `${e ? "expand" : "collapse"} main navigation`,
@@ -230,25 +263,25 @@ const Qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ d(Fi, { ...t, href:
230
263
  onClick: (i) => {
231
264
  n(!e), i.stopPropagation(), i.currentTarget.blur();
232
265
  },
233
- children: /* @__PURE__ */ d(Re, { light: !0, name: "sidebar-toggle" })
266
+ children: /* @__PURE__ */ u(Ce, { light: !0, name: "sidebar-toggle" })
234
267
  }
235
268
  )
236
269
  }
237
- ), Wi = ({ children: e }) => /* @__PURE__ */ d("div", { className: "p-panel__content", children: /* @__PURE__ */ d("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Yi = ({ children: e }) => /* @__PURE__ */ d("div", { className: "p-panel__controls u-no-margin--top", children: e }), Xi = ({ children: e }) => /* @__PURE__ */ d("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ d("div", { className: "p-panel is-dark", children: e }) }), Qi = ({ children: e }) => /* @__PURE__ */ d("div", { className: "p-panel__footer", children: e }), Ji = ({ children: e }) => /* @__PURE__ */ d("div", { className: "p-panel__header", children: e }), Zi = ({ light: e = !0, name: n }) => /* @__PURE__ */ d(Re, { className: "p-side-navigation__icon", light: e, name: n }), eo = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ d("li", { className: L("p-side-navigation__item", n, { "has-active-child": t }), children: e }), to = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ d("span", { className: L("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), no = ({
270
+ ), Wi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__content", children: /* @__PURE__ */ u("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Yi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__controls u-no-margin--top", children: e }), Xi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ u("div", { className: "p-panel is-dark", children: e }) }), Qi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__footer", children: e }), Ji = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__header", children: e }), Zi = ({ light: e = !0, name: n }) => /* @__PURE__ */ u(Ce, { className: "p-side-navigation__icon", light: e, name: n }), eo = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ u("li", { className: L("p-side-navigation__item", n, { "has-active-child": t }), children: e }), to = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ u("span", { className: L("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), no = ({
238
271
  as: e,
239
272
  ...n
240
- }) => /* @__PURE__ */ d(
273
+ }) => /* @__PURE__ */ u(
241
274
  e || "a",
242
275
  {
243
276
  className: L("p-side-navigation__link", n.className),
244
277
  ...n
245
278
  }
246
- ), io = ({ children: e, className: n }) => /* @__PURE__ */ d("ul", { className: L("p-side-navigation__list", n), children: e }), oo = ({
279
+ ), io = ({ children: e, className: n }) => /* @__PURE__ */ u("ul", { className: L("p-side-navigation__list", n), children: e }), oo = ({
247
280
  as: e,
248
281
  children: n,
249
282
  className: t,
250
283
  ...i
251
- }) => /* @__PURE__ */ d(e || "a", { className: L("p-panel__logo", t), ...i, children: /* @__PURE__ */ d("div", { className: "p-navigation__tagged-logo", children: n }) }), ao = ({ children: e }) => _i(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), ro = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ d(
284
+ }) => /* @__PURE__ */ u(e || "a", { className: L("p-panel__logo", t), ...i, children: /* @__PURE__ */ u("div", { className: "p-navigation__tagged-logo", children: n }) }), ao = ({ children: e }) => Ri(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), ro = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ u(
252
285
  "div",
253
286
  {
254
287
  className: L("p-panel__logo-name is-fading-when-collapsed", {
@@ -256,12 +289,12 @@ const Qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ d(Fi, { ...t, href:
256
289
  }),
257
290
  children: e
258
291
  }
259
- ), lo = ({ children: e }) => /* @__PURE__ */ d("div", { className: "p-navigation__logo-tag", children: e }), so = ({ children: e }) => /* @__PURE__ */ d("span", { className: "p-panel__logo-text", children: e }), co = ({
292
+ ), lo = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-navigation__logo-tag", children: e }), so = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-panel__logo-text", children: e }), co = ({
260
293
  children: e,
261
294
  className: n,
262
295
  onClick: t
263
- }) => /* @__PURE__ */ d(
264
- _e,
296
+ }) => /* @__PURE__ */ u(
297
+ Re,
265
298
  {
266
299
  appearance: "base",
267
300
  className: L(
@@ -271,31 +304,31 @@ const Qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ d(Fi, { ...t, href:
271
304
  onClick: (i) => {
272
305
  t && t(i), i.stopPropagation(), i.currentTarget.blur();
273
306
  },
274
- children: /* @__PURE__ */ d(be, { children: e })
307
+ children: /* @__PURE__ */ u(be, { children: e })
275
308
  }
276
- ), po = ({ children: e }) => /* @__PURE__ */ d("span", { className: "p-side-navigation__text", children: e }), re = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ d("header", { "aria-label": "main navigation", className: L("l-navigation is-maas", n, { "is-collapsed": t, "is-pinned": !t }), children: e }), uo = ({ children: e, className: n }) => /* @__PURE__ */ d("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ d("div", { className: L("p-panel is-dark", n), children: e }) });
277
- re.Header = Ji;
278
- re.Banner = Ui;
279
- re.Drawer = Xi;
280
- re.Controls = Yi;
281
- re.CollapseToggle = Ki;
282
- re.Content = Wi;
283
- re.Footer = Qi;
284
- re.List = io;
285
- re.Item = eo;
286
- re.Link = no;
287
- re.Text = po;
288
- re.Icon = Zi;
289
- re.Label = to;
290
- re.Logo = oo;
291
- re.LogoTag = lo;
292
- re.LogoIcon = ao;
293
- re.LogoName = ro;
294
- re.LogoText = so;
309
+ ), po = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-side-navigation__text", children: e }), ae = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ u("header", { "aria-label": "main navigation", className: L("l-navigation is-maas", n, { "is-collapsed": t, "is-pinned": !t }), children: e }), uo = ({ children: e, className: n }) => /* @__PURE__ */ u("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ u("div", { className: L("p-panel is-dark", n), children: e }) });
310
+ ae.Header = Ji;
311
+ ae.Banner = Ui;
312
+ ae.Drawer = Xi;
313
+ ae.Controls = Yi;
314
+ ae.CollapseToggle = Ki;
315
+ ae.Content = Wi;
316
+ ae.Footer = Qi;
317
+ ae.List = io;
318
+ ae.Item = eo;
319
+ ae.Link = no;
320
+ ae.Text = po;
321
+ ae.Icon = Zi;
322
+ ae.Label = to;
323
+ ae.Logo = oo;
324
+ ae.LogoTag = lo;
325
+ ae.LogoIcon = ao;
326
+ ae.LogoName = ro;
327
+ ae.LogoText = so;
295
328
  uo.MenuButton = co;
296
- const Ut = $n(null), zn = ({ children: e }) => {
329
+ const Kt = $n(null), Vn = ({ children: e }) => {
297
330
  const n = et();
298
- return /* @__PURE__ */ d(Ut.Provider, { value: n, children: /* @__PURE__ */ d(
331
+ return /* @__PURE__ */ u(Kt.Provider, { value: n, children: /* @__PURE__ */ u(
299
332
  "div",
300
333
  {
301
334
  role: "group",
@@ -306,26 +339,26 @@ const Ut = $n(null), zn = ({ children: e }) => {
306
339
  }
307
340
  ) });
308
341
  }, go = ({ children: e }) => {
309
- const n = Nt(Ut);
310
- return /* @__PURE__ */ d("label", { id: `${n}_label`, children: e });
342
+ const n = Ht(Kt);
343
+ return /* @__PURE__ */ u("label", { id: `${n}_label`, children: e });
311
344
  }, fo = ({ children: e }) => {
312
- const n = Nt(Ut);
313
- return /* @__PURE__ */ d("p", { className: "p-form-help-text", id: `${n}_description`, children: e });
345
+ const n = Ht(Kt);
346
+ return /* @__PURE__ */ u("p", { className: "p-form-help-text", id: `${n}_description`, children: e });
314
347
  };
315
- zn.Label = go;
316
- zn.Description = fo;
317
- const Kt = ({ children: e }) => /* @__PURE__ */ d("div", { className: "p-form-section", children: e }), mo = ({ children: e }) => /* @__PURE__ */ d("h5", { className: "p-form-section__title u-no-padding--top", children: e }), vo = ({ children: e }) => /* @__PURE__ */ d("p", { className: "p-form-help-text", children: e }), xo = ({ children: e }) => /* @__PURE__ */ d("div", { className: "p-form-section__content", children: e });
318
- Kt.Title = mo;
319
- Kt.Description = vo;
320
- Kt.Content = xo;
348
+ Vn.Label = go;
349
+ Vn.Description = fo;
350
+ const Wt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-form-section", children: e }), mo = ({ children: e }) => /* @__PURE__ */ u("h5", { className: "p-form-section__title u-no-padding--top", children: e }), vo = ({ children: e }) => /* @__PURE__ */ u("p", { className: "p-form-help-text", children: e }), xo = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-form-section__content", children: e });
351
+ Wt.Title = mo;
352
+ Wt.Description = vo;
353
+ Wt.Content = xo;
321
354
  function ho(e) {
322
- const [n, t] = pe.useState(null), i = pe.useRef(null), o = pe.useCallback(() => {
355
+ const [n, t] = ue.useState(null), i = ue.useRef(null), o = ue.useCallback(() => {
323
356
  if (e.current) {
324
357
  const a = e.current.getBoundingClientRect();
325
358
  t(a);
326
359
  }
327
360
  }, [e]);
328
- return pe.useEffect(() => {
361
+ return ue.useEffect(() => {
329
362
  const a = new ResizeObserver(() => {
330
363
  i.current && cancelAnimationFrame(i.current), i.current = requestAnimationFrame(o);
331
364
  });
@@ -334,17 +367,17 @@ function ho(e) {
334
367
  };
335
368
  }, [e, o]), n;
336
369
  }
337
- const Vn = pe.createContext(null), Ln = pe.createContext([!1, () => {
338
- }]), Nn = ({ children: e }) => {
339
- const n = pe.useRef(null), t = ho(n), [i, o] = pe.useState(!1);
340
- return /* @__PURE__ */ d(
370
+ const Ln = ue.createContext(null), Nn = ue.createContext([!1, () => {
371
+ }]), Hn = ({ children: e }) => {
372
+ const n = ue.useRef(null), t = ho(n), [i, o] = ue.useState(!1);
373
+ return /* @__PURE__ */ u(
341
374
  "header",
342
375
  {
343
376
  className: L("main-toolbar", {
344
377
  "main-toolbar--stacked": i
345
378
  }),
346
379
  ref: n,
347
- children: /* @__PURE__ */ d(Vn.Provider, { value: t, children: /* @__PURE__ */ d(Ln.Provider, { value: [i, o], children: e }) })
380
+ children: /* @__PURE__ */ u(Ln.Provider, { value: t, children: /* @__PURE__ */ u(Nn.Provider, { value: [i, o], children: e }) })
348
381
  }
349
382
  );
350
383
  }, wo = ({
@@ -352,7 +385,7 @@ const Vn = pe.createContext(null), Ln = pe.createContext([!1, () => {
352
385
  children: n,
353
386
  className: t,
354
387
  ...i
355
- }) => /* @__PURE__ */ d(
388
+ }) => /* @__PURE__ */ u(
356
389
  e || "h1",
357
390
  {
358
391
  className: L("main-toolbar__title p-heading--4", t),
@@ -361,11 +394,11 @@ const Vn = pe.createContext(null), Ln = pe.createContext([!1, () => {
361
394
  children: n
362
395
  }
363
396
  ), yo = ({ children: e }) => {
364
- const n = pe.useContext(Vn), [t, i] = pe.useContext(Ln), o = pe.useRef(null);
365
- return pe.useEffect(() => {
397
+ const n = ue.useContext(Ln), [t, i] = ue.useContext(Nn), o = ue.useRef(null);
398
+ return ue.useEffect(() => {
366
399
  !o.current || !n || i(o.current.getBoundingClientRect().width > n.width);
367
400
  }, [i, n, o]), /* @__PURE__ */ G(be, { children: [
368
- /* @__PURE__ */ d(
401
+ /* @__PURE__ */ u(
369
402
  "div",
370
403
  {
371
404
  "aria-hidden": "true",
@@ -375,7 +408,7 @@ const Vn = pe.createContext(null), Ln = pe.createContext([!1, () => {
375
408
  children: e
376
409
  }
377
410
  ),
378
- /* @__PURE__ */ d(
411
+ /* @__PURE__ */ u(
379
412
  "div",
380
413
  {
381
414
  className: L("main-toolbar__controls", {
@@ -386,8 +419,8 @@ const Vn = pe.createContext(null), Ln = pe.createContext([!1, () => {
386
419
  )
387
420
  ] });
388
421
  };
389
- Nn.Title = wo;
390
- Nn.Controls = yo;
422
+ Hn.Title = wo;
423
+ Hn.Controls = yo;
391
424
  const ot = ({
392
425
  children: e,
393
426
  className: n,
@@ -396,24 +429,24 @@ const ot = ({
396
429
  ...o
397
430
  }) => {
398
431
  const a = t || "section", l = L("content-section", n);
399
- return /* @__PURE__ */ d(a, { ...o, className: l, children: /* @__PURE__ */ d(Pi, { children: /* @__PURE__ */ d(Ii, { size: i === "narrow" ? 6 : 12, children: /* @__PURE__ */ d(be, { children: e }) }) }) });
400
- }, bo = ({ children: e, className: n, as: t, ...i }) => /* @__PURE__ */ d(
432
+ return /* @__PURE__ */ u(a, { ...o, className: l, children: /* @__PURE__ */ u(Ii, { children: /* @__PURE__ */ u(Di, { size: i === "narrow" ? 6 : 12, children: /* @__PURE__ */ u(be, { children: e }) }) }) });
433
+ }, bo = ({ children: e, className: n, as: t, ...i }) => /* @__PURE__ */ u(
401
434
  t || "h1",
402
435
  {
403
436
  ...i,
404
437
  className: L("content-section__title p-heading--4", n),
405
438
  children: e
406
439
  }
407
- ), So = ({ children: e, className: n }) => /* @__PURE__ */ d("header", { className: L("content-section__header", n), children: e }), Co = ({ children: e, className: n }) => /* @__PURE__ */ d("div", { className: L("content-section__body", n), children: e }), _o = ({ children: e, className: n }) => /* @__PURE__ */ d("footer", { className: L("content-section__footer", n), children: e });
440
+ ), So = ({ children: e, className: n }) => /* @__PURE__ */ u("header", { className: L("content-section__header", n), children: e }), Co = ({ children: e, className: n }) => /* @__PURE__ */ u("div", { className: L("content-section__body", n), children: e }), _o = ({ children: e, className: n }) => /* @__PURE__ */ u("footer", { className: L("content-section__footer", n), children: e });
408
441
  ot.Title = bo;
409
442
  ot.Header = So;
410
443
  ot.Content = Co;
411
444
  ot.Footer = _o;
412
- const Hn = ({
445
+ const qn = ({
413
446
  children: e,
414
447
  className: n,
415
448
  isVisible: t
416
- }) => /* @__PURE__ */ d(
449
+ }) => /* @__PURE__ */ u(
417
450
  "div",
418
451
  {
419
452
  className: L("fade-in--down", n),
@@ -421,10 +454,10 @@ const Hn = ({
421
454
  style: { visibility: t ? "visible" : "hidden" },
422
455
  children: e
423
456
  }
424
- ), Jr = ({
457
+ ), el = ({
425
458
  children: e,
426
459
  ...n
427
- }) => /* @__PURE__ */ d(Hn, { isVisible: !n["aria-hidden"], children: /* @__PURE__ */ d("div", { className: "p-form__nested-group", ...n, children: e }) }), Ro = ({
460
+ }) => /* @__PURE__ */ u(qn, { isVisible: !n["aria-hidden"], children: /* @__PURE__ */ u("div", { className: "p-form__nested-group", ...n, children: e }) }), Ro = ({
428
461
  className: e,
429
462
  currentPage: n,
430
463
  error: t,
@@ -435,27 +468,27 @@ const Hn = ({
435
468
  onPreviousClick: r,
436
469
  totalPages: s,
437
470
  ...c
438
- }) => /* @__PURE__ */ d(
471
+ }) => /* @__PURE__ */ u(
439
472
  "nav",
440
473
  {
441
474
  "aria-label": (c == null ? void 0 : c["aria-label"]) || "pagination",
442
475
  className: L("p-pagination", e),
443
476
  children: /* @__PURE__ */ G("span", { className: "p-pagination--items", children: [
444
- /* @__PURE__ */ d(
445
- _e,
477
+ /* @__PURE__ */ u(
478
+ Re,
446
479
  {
447
480
  "aria-label": "Previous page",
448
481
  className: "p-pagination__link--previous",
449
482
  disabled: n === 1 || i,
450
483
  onClick: r,
451
484
  type: "button",
452
- children: /* @__PURE__ */ d(Re, { name: "chevron-left" })
485
+ children: /* @__PURE__ */ u(Ce, { name: "chevron-left" })
453
486
  }
454
487
  ),
455
- /* @__PURE__ */ d("strong", { children: "Page " }),
488
+ /* @__PURE__ */ u("strong", { children: "Page " }),
456
489
  " ",
457
- /* @__PURE__ */ d(
458
- Di,
490
+ /* @__PURE__ */ u(
491
+ Ai,
459
492
  {
460
493
  "aria-label": "page number",
461
494
  className: "p-pagination__input",
@@ -475,27 +508,27 @@ const Hn = ({
475
508
  " of ",
476
509
  s
477
510
  ] }),
478
- /* @__PURE__ */ d(
479
- _e,
511
+ /* @__PURE__ */ u(
512
+ Re,
480
513
  {
481
514
  "aria-label": "Next page",
482
515
  className: "p-pagination__link--next",
483
516
  disabled: n === s || i,
484
517
  onClick: l,
485
518
  type: "button",
486
- children: /* @__PURE__ */ d(Re, { name: "chevron-right" })
519
+ children: /* @__PURE__ */ u(Ce, { name: "chevron-right" })
487
520
  }
488
521
  )
489
522
  ] })
490
523
  }
491
- ), Eo = ({
524
+ ), ko = ({
492
525
  currentPage: e,
493
526
  disabled: n,
494
527
  paginate: t,
495
528
  totalPages: i
496
529
  }) => {
497
- const [o, a] = ge(e), [l, r] = ge("");
498
- return /* @__PURE__ */ d(
530
+ const [o, a] = de(e), [l, r] = de("");
531
+ return /* @__PURE__ */ u(
499
532
  Ro,
500
533
  {
501
534
  currentPage: o,
@@ -517,9 +550,9 @@ const Hn = ({
517
550
  totalPages: i
518
551
  }
519
552
  );
520
- }, Zr = ({ activeStep: e, items: n }) => /* @__PURE__ */ d("ol", { className: "stepper", children: n.map((t, i) => {
553
+ }, tl = ({ activeStep: e, items: n }) => /* @__PURE__ */ u("ol", { className: "stepper", children: n.map((t, i) => {
521
554
  const o = i === e, a = i < e;
522
- return /* @__PURE__ */ d("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ d(
555
+ return /* @__PURE__ */ u("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ u(
523
556
  "p",
524
557
  {
525
558
  "aria-label": a ? `${t} (completed)` : t,
@@ -531,7 +564,7 @@ const Hn = ({
531
564
  }
532
565
  ) }, i);
533
566
  }) });
534
- var Ue = { exports: {} }, Ke = { exports: {} }, W = {};
567
+ var Ue = { exports: {} }, Ke = { exports: {} }, K = {};
535
568
  /** @license React v16.13.1
536
569
  * react-is.production.min.js
537
570
  *
@@ -541,10 +574,10 @@ var Ue = { exports: {} }, Ke = { exports: {} }, W = {};
541
574
  * LICENSE file in the root directory of this source tree.
542
575
  */
543
576
  var rn;
544
- function ko() {
545
- if (rn) return W;
577
+ function Eo() {
578
+ if (rn) return K;
546
579
  rn = 1;
547
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, r = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
580
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, r = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
548
581
  function w(h) {
549
582
  if (typeof h == "object" && h !== null) {
550
583
  var P = h.$$typeof;
@@ -561,7 +594,7 @@ function ko() {
561
594
  default:
562
595
  switch (h = h && h.$$typeof, h) {
563
596
  case r:
564
- case u:
597
+ case d:
565
598
  case m:
566
599
  case p:
567
600
  case l:
@@ -575,38 +608,38 @@ function ko() {
575
608
  }
576
609
  }
577
610
  }
578
- function F(h) {
611
+ function E(h) {
579
612
  return w(h) === c;
580
613
  }
581
- return W.AsyncMode = s, W.ConcurrentMode = c, W.ContextConsumer = r, W.ContextProvider = l, W.Element = n, W.ForwardRef = u, W.Fragment = i, W.Lazy = m, W.Memo = p, W.Portal = t, W.Profiler = a, W.StrictMode = o, W.Suspense = f, W.isAsyncMode = function(h) {
582
- return F(h) || w(h) === s;
583
- }, W.isConcurrentMode = F, W.isContextConsumer = function(h) {
614
+ return K.AsyncMode = s, K.ConcurrentMode = c, K.ContextConsumer = r, K.ContextProvider = l, K.Element = n, K.ForwardRef = d, K.Fragment = i, K.Lazy = m, K.Memo = p, K.Portal = t, K.Profiler = a, K.StrictMode = o, K.Suspense = f, K.isAsyncMode = function(h) {
615
+ return E(h) || w(h) === s;
616
+ }, K.isConcurrentMode = E, K.isContextConsumer = function(h) {
584
617
  return w(h) === r;
585
- }, W.isContextProvider = function(h) {
618
+ }, K.isContextProvider = function(h) {
586
619
  return w(h) === l;
587
- }, W.isElement = function(h) {
620
+ }, K.isElement = function(h) {
588
621
  return typeof h == "object" && h !== null && h.$$typeof === n;
589
- }, W.isForwardRef = function(h) {
590
- return w(h) === u;
591
- }, W.isFragment = function(h) {
622
+ }, K.isForwardRef = function(h) {
623
+ return w(h) === d;
624
+ }, K.isFragment = function(h) {
592
625
  return w(h) === i;
593
- }, W.isLazy = function(h) {
626
+ }, K.isLazy = function(h) {
594
627
  return w(h) === m;
595
- }, W.isMemo = function(h) {
628
+ }, K.isMemo = function(h) {
596
629
  return w(h) === p;
597
- }, W.isPortal = function(h) {
630
+ }, K.isPortal = function(h) {
598
631
  return w(h) === t;
599
- }, W.isProfiler = function(h) {
632
+ }, K.isProfiler = function(h) {
600
633
  return w(h) === a;
601
- }, W.isStrictMode = function(h) {
634
+ }, K.isStrictMode = function(h) {
602
635
  return w(h) === o;
603
- }, W.isSuspense = function(h) {
636
+ }, K.isSuspense = function(h) {
604
637
  return w(h) === f;
605
- }, W.isValidElementType = function(h) {
606
- return typeof h == "string" || typeof h == "function" || h === i || h === c || h === a || h === o || h === f || h === g || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === p || h.$$typeof === l || h.$$typeof === r || h.$$typeof === u || h.$$typeof === b || h.$$typeof === x || h.$$typeof === E || h.$$typeof === v);
607
- }, W.typeOf = w, W;
638
+ }, K.isValidElementType = function(h) {
639
+ return typeof h == "string" || typeof h == "function" || h === i || h === c || h === a || h === o || h === f || h === g || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === p || h.$$typeof === l || h.$$typeof === r || h.$$typeof === d || h.$$typeof === S || h.$$typeof === x || h.$$typeof === b || h.$$typeof === v);
640
+ }, K.typeOf = w, K;
608
641
  }
609
- var Y = {};
642
+ var W = {};
610
643
  /** @license React v16.13.1
611
644
  * react-is.development.js
612
645
  *
@@ -618,89 +651,89 @@ var Y = {};
618
651
  var ln;
619
652
  function Fo() {
620
653
  return ln || (ln = 1, process.env.NODE_ENV !== "production" && function() {
621
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, r = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
622
- function w(S) {
623
- return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
624
- S === i || S === c || S === a || S === o || S === f || S === g || typeof S == "object" && S !== null && (S.$$typeof === m || S.$$typeof === p || S.$$typeof === l || S.$$typeof === r || S.$$typeof === u || S.$$typeof === b || S.$$typeof === x || S.$$typeof === E || S.$$typeof === v);
654
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, r = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
655
+ function w(C) {
656
+ return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
657
+ C === i || C === c || C === a || C === o || C === f || C === g || typeof C == "object" && C !== null && (C.$$typeof === m || C.$$typeof === p || C.$$typeof === l || C.$$typeof === r || C.$$typeof === d || C.$$typeof === S || C.$$typeof === x || C.$$typeof === b || C.$$typeof === v);
625
658
  }
626
- function F(S) {
627
- if (typeof S == "object" && S !== null) {
628
- var fe = S.$$typeof;
629
- switch (fe) {
659
+ function E(C) {
660
+ if (typeof C == "object" && C !== null) {
661
+ var me = C.$$typeof;
662
+ switch (me) {
630
663
  case n:
631
- var Fe = S.type;
632
- switch (Fe) {
664
+ var Pe = C.type;
665
+ switch (Pe) {
633
666
  case s:
634
667
  case c:
635
668
  case i:
636
669
  case a:
637
670
  case o:
638
671
  case f:
639
- return Fe;
672
+ return Pe;
640
673
  default:
641
- var Te = Fe && Fe.$$typeof;
674
+ var Te = Pe && Pe.$$typeof;
642
675
  switch (Te) {
643
676
  case r:
644
- case u:
677
+ case d:
645
678
  case m:
646
679
  case p:
647
680
  case l:
648
681
  return Te;
649
682
  default:
650
- return fe;
683
+ return me;
651
684
  }
652
685
  }
653
686
  case t:
654
- return fe;
687
+ return me;
655
688
  }
656
689
  }
657
690
  }
658
- var h = s, P = c, z = r, X = l, ee = n, ce = u, ue = i, he = m, k = p, _ = t, q = a, K = o, J = f, ie = !1;
659
- function te(S) {
660
- return ie || (ie = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(S) || F(S) === s;
691
+ var h = s, P = c, N = r, Y = l, Z = n, ce = d, pe = i, he = m, F = p, R = t, B = a, Q = o, ee = f, le = !1;
692
+ function ne(C) {
693
+ return le || (le = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(C) || E(C) === s;
661
694
  }
662
- function y(S) {
663
- return F(S) === c;
695
+ function y(C) {
696
+ return E(C) === c;
664
697
  }
665
- function R(S) {
666
- return F(S) === r;
698
+ function k(C) {
699
+ return E(C) === r;
667
700
  }
668
- function M(S) {
669
- return F(S) === l;
701
+ function j(C) {
702
+ return E(C) === l;
670
703
  }
671
- function j(S) {
672
- return typeof S == "object" && S !== null && S.$$typeof === n;
704
+ function O(C) {
705
+ return typeof C == "object" && C !== null && C.$$typeof === n;
673
706
  }
674
- function I(S) {
675
- return F(S) === u;
707
+ function I(C) {
708
+ return E(C) === d;
676
709
  }
677
- function N(S) {
678
- return F(S) === i;
710
+ function z(C) {
711
+ return E(C) === i;
679
712
  }
680
- function O(S) {
681
- return F(S) === m;
713
+ function M(C) {
714
+ return E(C) === m;
682
715
  }
683
- function T(S) {
684
- return F(S) === p;
716
+ function T(C) {
717
+ return E(C) === p;
685
718
  }
686
- function H(S) {
687
- return F(S) === t;
719
+ function H(C) {
720
+ return E(C) === t;
688
721
  }
689
- function B(S) {
690
- return F(S) === a;
722
+ function q(C) {
723
+ return E(C) === a;
691
724
  }
692
- function V(S) {
693
- return F(S) === o;
725
+ function V(C) {
726
+ return E(C) === o;
694
727
  }
695
- function oe(S) {
696
- return F(S) === f;
728
+ function te(C) {
729
+ return E(C) === f;
697
730
  }
698
- Y.AsyncMode = h, Y.ConcurrentMode = P, Y.ContextConsumer = z, Y.ContextProvider = X, Y.Element = ee, Y.ForwardRef = ce, Y.Fragment = ue, Y.Lazy = he, Y.Memo = k, Y.Portal = _, Y.Profiler = q, Y.StrictMode = K, Y.Suspense = J, Y.isAsyncMode = te, Y.isConcurrentMode = y, Y.isContextConsumer = R, Y.isContextProvider = M, Y.isElement = j, Y.isForwardRef = I, Y.isFragment = N, Y.isLazy = O, Y.isMemo = T, Y.isPortal = H, Y.isProfiler = B, Y.isStrictMode = V, Y.isSuspense = oe, Y.isValidElementType = w, Y.typeOf = F;
699
- }()), Y;
731
+ W.AsyncMode = h, W.ConcurrentMode = P, W.ContextConsumer = N, W.ContextProvider = Y, W.Element = Z, W.ForwardRef = ce, W.Fragment = pe, W.Lazy = he, W.Memo = F, W.Portal = R, W.Profiler = B, W.StrictMode = Q, W.Suspense = ee, W.isAsyncMode = ne, W.isConcurrentMode = y, W.isContextConsumer = k, W.isContextProvider = j, W.isElement = O, W.isForwardRef = I, W.isFragment = z, W.isLazy = M, W.isMemo = T, W.isPortal = H, W.isProfiler = q, W.isStrictMode = V, W.isSuspense = te, W.isValidElementType = w, W.typeOf = E;
732
+ }()), W;
700
733
  }
701
734
  var sn;
702
- function qn() {
703
- return sn || (sn = 1, process.env.NODE_ENV === "production" ? Ke.exports = ko() : Ke.exports = Fo()), Ke.exports;
735
+ function Gn() {
736
+ return sn || (sn = 1, process.env.NODE_ENV === "production" ? Ke.exports = Eo() : Ke.exports = Fo()), Ke.exports;
704
737
  }
705
738
  /*
706
739
  object-assign
@@ -726,22 +759,22 @@ function Po() {
726
759
  return !1;
727
760
  for (var l = {}, r = 0; r < 10; r++)
728
761
  l["_" + String.fromCharCode(r)] = r;
729
- var s = Object.getOwnPropertyNames(l).map(function(u) {
730
- return l[u];
762
+ var s = Object.getOwnPropertyNames(l).map(function(d) {
763
+ return l[d];
731
764
  });
732
765
  if (s.join("") !== "0123456789")
733
766
  return !1;
734
767
  var c = {};
735
- return "abcdefghijklmnopqrst".split("").forEach(function(u) {
736
- c[u] = u;
768
+ return "abcdefghijklmnopqrst".split("").forEach(function(d) {
769
+ c[d] = d;
737
770
  }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
738
771
  } catch {
739
772
  return !1;
740
773
  }
741
774
  }
742
775
  return mt = o() ? Object.assign : function(a, l) {
743
- for (var r, s = i(a), c, u = 1; u < arguments.length; u++) {
744
- r = Object(arguments[u]);
776
+ for (var r, s = i(a), c, d = 1; d < arguments.length; d++) {
777
+ r = Object(arguments[d]);
745
778
  for (var f in r)
746
779
  n.call(r, f) && (s[f] = r[f]);
747
780
  if (e) {
@@ -754,14 +787,14 @@ function Po() {
754
787
  }, mt;
755
788
  }
756
789
  var vt, pn;
757
- function Wt() {
790
+ function Yt() {
758
791
  if (pn) return vt;
759
792
  pn = 1;
760
793
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
761
794
  return vt = e, vt;
762
795
  }
763
796
  var xt, un;
764
- function Gn() {
797
+ function Bn() {
765
798
  return un || (un = 1, xt = Function.call.bind(Object.prototype.hasOwnProperty)), xt;
766
799
  }
767
800
  var ht, dn;
@@ -771,7 +804,7 @@ function Io() {
771
804
  var e = function() {
772
805
  };
773
806
  if (process.env.NODE_ENV !== "production") {
774
- var n = /* @__PURE__ */ Wt(), t = {}, i = /* @__PURE__ */ Gn();
807
+ var n = /* @__PURE__ */ Yt(), t = {}, i = /* @__PURE__ */ Bn();
775
808
  e = function(a) {
776
809
  var l = "Warning: " + a;
777
810
  typeof console < "u" && console.error(l);
@@ -783,22 +816,22 @@ function Io() {
783
816
  }
784
817
  function o(a, l, r, s, c) {
785
818
  if (process.env.NODE_ENV !== "production") {
786
- for (var u in a)
787
- if (i(a, u)) {
819
+ for (var d in a)
820
+ if (i(a, d)) {
788
821
  var f;
789
822
  try {
790
- if (typeof a[u] != "function") {
823
+ if (typeof a[d] != "function") {
791
824
  var g = Error(
792
- (s || "React class") + ": " + r + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
825
+ (s || "React class") + ": " + r + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
793
826
  );
794
827
  throw g.name = "Invariant Violation", g;
795
828
  }
796
- f = a[u](l, u, s, r, null, n);
829
+ f = a[d](l, d, s, r, null, n);
797
830
  } catch (m) {
798
831
  f = m;
799
832
  }
800
833
  if (f && !(f instanceof Error) && e(
801
- (s || "React class") + ": type specification of " + r + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
834
+ (s || "React class") + ": type specification of " + r + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
802
835
  ), f instanceof Error && !(f.message in t)) {
803
836
  t[f.message] = !0;
804
837
  var p = c ? c() : "";
@@ -817,7 +850,7 @@ var wt, gn;
817
850
  function Do() {
818
851
  if (gn) return wt;
819
852
  gn = 1;
820
- var e = qn(), n = Po(), t = /* @__PURE__ */ Wt(), i = /* @__PURE__ */ Gn(), o = /* @__PURE__ */ Io(), a = function() {
853
+ var e = Gn(), n = Po(), t = /* @__PURE__ */ Yt(), i = /* @__PURE__ */ Bn(), o = /* @__PURE__ */ Io(), a = function() {
821
854
  };
822
855
  process.env.NODE_ENV !== "production" && (a = function(r) {
823
856
  var s = "Warning: " + r;
@@ -831,11 +864,11 @@ function Do() {
831
864
  return null;
832
865
  }
833
866
  return wt = function(r, s) {
834
- var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
867
+ var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
835
868
  function f(y) {
836
- var R = y && (c && y[c] || y[u]);
837
- if (typeof R == "function")
838
- return R;
869
+ var k = y && (c && y[c] || y[d]);
870
+ if (typeof k == "function")
871
+ return k;
839
872
  }
840
873
  var g = "<<anonymous>>", p = {
841
874
  array: x("array"),
@@ -846,223 +879,223 @@ function Do() {
846
879
  object: x("object"),
847
880
  string: x("string"),
848
881
  symbol: x("symbol"),
849
- any: E(),
882
+ any: b(),
850
883
  arrayOf: w,
851
- element: F(),
884
+ element: E(),
852
885
  elementType: h(),
853
886
  instanceOf: P,
854
887
  node: ce(),
855
- objectOf: X,
856
- oneOf: z,
857
- oneOfType: ee,
888
+ objectOf: Y,
889
+ oneOf: N,
890
+ oneOfType: Z,
858
891
  shape: he,
859
- exact: k
892
+ exact: F
860
893
  };
861
- function m(y, R) {
862
- return y === R ? y !== 0 || 1 / y === 1 / R : y !== y && R !== R;
894
+ function m(y, k) {
895
+ return y === k ? y !== 0 || 1 / y === 1 / k : y !== y && k !== k;
863
896
  }
864
- function v(y, R) {
865
- this.message = y, this.data = R && typeof R == "object" ? R : {}, this.stack = "";
897
+ function v(y, k) {
898
+ this.message = y, this.data = k && typeof k == "object" ? k : {}, this.stack = "";
866
899
  }
867
900
  v.prototype = Error.prototype;
868
- function b(y) {
901
+ function S(y) {
869
902
  if (process.env.NODE_ENV !== "production")
870
- var R = {}, M = 0;
871
- function j(N, O, T, H, B, V, oe) {
872
- if (H = H || g, V = V || T, oe !== t) {
903
+ var k = {}, j = 0;
904
+ function O(z, M, T, H, q, V, te) {
905
+ if (H = H || g, V = V || T, te !== t) {
873
906
  if (s) {
874
- var S = new Error(
907
+ var C = new Error(
875
908
  "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"
876
909
  );
877
- throw S.name = "Invariant Violation", S;
910
+ throw C.name = "Invariant Violation", C;
878
911
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
879
- var fe = H + ":" + T;
880
- !R[fe] && // Avoid spamming the console because they are often not actionable except for lib authors
881
- M < 3 && (a(
912
+ var me = H + ":" + T;
913
+ !k[me] && // Avoid spamming the console because they are often not actionable except for lib authors
914
+ j < 3 && (a(
882
915
  "You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + H + "`. 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."
883
- ), R[fe] = !0, M++);
916
+ ), k[me] = !0, j++);
884
917
  }
885
918
  }
886
- return O[T] == null ? N ? O[T] === null ? new v("The " + B + " `" + V + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new v("The " + B + " `" + V + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : y(O, T, H, B, V);
919
+ return M[T] == null ? z ? M[T] === null ? new v("The " + q + " `" + V + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new v("The " + q + " `" + V + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : y(M, T, H, q, V);
887
920
  }
888
- var I = j.bind(null, !1);
889
- return I.isRequired = j.bind(null, !0), I;
921
+ var I = O.bind(null, !1);
922
+ return I.isRequired = O.bind(null, !0), I;
890
923
  }
891
924
  function x(y) {
892
- function R(M, j, I, N, O, T) {
893
- var H = M[j], B = K(H);
894
- if (B !== y) {
895
- var V = J(H);
925
+ function k(j, O, I, z, M, T) {
926
+ var H = j[O], q = Q(H);
927
+ if (q !== y) {
928
+ var V = ee(H);
896
929
  return new v(
897
- "Invalid " + N + " `" + O + "` of type " + ("`" + V + "` supplied to `" + I + "`, expected ") + ("`" + y + "`."),
930
+ "Invalid " + z + " `" + M + "` of type " + ("`" + V + "` supplied to `" + I + "`, expected ") + ("`" + y + "`."),
898
931
  { expectedType: y }
899
932
  );
900
933
  }
901
934
  return null;
902
935
  }
903
- return b(R);
936
+ return S(k);
904
937
  }
905
- function E() {
906
- return b(l);
938
+ function b() {
939
+ return S(l);
907
940
  }
908
941
  function w(y) {
909
- function R(M, j, I, N, O) {
942
+ function k(j, O, I, z, M) {
910
943
  if (typeof y != "function")
911
- return new v("Property `" + O + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
912
- var T = M[j];
944
+ return new v("Property `" + M + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
945
+ var T = j[O];
913
946
  if (!Array.isArray(T)) {
914
- var H = K(T);
915
- return new v("Invalid " + N + " `" + O + "` of type " + ("`" + H + "` supplied to `" + I + "`, expected an array."));
947
+ var H = Q(T);
948
+ return new v("Invalid " + z + " `" + M + "` of type " + ("`" + H + "` supplied to `" + I + "`, expected an array."));
916
949
  }
917
- for (var B = 0; B < T.length; B++) {
918
- var V = y(T, B, I, N, O + "[" + B + "]", t);
950
+ for (var q = 0; q < T.length; q++) {
951
+ var V = y(T, q, I, z, M + "[" + q + "]", t);
919
952
  if (V instanceof Error)
920
953
  return V;
921
954
  }
922
955
  return null;
923
956
  }
924
- return b(R);
957
+ return S(k);
925
958
  }
926
- function F() {
927
- function y(R, M, j, I, N) {
928
- var O = R[M];
929
- if (!r(O)) {
930
- var T = K(O);
931
- return new v("Invalid " + I + " `" + N + "` of type " + ("`" + T + "` supplied to `" + j + "`, expected a single ReactElement."));
959
+ function E() {
960
+ function y(k, j, O, I, z) {
961
+ var M = k[j];
962
+ if (!r(M)) {
963
+ var T = Q(M);
964
+ return new v("Invalid " + I + " `" + z + "` of type " + ("`" + T + "` supplied to `" + O + "`, expected a single ReactElement."));
932
965
  }
933
966
  return null;
934
967
  }
935
- return b(y);
968
+ return S(y);
936
969
  }
937
970
  function h() {
938
- function y(R, M, j, I, N) {
939
- var O = R[M];
940
- if (!e.isValidElementType(O)) {
941
- var T = K(O);
942
- return new v("Invalid " + I + " `" + N + "` of type " + ("`" + T + "` supplied to `" + j + "`, expected a single ReactElement type."));
971
+ function y(k, j, O, I, z) {
972
+ var M = k[j];
973
+ if (!e.isValidElementType(M)) {
974
+ var T = Q(M);
975
+ return new v("Invalid " + I + " `" + z + "` of type " + ("`" + T + "` supplied to `" + O + "`, expected a single ReactElement type."));
943
976
  }
944
977
  return null;
945
978
  }
946
- return b(y);
979
+ return S(y);
947
980
  }
948
981
  function P(y) {
949
- function R(M, j, I, N, O) {
950
- if (!(M[j] instanceof y)) {
951
- var T = y.name || g, H = te(M[j]);
952
- return new v("Invalid " + N + " `" + O + "` of type " + ("`" + H + "` supplied to `" + I + "`, expected ") + ("instance of `" + T + "`."));
982
+ function k(j, O, I, z, M) {
983
+ if (!(j[O] instanceof y)) {
984
+ var T = y.name || g, H = ne(j[O]);
985
+ return new v("Invalid " + z + " `" + M + "` of type " + ("`" + H + "` supplied to `" + I + "`, expected ") + ("instance of `" + T + "`."));
953
986
  }
954
987
  return null;
955
988
  }
956
- return b(R);
989
+ return S(k);
957
990
  }
958
- function z(y) {
991
+ function N(y) {
959
992
  if (!Array.isArray(y))
960
993
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
961
994
  "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])."
962
995
  ) : a("Invalid argument supplied to oneOf, expected an array.")), l;
963
- function R(M, j, I, N, O) {
964
- for (var T = M[j], H = 0; H < y.length; H++)
996
+ function k(j, O, I, z, M) {
997
+ for (var T = j[O], H = 0; H < y.length; H++)
965
998
  if (m(T, y[H]))
966
999
  return null;
967
- var B = JSON.stringify(y, function(oe, S) {
968
- var fe = J(S);
969
- return fe === "symbol" ? String(S) : S;
1000
+ var q = JSON.stringify(y, function(te, C) {
1001
+ var me = ee(C);
1002
+ return me === "symbol" ? String(C) : C;
970
1003
  });
971
- return new v("Invalid " + N + " `" + O + "` of value `" + String(T) + "` " + ("supplied to `" + I + "`, expected one of " + B + "."));
1004
+ return new v("Invalid " + z + " `" + M + "` of value `" + String(T) + "` " + ("supplied to `" + I + "`, expected one of " + q + "."));
972
1005
  }
973
- return b(R);
1006
+ return S(k);
974
1007
  }
975
- function X(y) {
976
- function R(M, j, I, N, O) {
1008
+ function Y(y) {
1009
+ function k(j, O, I, z, M) {
977
1010
  if (typeof y != "function")
978
- return new v("Property `" + O + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
979
- var T = M[j], H = K(T);
1011
+ return new v("Property `" + M + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
1012
+ var T = j[O], H = Q(T);
980
1013
  if (H !== "object")
981
- return new v("Invalid " + N + " `" + O + "` of type " + ("`" + H + "` supplied to `" + I + "`, expected an object."));
982
- for (var B in T)
983
- if (i(T, B)) {
984
- var V = y(T, B, I, N, O + "." + B, t);
1014
+ return new v("Invalid " + z + " `" + M + "` of type " + ("`" + H + "` supplied to `" + I + "`, expected an object."));
1015
+ for (var q in T)
1016
+ if (i(T, q)) {
1017
+ var V = y(T, q, I, z, M + "." + q, t);
985
1018
  if (V instanceof Error)
986
1019
  return V;
987
1020
  }
988
1021
  return null;
989
1022
  }
990
- return b(R);
1023
+ return S(k);
991
1024
  }
992
- function ee(y) {
1025
+ function Z(y) {
993
1026
  if (!Array.isArray(y))
994
1027
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), l;
995
- for (var R = 0; R < y.length; R++) {
996
- var M = y[R];
997
- if (typeof M != "function")
1028
+ for (var k = 0; k < y.length; k++) {
1029
+ var j = y[k];
1030
+ if (typeof j != "function")
998
1031
  return a(
999
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ie(M) + " at index " + R + "."
1032
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + le(j) + " at index " + k + "."
1000
1033
  ), l;
1001
1034
  }
1002
- function j(I, N, O, T, H) {
1003
- for (var B = [], V = 0; V < y.length; V++) {
1004
- var oe = y[V], S = oe(I, N, O, T, H, t);
1005
- if (S == null)
1035
+ function O(I, z, M, T, H) {
1036
+ for (var q = [], V = 0; V < y.length; V++) {
1037
+ var te = y[V], C = te(I, z, M, T, H, t);
1038
+ if (C == null)
1006
1039
  return null;
1007
- S.data && i(S.data, "expectedType") && B.push(S.data.expectedType);
1040
+ C.data && i(C.data, "expectedType") && q.push(C.data.expectedType);
1008
1041
  }
1009
- var fe = B.length > 0 ? ", expected one of type [" + B.join(", ") + "]" : "";
1010
- return new v("Invalid " + T + " `" + H + "` supplied to " + ("`" + O + "`" + fe + "."));
1042
+ var me = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
1043
+ return new v("Invalid " + T + " `" + H + "` supplied to " + ("`" + M + "`" + me + "."));
1011
1044
  }
1012
- return b(j);
1045
+ return S(O);
1013
1046
  }
1014
1047
  function ce() {
1015
- function y(R, M, j, I, N) {
1016
- return _(R[M]) ? null : new v("Invalid " + I + " `" + N + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
1048
+ function y(k, j, O, I, z) {
1049
+ return R(k[j]) ? null : new v("Invalid " + I + " `" + z + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
1017
1050
  }
1018
- return b(y);
1051
+ return S(y);
1019
1052
  }
1020
- function ue(y, R, M, j, I) {
1053
+ function pe(y, k, j, O, I) {
1021
1054
  return new v(
1022
- (y || "React class") + ": " + R + " type `" + M + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
1055
+ (y || "React class") + ": " + k + " type `" + j + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
1023
1056
  );
1024
1057
  }
1025
1058
  function he(y) {
1026
- function R(M, j, I, N, O) {
1027
- var T = M[j], H = K(T);
1059
+ function k(j, O, I, z, M) {
1060
+ var T = j[O], H = Q(T);
1028
1061
  if (H !== "object")
1029
- return new v("Invalid " + N + " `" + O + "` of type `" + H + "` " + ("supplied to `" + I + "`, expected `object`."));
1030
- for (var B in y) {
1031
- var V = y[B];
1062
+ return new v("Invalid " + z + " `" + M + "` of type `" + H + "` " + ("supplied to `" + I + "`, expected `object`."));
1063
+ for (var q in y) {
1064
+ var V = y[q];
1032
1065
  if (typeof V != "function")
1033
- return ue(I, N, O, B, J(V));
1034
- var oe = V(T, B, I, N, O + "." + B, t);
1035
- if (oe)
1036
- return oe;
1066
+ return pe(I, z, M, q, ee(V));
1067
+ var te = V(T, q, I, z, M + "." + q, t);
1068
+ if (te)
1069
+ return te;
1037
1070
  }
1038
1071
  return null;
1039
1072
  }
1040
- return b(R);
1073
+ return S(k);
1041
1074
  }
1042
- function k(y) {
1043
- function R(M, j, I, N, O) {
1044
- var T = M[j], H = K(T);
1075
+ function F(y) {
1076
+ function k(j, O, I, z, M) {
1077
+ var T = j[O], H = Q(T);
1045
1078
  if (H !== "object")
1046
- return new v("Invalid " + N + " `" + O + "` of type `" + H + "` " + ("supplied to `" + I + "`, expected `object`."));
1047
- var B = n({}, M[j], y);
1048
- for (var V in B) {
1049
- var oe = y[V];
1050
- if (i(y, V) && typeof oe != "function")
1051
- return ue(I, N, O, V, J(oe));
1052
- if (!oe)
1079
+ return new v("Invalid " + z + " `" + M + "` of type `" + H + "` " + ("supplied to `" + I + "`, expected `object`."));
1080
+ var q = n({}, j[O], y);
1081
+ for (var V in q) {
1082
+ var te = y[V];
1083
+ if (i(y, V) && typeof te != "function")
1084
+ return pe(I, z, M, V, ee(te));
1085
+ if (!te)
1053
1086
  return new v(
1054
- "Invalid " + N + " `" + O + "` key `" + V + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(M[j], null, " ") + `
1087
+ "Invalid " + z + " `" + M + "` key `" + V + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(j[O], null, " ") + `
1055
1088
  Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
1056
1089
  );
1057
- var S = oe(T, V, I, N, O + "." + V, t);
1058
- if (S)
1059
- return S;
1090
+ var C = te(T, V, I, z, M + "." + V, t);
1091
+ if (C)
1092
+ return C;
1060
1093
  }
1061
1094
  return null;
1062
1095
  }
1063
- return b(R);
1096
+ return S(k);
1064
1097
  }
1065
- function _(y) {
1098
+ function R(y) {
1066
1099
  switch (typeof y) {
1067
1100
  case "number":
1068
1101
  case "string":
@@ -1072,20 +1105,20 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
1072
1105
  return !y;
1073
1106
  case "object":
1074
1107
  if (Array.isArray(y))
1075
- return y.every(_);
1108
+ return y.every(R);
1076
1109
  if (y === null || r(y))
1077
1110
  return !0;
1078
- var R = f(y);
1079
- if (R) {
1080
- var M = R.call(y), j;
1081
- if (R !== y.entries) {
1082
- for (; !(j = M.next()).done; )
1083
- if (!_(j.value))
1111
+ var k = f(y);
1112
+ if (k) {
1113
+ var j = k.call(y), O;
1114
+ if (k !== y.entries) {
1115
+ for (; !(O = j.next()).done; )
1116
+ if (!R(O.value))
1084
1117
  return !1;
1085
1118
  } else
1086
- for (; !(j = M.next()).done; ) {
1087
- var I = j.value;
1088
- if (I && !_(I[1]))
1119
+ for (; !(O = j.next()).done; ) {
1120
+ var I = O.value;
1121
+ if (I && !R(I[1]))
1089
1122
  return !1;
1090
1123
  }
1091
1124
  } else
@@ -1095,40 +1128,40 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
1095
1128
  return !1;
1096
1129
  }
1097
1130
  }
1098
- function q(y, R) {
1099
- return y === "symbol" ? !0 : R ? R["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && R instanceof Symbol : !1;
1131
+ function B(y, k) {
1132
+ return y === "symbol" ? !0 : k ? k["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && k instanceof Symbol : !1;
1100
1133
  }
1101
- function K(y) {
1102
- var R = typeof y;
1103
- return Array.isArray(y) ? "array" : y instanceof RegExp ? "object" : q(R, y) ? "symbol" : R;
1134
+ function Q(y) {
1135
+ var k = typeof y;
1136
+ return Array.isArray(y) ? "array" : y instanceof RegExp ? "object" : B(k, y) ? "symbol" : k;
1104
1137
  }
1105
- function J(y) {
1138
+ function ee(y) {
1106
1139
  if (typeof y > "u" || y === null)
1107
1140
  return "" + y;
1108
- var R = K(y);
1109
- if (R === "object") {
1141
+ var k = Q(y);
1142
+ if (k === "object") {
1110
1143
  if (y instanceof Date)
1111
1144
  return "date";
1112
1145
  if (y instanceof RegExp)
1113
1146
  return "regexp";
1114
1147
  }
1115
- return R;
1148
+ return k;
1116
1149
  }
1117
- function ie(y) {
1118
- var R = J(y);
1119
- switch (R) {
1150
+ function le(y) {
1151
+ var k = ee(y);
1152
+ switch (k) {
1120
1153
  case "array":
1121
1154
  case "object":
1122
- return "an " + R;
1155
+ return "an " + k;
1123
1156
  case "boolean":
1124
1157
  case "date":
1125
1158
  case "regexp":
1126
- return "a " + R;
1159
+ return "a " + k;
1127
1160
  default:
1128
- return R;
1161
+ return k;
1129
1162
  }
1130
1163
  }
1131
- function te(y) {
1164
+ function ne(y) {
1132
1165
  return !y.constructor || !y.constructor.name ? g : y.constructor.name;
1133
1166
  }
1134
1167
  return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
@@ -1138,13 +1171,13 @@ var yt, fn;
1138
1171
  function Ao() {
1139
1172
  if (fn) return yt;
1140
1173
  fn = 1;
1141
- var e = /* @__PURE__ */ Wt();
1174
+ var e = /* @__PURE__ */ Yt();
1142
1175
  function n() {
1143
1176
  }
1144
1177
  function t() {
1145
1178
  }
1146
1179
  return t.resetWarningCache = n, yt = function() {
1147
- function i(l, r, s, c, u, f) {
1180
+ function i(l, r, s, c, d, f) {
1148
1181
  if (f !== e) {
1149
1182
  var g = new Error(
1150
1183
  "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"
@@ -1186,37 +1219,37 @@ var mn;
1186
1219
  function $o() {
1187
1220
  if (mn) return Ue.exports;
1188
1221
  if (mn = 1, process.env.NODE_ENV !== "production") {
1189
- var e = qn(), n = !0;
1222
+ var e = Gn(), n = !0;
1190
1223
  Ue.exports = /* @__PURE__ */ Do()(e.isElement, n);
1191
1224
  } else
1192
1225
  Ue.exports = /* @__PURE__ */ Ao()();
1193
1226
  return Ue.exports;
1194
1227
  }
1195
1228
  var Mo = /* @__PURE__ */ $o();
1196
- const Q = /* @__PURE__ */ Bt(Mo);
1197
- function De(e, n, t, i) {
1229
+ const X = /* @__PURE__ */ Ut(Mo);
1230
+ function Ae(e, n, t, i) {
1198
1231
  function o(a) {
1199
1232
  return a instanceof t ? a : new t(function(l) {
1200
1233
  l(a);
1201
1234
  });
1202
1235
  }
1203
1236
  return new (t || (t = Promise))(function(a, l) {
1204
- function r(u) {
1237
+ function r(d) {
1205
1238
  try {
1206
- c(i.next(u));
1239
+ c(i.next(d));
1207
1240
  } catch (f) {
1208
1241
  l(f);
1209
1242
  }
1210
1243
  }
1211
- function s(u) {
1244
+ function s(d) {
1212
1245
  try {
1213
- c(i.throw(u));
1246
+ c(i.throw(d));
1214
1247
  } catch (f) {
1215
1248
  l(f);
1216
1249
  }
1217
1250
  }
1218
- function c(u) {
1219
- u.done ? a(u.value) : o(u.value).then(r, s);
1251
+ function c(d) {
1252
+ d.done ? a(d.value) : o(d.value).then(r, s);
1220
1253
  }
1221
1254
  c((i = i.apply(e, n || [])).next());
1222
1255
  });
@@ -2457,7 +2490,7 @@ const To = [
2457
2490
  // Windows
2458
2491
  ];
2459
2492
  function zo(e) {
2460
- return De(this, void 0, void 0, function* () {
2493
+ return Ae(this, void 0, void 0, function* () {
2461
2494
  return tt(e) && Vo(e.dataTransfer) ? qo(e.dataTransfer, e.type) : Lo(e) ? No(e) : Array.isArray(e) && e.every((n) => "getFile" in n && typeof n.getFile == "function") ? Ho(e) : [];
2462
2495
  });
2463
2496
  }
@@ -2471,29 +2504,29 @@ function tt(e) {
2471
2504
  return typeof e == "object" && e !== null;
2472
2505
  }
2473
2506
  function No(e) {
2474
- return Dt(e.target.files).map((n) => je(n));
2507
+ return At(e.target.files).map((n) => je(n));
2475
2508
  }
2476
2509
  function Ho(e) {
2477
- return De(this, void 0, void 0, function* () {
2510
+ return Ae(this, void 0, void 0, function* () {
2478
2511
  return (yield Promise.all(e.map((t) => t.getFile()))).map((t) => je(t));
2479
2512
  });
2480
2513
  }
2481
2514
  function qo(e, n) {
2482
- return De(this, void 0, void 0, function* () {
2515
+ return Ae(this, void 0, void 0, function* () {
2483
2516
  if (e.items) {
2484
- const t = Dt(e.items).filter((o) => o.kind === "file");
2517
+ const t = At(e.items).filter((o) => o.kind === "file");
2485
2518
  if (n !== "drop")
2486
2519
  return t;
2487
2520
  const i = yield Promise.all(t.map(Go));
2488
- return xn(Bn(i));
2521
+ return xn(Un(i));
2489
2522
  }
2490
- return xn(Dt(e.files).map((t) => je(t)));
2523
+ return xn(At(e.files).map((t) => je(t)));
2491
2524
  });
2492
2525
  }
2493
2526
  function xn(e) {
2494
2527
  return e.filter((n) => To.indexOf(n.name) === -1);
2495
2528
  }
2496
- function Dt(e) {
2529
+ function At(e) {
2497
2530
  if (e === null)
2498
2531
  return [];
2499
2532
  const n = [];
@@ -2507,16 +2540,16 @@ function Go(e) {
2507
2540
  if (typeof e.webkitGetAsEntry != "function")
2508
2541
  return hn(e);
2509
2542
  const n = e.webkitGetAsEntry();
2510
- return n && n.isDirectory ? Un(n) : hn(e, n);
2543
+ return n && n.isDirectory ? Kn(n) : hn(e, n);
2511
2544
  }
2512
- function Bn(e) {
2545
+ function Un(e) {
2513
2546
  return e.reduce((n, t) => [
2514
2547
  ...n,
2515
- ...Array.isArray(t) ? Bn(t) : [t]
2548
+ ...Array.isArray(t) ? Un(t) : [t]
2516
2549
  ], []);
2517
2550
  }
2518
2551
  function hn(e, n) {
2519
- return De(this, void 0, void 0, function* () {
2552
+ return Ae(this, void 0, void 0, function* () {
2520
2553
  var t;
2521
2554
  if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
2522
2555
  const a = yield e.getAsFileSystemHandle();
@@ -2534,16 +2567,16 @@ function hn(e, n) {
2534
2567
  });
2535
2568
  }
2536
2569
  function Bo(e) {
2537
- return De(this, void 0, void 0, function* () {
2538
- return e.isDirectory ? Un(e) : Uo(e);
2570
+ return Ae(this, void 0, void 0, function* () {
2571
+ return e.isDirectory ? Kn(e) : Uo(e);
2539
2572
  });
2540
2573
  }
2541
- function Un(e) {
2574
+ function Kn(e) {
2542
2575
  const n = e.createReader();
2543
2576
  return new Promise((t, i) => {
2544
2577
  const o = [];
2545
2578
  function a() {
2546
- n.readEntries((l) => De(this, void 0, void 0, function* () {
2579
+ n.readEntries((l) => Ae(this, void 0, void 0, function* () {
2547
2580
  if (l.length) {
2548
2581
  const r = Promise.all(l.map(Bo));
2549
2582
  o.push(r), a();
@@ -2562,7 +2595,7 @@ function Un(e) {
2562
2595
  });
2563
2596
  }
2564
2597
  function Uo(e) {
2565
- return De(this, void 0, void 0, function* () {
2598
+ return Ae(this, void 0, void 0, function* () {
2566
2599
  return new Promise((n, t) => {
2567
2600
  e.file((i) => {
2568
2601
  const o = je(i, e.fullPath);
@@ -2590,9 +2623,9 @@ function Ko() {
2590
2623
  }), We;
2591
2624
  }
2592
2625
  var Wo = Ko();
2593
- const bt = /* @__PURE__ */ Bt(Wo);
2626
+ const bt = /* @__PURE__ */ Ut(Wo);
2594
2627
  function yn(e) {
2595
- return Qo(e) || Xo(e) || Wn(e) || Yo();
2628
+ return Qo(e) || Xo(e) || Yn(e) || Yo();
2596
2629
  }
2597
2630
  function Yo() {
2598
2631
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -2602,7 +2635,7 @@ function Xo(e) {
2602
2635
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
2603
2636
  }
2604
2637
  function Qo(e) {
2605
- if (Array.isArray(e)) return At(e);
2638
+ if (Array.isArray(e)) return $t(e);
2606
2639
  }
2607
2640
  function bn(e, n) {
2608
2641
  var t = Object.keys(e);
@@ -2618,32 +2651,32 @@ function Sn(e) {
2618
2651
  for (var n = 1; n < arguments.length; n++) {
2619
2652
  var t = arguments[n] != null ? arguments[n] : {};
2620
2653
  n % 2 ? bn(Object(t), !0).forEach(function(i) {
2621
- Kn(e, i, t[i]);
2654
+ Wn(e, i, t[i]);
2622
2655
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : bn(Object(t)).forEach(function(i) {
2623
2656
  Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(t, i));
2624
2657
  });
2625
2658
  }
2626
2659
  return e;
2627
2660
  }
2628
- function Kn(e, n, t) {
2661
+ function Wn(e, n, t) {
2629
2662
  return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
2630
2663
  }
2631
2664
  function He(e, n) {
2632
- return ea(e) || Zo(e, n) || Wn(e, n) || Jo();
2665
+ return ea(e) || Zo(e, n) || Yn(e, n) || Jo();
2633
2666
  }
2634
2667
  function Jo() {
2635
2668
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2636
2669
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2637
2670
  }
2638
- function Wn(e, n) {
2671
+ function Yn(e, n) {
2639
2672
  if (e) {
2640
- if (typeof e == "string") return At(e, n);
2673
+ if (typeof e == "string") return $t(e, n);
2641
2674
  var t = Object.prototype.toString.call(e).slice(8, -1);
2642
2675
  if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
2643
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return At(e, n);
2676
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return $t(e, n);
2644
2677
  }
2645
2678
  }
2646
- function At(e, n) {
2679
+ function $t(e, n) {
2647
2680
  (n == null || n > e.length) && (n = e.length);
2648
2681
  for (var t = 0, i = new Array(n); t < n; t++)
2649
2682
  i[t] = e[t];
@@ -2691,28 +2724,28 @@ var ta = typeof bt == "function" ? bt : bt.default, na = "file-invalid-type", ia
2691
2724
  code: aa,
2692
2725
  message: "Too many files"
2693
2726
  };
2694
- function Yn(e, n) {
2727
+ function Xn(e, n) {
2695
2728
  var t = e.type === "application/x-moz-file" || ta(e, n);
2696
2729
  return [t, t ? null : ra(n)];
2697
2730
  }
2698
- function Xn(e, n, t) {
2699
- if (Pe(e.size))
2700
- if (Pe(n) && Pe(t)) {
2731
+ function Qn(e, n, t) {
2732
+ if (Ie(e.size))
2733
+ if (Ie(n) && Ie(t)) {
2701
2734
  if (e.size > t) return [!1, Cn(t)];
2702
2735
  if (e.size < n) return [!1, _n(n)];
2703
2736
  } else {
2704
- if (Pe(n) && e.size < n) return [!1, _n(n)];
2705
- if (Pe(t) && e.size > t) return [!1, Cn(t)];
2737
+ if (Ie(n) && e.size < n) return [!1, _n(n)];
2738
+ if (Ie(t) && e.size > t) return [!1, Cn(t)];
2706
2739
  }
2707
2740
  return [!0, null];
2708
2741
  }
2709
- function Pe(e) {
2742
+ function Ie(e) {
2710
2743
  return e != null;
2711
2744
  }
2712
2745
  function sa(e) {
2713
2746
  var n = e.files, t = e.accept, i = e.minSize, o = e.maxSize, a = e.multiple, l = e.maxFiles, r = e.validator;
2714
2747
  return !a && n.length > 1 || a && l >= 1 && n.length > l ? !1 : n.every(function(s) {
2715
- var c = Yn(s, t), u = He(c, 1), f = u[0], g = Xn(s, i, o), p = He(g, 1), m = p[0], v = r ? r(s) : null;
2748
+ var c = Xn(s, t), d = He(c, 1), f = d[0], g = Qn(s, i, o), p = He(g, 1), m = p[0], v = r ? r(s) : null;
2716
2749
  return f && m && !v;
2717
2750
  });
2718
2751
  }
@@ -2752,13 +2785,13 @@ function da() {
2752
2785
  return "showOpenFilePicker" in window;
2753
2786
  }
2754
2787
  function ga(e) {
2755
- if (Pe(e)) {
2788
+ if (Ie(e)) {
2756
2789
  var n = Object.entries(e).filter(function(t) {
2757
2790
  var i = He(t, 2), o = i[0], a = i[1], l = !0;
2758
- return Qn(o) || (console.warn('Skipped "'.concat(o, '" 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.')), l = !1), (!Array.isArray(a) || !a.every(Jn)) && (console.warn('Skipped "'.concat(o, '" because an invalid file extension was provided.')), l = !1), l;
2791
+ return Jn(o) || (console.warn('Skipped "'.concat(o, '" 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.')), l = !1), (!Array.isArray(a) || !a.every(Zn)) && (console.warn('Skipped "'.concat(o, '" because an invalid file extension was provided.')), l = !1), l;
2759
2792
  }).reduce(function(t, i) {
2760
2793
  var o = He(i, 2), a = o[0], l = o[1];
2761
- return Sn(Sn({}, t), {}, Kn({}, a, l));
2794
+ return Sn(Sn({}, t), {}, Wn({}, a, l));
2762
2795
  }, {});
2763
2796
  return [{
2764
2797
  // description is required due to https://crbug.com/1264708
@@ -2769,12 +2802,12 @@ function ga(e) {
2769
2802
  return e;
2770
2803
  }
2771
2804
  function fa(e) {
2772
- if (Pe(e))
2805
+ if (Ie(e))
2773
2806
  return Object.entries(e).reduce(function(n, t) {
2774
2807
  var i = He(t, 2), o = i[0], a = i[1];
2775
2808
  return [].concat(yn(n), [o], yn(a));
2776
2809
  }, []).filter(function(n) {
2777
- return Qn(n) || Jn(n);
2810
+ return Jn(n) || Zn(n);
2778
2811
  }).join(",");
2779
2812
  }
2780
2813
  function ma(e) {
@@ -2783,15 +2816,15 @@ function ma(e) {
2783
2816
  function va(e) {
2784
2817
  return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
2785
2818
  }
2786
- function Qn(e) {
2819
+ function Jn(e) {
2787
2820
  return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
2788
2821
  }
2789
- function Jn(e) {
2822
+ function Zn(e) {
2790
2823
  return /^.*\.[\w]+$/.test(e);
2791
2824
  }
2792
2825
  var xa = ["children"], ha = ["open"], wa = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], ya = ["refKey", "onChange", "onClick"];
2793
2826
  function ba(e) {
2794
- return _a(e) || Ca(e) || Zn(e) || Sa();
2827
+ return _a(e) || Ca(e) || ei(e) || Sa();
2795
2828
  }
2796
2829
  function Sa() {
2797
2830
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -2801,30 +2834,30 @@ function Ca(e) {
2801
2834
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
2802
2835
  }
2803
2836
  function _a(e) {
2804
- if (Array.isArray(e)) return $t(e);
2837
+ if (Array.isArray(e)) return Mt(e);
2805
2838
  }
2806
2839
  function St(e, n) {
2807
- return ka(e) || Ea(e, n) || Zn(e, n) || Ra();
2840
+ return Ea(e) || ka(e, n) || ei(e, n) || Ra();
2808
2841
  }
2809
2842
  function Ra() {
2810
2843
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2811
2844
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2812
2845
  }
2813
- function Zn(e, n) {
2846
+ function ei(e, n) {
2814
2847
  if (e) {
2815
- if (typeof e == "string") return $t(e, n);
2848
+ if (typeof e == "string") return Mt(e, n);
2816
2849
  var t = Object.prototype.toString.call(e).slice(8, -1);
2817
2850
  if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
2818
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return $t(e, n);
2851
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Mt(e, n);
2819
2852
  }
2820
2853
  }
2821
- function $t(e, n) {
2854
+ function Mt(e, n) {
2822
2855
  (n == null || n > e.length) && (n = e.length);
2823
2856
  for (var t = 0, i = new Array(n); t < n; t++)
2824
2857
  i[t] = e[t];
2825
2858
  return i;
2826
2859
  }
2827
- function Ea(e, n) {
2860
+ function ka(e, n) {
2828
2861
  var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2829
2862
  if (t != null) {
2830
2863
  var i = [], o = !0, a = !1, l, r;
@@ -2843,10 +2876,10 @@ function Ea(e, n) {
2843
2876
  return i;
2844
2877
  }
2845
2878
  }
2846
- function ka(e) {
2879
+ function Ea(e) {
2847
2880
  if (Array.isArray(e)) return e;
2848
2881
  }
2849
- function En(e, n) {
2882
+ function kn(e, n) {
2850
2883
  var t = Object.keys(e);
2851
2884
  if (Object.getOwnPropertySymbols) {
2852
2885
  var i = Object.getOwnPropertySymbols(e);
@@ -2856,18 +2889,18 @@ function En(e, n) {
2856
2889
  }
2857
2890
  return t;
2858
2891
  }
2859
- function Z(e) {
2892
+ function J(e) {
2860
2893
  for (var n = 1; n < arguments.length; n++) {
2861
2894
  var t = arguments[n] != null ? arguments[n] : {};
2862
- n % 2 ? En(Object(t), !0).forEach(function(i) {
2863
- Mt(e, i, t[i]);
2864
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : En(Object(t)).forEach(function(i) {
2895
+ n % 2 ? kn(Object(t), !0).forEach(function(i) {
2896
+ Ot(e, i, t[i]);
2897
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : kn(Object(t)).forEach(function(i) {
2865
2898
  Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(t, i));
2866
2899
  });
2867
2900
  }
2868
2901
  return e;
2869
2902
  }
2870
- function Mt(e, n, t) {
2903
+ function Ot(e, n, t) {
2871
2904
  return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
2872
2905
  }
2873
2906
  function it(e, n) {
@@ -2887,18 +2920,18 @@ function Fa(e, n) {
2887
2920
  o = i[a], !(n.indexOf(o) >= 0) && (t[o] = e[o]);
2888
2921
  return t;
2889
2922
  }
2890
- var Yt = /* @__PURE__ */ Ri(function(e, n) {
2891
- var t = e.children, i = it(e, xa), o = ti(i), a = o.open, l = it(o, ha);
2923
+ var Xt = /* @__PURE__ */ ki(function(e, n) {
2924
+ var t = e.children, i = it(e, xa), o = ni(i), a = o.open, l = it(o, ha);
2892
2925
  return Ei(n, function() {
2893
2926
  return {
2894
2927
  open: a
2895
2928
  };
2896
- }, [a]), /* @__PURE__ */ Ci.createElement(On, null, t(Z(Z({}, l), {}, {
2929
+ }, [a]), /* @__PURE__ */ _i.createElement(On, null, t(J(J({}, l), {}, {
2897
2930
  open: a
2898
2931
  })));
2899
2932
  });
2900
- Yt.displayName = "Dropzone";
2901
- var ei = {
2933
+ Xt.displayName = "Dropzone";
2934
+ var ti = {
2902
2935
  disabled: !1,
2903
2936
  getFilesFromEvent: zo,
2904
2937
  maxSize: 1 / 0,
@@ -2914,8 +2947,8 @@ var ei = {
2914
2947
  useFsAccessApi: !1,
2915
2948
  autoFocus: !1
2916
2949
  };
2917
- Yt.defaultProps = ei;
2918
- Yt.propTypes = {
2950
+ Xt.defaultProps = ti;
2951
+ Xt.propTypes = {
2919
2952
  /**
2920
2953
  * Render function that exposes the dropzone state and prop getter fns
2921
2954
  *
@@ -2931,7 +2964,7 @@ Yt.propTypes = {
2931
2964
  * @param {File[]} params.acceptedFiles Accepted files
2932
2965
  * @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
2933
2966
  */
2934
- children: Q.func,
2967
+ children: X.func,
2935
2968
  /**
2936
2969
  * Set accepted file types.
2937
2970
  * Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
@@ -2939,90 +2972,90 @@ Yt.propTypes = {
2939
2972
  * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
2940
2973
  * Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
2941
2974
  */
2942
- accept: Q.objectOf(Q.arrayOf(Q.string)),
2975
+ accept: X.objectOf(X.arrayOf(X.string)),
2943
2976
  /**
2944
2977
  * Allow drag 'n' drop (or selection from the file dialog) of multiple files
2945
2978
  */
2946
- multiple: Q.bool,
2979
+ multiple: X.bool,
2947
2980
  /**
2948
2981
  * If false, allow dropped items to take over the current browser window
2949
2982
  */
2950
- preventDropOnDocument: Q.bool,
2983
+ preventDropOnDocument: X.bool,
2951
2984
  /**
2952
2985
  * If true, disables click to open the native file selection dialog
2953
2986
  */
2954
- noClick: Q.bool,
2987
+ noClick: X.bool,
2955
2988
  /**
2956
2989
  * If true, disables SPACE/ENTER to open the native file selection dialog.
2957
2990
  * Note that it also stops tracking the focus state.
2958
2991
  */
2959
- noKeyboard: Q.bool,
2992
+ noKeyboard: X.bool,
2960
2993
  /**
2961
2994
  * If true, disables drag 'n' drop
2962
2995
  */
2963
- noDrag: Q.bool,
2996
+ noDrag: X.bool,
2964
2997
  /**
2965
2998
  * If true, stops drag event propagation to parents
2966
2999
  */
2967
- noDragEventsBubbling: Q.bool,
3000
+ noDragEventsBubbling: X.bool,
2968
3001
  /**
2969
3002
  * Minimum file size (in bytes)
2970
3003
  */
2971
- minSize: Q.number,
3004
+ minSize: X.number,
2972
3005
  /**
2973
3006
  * Maximum file size (in bytes)
2974
3007
  */
2975
- maxSize: Q.number,
3008
+ maxSize: X.number,
2976
3009
  /**
2977
3010
  * Maximum accepted number of files
2978
3011
  * The default value is 0 which means there is no limitation to how many files are accepted.
2979
3012
  */
2980
- maxFiles: Q.number,
3013
+ maxFiles: X.number,
2981
3014
  /**
2982
3015
  * Enable/disable the dropzone
2983
3016
  */
2984
- disabled: Q.bool,
3017
+ disabled: X.bool,
2985
3018
  /**
2986
3019
  * Use this to provide a custom file aggregator
2987
3020
  *
2988
3021
  * @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
2989
3022
  */
2990
- getFilesFromEvent: Q.func,
3023
+ getFilesFromEvent: X.func,
2991
3024
  /**
2992
3025
  * Cb for when closing the file dialog with no selection
2993
3026
  */
2994
- onFileDialogCancel: Q.func,
3027
+ onFileDialogCancel: X.func,
2995
3028
  /**
2996
3029
  * Cb for when opening the file dialog
2997
3030
  */
2998
- onFileDialogOpen: Q.func,
3031
+ onFileDialogOpen: X.func,
2999
3032
  /**
3000
3033
  * Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
3001
3034
  * to open the file picker instead of using an `<input type="file">` click event.
3002
3035
  */
3003
- useFsAccessApi: Q.bool,
3036
+ useFsAccessApi: X.bool,
3004
3037
  /**
3005
3038
  * Set to true to focus the root element on render
3006
3039
  */
3007
- autoFocus: Q.bool,
3040
+ autoFocus: X.bool,
3008
3041
  /**
3009
3042
  * Cb for when the `dragenter` event occurs.
3010
3043
  *
3011
3044
  * @param {DragEvent} event
3012
3045
  */
3013
- onDragEnter: Q.func,
3046
+ onDragEnter: X.func,
3014
3047
  /**
3015
3048
  * Cb for when the `dragleave` event occurs
3016
3049
  *
3017
3050
  * @param {DragEvent} event
3018
3051
  */
3019
- onDragLeave: Q.func,
3052
+ onDragLeave: X.func,
3020
3053
  /**
3021
3054
  * Cb for when the `dragover` event occurs
3022
3055
  *
3023
3056
  * @param {DragEvent} event
3024
3057
  */
3025
- onDragOver: Q.func,
3058
+ onDragOver: X.func,
3026
3059
  /**
3027
3060
  * Cb for when the `drop` event occurs.
3028
3061
  * Note that this callback is invoked after the `getFilesFromEvent` callback is done.
@@ -3053,7 +3086,7 @@ Yt.propTypes = {
3053
3086
  * @param {FileRejection[]} fileRejections
3054
3087
  * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
3055
3088
  */
3056
- onDrop: Q.func,
3089
+ onDrop: X.func,
3057
3090
  /**
3058
3091
  * Cb for when the `drop` event occurs.
3059
3092
  * Note that if no files are accepted, this callback is not invoked.
@@ -3061,7 +3094,7 @@ Yt.propTypes = {
3061
3094
  * @param {File[]} files
3062
3095
  * @param {(DragEvent|Event)} event
3063
3096
  */
3064
- onDropAccepted: Q.func,
3097
+ onDropAccepted: X.func,
3065
3098
  /**
3066
3099
  * Cb for when the `drop` event occurs.
3067
3100
  * Note that if no files are rejected, this callback is not invoked.
@@ -3069,21 +3102,21 @@ Yt.propTypes = {
3069
3102
  * @param {FileRejection[]} fileRejections
3070
3103
  * @param {(DragEvent|Event)} event
3071
3104
  */
3072
- onDropRejected: Q.func,
3105
+ onDropRejected: X.func,
3073
3106
  /**
3074
3107
  * Cb for when there's some error from any of the promises.
3075
3108
  *
3076
3109
  * @param {Error} error
3077
3110
  */
3078
- onError: Q.func,
3111
+ onError: X.func,
3079
3112
  /**
3080
3113
  * Custom validation function. It must return null if there's no errors.
3081
3114
  * @param {File} file
3082
3115
  * @returns {FileError|FileError[]|null}
3083
3116
  */
3084
- validator: Q.func
3117
+ validator: X.func
3085
3118
  };
3086
- var Ot = {
3119
+ var jt = {
3087
3120
  isFocused: !1,
3088
3121
  isFileDialogActive: !1,
3089
3122
  isDragActive: !1,
@@ -3092,186 +3125,186 @@ var Ot = {
3092
3125
  acceptedFiles: [],
3093
3126
  fileRejections: []
3094
3127
  };
3095
- function ti() {
3096
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = Z(Z({}, ei), e), t = n.accept, i = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, l = n.minSize, r = n.multiple, s = n.maxFiles, c = n.onDragEnter, u = n.onDragLeave, f = n.onDragOver, g = n.onDrop, p = n.onDropAccepted, m = n.onDropRejected, v = n.onFileDialogCancel, b = n.onFileDialogOpen, x = n.useFsAccessApi, E = n.autoFocus, w = n.preventDropOnDocument, F = n.noClick, h = n.noKeyboard, P = n.noDrag, z = n.noDragEventsBubbling, X = n.onError, ee = n.validator, ce = le(function() {
3128
+ function ni() {
3129
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = J(J({}, ti), e), t = n.accept, i = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, l = n.minSize, r = n.multiple, s = n.maxFiles, c = n.onDragEnter, d = n.onDragLeave, f = n.onDragOver, g = n.onDrop, p = n.onDropAccepted, m = n.onDropRejected, v = n.onFileDialogCancel, S = n.onFileDialogOpen, x = n.useFsAccessApi, b = n.autoFocus, w = n.preventDropOnDocument, E = n.noClick, h = n.noKeyboard, P = n.noDrag, N = n.noDragEventsBubbling, Y = n.onError, Z = n.validator, ce = re(function() {
3097
3130
  return fa(t);
3098
- }, [t]), ue = le(function() {
3131
+ }, [t]), pe = re(function() {
3099
3132
  return ga(t);
3100
- }, [t]), he = le(function() {
3101
- return typeof b == "function" ? b : kn;
3102
- }, [b]), k = le(function() {
3103
- return typeof v == "function" ? v : kn;
3104
- }, [v]), _ = de(null), q = de(null), K = Mn(Pa, Ot), J = St(K, 2), ie = J[0], te = J[1], y = ie.isFocused, R = ie.isFileDialogActive, M = de(typeof window < "u" && window.isSecureContext && x && da()), j = function() {
3105
- !M.current && R && setTimeout(function() {
3106
- if (q.current) {
3107
- var $ = q.current.files;
3108
- $.length || (te({
3133
+ }, [t]), he = re(function() {
3134
+ return typeof S == "function" ? S : En;
3135
+ }, [S]), F = re(function() {
3136
+ return typeof v == "function" ? v : En;
3137
+ }, [v]), R = fe(null), B = fe(null), Q = Mn(Pa, jt), ee = St(Q, 2), le = ee[0], ne = ee[1], y = le.isFocused, k = le.isFileDialogActive, j = fe(typeof window < "u" && window.isSecureContext && x && da()), O = function() {
3138
+ !j.current && k && setTimeout(function() {
3139
+ if (B.current) {
3140
+ var $ = B.current.files;
3141
+ $.length || (ne({
3109
3142
  type: "closeDialog"
3110
- }), k());
3143
+ }), F());
3111
3144
  }
3112
3145
  }, 300);
3113
3146
  };
3114
- xe(function() {
3115
- return window.addEventListener("focus", j, !1), function() {
3116
- window.removeEventListener("focus", j, !1);
3147
+ ge(function() {
3148
+ return window.addEventListener("focus", O, !1), function() {
3149
+ window.removeEventListener("focus", O, !1);
3117
3150
  };
3118
- }, [q, R, k, M]);
3119
- var I = de([]), N = function($) {
3120
- _.current && _.current.contains($.target) || ($.preventDefault(), I.current = []);
3151
+ }, [B, k, F, j]);
3152
+ var I = fe([]), z = function($) {
3153
+ R.current && R.current.contains($.target) || ($.preventDefault(), I.current = []);
3121
3154
  };
3122
- xe(function() {
3123
- return w && (document.addEventListener("dragover", Rn, !1), document.addEventListener("drop", N, !1)), function() {
3124
- w && (document.removeEventListener("dragover", Rn), document.removeEventListener("drop", N));
3155
+ ge(function() {
3156
+ return w && (document.addEventListener("dragover", Rn, !1), document.addEventListener("drop", z, !1)), function() {
3157
+ w && (document.removeEventListener("dragover", Rn), document.removeEventListener("drop", z));
3125
3158
  };
3126
- }, [_, w]), xe(function() {
3127
- return !i && E && _.current && _.current.focus(), function() {
3159
+ }, [R, w]), ge(function() {
3160
+ return !i && b && R.current && R.current.focus(), function() {
3128
3161
  };
3129
- }, [_, E, i]);
3130
- var O = U(function(C) {
3131
- X ? X(C) : console.error(C);
3132
- }, [X]), T = U(function(C) {
3133
- C.preventDefault(), C.persist(), Ge(C), I.current = [].concat(ba(I.current), [C.target]), Ye(C) && Promise.resolve(o(C)).then(function($) {
3134
- if (!(nt(C) && !z)) {
3135
- var ne = $.length, ae = ne > 0 && sa({
3162
+ }, [R, b, i]);
3163
+ var M = U(function(_) {
3164
+ Y ? Y(_) : console.error(_);
3165
+ }, [Y]), T = U(function(_) {
3166
+ _.preventDefault(), _.persist(), Ge(_), I.current = [].concat(ba(I.current), [_.target]), Ye(_) && Promise.resolve(o(_)).then(function($) {
3167
+ if (!(nt(_) && !N)) {
3168
+ var ie = $.length, oe = ie > 0 && sa({
3136
3169
  files: $,
3137
3170
  accept: ce,
3138
3171
  minSize: l,
3139
3172
  maxSize: a,
3140
3173
  multiple: r,
3141
3174
  maxFiles: s,
3142
- validator: ee
3143
- }), me = ne > 0 && !ae;
3144
- te({
3145
- isDragAccept: ae,
3146
- isDragReject: me,
3175
+ validator: Z
3176
+ }), ve = ie > 0 && !oe;
3177
+ ne({
3178
+ isDragAccept: oe,
3179
+ isDragReject: ve,
3147
3180
  isDragActive: !0,
3148
3181
  type: "setDraggedFiles"
3149
- }), c && c(C);
3182
+ }), c && c(_);
3150
3183
  }
3151
3184
  }).catch(function($) {
3152
- return O($);
3185
+ return M($);
3153
3186
  });
3154
- }, [o, c, O, z, ce, l, a, r, s, ee]), H = U(function(C) {
3155
- C.preventDefault(), C.persist(), Ge(C);
3156
- var $ = Ye(C);
3157
- if ($ && C.dataTransfer)
3187
+ }, [o, c, M, N, ce, l, a, r, s, Z]), H = U(function(_) {
3188
+ _.preventDefault(), _.persist(), Ge(_);
3189
+ var $ = Ye(_);
3190
+ if ($ && _.dataTransfer)
3158
3191
  try {
3159
- C.dataTransfer.dropEffect = "copy";
3192
+ _.dataTransfer.dropEffect = "copy";
3160
3193
  } catch {
3161
3194
  }
3162
- return $ && f && f(C), !1;
3163
- }, [f, z]), B = U(function(C) {
3164
- C.preventDefault(), C.persist(), Ge(C);
3165
- var $ = I.current.filter(function(ae) {
3166
- return _.current && _.current.contains(ae);
3167
- }), ne = $.indexOf(C.target);
3168
- ne !== -1 && $.splice(ne, 1), I.current = $, !($.length > 0) && (te({
3195
+ return $ && f && f(_), !1;
3196
+ }, [f, N]), q = U(function(_) {
3197
+ _.preventDefault(), _.persist(), Ge(_);
3198
+ var $ = I.current.filter(function(oe) {
3199
+ return R.current && R.current.contains(oe);
3200
+ }), ie = $.indexOf(_.target);
3201
+ ie !== -1 && $.splice(ie, 1), I.current = $, !($.length > 0) && (ne({
3169
3202
  type: "setDraggedFiles",
3170
3203
  isDragActive: !1,
3171
3204
  isDragAccept: !1,
3172
3205
  isDragReject: !1
3173
- }), Ye(C) && u && u(C));
3174
- }, [_, u, z]), V = U(function(C, $) {
3175
- var ne = [], ae = [];
3176
- C.forEach(function(me) {
3177
- var ze = Yn(me, ce), $e = St(ze, 2), lt = $e[0], st = $e[1], ct = Xn(me, l, a), Be = St(ct, 2), pt = Be[0], ut = Be[1], dt = ee ? ee(me) : null;
3206
+ }), Ye(_) && d && d(_));
3207
+ }, [R, d, N]), V = U(function(_, $) {
3208
+ var ie = [], oe = [];
3209
+ _.forEach(function(ve) {
3210
+ var ze = Xn(ve, ce), Me = St(ze, 2), lt = Me[0], st = Me[1], ct = Qn(ve, l, a), Be = St(ct, 2), pt = Be[0], ut = Be[1], dt = Z ? Z(ve) : null;
3178
3211
  if (lt && pt && !dt)
3179
- ne.push(me);
3212
+ ie.push(ve);
3180
3213
  else {
3181
3214
  var gt = [st, ut];
3182
- dt && (gt = gt.concat(dt)), ae.push({
3183
- file: me,
3184
- errors: gt.filter(function(Si) {
3185
- return Si;
3215
+ dt && (gt = gt.concat(dt)), oe.push({
3216
+ file: ve,
3217
+ errors: gt.filter(function(Ci) {
3218
+ return Ci;
3186
3219
  })
3187
3220
  });
3188
3221
  }
3189
- }), (!r && ne.length > 1 || r && s >= 1 && ne.length > s) && (ne.forEach(function(me) {
3190
- ae.push({
3191
- file: me,
3222
+ }), (!r && ie.length > 1 || r && s >= 1 && ie.length > s) && (ie.forEach(function(ve) {
3223
+ oe.push({
3224
+ file: ve,
3192
3225
  errors: [la]
3193
3226
  });
3194
- }), ne.splice(0)), te({
3195
- acceptedFiles: ne,
3196
- fileRejections: ae,
3197
- isDragReject: ae.length > 0,
3227
+ }), ie.splice(0)), ne({
3228
+ acceptedFiles: ie,
3229
+ fileRejections: oe,
3230
+ isDragReject: oe.length > 0,
3198
3231
  type: "setFiles"
3199
- }), g && g(ne, ae, $), ae.length > 0 && m && m(ae, $), ne.length > 0 && p && p(ne, $);
3200
- }, [te, r, ce, l, a, s, g, p, m, ee]), oe = U(function(C) {
3201
- C.preventDefault(), C.persist(), Ge(C), I.current = [], Ye(C) && Promise.resolve(o(C)).then(function($) {
3202
- nt(C) && !z || V($, C);
3232
+ }), g && g(ie, oe, $), oe.length > 0 && m && m(oe, $), ie.length > 0 && p && p(ie, $);
3233
+ }, [ne, r, ce, l, a, s, g, p, m, Z]), te = U(function(_) {
3234
+ _.preventDefault(), _.persist(), Ge(_), I.current = [], Ye(_) && Promise.resolve(o(_)).then(function($) {
3235
+ nt(_) && !N || V($, _);
3203
3236
  }).catch(function($) {
3204
- return O($);
3205
- }), te({
3237
+ return M($);
3238
+ }), ne({
3206
3239
  type: "reset"
3207
3240
  });
3208
- }, [o, V, O, z]), S = U(function() {
3209
- if (M.current) {
3210
- te({
3241
+ }, [o, V, M, N]), C = U(function() {
3242
+ if (j.current) {
3243
+ ne({
3211
3244
  type: "openDialog"
3212
3245
  }), he();
3213
- var C = {
3246
+ var _ = {
3214
3247
  multiple: r,
3215
- types: ue
3248
+ types: pe
3216
3249
  };
3217
- window.showOpenFilePicker(C).then(function($) {
3250
+ window.showOpenFilePicker(_).then(function($) {
3218
3251
  return o($);
3219
3252
  }).then(function($) {
3220
- V($, null), te({
3253
+ V($, null), ne({
3221
3254
  type: "closeDialog"
3222
3255
  });
3223
3256
  }).catch(function($) {
3224
- ma($) ? (k($), te({
3257
+ ma($) ? (F($), ne({
3225
3258
  type: "closeDialog"
3226
- })) : va($) ? (M.current = !1, q.current ? (q.current.value = null, q.current.click()) : O(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."))) : O($);
3259
+ })) : va($) ? (j.current = !1, B.current ? (B.current.value = null, B.current.click()) : M(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."))) : M($);
3227
3260
  });
3228
3261
  return;
3229
3262
  }
3230
- q.current && (te({
3263
+ B.current && (ne({
3231
3264
  type: "openDialog"
3232
- }), he(), q.current.value = null, q.current.click());
3233
- }, [te, he, k, x, V, O, ue, r]), fe = U(function(C) {
3234
- !_.current || !_.current.isEqualNode(C.target) || (C.key === " " || C.key === "Enter" || C.keyCode === 32 || C.keyCode === 13) && (C.preventDefault(), S());
3235
- }, [_, S]), Fe = U(function() {
3236
- te({
3265
+ }), he(), B.current.value = null, B.current.click());
3266
+ }, [ne, he, F, x, V, M, pe, r]), me = U(function(_) {
3267
+ !R.current || !R.current.isEqualNode(_.target) || (_.key === " " || _.key === "Enter" || _.keyCode === 32 || _.keyCode === 13) && (_.preventDefault(), C());
3268
+ }, [R, C]), Pe = U(function() {
3269
+ ne({
3237
3270
  type: "focus"
3238
3271
  });
3239
3272
  }, []), Te = U(function() {
3240
- te({
3273
+ ne({
3241
3274
  type: "blur"
3242
3275
  });
3243
- }, []), Zt = U(function() {
3244
- F || (ua() ? setTimeout(S, 0) : S());
3245
- }, [F, S]), Ae = function($) {
3276
+ }, []), en = U(function() {
3277
+ E || (ua() ? setTimeout(C, 0) : C());
3278
+ }, [E, C]), $e = function($) {
3246
3279
  return i ? null : $;
3247
3280
  }, rt = function($) {
3248
- return h ? null : Ae($);
3281
+ return h ? null : $e($);
3249
3282
  }, qe = function($) {
3250
- return P ? null : Ae($);
3283
+ return P ? null : $e($);
3251
3284
  }, Ge = function($) {
3252
- z && $.stopPropagation();
3253
- }, wi = le(function() {
3285
+ N && $.stopPropagation();
3286
+ }, yi = re(function() {
3254
3287
  return function() {
3255
- var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, $ = C.refKey, ne = $ === void 0 ? "ref" : $, ae = C.role, me = C.onKeyDown, ze = C.onFocus, $e = C.onBlur, lt = C.onClick, st = C.onDragEnter, ct = C.onDragOver, Be = C.onDragLeave, pt = C.onDrop, ut = it(C, wa);
3256
- return Z(Z(Mt({
3257
- onKeyDown: rt(Se(me, fe)),
3258
- onFocus: rt(Se(ze, Fe)),
3259
- onBlur: rt(Se($e, Te)),
3260
- onClick: Ae(Se(lt, Zt)),
3288
+ var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, $ = _.refKey, ie = $ === void 0 ? "ref" : $, oe = _.role, ve = _.onKeyDown, ze = _.onFocus, Me = _.onBlur, lt = _.onClick, st = _.onDragEnter, ct = _.onDragOver, Be = _.onDragLeave, pt = _.onDrop, ut = it(_, wa);
3289
+ return J(J(Ot({
3290
+ onKeyDown: rt(Se(ve, me)),
3291
+ onFocus: rt(Se(ze, Pe)),
3292
+ onBlur: rt(Se(Me, Te)),
3293
+ onClick: $e(Se(lt, en)),
3261
3294
  onDragEnter: qe(Se(st, T)),
3262
3295
  onDragOver: qe(Se(ct, H)),
3263
- onDragLeave: qe(Se(Be, B)),
3264
- onDrop: qe(Se(pt, oe)),
3265
- role: typeof ae == "string" && ae !== "" ? ae : "presentation"
3266
- }, ne, _), !i && !h ? {
3296
+ onDragLeave: qe(Se(Be, q)),
3297
+ onDrop: qe(Se(pt, te)),
3298
+ role: typeof oe == "string" && oe !== "" ? oe : "presentation"
3299
+ }, ie, R), !i && !h ? {
3267
3300
  tabIndex: 0
3268
3301
  } : {}), ut);
3269
3302
  };
3270
- }, [_, fe, Fe, Te, Zt, T, H, B, oe, h, P, i]), yi = U(function(C) {
3271
- C.stopPropagation();
3272
- }, []), bi = le(function() {
3303
+ }, [R, me, Pe, Te, en, T, H, q, te, h, P, i]), bi = U(function(_) {
3304
+ _.stopPropagation();
3305
+ }, []), Si = re(function() {
3273
3306
  return function() {
3274
- var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, $ = C.refKey, ne = $ === void 0 ? "ref" : $, ae = C.onChange, me = C.onClick, ze = it(C, ya), $e = Mt({
3307
+ var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, $ = _.refKey, ie = $ === void 0 ? "ref" : $, oe = _.onChange, ve = _.onClick, ze = it(_, ya), Me = Ot({
3275
3308
  accept: ce,
3276
3309
  multiple: r,
3277
3310
  type: "file",
@@ -3287,59 +3320,59 @@ function ti() {
3287
3320
  width: "1px",
3288
3321
  whiteSpace: "nowrap"
3289
3322
  },
3290
- onChange: Ae(Se(ae, oe)),
3291
- onClick: Ae(Se(me, yi)),
3323
+ onChange: $e(Se(oe, te)),
3324
+ onClick: $e(Se(ve, bi)),
3292
3325
  tabIndex: -1
3293
- }, ne, q);
3294
- return Z(Z({}, $e), ze);
3326
+ }, ie, B);
3327
+ return J(J({}, Me), ze);
3295
3328
  };
3296
- }, [q, t, r, oe, i]);
3297
- return Z(Z({}, ie), {}, {
3329
+ }, [B, t, r, te, i]);
3330
+ return J(J({}, le), {}, {
3298
3331
  isFocused: y && !i,
3299
- getRootProps: wi,
3300
- getInputProps: bi,
3301
- rootRef: _,
3302
- inputRef: q,
3303
- open: Ae(S)
3332
+ getRootProps: yi,
3333
+ getInputProps: Si,
3334
+ rootRef: R,
3335
+ inputRef: B,
3336
+ open: $e(C)
3304
3337
  });
3305
3338
  }
3306
3339
  function Pa(e, n) {
3307
3340
  switch (n.type) {
3308
3341
  case "focus":
3309
- return Z(Z({}, e), {}, {
3342
+ return J(J({}, e), {}, {
3310
3343
  isFocused: !0
3311
3344
  });
3312
3345
  case "blur":
3313
- return Z(Z({}, e), {}, {
3346
+ return J(J({}, e), {}, {
3314
3347
  isFocused: !1
3315
3348
  });
3316
3349
  case "openDialog":
3317
- return Z(Z({}, Ot), {}, {
3350
+ return J(J({}, jt), {}, {
3318
3351
  isFileDialogActive: !0
3319
3352
  });
3320
3353
  case "closeDialog":
3321
- return Z(Z({}, e), {}, {
3354
+ return J(J({}, e), {}, {
3322
3355
  isFileDialogActive: !1
3323
3356
  });
3324
3357
  case "setDraggedFiles":
3325
- return Z(Z({}, e), {}, {
3358
+ return J(J({}, e), {}, {
3326
3359
  isDragActive: n.isDragActive,
3327
3360
  isDragAccept: n.isDragAccept,
3328
3361
  isDragReject: n.isDragReject
3329
3362
  });
3330
3363
  case "setFiles":
3331
- return Z(Z({}, e), {}, {
3364
+ return J(J({}, e), {}, {
3332
3365
  acceptedFiles: n.acceptedFiles,
3333
3366
  fileRejections: n.fileRejections,
3334
3367
  isDragReject: n.isDragReject
3335
3368
  });
3336
3369
  case "reset":
3337
- return Z({}, Ot);
3370
+ return J({}, jt);
3338
3371
  default:
3339
3372
  return e;
3340
3373
  }
3341
3374
  }
3342
- function kn() {
3375
+ function En() {
3343
3376
  }
3344
3377
  const Ia = () => {
3345
3378
  const e = (r, s) => {
@@ -3384,7 +3417,7 @@ const Ia = () => {
3384
3417
  [i]
3385
3418
  );
3386
3419
  return { acceptedFiles: n, fileRejections: t, onFileUpload: o, removeFile: (r) => i({ type: "remove-accepted", payload: r }), removeRejectedFile: (r) => i({ type: "remove-rejected", payload: r }) };
3387
- }, el = ({
3420
+ }, nl = ({
3388
3421
  accept: e,
3389
3422
  error: n,
3390
3423
  files: t,
@@ -3395,17 +3428,17 @@ const Ia = () => {
3395
3428
  minSize: r,
3396
3429
  onFileUpload: s,
3397
3430
  onRemoveFile: c,
3398
- rejectedFiles: u
3431
+ rejectedFiles: d
3399
3432
  }) => {
3400
- const f = Ia(), g = t ?? f.acceptedFiles, p = u ?? f.fileRejections, m = s ?? f.onFileUpload, v = (w) => {
3433
+ const f = Ia(), g = t ?? f.acceptedFiles, p = d ?? f.fileRejections, m = s ?? f.onFileUpload, v = (w) => {
3401
3434
  c ? c(w) : "file" in w && "errors" in w ? f.removeRejectedFile(w) : f.removeFile(w);
3402
- }, { getRootProps: b, getInputProps: x } = ti({
3435
+ }, { getRootProps: S, getInputProps: x } = ni({
3403
3436
  accept: e,
3404
3437
  maxFiles: a,
3405
3438
  maxSize: l,
3406
3439
  minSize: r,
3407
3440
  onDrop: m
3408
- }), E = et();
3441
+ }), b = et();
3409
3442
  return /* @__PURE__ */ G(
3410
3443
  "div",
3411
3444
  {
@@ -3413,59 +3446,59 @@ const Ia = () => {
3413
3446
  "is-error": !!n
3414
3447
  }),
3415
3448
  children: [
3416
- o && /* @__PURE__ */ d(Ai, { id: E, children: o }),
3417
- i && /* @__PURE__ */ d("p", { className: "p-form-help-text", children: i }),
3449
+ o && /* @__PURE__ */ u($i, { id: b, children: o }),
3450
+ i && /* @__PURE__ */ u("p", { className: "p-form-help-text", children: i }),
3418
3451
  /* @__PURE__ */ G("div", { className: "p-form__control", children: [
3419
- !a || g.length + p.length < a ? /* @__PURE__ */ d("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ G(
3452
+ !a || g.length + p.length < a ? /* @__PURE__ */ u("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ G(
3420
3453
  "div",
3421
3454
  {
3422
- ...b(),
3423
- "aria-labelledby": o ? E : void 0,
3455
+ ...S(),
3456
+ "aria-labelledby": o ? b : void 0,
3424
3457
  className: "file-upload",
3425
3458
  "data-testid": "file-upload",
3426
3459
  children: [
3427
- /* @__PURE__ */ d("input", { ...x() }),
3428
- /* @__PURE__ */ d("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" })
3460
+ /* @__PURE__ */ u("input", { ...x() }),
3461
+ /* @__PURE__ */ u("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" })
3429
3462
  ]
3430
3463
  }
3431
3464
  ) }) : null,
3432
3465
  /* @__PURE__ */ G("div", { className: "file-upload__files-list", children: [
3433
- p && p.map((w) => /* @__PURE__ */ d("span", { className: "is-error", children: /* @__PURE__ */ G("div", { className: "file-upload__file is-rejected", children: [
3466
+ p && p.map((w) => /* @__PURE__ */ u("span", { className: "is-error", children: /* @__PURE__ */ G("div", { className: "file-upload__file is-rejected", children: [
3434
3467
  w.file.name,
3435
- /* @__PURE__ */ d(
3436
- _e,
3468
+ /* @__PURE__ */ u(
3469
+ Re,
3437
3470
  {
3438
3471
  appearance: "base",
3439
3472
  className: "file-upload__file-remove-button",
3440
3473
  onClick: () => v(w),
3441
3474
  type: "button",
3442
- children: /* @__PURE__ */ d(Re, { name: "close", children: "Remove file" })
3475
+ children: /* @__PURE__ */ u(Ce, { name: "close", children: "Remove file" })
3443
3476
  }
3444
3477
  )
3445
3478
  ] }) }, w.file.name)),
3446
3479
  g && g.map((w) => /* @__PURE__ */ G("div", { className: "file-upload__file", children: [
3447
3480
  w.name,
3448
- w.percentUploaded !== void 0 ? /* @__PURE__ */ d(Gi, { percentComplete: w.percentUploaded }) : /* @__PURE__ */ d(
3449
- _e,
3481
+ w.percentUploaded !== void 0 ? /* @__PURE__ */ u(Bi, { percentComplete: w.percentUploaded }) : /* @__PURE__ */ u(
3482
+ Re,
3450
3483
  {
3451
3484
  appearance: "base",
3452
3485
  className: "file-upload__file-remove-button",
3453
3486
  onClick: () => v(w),
3454
3487
  type: "button",
3455
- children: /* @__PURE__ */ d(Re, { name: "close", children: "Remove file" })
3488
+ children: /* @__PURE__ */ u(Ce, { name: "close", children: "Remove file" })
3456
3489
  }
3457
3490
  )
3458
3491
  ] }, w.name))
3459
3492
  ] }),
3460
3493
  n ? /* @__PURE__ */ G("p", { className: "p-form-validation__message", children: [
3461
- /* @__PURE__ */ d("strong", { children: "Error: " }),
3494
+ /* @__PURE__ */ u("strong", { children: "Error: " }),
3462
3495
  n
3463
3496
  ] }) : null
3464
3497
  ] })
3465
3498
  ]
3466
3499
  }
3467
3500
  );
3468
- }, ni = (e, n) => e.label.localeCompare(n.label, "en", { numeric: !0 }), Da = (e) => (n, t) => {
3501
+ }, ii = (e, n) => e.label.localeCompare(n.label, "en", { numeric: !0 }), Da = (e) => (n, t) => {
3469
3502
  if (e) {
3470
3503
  const i = e.has(n.value), o = e.has(t.value);
3471
3504
  if (i && !o) return -1;
@@ -3486,49 +3519,49 @@ const Ia = () => {
3486
3519
  updateItems: o,
3487
3520
  isOpen: a,
3488
3521
  footer: l,
3489
- sortFn: r = ni,
3522
+ sortFn: r = ii,
3490
3523
  groupFn: s = Aa,
3491
3524
  ...c
3492
3525
  }) => {
3493
- const u = le(
3526
+ const d = re(
3494
3527
  () => new Set(n.map((x) => x.value)),
3495
3528
  [n]
3496
- ), f = le(
3529
+ ), f = re(
3497
3530
  () => new Set(t.map((x) => x.value)),
3498
3531
  [t]
3499
- ), [g, p] = ge(new Set(u));
3500
- xe(() => {
3501
- a && p(new Set(u));
3532
+ ), [g, p] = de(new Set(d));
3533
+ ge(() => {
3534
+ a && p(new Set(d));
3502
3535
  }, [a]);
3503
- const m = le(() => e.some((x) => x.group), [e]), v = le(
3536
+ const m = re(() => e.some((x) => x.group), [e]), v = re(
3504
3537
  () => m ? s(e) : [{ group: "Ungrouped", items: e }],
3505
3538
  [e, s]
3506
- ), b = (x) => {
3507
- const { checked: E, value: w } = x.target, F = e.find((h) => `${h.value}` === w);
3508
- if (F) {
3509
- const h = E ? [...n, F] : n.filter((P) => `${P.value}` !== w) ?? [];
3539
+ ), S = (x) => {
3540
+ const { checked: b, value: w } = x.target, E = e.find((h) => `${h.value}` === w);
3541
+ if (E) {
3542
+ const h = b ? [...n, E] : n.filter((P) => `${P.value}` !== w) ?? [];
3510
3543
  o(h);
3511
3544
  }
3512
3545
  };
3513
- return /* @__PURE__ */ d(Hn, { isVisible: a, className: "put-above", children: /* @__PURE__ */ G("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
3546
+ return /* @__PURE__ */ u(qn, { isVisible: a, className: "put-above", children: /* @__PURE__ */ G("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
3514
3547
  i || null,
3515
- v.map(({ group: x, items: E }) => /* @__PURE__ */ G("div", { className: "multi-select__group", children: [
3516
- m ? /* @__PURE__ */ d("h5", { className: "multi-select__dropdown-header", children: x }) : null,
3517
- /* @__PURE__ */ d("ul", { className: "multi-select__dropdown-list", "aria-label": x, children: E.sort(r).sort(Da(g)).map((w) => /* @__PURE__ */ d("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ d(
3518
- $i,
3548
+ v.map(({ group: x, items: b }) => /* @__PURE__ */ G("div", { className: "multi-select__group", children: [
3549
+ m ? /* @__PURE__ */ u("h5", { className: "multi-select__dropdown-header", children: x }) : null,
3550
+ /* @__PURE__ */ u("ul", { className: "multi-select__dropdown-list", "aria-label": x, children: b.sort(r).sort(Da(g)).map((w) => /* @__PURE__ */ u("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ u(
3551
+ Mi,
3519
3552
  {
3520
3553
  disabled: f.has(w.value),
3521
3554
  label: w.label,
3522
- checked: u.has(w.value),
3555
+ checked: d.has(w.value),
3523
3556
  value: w.value,
3524
- onChange: b
3557
+ onChange: S
3525
3558
  },
3526
3559
  w.value
3527
3560
  ) }, w.value)) })
3528
3561
  ] }, x)),
3529
- l ? /* @__PURE__ */ d("div", { className: "multi-select__footer", children: l }) : null
3562
+ l ? /* @__PURE__ */ u("div", { className: "multi-select__footer", children: l }) : null
3530
3563
  ] }) });
3531
- }, tl = ({
3564
+ }, il = ({
3532
3565
  disabled: e,
3533
3566
  selectedItems: n = [],
3534
3567
  label: t,
@@ -3539,38 +3572,38 @@ const Ia = () => {
3539
3572
  disabledItems: r = [],
3540
3573
  dropdownHeader: s,
3541
3574
  dropdownFooter: c,
3542
- variant: u = "search"
3575
+ variant: d = "search"
3543
3576
  }) => {
3544
- const f = Mi(() => {
3577
+ const f = Oi(() => {
3545
3578
  p(!1), v("");
3546
3579
  });
3547
- Oi(() => {
3580
+ ji(() => {
3548
3581
  p(!1), v("");
3549
3582
  });
3550
- const [g, p] = ge(!1), [m, v] = ge("");
3551
- xe(() => {
3583
+ const [g, p] = de(!1), [m, v] = de("");
3584
+ ge(() => {
3552
3585
  g || v("");
3553
3586
  }, [g]);
3554
- const [b, x] = ge([]), E = n || b, w = (z) => {
3555
- const X = Array.from(new Set(z));
3556
- x(X), i && i(X);
3557
- }, F = et(), h = et(), P = E.filter(
3558
- (z) => l.some((X) => X.value === z.value)
3559
- ).sort(ni).map((z) => z.label).join(", ");
3560
- return /* @__PURE__ */ d("div", { ref: f, children: /* @__PURE__ */ G("div", { className: "multi-select", children: [
3561
- u === "search" ? /* @__PURE__ */ d(
3587
+ const [S, x] = de([]), b = n || S, w = (N) => {
3588
+ const Y = Array.from(new Set(N));
3589
+ x(Y), i && i(Y);
3590
+ }, E = et(), h = et(), P = b.filter(
3591
+ (N) => l.some((Y) => Y.value === N.value)
3592
+ ).sort(ii).map((N) => N.label).join(", ");
3593
+ return /* @__PURE__ */ u("div", { ref: f, children: /* @__PURE__ */ G("div", { className: "multi-select", children: [
3594
+ d === "search" ? /* @__PURE__ */ u(
3562
3595
  jn,
3563
3596
  {
3564
3597
  externallyControlled: !0,
3565
- "aria-controls": F,
3598
+ "aria-controls": E,
3566
3599
  "aria-expanded": g,
3567
3600
  id: h,
3568
3601
  role: "combobox",
3569
3602
  "aria-label": t || o || "Search",
3570
3603
  disabled: e,
3571
3604
  autoComplete: "off",
3572
- onChange: (z) => {
3573
- v(z), p(!0);
3605
+ onChange: (N) => {
3606
+ v(N), p(!0);
3574
3607
  },
3575
3608
  onFocus: () => p(!0),
3576
3609
  placeholder: o ?? "Search",
@@ -3579,61 +3612,61 @@ const Ia = () => {
3579
3612
  value: m,
3580
3613
  className: "multi-select__input"
3581
3614
  }
3582
- ) : /* @__PURE__ */ d(
3615
+ ) : /* @__PURE__ */ u(
3583
3616
  "button",
3584
3617
  {
3585
3618
  role: "combobox",
3586
3619
  type: "button",
3587
3620
  "aria-label": t || o || "Select items",
3588
- "aria-controls": F,
3621
+ "aria-controls": E,
3589
3622
  "aria-expanded": g,
3590
3623
  className: "multi-select__select-button",
3591
3624
  onClick: () => {
3592
- p((z) => !z);
3625
+ p((N) => !N);
3593
3626
  },
3594
- children: /* @__PURE__ */ d("span", { className: "multi-select__condensed-text", children: E.length > 0 ? P : o ?? "Select items" })
3627
+ children: /* @__PURE__ */ u("span", { className: "multi-select__condensed-text", children: b.length > 0 ? P : o ?? "Select items" })
3595
3628
  }
3596
3629
  ),
3597
- /* @__PURE__ */ d(
3630
+ /* @__PURE__ */ u(
3598
3631
  $a,
3599
3632
  {
3600
- id: F,
3633
+ id: E,
3601
3634
  isOpen: g,
3602
3635
  items: m.length > 0 ? l.filter(
3603
- (z) => z.label.toLowerCase().includes(m.toLowerCase())
3636
+ (N) => N.label.toLowerCase().includes(m.toLowerCase())
3604
3637
  ) : l,
3605
- selectedItems: E,
3638
+ selectedItems: b,
3606
3639
  disabledItems: r,
3607
3640
  header: s,
3608
3641
  updateItems: w,
3609
3642
  footer: c || /* @__PURE__ */ G(be, { children: [
3610
- /* @__PURE__ */ d(
3611
- _e,
3643
+ /* @__PURE__ */ u(
3644
+ Re,
3612
3645
  {
3613
3646
  appearance: "link",
3614
3647
  onClick: () => {
3615
- const z = l.filter(
3616
- (X) => !r.some(
3617
- (ee) => ee.value === X.value
3648
+ const N = l.filter(
3649
+ (Y) => !r.some(
3650
+ (Z) => Z.value === Y.value
3618
3651
  )
3619
3652
  );
3620
- w([...E, ...z]);
3653
+ w([...b, ...N]);
3621
3654
  },
3622
3655
  type: "button",
3623
3656
  children: "Select all"
3624
3657
  }
3625
3658
  ),
3626
- /* @__PURE__ */ d(
3627
- _e,
3659
+ /* @__PURE__ */ u(
3660
+ Re,
3628
3661
  {
3629
3662
  appearance: "link",
3630
3663
  onClick: () => {
3631
- const z = E.filter(
3632
- (X) => r.some(
3633
- (ee) => ee.value === X.value
3664
+ const N = b.filter(
3665
+ (Y) => r.some(
3666
+ (Z) => Z.value === Y.value
3634
3667
  )
3635
3668
  );
3636
- w(z);
3669
+ w(N);
3637
3670
  },
3638
3671
  type: "button",
3639
3672
  children: "Clear"
@@ -3646,12 +3679,12 @@ const Ia = () => {
3646
3679
  }, Ma = {
3647
3680
  // Mobile or tablet
3648
3681
  small: 620
3649
- }, ii = $n({ variant: "regular" }), oi = ({
3682
+ }, oi = $n({ variant: "regular" }), ai = ({
3650
3683
  className: e,
3651
3684
  children: n,
3652
3685
  variant: t,
3653
3686
  ...i
3654
- }) => /* @__PURE__ */ d(ii.Provider, { value: { variant: t }, children: /* @__PURE__ */ d(
3687
+ }) => /* @__PURE__ */ u(oi.Provider, { value: { variant: t }, children: /* @__PURE__ */ u(
3655
3688
  "table",
3656
3689
  {
3657
3690
  ...i,
@@ -3660,11 +3693,11 @@ const Ia = () => {
3660
3693
  }),
3661
3694
  children: n
3662
3695
  }
3663
- ) }), Oa = ({ columns: e }) => /* @__PURE__ */ d(be, { children: Array.from({ length: 10 }, (n, t) => /* @__PURE__ */ d("tr", { "aria-hidden": "true", children: e.map((i, o) => /* @__PURE__ */ d(
3696
+ ) }), Oa = ({ columns: e }) => /* @__PURE__ */ u(be, { children: Array.from({ length: 10 }, (n, t) => /* @__PURE__ */ u("tr", { "aria-hidden": "true", children: e.map((i, o) => /* @__PURE__ */ u(
3664
3697
  "td",
3665
3698
  {
3666
3699
  className: L(i.id, "u-text-overflow-clip"),
3667
- children: /* @__PURE__ */ d(Bi, { isPending: !0, text: "XXXxxxx.xxxxxxxxx" })
3700
+ children: /* @__PURE__ */ u(zn, { isPending: !0, text: "XXXxxxx.xxxxxxxxx" })
3668
3701
  },
3669
3702
  o
3670
3703
  )) }, t)) }), ja = ({
@@ -3673,32 +3706,32 @@ const Ia = () => {
3673
3706
  }) => {
3674
3707
  const t = n ? n.getAllColumns() : Array.from({ length: 10 }).fill({ id: "" });
3675
3708
  return /* @__PURE__ */ G(be, { children: [
3676
- /* @__PURE__ */ d("caption", { className: "u-visually-hidden", children: "Loading..." }),
3677
- /* @__PURE__ */ d(ai, { "aria-busy": "true", className: e, children: /* @__PURE__ */ d(Oa, { columns: t }) })
3709
+ /* @__PURE__ */ u("caption", { className: "u-visually-hidden", children: "Loading..." }),
3710
+ /* @__PURE__ */ u(ri, { "aria-busy": "true", className: e, children: /* @__PURE__ */ u(Oa, { columns: t }) })
3678
3711
  ] });
3679
- }, ai = ({
3712
+ }, ri = ({
3680
3713
  className: e,
3681
3714
  children: n,
3682
3715
  style: t,
3683
3716
  ...i
3684
3717
  }) => {
3685
- const { variant: o } = Nt(ii), a = de(null), [l, r] = ge(null), s = U(() => {
3686
- var u, f;
3718
+ const { variant: o } = Ht(oi), a = fe(null), [l, r] = de(null), s = U(() => {
3719
+ var d, f;
3687
3720
  if (window.innerWidth > Ma.small) {
3688
- const g = (f = (u = a.current) == null ? void 0 : u.getBoundingClientRect) == null ? void 0 : f.call(u).top;
3721
+ const g = (f = (d = a.current) == null ? void 0 : d.getBoundingClientRect) == null ? void 0 : f.call(d).top;
3689
3722
  g && r(g + 1);
3690
3723
  } else
3691
3724
  r(null);
3692
3725
  }, []);
3693
- Ht(() => {
3726
+ qt(() => {
3694
3727
  s();
3695
- }, [s]), xe(() => (window.addEventListener("resize", s), () => window.removeEventListener("resize", s)), [s]);
3696
- const c = le(() => o === "full-height" && l ? {
3728
+ }, [s]), ge(() => (window.addEventListener("resize", s), () => window.removeEventListener("resize", s)), [s]);
3729
+ const c = re(() => o === "full-height" && l ? {
3697
3730
  height: `calc(100vh - ${l}px)`,
3698
3731
  minHeight: `calc(100vh - ${l}px)`,
3699
3732
  ...t
3700
3733
  } : t, [o, l, t]);
3701
- return /* @__PURE__ */ d(
3734
+ return /* @__PURE__ */ u(
3702
3735
  "tbody",
3703
3736
  {
3704
3737
  className: e,
@@ -3709,11 +3742,11 @@ const Ia = () => {
3709
3742
  }
3710
3743
  );
3711
3744
  };
3712
- oi.Body = ai;
3713
- oi.Loading = ja;
3714
- const ri = ({ children: e }) => /* @__PURE__ */ d("caption", { children: /* @__PURE__ */ d("div", { className: "p-strip", children: e }) }), Ta = ({ children: e }) => /* @__PURE__ */ d("div", { className: "row", children: /* @__PURE__ */ d("div", { className: "col-start-large-4 u-align--left col-8 col-medium-4", children: /* @__PURE__ */ d("p", { className: "p-heading--4 u-no-margin--bottom", children: e }) }) }), za = ({ children: e }) => /* @__PURE__ */ d("div", { className: "row", children: /* @__PURE__ */ d("div", { className: "u-align--left col-start-large-4 col-8 col-medium-4", children: /* @__PURE__ */ d("p", { children: e }) }) });
3715
- ri.Title = Ta;
3716
- ri.Description = za;
3745
+ ai.Body = ri;
3746
+ ai.Loading = ja;
3747
+ const li = ({ children: e }) => /* @__PURE__ */ u("caption", { children: /* @__PURE__ */ u("div", { className: "p-strip", children: e }) }), Ta = ({ children: e }) => /* @__PURE__ */ u("div", { className: "row", children: /* @__PURE__ */ u("div", { className: "col-start-large-4 u-align--left col-8 col-medium-4", children: /* @__PURE__ */ u("p", { className: "p-heading--4 u-no-margin--bottom", children: e }) }) }), za = ({ children: e }) => /* @__PURE__ */ u("div", { className: "row", children: /* @__PURE__ */ u("div", { className: "u-align--left col-start-large-4 col-8 col-medium-4", children: /* @__PURE__ */ u("p", { children: e }) }) });
3748
+ li.Title = Ta;
3749
+ li.Description = za;
3717
3750
  /**
3718
3751
  * table-core
3719
3752
  *
@@ -3724,14 +3757,14 @@ ri.Description = za;
3724
3757
  *
3725
3758
  * @license MIT
3726
3759
  */
3727
- function Ee(e, n) {
3760
+ function ke(e, n) {
3728
3761
  return typeof e == "function" ? e(n) : e;
3729
3762
  }
3730
- function ve(e, n) {
3763
+ function xe(e, n) {
3731
3764
  return (t) => {
3732
3765
  n.setState((i) => ({
3733
3766
  ...i,
3734
- [e]: Ee(t, i[e])
3767
+ [e]: ke(t, i[e])
3735
3768
  }));
3736
3769
  };
3737
3770
  }
@@ -3741,7 +3774,7 @@ function at(e) {
3741
3774
  function Va(e) {
3742
3775
  return Array.isArray(e) && e.every((n) => typeof n == "number");
3743
3776
  }
3744
- function li(e, n) {
3777
+ function si(e, n) {
3745
3778
  const t = [], i = (o) => {
3746
3779
  o.forEach((a) => {
3747
3780
  t.push(a);
@@ -3757,17 +3790,17 @@ function D(e, n, t) {
3757
3790
  let l;
3758
3791
  t.key && t.debug && (l = Date.now());
3759
3792
  const r = e(a);
3760
- if (!(r.length !== i.length || r.some((u, f) => i[f] !== u)))
3793
+ if (!(r.length !== i.length || r.some((d, f) => i[f] !== d)))
3761
3794
  return o;
3762
3795
  i = r;
3763
3796
  let c;
3764
3797
  if (t.key && t.debug && (c = Date.now()), o = n(...r), t == null || t.onChange == null || t.onChange(o), t.key && t.debug && t != null && t.debug()) {
3765
- const u = Math.round((Date.now() - l) * 100) / 100, f = Math.round((Date.now() - c) * 100) / 100, g = f / 16, p = (m, v) => {
3798
+ const d = Math.round((Date.now() - l) * 100) / 100, f = Math.round((Date.now() - c) * 100) / 100, g = f / 16, p = (m, v) => {
3766
3799
  for (m = String(m); m.length < v; )
3767
3800
  m = " " + m;
3768
3801
  return m;
3769
3802
  };
3770
- console.info(`%c⏱ ${p(f, 5)} /${p(u, 5)} ms`, `
3803
+ console.info(`%c⏱ ${p(f, 5)} /${p(d, 5)} ms`, `
3771
3804
  font-size: .6rem;
3772
3805
  font-weight: bold;
3773
3806
  color: hsl(${Math.max(0, Math.min(120 - 120 * g, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
@@ -3814,19 +3847,19 @@ function Na(e, n, t, i) {
3814
3847
  ...e._getDefaultColumnDef(),
3815
3848
  ...n
3816
3849
  }, s = r.accessorKey;
3817
- let c = (o = (a = r.id) != null ? a : s ? typeof String.prototype.replaceAll == "function" ? s.replaceAll(".", "_") : s.replace(/\./g, "_") : void 0) != null ? o : typeof r.header == "string" ? r.header : void 0, u;
3818
- if (r.accessorFn ? u = r.accessorFn : s && (s.includes(".") ? u = (g) => {
3850
+ let c = (o = (a = r.id) != null ? a : s ? typeof String.prototype.replaceAll == "function" ? s.replaceAll(".", "_") : s.replace(/\./g, "_") : void 0) != null ? o : typeof r.header == "string" ? r.header : void 0, d;
3851
+ if (r.accessorFn ? d = r.accessorFn : s && (s.includes(".") ? d = (g) => {
3819
3852
  let p = g;
3820
3853
  for (const v of s.split(".")) {
3821
3854
  var m;
3822
3855
  p = (m = p) == null ? void 0 : m[v], process.env.NODE_ENV !== "production" && p === void 0 && console.warn(`"${v}" in deeply nested key "${s}" returned undefined.`);
3823
3856
  }
3824
3857
  return p;
3825
- } : u = (g) => g[r.accessorKey]), !c)
3858
+ } : d = (g) => g[r.accessorKey]), !c)
3826
3859
  throw process.env.NODE_ENV !== "production" ? new Error(r.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
3827
3860
  let f = {
3828
3861
  id: `${String(c)}`,
3829
- accessorFn: u,
3862
+ accessorFn: d,
3830
3863
  parent: i,
3831
3864
  depth: t,
3832
3865
  columnDef: r,
@@ -3903,7 +3936,7 @@ const Ha = {
3903
3936
  return !((i = t.subHeaders) != null && i.length);
3904
3937
  }), A(e.options, se, "getRightLeafHeaders")), e.getLeafHeaders = D(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, i) => {
3905
3938
  var o, a, l, r, s, c;
3906
- return [...(o = (a = n[0]) == null ? void 0 : a.headers) != null ? o : [], ...(l = (r = t[0]) == null ? void 0 : r.headers) != null ? l : [], ...(s = (c = i[0]) == null ? void 0 : c.headers) != null ? s : []].map((u) => u.getLeafHeaders()).flat();
3939
+ return [...(o = (a = n[0]) == null ? void 0 : a.headers) != null ? o : [], ...(l = (r = t[0]) == null ? void 0 : r.headers) != null ? l : [], ...(s = (c = i[0]) == null ? void 0 : c.headers) != null ? s : []].map((d) => d.getLeafHeaders()).flat();
3907
3940
  }, A(e.options, se, "getLeafHeaders"));
3908
3941
  }
3909
3942
  };
@@ -3924,46 +3957,46 @@ function Xe(e, n, t, i) {
3924
3957
  id: [i, `${p}`].filter(Boolean).join("_"),
3925
3958
  headers: []
3926
3959
  }, v = [];
3927
- g.forEach((b) => {
3928
- const x = [...v].reverse()[0], E = b.column.depth === m.depth;
3929
- let w, F = !1;
3930
- if (E && b.column.parent ? w = b.column.parent : (w = b.column, F = !0), x && (x == null ? void 0 : x.column) === w)
3931
- x.subHeaders.push(b);
3960
+ g.forEach((S) => {
3961
+ const x = [...v].reverse()[0], b = S.column.depth === m.depth;
3962
+ let w, E = !1;
3963
+ if (b && S.column.parent ? w = S.column.parent : (w = S.column, E = !0), x && (x == null ? void 0 : x.column) === w)
3964
+ x.subHeaders.push(S);
3932
3965
  else {
3933
3966
  const h = Fn(t, w, {
3934
- id: [i, p, w.id, b == null ? void 0 : b.id].filter(Boolean).join("_"),
3935
- isPlaceholder: F,
3936
- placeholderId: F ? `${v.filter((P) => P.column === w).length}` : void 0,
3967
+ id: [i, p, w.id, S == null ? void 0 : S.id].filter(Boolean).join("_"),
3968
+ isPlaceholder: E,
3969
+ placeholderId: E ? `${v.filter((P) => P.column === w).length}` : void 0,
3937
3970
  depth: p,
3938
3971
  index: v.length
3939
3972
  });
3940
- h.subHeaders.push(b), v.push(h);
3973
+ h.subHeaders.push(S), v.push(h);
3941
3974
  }
3942
- m.headers.push(b), b.headerGroup = m;
3975
+ m.headers.push(S), S.headerGroup = m;
3943
3976
  }), s.push(m), p > 0 && c(v, p - 1);
3944
- }, u = n.map((g, p) => Fn(t, g, {
3977
+ }, d = n.map((g, p) => Fn(t, g, {
3945
3978
  depth: l,
3946
3979
  index: p
3947
3980
  }));
3948
- c(u, l - 1), s.reverse();
3981
+ c(d, l - 1), s.reverse();
3949
3982
  const f = (g) => g.filter((m) => m.column.getIsVisible()).map((m) => {
3950
- let v = 0, b = 0, x = [0];
3983
+ let v = 0, S = 0, x = [0];
3951
3984
  m.subHeaders && m.subHeaders.length ? (x = [], f(m.subHeaders).forEach((w) => {
3952
3985
  let {
3953
- colSpan: F,
3986
+ colSpan: E,
3954
3987
  rowSpan: h
3955
3988
  } = w;
3956
- v += F, x.push(h);
3989
+ v += E, x.push(h);
3957
3990
  })) : v = 1;
3958
- const E = Math.min(...x);
3959
- return b = b + E, m.colSpan = v, m.rowSpan = b, {
3991
+ const b = Math.min(...x);
3992
+ return S = S + b, m.colSpan = v, m.rowSpan = S, {
3960
3993
  colSpan: v,
3961
- rowSpan: b
3994
+ rowSpan: S
3962
3995
  };
3963
3996
  });
3964
3997
  return f((o = (a = s[0]) == null ? void 0 : a.headers) != null ? o : []), s;
3965
3998
  }
3966
- const si = (e, n, t, i, o, a, l) => {
3999
+ const ci = (e, n, t, i, o, a, l) => {
3967
4000
  let r = {
3968
4001
  id: n,
3969
4002
  index: i,
@@ -3991,19 +4024,19 @@ const si = (e, n, t, i, o, a, l) => {
3991
4024
  return (c = r.getValue(s)) != null ? c : e.options.renderFallbackValue;
3992
4025
  },
3993
4026
  subRows: a ?? [],
3994
- getLeafRows: () => li(r.subRows, (s) => s.subRows),
4027
+ getLeafRows: () => si(r.subRows, (s) => s.subRows),
3995
4028
  getParentRow: () => r.parentId ? e.getRow(r.parentId, !0) : void 0,
3996
4029
  getParentRows: () => {
3997
4030
  let s = [], c = r;
3998
4031
  for (; ; ) {
3999
- const u = c.getParentRow();
4000
- if (!u) break;
4001
- s.push(u), c = u;
4032
+ const d = c.getParentRow();
4033
+ if (!d) break;
4034
+ s.push(d), c = d;
4002
4035
  }
4003
4036
  return s.reverse();
4004
4037
  },
4005
4038
  getAllCells: D(() => [e.getAllLeafColumns()], (s) => s.map((c) => La(e, r, c, c.id)), A(e.options, "debugRows", "getAllCells")),
4006
- _getAllCellsByColumnId: D(() => [r.getAllCells()], (s) => s.reduce((c, u) => (c[u.column.id] = u, c), {}), A(e.options, "debugRows", "getAllCellsByColumnId"))
4039
+ _getAllCellsByColumnId: D(() => [r.getAllCells()], (s) => s.reduce((c, d) => (c[d.column.id] = d, c), {}), A(e.options, "debugRows", "getAllCellsByColumnId"))
4007
4040
  };
4008
4041
  for (let s = 0; s < e._features.length; s++) {
4009
4042
  const c = e._features[s];
@@ -4017,47 +4050,47 @@ const si = (e, n, t, i, o, a, l) => {
4017
4050
  return e._getFacetedMinMaxValues();
4018
4051
  };
4019
4052
  }
4020
- }, ci = (e, n, t) => {
4053
+ }, pi = (e, n, t) => {
4021
4054
  var i, o;
4022
4055
  const a = t == null || (i = t.toString()) == null ? void 0 : i.toLowerCase();
4023
4056
  return !!(!((o = e.getValue(n)) == null || (o = o.toString()) == null || (o = o.toLowerCase()) == null) && o.includes(a));
4024
4057
  };
4025
- ci.autoRemove = (e) => ye(e);
4026
- const pi = (e, n, t) => {
4027
- var i;
4028
- return !!(!((i = e.getValue(n)) == null || (i = i.toString()) == null) && i.includes(t));
4029
- };
4030
4058
  pi.autoRemove = (e) => ye(e);
4031
4059
  const ui = (e, n, t) => {
4032
4060
  var i;
4033
- return ((i = e.getValue(n)) == null || (i = i.toString()) == null ? void 0 : i.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
4061
+ return !!(!((i = e.getValue(n)) == null || (i = i.toString()) == null) && i.includes(t));
4034
4062
  };
4035
4063
  ui.autoRemove = (e) => ye(e);
4036
4064
  const di = (e, n, t) => {
4037
4065
  var i;
4038
- return (i = e.getValue(n)) == null ? void 0 : i.includes(t);
4066
+ return ((i = e.getValue(n)) == null || (i = i.toString()) == null ? void 0 : i.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
4039
4067
  };
4040
4068
  di.autoRemove = (e) => ye(e);
4041
- const gi = (e, n, t) => !t.some((i) => {
4069
+ const gi = (e, n, t) => {
4070
+ var i;
4071
+ return (i = e.getValue(n)) == null ? void 0 : i.includes(t);
4072
+ };
4073
+ gi.autoRemove = (e) => ye(e);
4074
+ const fi = (e, n, t) => !t.some((i) => {
4042
4075
  var o;
4043
4076
  return !((o = e.getValue(n)) != null && o.includes(i));
4044
4077
  });
4045
- gi.autoRemove = (e) => ye(e) || !(e != null && e.length);
4046
- const fi = (e, n, t) => t.some((i) => {
4078
+ fi.autoRemove = (e) => ye(e) || !(e != null && e.length);
4079
+ const mi = (e, n, t) => t.some((i) => {
4047
4080
  var o;
4048
4081
  return (o = e.getValue(n)) == null ? void 0 : o.includes(i);
4049
4082
  });
4050
- fi.autoRemove = (e) => ye(e) || !(e != null && e.length);
4051
- const mi = (e, n, t) => e.getValue(n) === t;
4052
- mi.autoRemove = (e) => ye(e);
4053
- const vi = (e, n, t) => e.getValue(n) == t;
4083
+ mi.autoRemove = (e) => ye(e) || !(e != null && e.length);
4084
+ const vi = (e, n, t) => e.getValue(n) === t;
4054
4085
  vi.autoRemove = (e) => ye(e);
4055
- const Xt = (e, n, t) => {
4086
+ const xi = (e, n, t) => e.getValue(n) == t;
4087
+ xi.autoRemove = (e) => ye(e);
4088
+ const Qt = (e, n, t) => {
4056
4089
  let [i, o] = t;
4057
4090
  const a = e.getValue(n);
4058
4091
  return a >= i && a <= o;
4059
4092
  };
4060
- Xt.resolveFilterValue = (e) => {
4093
+ Qt.resolveFilterValue = (e) => {
4061
4094
  let [n, t] = e, i = typeof n != "number" ? parseFloat(n) : n, o = typeof t != "number" ? parseFloat(t) : t, a = n === null || Number.isNaN(i) ? -1 / 0 : i, l = t === null || Number.isNaN(o) ? 1 / 0 : o;
4062
4095
  if (a > l) {
4063
4096
  const r = a;
@@ -4065,17 +4098,17 @@ Xt.resolveFilterValue = (e) => {
4065
4098
  }
4066
4099
  return [a, l];
4067
4100
  };
4068
- Xt.autoRemove = (e) => ye(e) || ye(e[0]) && ye(e[1]);
4069
- const Ce = {
4070
- includesString: ci,
4071
- includesStringSensitive: pi,
4072
- equalsString: ui,
4073
- arrIncludes: di,
4074
- arrIncludesAll: gi,
4075
- arrIncludesSome: fi,
4076
- equals: mi,
4077
- weakEquals: vi,
4078
- inNumberRange: Xt
4101
+ Qt.autoRemove = (e) => ye(e) || ye(e[0]) && ye(e[1]);
4102
+ const _e = {
4103
+ includesString: pi,
4104
+ includesStringSensitive: ui,
4105
+ equalsString: di,
4106
+ arrIncludes: gi,
4107
+ arrIncludesAll: fi,
4108
+ arrIncludesSome: mi,
4109
+ equals: vi,
4110
+ weakEquals: xi,
4111
+ inNumberRange: Qt
4079
4112
  };
4080
4113
  function ye(e) {
4081
4114
  return e == null || e === "";
@@ -4089,19 +4122,19 @@ const Ga = {
4089
4122
  ...e
4090
4123
  }),
4091
4124
  getDefaultOptions: (e) => ({
4092
- onColumnFiltersChange: ve("columnFilters", e),
4125
+ onColumnFiltersChange: xe("columnFilters", e),
4093
4126
  filterFromLeafRows: !1,
4094
4127
  maxLeafRowFilterDepth: 100
4095
4128
  }),
4096
4129
  createColumn: (e, n) => {
4097
4130
  e.getAutoFilterFn = () => {
4098
4131
  const t = n.getCoreRowModel().flatRows[0], i = t == null ? void 0 : t.getValue(e.id);
4099
- return typeof i == "string" ? Ce.includesString : typeof i == "number" ? Ce.inNumberRange : typeof i == "boolean" || i !== null && typeof i == "object" ? Ce.equals : Array.isArray(i) ? Ce.arrIncludes : Ce.weakEquals;
4132
+ return typeof i == "string" ? _e.includesString : typeof i == "number" ? _e.inNumberRange : typeof i == "boolean" || i !== null && typeof i == "object" ? _e.equals : Array.isArray(i) ? _e.arrIncludes : _e.weakEquals;
4100
4133
  }, e.getFilterFn = () => {
4101
4134
  var t, i;
4102
4135
  return at(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
4103
4136
  // @ts-ignore
4104
- (t = (i = n.options.filterFns) == null ? void 0 : i[e.columnDef.filterFn]) != null ? t : Ce[e.columnDef.filterFn]
4137
+ (t = (i = n.options.filterFns) == null ? void 0 : i[e.columnDef.filterFn]) != null ? t : _e[e.columnDef.filterFn]
4105
4138
  );
4106
4139
  }, e.getCanFilter = () => {
4107
4140
  var t, i, o;
@@ -4114,10 +4147,10 @@ const Ga = {
4114
4147
  return (t = (i = n.getState().columnFilters) == null ? void 0 : i.findIndex((o) => o.id === e.id)) != null ? t : -1;
4115
4148
  }, e.setFilterValue = (t) => {
4116
4149
  n.setColumnFilters((i) => {
4117
- const o = e.getFilterFn(), a = i == null ? void 0 : i.find((u) => u.id === e.id), l = Ee(t, a ? a.value : void 0);
4150
+ const o = e.getFilterFn(), a = i == null ? void 0 : i.find((d) => d.id === e.id), l = ke(t, a ? a.value : void 0);
4118
4151
  if (Pn(o, l, e)) {
4119
4152
  var r;
4120
- return (r = i == null ? void 0 : i.filter((u) => u.id !== e.id)) != null ? r : [];
4153
+ return (r = i == null ? void 0 : i.filter((d) => d.id !== e.id)) != null ? r : [];
4121
4154
  }
4122
4155
  const s = {
4123
4156
  id: e.id,
@@ -4125,7 +4158,7 @@ const Ga = {
4125
4158
  };
4126
4159
  if (a) {
4127
4160
  var c;
4128
- return (c = i == null ? void 0 : i.map((u) => u.id === e.id ? s : u)) != null ? c : [];
4161
+ return (c = i == null ? void 0 : i.map((d) => d.id === e.id ? s : d)) != null ? c : [];
4129
4162
  }
4130
4163
  return i != null && i.length ? [...i, s] : [s];
4131
4164
  });
@@ -4138,7 +4171,7 @@ const Ga = {
4138
4171
  e.setColumnFilters = (n) => {
4139
4172
  const t = e.getAllLeafColumns(), i = (o) => {
4140
4173
  var a;
4141
- return (a = Ee(n, o)) == null ? void 0 : a.filter((l) => {
4174
+ return (a = ke(n, o)) == null ? void 0 : a.filter((l) => {
4142
4175
  const r = t.find((s) => s.id === l.id);
4143
4176
  if (r) {
4144
4177
  const s = r.getFilterFn();
@@ -4218,7 +4251,7 @@ const Ba = (e, n, t) => t.reduce((i, o) => {
4218
4251
  ...e
4219
4252
  }),
4220
4253
  getDefaultOptions: (e) => ({
4221
- onGroupingChange: ve("grouping", e),
4254
+ onGroupingChange: xe("grouping", e),
4222
4255
  groupedColumnMode: "reorder"
4223
4256
  }),
4224
4257
  createColumn: (e, n) => {
@@ -4284,7 +4317,7 @@ const nr = {
4284
4317
  ...e
4285
4318
  }),
4286
4319
  getDefaultOptions: (e) => ({
4287
- onColumnOrderChange: ve("columnOrder", e)
4320
+ onColumnOrderChange: xe("columnOrder", e)
4288
4321
  }),
4289
4322
  createColumn: (e, n) => {
4290
4323
  e.getIndex = D((t) => [Le(n, t)], (t) => t.findIndex((i) => i.id === e.id), A(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
@@ -4307,7 +4340,7 @@ const nr = {
4307
4340
  else {
4308
4341
  const l = [...n], r = [...o];
4309
4342
  for (; r.length && l.length; ) {
4310
- const s = l.shift(), c = r.findIndex((u) => u.id === s);
4343
+ const s = l.shift(), c = r.findIndex((d) => d.id === s);
4311
4344
  c > -1 && a.push(r.splice(c, 1)[0]);
4312
4345
  }
4313
4346
  a = [...a, ...r];
@@ -4324,7 +4357,7 @@ const nr = {
4324
4357
  ...e
4325
4358
  }),
4326
4359
  getDefaultOptions: (e) => ({
4327
- onColumnPinningChange: ve("columnPinning", e)
4360
+ onColumnPinningChange: xe("columnPinning", e)
4328
4361
  }),
4329
4362
  createColumn: (e, n) => {
4330
4363
  e.pin = (t) => {
@@ -4339,10 +4372,10 @@ const nr = {
4339
4372
  };
4340
4373
  }
4341
4374
  if (t === "left") {
4342
- var c, u;
4375
+ var c, d;
4343
4376
  return {
4344
4377
  left: [...((c = o == null ? void 0 : o.left) != null ? c : []).filter((f) => !(i != null && i.includes(f))), ...i],
4345
- right: ((u = o == null ? void 0 : o.right) != null ? u : []).filter((f) => !(i != null && i.includes(f)))
4378
+ right: ((d = o == null ? void 0 : o.right) != null ? d : []).filter((f) => !(i != null && i.includes(f)))
4346
4379
  };
4347
4380
  }
4348
4381
  return {
@@ -4415,8 +4448,8 @@ const nr = {
4415
4448
  getDefaultOptions: (e) => ({
4416
4449
  columnResizeMode: "onEnd",
4417
4450
  columnResizeDirection: "ltr",
4418
- onColumnSizingChange: ve("columnSizing", e),
4419
- onColumnSizingInfoChange: ve("columnSizingInfo", e)
4451
+ onColumnSizingChange: xe("columnSizing", e),
4452
+ onColumnSizingInfoChange: xe("columnSizingInfo", e)
4420
4453
  }),
4421
4454
  createColumn: (e, n) => {
4422
4455
  e.getSize = () => {
@@ -4457,27 +4490,27 @@ const nr = {
4457
4490
  }, e.getResizeHandler = (t) => {
4458
4491
  const i = n.getColumn(e.column.id), o = i == null ? void 0 : i.getCanResize();
4459
4492
  return (a) => {
4460
- if (!i || !o || (a.persist == null || a.persist(), Et(a) && a.touches && a.touches.length > 1))
4493
+ if (!i || !o || (a.persist == null || a.persist(), kt(a) && a.touches && a.touches.length > 1))
4461
4494
  return;
4462
- const l = e.getSize(), r = e ? e.getLeafHeaders().map((x) => [x.column.id, x.column.getSize()]) : [[i.id, i.getSize()]], s = Et(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, u = (x, E) => {
4463
- typeof E == "number" && (n.setColumnSizingInfo((w) => {
4464
- var F, h;
4465
- const P = n.options.columnResizeDirection === "rtl" ? -1 : 1, z = (E - ((F = w == null ? void 0 : w.startOffset) != null ? F : 0)) * P, X = Math.max(z / ((h = w == null ? void 0 : w.startSize) != null ? h : 0), -0.999999);
4466
- return w.columnSizingStart.forEach((ee) => {
4467
- let [ce, ue] = ee;
4468
- c[ce] = Math.round(Math.max(ue + ue * X, 0) * 100) / 100;
4495
+ const l = e.getSize(), r = e ? e.getLeafHeaders().map((x) => [x.column.id, x.column.getSize()]) : [[i.id, i.getSize()]], s = kt(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (x, b) => {
4496
+ typeof b == "number" && (n.setColumnSizingInfo((w) => {
4497
+ var E, h;
4498
+ const P = n.options.columnResizeDirection === "rtl" ? -1 : 1, N = (b - ((E = w == null ? void 0 : w.startOffset) != null ? E : 0)) * P, Y = Math.max(N / ((h = w == null ? void 0 : w.startSize) != null ? h : 0), -0.999999);
4499
+ return w.columnSizingStart.forEach((Z) => {
4500
+ let [ce, pe] = Z;
4501
+ c[ce] = Math.round(Math.max(pe + pe * Y, 0) * 100) / 100;
4469
4502
  }), {
4470
4503
  ...w,
4471
- deltaOffset: z,
4472
- deltaPercentage: X
4504
+ deltaOffset: N,
4505
+ deltaPercentage: Y
4473
4506
  };
4474
4507
  }), (n.options.columnResizeMode === "onChange" || x === "end") && n.setColumnSizing((w) => ({
4475
4508
  ...w,
4476
4509
  ...c
4477
4510
  })));
4478
- }, f = (x) => u("move", x), g = (x) => {
4479
- u("end", x), n.setColumnSizingInfo((E) => ({
4480
- ...E,
4511
+ }, f = (x) => d("move", x), g = (x) => {
4512
+ d("end", x), n.setColumnSizingInfo((b) => ({
4513
+ ...b,
4481
4514
  isResizingColumn: !1,
4482
4515
  startOffset: null,
4483
4516
  startSize: null,
@@ -4493,13 +4526,13 @@ const nr = {
4493
4526
  }, v = {
4494
4527
  moveHandler: (x) => (x.cancelable && (x.preventDefault(), x.stopPropagation()), f(x.touches[0].clientX), !1),
4495
4528
  upHandler: (x) => {
4496
- var E;
4497
- p == null || p.removeEventListener("touchmove", v.moveHandler), p == null || p.removeEventListener("touchend", v.upHandler), x.cancelable && (x.preventDefault(), x.stopPropagation()), g((E = x.touches[0]) == null ? void 0 : E.clientX);
4529
+ var b;
4530
+ p == null || p.removeEventListener("touchmove", v.moveHandler), p == null || p.removeEventListener("touchend", v.upHandler), x.cancelable && (x.preventDefault(), x.stopPropagation()), g((b = x.touches[0]) == null ? void 0 : b.clientX);
4498
4531
  }
4499
- }, b = ar() ? {
4532
+ }, S = ar() ? {
4500
4533
  passive: !1
4501
4534
  } : !1;
4502
- Et(a) ? (p == null || p.addEventListener("touchmove", v.moveHandler, b), p == null || p.addEventListener("touchend", v.upHandler, b)) : (p == null || p.addEventListener("mousemove", m.moveHandler, b), p == null || p.addEventListener("mouseup", m.upHandler, b)), n.setColumnSizingInfo((x) => ({
4535
+ kt(a) ? (p == null || p.addEventListener("touchmove", v.moveHandler, S), p == null || p.addEventListener("touchend", v.upHandler, S)) : (p == null || p.addEventListener("mousemove", m.moveHandler, S), p == null || p.addEventListener("mouseup", m.upHandler, S)), n.setColumnSizingInfo((x) => ({
4503
4536
  ...x,
4504
4537
  startOffset: s,
4505
4538
  startSize: l,
@@ -4550,7 +4583,7 @@ function ar() {
4550
4583
  }
4551
4584
  return Je = e, Je;
4552
4585
  }
4553
- function Et(e) {
4586
+ function kt(e) {
4554
4587
  return e.type === "touchstart";
4555
4588
  }
4556
4589
  const rr = {
@@ -4559,7 +4592,7 @@ const rr = {
4559
4592
  ...e
4560
4593
  }),
4561
4594
  getDefaultOptions: (e) => ({
4562
- onColumnVisibilityChange: ve("columnVisibility", e)
4595
+ onColumnVisibilityChange: xe("columnVisibility", e)
4563
4596
  }),
4564
4597
  createColumn: (e, n) => {
4565
4598
  e.toggleVisibility = (t) => {
@@ -4614,7 +4647,7 @@ const lr = {
4614
4647
  ...e
4615
4648
  }),
4616
4649
  getDefaultOptions: (e) => ({
4617
- onGlobalFilterChange: ve("globalFilter", e),
4650
+ onGlobalFilterChange: xe("globalFilter", e),
4618
4651
  globalFilterFn: "auto",
4619
4652
  getColumnCanGlobalFilter: (n) => {
4620
4653
  var t;
@@ -4629,12 +4662,12 @@ const lr = {
4629
4662
  };
4630
4663
  },
4631
4664
  createTable: (e) => {
4632
- e.getGlobalAutoFilterFn = () => Ce.includesString, e.getGlobalFilterFn = () => {
4665
+ e.getGlobalAutoFilterFn = () => _e.includesString, e.getGlobalFilterFn = () => {
4633
4666
  var n, t;
4634
4667
  const {
4635
4668
  globalFilterFn: i
4636
4669
  } = e.options;
4637
- return at(i) ? i : i === "auto" ? e.getGlobalAutoFilterFn() : (n = (t = e.options.filterFns) == null ? void 0 : t[i]) != null ? n : Ce[i];
4670
+ return at(i) ? i : i === "auto" ? e.getGlobalAutoFilterFn() : (n = (t = e.options.filterFns) == null ? void 0 : t[i]) != null ? n : _e[i];
4638
4671
  }, e.setGlobalFilter = (n) => {
4639
4672
  e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(n);
4640
4673
  }, e.resetGlobalFilter = (n) => {
@@ -4647,7 +4680,7 @@ const lr = {
4647
4680
  ...e
4648
4681
  }),
4649
4682
  getDefaultOptions: (e) => ({
4650
- onExpandedChange: ve("expanded", e),
4683
+ onExpandedChange: xe("expanded", e),
4651
4684
  paginateExpandedRows: !0
4652
4685
  }),
4653
4686
  createTable: (e) => {
@@ -4728,19 +4761,19 @@ const lr = {
4728
4761
  };
4729
4762
  };
4730
4763
  }
4731
- }, jt = 0, Tt = 10, kt = () => ({
4732
- pageIndex: jt,
4733
- pageSize: Tt
4764
+ }, Tt = 0, zt = 10, Et = () => ({
4765
+ pageIndex: Tt,
4766
+ pageSize: zt
4734
4767
  }), pr = {
4735
4768
  getInitialState: (e) => ({
4736
4769
  ...e,
4737
4770
  pagination: {
4738
- ...kt(),
4771
+ ...Et(),
4739
4772
  ...e == null ? void 0 : e.pagination
4740
4773
  }
4741
4774
  }),
4742
4775
  getDefaultOptions: (e) => ({
4743
- onPaginationChange: ve("pagination", e)
4776
+ onPaginationChange: xe("pagination", e)
4744
4777
  }),
4745
4778
  createTable: (e) => {
4746
4779
  let n = !1, t = !1;
@@ -4759,14 +4792,14 @@ const lr = {
4759
4792
  });
4760
4793
  }
4761
4794
  }, e.setPagination = (i) => {
4762
- const o = (a) => Ee(i, a);
4795
+ const o = (a) => ke(i, a);
4763
4796
  return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(o);
4764
4797
  }, e.resetPagination = (i) => {
4765
4798
  var o;
4766
- e.setPagination(i ? kt() : (o = e.initialState.pagination) != null ? o : kt());
4799
+ e.setPagination(i ? Et() : (o = e.initialState.pagination) != null ? o : Et());
4767
4800
  }, e.setPageIndex = (i) => {
4768
4801
  e.setPagination((o) => {
4769
- let a = Ee(i, o.pageIndex);
4802
+ let a = ke(i, o.pageIndex);
4770
4803
  const l = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
4771
4804
  return a = Math.max(0, Math.min(a, l)), {
4772
4805
  ...o,
@@ -4775,13 +4808,13 @@ const lr = {
4775
4808
  });
4776
4809
  }, e.resetPageIndex = (i) => {
4777
4810
  var o, a;
4778
- e.setPageIndex(i ? jt : (o = (a = e.initialState) == null || (a = a.pagination) == null ? void 0 : a.pageIndex) != null ? o : jt);
4811
+ e.setPageIndex(i ? Tt : (o = (a = e.initialState) == null || (a = a.pagination) == null ? void 0 : a.pageIndex) != null ? o : Tt);
4779
4812
  }, e.resetPageSize = (i) => {
4780
4813
  var o, a;
4781
- e.setPageSize(i ? Tt : (o = (a = e.initialState) == null || (a = a.pagination) == null ? void 0 : a.pageSize) != null ? o : Tt);
4814
+ e.setPageSize(i ? zt : (o = (a = e.initialState) == null || (a = a.pagination) == null ? void 0 : a.pageSize) != null ? o : zt);
4782
4815
  }, e.setPageSize = (i) => {
4783
4816
  e.setPagination((o) => {
4784
- const a = Math.max(1, Ee(i, o.pageSize)), l = o.pageSize * o.pageIndex, r = Math.floor(l / a);
4817
+ const a = Math.max(1, ke(i, o.pageSize)), l = o.pageSize * o.pageIndex, r = Math.floor(l / a);
4785
4818
  return {
4786
4819
  ...o,
4787
4820
  pageIndex: r,
@@ -4790,7 +4823,7 @@ const lr = {
4790
4823
  });
4791
4824
  }, e.setPageCount = (i) => e.setPagination((o) => {
4792
4825
  var a;
4793
- let l = Ee(i, (a = e.options.pageCount) != null ? a : -1);
4826
+ let l = ke(i, (a = e.options.pageCount) != null ? a : -1);
4794
4827
  return typeof l == "number" && (l = Math.max(-1, l)), {
4795
4828
  ...o,
4796
4829
  pageCount: l
@@ -4820,7 +4853,7 @@ const lr = {
4820
4853
  ...e
4821
4854
  }),
4822
4855
  getDefaultOptions: (e) => ({
4823
- onRowPinningChange: ve("rowPinning", e)
4856
+ onRowPinningChange: xe("rowPinning", e)
4824
4857
  }),
4825
4858
  createRow: (e, n) => {
4826
4859
  e.pin = (t, i, o) => {
@@ -4836,7 +4869,7 @@ const lr = {
4836
4869
  return c;
4837
4870
  }) : [], r = /* @__PURE__ */ new Set([...l, e.id, ...a]);
4838
4871
  n.setRowPinning((s) => {
4839
- var c, u;
4872
+ var c, d;
4840
4873
  if (t === "bottom") {
4841
4874
  var f, g;
4842
4875
  return {
@@ -4853,7 +4886,7 @@ const lr = {
4853
4886
  }
4854
4887
  return {
4855
4888
  top: ((c = s == null ? void 0 : s.top) != null ? c : []).filter((v) => !(r != null && r.has(v))),
4856
- bottom: ((u = s == null ? void 0 : s.bottom) != null ? u : []).filter((v) => !(r != null && r.has(v)))
4889
+ bottom: ((d = s == null ? void 0 : s.bottom) != null ? d : []).filter((v) => !(r != null && r.has(v)))
4857
4890
  };
4858
4891
  });
4859
4892
  }, e.getCanPin = () => {
@@ -4921,7 +4954,7 @@ const lr = {
4921
4954
  ...e
4922
4955
  }),
4923
4956
  getDefaultOptions: (e) => ({
4924
- onRowSelectionChange: ve("rowSelection", e),
4957
+ onRowSelectionChange: xe("rowSelection", e),
4925
4958
  enableRowSelection: !0,
4926
4959
  enableMultiRowSelection: !0,
4927
4960
  enableSubRowSelection: !0
@@ -4950,7 +4983,7 @@ const lr = {
4950
4983
  ...t
4951
4984
  };
4952
4985
  return e.getRowModel().rows.forEach((a) => {
4953
- zt(o, a.id, i, !0, e);
4986
+ Vt(o, a.id, i, !0, e);
4954
4987
  }), o;
4955
4988
  }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = D(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? Pt(e, t) : {
4956
4989
  rows: [],
@@ -4999,23 +5032,23 @@ const lr = {
4999
5032
  const r = {
5000
5033
  ...a
5001
5034
  };
5002
- return zt(r, e.id, t, (l = i == null ? void 0 : i.selectChildren) != null ? l : !0, n), r;
5035
+ return Vt(r, e.id, t, (l = i == null ? void 0 : i.selectChildren) != null ? l : !0, n), r;
5003
5036
  });
5004
5037
  }, e.getIsSelected = () => {
5005
5038
  const {
5006
5039
  rowSelection: t
5007
5040
  } = n.getState();
5008
- return Qt(e, t);
5041
+ return Jt(e, t);
5009
5042
  }, e.getIsSomeSelected = () => {
5010
5043
  const {
5011
5044
  rowSelection: t
5012
5045
  } = n.getState();
5013
- return Vt(e, t) === "some";
5046
+ return Lt(e, t) === "some";
5014
5047
  }, e.getIsAllSubRowsSelected = () => {
5015
5048
  const {
5016
5049
  rowSelection: t
5017
5050
  } = n.getState();
5018
- return Vt(e, t) === "all";
5051
+ return Lt(e, t) === "all";
5019
5052
  }, e.getCanSelect = () => {
5020
5053
  var t;
5021
5054
  return typeof n.options.enableRowSelection == "function" ? n.options.enableRowSelection(e) : (t = n.options.enableRowSelection) != null ? t : !0;
@@ -5033,20 +5066,20 @@ const lr = {
5033
5066
  };
5034
5067
  };
5035
5068
  }
5036
- }, zt = (e, n, t, i, o) => {
5069
+ }, Vt = (e, n, t, i, o) => {
5037
5070
  var a;
5038
5071
  const l = o.getRow(n, !0);
5039
- t ? (l.getCanMultiSelect() || Object.keys(e).forEach((r) => delete e[r]), l.getCanSelect() && (e[n] = !0)) : delete e[n], i && (a = l.subRows) != null && a.length && l.getCanSelectSubRows() && l.subRows.forEach((r) => zt(e, r.id, t, i, o));
5072
+ t ? (l.getCanMultiSelect() || Object.keys(e).forEach((r) => delete e[r]), l.getCanSelect() && (e[n] = !0)) : delete e[n], i && (a = l.subRows) != null && a.length && l.getCanSelectSubRows() && l.subRows.forEach((r) => Vt(e, r.id, t, i, o));
5040
5073
  };
5041
5074
  function Pt(e, n) {
5042
5075
  const t = e.getState().rowSelection, i = [], o = {}, a = function(l, r) {
5043
5076
  return l.map((s) => {
5044
5077
  var c;
5045
- const u = Qt(s, t);
5046
- if (u && (i.push(s), o[s.id] = s), (c = s.subRows) != null && c.length && (s = {
5078
+ const d = Jt(s, t);
5079
+ if (d && (i.push(s), o[s.id] = s), (c = s.subRows) != null && c.length && (s = {
5047
5080
  ...s,
5048
5081
  subRows: a(s.subRows)
5049
- }), u)
5082
+ }), d)
5050
5083
  return s;
5051
5084
  }).filter(Boolean);
5052
5085
  };
@@ -5056,33 +5089,33 @@ function Pt(e, n) {
5056
5089
  rowsById: o
5057
5090
  };
5058
5091
  }
5059
- function Qt(e, n) {
5092
+ function Jt(e, n) {
5060
5093
  var t;
5061
5094
  return (t = n[e.id]) != null ? t : !1;
5062
5095
  }
5063
- function Vt(e, n, t) {
5096
+ function Lt(e, n, t) {
5064
5097
  var i;
5065
5098
  if (!((i = e.subRows) != null && i.length)) return !1;
5066
5099
  let o = !0, a = !1;
5067
5100
  return e.subRows.forEach((l) => {
5068
- if (!(a && !o) && (l.getCanSelect() && (Qt(l, n) ? a = !0 : o = !1), l.subRows && l.subRows.length)) {
5069
- const r = Vt(l, n);
5101
+ if (!(a && !o) && (l.getCanSelect() && (Jt(l, n) ? a = !0 : o = !1), l.subRows && l.subRows.length)) {
5102
+ const r = Lt(l, n);
5070
5103
  r === "all" ? a = !0 : (r === "some" && (a = !0), o = !1);
5071
5104
  }
5072
5105
  }), o ? "all" : a ? "some" : !1;
5073
5106
  }
5074
- const Lt = /([0-9]+)/gm, gr = (e, n, t) => xi(ke(e.getValue(t)).toLowerCase(), ke(n.getValue(t)).toLowerCase()), fr = (e, n, t) => xi(ke(e.getValue(t)), ke(n.getValue(t))), mr = (e, n, t) => Jt(ke(e.getValue(t)).toLowerCase(), ke(n.getValue(t)).toLowerCase()), vr = (e, n, t) => Jt(ke(e.getValue(t)), ke(n.getValue(t))), xr = (e, n, t) => {
5107
+ const Nt = /([0-9]+)/gm, gr = (e, n, t) => hi(Fe(e.getValue(t)).toLowerCase(), Fe(n.getValue(t)).toLowerCase()), fr = (e, n, t) => hi(Fe(e.getValue(t)), Fe(n.getValue(t))), mr = (e, n, t) => Zt(Fe(e.getValue(t)).toLowerCase(), Fe(n.getValue(t)).toLowerCase()), vr = (e, n, t) => Zt(Fe(e.getValue(t)), Fe(n.getValue(t))), xr = (e, n, t) => {
5075
5108
  const i = e.getValue(t), o = n.getValue(t);
5076
5109
  return i > o ? 1 : i < o ? -1 : 0;
5077
- }, hr = (e, n, t) => Jt(e.getValue(t), n.getValue(t));
5078
- function Jt(e, n) {
5110
+ }, hr = (e, n, t) => Zt(e.getValue(t), n.getValue(t));
5111
+ function Zt(e, n) {
5079
5112
  return e === n ? 0 : e > n ? 1 : -1;
5080
5113
  }
5081
- function ke(e) {
5114
+ function Fe(e) {
5082
5115
  return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
5083
5116
  }
5084
- function xi(e, n) {
5085
- const t = e.split(Lt).filter(Boolean), i = n.split(Lt).filter(Boolean);
5117
+ function hi(e, n) {
5118
+ const t = e.split(Nt).filter(Boolean), i = n.split(Nt).filter(Boolean);
5086
5119
  for (; t.length && i.length; ) {
5087
5120
  const o = t.shift(), a = i.shift(), l = parseInt(o, 10), r = parseInt(a, 10), s = [l, r].sort();
5088
5121
  if (isNaN(s[0])) {
@@ -5118,7 +5151,7 @@ const Ve = {
5118
5151
  sortUndefined: 1
5119
5152
  }),
5120
5153
  getDefaultOptions: (e) => ({
5121
- onSortingChange: ve("sorting", e),
5154
+ onSortingChange: xe("sorting", e),
5122
5155
  isMultiSortEvent: (n) => n.shiftKey
5123
5156
  }),
5124
5157
  createColumn: (e, n) => {
@@ -5129,7 +5162,7 @@ const Ve = {
5129
5162
  const a = o == null ? void 0 : o.getValue(e.id);
5130
5163
  if (Object.prototype.toString.call(a) === "[object Date]")
5131
5164
  return Ve.datetime;
5132
- if (typeof a == "string" && (i = !0, a.split(Lt).length > 1))
5165
+ if (typeof a == "string" && (i = !0, a.split(Nt).length > 1))
5133
5166
  return Ve.alphanumeric;
5134
5167
  }
5135
5168
  return i ? Ve.text : Ve.basic;
@@ -5145,17 +5178,17 @@ const Ve = {
5145
5178
  const o = e.getNextSortingOrder(), a = typeof t < "u" && t !== null;
5146
5179
  n.setSorting((l) => {
5147
5180
  const r = l == null ? void 0 : l.find((p) => p.id === e.id), s = l == null ? void 0 : l.findIndex((p) => p.id === e.id);
5148
- let c = [], u, f = a ? t : o === "desc";
5149
- if (l != null && l.length && e.getCanMultiSort() && i ? r ? u = "toggle" : u = "add" : l != null && l.length && s !== l.length - 1 ? u = "replace" : r ? u = "toggle" : u = "replace", u === "toggle" && (a || o || (u = "remove")), u === "add") {
5181
+ let c = [], d, f = a ? t : o === "desc";
5182
+ if (l != null && l.length && e.getCanMultiSort() && i ? r ? d = "toggle" : d = "add" : l != null && l.length && s !== l.length - 1 ? d = "replace" : r ? d = "toggle" : d = "replace", d === "toggle" && (a || o || (d = "remove")), d === "add") {
5150
5183
  var g;
5151
5184
  c = [...l, {
5152
5185
  id: e.id,
5153
5186
  desc: f
5154
5187
  }], c.splice(0, c.length - ((g = n.options.maxMultiSortColCount) != null ? g : Number.MAX_SAFE_INTEGER));
5155
- } else u === "toggle" ? c = l.map((p) => p.id === e.id ? {
5188
+ } else d === "toggle" ? c = l.map((p) => p.id === e.id ? {
5156
5189
  ...p,
5157
5190
  desc: f
5158
- } : p) : u === "remove" ? c = l.filter((p) => p.id !== e.id) : c = [{
5191
+ } : p) : d === "remove" ? c = l.filter((p) => p.id !== e.id) : c = [{
5159
5192
  id: e.id,
5160
5193
  desc: f
5161
5194
  }];
@@ -5237,7 +5270,7 @@ function br(e) {
5237
5270
  s = (p = g.getInitialState == null ? void 0 : g.getInitialState(s)) != null ? p : s;
5238
5271
  });
5239
5272
  const c = [];
5240
- let u = !1;
5273
+ let d = !1;
5241
5274
  const f = {
5242
5275
  _features: i,
5243
5276
  options: {
@@ -5246,10 +5279,10 @@ function br(e) {
5246
5279
  },
5247
5280
  initialState: s,
5248
5281
  _queue: (g) => {
5249
- c.push(g), u || (u = !0, Promise.resolve().then(() => {
5282
+ c.push(g), d || (d = !0, Promise.resolve().then(() => {
5250
5283
  for (; c.length; )
5251
5284
  c.shift()();
5252
- u = !1;
5285
+ d = !1;
5253
5286
  }).catch((p) => setTimeout(() => {
5254
5287
  throw p;
5255
5288
  })));
@@ -5258,7 +5291,7 @@ function br(e) {
5258
5291
  o.setState(o.initialState);
5259
5292
  },
5260
5293
  setOptions: (g) => {
5261
- const p = Ee(g, o.options);
5294
+ const p = ke(g, o.options);
5262
5295
  o.options = l(p);
5263
5296
  },
5264
5297
  getState: () => o.options.state,
@@ -5289,8 +5322,8 @@ function br(e) {
5289
5322
  },
5290
5323
  // footer: props => props.header.column.id,
5291
5324
  cell: (m) => {
5292
- var v, b;
5293
- return (v = (b = m.renderValue()) == null || b.toString == null ? void 0 : b.toString()) != null ? v : null;
5325
+ var v, S;
5326
+ return (v = (S = m.renderValue()) == null || S.toString == null ? void 0 : S.toString()) != null ? v : null;
5294
5327
  },
5295
5328
  ...o._features.reduce((m, v) => Object.assign(m, v.getDefaultColumnDef == null ? void 0 : v.getDefaultColumnDef()), {}),
5296
5329
  ...g
@@ -5298,10 +5331,10 @@ function br(e) {
5298
5331
  }, A(e, "debugColumns", "_getDefaultColumnDef")),
5299
5332
  _getColumnDefs: () => o.options.columns,
5300
5333
  getAllColumns: D(() => [o._getColumnDefs()], (g) => {
5301
- const p = function(m, v, b) {
5302
- return b === void 0 && (b = 0), m.map((x) => {
5303
- const E = Na(o, x, b, v), w = x;
5304
- return E.columns = w.columns ? p(w.columns, E, b + 1) : [], E;
5334
+ const p = function(m, v, S) {
5335
+ return S === void 0 && (S = 0), m.map((x) => {
5336
+ const b = Na(o, x, S, v), w = x;
5337
+ return b.columns = w.columns ? p(w.columns, b, S + 1) : [], b;
5305
5338
  });
5306
5339
  };
5307
5340
  return p(g);
@@ -5334,10 +5367,10 @@ function Sr() {
5334
5367
  a === void 0 && (a = 0);
5335
5368
  const r = [];
5336
5369
  for (let c = 0; c < o.length; c++) {
5337
- const u = si(e, e._getRowId(o[c], c, l), o[c], c, a, void 0, l == null ? void 0 : l.id);
5338
- if (t.flatRows.push(u), t.rowsById[u.id] = u, r.push(u), e.options.getSubRows) {
5370
+ const d = ci(e, e._getRowId(o[c], c, l), o[c], c, a, void 0, l == null ? void 0 : l.id);
5371
+ if (t.flatRows.push(d), t.rowsById[d.id] = d, r.push(d), e.options.getSubRows) {
5339
5372
  var s;
5340
- u.originalSubRows = e.options.getSubRows(o[c], c), (s = u.originalSubRows) != null && s.length && (u.subRows = i(u.originalSubRows, a + 1, u));
5373
+ d.originalSubRows = e.options.getSubRows(o[c], c), (s = d.originalSubRows) != null && s.length && (d.subRows = i(d.originalSubRows, a + 1, d));
5341
5374
  }
5342
5375
  }
5343
5376
  return r;
@@ -5365,38 +5398,38 @@ function Rr() {
5365
5398
  return t.rows.forEach((s) => {
5366
5399
  s.depth = 0, s.parentId = void 0;
5367
5400
  }), t;
5368
- const i = n.filter((s) => e.getColumn(s)), o = [], a = {}, l = function(s, c, u) {
5401
+ const i = n.filter((s) => e.getColumn(s)), o = [], a = {}, l = function(s, c, d) {
5369
5402
  if (c === void 0 && (c = 0), c >= i.length)
5370
5403
  return s.map((m) => (m.depth = c, o.push(m), a[m.id] = m, m.subRows && (m.subRows = l(m.subRows, c + 1, m.id)), m));
5371
- const f = i[c], g = Er(s, f);
5404
+ const f = i[c], g = kr(s, f);
5372
5405
  return Array.from(g.entries()).map((m, v) => {
5373
- let [b, x] = m, E = `${f}:${b}`;
5374
- E = u ? `${u}>${E}` : E;
5375
- const w = l(x, c + 1, E);
5406
+ let [S, x] = m, b = `${f}:${S}`;
5407
+ b = d ? `${d}>${b}` : b;
5408
+ const w = l(x, c + 1, b);
5376
5409
  w.forEach((P) => {
5377
- P.parentId = E;
5410
+ P.parentId = b;
5378
5411
  });
5379
- const F = c ? li(x, (P) => P.subRows) : x, h = si(e, E, F[0].original, v, c, void 0, u);
5412
+ const E = c ? si(x, (P) => P.subRows) : x, h = ci(e, b, E[0].original, v, c, void 0, d);
5380
5413
  return Object.assign(h, {
5381
5414
  groupingColumnId: f,
5382
- groupingValue: b,
5415
+ groupingValue: S,
5383
5416
  subRows: w,
5384
- leafRows: F,
5417
+ leafRows: E,
5385
5418
  getValue: (P) => {
5386
5419
  if (i.includes(P)) {
5387
5420
  if (h._valuesCache.hasOwnProperty(P))
5388
5421
  return h._valuesCache[P];
5389
5422
  if (x[0]) {
5390
- var z;
5391
- h._valuesCache[P] = (z = x[0].getValue(P)) != null ? z : void 0;
5423
+ var N;
5424
+ h._valuesCache[P] = (N = x[0].getValue(P)) != null ? N : void 0;
5392
5425
  }
5393
5426
  return h._valuesCache[P];
5394
5427
  }
5395
5428
  if (h._groupingValuesCache.hasOwnProperty(P))
5396
5429
  return h._groupingValuesCache[P];
5397
- const X = e.getColumn(P), ee = X == null ? void 0 : X.getAggregationFn();
5398
- if (ee)
5399
- return h._groupingValuesCache[P] = ee(P, F, x), h._groupingValuesCache[P];
5430
+ const Y = e.getColumn(P), Z = Y == null ? void 0 : Y.getAggregationFn();
5431
+ if (Z)
5432
+ return h._groupingValuesCache[P] = Z(P, E, x), h._groupingValuesCache[P];
5400
5433
  }
5401
5434
  }), w.forEach((P) => {
5402
5435
  o.push(P), a[P.id] = P;
@@ -5416,7 +5449,7 @@ function Rr() {
5416
5449
  });
5417
5450
  }));
5418
5451
  }
5419
- function Er(e, n) {
5452
+ function kr(e, n) {
5420
5453
  const t = /* @__PURE__ */ new Map();
5421
5454
  return e.reduce((i, o) => {
5422
5455
  const a = `${o.getGroupingValue(n)}`, l = i.get(a);
@@ -5433,10 +5466,10 @@ function Er(e, n) {
5433
5466
  *
5434
5467
  * @license MIT
5435
5468
  */
5436
- function hi(e, n) {
5437
- return e ? kr(e) ? /* @__PURE__ */ pe.createElement(e, n) : e : null;
5469
+ function wi(e, n) {
5470
+ return e ? Er(e) ? /* @__PURE__ */ ue.createElement(e, n) : e : null;
5438
5471
  }
5439
- function kr(e) {
5472
+ function Er(e) {
5440
5473
  return Fr(e) || typeof e == "function" || Pr(e);
5441
5474
  }
5442
5475
  function Fr(e) {
@@ -5457,9 +5490,9 @@ function Ir(e) {
5457
5490
  // noop
5458
5491
  renderFallbackValue: null,
5459
5492
  ...e
5460
- }, [t] = pe.useState(() => ({
5493
+ }, [t] = ue.useState(() => ({
5461
5494
  current: br(n)
5462
- })), [i, o] = pe.useState(() => t.current.initialState);
5495
+ })), [i, o] = ue.useState(() => t.current.initialState);
5463
5496
  return t.current.setOptions((a) => ({
5464
5497
  ...a,
5465
5498
  ...e,
@@ -5479,19 +5512,19 @@ const In = ({
5479
5512
  }) => {
5480
5513
  var n;
5481
5514
  return {
5482
- asc: /* @__PURE__ */ d(Re, { name: "chevron-up", children: "ascending" }),
5483
- desc: /* @__PURE__ */ d(Re, { name: "chevron-down", children: "descending" })
5515
+ asc: /* @__PURE__ */ u(Ce, { name: "chevron-up", children: "ascending" }),
5516
+ desc: /* @__PURE__ */ u(Ce, { name: "chevron-down", children: "descending" })
5484
5517
  }[(n = e == null ? void 0 : e.column) == null ? void 0 : n.getIsSorted()] ?? null;
5485
5518
  }, Dr = ({ header: e }) => {
5486
- const n = e.column.getCanSort(), t = e.column.columnDef.meta, i = t == null ? void 0 : t.isInteractiveHeader, o = hi(e.column.columnDef.header, e.getContext());
5487
- return /* @__PURE__ */ d(
5519
+ const n = e.column.getCanSort(), t = e.column.columnDef.meta, i = t == null ? void 0 : t.isInteractiveHeader, o = wi(e.column.columnDef.header, e.getContext());
5520
+ return /* @__PURE__ */ u(
5488
5521
  "th",
5489
5522
  {
5490
5523
  "aria-hidden": (t == null ? void 0 : t.headerAriaHidden) || void 0,
5491
5524
  "aria-label": t == null ? void 0 : t.headerAriaLabel,
5492
5525
  className: L("p-column-header", e.column.id),
5493
- children: n && !i ? /* @__PURE__ */ d(
5494
- _e,
5526
+ children: n && !i ? /* @__PURE__ */ u(
5527
+ Re,
5495
5528
  {
5496
5529
  appearance: "link",
5497
5530
  className: "p-button--column-header",
@@ -5499,12 +5532,12 @@ const In = ({
5499
5532
  type: "button",
5500
5533
  children: /* @__PURE__ */ G(be, { children: [
5501
5534
  o,
5502
- /* @__PURE__ */ d(In, { header: e })
5535
+ /* @__PURE__ */ u(In, { header: e })
5503
5536
  ] })
5504
5537
  }
5505
5538
  ) : /* @__PURE__ */ G("span", { className: "p-container--column-header", children: [
5506
5539
  o,
5507
- n && !i && /* @__PURE__ */ d(In, { header: e })
5540
+ n && !i && /* @__PURE__ */ u(In, { header: e })
5508
5541
  ] })
5509
5542
  },
5510
5543
  e.id
@@ -5512,14 +5545,14 @@ const In = ({
5512
5545
  }, Ne = ({
5513
5546
  children: e,
5514
5547
  "aria-label": n = "Table controls"
5515
- }) => /* @__PURE__ */ d(
5548
+ }) => /* @__PURE__ */ u(
5516
5549
  "section",
5517
5550
  {
5518
5551
  "aria-label": n,
5519
5552
  className: "controls-bar u-flex u-flex--justify-between u-flex--wrap",
5520
- children: /* @__PURE__ */ d("div", { className: "p-form p-form--inline", children: e })
5553
+ children: /* @__PURE__ */ u("div", { className: "p-form p-form--inline", children: e })
5521
5554
  }
5522
- ), Ar = ({ children: e }) => /* @__PURE__ */ d("strong", { className: "controls-bar__description", children: e }), $r = ({ children: e }) => /* @__PURE__ */ d("div", { className: "u-flex u-flex--wrap u-flex--column-x-small controls-bar__right", children: e });
5555
+ ), Ar = ({ children: e }) => /* @__PURE__ */ u("strong", { className: "controls-bar__description", children: e }), $r = ({ children: e }) => /* @__PURE__ */ u("div", { className: "u-flex u-flex--wrap u-flex--column-x-small controls-bar__right", children: e });
5523
5556
  Ne.Left = Ar;
5524
5557
  Ne.Right = $r;
5525
5558
  const Mr = ({
@@ -5532,16 +5565,16 @@ const Mr = ({
5532
5565
  isPending: l,
5533
5566
  pageSizes: r = [20, 30, 50, 100]
5534
5567
  }) => {
5535
- const s = le(() => r, []), c = le(
5568
+ const s = re(() => r, []), c = re(
5536
5569
  () => s.map((p) => ({
5537
5570
  label: `${p}/page`,
5538
5571
  value: p
5539
5572
  })),
5540
5573
  [s]
5541
- ), u = Math.ceil(t / n), f = (p) => {
5574
+ ), d = Math.ceil(t / n), f = (p) => {
5542
5575
  const { value: m } = p.target;
5543
5576
  i(Number(m));
5544
- }, g = () => e === u ? n - (u * n - t) : e < u ? n : 0;
5577
+ }, g = () => e === d ? n - (d * n - t) : e < d ? n : 0;
5545
5578
  return /* @__PURE__ */ G(Ne, { children: [
5546
5579
  /* @__PURE__ */ G(Ne.Left, { children: [
5547
5580
  "Showing ",
@@ -5552,17 +5585,17 @@ const Mr = ({
5552
5585
  o
5553
5586
  ] }),
5554
5587
  /* @__PURE__ */ G(Ne.Right, { children: [
5555
- /* @__PURE__ */ d(
5556
- Eo,
5588
+ /* @__PURE__ */ u(
5589
+ ko,
5557
5590
  {
5558
5591
  currentPage: e,
5559
5592
  disabled: l,
5560
5593
  paginate: a,
5561
- totalPages: u
5594
+ totalPages: d
5562
5595
  }
5563
5596
  ),
5564
- /* @__PURE__ */ d(
5565
- ji,
5597
+ /* @__PURE__ */ u(
5598
+ Ti,
5566
5599
  {
5567
5600
  "aria-label": "Items per page",
5568
5601
  className: "u-no-margin--bottom",
@@ -5578,7 +5611,7 @@ const Mr = ({
5578
5611
  grouping: e,
5579
5612
  initialData: n
5580
5613
  }) => {
5581
- const [t, i] = ge(!0), o = U(
5614
+ const [t, i] = de(!0), o = U(
5582
5615
  (a) => {
5583
5616
  i((l) => {
5584
5617
  const r = typeof a == "function" ? a(l) : a;
@@ -5592,11 +5625,11 @@ const Mr = ({
5592
5625
  },
5593
5626
  []
5594
5627
  );
5595
- return xe(() => {
5628
+ return ge(() => {
5596
5629
  e.length && o((a) => {
5597
5630
  const r = { ...a === !0 ? {} : { ...a } };
5598
5631
  for (const s of n) {
5599
- const c = e.map((u) => `${u}:${s[u]}`).join(">");
5632
+ const c = e.map((d) => `${d}:${s[d]}`).join(">");
5600
5633
  c in r || (r[c] = !0);
5601
5634
  }
5602
5635
  return r;
@@ -5606,7 +5639,7 @@ const Mr = ({
5606
5639
  groupBy: e,
5607
5640
  initialData: n
5608
5641
  }) => {
5609
- const [t, i] = ge(e ?? []), o = le(() => t.length ? [...n].sort((a, l) => {
5642
+ const [t, i] = de(e ?? []), o = re(() => t.length ? [...n].sort((a, l) => {
5610
5643
  for (const r of t) {
5611
5644
  const s = a[r] ?? null, c = l[r] ?? null;
5612
5645
  if (s === null) return 1;
@@ -5619,8 +5652,8 @@ const Mr = ({
5619
5652
  }, Tr = ({
5620
5653
  isLoading: e
5621
5654
  }) => {
5622
- const n = de(null), t = de(null);
5623
- xe(() => {
5655
+ const n = fe(null), t = fe(null);
5656
+ ge(() => {
5624
5657
  const a = n.current;
5625
5658
  if (!a || e) return;
5626
5659
  const l = [
@@ -5633,7 +5666,7 @@ const Mr = ({
5633
5666
  a.querySelectorAll(l).forEach((r) => {
5634
5667
  r.getAttribute("tabindex") !== "-1" && (r.tabIndex = 0);
5635
5668
  });
5636
- }), Ht(() => {
5669
+ }), qt(() => {
5637
5670
  const a = n.current;
5638
5671
  if (!a || e) {
5639
5672
  t.current = null;
@@ -5652,7 +5685,7 @@ const Mr = ({
5652
5685
  s && (t.current && t.current !== s && (t.current.tabIndex = -1), s.tabIndex = 0, t.current = s);
5653
5686
  }, []), o = U(
5654
5687
  (a) => {
5655
- var b, x, E, w, F;
5688
+ var S, x, b, w, E;
5656
5689
  if (a.key !== "ArrowUp" && a.key !== "ArrowDown" && a.key !== "ArrowLeft" && a.key !== "ArrowRight" && a.key !== "Home" && a.key !== "End")
5657
5690
  return;
5658
5691
  const l = n.current;
@@ -5662,11 +5695,11 @@ const Mr = ({
5662
5695
  const s = r.matches('tr[role="row"]'), c = r.matches('td[role="gridcell"][tabindex="-1"]');
5663
5696
  if (!s && !c) return;
5664
5697
  a.preventDefault();
5665
- const u = Array.from(
5698
+ const d = Array.from(
5666
5699
  l.querySelectorAll('tbody tr[role="row"]')
5667
5700
  ), f = s ? r : r.closest("tr");
5668
5701
  if (!f) return;
5669
- const g = u.indexOf(f);
5702
+ const g = d.indexOf(f);
5670
5703
  if (g === -1) return;
5671
5704
  const p = (h) => Array.from(
5672
5705
  h.querySelectorAll(
@@ -5676,7 +5709,7 @@ const Mr = ({
5676
5709
  switch (a.key) {
5677
5710
  case "ArrowUp": {
5678
5711
  if (g <= 0) break;
5679
- const h = u[g - 1];
5712
+ const h = d[g - 1];
5680
5713
  if (c && v >= 0) {
5681
5714
  const P = p(h);
5682
5715
  if (P.length > 0) {
@@ -5688,8 +5721,8 @@ const Mr = ({
5688
5721
  break;
5689
5722
  }
5690
5723
  case "ArrowDown": {
5691
- if (g >= u.length - 1) break;
5692
- const h = u[g + 1];
5724
+ if (g >= d.length - 1) break;
5725
+ const h = d[g + 1];
5693
5726
  if (c && v >= 0) {
5694
5727
  const P = p(h);
5695
5728
  if (P.length > 0) {
@@ -5701,17 +5734,17 @@ const Mr = ({
5701
5734
  break;
5702
5735
  }
5703
5736
  case "ArrowRight":
5704
- s ? (b = m[0]) == null || b.focus() : v < m.length - 1 && m[v + 1].focus();
5737
+ s ? (S = m[0]) == null || S.focus() : v < m.length - 1 && m[v + 1].focus();
5705
5738
  break;
5706
5739
  case "ArrowLeft":
5707
5740
  if (s) break;
5708
5741
  v > 0 ? m[v - 1].focus() : f.focus();
5709
5742
  break;
5710
5743
  case "Home":
5711
- c ? (x = m[0]) == null || x.focus() : a.ctrlKey && ((E = u[0]) == null || E.focus());
5744
+ c ? (x = m[0]) == null || x.focus() : a.ctrlKey && ((b = d[0]) == null || b.focus());
5712
5745
  break;
5713
5746
  case "End":
5714
- c ? (w = m[m.length - 1]) == null || w.focus() : a.ctrlKey && ((F = u[u.length - 1]) == null || F.focus());
5747
+ c ? (w = m[m.length - 1]) == null || w.focus() : a.ctrlKey && ((E = d[d.length - 1]) == null || E.focus());
5715
5748
  break;
5716
5749
  }
5717
5750
  },
@@ -5724,22 +5757,22 @@ const Mr = ({
5724
5757
  length: t,
5725
5758
  isLoading: i
5726
5759
  }) => {
5727
- const o = de(null), [a, l] = ge("auto"), [r, s] = ge(!1);
5728
- return Ht(() => {
5729
- const u = () => {
5760
+ const o = fe(null), [a, l] = de("auto"), [r, s] = de(!1);
5761
+ return qt(() => {
5762
+ const d = () => {
5730
5763
  const p = o.current;
5731
5764
  if (!p) return;
5732
5765
  const m = (e == null ? void 0 : e.current) || document.querySelector("main");
5733
5766
  if (!m) return;
5734
- const v = m.getBoundingClientRect(), b = p.getBoundingClientRect(), x = v.bottom - b.top, w = p.scrollHeight > x;
5767
+ const v = m.getBoundingClientRect(), S = p.getBoundingClientRect(), x = v.bottom - S.top, w = p.scrollHeight > x;
5735
5768
  s(w), l(
5736
5769
  n === "full-height" && w ? `${x}px` : "auto"
5737
5770
  );
5738
5771
  };
5739
- u();
5740
- const f = new ResizeObserver(u), g = o.current;
5741
- return g && f.observe(g), window.addEventListener("resize", u), () => {
5742
- window.removeEventListener("resize", u), g && f.unobserve(g);
5772
+ d();
5773
+ const f = new ResizeObserver(d), g = o.current;
5774
+ return g && f.observe(g), window.addEventListener("resize", d), () => {
5775
+ window.removeEventListener("resize", d), g && f.unobserve(g);
5743
5776
  };
5744
5777
  }, [e, t, i]), { tableBodyRef: o, maxHeight: a, effectiveVariant: n === "full-height" && r ? "full-height" : "regular" };
5745
5778
  }, Vr = ({
@@ -5749,22 +5782,22 @@ const Mr = ({
5749
5782
  groupedData: i,
5750
5783
  pinGroup: o
5751
5784
  }) => {
5752
- const [a, l] = ge(e ?? []), r = U(
5785
+ const [a, l] = de(e ?? []), r = U(
5753
5786
  (c) => {
5754
5787
  l(c), n && n(c);
5755
5788
  },
5756
5789
  [n]
5757
- ), s = le(() => i.length ? [...i].sort((c, u) => {
5790
+ ), s = re(() => i.length ? [...i].sort((c, d) => {
5758
5791
  if (o != null && o.length && t.length)
5759
5792
  for (const { value: f, isTop: g } of o) {
5760
- const p = t[0], m = c[p] ?? null, v = u[p] ?? null;
5793
+ const p = t[0], m = c[p] ?? null, v = d[p] ?? null;
5761
5794
  if (m === f && v !== f)
5762
5795
  return g ? -1 : 1;
5763
5796
  if (v === f && m !== f)
5764
5797
  return g ? 1 : -1;
5765
5798
  }
5766
5799
  for (const { id: f, desc: g } of a) {
5767
- const p = c[f] ?? null, m = u[f] ?? null;
5800
+ const p = c[f] ?? null, m = d[f] ?? null;
5768
5801
  if (p === null && m === null) return 0;
5769
5802
  if (p === null) return g ? -1 : 1;
5770
5803
  if (m === null || p < m) return g ? 1 : -1;
@@ -5774,11 +5807,11 @@ const Mr = ({
5774
5807
  }) : [], [i, a, o, t]);
5775
5808
  return { sorting: a, setSorting: r, sortedData: s };
5776
5809
  }, Lr = ({ table: e, ...n }) => {
5777
- const t = de(null);
5810
+ const t = fe(null);
5778
5811
  if (!e)
5779
5812
  return null;
5780
5813
  const i = e.getCoreRowModel().rows.filter((r) => r.getCanSelect()), o = e.getSelectedRowModel().rows.filter((r) => r.getCanSelect()), a = i.length > 0 && o.length === i.length, l = o.length > 0 && !a;
5781
- return xe(() => {
5814
+ return ge(() => {
5782
5815
  t.current && (t.current.indeterminate = l);
5783
5816
  }, [l]), // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
5784
5817
  /* @__PURE__ */ G(
@@ -5788,7 +5821,7 @@ const Mr = ({
5788
5821
  onClick: (r) => r.stopPropagation(),
5789
5822
  onKeyDown: (r) => r.stopPropagation(),
5790
5823
  children: [
5791
- /* @__PURE__ */ d(
5824
+ /* @__PURE__ */ u(
5792
5825
  "input",
5793
5826
  {
5794
5827
  ref: t,
@@ -5804,20 +5837,42 @@ const Mr = ({
5804
5837
  ...n
5805
5838
  }
5806
5839
  ),
5807
- /* @__PURE__ */ d("span", { className: "p-checkbox__label" })
5840
+ /* @__PURE__ */ u("span", { className: "p-checkbox__label" })
5808
5841
  ]
5809
5842
  }
5810
5843
  );
5811
5844
  }, Nr = ({ row: e, ...n }) => {
5812
- const t = de(null);
5845
+ const t = fe(null);
5813
5846
  if (!e)
5814
- return null;
5847
+ return (
5848
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
5849
+ /* @__PURE__ */ G(
5850
+ "label",
5851
+ {
5852
+ className: "p-checkbox--inline p-table-checkbox--group",
5853
+ onClick: (r) => r.stopPropagation(),
5854
+ onKeyDown: (r) => r.stopPropagation(),
5855
+ children: [
5856
+ /* @__PURE__ */ u(
5857
+ "input",
5858
+ {
5859
+ className: "p-checkbox__input",
5860
+ disabled: !0,
5861
+ type: "checkbox",
5862
+ ...n
5863
+ }
5864
+ ),
5865
+ /* @__PURE__ */ u("span", { className: "p-checkbox__label" })
5866
+ ]
5867
+ }
5868
+ )
5869
+ );
5815
5870
  const i = e.subRows.filter(
5816
5871
  (r) => r.getCanSelect()
5817
5872
  ), o = i.filter(
5818
5873
  (r) => r.getIsSelected()
5819
5874
  ).length, a = i.length > 0 && o === i.length, l = o > 0 && !a;
5820
- return xe(() => {
5875
+ return ge(() => {
5821
5876
  t.current && (t.current.indeterminate = l);
5822
5877
  }, [l]), // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
5823
5878
  /* @__PURE__ */ G(
@@ -5827,7 +5882,7 @@ const Mr = ({
5827
5882
  onClick: (r) => r.stopPropagation(),
5828
5883
  onKeyDown: (r) => r.stopPropagation(),
5829
5884
  children: [
5830
- /* @__PURE__ */ d(
5885
+ /* @__PURE__ */ u(
5831
5886
  "input",
5832
5887
  {
5833
5888
  ref: t,
@@ -5844,27 +5899,49 @@ const Mr = ({
5844
5899
  ...n
5845
5900
  }
5846
5901
  ),
5847
- /* @__PURE__ */ d("span", { className: "p-checkbox__label" })
5902
+ /* @__PURE__ */ u("span", { className: "p-checkbox__label" })
5848
5903
  ]
5849
5904
  }
5850
5905
  );
5851
- }, Me = ({
5906
+ }, Ee = ({
5852
5907
  row: e,
5853
- disabledTooltip: n,
5908
+ disabledTooltip: n = "",
5854
5909
  isNested: t = !1,
5855
5910
  ...i
5856
5911
  }) => {
5857
5912
  if (!e)
5858
- return null;
5913
+ return (
5914
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
5915
+ /* @__PURE__ */ G(
5916
+ "label",
5917
+ {
5918
+ className: "p-checkbox--inline p-table-checkbox",
5919
+ onClick: (r) => r.stopPropagation(),
5920
+ onKeyDown: (r) => r.stopPropagation(),
5921
+ children: [
5922
+ /* @__PURE__ */ u(
5923
+ "input",
5924
+ {
5925
+ className: "p-checkbox__input",
5926
+ disabled: !0,
5927
+ type: "checkbox",
5928
+ ...i
5929
+ }
5930
+ ),
5931
+ /* @__PURE__ */ u("span", { className: "p-checkbox__label" })
5932
+ ]
5933
+ }
5934
+ )
5935
+ );
5859
5936
  const o = e.getCanSelect(), a = typeof n == "string" ? n : n(e);
5860
- return /* @__PURE__ */ d(Gt, { message: t ? "Selection is managed by the parent row" : o ? !1 : a, position: "btm-right", children: /* @__PURE__ */ G(
5937
+ return /* @__PURE__ */ u(Bt, { message: t ? "Selection is managed by the parent row" : o ? !1 : a, position: "btm-right", children: /* @__PURE__ */ G(
5861
5938
  "label",
5862
5939
  {
5863
5940
  className: "p-checkbox--inline p-table-checkbox",
5864
5941
  onClick: (r) => r.stopPropagation(),
5865
5942
  onKeyDown: (r) => r.stopPropagation(),
5866
5943
  children: [
5867
- /* @__PURE__ */ d(
5944
+ /* @__PURE__ */ u(
5868
5945
  "input",
5869
5946
  {
5870
5947
  className: "p-checkbox__input",
@@ -5875,82 +5952,79 @@ const Mr = ({
5875
5952
  ...i
5876
5953
  }
5877
5954
  ),
5878
- /* @__PURE__ */ d("span", { className: "p-checkbox__label" })
5955
+ /* @__PURE__ */ u("span", { className: "p-checkbox__label" })
5879
5956
  ]
5880
5957
  }
5881
5958
  ) });
5882
5959
  };
5883
- Me.All = Lr;
5884
- Me.Group = Nr;
5960
+ Ee.All = Lr;
5961
+ Ee.Group = Nr;
5885
5962
  const Hr = ({
5886
5963
  canSelect: e,
5887
5964
  initialColumns: n,
5888
- isLoading: t,
5889
- groupBy: i,
5890
- getSubRows: o,
5891
- selection: a,
5892
- showChevron: l
5965
+ groupBy: t,
5966
+ getSubRows: i,
5967
+ selection: o,
5968
+ showChevron: a
5893
5969
  }) => {
5894
- let r = [...n];
5895
- if (t)
5896
- return r;
5897
- if (e && a) {
5898
- const s = [
5970
+ let l = [...n];
5971
+ if (e && o) {
5972
+ const r = [
5899
5973
  {
5900
5974
  id: "p-generic-table__select",
5901
5975
  accessorKey: "id",
5902
5976
  enableSorting: !1,
5903
5977
  meta: { headerAriaLabel: "Row selection" },
5904
- header: ({ table: c }) => i ? "" : /* @__PURE__ */ d(Me.All, { table: c }),
5905
- cell: ({ row: c }) => {
5906
- const u = a.rowSelectionLabelKey && a.rowSelectionLabelKey in c.original ? `select ${c.original[a.rowSelectionLabelKey]}` : "select row";
5907
- return c.getIsGrouped() ? null : /* @__PURE__ */ d(
5908
- Me,
5978
+ header: ({ table: s }) => t ? "" : /* @__PURE__ */ u(Ee.All, { table: s }),
5979
+ cell: ({ row: s }) => {
5980
+ const c = o.rowSelectionLabelKey && o.rowSelectionLabelKey in s.original ? `select ${s.original[o.rowSelectionLabelKey]}` : "select row";
5981
+ return s.getIsGrouped() ? null : /* @__PURE__ */ u(
5982
+ Ee,
5909
5983
  {
5910
- "aria-label": u,
5911
- disabledTooltip: a.disabledSelectionTooltip ?? "",
5912
- isNested: o !== void 0 && !!c.parentId,
5913
- row: c
5984
+ "aria-label": c,
5985
+ disabledTooltip: o.disabledSelectionTooltip ?? "",
5986
+ isNested: i !== void 0 && !!s.parentId,
5987
+ row: s
5914
5988
  }
5915
5989
  );
5916
5990
  }
5917
5991
  },
5918
- ...r
5992
+ ...l
5919
5993
  ];
5920
- if (i) {
5921
- const c = (u) => i[0] in u.original ? `select ${u.original[i[0]]}` : "select group";
5922
- r = [
5994
+ if (t) {
5995
+ const s = (c) => t[0] in c.original ? `select ${c.original[t[0]]}` : "select group";
5996
+ l = [
5923
5997
  {
5924
5998
  id: "p-generic-table__group-select",
5925
5999
  accessorKey: "id",
5926
6000
  enableSorting: !1,
5927
6001
  meta: { headerAriaLabel: "Row selection" },
5928
- header: ({ table: u }) => /* @__PURE__ */ d(Me.All, { table: u }),
5929
- cell: ({ row: u }) => u.getIsGrouped() ? /* @__PURE__ */ d(Me.Group, { "aria-label": c(u), row: u }) : null
6002
+ header: ({ table: c }) => /* @__PURE__ */ u(Ee.All, { table: c }),
6003
+ cell: ({ row: c }) => c.getIsGrouped() ? /* @__PURE__ */ u(Ee.Group, { "aria-label": s(c), row: c }) : null
5930
6004
  },
5931
- ...s
6005
+ ...r
5932
6006
  ];
5933
6007
  } else
5934
- r = s;
6008
+ l = r;
5935
6009
  }
5936
- return i && l && (r = [{
6010
+ return t && a && (l = [{
5937
6011
  id: "p-generic-table__group-chevron",
5938
6012
  accessorKey: "id",
5939
6013
  enableSorting: !1,
5940
6014
  meta: { headerAriaHidden: !0 },
5941
6015
  header: "",
5942
- cell: ({ row: c }) => {
5943
- const u = c.getIsExpanded();
5944
- return c.getIsGrouped() ? /* @__PURE__ */ d(
5945
- Gt,
6016
+ cell: ({ row: s }) => {
6017
+ const c = s.getIsExpanded();
6018
+ return s.getIsGrouped() ? /* @__PURE__ */ u(
6019
+ Bt,
5946
6020
  {
5947
- message: u ? "Collapse" : "Expand",
6021
+ message: c ? "Collapse" : "Expand",
5948
6022
  position: "btm-right",
5949
- children: /* @__PURE__ */ d(Re, { name: u ? en.chevronUp : en.chevronDown })
6023
+ children: /* @__PURE__ */ u(Ce, { name: c ? It.chevronUp : It.chevronDown })
5950
6024
  }
5951
6025
  ) : null;
5952
6026
  }
5953
- }, ...r]), r;
6027
+ }, ...l]), l;
5954
6028
  }, qr = ({
5955
6029
  table: e,
5956
6030
  columns: n,
@@ -5960,29 +6034,29 @@ const Hr = ({
5960
6034
  selection: a
5961
6035
  }) => {
5962
6036
  if (e.getRowModel().rows.length < 1)
5963
- return /* @__PURE__ */ d("tr", { children: /* @__PURE__ */ d(
6037
+ return /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u(
5964
6038
  "td",
5965
6039
  {
5966
6040
  className: "p-generic-table__no-data",
5967
6041
  colSpan: n.length,
5968
6042
  role: "gridcell",
5969
- children: /* @__PURE__ */ d("div", { "aria-live": "polite", role: "status", children: o })
6043
+ children: /* @__PURE__ */ u("div", { "aria-live": "polite", role: "status", children: o })
5970
6044
  }
5971
6045
  ) });
5972
6046
  let l = 1;
5973
6047
  return e.getRowModel().rows.map((r) => {
5974
6048
  l++;
5975
- const s = l, { getIsGrouped: c, id: u, getVisibleCells: f, parentId: g } = r, p = !c(), m = (a == null ? void 0 : a.rowSelection) !== void 0 && Object.keys(a.rowSelection).includes(u), v = (x) => {
6049
+ const s = l, { getIsGrouped: c, id: d, getVisibleCells: f, parentId: g } = r, p = !c(), m = (a == null ? void 0 : a.rowSelection) !== void 0 && Object.keys(a.rowSelection).includes(d), v = (x) => {
5976
6050
  x.target === x.currentTarget && (x.key === "Enter" || x.key === " ") && (x.preventDefault(), r.toggleExpanded());
5977
- }, b = (x) => {
6051
+ }, S = (x) => {
5978
6052
  if (x.target !== x.currentTarget || x.key !== "Enter" && x.key !== " ") return;
5979
6053
  x.preventDefault();
5980
- const E = x.currentTarget.querySelector(
6054
+ const b = x.currentTarget.querySelector(
5981
6055
  "button:not([disabled]), input:not([disabled]), a[href], select:not([disabled]), textarea:not([disabled])"
5982
6056
  );
5983
- E == null || E.focus();
6057
+ b == null || b.focus();
5984
6058
  };
5985
- return /* @__PURE__ */ d(
6059
+ return /* @__PURE__ */ u(
5986
6060
  "tr",
5987
6061
  {
5988
6062
  "aria-expanded": p ? void 0 : r.getIsExpanded(),
@@ -5994,186 +6068,221 @@ const Hr = ({
5994
6068
  "p-generic-table__nested-row": i !== void 0 && !!g
5995
6069
  }),
5996
6070
  onClick: p ? void 0 : () => r.toggleExpanded(),
5997
- onKeyDown: p ? b : v,
6071
+ onKeyDown: p ? S : v,
5998
6072
  tabIndex: -1,
5999
6073
  role: "row",
6000
6074
  children: f().filter((x) => !p && (x.column.id === "p-generic-table__group-select" || x.column.id === "p-generic-table__group-chevron") ? !0 : t(r, x.column)).map((x) => {
6001
- var E, w;
6002
- return /* @__PURE__ */ d(
6075
+ var b, w;
6076
+ return /* @__PURE__ */ u(
6003
6077
  "td",
6004
6078
  {
6005
6079
  "aria-hidden": x.column.id === "p-generic-table__select" && i !== void 0 && g ? !0 : void 0,
6006
- "aria-label": ((w = (E = x.column.columnDef.meta) == null ? void 0 : E.cellAriaLabel) == null ? void 0 : w.call(E, r)) ?? void 0,
6080
+ "aria-label": ((w = (b = x.column.columnDef.meta) == null ? void 0 : b.cellAriaLabel) == null ? void 0 : w.call(b, r)) ?? void 0,
6007
6081
  className: L(`${x.column.id}`),
6008
6082
  role: "gridcell",
6009
6083
  tabIndex: -1,
6010
- children: hi(x.column.columnDef.cell, x.getContext())
6084
+ children: wi(x.column.columnDef.cell, x.getContext())
6011
6085
  },
6012
6086
  x.id
6013
6087
  );
6014
6088
  })
6015
6089
  },
6016
- u
6090
+ d
6017
6091
  );
6018
6092
  });
6019
- }, Gr = ({
6093
+ }, Gr = (e, n) => {
6094
+ const t = e.column.id;
6095
+ return t === "p-generic-table__group-chevron" ? n ? /* @__PURE__ */ u(Ce, { name: It.chevronDown }) : null : t === "p-generic-table__group-select" ? n ? /* @__PURE__ */ u(Ee.Group, { "aria-label": "select group" }) : null : t === "p-generic-table__select" ? n ? null : /* @__PURE__ */ u(Ee, { "aria-label": "select row" }) : null;
6096
+ }, Br = (e, n, t) => e({ getIsGrouped: () => t }, n), Ur = ({
6020
6097
  table: e,
6021
6098
  columns: n,
6022
6099
  filterHeaders: t,
6023
- loadingVariant: i,
6024
- skeletonRowCount: o
6100
+ filterCells: i,
6101
+ loadingVariant: o,
6102
+ skeletonRowCount: a,
6103
+ skeletonGroupCount: l
6025
6104
  }) => {
6026
- var l;
6027
- const a = ((l = e.getHeaderGroups()[0]) == null ? void 0 : l.headers.filter(t)) ?? [];
6028
- return i !== "skeleton" ? /* @__PURE__ */ d("tr", { children: /* @__PURE__ */ d(
6029
- "td",
6030
- {
6031
- className: "p-generic-table__loading",
6032
- colSpan: a.length || n.length,
6033
- role: "gridcell",
6034
- children: /* @__PURE__ */ d(qt, { text: "Loading..." })
6035
- }
6036
- ) }) : Array.from({ length: o }).map((r, s) => /* @__PURE__ */ d(
6105
+ var p;
6106
+ const r = ((p = e.getHeaderGroups()[0]) == null ? void 0 : p.headers) ?? [], s = r.filter(t);
6107
+ if (o !== "skeleton")
6108
+ return /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u(
6109
+ "td",
6110
+ {
6111
+ className: "p-generic-table__loading",
6112
+ colSpan: s.length || n.length,
6113
+ role: "gridcell",
6114
+ children: /* @__PURE__ */ u(Gt, { text: "Loading..." })
6115
+ }
6116
+ ) });
6117
+ const c = r.some(
6118
+ (m) => m.column.id === "p-generic-table__group-select" || m.column.id === "p-generic-table__group-chevron"
6119
+ ), d = (m, v, S) => /* @__PURE__ */ u(
6037
6120
  "tr",
6038
6121
  {
6039
- "aria-rowindex": s + 2,
6040
- className: "p-generic-table__skeleton-row",
6122
+ "aria-expanded": S ? !0 : void 0,
6123
+ "aria-rowindex": v,
6124
+ className: L({
6125
+ "p-generic-table__group-row": S,
6126
+ "p-generic-table__individual-row": !S,
6127
+ "p-generic-table__skeleton-row": !0
6128
+ }),
6041
6129
  role: "row",
6042
- children: a.map((c) => {
6043
- const u = c.column.columnDef.meta, f = c.column.id.startsWith("p-generic-table__");
6044
- return /* @__PURE__ */ d(
6130
+ children: r.filter((x) => {
6131
+ const b = x.column.id;
6132
+ return S && (b === "p-generic-table__group-select" || b === "p-generic-table__group-chevron") ? !0 : Br(
6133
+ i,
6134
+ x.column,
6135
+ S
6136
+ );
6137
+ }).map((x) => {
6138
+ const b = x.column.id, w = b.startsWith("p-generic-table__"), E = x.column.columnDef.meta, h = w ? Gr(x, S) : E != null && E.skeleton ? E.skeleton() : /* @__PURE__ */ u(zn, { variant: "block", width: "70%", height: "1.5rem" });
6139
+ return /* @__PURE__ */ u(
6045
6140
  "td",
6046
6141
  {
6047
- className: L(
6048
- "p-generic-table__skeleton-cell",
6049
- c.column.id
6050
- ),
6142
+ className: L("p-generic-table__skeleton-cell", b),
6051
6143
  role: "gridcell",
6052
- children: f ? null : u != null && u.skeleton ? u.skeleton() : /* @__PURE__ */ d("div", { className: "p-generic-table__skeleton-default" })
6144
+ children: h
6053
6145
  },
6054
- `skel-${s}-${c.id}`
6146
+ `${m}-${x.id}`
6055
6147
  );
6056
6148
  })
6057
6149
  },
6058
- `skel-${s}`
6059
- ));
6060
- }, nl = ({
6150
+ m
6151
+ );
6152
+ if (!c)
6153
+ return Array.from({ length: a }).map(
6154
+ (m, v) => d(`skel-${v}`, v + 2, !1)
6155
+ );
6156
+ const f = [];
6157
+ let g = 1;
6158
+ for (let m = 0; m < l; m++) {
6159
+ f.push(d(`skel-group-${m}`, ++g, !0));
6160
+ for (let v = 0; v < a; v++)
6161
+ f.push(d(`skel-${m}-${v}`, ++g, !1));
6162
+ }
6163
+ return f;
6164
+ }, ol = ({
6061
6165
  "aria-label": e,
6062
6166
  className: n,
6063
6167
  columns: t,
6064
- containerRef: i,
6065
- data: o,
6066
- filterCells: a = () => !0,
6067
- filterHeaders: l = () => !0,
6068
- getSubRows: r,
6069
- groupBy: s,
6070
- isLoading: c,
6071
- loadingVariant: u = "spinner",
6072
- skeletonRowCount: f = 10,
6073
- noData: g,
6074
- pagination: p,
6075
- pinGroup: m,
6076
- sorting: v = [],
6168
+ columnVisibility: i,
6169
+ containerRef: o,
6170
+ data: a,
6171
+ filterCells: l = () => !0,
6172
+ filterHeaders: r = () => !0,
6173
+ getSubRows: s,
6174
+ groupBy: c,
6175
+ isLoading: d,
6176
+ loadingVariant: f = "spinner",
6177
+ skeletonRowCount: g = 10,
6178
+ skeletonGroupCount: p = 2,
6179
+ noData: m,
6180
+ pagination: v,
6181
+ pinGroup: S,
6182
+ sorting: x = [],
6077
6183
  selection: b,
6078
- setSorting: x,
6184
+ setSorting: w,
6079
6185
  showChevron: E = !1,
6080
- variant: w = "full-height",
6081
- ...F
6186
+ variant: h = "full-height",
6187
+ debug: P = !1,
6188
+ ...N
6082
6189
  }) => {
6083
- const { grouping: h, setGrouping: P, groupedData: z } = jr({
6084
- groupBy: s,
6085
- initialData: o
6086
- }), { sortedData: X, sorting: ee, setSorting: ce } = Vr({
6087
- externalSorting: v,
6088
- setExternalSorting: x,
6089
- grouping: h,
6090
- groupedData: z,
6091
- pinGroup: m
6092
- }), { expanded: ue, setExpanded: he } = Or({
6093
- grouping: h,
6094
- initialData: o
6095
- }), { tableBodyRef: k, maxHeight: _, effectiveVariant: q } = zr({
6096
- containerRef: i,
6097
- variant: w,
6098
- length: X.length,
6099
- isLoading: c
6100
- }), K = !!b, J = le(
6190
+ const { grouping: Y, setGrouping: Z, groupedData: ce } = jr({
6191
+ groupBy: c,
6192
+ initialData: a
6193
+ }), { sortedData: pe, sorting: he, setSorting: F } = Vr({
6194
+ externalSorting: x,
6195
+ setExternalSorting: w,
6196
+ grouping: Y,
6197
+ groupedData: ce,
6198
+ pinGroup: S
6199
+ }), { expanded: R, setExpanded: B } = Or({
6200
+ grouping: Y,
6201
+ initialData: a
6202
+ }), { tableBodyRef: Q, maxHeight: ee, effectiveVariant: le } = zr({
6203
+ containerRef: o,
6204
+ variant: h,
6205
+ length: pe.length,
6206
+ isLoading: d
6207
+ }), [ne, y] = de({}), k = (i == null ? void 0 : i.columnVisibility) ?? ne, j = (i == null ? void 0 : i.setColumnVisibility) ?? y, O = !!b, I = re(
6101
6208
  () => Hr({
6102
- canSelect: K,
6209
+ canSelect: O,
6103
6210
  initialColumns: t,
6104
- isLoading: c,
6105
- groupBy: s,
6106
- getSubRows: r,
6211
+ groupBy: c,
6212
+ getSubRows: s,
6107
6213
  selection: b,
6108
6214
  showChevron: E
6109
6215
  }),
6110
- [K, t, c, s, r]
6111
- ), ie = Ir({
6112
- data: X,
6113
- columns: J,
6216
+ [O, t, c, s]
6217
+ ), z = Ir({
6218
+ data: pe,
6219
+ columns: I,
6114
6220
  state: {
6115
- grouping: h,
6116
- expanded: ue,
6117
- sorting: ee,
6221
+ grouping: Y,
6222
+ expanded: R,
6223
+ sorting: he,
6224
+ columnVisibility: k,
6118
6225
  rowSelection: b == null ? void 0 : b.rowSelection
6119
6226
  },
6120
6227
  manualPagination: !0,
6121
6228
  autoResetExpanded: !1,
6122
- onExpandedChange: he,
6123
- onSortingChange: ce,
6124
- onGroupingChange: P,
6229
+ onExpandedChange: B,
6230
+ onSortingChange: F,
6231
+ onGroupingChange: Z,
6232
+ onColumnVisibilityChange: j,
6125
6233
  onRowSelectionChange: b == null ? void 0 : b.setRowSelection,
6126
6234
  manualSorting: !0,
6127
6235
  enableSorting: !0,
6128
6236
  enableExpanding: !0,
6129
- getSubRows: r,
6237
+ getSubRows: s,
6130
6238
  getExpandedRowModel: Cr(),
6131
6239
  getCoreRowModel: Sr(),
6132
6240
  getGroupedRowModel: Rr(),
6133
6241
  groupedColumnMode: !1,
6134
- enableRowSelection: (b == null ? void 0 : b.filterSelectable) ?? K,
6135
- enableMultiRowSelection: (b == null ? void 0 : b.filterSelectable) ?? K,
6136
- getRowId: (M) => M.id.toString()
6137
- }), { tableRef: te, handleTableFocus: y, handleTableKeyDown: R } = Tr({ isLoading: c });
6242
+ enableRowSelection: (b == null ? void 0 : b.filterSelectable) ?? O,
6243
+ enableMultiRowSelection: (b == null ? void 0 : b.filterSelectable) ?? O,
6244
+ getRowId: (q) => q.id.toString(),
6245
+ debugAll: P
6246
+ }), { tableRef: M, handleTableFocus: T, handleTableKeyDown: H } = Tr({ isLoading: d });
6138
6247
  return /* @__PURE__ */ G(
6139
6248
  "div",
6140
6249
  {
6141
6250
  className: L("p-generic-table", n),
6142
6251
  "data-testid": "p-generic-table",
6143
- ...F,
6252
+ ...N,
6144
6253
  children: [
6145
- p && /* @__PURE__ */ d(
6254
+ v && /* @__PURE__ */ u(
6146
6255
  Mr,
6147
6256
  {
6148
- currentPage: p.currentPage,
6149
- dataContext: p.dataContext,
6150
- handlePageSizeChange: p.handlePageSizeChange,
6151
- isPending: p.isPending,
6152
- itemsPerPage: p.itemsPerPage,
6153
- setCurrentPage: p.setCurrentPage,
6154
- totalItems: p.totalItems,
6155
- pageSizes: p.pageSizes
6257
+ currentPage: v.currentPage,
6258
+ dataContext: v.dataContext,
6259
+ handlePageSizeChange: v.handlePageSizeChange,
6260
+ isPending: v.isPending,
6261
+ itemsPerPage: v.itemsPerPage,
6262
+ setCurrentPage: v.setCurrentPage,
6263
+ totalItems: v.totalItems,
6264
+ pageSizes: v.pageSizes
6156
6265
  }
6157
6266
  ),
6158
6267
  /* @__PURE__ */ G(
6159
6268
  "table",
6160
6269
  {
6161
- ref: te,
6162
- "aria-busy": c,
6270
+ ref: M,
6271
+ "aria-busy": d,
6163
6272
  "aria-label": e,
6164
- "aria-rowcount": ((p == null ? void 0 : p.totalItems) ?? ie.getRowModel().rows.length) + 1,
6273
+ "aria-rowcount": ((v == null ? void 0 : v.totalItems) ?? z.getRowModel().rows.length) + 1,
6165
6274
  className: L("p-generic-table__table", {
6166
- "p-generic-table__is-full-height": q === "full-height",
6167
- "p-generic-table__is-selectable": K,
6168
- "p-generic-table__is-grouped": s !== void 0
6275
+ "p-generic-table__is-full-height": le === "full-height",
6276
+ "p-generic-table__is-selectable": O,
6277
+ "p-generic-table__is-grouped": c !== void 0
6169
6278
  }),
6170
- onFocus: y,
6171
- onKeyDown: R,
6279
+ onFocus: T,
6280
+ onKeyDown: H,
6172
6281
  role: "treegrid",
6173
6282
  children: [
6174
- /* @__PURE__ */ d("thead", { children: ie.getHeaderGroups().map((M) => /* @__PURE__ */ d("tr", { "aria-rowindex": 1, role: "row", children: M.headers.filter(l).map((j, I) => /* @__PURE__ */ G(On, { children: [
6175
- /* @__PURE__ */ d(Dr, { header: j }),
6176
- K && s && (!E && I === 2 || E && I === 3) ? /* @__PURE__ */ d(
6283
+ /* @__PURE__ */ u("thead", { children: z.getHeaderGroups().map((q) => /* @__PURE__ */ u("tr", { "aria-rowindex": 1, role: "row", children: q.headers.filter(r).map((V, te) => /* @__PURE__ */ G(On, { children: [
6284
+ /* @__PURE__ */ u(Dr, { header: V }),
6285
+ O && c && (!E && te === 2 || E && te === 3) ? /* @__PURE__ */ u(
6177
6286
  "th",
6178
6287
  {
6179
6288
  "aria-hidden": "true",
@@ -6181,27 +6290,29 @@ const Hr = ({
6181
6290
  role: "columnheader"
6182
6291
  }
6183
6292
  ) : null
6184
- ] }, j.id)) }, M.id)) }),
6185
- /* @__PURE__ */ d(
6293
+ ] }, V.id)) }, q.id)) }),
6294
+ /* @__PURE__ */ u(
6186
6295
  "tbody",
6187
6296
  {
6188
- ref: k,
6297
+ ref: Q,
6189
6298
  style: {
6190
6299
  overflowY: "auto",
6191
- maxHeight: _
6300
+ maxHeight: ee
6192
6301
  },
6193
- children: c ? Gr({
6194
- table: ie,
6195
- columns: J,
6196
- filterHeaders: l,
6197
- loadingVariant: u,
6198
- skeletonRowCount: f
6302
+ children: d ? Ur({
6303
+ table: z,
6304
+ columns: I,
6305
+ filterHeaders: r,
6306
+ filterCells: l,
6307
+ loadingVariant: f,
6308
+ skeletonRowCount: g,
6309
+ skeletonGroupCount: p
6199
6310
  }) : qr({
6200
- table: ie,
6201
- columns: J,
6202
- filterCells: a,
6203
- getSubRows: r,
6204
- noData: g,
6311
+ table: z,
6312
+ columns: I,
6313
+ filterCells: l,
6314
+ getSubRows: s,
6315
+ noData: m,
6205
6316
  selection: b
6206
6317
  })
6207
6318
  }
@@ -6222,9 +6333,9 @@ const Hr = ({
6222
6333
  COLON: ":",
6223
6334
  COMMA: ","
6224
6335
  }, Ze = (e, n = e.length) => {
6225
- const t = Br(e, n), { token: i, tokenStart: o, tokenEnd: a } = Ur(e, n);
6336
+ const t = Kr(e, n), { token: i, tokenStart: o, tokenEnd: a } = Wr(e, n);
6226
6337
  return { context: t, token: i, tokenStart: o, tokenEnd: a };
6227
- }, Br = (e, n) => {
6338
+ }, Kr = (e, n) => {
6228
6339
  let t = 0;
6229
6340
  for (let i = n - 1; i >= 0; i--) {
6230
6341
  const o = e[i];
@@ -6239,7 +6350,7 @@ const Hr = ({
6239
6350
  }
6240
6351
  }
6241
6352
  return "";
6242
- }, Ur = (e, n) => {
6353
+ }, Wr = (e, n) => {
6243
6354
  let t = n, i = n;
6244
6355
  for (; i < e.length && /[^\s=(),]/.test(e[i]); )
6245
6356
  i++;
@@ -6249,7 +6360,7 @@ const Hr = ({
6249
6360
  }, An = (e, n) => {
6250
6361
  const t = e.charAt(n - 1);
6251
6362
  return n > 0 && (t === we.CLOSE_PAREN || t === we.COMMA);
6252
- }, il = ({
6363
+ }, al = ({
6253
6364
  className: e,
6254
6365
  disabled: n = !1,
6255
6366
  search: t,
@@ -6260,73 +6371,73 @@ const Hr = ({
6260
6371
  suggestions: r,
6261
6372
  isLoading: s = !1,
6262
6373
  placeholder: c,
6263
- ...u
6374
+ ...d
6264
6375
  }) => {
6265
- const [f, g] = ge({
6376
+ const [f, g] = de({
6266
6377
  isVisible: !1,
6267
6378
  highlightedIndex: -1,
6268
6379
  showingMore: !1,
6269
6380
  cursorPosition: 0
6270
- }), p = de(null), m = de(null), v = de(null), b = le(() => {
6271
- const k = f.showingMore ? Dn.EXPANDED : Dn.DEFAULT, _ = r.slice(0, k);
6272
- return !f.showingMore && r.length > k ? [..._, { value: "Show more...", type: "more" }] : _;
6381
+ }), p = fe(null), m = fe(null), v = fe(null), S = re(() => {
6382
+ const F = f.showingMore ? Dn.EXPANDED : Dn.DEFAULT, R = r.slice(0, F);
6383
+ return !f.showingMore && r.length > F ? [...R, { value: "Show more...", type: "more" }] : R;
6273
6384
  }, [r, f.showingMore]), x = U(
6274
- (k) => {
6275
- g(typeof k == "function" ? (_) => ({ ..._, ...k(_) }) : (_) => ({ ..._, ...k }));
6385
+ (F) => {
6386
+ g(typeof F == "function" ? (R) => ({ ...R, ...F(R) }) : (R) => ({ ...R, ...F }));
6276
6387
  },
6277
6388
  []
6278
- ), E = U(
6279
- (k) => {
6280
- p.current && !p.current.contains(k.target) && x({
6389
+ ), b = U(
6390
+ (F) => {
6391
+ p.current && !p.current.contains(F.target) && x({
6281
6392
  isVisible: !1,
6282
6393
  highlightedIndex: -1
6283
6394
  });
6284
6395
  },
6285
6396
  [x]
6286
6397
  ), w = U(
6287
- (k, _) => {
6288
- const { tokenStart: q, tokenEnd: K } = _;
6289
- if (k.type === "filter") {
6290
- const ie = k.value + we.COLON + we.OPEN_PAREN;
6291
- return t.slice(0, q) + ie + t.slice(K);
6398
+ (F, R) => {
6399
+ const { tokenStart: B, tokenEnd: Q } = R;
6400
+ if (F.type === "filter") {
6401
+ const le = F.value + we.COLON + we.OPEN_PAREN;
6402
+ return t.slice(0, B) + le + t.slice(Q);
6292
6403
  }
6293
6404
  if (o.length === 0) {
6294
- const ie = k.type + we.COLON + we.OPEN_PAREN + we.EQUALS + k.value;
6295
- return t.slice(0, q) + ie + t.slice(K);
6405
+ const le = F.type + we.COLON + we.OPEN_PAREN + we.EQUALS + F.value;
6406
+ return t.slice(0, B) + le + t.slice(Q);
6296
6407
  }
6297
- const J = t.charAt(q - 1) === we.EQUALS ? k.value : we.EQUALS + k.value;
6298
- return t.slice(0, q) + J + t.slice(K);
6408
+ const ee = t.charAt(B - 1) === we.EQUALS ? F.value : we.EQUALS + F.value;
6409
+ return t.slice(0, B) + ee + t.slice(Q);
6299
6410
  },
6300
6411
  [t, o]
6301
- ), F = U(
6302
- (k) => {
6303
- const _ = b[k];
6304
- if (!_) return;
6305
- if (_.type === "more") {
6412
+ ), E = U(
6413
+ (F) => {
6414
+ const R = S[F];
6415
+ if (!R) return;
6416
+ if (R.type === "more") {
6306
6417
  x({ showingMore: !0 });
6307
6418
  return;
6308
6419
  }
6309
- const q = Ze(
6420
+ const B = Ze(
6310
6421
  t,
6311
6422
  f.cursorPosition
6312
- ), K = w(_, q), J = q.tokenStart + (_.type === "filter" ? _.value.length + 2 : o.length === 0 ? _.type.length + _.value.length + 3 : _.value.length + 1), { context: ie, token: te } = Ze(
6313
- K,
6314
- J
6423
+ ), Q = w(R, B), ee = B.tokenStart + (R.type === "filter" ? R.value.length + 2 : o.length === 0 ? R.type.length + R.value.length + 3 : R.value.length + 1), { context: le, token: ne } = Ze(
6424
+ Q,
6425
+ ee
6315
6426
  );
6316
- a(ie), l(te), i(K), setTimeout(() => {
6427
+ a(le), l(ne), i(Q), setTimeout(() => {
6317
6428
  v.current && (v.current.focus(), v.current.setSelectionRange(
6318
- J,
6319
- J
6429
+ ee,
6430
+ ee
6320
6431
  ));
6321
6432
  }, 0), x({
6322
6433
  highlightedIndex: 0,
6323
6434
  showingMore: !1,
6324
- isVisible: _.type === "filter",
6325
- cursorPosition: J
6435
+ isVisible: R.type === "filter",
6436
+ cursorPosition: ee
6326
6437
  });
6327
6438
  },
6328
6439
  [
6329
- b,
6440
+ S,
6330
6441
  w,
6331
6442
  t,
6332
6443
  f.cursorPosition,
@@ -6338,100 +6449,100 @@ const Hr = ({
6338
6449
  ]
6339
6450
  ), h = U(() => {
6340
6451
  if (!v.current) return;
6341
- const k = v.current.selectionStart || 0, { context: _, token: q } = Ze(
6452
+ const F = v.current.selectionStart || 0, { context: R, token: B } = Ze(
6342
6453
  t,
6343
- k
6454
+ F
6344
6455
  );
6345
- a(_), l(q), x((K) => ({
6346
- ...K,
6347
- isVisible: !An(t, k),
6348
- cursorPosition: k
6456
+ a(R), l(B), x((Q) => ({
6457
+ ...Q,
6458
+ isVisible: !An(t, F),
6459
+ cursorPosition: F
6349
6460
  }));
6350
6461
  }, [t, a, l, x]), P = U(
6351
- (k) => {
6352
- const { key: _ } = k;
6462
+ (F) => {
6463
+ const { key: R } = F;
6353
6464
  if (f.isVisible) {
6354
- const q = b.length;
6355
- switch (_) {
6465
+ const B = S.length;
6466
+ switch (R) {
6356
6467
  case "Tab":
6357
6468
  case "ArrowDown":
6358
- k.preventDefault(), x({
6359
- highlightedIndex: (f.highlightedIndex + 1) % q
6469
+ F.preventDefault(), x({
6470
+ highlightedIndex: (f.highlightedIndex + 1) % B
6360
6471
  });
6361
6472
  return;
6362
6473
  case "ArrowUp":
6363
- k.preventDefault(), x({
6364
- highlightedIndex: f.highlightedIndex <= 0 ? q - 1 : f.highlightedIndex - 1
6474
+ F.preventDefault(), x({
6475
+ highlightedIndex: f.highlightedIndex <= 0 ? B - 1 : f.highlightedIndex - 1
6365
6476
  });
6366
6477
  return;
6367
6478
  case "Enter":
6368
- k.preventDefault(), f.highlightedIndex >= 0 ? F(f.highlightedIndex) : x({ isVisible: !1 });
6479
+ F.preventDefault(), f.highlightedIndex >= 0 ? E(f.highlightedIndex) : x({ isVisible: !1 });
6369
6480
  return;
6370
6481
  case "Escape":
6371
- k.preventDefault(), x({
6482
+ F.preventDefault(), x({
6372
6483
  isVisible: !1,
6373
6484
  highlightedIndex: -1
6374
6485
  });
6375
6486
  return;
6376
6487
  }
6377
6488
  }
6378
- (_ === "ArrowLeft" || _ === "ArrowRight" || _ === "Home" || _ === "End") && setTimeout(h, 0);
6489
+ (R === "ArrowLeft" || R === "ArrowRight" || R === "Home" || R === "End") && setTimeout(h, 0);
6379
6490
  },
6380
6491
  [
6381
6492
  f,
6382
- b.length,
6493
+ S.length,
6383
6494
  x,
6384
- F,
6495
+ E,
6385
6496
  h
6386
6497
  ]
6387
- ), z = U(
6388
- (k) => {
6389
- const { key: _ } = k;
6390
- (_ === "ArrowLeft" || _ === "ArrowRight" || _ === "Home" || _ === "End") && h();
6498
+ ), N = U(
6499
+ (F) => {
6500
+ const { key: R } = F;
6501
+ (R === "ArrowLeft" || R === "ArrowRight" || R === "Home" || R === "End") && h();
6391
6502
  },
6392
6503
  [h]
6393
- ), X = U(() => {
6504
+ ), Y = U(() => {
6394
6505
  x({
6395
6506
  isVisible: !0,
6396
6507
  highlightedIndex: 0
6397
6508
  });
6398
- }, [x]), ee = U(
6399
- (k) => {
6400
- var J;
6401
- const _ = ((J = v.current) == null ? void 0 : J.selectionStart) || k.length, { context: q, token: K } = Ze(
6402
- k,
6403
- _
6509
+ }, [x]), Z = U(
6510
+ (F) => {
6511
+ var ee;
6512
+ const R = ((ee = v.current) == null ? void 0 : ee.selectionStart) || F.length, { context: B, token: Q } = Ze(
6513
+ F,
6514
+ R
6404
6515
  );
6405
- a(q), l(K), i(k), x({
6516
+ a(B), l(Q), i(F), x({
6406
6517
  highlightedIndex: 0,
6407
- isVisible: !An(k, _),
6518
+ isVisible: !An(F, R),
6408
6519
  showingMore: !1,
6409
- cursorPosition: _
6520
+ cursorPosition: R
6410
6521
  });
6411
6522
  },
6412
6523
  [a, l, i, x]
6413
6524
  ), ce = U(() => {
6414
6525
  setTimeout(h, 0);
6415
- }, [h]), ue = U(() => {
6526
+ }, [h]), pe = U(() => {
6416
6527
  x({
6417
6528
  isVisible: !1,
6418
6529
  highlightedIndex: -1
6419
6530
  });
6420
6531
  }, [x]), he = U(
6421
- (k) => {
6422
- x({ highlightedIndex: k });
6532
+ (F) => {
6533
+ x({ highlightedIndex: F });
6423
6534
  },
6424
6535
  [x]
6425
6536
  );
6426
- return xe(() => (document.addEventListener("mousedown", E), () => document.removeEventListener("mousedown", E)), [E]), /* @__PURE__ */ G(
6537
+ return ge(() => (document.addEventListener("mousedown", b), () => document.removeEventListener("mousedown", b)), [b]), /* @__PURE__ */ G(
6427
6538
  "div",
6428
6539
  {
6429
6540
  className: L("p-query-input", e),
6430
6541
  "data-testid": "p-query-input",
6431
6542
  ref: p,
6432
- ...u,
6543
+ ...d,
6433
6544
  children: [
6434
- /* @__PURE__ */ d(
6545
+ /* @__PURE__ */ u(
6435
6546
  jn,
6436
6547
  {
6437
6548
  disabled: n,
@@ -6442,11 +6553,11 @@ const Hr = ({
6442
6553
  id: "query-input",
6443
6554
  name: "query-input",
6444
6555
  ref: v,
6445
- onFocus: X,
6446
- onChange: ee,
6556
+ onFocus: Y,
6557
+ onChange: Z,
6447
6558
  onKeyDown: P,
6448
- onKeyUp: z,
6449
- onClear: ue,
6559
+ onKeyUp: N,
6560
+ onClear: pe,
6450
6561
  onClick: ce,
6451
6562
  "aria-disabled": n,
6452
6563
  "aria-expanded": f.isVisible,
@@ -6454,7 +6565,7 @@ const Hr = ({
6454
6565
  "aria-owns": "query-suggestions"
6455
6566
  }
6456
6567
  ),
6457
- f.isVisible && r.length > 0 && /* @__PURE__ */ d(
6568
+ f.isVisible && r.length > 0 && /* @__PURE__ */ u(
6458
6569
  "ul",
6459
6570
  {
6460
6571
  className: "p-query-input__list",
@@ -6462,42 +6573,42 @@ const Hr = ({
6462
6573
  id: "query-suggestions",
6463
6574
  role: "listbox",
6464
6575
  "aria-label": "Search suggestions",
6465
- children: s ? /* @__PURE__ */ d("div", { className: "p-query-input__loading", children: /* @__PURE__ */ d(qt, { text: "Loading..." }) }) : b.map((k, _) => /* @__PURE__ */ G(
6576
+ children: s ? /* @__PURE__ */ u("div", { className: "p-query-input__loading", children: /* @__PURE__ */ u(Gt, { text: "Loading..." }) }) : S.map((F, R) => /* @__PURE__ */ G(
6466
6577
  "li",
6467
6578
  {
6468
6579
  className: L("p-query-input__item", {
6469
- highlight: _ === f.highlightedIndex
6580
+ highlight: R === f.highlightedIndex
6470
6581
  }),
6471
- onClick: () => F(_),
6472
- onKeyDown: () => F(_),
6473
- onMouseEnter: () => he(_),
6582
+ onClick: () => E(R),
6583
+ onKeyDown: () => E(R),
6584
+ onMouseEnter: () => he(R),
6474
6585
  role: "option",
6475
- "aria-selected": _ === f.highlightedIndex,
6586
+ "aria-selected": R === f.highlightedIndex,
6476
6587
  tabIndex: -1,
6477
6588
  children: [
6478
6589
  /* @__PURE__ */ G("span", { className: "p-query-input__item-label", children: [
6479
- /* @__PURE__ */ d(
6590
+ /* @__PURE__ */ u(
6480
6591
  "span",
6481
6592
  {
6482
6593
  className: L({
6483
- "u-text--muted": k.type === "more"
6594
+ "u-text--muted": F.type === "more"
6484
6595
  }),
6485
- children: k.value
6596
+ children: F.value
6486
6597
  }
6487
6598
  ),
6488
- k.type === "filter" && /* @__PURE__ */ d("span", { className: "u-text--muted", children: ":()" })
6599
+ F.type === "filter" && /* @__PURE__ */ u("span", { className: "u-text--muted", children: ":()" })
6489
6600
  ] }),
6490
- k.type !== "more" && /* @__PURE__ */ d("span", { className: "u-text--muted u-align-text--right", children: k.type })
6601
+ F.type !== "more" && /* @__PURE__ */ u("span", { className: "u-text--muted u-align-text--right", children: F.type })
6491
6602
  ]
6492
6603
  },
6493
- `${k.value}-${_}`
6604
+ `${F.value}-${R}`
6494
6605
  ))
6495
6606
  }
6496
6607
  )
6497
6608
  ]
6498
6609
  }
6499
6610
  );
6500
- }, ol = ({ value: e, unit: n }, {
6611
+ }, rl = ({ value: e, unit: n }, {
6501
6612
  binary: t = !1,
6502
6613
  convertTo: i,
6503
6614
  decimals: o = 2,
@@ -6506,7 +6617,7 @@ const Hr = ({
6506
6617
  const l = e < 0, r = Math.abs(e);
6507
6618
  if (r === 0)
6508
6619
  return { value: 0, unit: i || "B" };
6509
- const s = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], u = c.findIndex((v) => v === n) || 0, f = r * Math.pow(s, u), g = i ? c.findIndex((v) => v === i) : Math.floor(Math.log(f) / Math.log(s));
6620
+ const s = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], d = c.findIndex((v) => v === n) || 0, f = r * Math.pow(s, d), g = i ? c.findIndex((v) => v === i) : Math.floor(Math.log(f) / Math.log(s));
6510
6621
  let p = f / Math.pow(s, g);
6511
6622
  if (p % 1 !== 0) {
6512
6623
  const v = Math.pow(10, o);
@@ -6519,28 +6630,28 @@ const Hr = ({
6519
6630
  };
6520
6631
  export {
6521
6632
  ot as ContentSection,
6522
- oi as DynamicTable,
6523
- Qr as ExternalLink,
6524
- el as FileUpload,
6525
- Kt as FormSection,
6526
- nl as GenericTable,
6527
- zn as InputGroup,
6528
- Nn as MainToolbar,
6529
- Li as Meter,
6530
- tl as MultiSelect,
6633
+ ai as DynamicTable,
6634
+ Zr as ExternalLink,
6635
+ nl as FileUpload,
6636
+ Wt as FormSection,
6637
+ ol as GenericTable,
6638
+ Vn as InputGroup,
6639
+ Hn as MainToolbar,
6640
+ Ni as Meter,
6641
+ il as MultiSelect,
6531
6642
  $a as MultiSelectDropdown,
6532
- re as Navigation,
6643
+ ae as Navigation,
6533
6644
  uo as NavigationBar,
6534
- Jr as NestedFormGroup,
6645
+ el as NestedFormGroup,
6535
6646
  Ro as Pagination,
6536
- Eo as PaginationContainer,
6537
- Bi as Placeholder,
6538
- Gi as ProgressIndicator,
6539
- il as QueryInput,
6540
- Zr as Stepper,
6541
- ri as TableCaption,
6542
- Xr as defaultFilledColors,
6543
- ol as formatBytes,
6544
- Ie as meterColor,
6647
+ ko as PaginationContainer,
6648
+ zn as Placeholder,
6649
+ Bi as ProgressIndicator,
6650
+ al as QueryInput,
6651
+ tl as Stepper,
6652
+ li as TableCaption,
6653
+ Jr as defaultFilledColors,
6654
+ rl as formatBytes,
6655
+ De as meterColor,
6545
6656
  Oe as testIds
6546
6657
  };