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