@canonical/maas-react-components 1.20.1 → 1.21.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.
@@ -42,7 +42,7 @@ var Br = { exports: {} };
42
42
  })();
43
43
  })(Br);
44
44
  var Ot = Br.exports;
45
- const W = /* @__PURE__ */ Lr(Ot);
45
+ const z = /* @__PURE__ */ Lr(Ot);
46
46
  const ve = {
47
47
  caution: "#F99B11",
48
48
  light: "#F7F7F7",
@@ -77,7 +77,7 @@ const ve = {
77
77
  size: o = "regular",
78
78
  ...s
79
79
  }) => {
80
- const i = Ce(null), v = t == null ? void 0 : t.reduce((O, w) => O + w.value, 0), c = n || v, y = t.map((O) => O.value / c * 100), [g, h] = ye(0);
80
+ const i = Ce(null), m = t == null ? void 0 : t.reduce((O, w) => O + w.value, 0), c = n || m, y = t.map((O) => O.value / c * 100), [g, h] = ye(0);
81
81
  he(() => {
82
82
  h(a === "segmented" ? yr(i, c) : 0);
83
83
  }, [c, a]);
@@ -87,7 +87,7 @@ const ve = {
87
87
  return gt(window, S, "resize", !0, a === "segmented"), /* @__PURE__ */ se(
88
88
  "div",
89
89
  {
90
- className: W("p-meter", e, {
90
+ className: z("p-meter", e, {
91
91
  "p-meter--small": o === "small"
92
92
  }),
93
93
  "aria-label": s == null ? void 0 : s["aria-label"],
@@ -123,13 +123,13 @@ const ve = {
123
123
  maximum: t,
124
124
  segmentWidth: n
125
125
  }) => {
126
- const a = () => (e == null ? void 0 : e.reduce((i, v) => i + v.value, 0)) > t, o = (i, v) => ({
126
+ const a = () => (e == null ? void 0 : e.reduce((i, m) => i + m.value, 0)) > t, o = (i, m) => ({
127
127
  backgroundColor: i.color,
128
128
  left: `${r == null ? void 0 : r.reduce(
129
- (c, y, g) => v > g ? c + y : c,
129
+ (c, y, g) => m > g ? c + y : c,
130
130
  0
131
131
  )}%`,
132
- width: `${r[v]}%`
132
+ width: `${r[m]}%`
133
133
  }), s = () => ({
134
134
  background: `repeating-linear-gradient(
135
135
  to right,
@@ -147,14 +147,14 @@ const ve = {
147
147
  "data-testid": _e.meteroverflow,
148
148
  style: { backgroundColor: zr, width: "100%" }
149
149
  }
150
- ) : e == null ? void 0 : e.map((i, v) => /* @__PURE__ */ u(
150
+ ) : e == null ? void 0 : e.map((i, m) => /* @__PURE__ */ u(
151
151
  "div",
152
152
  {
153
153
  className: "p-meter__filled",
154
154
  "data-testid": _e.filled,
155
- style: o(i, v)
155
+ style: o(i, m)
156
156
  },
157
- `meter-${v}`
157
+ `meter-${m}`
158
158
  )),
159
159
  n > 0 && /* @__PURE__ */ u(
160
160
  "div",
@@ -171,7 +171,7 @@ const ve = {
171
171
  }) => /* @__PURE__ */ u(
172
172
  "div",
173
173
  {
174
- className: W("p-meter__label", e),
174
+ className: z("p-meter__label", e),
175
175
  "data-testid": _e.label,
176
176
  children: r
177
177
  }
@@ -198,7 +198,7 @@ const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href:
198
198
  {
199
199
  appearance: "base",
200
200
  "aria-label": `${e ? "expand" : "collapse"} main navigation`,
201
- className: W(
201
+ className: z(
202
202
  "is-dense has-icon is-dark u-no-margin l-navigation-collapse-toggle",
203
203
  t
204
204
  ),
@@ -209,24 +209,24 @@ const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href:
209
209
  }
210
210
  )
211
211
  }
212
- ), kt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__content", children: /* @__PURE__ */ u("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Nt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__controls u-no-margin--top", children: e }), $t = ({ children: e }) => /* @__PURE__ */ u("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ u("div", { className: "p-panel is-dark", children: e }) }), Mt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__footer", children: e }), Lt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__header", children: e }), Bt = ({ light: e = !0, name: r }) => /* @__PURE__ */ u(ke, { className: "p-side-navigation__icon", light: e, name: r }), zt = ({ children: e, className: r, hasActiveChild: t }) => /* @__PURE__ */ u("li", { className: W("p-side-navigation__item", r, { "has-active-child": t }), children: e }), Wt = ({ children: e, id: r, variant: t = "base" }) => /* @__PURE__ */ u("span", { className: W("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: r, children: e }), Yt = ({
212
+ ), kt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__content", children: /* @__PURE__ */ u("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Nt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__controls u-no-margin--top", children: e }), $t = ({ children: e }) => /* @__PURE__ */ u("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ u("div", { className: "p-panel is-dark", children: e }) }), Mt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__footer", children: e }), Lt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__header", children: e }), Bt = ({ light: e = !0, name: r }) => /* @__PURE__ */ u(ke, { className: "p-side-navigation__icon", light: e, name: r }), zt = ({ children: e, className: r, hasActiveChild: t }) => /* @__PURE__ */ u("li", { className: z("p-side-navigation__item", r, { "has-active-child": t }), children: e }), Wt = ({ children: e, id: r, variant: t = "base" }) => /* @__PURE__ */ u("span", { className: z("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: r, children: e }), Yt = ({
213
213
  as: e,
214
214
  ...r
215
215
  }) => /* @__PURE__ */ u(
216
216
  e || "a",
217
217
  {
218
- className: W("p-side-navigation__link", r.className),
218
+ className: z("p-side-navigation__link", r.className),
219
219
  ...r
220
220
  }
221
- ), qt = ({ children: e, className: r }) => /* @__PURE__ */ u("ul", { className: W("p-side-navigation__list", r), children: e }), Kt = ({
221
+ ), qt = ({ children: e, className: r }) => /* @__PURE__ */ u("ul", { className: z("p-side-navigation__list", r), children: e }), Kt = ({
222
222
  as: e,
223
223
  children: r,
224
224
  className: t,
225
225
  ...n
226
- }) => /* @__PURE__ */ u(e || "a", { className: W("p-panel__logo", t), ...n, children: /* @__PURE__ */ u("div", { className: "p-navigation__tagged-logo", children: r }) }), Ht = ({ children: e }) => ft(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), Ut = ({ children: e, variant: r = "base" }) => /* @__PURE__ */ u(
226
+ }) => /* @__PURE__ */ u(e || "a", { className: z("p-panel__logo", t), ...n, children: /* @__PURE__ */ u("div", { className: "p-navigation__tagged-logo", children: r }) }), Ht = ({ children: e }) => ft(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), Ut = ({ children: e, variant: r = "base" }) => /* @__PURE__ */ u(
227
227
  "div",
228
228
  {
229
- className: W("p-panel__logo-name is-fading-when-collapsed", {
229
+ className: z("p-panel__logo-name is-fading-when-collapsed", {
230
230
  "p-panel__logo-name--small": r === "small"
231
231
  }),
232
232
  children: e
@@ -239,7 +239,7 @@ const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href:
239
239
  Ee,
240
240
  {
241
241
  appearance: "base",
242
- className: W(
242
+ className: z(
243
243
  "p-side-navigation__button--menu has-icon is-dark",
244
244
  r
245
245
  ),
@@ -249,7 +249,7 @@ const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href:
249
249
  children: e
250
250
  }
251
251
  ), Zt = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-side-navigation__text", children: e });
252
- const H = ({ children: e, className: r, isCollapsed: t }) => /* @__PURE__ */ u("header", { "aria-label": "main navigation", className: W("l-navigation is-maas", r, { "is-collapsed": t, "is-pinned": !t }), children: e }), Xt = ({ children: e, className: r }) => /* @__PURE__ */ u("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ u("div", { className: W("p-panel is-dark", r), children: e }) });
252
+ const H = ({ children: e, className: r, isCollapsed: t }) => /* @__PURE__ */ u("header", { "aria-label": "main navigation", className: z("l-navigation is-maas", r, { "is-collapsed": t, "is-pinned": !t }), children: e }), Xt = ({ children: e, className: r }) => /* @__PURE__ */ u("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ u("div", { className: z("p-panel is-dark", r), children: e }) });
253
253
  H.Header = Lt;
254
254
  H.Banner = Ft;
255
255
  H.Drawer = $t;
@@ -316,7 +316,7 @@ const Yr = ne.createContext(null), qr = ne.createContext([!1, () => {
316
316
  return /* @__PURE__ */ u(
317
317
  "header",
318
318
  {
319
- className: W("main-toolbar", {
319
+ className: z("main-toolbar", {
320
320
  "main-toolbar--stacked": n
321
321
  }),
322
322
  ref: r,
@@ -331,7 +331,7 @@ const Yr = ne.createContext(null), qr = ne.createContext([!1, () => {
331
331
  }) => /* @__PURE__ */ u(
332
332
  e || "h1",
333
333
  {
334
- className: W("main-toolbar__title p-heading--4", t),
334
+ className: z("main-toolbar__title p-heading--4", t),
335
335
  "data-testid": "main-toolbar-heading",
336
336
  ...n,
337
337
  children: r
@@ -354,7 +354,7 @@ const Yr = ne.createContext(null), qr = ne.createContext([!1, () => {
354
354
  /* @__PURE__ */ u(
355
355
  "div",
356
356
  {
357
- className: W("main-toolbar__controls", {
357
+ className: z("main-toolbar__controls", {
358
358
  "main-toolbar__controls--stacked": t
359
359
  }),
360
360
  children: e
@@ -371,16 +371,16 @@ const Le = ({
371
371
  variant: n = "wide",
372
372
  ...a
373
373
  }) => {
374
- const o = t || "section", s = W("content-section", r);
374
+ const o = t || "section", s = z("content-section", r);
375
375
  return /* @__PURE__ */ u(o, { ...a, className: s, children: /* @__PURE__ */ u(_t, { children: /* @__PURE__ */ u(Et, { size: n === "narrow" ? 6 : 12, children: e }) }) });
376
376
  }, cn = ({ children: e, className: r, as: t, ...n }) => /* @__PURE__ */ u(
377
377
  t || "h1",
378
378
  {
379
379
  ...n,
380
- className: W("content-section__title p-heading--4", r),
380
+ className: z("content-section__title p-heading--4", r),
381
381
  children: e
382
382
  }
383
- ), ln = ({ children: e, className: r }) => /* @__PURE__ */ u("header", { className: W("content-section__header", r), children: e }), un = ({ children: e, className: r }) => /* @__PURE__ */ u("div", { className: W("content-section__body", r), children: e }), fn = ({ children: e, className: r }) => /* @__PURE__ */ u("footer", { className: W("content-section__footer", r), children: e });
383
+ ), ln = ({ children: e, className: r }) => /* @__PURE__ */ u("header", { className: z("content-section__header", r), children: e }), un = ({ children: e, className: r }) => /* @__PURE__ */ u("div", { className: z("content-section__body", r), children: e }), fn = ({ children: e, className: r }) => /* @__PURE__ */ u("footer", { className: z("content-section__footer", r), children: e });
384
384
  Le.Title = cn;
385
385
  Le.Header = ln;
386
386
  Le.Content = un;
@@ -392,7 +392,7 @@ const Hr = ({
392
392
  }) => /* @__PURE__ */ u(
393
393
  "div",
394
394
  {
395
- className: W("fade-in--down", r),
395
+ className: z("fade-in--down", r),
396
396
  "aria-hidden": t ? "false" : "true",
397
397
  style: { visibility: t ? "visible" : "hidden" },
398
398
  children: e
@@ -402,60 +402,69 @@ const Hr = ({
402
402
  ...r
403
403
  }) => /* @__PURE__ */ u(Hr, { isVisible: !r["aria-hidden"], children: /* @__PURE__ */ u("div", { className: "p-form__nested-group", ...r, children: e }) });
404
404
  const pn = ({
405
- currentPage: e,
406
- error: r,
407
- disabled: t,
408
- onInputBlur: n,
409
- onInputChange: a,
410
- onNextClick: o,
411
- onPreviousClick: s,
412
- totalPages: i
413
- }) => /* @__PURE__ */ u("nav", { "aria-label": "pagination", className: "p-pagination", children: /* @__PURE__ */ se("span", { className: "p-pagination--items", children: [
414
- /* @__PURE__ */ u(
415
- Ee,
416
- {
417
- "aria-label": "Previous page",
418
- className: "p-pagination__link--previous",
419
- disabled: e === 1 || t,
420
- onClick: s,
421
- type: "button",
422
- children: /* @__PURE__ */ u(ke, { name: "chevron-down" })
423
- }
424
- ),
425
- /* @__PURE__ */ u("strong", { children: "Page " }),
426
- " ",
427
- /* @__PURE__ */ u(
428
- wt,
429
- {
430
- "aria-label": "page number",
431
- className: "p-pagination__input",
432
- disabled: t,
433
- error: r,
434
- min: 1,
435
- onBlur: n,
436
- onChange: a,
437
- required: !0,
438
- type: "number",
439
- value: e
440
- }
441
- ),
442
- " ",
443
- /* @__PURE__ */ se("strong", { className: "u-no-wrap", children: [
444
- " of ",
445
- i
446
- ] }),
447
- /* @__PURE__ */ u(
448
- Ee,
449
- {
450
- "aria-label": "Next page",
451
- className: "p-pagination__link--next",
452
- disabled: e === i || t,
453
- onClick: o,
454
- type: "button",
455
- children: /* @__PURE__ */ u(ke, { name: "chevron-up" })
456
- }
457
- )
458
- ] }) }), Co = ({
405
+ className: e,
406
+ currentPage: r,
407
+ error: t,
408
+ disabled: n,
409
+ onInputBlur: a,
410
+ onInputChange: o,
411
+ onNextClick: s,
412
+ onPreviousClick: i,
413
+ totalPages: m,
414
+ ...c
415
+ }) => /* @__PURE__ */ u(
416
+ "nav",
417
+ {
418
+ "aria-label": (c == null ? void 0 : c["aria-label"]) || "pagination",
419
+ className: z("p-pagination", e),
420
+ children: /* @__PURE__ */ se("span", { className: "p-pagination--items", children: [
421
+ /* @__PURE__ */ u(
422
+ Ee,
423
+ {
424
+ "aria-label": "Previous page",
425
+ className: "p-pagination__link--previous",
426
+ disabled: r === 1 || n,
427
+ onClick: i,
428
+ type: "button",
429
+ children: /* @__PURE__ */ u(ke, { name: "chevron-down" })
430
+ }
431
+ ),
432
+ /* @__PURE__ */ u("strong", { children: "Page " }),
433
+ " ",
434
+ /* @__PURE__ */ u(
435
+ wt,
436
+ {
437
+ "aria-label": "page number",
438
+ className: "p-pagination__input",
439
+ disabled: n,
440
+ error: t,
441
+ min: 1,
442
+ onBlur: a,
443
+ onChange: o,
444
+ required: !0,
445
+ type: "number",
446
+ value: r
447
+ }
448
+ ),
449
+ " ",
450
+ /* @__PURE__ */ se("strong", { className: "u-no-wrap", children: [
451
+ " of ",
452
+ m
453
+ ] }),
454
+ /* @__PURE__ */ u(
455
+ Ee,
456
+ {
457
+ "aria-label": "Next page",
458
+ className: "p-pagination__link--next",
459
+ disabled: r === m || n,
460
+ onClick: s,
461
+ type: "button",
462
+ children: /* @__PURE__ */ u(ke, { name: "chevron-up" })
463
+ }
464
+ )
465
+ ] })
466
+ }
467
+ ), Co = ({
459
468
  currentPage: e,
460
469
  disabled: r,
461
470
  paginate: t,
@@ -491,7 +500,7 @@ const Oo = ({ activeStep: e, items: r }) => /* @__PURE__ */ u("ol", { className:
491
500
  "p",
492
501
  {
493
502
  "aria-label": o ? `${t} (completed)` : t,
494
- className: W("stepper__title", {
503
+ className: z("stepper__title", {
495
504
  "stepper__title--is-active": a,
496
505
  "stepper__title--is-complete": o
497
506
  }),
@@ -513,14 +522,14 @@ function dn() {
513
522
  if (gr)
514
523
  return F;
515
524
  gr = 1;
516
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
525
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
517
526
  function A(f) {
518
527
  if (typeof f == "object" && f !== null) {
519
528
  var Z = f.$$typeof;
520
529
  switch (Z) {
521
530
  case r:
522
531
  switch (f = f.type, f) {
523
- case v:
532
+ case m:
524
533
  case c:
525
534
  case n:
526
535
  case o:
@@ -547,8 +556,8 @@ function dn() {
547
556
  function N(f) {
548
557
  return A(f) === c;
549
558
  }
550
- return F.AsyncMode = v, F.ConcurrentMode = c, F.ContextConsumer = i, F.ContextProvider = s, F.Element = r, F.ForwardRef = y, F.Fragment = n, F.Lazy = O, F.Memo = S, F.Portal = t, F.Profiler = o, F.StrictMode = a, F.Suspense = g, F.isAsyncMode = function(f) {
551
- return N(f) || A(f) === v;
559
+ return F.AsyncMode = m, F.ConcurrentMode = c, F.ContextConsumer = i, F.ContextProvider = s, F.Element = r, F.ForwardRef = y, F.Fragment = n, F.Lazy = O, F.Memo = S, F.Portal = t, F.Profiler = o, F.StrictMode = a, F.Suspense = g, F.isAsyncMode = function(f) {
560
+ return N(f) || A(f) === m;
552
561
  }, F.isConcurrentMode = N, F.isContextConsumer = function(f) {
553
562
  return A(f) === i;
554
563
  }, F.isContextProvider = function(f) {
@@ -587,7 +596,7 @@ var j = {};
587
596
  var br;
588
597
  function mn() {
589
598
  return br || (br = 1, process.env.NODE_ENV !== "production" && function() {
590
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
599
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
591
600
  function A(p) {
592
601
  return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
593
602
  p === n || p === c || p === o || p === a || p === g || p === h || typeof p == "object" && p !== null && (p.$$typeof === O || p.$$typeof === S || p.$$typeof === s || p.$$typeof === i || p.$$typeof === y || p.$$typeof === L || p.$$typeof === k || p.$$typeof === K || p.$$typeof === w);
@@ -599,7 +608,7 @@ function mn() {
599
608
  case r:
600
609
  var de = p.type;
601
610
  switch (de) {
602
- case v:
611
+ case m:
603
612
  case c:
604
613
  case n:
605
614
  case o:
@@ -624,14 +633,14 @@ function mn() {
624
633
  }
625
634
  }
626
635
  }
627
- var f = v, Z = c, $ = i, V = s, X = r, ce = y, fe = n, pe = O, le = S, z = t, J = o, te = a, oe = g, ue = !1;
636
+ var f = m, Z = c, $ = i, V = s, X = r, ce = y, fe = n, pe = O, le = S, W = t, J = o, te = a, oe = g, ue = !1;
628
637
  function U(p) {
629
- return ue || (ue = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), l(p) || N(p) === v;
638
+ return ue || (ue = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), l(p) || N(p) === m;
630
639
  }
631
640
  function l(p) {
632
641
  return N(p) === c;
633
642
  }
634
- function m(p) {
643
+ function v(p) {
635
644
  return N(p) === i;
636
645
  }
637
646
  function T(p) {
@@ -664,7 +673,7 @@ function mn() {
664
673
  function q(p) {
665
674
  return N(p) === g;
666
675
  }
667
- j.AsyncMode = f, j.ConcurrentMode = Z, j.ContextConsumer = $, j.ContextProvider = V, j.Element = X, j.ForwardRef = ce, j.Fragment = fe, j.Lazy = pe, j.Memo = le, j.Portal = z, j.Profiler = J, j.StrictMode = te, j.Suspense = oe, j.isAsyncMode = U, j.isConcurrentMode = l, j.isContextConsumer = m, j.isContextProvider = T, j.isElement = x, j.isForwardRef = _, j.isFragment = P, j.isLazy = E, j.isMemo = C, j.isPortal = I, j.isProfiler = R, j.isStrictMode = D, j.isSuspense = q, j.isValidElementType = A, j.typeOf = N;
676
+ j.AsyncMode = f, j.ConcurrentMode = Z, j.ContextConsumer = $, j.ContextProvider = V, j.Element = X, j.ForwardRef = ce, j.Fragment = fe, j.Lazy = pe, j.Memo = le, j.Portal = W, j.Profiler = J, j.StrictMode = te, j.Suspense = oe, j.isAsyncMode = U, j.isConcurrentMode = l, j.isContextConsumer = v, j.isContextProvider = T, j.isElement = x, j.isForwardRef = _, j.isFragment = P, j.isLazy = E, j.isMemo = C, j.isPortal = I, j.isProfiler = R, j.isStrictMode = D, j.isSuspense = q, j.isValidElementType = A, j.typeOf = N;
668
677
  }()), j;
669
678
  }
670
679
  var hr;
@@ -696,10 +705,10 @@ function vn() {
696
705
  return !1;
697
706
  for (var s = {}, i = 0; i < 10; i++)
698
707
  s["_" + String.fromCharCode(i)] = i;
699
- var v = Object.getOwnPropertyNames(s).map(function(y) {
708
+ var m = Object.getOwnPropertyNames(s).map(function(y) {
700
709
  return s[y];
701
710
  });
702
- if (v.join("") !== "0123456789")
711
+ if (m.join("") !== "0123456789")
703
712
  return !1;
704
713
  var c = {};
705
714
  return "abcdefghijklmnopqrst".split("").forEach(function(y) {
@@ -710,17 +719,17 @@ function vn() {
710
719
  }
711
720
  }
712
721
  return Ge = a() ? Object.assign : function(o, s) {
713
- for (var i, v = n(o), c, y = 1; y < arguments.length; y++) {
722
+ for (var i, m = n(o), c, y = 1; y < arguments.length; y++) {
714
723
  i = Object(arguments[y]);
715
724
  for (var g in i)
716
- r.call(i, g) && (v[g] = i[g]);
725
+ r.call(i, g) && (m[g] = i[g]);
717
726
  if (e) {
718
727
  c = e(i);
719
728
  for (var h = 0; h < c.length; h++)
720
- t.call(i, c[h]) && (v[c[h]] = i[c[h]]);
729
+ t.call(i, c[h]) && (m[c[h]] = i[c[h]]);
721
730
  }
722
731
  }
723
- return v;
732
+ return m;
724
733
  }, Ge;
725
734
  }
726
735
  var Ve, Er;
@@ -753,7 +762,7 @@ function yn() {
753
762
  }
754
763
  };
755
764
  }
756
- function a(o, s, i, v, c) {
765
+ function a(o, s, i, m, c) {
757
766
  if (process.env.NODE_ENV !== "production") {
758
767
  for (var y in o)
759
768
  if (n(o, y)) {
@@ -761,16 +770,16 @@ function yn() {
761
770
  try {
762
771
  if (typeof o[y] != "function") {
763
772
  var h = Error(
764
- (v || "React class") + ": " + i + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
773
+ (m || "React class") + ": " + i + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
765
774
  );
766
775
  throw h.name = "Invariant Violation", h;
767
776
  }
768
- g = o[y](s, y, v, i, null, r);
777
+ g = o[y](s, y, m, i, null, r);
769
778
  } catch (O) {
770
779
  g = O;
771
780
  }
772
781
  if (g && !(g instanceof Error) && e(
773
- (v || "React class") + ": type specification of " + i + " `" + y + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
782
+ (m || "React class") + ": type specification of " + i + " `" + y + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
774
783
  ), g instanceof Error && !(g.message in t)) {
775
784
  t[g.message] = !0;
776
785
  var S = c ? c() : "";
@@ -793,22 +802,22 @@ function gn() {
793
802
  var e = Ur(), r = vn(), t = fr(), n = Gr(), a = yn(), o = function() {
794
803
  };
795
804
  process.env.NODE_ENV !== "production" && (o = function(i) {
796
- var v = "Warning: " + i;
797
- typeof console < "u" && console.error(v);
805
+ var m = "Warning: " + i;
806
+ typeof console < "u" && console.error(m);
798
807
  try {
799
- throw new Error(v);
808
+ throw new Error(m);
800
809
  } catch {
801
810
  }
802
811
  });
803
812
  function s() {
804
813
  return null;
805
814
  }
806
- return Xe = function(i, v) {
815
+ return Xe = function(i, m) {
807
816
  var c = typeof Symbol == "function" && Symbol.iterator, y = "@@iterator";
808
817
  function g(l) {
809
- var m = l && (c && l[c] || l[y]);
810
- if (typeof m == "function")
811
- return m;
818
+ var v = l && (c && l[c] || l[y]);
819
+ if (typeof v == "function")
820
+ return v;
812
821
  }
813
822
  var h = "<<anonymous>>", S = {
814
823
  array: k("array"),
@@ -831,29 +840,29 @@ function gn() {
831
840
  shape: pe,
832
841
  exact: le
833
842
  };
834
- function O(l, m) {
835
- return l === m ? l !== 0 || 1 / l === 1 / m : l !== l && m !== m;
843
+ function O(l, v) {
844
+ return l === v ? l !== 0 || 1 / l === 1 / v : l !== l && v !== v;
836
845
  }
837
- function w(l, m) {
838
- this.message = l, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
846
+ function w(l, v) {
847
+ this.message = l, this.data = v && typeof v == "object" ? v : {}, this.stack = "";
839
848
  }
840
849
  w.prototype = Error.prototype;
841
850
  function L(l) {
842
851
  if (process.env.NODE_ENV !== "production")
843
- var m = {}, T = 0;
852
+ var v = {}, T = 0;
844
853
  function x(P, E, C, I, R, D, q) {
845
854
  if (I = I || h, D = D || C, q !== t) {
846
- if (v) {
855
+ if (m) {
847
856
  var p = new Error(
848
857
  "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"
849
858
  );
850
859
  throw p.name = "Invariant Violation", p;
851
860
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
852
861
  var Q = I + ":" + C;
853
- !m[Q] && // Avoid spamming the console because they are often not actionable except for lib authors
862
+ !v[Q] && // Avoid spamming the console because they are often not actionable except for lib authors
854
863
  T < 3 && (o(
855
864
  "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + I + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
856
- ), m[Q] = !0, T++);
865
+ ), v[Q] = !0, T++);
857
866
  }
858
867
  }
859
868
  return E[C] == null ? P ? E[C] === null ? new w("The " + R + " `" + D + "` is marked as required " + ("in `" + I + "`, but its value is `null`.")) : new w("The " + R + " `" + D + "` is marked as required in " + ("`" + I + "`, but its value is `undefined`.")) : null : l(E, C, I, R, D);
@@ -862,7 +871,7 @@ function gn() {
862
871
  return _.isRequired = x.bind(null, !0), _;
863
872
  }
864
873
  function k(l) {
865
- function m(T, x, _, P, E, C) {
874
+ function v(T, x, _, P, E, C) {
866
875
  var I = T[x], R = te(I);
867
876
  if (R !== l) {
868
877
  var D = oe(I);
@@ -873,13 +882,13 @@ function gn() {
873
882
  }
874
883
  return null;
875
884
  }
876
- return L(m);
885
+ return L(v);
877
886
  }
878
887
  function K() {
879
888
  return L(s);
880
889
  }
881
890
  function A(l) {
882
- function m(T, x, _, P, E) {
891
+ function v(T, x, _, P, E) {
883
892
  if (typeof l != "function")
884
893
  return new w("Property `" + E + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
885
894
  var C = T[x];
@@ -894,11 +903,11 @@ function gn() {
894
903
  }
895
904
  return null;
896
905
  }
897
- return L(m);
906
+ return L(v);
898
907
  }
899
908
  function N() {
900
- function l(m, T, x, _, P) {
901
- var E = m[T];
909
+ function l(v, T, x, _, P) {
910
+ var E = v[T];
902
911
  if (!i(E)) {
903
912
  var C = te(E);
904
913
  return new w("Invalid " + _ + " `" + P + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected a single ReactElement."));
@@ -908,8 +917,8 @@ function gn() {
908
917
  return L(l);
909
918
  }
910
919
  function f() {
911
- function l(m, T, x, _, P) {
912
- var E = m[T];
920
+ function l(v, T, x, _, P) {
921
+ var E = v[T];
913
922
  if (!e.isValidElementType(E)) {
914
923
  var C = te(E);
915
924
  return new w("Invalid " + _ + " `" + P + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected a single ReactElement type."));
@@ -919,21 +928,21 @@ function gn() {
919
928
  return L(l);
920
929
  }
921
930
  function Z(l) {
922
- function m(T, x, _, P, E) {
931
+ function v(T, x, _, P, E) {
923
932
  if (!(T[x] instanceof l)) {
924
933
  var C = l.name || h, I = U(T[x]);
925
934
  return new w("Invalid " + P + " `" + E + "` of type " + ("`" + I + "` supplied to `" + _ + "`, expected ") + ("instance of `" + C + "`."));
926
935
  }
927
936
  return null;
928
937
  }
929
- return L(m);
938
+ return L(v);
930
939
  }
931
940
  function $(l) {
932
941
  if (!Array.isArray(l))
933
942
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
934
943
  "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])."
935
944
  ) : o("Invalid argument supplied to oneOf, expected an array.")), s;
936
- function m(T, x, _, P, E) {
945
+ function v(T, x, _, P, E) {
937
946
  for (var C = T[x], I = 0; I < l.length; I++)
938
947
  if (O(C, l[I]))
939
948
  return null;
@@ -943,10 +952,10 @@ function gn() {
943
952
  });
944
953
  return new w("Invalid " + P + " `" + E + "` of value `" + String(C) + "` " + ("supplied to `" + _ + "`, expected one of " + R + "."));
945
954
  }
946
- return L(m);
955
+ return L(v);
947
956
  }
948
957
  function V(l) {
949
- function m(T, x, _, P, E) {
958
+ function v(T, x, _, P, E) {
950
959
  if (typeof l != "function")
951
960
  return new w("Property `" + E + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
952
961
  var C = T[x], I = te(C);
@@ -960,16 +969,16 @@ function gn() {
960
969
  }
961
970
  return null;
962
971
  }
963
- return L(m);
972
+ return L(v);
964
973
  }
965
974
  function X(l) {
966
975
  if (!Array.isArray(l))
967
976
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
968
- for (var m = 0; m < l.length; m++) {
969
- var T = l[m];
977
+ for (var v = 0; v < l.length; v++) {
978
+ var T = l[v];
970
979
  if (typeof T != "function")
971
980
  return o(
972
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ue(T) + " at index " + m + "."
981
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ue(T) + " at index " + v + "."
973
982
  ), s;
974
983
  }
975
984
  function x(_, P, E, C, I) {
@@ -985,18 +994,18 @@ function gn() {
985
994
  return L(x);
986
995
  }
987
996
  function ce() {
988
- function l(m, T, x, _, P) {
989
- return z(m[T]) ? null : new w("Invalid " + _ + " `" + P + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
997
+ function l(v, T, x, _, P) {
998
+ return W(v[T]) ? null : new w("Invalid " + _ + " `" + P + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
990
999
  }
991
1000
  return L(l);
992
1001
  }
993
- function fe(l, m, T, x, _) {
1002
+ function fe(l, v, T, x, _) {
994
1003
  return new w(
995
- (l || "React class") + ": " + m + " type `" + T + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
1004
+ (l || "React class") + ": " + v + " type `" + T + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
996
1005
  );
997
1006
  }
998
1007
  function pe(l) {
999
- function m(T, x, _, P, E) {
1008
+ function v(T, x, _, P, E) {
1000
1009
  var C = T[x], I = te(C);
1001
1010
  if (I !== "object")
1002
1011
  return new w("Invalid " + P + " `" + E + "` of type `" + I + "` " + ("supplied to `" + _ + "`, expected `object`."));
@@ -1010,10 +1019,10 @@ function gn() {
1010
1019
  }
1011
1020
  return null;
1012
1021
  }
1013
- return L(m);
1022
+ return L(v);
1014
1023
  }
1015
1024
  function le(l) {
1016
- function m(T, x, _, P, E) {
1025
+ function v(T, x, _, P, E) {
1017
1026
  var C = T[x], I = te(C);
1018
1027
  if (I !== "object")
1019
1028
  return new w("Invalid " + P + " `" + E + "` of type `" + I + "` " + ("supplied to `" + _ + "`, expected `object`."));
@@ -1033,9 +1042,9 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1033
1042
  }
1034
1043
  return null;
1035
1044
  }
1036
- return L(m);
1045
+ return L(v);
1037
1046
  }
1038
- function z(l) {
1047
+ function W(l) {
1039
1048
  switch (typeof l) {
1040
1049
  case "number":
1041
1050
  case "string":
@@ -1045,20 +1054,20 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1045
1054
  return !l;
1046
1055
  case "object":
1047
1056
  if (Array.isArray(l))
1048
- return l.every(z);
1057
+ return l.every(W);
1049
1058
  if (l === null || i(l))
1050
1059
  return !0;
1051
- var m = g(l);
1052
- if (m) {
1053
- var T = m.call(l), x;
1054
- if (m !== l.entries) {
1060
+ var v = g(l);
1061
+ if (v) {
1062
+ var T = v.call(l), x;
1063
+ if (v !== l.entries) {
1055
1064
  for (; !(x = T.next()).done; )
1056
- if (!z(x.value))
1065
+ if (!W(x.value))
1057
1066
  return !1;
1058
1067
  } else
1059
1068
  for (; !(x = T.next()).done; ) {
1060
1069
  var _ = x.value;
1061
- if (_ && !z(_[1]))
1070
+ if (_ && !W(_[1]))
1062
1071
  return !1;
1063
1072
  }
1064
1073
  } else
@@ -1068,37 +1077,37 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1068
1077
  return !1;
1069
1078
  }
1070
1079
  }
1071
- function J(l, m) {
1072
- return l === "symbol" ? !0 : m ? m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol : !1;
1080
+ function J(l, v) {
1081
+ return l === "symbol" ? !0 : v ? v["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && v instanceof Symbol : !1;
1073
1082
  }
1074
1083
  function te(l) {
1075
- var m = typeof l;
1076
- return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : J(m, l) ? "symbol" : m;
1084
+ var v = typeof l;
1085
+ return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : J(v, l) ? "symbol" : v;
1077
1086
  }
1078
1087
  function oe(l) {
1079
1088
  if (typeof l > "u" || l === null)
1080
1089
  return "" + l;
1081
- var m = te(l);
1082
- if (m === "object") {
1090
+ var v = te(l);
1091
+ if (v === "object") {
1083
1092
  if (l instanceof Date)
1084
1093
  return "date";
1085
1094
  if (l instanceof RegExp)
1086
1095
  return "regexp";
1087
1096
  }
1088
- return m;
1097
+ return v;
1089
1098
  }
1090
1099
  function ue(l) {
1091
- var m = oe(l);
1092
- switch (m) {
1100
+ var v = oe(l);
1101
+ switch (v) {
1093
1102
  case "array":
1094
1103
  case "object":
1095
- return "an " + m;
1104
+ return "an " + v;
1096
1105
  case "boolean":
1097
1106
  case "date":
1098
1107
  case "regexp":
1099
- return "a " + m;
1108
+ return "a " + v;
1100
1109
  default:
1101
- return m;
1110
+ return v;
1102
1111
  }
1103
1112
  }
1104
1113
  function U(l) {
@@ -1118,7 +1127,7 @@ function bn() {
1118
1127
  function t() {
1119
1128
  }
1120
1129
  return t.resetWarningCache = r, Qe = function() {
1121
- function n(s, i, v, c, y, g) {
1130
+ function n(s, i, m, c, y, g) {
1122
1131
  if (g !== e) {
1123
1132
  var h = new Error(
1124
1133
  "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"
@@ -1177,7 +1186,7 @@ function we(e, r, t, n) {
1177
1186
  s(g);
1178
1187
  }
1179
1188
  }
1180
- function v(y) {
1189
+ function m(y) {
1181
1190
  try {
1182
1191
  c(n.throw(y));
1183
1192
  } catch (g) {
@@ -1185,7 +1194,7 @@ function we(e, r, t, n) {
1185
1194
  }
1186
1195
  }
1187
1196
  function c(y) {
1188
- y.done ? o(y.value) : a(y.value).then(i, v);
1197
+ y.done ? o(y.value) : a(y.value).then(i, m);
1189
1198
  }
1190
1199
  c((n = n.apply(e, r || [])).next());
1191
1200
  });
@@ -1201,10 +1210,10 @@ function Se(e, r) {
1201
1210
  }), s;
1202
1211
  function i(c) {
1203
1212
  return function(y) {
1204
- return v([c, y]);
1213
+ return m([c, y]);
1205
1214
  };
1206
1215
  }
1207
- function v(c) {
1216
+ function m(c) {
1208
1217
  if (n)
1209
1218
  throw new TypeError("Generator is already executing.");
1210
1219
  for (; s && (s = 0, c[0] && (t = 0)), t; )
@@ -1503,7 +1512,7 @@ function Jr(e) {
1503
1512
  var s = this;
1504
1513
  r.readEntries(function(i) {
1505
1514
  return we(s, void 0, void 0, function() {
1506
- var v, c, y;
1515
+ var m, c, y;
1507
1516
  return Se(this, function(g) {
1508
1517
  switch (g.label) {
1509
1518
  case 0:
@@ -1513,7 +1522,7 @@ function Jr(e) {
1513
1522
  case 1:
1514
1523
  return g.trys.push([1, 3, , 4]), [4, Promise.all(a)];
1515
1524
  case 2:
1516
- return v = g.sent(), t(v), [3, 4];
1525
+ return m = g.sent(), t(m), [3, 4];
1517
1526
  case 3:
1518
1527
  return c = g.sent(), n(c), [3, 4];
1519
1528
  case 4:
@@ -1629,8 +1638,8 @@ function Ln(e, r) {
1629
1638
  try {
1630
1639
  for (t = t.call(e); !(a = (s = t.next()).done) && (n.push(s.value), !(r && n.length === r)); a = !0)
1631
1640
  ;
1632
- } catch (v) {
1633
- o = !0, i = v;
1641
+ } catch (m) {
1642
+ o = !0, i = m;
1634
1643
  } finally {
1635
1644
  try {
1636
1645
  !a && t.return != null && t.return();
@@ -1691,8 +1700,8 @@ function me(e) {
1691
1700
  }
1692
1701
  function Un(e) {
1693
1702
  var r = e.files, t = e.accept, n = e.minSize, a = e.maxSize, o = e.multiple, s = e.maxFiles, i = e.validator;
1694
- return !o && r.length > 1 || o && s >= 1 && r.length > s ? !1 : r.every(function(v) {
1695
- var c = Qr(v, t), y = Oe(c, 1), g = y[0], h = et(v, n, a), S = Oe(h, 1), O = S[0], w = i ? i(v) : null;
1703
+ return !o && r.length > 1 || o && s >= 1 && r.length > s ? !1 : r.every(function(m) {
1704
+ var c = Qr(m, t), y = Oe(c, 1), g = y[0], h = et(m, n, a), S = Oe(h, 1), O = S[0], w = i ? i(m) : null;
1696
1705
  return g && O && !w;
1697
1706
  });
1698
1707
  }
@@ -1816,8 +1825,8 @@ function fo(e, r) {
1816
1825
  try {
1817
1826
  for (t = t.call(e); !(a = (s = t.next()).done) && (n.push(s.value), !(r && n.length === r)); a = !0)
1818
1827
  ;
1819
- } catch (v) {
1820
- o = !0, i = v;
1828
+ } catch (m) {
1829
+ o = !0, i = m;
1821
1830
  } finally {
1822
1831
  try {
1823
1832
  !a && t.return != null && t.return();
@@ -2082,7 +2091,7 @@ var cr = {
2082
2091
  fileRejections: []
2083
2092
  };
2084
2093
  function at() {
2085
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = B(B({}, ot), e), t = r.accept, n = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, s = r.minSize, i = r.multiple, v = r.maxFiles, c = r.onDragEnter, y = r.onDragLeave, g = r.onDragOver, h = r.onDrop, S = r.onDropAccepted, O = r.onDropRejected, w = r.onFileDialogCancel, L = r.onFileDialogOpen, k = r.useFsAccessApi, K = r.autoFocus, A = r.preventDropOnDocument, N = r.noClick, f = r.noKeyboard, Z = r.noDrag, $ = r.noDragEventsBubbling, V = r.onError, X = r.validator, ce = ie(function() {
2094
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = B(B({}, ot), e), t = r.accept, n = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, s = r.minSize, i = r.multiple, m = r.maxFiles, c = r.onDragEnter, y = r.onDragLeave, g = r.onDragOver, h = r.onDrop, S = r.onDropAccepted, O = r.onDropRejected, w = r.onFileDialogCancel, L = r.onFileDialogOpen, k = r.useFsAccessApi, K = r.autoFocus, A = r.preventDropOnDocument, N = r.noClick, f = r.noKeyboard, Z = r.noDrag, $ = r.noDragEventsBubbling, V = r.onError, X = r.validator, ce = ie(function() {
2086
2095
  return Qn(t);
2087
2096
  }, [t]), fe = ie(function() {
2088
2097
  return Xn(t);
@@ -2090,8 +2099,8 @@ function at() {
2090
2099
  return typeof L == "function" ? L : $r;
2091
2100
  }, [L]), le = ie(function() {
2092
2101
  return typeof w == "function" ? w : $r;
2093
- }, [w]), z = Ce(null), J = Ce(null), te = dt(vo, cr), oe = er(te, 2), ue = oe[0], U = oe[1], l = ue.isFocused, m = ue.isFileDialogActive, T = Ce(typeof window < "u" && window.isSecureContext && k && Zn()), x = function() {
2094
- !T.current && m && setTimeout(function() {
2102
+ }, [w]), W = Ce(null), J = Ce(null), te = dt(vo, cr), oe = er(te, 2), ue = oe[0], U = oe[1], l = ue.isFocused, v = ue.isFileDialogActive, T = Ce(typeof window < "u" && window.isSecureContext && k && Zn()), x = function() {
2103
+ !T.current && v && setTimeout(function() {
2095
2104
  if (J.current) {
2096
2105
  var b = J.current.files;
2097
2106
  b.length || (U({
@@ -2104,18 +2113,18 @@ function at() {
2104
2113
  return window.addEventListener("focus", x, !1), function() {
2105
2114
  window.removeEventListener("focus", x, !1);
2106
2115
  };
2107
- }, [J, m, le, T]);
2116
+ }, [J, v, le, T]);
2108
2117
  var _ = Ce([]), P = function(b) {
2109
- z.current && z.current.contains(b.target) || (b.preventDefault(), _.current = []);
2118
+ W.current && W.current.contains(b.target) || (b.preventDefault(), _.current = []);
2110
2119
  };
2111
2120
  he(function() {
2112
2121
  return A && (document.addEventListener("dragover", kr, !1), document.addEventListener("drop", P, !1)), function() {
2113
2122
  A && (document.removeEventListener("dragover", kr), document.removeEventListener("drop", P));
2114
2123
  };
2115
- }, [z, A]), he(function() {
2116
- return !n && K && z.current && z.current.focus(), function() {
2124
+ }, [W, A]), he(function() {
2125
+ return !n && K && W.current && W.current.focus(), function() {
2117
2126
  };
2118
- }, [z, K, n]);
2127
+ }, [W, K, n]);
2119
2128
  var E = re(function(d) {
2120
2129
  V ? V(d) : console.error(d);
2121
2130
  }, [V]), C = re(function(d) {
@@ -2127,7 +2136,7 @@ function at() {
2127
2136
  minSize: s,
2128
2137
  maxSize: o,
2129
2138
  multiple: i,
2130
- maxFiles: v,
2139
+ maxFiles: m,
2131
2140
  validator: X
2132
2141
  }), ee = Y > 0 && !G;
2133
2142
  U({
@@ -2140,7 +2149,7 @@ function at() {
2140
2149
  }).catch(function(b) {
2141
2150
  return E(b);
2142
2151
  });
2143
- }, [a, c, E, $, ce, s, o, i, v, X]), I = re(function(d) {
2152
+ }, [a, c, E, $, ce, s, o, i, m, X]), I = re(function(d) {
2144
2153
  d.preventDefault(), d.persist(), Ie(d);
2145
2154
  var b = je(d);
2146
2155
  if (b && d.dataTransfer)
@@ -2152,7 +2161,7 @@ function at() {
2152
2161
  }, [g, $]), R = re(function(d) {
2153
2162
  d.preventDefault(), d.persist(), Ie(d);
2154
2163
  var b = _.current.filter(function(G) {
2155
- return z.current && z.current.contains(G);
2164
+ return W.current && W.current.contains(G);
2156
2165
  }), Y = b.indexOf(d.target);
2157
2166
  Y !== -1 && b.splice(Y, 1), _.current = b, !(b.length > 0) && (U({
2158
2167
  type: "setDraggedFiles",
@@ -2160,7 +2169,7 @@ function at() {
2160
2169
  isDragAccept: !1,
2161
2170
  isDragReject: !1
2162
2171
  }), je(d) && y && y(d));
2163
- }, [z, y, $]), D = re(function(d, b) {
2172
+ }, [W, y, $]), D = re(function(d, b) {
2164
2173
  var Y = [], G = [];
2165
2174
  d.forEach(function(ee) {
2166
2175
  var xe = Qr(ee, ce), be = er(xe, 2), ze = be[0], We = be[1], Ye = et(ee, s, o), Re = er(Ye, 2), qe = Re[0], Ke = Re[1], He = X ? X(ee) : null;
@@ -2175,7 +2184,7 @@ function at() {
2175
2184
  })
2176
2185
  });
2177
2186
  }
2178
- }), (!i && Y.length > 1 || i && v >= 1 && Y.length > v) && (Y.forEach(function(ee) {
2187
+ }), (!i && Y.length > 1 || i && m >= 1 && Y.length > m) && (Y.forEach(function(ee) {
2179
2188
  G.push({
2180
2189
  file: ee,
2181
2190
  errors: [Hn]
@@ -2185,7 +2194,7 @@ function at() {
2185
2194
  fileRejections: G,
2186
2195
  type: "setFiles"
2187
2196
  }), h && h(Y, G, b), G.length > 0 && O && O(G, b), Y.length > 0 && S && S(Y, b);
2188
- }, [U, i, ce, s, o, v, h, S, O, X]), q = re(function(d) {
2197
+ }, [U, i, ce, s, o, m, h, S, O, X]), q = re(function(d) {
2189
2198
  d.preventDefault(), d.persist(), Ie(d), _.current = [], je(d) && Promise.resolve(a(d)).then(function(b) {
2190
2199
  $e(d) && !$ || D(b, d);
2191
2200
  }).catch(function(b) {
@@ -2219,8 +2228,8 @@ function at() {
2219
2228
  type: "openDialog"
2220
2229
  }), pe(), J.current.value = null, J.current.click());
2221
2230
  }, [U, pe, le, k, D, E, fe, i]), Q = re(function(d) {
2222
- !z.current || !z.current.isEqualNode(d.target) || (d.key === " " || d.key === "Enter" || d.keyCode === 32 || d.keyCode === 13) && (d.preventDefault(), p());
2223
- }, [z, p]), de = re(function() {
2231
+ !W.current || !W.current.isEqualNode(d.target) || (d.key === " " || d.key === "Enter" || d.keyCode === 32 || d.keyCode === 13) && (d.preventDefault(), p());
2232
+ }, [W, p]), de = re(function() {
2224
2233
  U({
2225
2234
  type: "focus"
2226
2235
  });
@@ -2251,11 +2260,11 @@ function at() {
2251
2260
  onDragLeave: Pe(ae(Re, R)),
2252
2261
  onDrop: Pe(ae(qe, q)),
2253
2262
  role: typeof G == "string" && G !== "" ? G : "presentation"
2254
- }, Y, z), !n && !f ? {
2263
+ }, Y, W), !n && !f ? {
2255
2264
  tabIndex: 0
2256
2265
  } : {}), Ke);
2257
2266
  };
2258
- }, [z, Q, de, Te, dr, C, I, R, q, f, Z, n]), st = re(function(d) {
2267
+ }, [W, Q, de, Te, dr, C, I, R, q, f, Z, n]), st = re(function(d) {
2259
2268
  d.stopPropagation();
2260
2269
  }, []), ct = ie(function() {
2261
2270
  return function() {
@@ -2277,7 +2286,7 @@ function at() {
2277
2286
  isFocused: l && !n,
2278
2287
  getRootProps: it,
2279
2288
  getInputProps: ct,
2280
- rootRef: z,
2289
+ rootRef: W,
2281
2290
  inputRef: J,
2282
2291
  open: ge(p)
2283
2292
  });
@@ -2351,7 +2360,7 @@ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go =
2351
2360
  isOpen: o,
2352
2361
  footer: s,
2353
2362
  sortFn: i = yo,
2354
- groupFn: v = bo,
2363
+ groupFn: m = bo,
2355
2364
  ...c
2356
2365
  }) => {
2357
2366
  const y = ie(
@@ -2365,8 +2374,8 @@ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go =
2365
2374
  o && S(new Set(y));
2366
2375
  }, [o]);
2367
2376
  const O = ie(() => e.some((k) => k.group), [e]), w = ie(
2368
- () => O ? v(e) : [{ group: "Ungrouped", items: e }],
2369
- [e, v]
2377
+ () => O ? m(e) : [{ group: "Ungrouped", items: e }],
2378
+ [e, m]
2370
2379
  ), L = (k) => {
2371
2380
  const { checked: K, value: A } = k.target, N = e.find((f) => `${f.value}` === A);
2372
2381
  if (N) {
@@ -2401,7 +2410,7 @@ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go =
2401
2410
  required: o = !1,
2402
2411
  items: s = [],
2403
2412
  disabledItems: i = [],
2404
- dropdownHeader: v,
2413
+ dropdownHeader: m,
2405
2414
  dropdownFooter: c,
2406
2415
  variant: y = "search"
2407
2416
  }) => {
@@ -2468,7 +2477,7 @@ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go =
2468
2477
  ) : s,
2469
2478
  selectedItems: K,
2470
2479
  disabledItems: i,
2471
- header: v,
2480
+ header: m,
2472
2481
  updateItems: A,
2473
2482
  footer: c || /* @__PURE__ */ se(De, { children: [
2474
2483
  /* @__PURE__ */ u(
@@ -2516,8 +2525,8 @@ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go =
2516
2525
  const s = e < 0, i = Math.abs(e);
2517
2526
  if (i === 0)
2518
2527
  return { value: 0, unit: n || "B" };
2519
- const v = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], y = c.findIndex((w) => w === r) || 0, g = i * Math.pow(v, y), h = n ? c.findIndex((w) => w === n) : Math.floor(Math.log(g) / Math.log(v));
2520
- let S = g / Math.pow(v, h);
2528
+ const m = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], y = c.findIndex((w) => w === r) || 0, g = i * Math.pow(m, y), h = n ? c.findIndex((w) => w === n) : Math.floor(Math.log(g) / Math.log(m));
2529
+ let S = g / Math.pow(m, h);
2521
2530
  if (S % 1 !== 0) {
2522
2531
  const w = Math.pow(10, a);
2523
2532
  S = Math[o](S * w) / w;
@@ -2,13 +2,13 @@
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */(function(e){(function(){var r={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var i=arguments[s];i&&(o=a(o,t(i)))}return o}function t(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var i in o)r.call(o,i)&&o[i]&&(s=a(s,i));return s}function a(o,s){return s?o?o+" "+s:o+s:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(lr);var tn=lr.exports;const Y=cr(tn),to="",le={caution:"#F99B11",light:"#F7F7F7",linkFaded:"#D3E4ED",link:"#0066CC",negative:"#C7162B",positiveFaded:"#B7CCB9",positiveMid:"#4DAB4D",positive:"#0E8420"},on=[le.link,le.positive,le.negative,le.caution],an=le.linkFaded,ur=le.caution,Me=le.light,fr=2,pr=1,dr=(e,r)=>{var a,o;const n=((o=(a=e==null?void 0:e.current)==null?void 0:a.getBoundingClientRect())==null?void 0:o.width)||0;return n>r*fr?n/r:fr},pe={bar:"meter-bar",container:"meter-container",filled:"meter-filled",label:"meter-label",meteroverflow:"meter-overflow",segments:"meter-segments"},vr=({className:e,children:r,data:n,max:t,variant:a="regular",size:o="regular",...s})=>{const i=b.useRef(null),v=n==null?void 0:n.reduce((x,S)=>x+S.value,0),l=t||v,g=n.map(x=>x.value/l*100),[m,_]=b.useState(0);b.useEffect(()=>{_(a==="segmented"?dr(i,l):0)},[l,a]);const T=b.useCallback(()=>{_(dr(i,l))},[i,l,_]);return U.useListener(window,T,"resize",!0,a==="segmented"),c.jsxs("div",{className:Y("p-meter",e,{"p-meter--small":o==="small"}),"aria-label":s==null?void 0:s["aria-label"],"data-testid":pe.container,ref:i,children:[c.jsx(sn,{children:c.jsx(cn,{data:n,datumWidths:g,maximum:l,overColor:ur,segmentWidth:m,separatorColor:Me})}),r]})},sn=({children:e})=>c.jsx("div",{className:"p-meter__bar","data-testid":pe.bar,style:{backgroundColor:an},children:e}),cn=({data:e,datumWidths:r,maximum:n,segmentWidth:t})=>{const a=()=>(e==null?void 0:e.reduce((i,v)=>i+v.value,0))>n,o=(i,v)=>({backgroundColor:i.color,left:`${r==null?void 0:r.reduce((l,g,m)=>v>m?l+g:l,0)}%`,width:`${r[v]}%`}),s=()=>({background:`repeating-linear-gradient(
5
+ */(function(e){(function(){var r={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var i=arguments[s];i&&(o=a(o,t(i)))}return o}function t(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var i in o)r.call(o,i)&&o[i]&&(s=a(s,i));return s}function a(o,s){return s?o?o+" "+s:o+s:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(lr);var tn=lr.exports;const q=cr(tn),to="",le={caution:"#F99B11",light:"#F7F7F7",linkFaded:"#D3E4ED",link:"#0066CC",negative:"#C7162B",positiveFaded:"#B7CCB9",positiveMid:"#4DAB4D",positive:"#0E8420"},on=[le.link,le.positive,le.negative,le.caution],an=le.linkFaded,ur=le.caution,Me=le.light,fr=2,pr=1,dr=(e,r)=>{var a,o;const n=((o=(a=e==null?void 0:e.current)==null?void 0:a.getBoundingClientRect())==null?void 0:o.width)||0;return n>r*fr?n/r:fr},pe={bar:"meter-bar",container:"meter-container",filled:"meter-filled",label:"meter-label",meteroverflow:"meter-overflow",segments:"meter-segments"},vr=({className:e,children:r,data:n,max:t,variant:a="regular",size:o="regular",...s})=>{const i=b.useRef(null),v=n==null?void 0:n.reduce((x,S)=>x+S.value,0),l=t||v,g=n.map(x=>x.value/l*100),[m,_]=b.useState(0);b.useEffect(()=>{_(a==="segmented"?dr(i,l):0)},[l,a]);const T=b.useCallback(()=>{_(dr(i,l))},[i,l,_]);return U.useListener(window,T,"resize",!0,a==="segmented"),c.jsxs("div",{className:q("p-meter",e,{"p-meter--small":o==="small"}),"aria-label":s==null?void 0:s["aria-label"],"data-testid":pe.container,ref:i,children:[c.jsx(sn,{children:c.jsx(cn,{data:n,datumWidths:g,maximum:l,overColor:ur,segmentWidth:m,separatorColor:Me})}),r]})},sn=({children:e})=>c.jsx("div",{className:"p-meter__bar","data-testid":pe.bar,style:{backgroundColor:an},children:e}),cn=({data:e,datumWidths:r,maximum:n,segmentWidth:t})=>{const a=()=>(e==null?void 0:e.reduce((i,v)=>i+v.value,0))>n,o=(i,v)=>({backgroundColor:i.color,left:`${r==null?void 0:r.reduce((l,g,m)=>v>m?l+g:l,0)}%`,width:`${r[v]}%`}),s=()=>({background:`repeating-linear-gradient(
6
6
  to right,
7
7
  transparent 0,
8
8
  transparent ${t-pr}px,
9
9
  ${Me} ${t-pr}px,
10
10
  ${Me} ${t}px
11
- )`});return c.jsxs(c.Fragment,{children:[a()?c.jsx("div",{className:"p-meter__filled","data-testid":pe.meteroverflow,style:{backgroundColor:ur,width:"100%"}}):e==null?void 0:e.map((i,v)=>c.jsx("div",{className:"p-meter__filled","data-testid":pe.filled,style:o(i,v)},`meter-${v}`)),t>0&&c.jsx("div",{className:"p-meter__separators","data-testid":pe.segments,style:s()})]})},ln=({className:e,children:r})=>c.jsx("div",{className:Y("p-meter__label",e),"data-testid":pe.label,children:r});vr.Label=ln;const un=({children:e,to:r,...n})=>c.jsx(U.Link,{...n,href:r,rel:"noreferrer noopener",target:"_blank",children:e}),fn=({children:e})=>c.jsx(c.Fragment,{children:e}),pn=({isCollapsed:e,setIsCollapsed:r,className:n})=>c.jsx(U.Tooltip,{className:"p-side-navigation__tooltip-wrapper",message:c.jsxs(c.Fragment,{children:[e?"expand":"collapse","( ",c.jsx("code",{children:"["})," )"]}),position:"right",tooltipClassName:"p-side-navigation__tooltip",children:c.jsx(U.Button,{appearance:"base","aria-label":`${e?"expand":"collapse"} main navigation`,className:Y("is-dense has-icon is-dark u-no-margin l-navigation-collapse-toggle",n),onClick:t=>{r(!e),t.stopPropagation(),t.currentTarget.blur()},children:c.jsx(U.Icon,{light:!0,name:"sidebar-toggle"})})}),dn=({children:e})=>c.jsx("div",{className:"p-panel__content",children:c.jsx("nav",{className:"p-side-navigation--icons is-dark",children:e})}),vn=({children:e})=>c.jsx("div",{className:"p-panel__controls u-no-margin--top",children:e}),gn=({children:e})=>c.jsx("div",{className:"l-navigation__drawer",children:c.jsx("div",{className:"p-panel is-dark",children:e})}),yn=({children:e})=>c.jsx("div",{className:"p-panel__footer",children:e}),mn=({children:e})=>c.jsx("div",{className:"p-panel__header",children:e}),bn=({light:e=!0,name:r})=>c.jsx(U.Icon,{className:"p-side-navigation__icon",light:e,name:r}),hn=({children:e,className:r,hasActiveChild:n})=>c.jsx("li",{className:Y("p-side-navigation__item",r,{"has-active-child":n}),children:e}),_n=({children:e,id:r,variant:n="base"})=>c.jsx("span",{className:Y("p-side-navigation__label",{"p-side-navigation__label--group":n==="group"}),id:r,children:e}),En=({as:e,...r})=>{const n=e||"a";return c.jsx(n,{className:Y("p-side-navigation__link",r.className),...r})},wn=({children:e,className:r})=>c.jsx("ul",{className:Y("p-side-navigation__list",r),children:e}),Sn=({as:e,children:r,className:n,...t})=>{const a=e||"a";return c.jsx(a,{className:Y("p-panel__logo",n),...t,children:c.jsx("div",{className:"p-navigation__tagged-logo",children:r})})},Tn=({children:e})=>b.cloneElement(e,{className:"p-panel__logo-icon p-navigation__logo-icon"}),On=({children:e,variant:r="base"})=>c.jsx("div",{className:Y("p-panel__logo-name is-fading-when-collapsed",{"p-panel__logo-name--small":r==="small"}),children:e}),Cn=({children:e})=>c.jsx("div",{className:"p-navigation__logo-tag",children:e}),Dn=({children:e})=>c.jsx("span",{className:"p-panel__logo-text",children:e}),xn=({children:e,className:r,onClick:n})=>c.jsx(U.Button,{appearance:"base",className:Y("p-side-navigation__button--menu has-icon is-dark",r),onClick:t=>{n&&n(t),t.stopPropagation(),t.currentTarget.blur()},children:e}),An=({children:e})=>c.jsx("span",{className:"p-side-navigation__text",children:e}),oo="",G=({children:e,className:r,isCollapsed:n})=>c.jsx("header",{"aria-label":"main navigation",className:Y("l-navigation is-maas",r,{"is-collapsed":n,"is-pinned":!n}),children:e}),gr=({children:e,className:r})=>c.jsx("header",{"aria-label":"navigation",className:"l-navigation-bar",children:c.jsx("div",{className:Y("p-panel is-dark",r),children:e})});G.Header=mn,G.Banner=fn,G.Drawer=gn,G.Controls=vn,G.CollapseToggle=pn,G.Content=dn,G.Footer=yn,G.List=wn,G.Item=hn,G.Link=En,G.Text=An,G.Icon=bn,G.Label=_n,G.Logo=Sn,G.LogoTag=Cn,G.LogoIcon=Tn,G.LogoName=On,G.LogoText=Dn,gr.MenuButton=xn;const ao="",Ne=b.createContext(null),$e=({children:e})=>{const r=b.useId();return c.jsx(Ne.Provider,{value:r,children:c.jsx("div",{role:"group","aria-labelledby":`${r}_label`,"aria-describedby":`${r}_description`,className:"p-input-group",children:e})})},Pn=({children:e})=>{const r=b.useContext(Ne);return c.jsx("label",{id:`${r}_label`,children:e})},In=({children:e})=>{const r=b.useContext(Ne);return c.jsx("p",{className:"p-form-help-text",id:`${r}_description`,children:e})};$e.Label=Pn,$e.Description=In;const io="",Ce=({children:e})=>c.jsx("div",{className:"p-form-section",children:e}),Fn=({children:e})=>c.jsx("h5",{className:"p-form-section__title u-no-padding--top",children:e}),jn=({children:e})=>c.jsx("p",{className:"p-form-help-text",children:e}),kn=({children:e})=>c.jsx("div",{className:"p-form-section__content",children:e});Ce.Title=Fn,Ce.Description=jn,Ce.Content=kn;const so="";function Mn(e){const[r,n]=oe.useState(null),t=oe.useRef(null),a=oe.useCallback(()=>{if(e.current){const o=e.current.getBoundingClientRect();n(o)}},[e]);return oe.useEffect(()=>{const o=new ResizeObserver(()=>{t.current&&cancelAnimationFrame(t.current),t.current=requestAnimationFrame(a)});return e.current&&o.observe(e.current),()=>{t.current&&cancelAnimationFrame(t.current),o.disconnect()}},[e,a]),r}const yr=oe.createContext(null),mr=oe.createContext([!1,()=>{}]),Le=({children:e})=>{const r=oe.useRef(null),n=Mn(r),[t,a]=oe.useState(!1);return c.jsx("header",{className:Y("main-toolbar",{"main-toolbar--stacked":t}),ref:r,children:c.jsx(yr.Provider,{value:n,children:c.jsx(mr.Provider,{value:[t,a],children:e})})})},Nn=({as:e,children:r,className:n,...t})=>{const a=e||"h1";return c.jsx(a,{className:Y("main-toolbar__title p-heading--4",n),"data-testid":"main-toolbar-heading",...t,children:r})},$n=({children:e})=>{const r=oe.useContext(yr),[n,t]=oe.useContext(mr),a=oe.useRef(null);return oe.useEffect(()=>{!a.current||!r||t(a.current.getBoundingClientRect().width>r.width)},[t,r,a]),c.jsxs(c.Fragment,{children:[c.jsx("div",{"aria-hidden":"true",className:"main-toolbar__controls main-toolbar__controls--observer",ref:a,style:{visibility:"hidden",position:"absolute"},children:e}),c.jsx("div",{className:Y("main-toolbar__controls",{"main-toolbar__controls--stacked":n}),children:e})]})};Le.Title=Nn,Le.Controls=$n;const co="",Ee=({children:e,className:r,as:n,variant:t="wide",...a})=>{const o=n||"section",s=Y("content-section",r);return c.jsx(o,{...a,className:s,children:c.jsx(U.Row,{children:c.jsx(U.Col,{size:t==="narrow"?6:12,children:e})})})},Ln=({children:e,className:r,as:n,...t})=>{const a=n||"h1";return c.jsx(a,{...t,className:Y("content-section__title p-heading--4",r),children:e})},Bn=({children:e,className:r})=>c.jsx("header",{className:Y("content-section__header",r),children:e}),zn=({children:e,className:r})=>c.jsx("div",{className:Y("content-section__body",r),children:e}),Wn=({children:e,className:r})=>c.jsx("footer",{className:Y("content-section__footer",r),children:e});Ee.Title=Ln,Ee.Header=Bn,Ee.Content=zn,Ee.Footer=Wn;const lo="",uo="",br=({children:e,className:r,isVisible:n})=>c.jsx("div",{className:Y("fade-in--down",r),"aria-hidden":n?"false":"true",style:{visibility:n?"visible":"hidden"},children:e}),qn=({children:e,...r})=>c.jsx(br,{isVisible:!r["aria-hidden"],children:c.jsx("div",{className:"p-form__nested-group",...r,children:e})}),fo="",hr=({currentPage:e,error:r,disabled:n,onInputBlur:t,onInputChange:a,onNextClick:o,onPreviousClick:s,totalPages:i})=>c.jsx("nav",{"aria-label":"pagination",className:"p-pagination",children:c.jsxs("span",{className:"p-pagination--items",children:[c.jsx(U.Button,{"aria-label":"Previous page",className:"p-pagination__link--previous",disabled:e===1||n,onClick:s,type:"button",children:c.jsx(U.Icon,{name:"chevron-down"})}),c.jsx("strong",{children:"Page "})," ",c.jsx(U.Input,{"aria-label":"page number",className:"p-pagination__input",disabled:n,error:r,min:1,onBlur:t,onChange:a,required:!0,type:"number",value:e})," ",c.jsxs("strong",{className:"u-no-wrap",children:[" of ",i]}),c.jsx(U.Button,{"aria-label":"Next page",className:"p-pagination__link--next",disabled:e===i||n,onClick:o,type:"button",children:c.jsx(U.Icon,{name:"chevron-up"})})]})}),Yn=({currentPage:e,disabled:r,paginate:n,totalPages:t})=>{const[a,o]=b.useState(e),[s,i]=b.useState(""),v=()=>{o(e),i("")},l=_=>{const{value:T,valueAsNumber:x}=_.target;T?(o(x),x>t||x<1?i(`${x} is not a valid page number.`):(i(""),n(x))):i("Enter a page number.")},g=()=>{o(_=>Number(_)-1),n(Number(e)-1)},m=()=>{o(_=>Number(_)+1),n(Number(e)+1)};return c.jsx(hr,{currentPage:a,error:s,disabled:r,onInputBlur:v,onInputChange:l,onNextClick:m,onPreviousClick:g,totalPages:t})},po="",Kn=({activeStep:e,items:r})=>c.jsx("ol",{className:"stepper",children:r.map((n,t)=>{const a=t===e,o=t<e;return c.jsx("li",{"aria-label":n,className:"stepper__item",children:c.jsx("p",{"aria-label":o?`${n} (completed)`:n,className:Y("stepper__title",{"stepper__title--is-active":a,"stepper__title--is-complete":o}),children:n})},t)})});var Be={exports:{}},De={exports:{}},k={};/** @license React v16.13.1
11
+ )`});return c.jsxs(c.Fragment,{children:[a()?c.jsx("div",{className:"p-meter__filled","data-testid":pe.meteroverflow,style:{backgroundColor:ur,width:"100%"}}):e==null?void 0:e.map((i,v)=>c.jsx("div",{className:"p-meter__filled","data-testid":pe.filled,style:o(i,v)},`meter-${v}`)),t>0&&c.jsx("div",{className:"p-meter__separators","data-testid":pe.segments,style:s()})]})},ln=({className:e,children:r})=>c.jsx("div",{className:q("p-meter__label",e),"data-testid":pe.label,children:r});vr.Label=ln;const un=({children:e,to:r,...n})=>c.jsx(U.Link,{...n,href:r,rel:"noreferrer noopener",target:"_blank",children:e}),fn=({children:e})=>c.jsx(c.Fragment,{children:e}),pn=({isCollapsed:e,setIsCollapsed:r,className:n})=>c.jsx(U.Tooltip,{className:"p-side-navigation__tooltip-wrapper",message:c.jsxs(c.Fragment,{children:[e?"expand":"collapse","( ",c.jsx("code",{children:"["})," )"]}),position:"right",tooltipClassName:"p-side-navigation__tooltip",children:c.jsx(U.Button,{appearance:"base","aria-label":`${e?"expand":"collapse"} main navigation`,className:q("is-dense has-icon is-dark u-no-margin l-navigation-collapse-toggle",n),onClick:t=>{r(!e),t.stopPropagation(),t.currentTarget.blur()},children:c.jsx(U.Icon,{light:!0,name:"sidebar-toggle"})})}),dn=({children:e})=>c.jsx("div",{className:"p-panel__content",children:c.jsx("nav",{className:"p-side-navigation--icons is-dark",children:e})}),vn=({children:e})=>c.jsx("div",{className:"p-panel__controls u-no-margin--top",children:e}),gn=({children:e})=>c.jsx("div",{className:"l-navigation__drawer",children:c.jsx("div",{className:"p-panel is-dark",children:e})}),yn=({children:e})=>c.jsx("div",{className:"p-panel__footer",children:e}),mn=({children:e})=>c.jsx("div",{className:"p-panel__header",children:e}),bn=({light:e=!0,name:r})=>c.jsx(U.Icon,{className:"p-side-navigation__icon",light:e,name:r}),hn=({children:e,className:r,hasActiveChild:n})=>c.jsx("li",{className:q("p-side-navigation__item",r,{"has-active-child":n}),children:e}),_n=({children:e,id:r,variant:n="base"})=>c.jsx("span",{className:q("p-side-navigation__label",{"p-side-navigation__label--group":n==="group"}),id:r,children:e}),En=({as:e,...r})=>{const n=e||"a";return c.jsx(n,{className:q("p-side-navigation__link",r.className),...r})},wn=({children:e,className:r})=>c.jsx("ul",{className:q("p-side-navigation__list",r),children:e}),Sn=({as:e,children:r,className:n,...t})=>{const a=e||"a";return c.jsx(a,{className:q("p-panel__logo",n),...t,children:c.jsx("div",{className:"p-navigation__tagged-logo",children:r})})},Tn=({children:e})=>b.cloneElement(e,{className:"p-panel__logo-icon p-navigation__logo-icon"}),On=({children:e,variant:r="base"})=>c.jsx("div",{className:q("p-panel__logo-name is-fading-when-collapsed",{"p-panel__logo-name--small":r==="small"}),children:e}),Cn=({children:e})=>c.jsx("div",{className:"p-navigation__logo-tag",children:e}),Dn=({children:e})=>c.jsx("span",{className:"p-panel__logo-text",children:e}),xn=({children:e,className:r,onClick:n})=>c.jsx(U.Button,{appearance:"base",className:q("p-side-navigation__button--menu has-icon is-dark",r),onClick:t=>{n&&n(t),t.stopPropagation(),t.currentTarget.blur()},children:e}),An=({children:e})=>c.jsx("span",{className:"p-side-navigation__text",children:e}),oo="",G=({children:e,className:r,isCollapsed:n})=>c.jsx("header",{"aria-label":"main navigation",className:q("l-navigation is-maas",r,{"is-collapsed":n,"is-pinned":!n}),children:e}),gr=({children:e,className:r})=>c.jsx("header",{"aria-label":"navigation",className:"l-navigation-bar",children:c.jsx("div",{className:q("p-panel is-dark",r),children:e})});G.Header=mn,G.Banner=fn,G.Drawer=gn,G.Controls=vn,G.CollapseToggle=pn,G.Content=dn,G.Footer=yn,G.List=wn,G.Item=hn,G.Link=En,G.Text=An,G.Icon=bn,G.Label=_n,G.Logo=Sn,G.LogoTag=Cn,G.LogoIcon=Tn,G.LogoName=On,G.LogoText=Dn,gr.MenuButton=xn;const ao="",Ne=b.createContext(null),$e=({children:e})=>{const r=b.useId();return c.jsx(Ne.Provider,{value:r,children:c.jsx("div",{role:"group","aria-labelledby":`${r}_label`,"aria-describedby":`${r}_description`,className:"p-input-group",children:e})})},Pn=({children:e})=>{const r=b.useContext(Ne);return c.jsx("label",{id:`${r}_label`,children:e})},In=({children:e})=>{const r=b.useContext(Ne);return c.jsx("p",{className:"p-form-help-text",id:`${r}_description`,children:e})};$e.Label=Pn,$e.Description=In;const io="",Ce=({children:e})=>c.jsx("div",{className:"p-form-section",children:e}),Fn=({children:e})=>c.jsx("h5",{className:"p-form-section__title u-no-padding--top",children:e}),jn=({children:e})=>c.jsx("p",{className:"p-form-help-text",children:e}),kn=({children:e})=>c.jsx("div",{className:"p-form-section__content",children:e});Ce.Title=Fn,Ce.Description=jn,Ce.Content=kn;const so="";function Mn(e){const[r,n]=oe.useState(null),t=oe.useRef(null),a=oe.useCallback(()=>{if(e.current){const o=e.current.getBoundingClientRect();n(o)}},[e]);return oe.useEffect(()=>{const o=new ResizeObserver(()=>{t.current&&cancelAnimationFrame(t.current),t.current=requestAnimationFrame(a)});return e.current&&o.observe(e.current),()=>{t.current&&cancelAnimationFrame(t.current),o.disconnect()}},[e,a]),r}const yr=oe.createContext(null),mr=oe.createContext([!1,()=>{}]),Le=({children:e})=>{const r=oe.useRef(null),n=Mn(r),[t,a]=oe.useState(!1);return c.jsx("header",{className:q("main-toolbar",{"main-toolbar--stacked":t}),ref:r,children:c.jsx(yr.Provider,{value:n,children:c.jsx(mr.Provider,{value:[t,a],children:e})})})},Nn=({as:e,children:r,className:n,...t})=>{const a=e||"h1";return c.jsx(a,{className:q("main-toolbar__title p-heading--4",n),"data-testid":"main-toolbar-heading",...t,children:r})},$n=({children:e})=>{const r=oe.useContext(yr),[n,t]=oe.useContext(mr),a=oe.useRef(null);return oe.useEffect(()=>{!a.current||!r||t(a.current.getBoundingClientRect().width>r.width)},[t,r,a]),c.jsxs(c.Fragment,{children:[c.jsx("div",{"aria-hidden":"true",className:"main-toolbar__controls main-toolbar__controls--observer",ref:a,style:{visibility:"hidden",position:"absolute"},children:e}),c.jsx("div",{className:q("main-toolbar__controls",{"main-toolbar__controls--stacked":n}),children:e})]})};Le.Title=Nn,Le.Controls=$n;const co="",Ee=({children:e,className:r,as:n,variant:t="wide",...a})=>{const o=n||"section",s=q("content-section",r);return c.jsx(o,{...a,className:s,children:c.jsx(U.Row,{children:c.jsx(U.Col,{size:t==="narrow"?6:12,children:e})})})},Ln=({children:e,className:r,as:n,...t})=>{const a=n||"h1";return c.jsx(a,{...t,className:q("content-section__title p-heading--4",r),children:e})},Bn=({children:e,className:r})=>c.jsx("header",{className:q("content-section__header",r),children:e}),zn=({children:e,className:r})=>c.jsx("div",{className:q("content-section__body",r),children:e}),Wn=({children:e,className:r})=>c.jsx("footer",{className:q("content-section__footer",r),children:e});Ee.Title=Ln,Ee.Header=Bn,Ee.Content=zn,Ee.Footer=Wn;const lo="",uo="",br=({children:e,className:r,isVisible:n})=>c.jsx("div",{className:q("fade-in--down",r),"aria-hidden":n?"false":"true",style:{visibility:n?"visible":"hidden"},children:e}),qn=({children:e,...r})=>c.jsx(br,{isVisible:!r["aria-hidden"],children:c.jsx("div",{className:"p-form__nested-group",...r,children:e})}),fo="",hr=({className:e,currentPage:r,error:n,disabled:t,onInputBlur:a,onInputChange:o,onNextClick:s,onPreviousClick:i,totalPages:v,...l})=>c.jsx("nav",{"aria-label":(l==null?void 0:l["aria-label"])||"pagination",className:q("p-pagination",e),children:c.jsxs("span",{className:"p-pagination--items",children:[c.jsx(U.Button,{"aria-label":"Previous page",className:"p-pagination__link--previous",disabled:r===1||t,onClick:i,type:"button",children:c.jsx(U.Icon,{name:"chevron-down"})}),c.jsx("strong",{children:"Page "})," ",c.jsx(U.Input,{"aria-label":"page number",className:"p-pagination__input",disabled:t,error:n,min:1,onBlur:a,onChange:o,required:!0,type:"number",value:r})," ",c.jsxs("strong",{className:"u-no-wrap",children:[" of ",v]}),c.jsx(U.Button,{"aria-label":"Next page",className:"p-pagination__link--next",disabled:r===v||t,onClick:s,type:"button",children:c.jsx(U.Icon,{name:"chevron-up"})})]})}),Yn=({currentPage:e,disabled:r,paginate:n,totalPages:t})=>{const[a,o]=b.useState(e),[s,i]=b.useState(""),v=()=>{o(e),i("")},l=_=>{const{value:T,valueAsNumber:x}=_.target;T?(o(x),x>t||x<1?i(`${x} is not a valid page number.`):(i(""),n(x))):i("Enter a page number.")},g=()=>{o(_=>Number(_)-1),n(Number(e)-1)},m=()=>{o(_=>Number(_)+1),n(Number(e)+1)};return c.jsx(hr,{currentPage:a,error:s,disabled:r,onInputBlur:v,onInputChange:l,onNextClick:m,onPreviousClick:g,totalPages:t})},po="",Kn=({activeStep:e,items:r})=>c.jsx("ol",{className:"stepper",children:r.map((n,t)=>{const a=t===e,o=t<e;return c.jsx("li",{"aria-label":n,className:"stepper__item",children:c.jsx("p",{"aria-label":o?`${n} (completed)`:n,className:q("stepper__title",{"stepper__title--is-active":a,"stepper__title--is-complete":o}),children:n})},t)})});var Be={exports:{}},De={exports:{}},k={};/** @license React v16.13.1
12
12
  * react-is.production.min.js
13
13
  *
14
14
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -31,4 +31,4 @@ Valid keys: `+JSON.stringify(Object.keys(u),null," "));var p=V(D,A,E,I,w+"."+A,
31
31
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gt(e){if(Array.isArray(e))return Ve(e)}function Lr(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,t)}return n}function Br(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Lr(Object(n),!0).forEach(function(t){zr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zr(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Se(e,r){return bt(e)||mt(e,r)||Wr(e,r)||yt()}function yt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
32
32
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wr(e,r){if(e){if(typeof e=="string")return Ve(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ve(e,r)}}function Ve(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function mt(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var t=[],a=!0,o=!1,s,i;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(t.push(s.value),!(r&&t.length===r));a=!0);}catch(v){o=!0,i=v}finally{try{!a&&n.return!=null&&n.return()}finally{if(o)throw i}}return t}}function bt(e){if(Array.isArray(e))return e}var ht="file-invalid-type",_t="file-too-large",Et="file-too-small",wt="too-many-files",St=function(r){r=Array.isArray(r)&&r.length===1?r[0]:r;var n=Array.isArray(r)?"one of ".concat(r.join(", ")):r;return{code:ht,message:"File type must be ".concat(n)}},qr=function(r){return{code:_t,message:"File is larger than ".concat(r," ").concat(r===1?"byte":"bytes")}},Yr=function(r){return{code:Et,message:"File is smaller than ".concat(r," ").concat(r===1?"byte":"bytes")}},Tt={code:wt,message:"Too many files"};function Kr(e,r){var n=e.type==="application/x-moz-file"||pt(e,r);return[n,n?null:St(r)]}function Ur(e,r,n){if(de(e.size))if(de(r)&&de(n)){if(e.size>n)return[!1,qr(n)];if(e.size<r)return[!1,Yr(r)]}else{if(de(r)&&e.size<r)return[!1,Yr(r)];if(de(n)&&e.size>n)return[!1,qr(n)]}return[!0,null]}function de(e){return e!=null}function Ot(e){var r=e.files,n=e.accept,t=e.minSize,a=e.maxSize,o=e.multiple,s=e.maxFiles,i=e.validator;return!o&&r.length>1||o&&s>=1&&r.length>s?!1:r.every(function(v){var l=Kr(v,n),g=Se(l,1),m=g[0],_=Ur(v,t,a),T=Se(_,1),x=T[0],S=i?i(v):null;return m&&x&&!S})}function Ae(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Pe(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(r){return r==="Files"||r==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Hr(e){e.preventDefault()}function Ct(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Dt(e){return e.indexOf("Edge/")!==-1}function xt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Ct(e)||Dt(e)}function ie(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return function(t){for(var a=arguments.length,o=new Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];return r.some(function(i){return!Ae(t)&&i&&i.apply(void 0,[t].concat(o)),Ae(t)})}}function At(){return"showOpenFilePicker"in window}function Pt(e){if(de(e)){var r=Object.entries(e).filter(function(n){var t=Se(n,2),a=t[0],o=t[1],s=!0;return Gr(a)||(console.warn('Skipped "'.concat(a,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(o)||!o.every(Vr))&&(console.warn('Skipped "'.concat(a,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,t){var a=Se(t,2),o=a[0],s=a[1];return Br(Br({},n),{},zr({},o,s))},{});return[{description:"Files",accept:r}]}return e}function It(e){if(de(e))return Object.entries(e).reduce(function(r,n){var t=Se(n,2),a=t[0],o=t[1];return[].concat($r(r),[a],$r(o))},[]).filter(function(r){return Gr(r)||Vr(r)}).join(",")}function Ft(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function jt(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Gr(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function Vr(e){return/^.*\.[\w]+$/.test(e)}var kt=["children"],Mt=["open"],Nt=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],$t=["refKey","onChange","onClick"];function Lt(e){return Wt(e)||zt(e)||Jr(e)||Bt()}function Bt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
33
33
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wt(e){if(Array.isArray(e))return Ze(e)}function Je(e,r){return Kt(e)||Yt(e,r)||Jr(e,r)||qt()}function qt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
34
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jr(e,r){if(e){if(typeof e=="string")return Ze(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ze(e,r)}}function Ze(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function Yt(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var t=[],a=!0,o=!1,s,i;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(t.push(s.value),!(r&&t.length===r));a=!0);}catch(v){o=!0,i=v}finally{try{!a&&n.return!=null&&n.return()}finally{if(o)throw i}}return t}}function Kt(e){if(Array.isArray(e))return e}function Zr(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,t)}return n}function q(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Zr(Object(n),!0).forEach(function(t){Xe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xe(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Ie(e,r){if(e==null)return{};var n=Ut(e,r),t,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)t=o[a],!(r.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function Ut(e,r){if(e==null)return{};var n={},t=Object.keys(e),a,o;for(o=0;o<t.length;o++)a=t[o],!(r.indexOf(a)>=0)&&(n[a]=e[a]);return n}var Qe=b.forwardRef(function(e,r){var n=e.children,t=Ie(e,kt),a=Qr(t),o=a.open,s=Ie(a,Mt);return b.useImperativeHandle(r,function(){return{open:o}},[o]),b.createElement(b.Fragment,null,n(q(q({},s),{},{open:o})))});Qe.displayName="Dropzone";var Xr={disabled:!1,getFilesFromEvent:tt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Qe.defaultProps=Xr,Qe.propTypes={children:B.func,accept:B.objectOf(B.arrayOf(B.string)),multiple:B.bool,preventDropOnDocument:B.bool,noClick:B.bool,noKeyboard:B.bool,noDrag:B.bool,noDragEventsBubbling:B.bool,minSize:B.number,maxSize:B.number,maxFiles:B.number,disabled:B.bool,getFilesFromEvent:B.func,onFileDialogCancel:B.func,onFileDialogOpen:B.func,useFsAccessApi:B.bool,autoFocus:B.bool,onDragEnter:B.func,onDragLeave:B.func,onDragOver:B.func,onDrop:B.func,onDropAccepted:B.func,onDropRejected:B.func,onError:B.func,validator:B.func};var Re={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Qr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=q(q({},Xr),e),n=r.accept,t=r.disabled,a=r.getFilesFromEvent,o=r.maxSize,s=r.minSize,i=r.multiple,v=r.maxFiles,l=r.onDragEnter,g=r.onDragLeave,m=r.onDragOver,_=r.onDrop,T=r.onDropAccepted,x=r.onDropRejected,S=r.onFileDialogCancel,W=r.onFileDialogOpen,N=r.useFsAccessApi,J=r.autoFocus,P=r.preventDropOnDocument,$=r.noClick,f=r.noKeyboard,ee=r.noDrag,z=r.noDragEventsBubbling,Q=r.onError,re=r.validator,ce=b.useMemo(function(){return It(n)},[n]),ve=b.useMemo(function(){return Pt(n)},[n]),ge=b.useMemo(function(){return typeof W=="function"?W:Rr},[W]),ue=b.useMemo(function(){return typeof S=="function"?S:Rr},[S]),K=b.useRef(null),R=b.useRef(null),ae=b.useReducer(Ht,Re),se=Je(ae,2),fe=se[0],Z=se[1],u=fe.isFocused,y=fe.isFileDialogActive,O=b.useRef(typeof window<"u"&&window.isSecureContext&&N&&At()),C=function(){!O.current&&y&&setTimeout(function(){if(R.current){var h=R.current.files;h.length||(Z({type:"closeDialog"}),ue())}},300)};b.useEffect(function(){return window.addEventListener("focus",C,!1),function(){window.removeEventListener("focus",C,!1)}},[R,y,ue,O]);var E=b.useRef([]),I=function(h){K.current&&K.current.contains(h.target)||(h.preventDefault(),E.current=[])};b.useEffect(function(){return P&&(document.addEventListener("dragover",Hr,!1),document.addEventListener("drop",I,!1)),function(){P&&(document.removeEventListener("dragover",Hr),document.removeEventListener("drop",I))}},[K,P]),b.useEffect(function(){return!t&&J&&K.current&&K.current.focus(),function(){}},[K,J,t]);var w=b.useCallback(function(d){Q?Q(d):console.error(d)},[Q]),D=b.useCallback(function(d){d.preventDefault(),d.persist(),je(d),E.current=[].concat(Lt(E.current),[d.target]),Pe(d)&&Promise.resolve(a(d)).then(function(h){if(!(Ae(d)&&!z)){var H=h.length,X=H>0&&Ot({files:h,accept:ce,minSize:s,maxSize:o,multiple:i,maxFiles:v,validator:re}),te=H>0&&!X;Z({isDragAccept:X,isDragReject:te,isDragActive:!0,type:"setDraggedFiles"}),l&&l(d)}}).catch(function(h){return w(h)})},[a,l,w,z,ce,s,o,i,v,re]),F=b.useCallback(function(d){d.preventDefault(),d.persist(),je(d);var h=Pe(d);if(h&&d.dataTransfer)try{d.dataTransfer.dropEffect="copy"}catch{}return h&&m&&m(d),!1},[m,z]),j=b.useCallback(function(d){d.preventDefault(),d.persist(),je(d);var h=E.current.filter(function(X){return K.current&&K.current.contains(X)}),H=h.indexOf(d.target);H!==-1&&h.splice(H,1),E.current=h,!(h.length>0)&&(Z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Pe(d)&&g&&g(d))},[K,g,z]),A=b.useCallback(function(d,h){var H=[],X=[];d.forEach(function(te){var Oe=Kr(te,ce),_e=Je(Oe,2),rr=_e[0],nr=_e[1],tr=Ur(te,s,o),ke=Je(tr,2),or=ke[0],ar=ke[1],ir=re?re(te):null;if(rr&&or&&!ir)H.push(te);else{var sr=[nr,ar];ir&&(sr=sr.concat(ir)),X.push({file:te,errors:sr.filter(function(no){return no})})}}),(!i&&H.length>1||i&&v>=1&&H.length>v)&&(H.forEach(function(te){X.push({file:te,errors:[Tt]})}),H.splice(0)),Z({acceptedFiles:H,fileRejections:X,type:"setFiles"}),_&&_(H,X,h),X.length>0&&x&&x(X,h),H.length>0&&T&&T(H,h)},[Z,i,ce,s,o,v,_,T,x,re]),V=b.useCallback(function(d){d.preventDefault(),d.persist(),je(d),E.current=[],Pe(d)&&Promise.resolve(a(d)).then(function(h){Ae(d)&&!z||A(h,d)}).catch(function(h){return w(h)}),Z({type:"reset"})},[a,A,w,z]),p=b.useCallback(function(){if(O.current){Z({type:"openDialog"}),ge();var d={multiple:i,types:ve};window.showOpenFilePicker(d).then(function(h){return a(h)}).then(function(h){A(h,null),Z({type:"closeDialog"})}).catch(function(h){Ft(h)?(ue(h),Z({type:"closeDialog"})):jt(h)?(O.current=!1,R.current?(R.current.value=null,R.current.click()):w(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."))):w(h)});return}R.current&&(Z({type:"openDialog"}),ge(),R.current.value=null,R.current.click())},[Z,ge,ue,N,A,w,ve,i]),ne=b.useCallback(function(d){!K.current||!K.current.isEqualNode(d.target)||(d.key===" "||d.key==="Enter"||d.keyCode===32||d.keyCode===13)&&(d.preventDefault(),p())},[K,p]),ye=b.useCallback(function(){Z({type:"focus"})},[]),Te=b.useCallback(function(){Z({type:"blur"})},[]),rn=b.useCallback(function(){$||(xt()?setTimeout(p,0):p())},[$,p]),he=function(h){return t?null:h},er=function(h){return f?null:he(h)},Fe=function(h){return ee?null:he(h)},je=function(h){z&&h.stopPropagation()},Rt=b.useMemo(function(){return function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=d.refKey,H=h===void 0?"ref":h,X=d.role,te=d.onKeyDown,Oe=d.onFocus,_e=d.onBlur,rr=d.onClick,nr=d.onDragEnter,tr=d.onDragOver,ke=d.onDragLeave,or=d.onDrop,ar=Ie(d,Nt);return q(q(Xe({onKeyDown:er(ie(te,ne)),onFocus:er(ie(Oe,ye)),onBlur:er(ie(_e,Te)),onClick:he(ie(rr,rn)),onDragEnter:Fe(ie(nr,D)),onDragOver:Fe(ie(tr,F)),onDragLeave:Fe(ie(ke,j)),onDrop:Fe(ie(or,V)),role:typeof X=="string"&&X!==""?X:"presentation"},H,K),!t&&!f?{tabIndex:0}:{}),ar)}},[K,ne,ye,Te,rn,D,F,j,V,f,ee,t]),eo=b.useCallback(function(d){d.stopPropagation()},[]),ro=b.useMemo(function(){return function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=d.refKey,H=h===void 0?"ref":h,X=d.onChange,te=d.onClick,Oe=Ie(d,$t),_e=Xe({accept:ce,multiple:i,type:"file",style:{display:"none"},onChange:he(ie(X,V)),onClick:he(ie(te,eo)),tabIndex:-1},H,R);return q(q({},_e),Oe)}},[R,n,i,V,t]);return q(q({},fe),{},{isFocused:u&&!t,getRootProps:Rt,getInputProps:ro,rootRef:K,inputRef:R,open:he(p)})}function Ht(e,r){switch(r.type){case"focus":return q(q({},e),{},{isFocused:!0});case"blur":return q(q({},e),{},{isFocused:!1});case"openDialog":return q(q({},Re),{},{isFileDialogActive:!0});case"closeDialog":return q(q({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return q(q({},e),{},{isDragActive:r.isDragActive,isDragAccept:r.isDragAccept,isDragReject:r.isDragReject});case"setFiles":return q(q({},e),{},{acceptedFiles:r.acceptedFiles,fileRejections:r.fileRejections});case"reset":return q({},Re);default:return e}}function Rr(){}const vo="",Gt=({onFileUpload:e})=>{const{getRootProps:r}=Qr({onDrop:e});return c.jsx("div",{...r(),className:"file-upload","data-testid":"file-upload",children:c.jsx("button",{className:"file-upload__button",type:"button",children:"Drag and drop files here or click to upload"})})},go="",Vt=(e,r)=>e.label.localeCompare(r.label,"en",{numeric:!0}),Jt=e=>(r,n)=>{if(e){const t=e.has(r.value),a=e.has(n.value);if(t&&!a)return-1;if(!t&&a)return 1}return 0},Zt=e=>{const r=new Map;return e.forEach(n=>{const t=n.group||"Ungrouped",a=r.get(t)||[];a.push(n),r.set(t,a)}),Array.from(r,([n,t])=>({group:n,items:t}))},en=({items:e,selectedItems:r,disabledItems:n,header:t,updateItems:a,isOpen:o,footer:s,sortFn:i=Vt,groupFn:v=Zt,...l})=>{const g=b.useMemo(()=>new Set(r.map(N=>N.value)),[r]),m=b.useMemo(()=>new Set(n.map(N=>N.value)),[n]),[_,T]=b.useState(new Set(g));b.useEffect(()=>{o&&T(new Set(g))},[o]);const x=b.useMemo(()=>e.some(N=>N.group),[e]),S=b.useMemo(()=>x?v(e):[{group:"Ungrouped",items:e}],[e,v]),W=N=>{const{checked:J,value:P}=N.target,$=e.find(f=>`${f.value}`===P);if($){const f=J?[...r,$]:r.filter(ee=>`${ee.value}`!==P)??[];a(f)}};return c.jsx(br,{isVisible:o,className:"put-above",children:c.jsxs("div",{className:"multi-select__dropdown",role:"listbox",...l,children:[t||null,S.map(({group:N,items:J})=>c.jsxs("div",{className:"multi-select__group",children:[x?c.jsx("h5",{className:"multi-select__dropdown-header",children:N}):null,c.jsx("ul",{className:"multi-select__dropdown-list","aria-label":N,children:J.sort(i).sort(Jt(_)).map(P=>c.jsx("li",{className:"multi-select__dropdown-item",children:c.jsx(U.CheckboxInput,{disabled:m.has(P.value),label:P.label,checked:g.has(P.value),value:P.value,onChange:W},P.value)},P.value))})]},N)),s?c.jsx("div",{className:"multi-select__footer",children:s}):null]})})},Xt=({disabled:e,selectedItems:r=[],label:n,onItemsUpdate:t,placeholder:a,required:o=!1,items:s=[],disabledItems:i=[],dropdownHeader:v,dropdownFooter:l,variant:g="search"})=>{const m=U.useClickOutside(()=>{T(!1),S("")});U.useOnEscapePressed(()=>{T(!1),S("")});const[_,T]=b.useState(!1),[x,S]=b.useState("");b.useEffect(()=>{_||S("")},[_]);const[W,N]=b.useState([]),J=r||W,P=z=>{const Q=Array.from(new Set(z));N(Q),t&&t(Q)},$=b.useId(),f=b.useId(),ee=J.filter(z=>s.some(Q=>Q.value===z.value)).map(z=>z.label).join(", ");return c.jsx("div",{ref:m,children:c.jsxs("div",{className:"multi-select",children:[g==="search"?c.jsx(U.SearchBox,{externallyControlled:!0,"aria-controls":$,"aria-expanded":_,id:f,role:"combobox","aria-label":n||a||"Search",disabled:e,autoComplete:"off",onChange:z=>{S(z),T(!0)},onFocus:()=>T(!0),placeholder:a??"Search",required:o,type:"text",value:x,className:"multi-select__input"}):c.jsx("button",{role:"combobox",type:"button","aria-label":n||a||"Select items","aria-controls":$,"aria-expanded":_,className:"multi-select__select-button",onClick:()=>{T(z=>!z)},children:c.jsx("span",{className:"multi-select__condensed-text",children:J.length>0?ee:a??"Select items"})}),c.jsx(en,{id:$,isOpen:_,items:x.length>0?s.filter(z=>z.label.toLowerCase().includes(x.toLowerCase())):s,selectedItems:J,disabledItems:i,header:v,updateItems:P,footer:l||c.jsxs(c.Fragment,{children:[c.jsx(U.Button,{appearance:"link",onClick:()=>{const z=s.filter(Q=>!i.some(re=>re.value===Q.value));P([...J,...z])},type:"button",children:"Select all"}),c.jsx(U.Button,{appearance:"link",onClick:()=>{const z=J.filter(Q=>i.some(re=>re.value===Q.value));P(z)},type:"button",children:"Clear"})]})})]})})},Qt=({value:e,unit:r},{binary:n=!1,convertTo:t,decimals:a=2,roundFunc:o="round"}={})=>{const s=e<0,i=Math.abs(e);if(i===0)return{value:0,unit:t||"B"};const v=n?1024:1e3,l=n?["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],g=l.findIndex(S=>S===r)||0,m=i*Math.pow(v,g),_=t?l.findIndex(S=>S===t):Math.floor(Math.log(m)/Math.log(v));let T=m/Math.pow(v,_);if(T%1!==0){const S=Math.pow(10,a);T=Math[o](T*S)/S}return{value:s?-T:T,unit:l[_]}};L.ContentSection=Ee,L.ExternalLink=un,L.FileUpload=Gt,L.FormSection=Ce,L.InputGroup=$e,L.MainToolbar=Le,L.Meter=vr,L.MultiSelect=Xt,L.MultiSelectDropdown=en,L.Navigation=G,L.NavigationBar=gr,L.NestedFormGroup=qn,L.Pagination=hr,L.PaginationContainer=Yn,L.Stepper=Kn,L.defaultFilledColors=on,L.formatBytes=Qt,L.meterColor=le,L.testIds=pe,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});
34
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jr(e,r){if(e){if(typeof e=="string")return Ze(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ze(e,r)}}function Ze(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function Yt(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var t=[],a=!0,o=!1,s,i;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(t.push(s.value),!(r&&t.length===r));a=!0);}catch(v){o=!0,i=v}finally{try{!a&&n.return!=null&&n.return()}finally{if(o)throw i}}return t}}function Kt(e){if(Array.isArray(e))return e}function Zr(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,t)}return n}function Y(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Zr(Object(n),!0).forEach(function(t){Xe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xe(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Ie(e,r){if(e==null)return{};var n=Ut(e,r),t,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)t=o[a],!(r.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function Ut(e,r){if(e==null)return{};var n={},t=Object.keys(e),a,o;for(o=0;o<t.length;o++)a=t[o],!(r.indexOf(a)>=0)&&(n[a]=e[a]);return n}var Qe=b.forwardRef(function(e,r){var n=e.children,t=Ie(e,kt),a=Qr(t),o=a.open,s=Ie(a,Mt);return b.useImperativeHandle(r,function(){return{open:o}},[o]),b.createElement(b.Fragment,null,n(Y(Y({},s),{},{open:o})))});Qe.displayName="Dropzone";var Xr={disabled:!1,getFilesFromEvent:tt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Qe.defaultProps=Xr,Qe.propTypes={children:B.func,accept:B.objectOf(B.arrayOf(B.string)),multiple:B.bool,preventDropOnDocument:B.bool,noClick:B.bool,noKeyboard:B.bool,noDrag:B.bool,noDragEventsBubbling:B.bool,minSize:B.number,maxSize:B.number,maxFiles:B.number,disabled:B.bool,getFilesFromEvent:B.func,onFileDialogCancel:B.func,onFileDialogOpen:B.func,useFsAccessApi:B.bool,autoFocus:B.bool,onDragEnter:B.func,onDragLeave:B.func,onDragOver:B.func,onDrop:B.func,onDropAccepted:B.func,onDropRejected:B.func,onError:B.func,validator:B.func};var Re={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Qr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Y(Y({},Xr),e),n=r.accept,t=r.disabled,a=r.getFilesFromEvent,o=r.maxSize,s=r.minSize,i=r.multiple,v=r.maxFiles,l=r.onDragEnter,g=r.onDragLeave,m=r.onDragOver,_=r.onDrop,T=r.onDropAccepted,x=r.onDropRejected,S=r.onFileDialogCancel,W=r.onFileDialogOpen,N=r.useFsAccessApi,J=r.autoFocus,P=r.preventDropOnDocument,$=r.noClick,f=r.noKeyboard,ee=r.noDrag,z=r.noDragEventsBubbling,Q=r.onError,re=r.validator,ce=b.useMemo(function(){return It(n)},[n]),ve=b.useMemo(function(){return Pt(n)},[n]),ge=b.useMemo(function(){return typeof W=="function"?W:Rr},[W]),ue=b.useMemo(function(){return typeof S=="function"?S:Rr},[S]),K=b.useRef(null),R=b.useRef(null),ae=b.useReducer(Ht,Re),se=Je(ae,2),fe=se[0],Z=se[1],u=fe.isFocused,y=fe.isFileDialogActive,O=b.useRef(typeof window<"u"&&window.isSecureContext&&N&&At()),C=function(){!O.current&&y&&setTimeout(function(){if(R.current){var h=R.current.files;h.length||(Z({type:"closeDialog"}),ue())}},300)};b.useEffect(function(){return window.addEventListener("focus",C,!1),function(){window.removeEventListener("focus",C,!1)}},[R,y,ue,O]);var E=b.useRef([]),I=function(h){K.current&&K.current.contains(h.target)||(h.preventDefault(),E.current=[])};b.useEffect(function(){return P&&(document.addEventListener("dragover",Hr,!1),document.addEventListener("drop",I,!1)),function(){P&&(document.removeEventListener("dragover",Hr),document.removeEventListener("drop",I))}},[K,P]),b.useEffect(function(){return!t&&J&&K.current&&K.current.focus(),function(){}},[K,J,t]);var w=b.useCallback(function(d){Q?Q(d):console.error(d)},[Q]),D=b.useCallback(function(d){d.preventDefault(),d.persist(),je(d),E.current=[].concat(Lt(E.current),[d.target]),Pe(d)&&Promise.resolve(a(d)).then(function(h){if(!(Ae(d)&&!z)){var H=h.length,X=H>0&&Ot({files:h,accept:ce,minSize:s,maxSize:o,multiple:i,maxFiles:v,validator:re}),te=H>0&&!X;Z({isDragAccept:X,isDragReject:te,isDragActive:!0,type:"setDraggedFiles"}),l&&l(d)}}).catch(function(h){return w(h)})},[a,l,w,z,ce,s,o,i,v,re]),F=b.useCallback(function(d){d.preventDefault(),d.persist(),je(d);var h=Pe(d);if(h&&d.dataTransfer)try{d.dataTransfer.dropEffect="copy"}catch{}return h&&m&&m(d),!1},[m,z]),j=b.useCallback(function(d){d.preventDefault(),d.persist(),je(d);var h=E.current.filter(function(X){return K.current&&K.current.contains(X)}),H=h.indexOf(d.target);H!==-1&&h.splice(H,1),E.current=h,!(h.length>0)&&(Z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Pe(d)&&g&&g(d))},[K,g,z]),A=b.useCallback(function(d,h){var H=[],X=[];d.forEach(function(te){var Oe=Kr(te,ce),_e=Je(Oe,2),rr=_e[0],nr=_e[1],tr=Ur(te,s,o),ke=Je(tr,2),or=ke[0],ar=ke[1],ir=re?re(te):null;if(rr&&or&&!ir)H.push(te);else{var sr=[nr,ar];ir&&(sr=sr.concat(ir)),X.push({file:te,errors:sr.filter(function(no){return no})})}}),(!i&&H.length>1||i&&v>=1&&H.length>v)&&(H.forEach(function(te){X.push({file:te,errors:[Tt]})}),H.splice(0)),Z({acceptedFiles:H,fileRejections:X,type:"setFiles"}),_&&_(H,X,h),X.length>0&&x&&x(X,h),H.length>0&&T&&T(H,h)},[Z,i,ce,s,o,v,_,T,x,re]),V=b.useCallback(function(d){d.preventDefault(),d.persist(),je(d),E.current=[],Pe(d)&&Promise.resolve(a(d)).then(function(h){Ae(d)&&!z||A(h,d)}).catch(function(h){return w(h)}),Z({type:"reset"})},[a,A,w,z]),p=b.useCallback(function(){if(O.current){Z({type:"openDialog"}),ge();var d={multiple:i,types:ve};window.showOpenFilePicker(d).then(function(h){return a(h)}).then(function(h){A(h,null),Z({type:"closeDialog"})}).catch(function(h){Ft(h)?(ue(h),Z({type:"closeDialog"})):jt(h)?(O.current=!1,R.current?(R.current.value=null,R.current.click()):w(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."))):w(h)});return}R.current&&(Z({type:"openDialog"}),ge(),R.current.value=null,R.current.click())},[Z,ge,ue,N,A,w,ve,i]),ne=b.useCallback(function(d){!K.current||!K.current.isEqualNode(d.target)||(d.key===" "||d.key==="Enter"||d.keyCode===32||d.keyCode===13)&&(d.preventDefault(),p())},[K,p]),ye=b.useCallback(function(){Z({type:"focus"})},[]),Te=b.useCallback(function(){Z({type:"blur"})},[]),rn=b.useCallback(function(){$||(xt()?setTimeout(p,0):p())},[$,p]),he=function(h){return t?null:h},er=function(h){return f?null:he(h)},Fe=function(h){return ee?null:he(h)},je=function(h){z&&h.stopPropagation()},Rt=b.useMemo(function(){return function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=d.refKey,H=h===void 0?"ref":h,X=d.role,te=d.onKeyDown,Oe=d.onFocus,_e=d.onBlur,rr=d.onClick,nr=d.onDragEnter,tr=d.onDragOver,ke=d.onDragLeave,or=d.onDrop,ar=Ie(d,Nt);return Y(Y(Xe({onKeyDown:er(ie(te,ne)),onFocus:er(ie(Oe,ye)),onBlur:er(ie(_e,Te)),onClick:he(ie(rr,rn)),onDragEnter:Fe(ie(nr,D)),onDragOver:Fe(ie(tr,F)),onDragLeave:Fe(ie(ke,j)),onDrop:Fe(ie(or,V)),role:typeof X=="string"&&X!==""?X:"presentation"},H,K),!t&&!f?{tabIndex:0}:{}),ar)}},[K,ne,ye,Te,rn,D,F,j,V,f,ee,t]),eo=b.useCallback(function(d){d.stopPropagation()},[]),ro=b.useMemo(function(){return function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=d.refKey,H=h===void 0?"ref":h,X=d.onChange,te=d.onClick,Oe=Ie(d,$t),_e=Xe({accept:ce,multiple:i,type:"file",style:{display:"none"},onChange:he(ie(X,V)),onClick:he(ie(te,eo)),tabIndex:-1},H,R);return Y(Y({},_e),Oe)}},[R,n,i,V,t]);return Y(Y({},fe),{},{isFocused:u&&!t,getRootProps:Rt,getInputProps:ro,rootRef:K,inputRef:R,open:he(p)})}function Ht(e,r){switch(r.type){case"focus":return Y(Y({},e),{},{isFocused:!0});case"blur":return Y(Y({},e),{},{isFocused:!1});case"openDialog":return Y(Y({},Re),{},{isFileDialogActive:!0});case"closeDialog":return Y(Y({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Y(Y({},e),{},{isDragActive:r.isDragActive,isDragAccept:r.isDragAccept,isDragReject:r.isDragReject});case"setFiles":return Y(Y({},e),{},{acceptedFiles:r.acceptedFiles,fileRejections:r.fileRejections});case"reset":return Y({},Re);default:return e}}function Rr(){}const vo="",Gt=({onFileUpload:e})=>{const{getRootProps:r}=Qr({onDrop:e});return c.jsx("div",{...r(),className:"file-upload","data-testid":"file-upload",children:c.jsx("button",{className:"file-upload__button",type:"button",children:"Drag and drop files here or click to upload"})})},go="",Vt=(e,r)=>e.label.localeCompare(r.label,"en",{numeric:!0}),Jt=e=>(r,n)=>{if(e){const t=e.has(r.value),a=e.has(n.value);if(t&&!a)return-1;if(!t&&a)return 1}return 0},Zt=e=>{const r=new Map;return e.forEach(n=>{const t=n.group||"Ungrouped",a=r.get(t)||[];a.push(n),r.set(t,a)}),Array.from(r,([n,t])=>({group:n,items:t}))},en=({items:e,selectedItems:r,disabledItems:n,header:t,updateItems:a,isOpen:o,footer:s,sortFn:i=Vt,groupFn:v=Zt,...l})=>{const g=b.useMemo(()=>new Set(r.map(N=>N.value)),[r]),m=b.useMemo(()=>new Set(n.map(N=>N.value)),[n]),[_,T]=b.useState(new Set(g));b.useEffect(()=>{o&&T(new Set(g))},[o]);const x=b.useMemo(()=>e.some(N=>N.group),[e]),S=b.useMemo(()=>x?v(e):[{group:"Ungrouped",items:e}],[e,v]),W=N=>{const{checked:J,value:P}=N.target,$=e.find(f=>`${f.value}`===P);if($){const f=J?[...r,$]:r.filter(ee=>`${ee.value}`!==P)??[];a(f)}};return c.jsx(br,{isVisible:o,className:"put-above",children:c.jsxs("div",{className:"multi-select__dropdown",role:"listbox",...l,children:[t||null,S.map(({group:N,items:J})=>c.jsxs("div",{className:"multi-select__group",children:[x?c.jsx("h5",{className:"multi-select__dropdown-header",children:N}):null,c.jsx("ul",{className:"multi-select__dropdown-list","aria-label":N,children:J.sort(i).sort(Jt(_)).map(P=>c.jsx("li",{className:"multi-select__dropdown-item",children:c.jsx(U.CheckboxInput,{disabled:m.has(P.value),label:P.label,checked:g.has(P.value),value:P.value,onChange:W},P.value)},P.value))})]},N)),s?c.jsx("div",{className:"multi-select__footer",children:s}):null]})})},Xt=({disabled:e,selectedItems:r=[],label:n,onItemsUpdate:t,placeholder:a,required:o=!1,items:s=[],disabledItems:i=[],dropdownHeader:v,dropdownFooter:l,variant:g="search"})=>{const m=U.useClickOutside(()=>{T(!1),S("")});U.useOnEscapePressed(()=>{T(!1),S("")});const[_,T]=b.useState(!1),[x,S]=b.useState("");b.useEffect(()=>{_||S("")},[_]);const[W,N]=b.useState([]),J=r||W,P=z=>{const Q=Array.from(new Set(z));N(Q),t&&t(Q)},$=b.useId(),f=b.useId(),ee=J.filter(z=>s.some(Q=>Q.value===z.value)).map(z=>z.label).join(", ");return c.jsx("div",{ref:m,children:c.jsxs("div",{className:"multi-select",children:[g==="search"?c.jsx(U.SearchBox,{externallyControlled:!0,"aria-controls":$,"aria-expanded":_,id:f,role:"combobox","aria-label":n||a||"Search",disabled:e,autoComplete:"off",onChange:z=>{S(z),T(!0)},onFocus:()=>T(!0),placeholder:a??"Search",required:o,type:"text",value:x,className:"multi-select__input"}):c.jsx("button",{role:"combobox",type:"button","aria-label":n||a||"Select items","aria-controls":$,"aria-expanded":_,className:"multi-select__select-button",onClick:()=>{T(z=>!z)},children:c.jsx("span",{className:"multi-select__condensed-text",children:J.length>0?ee:a??"Select items"})}),c.jsx(en,{id:$,isOpen:_,items:x.length>0?s.filter(z=>z.label.toLowerCase().includes(x.toLowerCase())):s,selectedItems:J,disabledItems:i,header:v,updateItems:P,footer:l||c.jsxs(c.Fragment,{children:[c.jsx(U.Button,{appearance:"link",onClick:()=>{const z=s.filter(Q=>!i.some(re=>re.value===Q.value));P([...J,...z])},type:"button",children:"Select all"}),c.jsx(U.Button,{appearance:"link",onClick:()=>{const z=J.filter(Q=>i.some(re=>re.value===Q.value));P(z)},type:"button",children:"Clear"})]})})]})})},Qt=({value:e,unit:r},{binary:n=!1,convertTo:t,decimals:a=2,roundFunc:o="round"}={})=>{const s=e<0,i=Math.abs(e);if(i===0)return{value:0,unit:t||"B"};const v=n?1024:1e3,l=n?["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],g=l.findIndex(S=>S===r)||0,m=i*Math.pow(v,g),_=t?l.findIndex(S=>S===t):Math.floor(Math.log(m)/Math.log(v));let T=m/Math.pow(v,_);if(T%1!==0){const S=Math.pow(10,a);T=Math[o](T*S)/S}return{value:s?-T:T,unit:l[_]}};L.ContentSection=Ee,L.ExternalLink=un,L.FileUpload=Gt,L.FormSection=Ce,L.InputGroup=$e,L.MainToolbar=Le,L.Meter=vr,L.MultiSelect=Xt,L.MultiSelectDropdown=en,L.Navigation=G,L.NavigationBar=gr,L.NestedFormGroup=qn,L.Pagination=hr,L.PaginationContainer=Yn,L.Stepper=Kn,L.defaultFilledColors=on,L.formatBytes=Qt,L.meterColor=le,L.testIds=pe,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});
@@ -1,9 +1,10 @@
1
1
  import { ChangeEvent } from "react";
2
- export interface PaginationProps {
2
+ export interface PaginationProps extends React.AriaAttributes {
3
+ className?: string;
3
4
  currentPage: number | undefined;
4
5
  error?: string;
5
- disabled: boolean;
6
- onInputBlur: () => void;
6
+ disabled?: boolean;
7
+ onInputBlur?: () => void;
7
8
  onInputChange: (e: ChangeEvent<HTMLInputElement>) => void;
8
9
  onNextClick: () => void;
9
10
  onPreviousClick: () => void;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Returns a component that renders the result of a util function.
3
3
  */
4
- export declare const getUtilStoryComponent: <T, U extends (...args: T[]) => T>(fn: U) => {
4
+ export declare const getUtilStoryComponent: <T, U extends (...args: T[]) => T>(title: string, fn: U) => {
5
5
  (args: T): import("react/jsx-runtime").JSX.Element;
6
6
  displayName: string;
7
7
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@canonical/maas-react-components",
3
3
  "description": "React components for use in MAAS UI projects.",
4
- "version": "1.20.1",
4
+ "version": "1.21.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/canonical/maas-react-components.git"