@sakura-ui/forms 0.2.2-beta.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +151 -188
- package/dist/index.es.js +907 -2597
- package/dist/types/components/Checkbox.d.ts +6 -3
- package/dist/types/components/Checkbox.d.ts.map +1 -1
- package/dist/types/components/FieldsetControl.d.ts +6 -3
- package/dist/types/components/FieldsetControl.d.ts.map +1 -1
- package/dist/types/components/FileInput.d.ts +7 -4
- package/dist/types/components/FileInput.d.ts.map +1 -1
- package/dist/types/components/Input.d.ts +6 -3
- package/dist/types/components/Input.d.ts.map +1 -1
- package/dist/types/components/LabelControl.d.ts +6 -3
- package/dist/types/components/LabelControl.d.ts.map +1 -1
- package/dist/types/components/Radio.d.ts +6 -3
- package/dist/types/components/Radio.d.ts.map +1 -1
- package/dist/types/components/Select.d.ts +6 -3
- package/dist/types/components/Select.d.ts.map +1 -1
- package/dist/types/components/Textarea.d.ts +6 -3
- package/dist/types/components/Textarea.d.ts.map +1 -1
- package/dist/types/components/controlled/CheckboxGroup.d.ts +6 -3
- package/dist/types/components/controlled/CheckboxGroup.d.ts.map +1 -1
- package/dist/types/components/controlled/RadioGroup.d.ts +6 -3
- package/dist/types/components/controlled/RadioGroup.d.ts.map +1 -1
- package/dist/types/components/inputStyle.d.ts +1 -1
- package/dist/types/components/inputStyle.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/index.es.js
CHANGED
|
@@ -1,693 +1,501 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import R from "react";
|
|
2
|
+
var z = { exports: {} }, q = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
|
-
* react-jsx-runtime.production.
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
6
|
*
|
|
7
|
-
* Copyright (c)
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
var ye;
|
|
13
|
+
function Me() {
|
|
14
|
+
if (ye) return q;
|
|
15
|
+
ye = 1;
|
|
16
|
+
var s = Symbol.for("react.transitional.element"), d = Symbol.for("react.fragment");
|
|
17
|
+
function f(b, i, o) {
|
|
18
|
+
var n = null;
|
|
19
|
+
if (o !== void 0 && (n = "" + o), i.key !== void 0 && (n = "" + i.key), "key" in i) {
|
|
20
|
+
o = {};
|
|
21
|
+
for (var g in i)
|
|
22
|
+
g !== "key" && (o[g] = i[g]);
|
|
23
|
+
} else o = i;
|
|
24
|
+
return i = o.ref, {
|
|
25
|
+
$$typeof: s,
|
|
26
|
+
type: b,
|
|
27
|
+
key: n,
|
|
28
|
+
ref: i !== void 0 ? i : null,
|
|
29
|
+
props: o
|
|
30
|
+
};
|
|
23
31
|
}
|
|
24
|
-
return
|
|
32
|
+
return q.Fragment = d, q.jsx = f, q.jsxs = f, q;
|
|
25
33
|
}
|
|
26
|
-
var
|
|
34
|
+
var M = {};
|
|
27
35
|
/**
|
|
28
36
|
* @license React
|
|
29
37
|
* react-jsx-runtime.development.js
|
|
30
38
|
*
|
|
31
|
-
* Copyright (c)
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
32
40
|
*
|
|
33
41
|
* This source code is licensed under the MIT license found in the
|
|
34
42
|
* LICENSE file in the root directory of this source tree.
|
|
35
43
|
*/
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
return
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
if (
|
|
42
|
-
return null;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
var fe = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
-
function Y(t) {
|
|
48
|
-
{
|
|
49
|
-
for (var i = arguments.length, u = new Array(i > 1 ? i - 1 : 0), m = 1; m < i; m++)
|
|
50
|
-
u[m - 1] = arguments[m];
|
|
51
|
-
xe("error", t, u);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function xe(t, i, u) {
|
|
55
|
-
{
|
|
56
|
-
var m = fe.ReactDebugCurrentFrame, N = m.getStackAddendum();
|
|
57
|
-
N !== "" && (i += "%s", u = u.concat([N]));
|
|
58
|
-
var A = u.map(function(j) {
|
|
59
|
-
return String(j);
|
|
60
|
-
});
|
|
61
|
-
A.unshift("Warning: " + i), Function.prototype.apply.call(console[t], console, A);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
var de = !1, X = !1, ie = !1, ye = !1, he = !1, Oe;
|
|
65
|
-
Oe = Symbol.for("react.module.reference");
|
|
66
|
-
function Pe(t) {
|
|
67
|
-
return !!(typeof t == "string" || typeof t == "function" || t === I || t === C || he || t === P || t === D || t === E || ye || t === L || de || X || ie || typeof t == "object" && t !== null && (t.$$typeof === J || t.$$typeof === x || t.$$typeof === v || t.$$typeof === g || t.$$typeof === p || // This needs to include all possible module reference object
|
|
68
|
-
// types supported by any Flight configuration anywhere since
|
|
69
|
-
// we don't know which Flight build this will end up being used
|
|
70
|
-
// with.
|
|
71
|
-
t.$$typeof === Oe || t.getModuleId !== void 0));
|
|
72
|
-
}
|
|
73
|
-
function Ge(t, i, u) {
|
|
74
|
-
var m = t.displayName;
|
|
75
|
-
if (m)
|
|
76
|
-
return m;
|
|
77
|
-
var N = i.displayName || i.name || "";
|
|
78
|
-
return N !== "" ? u + "(" + N + ")" : u;
|
|
79
|
-
}
|
|
80
|
-
function Te(t) {
|
|
81
|
-
return t.displayName || "Context";
|
|
82
|
-
}
|
|
83
|
-
function oe(t) {
|
|
84
|
-
if (t == null)
|
|
85
|
-
return null;
|
|
86
|
-
if (typeof t.tag == "number" && Y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
87
|
-
return t.displayName || t.name || null;
|
|
88
|
-
if (typeof t == "string")
|
|
89
|
-
return t;
|
|
90
|
-
switch (t) {
|
|
91
|
-
case I:
|
|
44
|
+
var Ee;
|
|
45
|
+
function Ye() {
|
|
46
|
+
return Ee || (Ee = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
function s(e) {
|
|
48
|
+
if (e == null) return null;
|
|
49
|
+
if (typeof e == "function")
|
|
50
|
+
return e.$$typeof === $e ? null : e.displayName || e.name || null;
|
|
51
|
+
if (typeof e == "string") return e;
|
|
52
|
+
switch (e) {
|
|
53
|
+
case U:
|
|
92
54
|
return "Fragment";
|
|
93
|
-
case
|
|
55
|
+
case Pe:
|
|
94
56
|
return "Portal";
|
|
95
|
-
case
|
|
57
|
+
case se:
|
|
96
58
|
return "Profiler";
|
|
97
|
-
case
|
|
59
|
+
case te:
|
|
98
60
|
return "StrictMode";
|
|
99
|
-
case
|
|
61
|
+
case G:
|
|
100
62
|
return "Suspense";
|
|
101
|
-
case
|
|
63
|
+
case H:
|
|
102
64
|
return "SuspenseList";
|
|
103
65
|
}
|
|
104
|
-
if (typeof
|
|
105
|
-
switch (
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
return
|
|
112
|
-
case
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
return
|
|
117
|
-
case
|
|
118
|
-
|
|
66
|
+
if (typeof e == "object")
|
|
67
|
+
switch (typeof e.tag == "number" && console.error(
|
|
68
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
+
), e.$$typeof) {
|
|
70
|
+
case le:
|
|
71
|
+
return (e.displayName || "Context") + ".Provider";
|
|
72
|
+
case oe:
|
|
73
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
74
|
+
case F:
|
|
75
|
+
var r = e.render;
|
|
76
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
77
|
+
case J:
|
|
78
|
+
return r = e.displayName || null, r !== null ? r : s(e.type) || "Memo";
|
|
79
|
+
case V:
|
|
80
|
+
r = e._payload, e = e._init;
|
|
119
81
|
try {
|
|
120
|
-
return
|
|
82
|
+
return s(e(r));
|
|
121
83
|
} catch {
|
|
122
|
-
return null;
|
|
123
84
|
}
|
|
124
|
-
}
|
|
125
85
|
}
|
|
126
86
|
return null;
|
|
127
87
|
}
|
|
128
|
-
|
|
129
|
-
|
|
88
|
+
function d(e) {
|
|
89
|
+
return "" + e;
|
|
130
90
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
error: t,
|
|
147
|
-
group: t,
|
|
148
|
-
groupCollapsed: t,
|
|
149
|
-
groupEnd: t
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
re++;
|
|
91
|
+
function f(e) {
|
|
92
|
+
try {
|
|
93
|
+
d(e);
|
|
94
|
+
var r = !1;
|
|
95
|
+
} catch {
|
|
96
|
+
r = !0;
|
|
97
|
+
}
|
|
98
|
+
if (r) {
|
|
99
|
+
r = console;
|
|
100
|
+
var t = r.error, u = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
101
|
+
return t.call(
|
|
102
|
+
r,
|
|
103
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
104
|
+
u
|
|
105
|
+
), d(e);
|
|
153
106
|
}
|
|
154
107
|
}
|
|
155
|
-
function
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}),
|
|
176
|
-
group: se({}, t, {
|
|
177
|
-
value: be
|
|
178
|
-
}),
|
|
179
|
-
groupCollapsed: se({}, t, {
|
|
180
|
-
value: n
|
|
181
|
-
}),
|
|
182
|
-
groupEnd: se({}, t, {
|
|
183
|
-
value: s
|
|
184
|
-
})
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
re < 0 && Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
108
|
+
function b() {
|
|
109
|
+
}
|
|
110
|
+
function i() {
|
|
111
|
+
if ($ === 0) {
|
|
112
|
+
ne = console.log, ce = console.info, de = console.warn, ue = console.error, fe = console.group, be = console.groupCollapsed, ge = console.groupEnd;
|
|
113
|
+
var e = {
|
|
114
|
+
configurable: !0,
|
|
115
|
+
enumerable: !0,
|
|
116
|
+
value: b,
|
|
117
|
+
writable: !0
|
|
118
|
+
};
|
|
119
|
+
Object.defineProperties(console, {
|
|
120
|
+
info: e,
|
|
121
|
+
log: e,
|
|
122
|
+
warn: e,
|
|
123
|
+
error: e,
|
|
124
|
+
group: e,
|
|
125
|
+
groupCollapsed: e,
|
|
126
|
+
groupEnd: e
|
|
127
|
+
});
|
|
188
128
|
}
|
|
129
|
+
$++;
|
|
189
130
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
131
|
+
function o() {
|
|
132
|
+
if ($--, $ === 0) {
|
|
133
|
+
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
|
134
|
+
Object.defineProperties(console, {
|
|
135
|
+
log: S({}, e, { value: ne }),
|
|
136
|
+
info: S({}, e, { value: ce }),
|
|
137
|
+
warn: S({}, e, { value: de }),
|
|
138
|
+
error: S({}, e, { value: ue }),
|
|
139
|
+
group: S({}, e, { value: fe }),
|
|
140
|
+
groupCollapsed: S({}, e, { value: be }),
|
|
141
|
+
groupEnd: S({}, e, { value: ge })
|
|
142
|
+
});
|
|
202
143
|
}
|
|
144
|
+
0 > $ && console.error(
|
|
145
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
146
|
+
);
|
|
203
147
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
148
|
+
function n(e) {
|
|
149
|
+
if (X === void 0)
|
|
150
|
+
try {
|
|
151
|
+
throw Error();
|
|
152
|
+
} catch (t) {
|
|
153
|
+
var r = t.stack.trim().match(/\n( *(at )?)/);
|
|
154
|
+
X = r && r[1] || "", pe = -1 < t.stack.indexOf(`
|
|
155
|
+
at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
156
|
+
}
|
|
157
|
+
return `
|
|
158
|
+
` + X + e + pe;
|
|
208
159
|
}
|
|
209
|
-
function
|
|
210
|
-
if (!
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
217
|
-
var m;
|
|
218
|
-
F = !0;
|
|
219
|
-
var N = Error.prepareStackTrace;
|
|
220
|
-
Error.prepareStackTrace = void 0;
|
|
221
|
-
var A;
|
|
222
|
-
A = U.current, U.current = null, O();
|
|
160
|
+
function g(e, r) {
|
|
161
|
+
if (!e || Z) return "";
|
|
162
|
+
var t = Q.get(e);
|
|
163
|
+
if (t !== void 0) return t;
|
|
164
|
+
Z = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
165
|
+
var u = null;
|
|
166
|
+
u = I.H, I.H = null, i();
|
|
223
167
|
try {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
throw Error();
|
|
227
|
-
};
|
|
228
|
-
if (Object.defineProperty(j.prototype, "props", {
|
|
229
|
-
set: function() {
|
|
230
|
-
throw Error();
|
|
231
|
-
}
|
|
232
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
-
try {
|
|
234
|
-
Reflect.construct(j, []);
|
|
235
|
-
} catch (ae) {
|
|
236
|
-
m = ae;
|
|
237
|
-
}
|
|
238
|
-
Reflect.construct(t, [], j);
|
|
239
|
-
} else {
|
|
168
|
+
var v = {
|
|
169
|
+
DetermineComponentFrameRoot: function() {
|
|
240
170
|
try {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
171
|
+
if (r) {
|
|
172
|
+
var C = function() {
|
|
173
|
+
throw Error();
|
|
174
|
+
};
|
|
175
|
+
if (Object.defineProperty(C.prototype, "props", {
|
|
176
|
+
set: function() {
|
|
177
|
+
throw Error();
|
|
178
|
+
}
|
|
179
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
180
|
+
try {
|
|
181
|
+
Reflect.construct(C, []);
|
|
182
|
+
} catch (T) {
|
|
183
|
+
var Y = T;
|
|
184
|
+
}
|
|
185
|
+
Reflect.construct(e, [], C);
|
|
186
|
+
} else {
|
|
187
|
+
try {
|
|
188
|
+
C.call();
|
|
189
|
+
} catch (T) {
|
|
190
|
+
Y = T;
|
|
191
|
+
}
|
|
192
|
+
e.call(C.prototype);
|
|
193
|
+
}
|
|
194
|
+
} else {
|
|
195
|
+
try {
|
|
196
|
+
throw Error();
|
|
197
|
+
} catch (T) {
|
|
198
|
+
Y = T;
|
|
199
|
+
}
|
|
200
|
+
(C = e()) && typeof C.catch == "function" && C.catch(function() {
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
} catch (T) {
|
|
204
|
+
if (T && Y && typeof T.stack == "string")
|
|
205
|
+
return [T.stack, Y.stack];
|
|
244
206
|
}
|
|
245
|
-
|
|
207
|
+
return [null, null];
|
|
246
208
|
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
209
|
+
};
|
|
210
|
+
v.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
211
|
+
var x = Object.getOwnPropertyDescriptor(
|
|
212
|
+
v.DetermineComponentFrameRoot,
|
|
213
|
+
"name"
|
|
214
|
+
);
|
|
215
|
+
x && x.configurable && Object.defineProperty(
|
|
216
|
+
v.DetermineComponentFrameRoot,
|
|
217
|
+
"name",
|
|
218
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
219
|
+
);
|
|
220
|
+
var a = v.DetermineComponentFrameRoot(), w = a[0], A = a[1];
|
|
221
|
+
if (w && A) {
|
|
222
|
+
var h = w.split(`
|
|
223
|
+
`), P = A.split(`
|
|
224
|
+
`);
|
|
225
|
+
for (a = x = 0; x < h.length && !h[x].includes(
|
|
226
|
+
"DetermineComponentFrameRoot"
|
|
227
|
+
); )
|
|
228
|
+
x++;
|
|
229
|
+
for (; a < P.length && !P[a].includes(
|
|
230
|
+
"DetermineComponentFrameRoot"
|
|
231
|
+
); )
|
|
232
|
+
a++;
|
|
233
|
+
if (x === h.length || a === P.length)
|
|
234
|
+
for (x = h.length - 1, a = P.length - 1; 1 <= x && 0 <= a && h[x] !== P[a]; )
|
|
235
|
+
a--;
|
|
236
|
+
for (; 1 <= x && 0 <= a; x--, a--)
|
|
237
|
+
if (h[x] !== P[a]) {
|
|
238
|
+
if (x !== 1 || a !== 1)
|
|
264
239
|
do
|
|
265
|
-
if (
|
|
266
|
-
var
|
|
267
|
-
` +
|
|
268
|
-
|
|
240
|
+
if (x--, a--, 0 > a || h[x] !== P[a]) {
|
|
241
|
+
var O = `
|
|
242
|
+
` + h[x].replace(
|
|
243
|
+
" at new ",
|
|
244
|
+
" at "
|
|
245
|
+
);
|
|
246
|
+
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, O), O;
|
|
269
247
|
}
|
|
270
|
-
while (
|
|
248
|
+
while (1 <= x && 0 <= a);
|
|
271
249
|
break;
|
|
272
250
|
}
|
|
273
251
|
}
|
|
274
252
|
} finally {
|
|
275
|
-
|
|
253
|
+
Z = !1, I.H = u, o(), Error.prepareStackTrace = t;
|
|
276
254
|
}
|
|
277
|
-
|
|
278
|
-
return typeof t == "function" && Z.set(t, _e), _e;
|
|
279
|
-
}
|
|
280
|
-
function Ve(t, i, u) {
|
|
281
|
-
return tr(t, !1);
|
|
255
|
+
return h = (h = e ? e.displayName || e.name : "") ? n(h) : "", typeof e == "function" && Q.set(e, h), h;
|
|
282
256
|
}
|
|
283
|
-
function
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
if (typeof
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
var m = t, N = m._payload, A = m._init;
|
|
257
|
+
function c(e) {
|
|
258
|
+
if (e == null) return "";
|
|
259
|
+
if (typeof e == "function") {
|
|
260
|
+
var r = e.prototype;
|
|
261
|
+
return g(
|
|
262
|
+
e,
|
|
263
|
+
!(!r || !r.isReactComponent)
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
if (typeof e == "string") return n(e);
|
|
267
|
+
switch (e) {
|
|
268
|
+
case G:
|
|
269
|
+
return n("Suspense");
|
|
270
|
+
case H:
|
|
271
|
+
return n("SuspenseList");
|
|
272
|
+
}
|
|
273
|
+
if (typeof e == "object")
|
|
274
|
+
switch (e.$$typeof) {
|
|
275
|
+
case F:
|
|
276
|
+
return e = g(e.render, !1), e;
|
|
277
|
+
case J:
|
|
278
|
+
return c(e.type);
|
|
279
|
+
case V:
|
|
280
|
+
r = e._payload, e = e._init;
|
|
308
281
|
try {
|
|
309
|
-
return
|
|
282
|
+
return c(e(r));
|
|
310
283
|
} catch {
|
|
311
284
|
}
|
|
312
|
-
}
|
|
313
285
|
}
|
|
314
286
|
return "";
|
|
315
287
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
var i = t._owner, u = Ue(t.type, t._source, i ? i.type : null);
|
|
320
|
-
nr.setExtraStackFrame(u);
|
|
321
|
-
} else
|
|
322
|
-
nr.setExtraStackFrame(null);
|
|
323
|
-
}
|
|
324
|
-
function me(t, i, u, m, N) {
|
|
325
|
-
{
|
|
326
|
-
var A = Function.call.bind(Re);
|
|
327
|
-
for (var j in t)
|
|
328
|
-
if (A(t, j)) {
|
|
329
|
-
var R = void 0;
|
|
330
|
-
try {
|
|
331
|
-
if (typeof t[j] != "function") {
|
|
332
|
-
var te = Error((m || "React class") + ": " + u + " type `" + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[j] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
-
throw te.name = "Invariant Violation", te;
|
|
334
|
-
}
|
|
335
|
-
R = t[j](i, j, m, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
-
} catch (H) {
|
|
337
|
-
R = H;
|
|
338
|
-
}
|
|
339
|
-
R && !(R instanceof Error) && (Ne(N), Y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class", u, j, typeof R), Ne(null)), R instanceof Error && !(R.message in $e) && ($e[R.message] = !0, Ne(N), Y("Failed %s type: %s", u, R.message), Ne(null));
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
var De = Array.isArray;
|
|
344
|
-
function We(t) {
|
|
345
|
-
return De(t);
|
|
346
|
-
}
|
|
347
|
-
function or(t) {
|
|
348
|
-
{
|
|
349
|
-
var i = typeof Symbol == "function" && Symbol.toStringTag, u = i && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
350
|
-
return u;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
function ar(t) {
|
|
354
|
-
try {
|
|
355
|
-
return ze(t), !1;
|
|
356
|
-
} catch {
|
|
357
|
-
return !0;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
function ze(t) {
|
|
361
|
-
return "" + t;
|
|
362
|
-
}
|
|
363
|
-
function Je(t) {
|
|
364
|
-
if (ar(t))
|
|
365
|
-
return Y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", or(t)), ze(t);
|
|
366
|
-
}
|
|
367
|
-
var we = fe.ReactCurrentOwner, Cr = {
|
|
368
|
-
key: !0,
|
|
369
|
-
ref: !0,
|
|
370
|
-
__self: !0,
|
|
371
|
-
__source: !0
|
|
372
|
-
}, ir, sr, Fe;
|
|
373
|
-
Fe = {};
|
|
374
|
-
function jr(t) {
|
|
375
|
-
if (Re.call(t, "ref")) {
|
|
376
|
-
var i = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
377
|
-
if (i && i.isReactWarning)
|
|
378
|
-
return !1;
|
|
379
|
-
}
|
|
380
|
-
return t.ref !== void 0;
|
|
381
|
-
}
|
|
382
|
-
function kr(t) {
|
|
383
|
-
if (Re.call(t, "key")) {
|
|
384
|
-
var i = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
385
|
-
if (i && i.isReactWarning)
|
|
386
|
-
return !1;
|
|
387
|
-
}
|
|
388
|
-
return t.key !== void 0;
|
|
288
|
+
function m() {
|
|
289
|
+
var e = I.A;
|
|
290
|
+
return e === null ? null : e.getOwner();
|
|
389
291
|
}
|
|
390
|
-
function
|
|
391
|
-
if (
|
|
392
|
-
var
|
|
393
|
-
|
|
292
|
+
function p(e) {
|
|
293
|
+
if (ie.call(e, "key")) {
|
|
294
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
295
|
+
if (r && r.isReactWarning) return !1;
|
|
394
296
|
}
|
|
297
|
+
return e.key !== void 0;
|
|
395
298
|
}
|
|
396
|
-
function
|
|
397
|
-
{
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
299
|
+
function y(e, r) {
|
|
300
|
+
function t() {
|
|
301
|
+
xe || (xe = !0, console.error(
|
|
302
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
303
|
+
r
|
|
304
|
+
));
|
|
305
|
+
}
|
|
306
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
307
|
+
get: t,
|
|
308
|
+
configurable: !0
|
|
309
|
+
});
|
|
406
310
|
}
|
|
407
|
-
function
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
u.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
413
|
-
get: u,
|
|
414
|
-
configurable: !0
|
|
415
|
-
});
|
|
416
|
-
}
|
|
311
|
+
function E() {
|
|
312
|
+
var e = s(this.type);
|
|
313
|
+
return me[e] || (me[e] = !0, console.error(
|
|
314
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
315
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
417
316
|
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
props: j,
|
|
427
|
-
// Record the component responsible for creating this element.
|
|
428
|
-
_owner: A
|
|
429
|
-
};
|
|
430
|
-
return R._store = {}, Object.defineProperty(R._store, "validated", {
|
|
431
|
-
configurable: !1,
|
|
317
|
+
function j(e, r, t, u, v, x) {
|
|
318
|
+
return t = x.ref, e = {
|
|
319
|
+
$$typeof: B,
|
|
320
|
+
type: e,
|
|
321
|
+
key: r,
|
|
322
|
+
props: x,
|
|
323
|
+
_owner: v
|
|
324
|
+
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
432
325
|
enumerable: !1,
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
}), Object.defineProperty(R, "_self", {
|
|
326
|
+
get: E
|
|
327
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
436
328
|
configurable: !1,
|
|
437
329
|
enumerable: !1,
|
|
438
|
-
writable: !
|
|
439
|
-
value:
|
|
440
|
-
}), Object.defineProperty(
|
|
330
|
+
writable: !0,
|
|
331
|
+
value: 0
|
|
332
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
441
333
|
configurable: !1,
|
|
442
334
|
enumerable: !1,
|
|
443
|
-
writable: !
|
|
444
|
-
value:
|
|
445
|
-
}), Object.freeze && (Object.freeze(
|
|
446
|
-
};
|
|
447
|
-
function Tr(t, i, u, m, N) {
|
|
448
|
-
{
|
|
449
|
-
var A, j = {}, R = null, te = null;
|
|
450
|
-
u !== void 0 && (Je(u), R = "" + u), kr(i) && (Je(i.key), R = "" + i.key), jr(i) && (te = i.ref, Or(i, N));
|
|
451
|
-
for (A in i)
|
|
452
|
-
Re.call(i, A) && !Cr.hasOwnProperty(A) && (j[A] = i[A]);
|
|
453
|
-
if (t && t.defaultProps) {
|
|
454
|
-
var H = t.defaultProps;
|
|
455
|
-
for (A in H)
|
|
456
|
-
j[A] === void 0 && (j[A] = H[A]);
|
|
457
|
-
}
|
|
458
|
-
if (R || te) {
|
|
459
|
-
var K = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
460
|
-
R && Ee(j, K), te && ur(j, K);
|
|
461
|
-
}
|
|
462
|
-
return Pr(t, R, te, N, m, we.current, j);
|
|
463
|
-
}
|
|
335
|
+
writable: !0,
|
|
336
|
+
value: null
|
|
337
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
464
338
|
}
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
339
|
+
function D(e, r, t, u, v, x) {
|
|
340
|
+
if (typeof e == "string" || typeof e == "function" || e === U || e === se || e === te || e === G || e === H || e === Ae || typeof e == "object" && e !== null && (e.$$typeof === V || e.$$typeof === J || e.$$typeof === le || e.$$typeof === oe || e.$$typeof === F || e.$$typeof === Oe || e.getModuleId !== void 0)) {
|
|
341
|
+
var a = r.children;
|
|
342
|
+
if (a !== void 0)
|
|
343
|
+
if (u)
|
|
344
|
+
if (L(a)) {
|
|
345
|
+
for (u = 0; u < a.length; u++)
|
|
346
|
+
ee(a[u], e);
|
|
347
|
+
Object.freeze && Object.freeze(a);
|
|
348
|
+
} else
|
|
349
|
+
console.error(
|
|
350
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
351
|
+
);
|
|
352
|
+
else ee(a, e);
|
|
470
353
|
} else
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
return `
|
|
484
|
-
|
|
485
|
-
Check the render method of \`` + t + "`.";
|
|
486
|
-
}
|
|
487
|
-
return "";
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
function Ir(t) {
|
|
491
|
-
return "";
|
|
492
|
-
}
|
|
493
|
-
var cr = {};
|
|
494
|
-
function $r(t) {
|
|
495
|
-
{
|
|
496
|
-
var i = Me();
|
|
497
|
-
if (!i) {
|
|
498
|
-
var u = typeof t == "string" ? t : t.displayName || t.name;
|
|
499
|
-
u && (i = `
|
|
500
|
-
|
|
501
|
-
Check the top-level render call using <` + u + ">.");
|
|
502
|
-
}
|
|
503
|
-
return i;
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
function fr(t, i) {
|
|
507
|
-
{
|
|
508
|
-
if (!t._store || t._store.validated || t.key != null)
|
|
509
|
-
return;
|
|
510
|
-
t._store.validated = !0;
|
|
511
|
-
var u = $r(i);
|
|
512
|
-
if (cr[u])
|
|
513
|
-
return;
|
|
514
|
-
cr[u] = !0;
|
|
515
|
-
var m = "";
|
|
516
|
-
t && t._owner && t._owner !== Be.current && (m = " It was passed a child from " + oe(t._owner.type) + "."), ge(t), Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, m), ge(null);
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
function dr(t, i) {
|
|
520
|
-
{
|
|
521
|
-
if (typeof t != "object")
|
|
522
|
-
return;
|
|
523
|
-
if (We(t))
|
|
524
|
-
for (var u = 0; u < t.length; u++) {
|
|
525
|
-
var m = t[u];
|
|
526
|
-
Se(m) && fr(m, i);
|
|
527
|
-
}
|
|
528
|
-
else if (Se(t))
|
|
529
|
-
t._store && (t._store.validated = !0);
|
|
530
|
-
else if (t) {
|
|
531
|
-
var N = ce(t);
|
|
532
|
-
if (typeof N == "function" && N !== t.entries)
|
|
533
|
-
for (var A = N.call(t), j; !(j = A.next()).done; )
|
|
534
|
-
Se(j.value) && fr(j.value, i);
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
function Le(t) {
|
|
539
|
-
{
|
|
540
|
-
var i = t.type;
|
|
541
|
-
if (i == null || typeof i == "string")
|
|
542
|
-
return;
|
|
543
|
-
var u;
|
|
544
|
-
if (typeof i == "function")
|
|
545
|
-
u = i.propTypes;
|
|
546
|
-
else if (typeof i == "object" && (i.$$typeof === p || // Note: Memo only checks outer props here.
|
|
547
|
-
// Inner props are checked in the reconciler.
|
|
548
|
-
i.$$typeof === x))
|
|
549
|
-
u = i.propTypes;
|
|
550
|
-
else
|
|
551
|
-
return;
|
|
552
|
-
if (u) {
|
|
553
|
-
var m = oe(i);
|
|
554
|
-
me(u, t.props, "prop", m, t);
|
|
555
|
-
} else if (i.PropTypes !== void 0 && !Ae) {
|
|
556
|
-
Ae = !0;
|
|
557
|
-
var N = oe(i);
|
|
558
|
-
Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
|
|
559
|
-
}
|
|
560
|
-
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
function Ke(t) {
|
|
564
|
-
{
|
|
565
|
-
for (var i = Object.keys(t.props), u = 0; u < i.length; u++) {
|
|
566
|
-
var m = i[u];
|
|
567
|
-
if (m !== "children" && m !== "key") {
|
|
568
|
-
ge(t), Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), ge(null);
|
|
569
|
-
break;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
t.ref !== null && (ge(t), Y("Invalid attribute `ref` supplied to `React.Fragment`."), ge(null));
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
var Xe = {};
|
|
576
|
-
function pr(t, i, u, m, N, A) {
|
|
577
|
-
{
|
|
578
|
-
var j = Pe(t);
|
|
579
|
-
if (!j) {
|
|
580
|
-
var R = "";
|
|
581
|
-
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
582
|
-
var te = Ir();
|
|
583
|
-
te ? R += te : R += Me();
|
|
584
|
-
var H;
|
|
585
|
-
t === null ? H = "null" : We(t) ? H = "array" : t !== void 0 && t.$$typeof === c ? (H = "<" + (oe(t.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : H = typeof t, Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, R);
|
|
586
|
-
}
|
|
587
|
-
var K = Tr(t, i, u, N, A);
|
|
588
|
-
if (K == null)
|
|
589
|
-
return K;
|
|
590
|
-
if (j) {
|
|
591
|
-
var ue = i.children;
|
|
592
|
-
if (ue !== void 0)
|
|
593
|
-
if (m)
|
|
594
|
-
if (We(ue)) {
|
|
595
|
-
for (var Ce = 0; Ce < ue.length; Ce++)
|
|
596
|
-
dr(ue[Ce], t);
|
|
597
|
-
Object.freeze && Object.freeze(ue);
|
|
598
|
-
} else
|
|
599
|
-
Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
|
-
else
|
|
601
|
-
dr(ue, t);
|
|
602
|
-
}
|
|
603
|
-
if (Re.call(i, "key")) {
|
|
604
|
-
var _e = oe(t), ae = Object.keys(i).filter(function(Mr) {
|
|
605
|
-
return Mr !== "key";
|
|
606
|
-
}), Ze = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
|
-
if (!Xe[_e + Ze]) {
|
|
608
|
-
var Ar = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
-
Y(`A props object containing a "key" prop is being spread into JSX:
|
|
354
|
+
a = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? u = "null" : L(e) ? u = "array" : e !== void 0 && e.$$typeof === B ? (u = "<" + (s(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, console.error(
|
|
355
|
+
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
356
|
+
u,
|
|
357
|
+
a
|
|
358
|
+
);
|
|
359
|
+
if (ie.call(r, "key")) {
|
|
360
|
+
a = s(e);
|
|
361
|
+
var w = Object.keys(r).filter(function(h) {
|
|
362
|
+
return h !== "key";
|
|
363
|
+
});
|
|
364
|
+
u = 0 < w.length ? "{key: someKey, " + w.join(": ..., ") + ": ...}" : "{key: someKey}", ve[a + u] || (w = 0 < w.length ? "{" + w.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
365
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
610
366
|
let props = %s;
|
|
611
367
|
<%s {...props} />
|
|
612
368
|
React keys must be passed directly to JSX without using spread:
|
|
613
369
|
let props = %s;
|
|
614
|
-
<%s key={someKey} {...props} />`,
|
|
370
|
+
<%s key={someKey} {...props} />`,
|
|
371
|
+
u,
|
|
372
|
+
a,
|
|
373
|
+
w,
|
|
374
|
+
a
|
|
375
|
+
), ve[a + u] = !0);
|
|
376
|
+
}
|
|
377
|
+
if (a = null, t !== void 0 && (f(t), a = "" + t), p(r) && (f(r.key), a = "" + r.key), "key" in r) {
|
|
378
|
+
t = {};
|
|
379
|
+
for (var A in r)
|
|
380
|
+
A !== "key" && (t[A] = r[A]);
|
|
381
|
+
} else t = r;
|
|
382
|
+
return a && y(
|
|
383
|
+
t,
|
|
384
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
385
|
+
), j(e, a, x, v, m(), t);
|
|
386
|
+
}
|
|
387
|
+
function ee(e, r) {
|
|
388
|
+
if (typeof e == "object" && e && e.$$typeof !== qe) {
|
|
389
|
+
if (L(e))
|
|
390
|
+
for (var t = 0; t < e.length; t++) {
|
|
391
|
+
var u = e[t];
|
|
392
|
+
W(u) && re(u, r);
|
|
615
393
|
}
|
|
616
|
-
|
|
617
|
-
|
|
394
|
+
else if (W(e))
|
|
395
|
+
e._store && (e._store.validated = 1);
|
|
396
|
+
else if (e === null || typeof e != "object" ? t = null : (t = ae && e[ae] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
|
|
397
|
+
for (; !(e = t.next()).done; )
|
|
398
|
+
W(e.value) && re(e.value, r);
|
|
618
399
|
}
|
|
619
400
|
}
|
|
620
|
-
function
|
|
621
|
-
return
|
|
401
|
+
function W(e) {
|
|
402
|
+
return typeof e == "object" && e !== null && e.$$typeof === B;
|
|
403
|
+
}
|
|
404
|
+
function re(e, r) {
|
|
405
|
+
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = Ie(r), !he[r])) {
|
|
406
|
+
he[r] = !0;
|
|
407
|
+
var t = "";
|
|
408
|
+
e && e._owner != null && e._owner !== m() && (t = null, typeof e._owner.tag == "number" ? t = s(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
|
|
409
|
+
var u = I.getCurrentStack;
|
|
410
|
+
I.getCurrentStack = function() {
|
|
411
|
+
var v = c(e.type);
|
|
412
|
+
return u && (v += u() || ""), v;
|
|
413
|
+
}, console.error(
|
|
414
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
415
|
+
r,
|
|
416
|
+
t
|
|
417
|
+
), I.getCurrentStack = u;
|
|
418
|
+
}
|
|
622
419
|
}
|
|
623
|
-
function
|
|
624
|
-
|
|
420
|
+
function Ie(e) {
|
|
421
|
+
var r = "", t = m();
|
|
422
|
+
return t && (t = s(t.type)) && (r = `
|
|
423
|
+
|
|
424
|
+
Check the render method of \`` + t + "`."), r || (e = s(e)) && (r = `
|
|
425
|
+
|
|
426
|
+
Check the top-level render call using <` + e + ">."), r;
|
|
625
427
|
}
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
|
|
428
|
+
var Se = R, B = Symbol.for("react.transitional.element"), Pe = Symbol.for("react.portal"), U = Symbol.for("react.fragment"), te = Symbol.for("react.strict_mode"), se = Symbol.for("react.profiler"), oe = Symbol.for("react.consumer"), le = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), J = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), Ae = Symbol.for("react.offscreen"), ae = Symbol.iterator, $e = Symbol.for("react.client.reference"), I = Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ie = Object.prototype.hasOwnProperty, S = Object.assign, Oe = Symbol.for("react.client.reference"), L = Array.isArray, $ = 0, ne, ce, de, ue, fe, be, ge;
|
|
429
|
+
b.__reactDisabledLog = !0;
|
|
430
|
+
var X, pe, Z = !1, Q = new (typeof WeakMap == "function" ? WeakMap : Map)(), qe = Symbol.for("react.client.reference"), xe, me = {}, ve = {}, he = {};
|
|
431
|
+
M.Fragment = U, M.jsx = function(e, r, t, u, v) {
|
|
432
|
+
return D(e, r, t, !1, u, v);
|
|
433
|
+
}, M.jsxs = function(e, r, t, u, v) {
|
|
434
|
+
return D(e, r, t, !0, u, v);
|
|
435
|
+
};
|
|
436
|
+
}()), M;
|
|
629
437
|
}
|
|
630
|
-
var
|
|
631
|
-
function
|
|
632
|
-
return
|
|
438
|
+
var Ne;
|
|
439
|
+
function ze() {
|
|
440
|
+
return Ne || (Ne = 1, process.env.NODE_ENV === "production" ? z.exports = Me() : z.exports = Ye()), z.exports;
|
|
633
441
|
}
|
|
634
|
-
var
|
|
635
|
-
const
|
|
636
|
-
var
|
|
637
|
-
((
|
|
638
|
-
|
|
442
|
+
var l = ze();
|
|
443
|
+
const N = (...s) => s.filter(Boolean).join(" ");
|
|
444
|
+
var k;
|
|
445
|
+
((s) => {
|
|
446
|
+
s.clickable = `
|
|
639
447
|
px-2
|
|
640
448
|
min-h-[calc(44/16*1rem)]
|
|
641
449
|
border
|
|
642
450
|
border-transparent
|
|
643
451
|
rounded-lg
|
|
644
452
|
hover:bg-solid-grey-50
|
|
645
|
-
`,
|
|
453
|
+
`, s.selected = `
|
|
646
454
|
rounded-full
|
|
647
455
|
bg-yellow-50
|
|
648
456
|
`;
|
|
649
|
-
const
|
|
457
|
+
const d = `
|
|
650
458
|
focus-visible:outline
|
|
651
459
|
focus-visible:outline-4
|
|
652
460
|
focus-visible:outline-black
|
|
653
461
|
focus-visible:ring-yellow-300
|
|
654
462
|
`;
|
|
655
|
-
|
|
656
|
-
${
|
|
463
|
+
s.focusRectCondensed = `
|
|
464
|
+
${d}
|
|
657
465
|
focus-visible:-outline-offset-4
|
|
658
466
|
focus-visible:ring-[calc(6/16*1rem)]
|
|
659
467
|
focus-visible:ring-inset
|
|
660
|
-
`,
|
|
661
|
-
${
|
|
468
|
+
`, s.focusRectCondensedWithBg = `
|
|
469
|
+
${s.focusRectCondensed}
|
|
662
470
|
focus-visible:bg-yellow-300
|
|
663
|
-
`,
|
|
664
|
-
${
|
|
471
|
+
`, s.focusRect = `
|
|
472
|
+
${d}
|
|
665
473
|
focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
666
474
|
focus-visible:ring-[calc(2/16*1rem)]
|
|
667
|
-
`,
|
|
668
|
-
${
|
|
475
|
+
`, s.focusRounded = `
|
|
476
|
+
${s.focusRect}
|
|
669
477
|
focus-visible:rounded
|
|
670
|
-
`,
|
|
671
|
-
${
|
|
478
|
+
`, s.focusCard = `
|
|
479
|
+
${s.focusRect}
|
|
672
480
|
focus-visible:rounded-2xl
|
|
673
481
|
sm:focus-visible:rounded-3xl
|
|
674
|
-
`,
|
|
675
|
-
${
|
|
482
|
+
`, s.focusRectWithBg = `
|
|
483
|
+
${s.focusRect}
|
|
676
484
|
focus-visible:bg-yellow-300
|
|
677
|
-
`,
|
|
678
|
-
${
|
|
485
|
+
`, s.focusRoundedWithBg = `
|
|
486
|
+
${s.focusRectWithBg}
|
|
679
487
|
focus-visible:rounded
|
|
680
|
-
`,
|
|
488
|
+
`, s.hoverUnderline = `
|
|
681
489
|
hover:underline
|
|
682
490
|
hover:underline-offset-[calc(3/16*1rem)]
|
|
683
|
-
`,
|
|
491
|
+
`, s.underline = `
|
|
684
492
|
underline
|
|
685
493
|
underline-offset-[calc(3/16*1rem)]
|
|
686
494
|
hover:decoration-[calc(3/16*1rem)]
|
|
687
|
-
`,
|
|
495
|
+
`, s.underlineNoDeco = `
|
|
688
496
|
underline
|
|
689
497
|
underline-offset-[calc(3/16*1rem)]
|
|
690
|
-
`,
|
|
498
|
+
`, s.popover = `
|
|
691
499
|
min-w-fit
|
|
692
500
|
w-auto
|
|
693
501
|
py-2
|
|
@@ -697,2076 +505,578 @@ var je;
|
|
|
697
505
|
border
|
|
698
506
|
border-solid-grey-420
|
|
699
507
|
has-[>:nth-child(7)]:rounded-r-none
|
|
700
|
-
`,
|
|
508
|
+
`, s.popoverPositionBottomRight = `
|
|
701
509
|
absolute
|
|
702
510
|
top-11
|
|
703
511
|
right-0
|
|
704
|
-
`,
|
|
512
|
+
`, s.popoverPositionBottomLeft = `
|
|
705
513
|
absolute
|
|
706
514
|
top-11
|
|
707
515
|
left-0
|
|
708
|
-
`, ((
|
|
709
|
-
|
|
516
|
+
`, ((f) => {
|
|
517
|
+
f.focus = `
|
|
710
518
|
peer-focus-visible:outline
|
|
711
519
|
peer-focus-visible:outline-4
|
|
712
520
|
peer-focus-visible:outline-black
|
|
713
521
|
peer-focus-visible:ring-yellow-300
|
|
714
|
-
`,
|
|
715
|
-
${
|
|
522
|
+
`, f.focusRect = `
|
|
523
|
+
${f.focus}
|
|
716
524
|
peer-focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
717
525
|
peer-focus-visible:ring-[calc(2/16*1rem)]
|
|
718
526
|
`;
|
|
719
|
-
})(
|
|
720
|
-
})(
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
527
|
+
})(s.Peer || (s.Peer = {}));
|
|
528
|
+
})(k || (k = {}));
|
|
529
|
+
const _ = R.createContext({
|
|
530
|
+
helperTextId: "",
|
|
531
|
+
errorMessageId: "",
|
|
532
|
+
isInvalid: !1,
|
|
533
|
+
isRequired: !1
|
|
534
|
+
}), Re = `
|
|
535
|
+
bg-white
|
|
536
|
+
border
|
|
537
|
+
border-solid
|
|
538
|
+
border-solid-gray-900
|
|
539
|
+
disabled:bg-transparent
|
|
540
|
+
disabled:text-solid-gray-500
|
|
541
|
+
disabled:border-solid-gray-500
|
|
542
|
+
aria-invalid:border-red-800
|
|
543
|
+
${k.focusRect}
|
|
544
|
+
`, je = {
|
|
545
|
+
// 16(p-4) * 2 + 22(text-label * leading-snug) + boader * 2 = 56px
|
|
546
|
+
lg: `
|
|
547
|
+
p-4
|
|
548
|
+
text-label
|
|
549
|
+
rounded-lg
|
|
550
|
+
leading-snug
|
|
551
|
+
`,
|
|
552
|
+
// 12(py-3) * 2 + 22(text-label * leading-snug) + boader * 2 = 48px
|
|
553
|
+
md: `
|
|
554
|
+
px-4
|
|
555
|
+
py-3
|
|
556
|
+
text-label
|
|
557
|
+
rounded-lg
|
|
558
|
+
leading-snug
|
|
559
|
+
`,
|
|
560
|
+
// 8(py-2) * 2 + 22(text-label * leading-snug) + boader * 2 = 40px
|
|
561
|
+
sm: `
|
|
562
|
+
px-3
|
|
563
|
+
py-2
|
|
564
|
+
text-label
|
|
565
|
+
rounded-md
|
|
566
|
+
leading-snug
|
|
567
|
+
`
|
|
568
|
+
}, we = `
|
|
569
|
+
inline-block
|
|
570
|
+
cursor-pointer
|
|
571
|
+
border
|
|
572
|
+
border-solid
|
|
573
|
+
border-transparent
|
|
574
|
+
`, Te = {
|
|
575
|
+
// 16(p-4) * 2 + 22(text-label * leading-snug) + boader(transparent) * 2 = 56px
|
|
576
|
+
lg: `
|
|
577
|
+
pr-8
|
|
578
|
+
py-4
|
|
579
|
+
text-label
|
|
580
|
+
leading-snug
|
|
581
|
+
`,
|
|
582
|
+
// 12(py-3) * 2 + 22(text-label * leading-snug) + boader(transparent) * 2 = 48px
|
|
583
|
+
md: `
|
|
584
|
+
pr-6
|
|
585
|
+
py-3
|
|
586
|
+
text-label
|
|
587
|
+
leading-snug
|
|
588
|
+
`,
|
|
589
|
+
// 8(py-2) * 2 + 22(text-label * leading-snug) + boader(transparent) * 2 = 40px
|
|
590
|
+
sm: `
|
|
591
|
+
pr-4
|
|
592
|
+
py-2
|
|
593
|
+
text-label
|
|
594
|
+
leading-snug
|
|
595
|
+
`
|
|
596
|
+
}, Ce = {
|
|
597
|
+
lg: "w-[22px] h-[22px] mr-2",
|
|
598
|
+
md: "w-[18px] h-[18px] mr-1.5",
|
|
599
|
+
sm: "w-[18px] h-[18px] mr-1"
|
|
600
|
+
}, ke = (s) => {
|
|
601
|
+
const { id: d, className: f, size: b = "lg", children: i, ...o } = s, n = R.useId(), g = d || n, c = R.useContext(_);
|
|
602
|
+
c.isRequired && (o.required = !0), c.groupName && (o.name = c.groupName);
|
|
603
|
+
const m = {
|
|
604
|
+
lg: 22 / 24,
|
|
605
|
+
md: 18 / 24,
|
|
606
|
+
sm: 18 / 24
|
|
607
|
+
}, p = `
|
|
608
|
+
peer
|
|
609
|
+
sr-only
|
|
610
|
+
`, y = `
|
|
611
|
+
bg-clip-content
|
|
612
|
+
rounded
|
|
613
|
+
border
|
|
614
|
+
border-solid
|
|
615
|
+
border-solid-gray-900
|
|
616
|
+
fill-transparent
|
|
617
|
+
peer-checked:fill-white
|
|
618
|
+
peer-checked:bg-blue-600
|
|
619
|
+
peer-checked:border-none
|
|
620
|
+
peer-disabled:border-solid-gray-500
|
|
621
|
+
${k.Peer.focusRect}
|
|
622
|
+
`;
|
|
623
|
+
return /* @__PURE__ */ l.jsx(
|
|
624
|
+
"label",
|
|
625
|
+
{
|
|
626
|
+
htmlFor: g,
|
|
627
|
+
className: N(
|
|
628
|
+
we,
|
|
629
|
+
Te[b],
|
|
630
|
+
f
|
|
631
|
+
),
|
|
632
|
+
children: /* @__PURE__ */ l.jsxs("span", { className: "flex items-center", children: [
|
|
633
|
+
/* @__PURE__ */ l.jsx(
|
|
634
|
+
"input",
|
|
635
|
+
{
|
|
636
|
+
id: g,
|
|
637
|
+
className: p,
|
|
638
|
+
type: "checkbox",
|
|
639
|
+
"aria-describedby": c.helperTextId,
|
|
640
|
+
"aria-errormessage": c.errorMessageId,
|
|
641
|
+
"aria-invalid": c.isInvalid ?? !1,
|
|
642
|
+
"aria-required": c.isRequired ?? !1,
|
|
643
|
+
...o
|
|
644
|
+
}
|
|
645
|
+
),
|
|
646
|
+
/* @__PURE__ */ l.jsx("span", { className: N(y, Ce[b]), children: /* @__PURE__ */ l.jsx(
|
|
647
|
+
"svg",
|
|
648
|
+
{
|
|
649
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
650
|
+
"aria-hidden": !0,
|
|
651
|
+
width: "24",
|
|
652
|
+
height: "24",
|
|
653
|
+
viewBox: "0 0 24 24",
|
|
654
|
+
children: /* @__PURE__ */ l.jsx("g", { transform: `scale(${m[b]} ${m[b]})`, children: /* @__PURE__ */ l.jsx("path", { d: "m9.55 17.65-5.325-5.325 1.05-1.075 4.275 4.275 9.175-9.175 1.05 1.075Z" }) })
|
|
655
|
+
}
|
|
656
|
+
) }),
|
|
657
|
+
/* @__PURE__ */ l.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: i })
|
|
658
|
+
] })
|
|
659
|
+
}
|
|
660
|
+
);
|
|
661
|
+
};
|
|
662
|
+
ke.displayName = "Checkbox";
|
|
663
|
+
const _e = (s) => {
|
|
664
|
+
const { id: d, className: f, size: b = "lg", children: i, ...o } = s, n = R.useId(), g = d || n, c = R.useContext(_);
|
|
665
|
+
c.isRequired && (o.required = !0), c.groupName && (o.name = c.groupName);
|
|
666
|
+
const m = `
|
|
667
|
+
peer
|
|
668
|
+
sr-only
|
|
669
|
+
`, p = `
|
|
670
|
+
bg-clip-content
|
|
671
|
+
rounded-full
|
|
672
|
+
border
|
|
673
|
+
border-solid
|
|
674
|
+
border-solid-gray-900
|
|
675
|
+
peer-checked:bg-blue-600
|
|
676
|
+
peer-checked:border-blue-600
|
|
677
|
+
peer-disabled:border-solid-gray-500
|
|
678
|
+
${k.Peer.focusRect}
|
|
679
|
+
`, y = {
|
|
680
|
+
lg: "p-1",
|
|
681
|
+
md: "p-[3px]",
|
|
682
|
+
sm: "p-[3px]"
|
|
753
683
|
};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
684
|
+
return /* @__PURE__ */ l.jsx(
|
|
685
|
+
"label",
|
|
686
|
+
{
|
|
687
|
+
htmlFor: g,
|
|
688
|
+
className: N(
|
|
689
|
+
we,
|
|
690
|
+
Te[b],
|
|
691
|
+
f
|
|
692
|
+
),
|
|
693
|
+
children: /* @__PURE__ */ l.jsxs("span", { className: "flex items-center", children: [
|
|
694
|
+
/* @__PURE__ */ l.jsx(
|
|
695
|
+
"input",
|
|
696
|
+
{
|
|
697
|
+
id: g,
|
|
698
|
+
className: m,
|
|
699
|
+
type: "radio",
|
|
700
|
+
"aria-describedby": c.helperTextId,
|
|
701
|
+
"aria-errormessage": c.errorMessageId,
|
|
702
|
+
"aria-invalid": c.isInvalid ?? !1,
|
|
703
|
+
"aria-required": c.isRequired ?? !1,
|
|
704
|
+
...o
|
|
705
|
+
}
|
|
706
|
+
),
|
|
707
|
+
/* @__PURE__ */ l.jsx(
|
|
708
|
+
"span",
|
|
709
|
+
{
|
|
710
|
+
"aria-hidden": !0,
|
|
711
|
+
className: N(p, y[b], Ce[b])
|
|
712
|
+
}
|
|
713
|
+
),
|
|
714
|
+
/* @__PURE__ */ l.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: i })
|
|
715
|
+
] })
|
|
771
716
|
}
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
717
|
+
);
|
|
718
|
+
};
|
|
719
|
+
_e.displayName = "Radio";
|
|
720
|
+
const We = (s) => {
|
|
721
|
+
const { id: d, className: f, size: b = "lg", children: i, ...o } = s, n = R.useContext(_);
|
|
722
|
+
return n.isRequired && (o.required = !0), /* @__PURE__ */ l.jsxs("div", { className: "inline-block relative", children: [
|
|
723
|
+
/* @__PURE__ */ l.jsx(
|
|
724
|
+
"select",
|
|
725
|
+
{
|
|
726
|
+
id: d || n.id,
|
|
727
|
+
className: N(
|
|
728
|
+
`
|
|
729
|
+
!pr-8
|
|
730
|
+
peer
|
|
731
|
+
cursor-pointer
|
|
732
|
+
appearance-none
|
|
733
|
+
`,
|
|
734
|
+
Re,
|
|
735
|
+
je[b],
|
|
736
|
+
f
|
|
737
|
+
),
|
|
738
|
+
"aria-describedby": n.helperTextId,
|
|
739
|
+
"aria-errormessage": n.errorMessageId,
|
|
740
|
+
"aria-invalid": n.isInvalid ?? !1,
|
|
741
|
+
"aria-required": n.isRequired ?? !1,
|
|
742
|
+
...o,
|
|
743
|
+
children: i
|
|
744
|
+
}
|
|
745
|
+
),
|
|
746
|
+
/* @__PURE__ */ l.jsxs(
|
|
747
|
+
"svg",
|
|
748
|
+
{
|
|
749
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
750
|
+
"aria-hidden": !0,
|
|
751
|
+
className: `
|
|
752
|
+
pointer-events-none
|
|
753
|
+
absolute
|
|
754
|
+
right-4
|
|
755
|
+
top-1/2
|
|
756
|
+
-translate-y-1/2
|
|
757
|
+
text-solid-gray-900
|
|
758
|
+
peer-disabled:text-solid-gray-500
|
|
759
|
+
`,
|
|
760
|
+
fill: "none",
|
|
761
|
+
width: "16",
|
|
762
|
+
height: "16",
|
|
763
|
+
viewBox: "0 0 16 16",
|
|
764
|
+
children: [
|
|
765
|
+
/* @__PURE__ */ l.jsx("title", { children: "arrow down" }),
|
|
766
|
+
/* @__PURE__ */ l.jsx(
|
|
767
|
+
"path",
|
|
768
|
+
{
|
|
769
|
+
d: "M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z",
|
|
770
|
+
fill: "currentColor"
|
|
771
|
+
}
|
|
772
|
+
)
|
|
773
|
+
]
|
|
774
|
+
}
|
|
775
|
+
)
|
|
776
|
+
] });
|
|
777
|
+
};
|
|
778
|
+
We.displayName = "Select";
|
|
779
|
+
const Be = (s) => {
|
|
780
|
+
const { id: d, className: f, size: b = "lg", ...i } = s, o = R.useContext(_);
|
|
781
|
+
o.isRequired && (i.required = !0);
|
|
782
|
+
const n = `
|
|
783
|
+
file:mr-2
|
|
784
|
+
file:inline-block
|
|
785
|
+
file:text-button
|
|
786
|
+
file:text-center
|
|
787
|
+
file:cursor-pointer
|
|
788
|
+
file:select-none
|
|
789
|
+
file:touch-manipulation
|
|
790
|
+
file:whitespace-nowrap
|
|
791
|
+
file:border
|
|
792
|
+
file:border-solid
|
|
793
|
+
file:border-blue-900
|
|
794
|
+
file:hover:border-blue-1000
|
|
795
|
+
file:active:border-blue-1200
|
|
796
|
+
file:disabled:border-solid-gray-500
|
|
797
|
+
file:disabled:cursor-not-allowed
|
|
798
|
+
`, g = `
|
|
799
|
+
file:text-blue-900
|
|
800
|
+
file:hover:text-blue-1000
|
|
801
|
+
file:active:text-blue-1200
|
|
802
|
+
file:bg-transparent
|
|
803
|
+
file:hover:bg-blue-200
|
|
804
|
+
file:active:bg-blue-300
|
|
805
|
+
file:disabled:text-solid-gray-500
|
|
806
|
+
file:disabled:bg-transparent
|
|
807
|
+
`, c = `
|
|
808
|
+
text-label
|
|
809
|
+
text-solid-gray-900
|
|
810
|
+
rounded-lg
|
|
811
|
+
outline-offset-2
|
|
812
|
+
aria-invalid:text-red-800
|
|
813
|
+
${k.hoverUnderline}
|
|
814
|
+
${k.focusRounded}
|
|
815
|
+
`, m = {
|
|
816
|
+
// 16(p-4) * 2 + 22(text-button * leading-snug) + boader * 2 = 56px
|
|
817
|
+
lg: `
|
|
818
|
+
file:p-4
|
|
819
|
+
file:text-button
|
|
820
|
+
file:rounded-lg
|
|
821
|
+
file:leading-snug
|
|
822
|
+
`,
|
|
823
|
+
// 12(py-3) * 2 + 22(text-button * leading-snug) + boader * 2 = 48px
|
|
824
|
+
md: `
|
|
825
|
+
file:px-4
|
|
826
|
+
file:py-3
|
|
827
|
+
file:text-button
|
|
828
|
+
file:rounded-lg
|
|
829
|
+
file:leading-snug
|
|
830
|
+
`,
|
|
831
|
+
// 8(py-2) * 2 + 22(text-button * leading-snug) + boader * 2 = 40px
|
|
832
|
+
sm: `
|
|
833
|
+
file:px-3
|
|
834
|
+
file:py-2
|
|
835
|
+
file:text-button
|
|
836
|
+
file:rounded-md
|
|
837
|
+
file:leading-snug
|
|
838
|
+
`
|
|
839
|
+
};
|
|
840
|
+
return /* @__PURE__ */ l.jsx(
|
|
841
|
+
"input",
|
|
842
|
+
{
|
|
843
|
+
type: "file",
|
|
844
|
+
id: d || o.id,
|
|
845
|
+
className: N(n, g, m[b], c, f),
|
|
846
|
+
"aria-describedby": o.helperTextId,
|
|
847
|
+
"aria-errormessage": o.errorMessageId,
|
|
848
|
+
"aria-invalid": o.isInvalid ?? !1,
|
|
849
|
+
"aria-required": o.isRequired ?? !1,
|
|
850
|
+
role: "button",
|
|
851
|
+
"aria-label": "File Upload",
|
|
852
|
+
...i
|
|
807
853
|
}
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
854
|
+
);
|
|
855
|
+
};
|
|
856
|
+
Be.displayName = "FileInput";
|
|
857
|
+
const Ue = (s) => {
|
|
858
|
+
const { id: d, className: f, size: b = "lg", ...i } = s, o = R.useContext(_);
|
|
859
|
+
return o.isRequired && (i.required = !0), /* @__PURE__ */ l.jsx(
|
|
860
|
+
"input",
|
|
861
|
+
{
|
|
862
|
+
type: "text",
|
|
863
|
+
id: d || o.id,
|
|
864
|
+
className: N(
|
|
865
|
+
Re,
|
|
866
|
+
je[b],
|
|
867
|
+
f
|
|
868
|
+
),
|
|
869
|
+
"aria-describedby": o.helperTextId,
|
|
870
|
+
"aria-errormessage": o.errorMessageId,
|
|
871
|
+
"aria-invalid": o.isInvalid ?? !1,
|
|
872
|
+
"aria-required": o.isRequired ?? !1,
|
|
873
|
+
...i
|
|
815
874
|
}
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
}), O;
|
|
826
|
-
}
|
|
827
|
-
function pe(n) {
|
|
828
|
-
if (n._status === -1) {
|
|
829
|
-
var s = n._result;
|
|
830
|
-
s = s(), s.then(function(S) {
|
|
831
|
-
(n._status === 0 || n._status === -1) && (n._status = 1, n._result = S);
|
|
832
|
-
}, function(S) {
|
|
833
|
-
(n._status === 0 || n._status === -1) && (n._status = 2, n._result = S);
|
|
834
|
-
}), n._status === -1 && (n._status = 0, n._result = s);
|
|
835
|
-
}
|
|
836
|
-
if (n._status === 1) return n._result.default;
|
|
837
|
-
throw n._result;
|
|
838
|
-
}
|
|
839
|
-
var y = { current: null }, ve = { transition: null }, Ie = { ReactCurrentDispatcher: y, ReactCurrentBatchConfig: ve, ReactCurrentOwner: ie };
|
|
840
|
-
function be() {
|
|
841
|
-
throw Error("act(...) is not supported in production builds of React.");
|
|
842
|
-
}
|
|
843
|
-
return w.Children = { map: re, forEach: function(n, s, S) {
|
|
844
|
-
re(n, function() {
|
|
845
|
-
s.apply(this, arguments);
|
|
846
|
-
}, S);
|
|
847
|
-
}, count: function(n) {
|
|
848
|
-
var s = 0;
|
|
849
|
-
return re(n, function() {
|
|
850
|
-
s++;
|
|
851
|
-
}), s;
|
|
852
|
-
}, toArray: function(n) {
|
|
853
|
-
return re(n, function(s) {
|
|
854
|
-
return s;
|
|
855
|
-
}) || [];
|
|
856
|
-
}, only: function(n) {
|
|
857
|
-
if (!Pe(n)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
858
|
-
return n;
|
|
859
|
-
} }, w.Component = ce, w.Fragment = k, w.Profiler = P, w.PureComponent = Y, w.StrictMode = I, w.Suspense = p, w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ie, w.act = be, w.cloneElement = function(n, s, S) {
|
|
860
|
-
if (n == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + n + ".");
|
|
861
|
-
var O = ee({}, n.props), $ = n.key, U = n.ref, q = n._owner;
|
|
862
|
-
if (s != null) {
|
|
863
|
-
if (s.ref !== void 0 && (U = s.ref, q = ie.current), s.key !== void 0 && ($ = "" + s.key), n.type && n.type.defaultProps) var M = n.type.defaultProps;
|
|
864
|
-
for (F in s) X.call(s, F) && !ye.hasOwnProperty(F) && (O[F] = s[F] === void 0 && M !== void 0 ? M[F] : s[F]);
|
|
865
|
-
}
|
|
866
|
-
var F = arguments.length - 2;
|
|
867
|
-
if (F === 1) O.children = S;
|
|
868
|
-
else if (1 < F) {
|
|
869
|
-
M = Array(F);
|
|
870
|
-
for (var Z = 0; Z < F; Z++) M[Z] = arguments[Z + 2];
|
|
871
|
-
O.children = M;
|
|
872
|
-
}
|
|
873
|
-
return { $$typeof: d, type: n.type, key: $, ref: U, props: O, _owner: q };
|
|
874
|
-
}, w.createContext = function(n) {
|
|
875
|
-
return n = { $$typeof: v, _currentValue: n, _currentValue2: n, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, n.Provider = { $$typeof: C, _context: n }, n.Consumer = n;
|
|
876
|
-
}, w.createElement = he, w.createFactory = function(n) {
|
|
877
|
-
var s = he.bind(null, n);
|
|
878
|
-
return s.type = n, s;
|
|
879
|
-
}, w.createRef = function() {
|
|
880
|
-
return { current: null };
|
|
881
|
-
}, w.forwardRef = function(n) {
|
|
882
|
-
return { $$typeof: g, render: n };
|
|
883
|
-
}, w.isValidElement = Pe, w.lazy = function(n) {
|
|
884
|
-
return { $$typeof: E, _payload: { _status: -1, _result: n }, _init: pe };
|
|
885
|
-
}, w.memo = function(n, s) {
|
|
886
|
-
return { $$typeof: D, type: n, compare: s === void 0 ? null : s };
|
|
887
|
-
}, w.startTransition = function(n) {
|
|
888
|
-
var s = ve.transition;
|
|
889
|
-
ve.transition = {};
|
|
890
|
-
try {
|
|
891
|
-
n();
|
|
892
|
-
} finally {
|
|
893
|
-
ve.transition = s;
|
|
894
|
-
}
|
|
895
|
-
}, w.unstable_act = be, w.useCallback = function(n, s) {
|
|
896
|
-
return y.current.useCallback(n, s);
|
|
897
|
-
}, w.useContext = function(n) {
|
|
898
|
-
return y.current.useContext(n);
|
|
899
|
-
}, w.useDebugValue = function() {
|
|
900
|
-
}, w.useDeferredValue = function(n) {
|
|
901
|
-
return y.current.useDeferredValue(n);
|
|
902
|
-
}, w.useEffect = function(n, s) {
|
|
903
|
-
return y.current.useEffect(n, s);
|
|
904
|
-
}, w.useId = function() {
|
|
905
|
-
return y.current.useId();
|
|
906
|
-
}, w.useImperativeHandle = function(n, s, S) {
|
|
907
|
-
return y.current.useImperativeHandle(n, s, S);
|
|
908
|
-
}, w.useInsertionEffect = function(n, s) {
|
|
909
|
-
return y.current.useInsertionEffect(n, s);
|
|
910
|
-
}, w.useLayoutEffect = function(n, s) {
|
|
911
|
-
return y.current.useLayoutEffect(n, s);
|
|
912
|
-
}, w.useMemo = function(n, s) {
|
|
913
|
-
return y.current.useMemo(n, s);
|
|
914
|
-
}, w.useReducer = function(n, s, S) {
|
|
915
|
-
return y.current.useReducer(n, s, S);
|
|
916
|
-
}, w.useRef = function(n) {
|
|
917
|
-
return y.current.useRef(n);
|
|
918
|
-
}, w.useState = function(n) {
|
|
919
|
-
return y.current.useState(n);
|
|
920
|
-
}, w.useSyncExternalStore = function(n, s, S) {
|
|
921
|
-
return y.current.useSyncExternalStore(n, s, S);
|
|
922
|
-
}, w.useTransition = function() {
|
|
923
|
-
return y.current.useTransition();
|
|
924
|
-
}, w.version = "18.3.1", w;
|
|
925
|
-
}
|
|
926
|
-
var wr = { exports: {} };
|
|
927
|
-
/**
|
|
928
|
-
* @license React
|
|
929
|
-
* react.development.js
|
|
930
|
-
*
|
|
931
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
932
|
-
*
|
|
933
|
-
* This source code is licensed under the MIT license found in the
|
|
934
|
-
* LICENSE file in the root directory of this source tree.
|
|
935
|
-
*/
|
|
936
|
-
wr.exports;
|
|
937
|
-
var wt;
|
|
938
|
-
function nn() {
|
|
939
|
-
return wt || (wt = 1, function(d, c) {
|
|
940
|
-
process.env.NODE_ENV !== "production" && function() {
|
|
941
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
942
|
-
var k = "18.3.1", I = Symbol.for("react.element"), P = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), D = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), J = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), ee = Symbol.for("react.lazy"), qe = Symbol.for("react.offscreen"), ce = Symbol.iterator, fe = "@@iterator";
|
|
943
|
-
function Y(e) {
|
|
944
|
-
if (e === null || typeof e != "object")
|
|
945
|
-
return null;
|
|
946
|
-
var r = ce && e[ce] || e[fe];
|
|
947
|
-
return typeof r == "function" ? r : null;
|
|
948
|
-
}
|
|
949
|
-
var xe = {
|
|
950
|
-
/**
|
|
951
|
-
* @internal
|
|
952
|
-
* @type {ReactComponent}
|
|
953
|
-
*/
|
|
954
|
-
current: null
|
|
955
|
-
}, de = {
|
|
956
|
-
transition: null
|
|
957
|
-
}, X = {
|
|
958
|
-
current: null,
|
|
959
|
-
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
960
|
-
isBatchingLegacy: !1,
|
|
961
|
-
didScheduleLegacyUpdate: !1
|
|
962
|
-
}, ie = {
|
|
963
|
-
/**
|
|
964
|
-
* @internal
|
|
965
|
-
* @type {ReactComponent}
|
|
966
|
-
*/
|
|
967
|
-
current: null
|
|
968
|
-
}, ye = {}, he = null;
|
|
969
|
-
function Oe(e) {
|
|
970
|
-
he = e;
|
|
971
|
-
}
|
|
972
|
-
ye.setExtraStackFrame = function(e) {
|
|
973
|
-
he = e;
|
|
974
|
-
}, ye.getCurrentStack = null, ye.getStackAddendum = function() {
|
|
975
|
-
var e = "";
|
|
976
|
-
he && (e += he);
|
|
977
|
-
var r = ye.getCurrentStack;
|
|
978
|
-
return r && (e += r() || ""), e;
|
|
979
|
-
};
|
|
980
|
-
var Pe = !1, Ge = !1, Te = !1, oe = !1, se = !1, re = {
|
|
981
|
-
ReactCurrentDispatcher: xe,
|
|
982
|
-
ReactCurrentBatchConfig: de,
|
|
983
|
-
ReactCurrentOwner: ie
|
|
984
|
-
};
|
|
985
|
-
re.ReactDebugCurrentFrame = ye, re.ReactCurrentActQueue = X;
|
|
986
|
-
function pe(e) {
|
|
987
|
-
{
|
|
988
|
-
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
989
|
-
o[a - 1] = arguments[a];
|
|
990
|
-
ve("warn", e, o);
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
function y(e) {
|
|
994
|
-
{
|
|
995
|
-
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
996
|
-
o[a - 1] = arguments[a];
|
|
997
|
-
ve("error", e, o);
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
function ve(e, r, o) {
|
|
1001
|
-
{
|
|
1002
|
-
var a = re.ReactDebugCurrentFrame, l = a.getStackAddendum();
|
|
1003
|
-
l !== "" && (r += "%s", o = o.concat([l]));
|
|
1004
|
-
var h = o.map(function(f) {
|
|
1005
|
-
return String(f);
|
|
1006
|
-
});
|
|
1007
|
-
h.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, h);
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
var Ie = {};
|
|
1011
|
-
function be(e, r) {
|
|
1012
|
-
{
|
|
1013
|
-
var o = e.constructor, a = o && (o.displayName || o.name) || "ReactClass", l = a + "." + r;
|
|
1014
|
-
if (Ie[l])
|
|
1015
|
-
return;
|
|
1016
|
-
y("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", r, a), Ie[l] = !0;
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
var n = {
|
|
1020
|
-
/**
|
|
1021
|
-
* Checks whether or not this composite component is mounted.
|
|
1022
|
-
* @param {ReactClass} publicInstance The instance we want to test.
|
|
1023
|
-
* @return {boolean} True if mounted, false otherwise.
|
|
1024
|
-
* @protected
|
|
1025
|
-
* @final
|
|
1026
|
-
*/
|
|
1027
|
-
isMounted: function(e) {
|
|
1028
|
-
return !1;
|
|
1029
|
-
},
|
|
1030
|
-
/**
|
|
1031
|
-
* Forces an update. This should only be invoked when it is known with
|
|
1032
|
-
* certainty that we are **not** in a DOM transaction.
|
|
1033
|
-
*
|
|
1034
|
-
* You may want to call this when you know that some deeper aspect of the
|
|
1035
|
-
* component's state has changed but `setState` was not called.
|
|
1036
|
-
*
|
|
1037
|
-
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
1038
|
-
* `componentWillUpdate` and `componentDidUpdate`.
|
|
1039
|
-
*
|
|
1040
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
1041
|
-
* @param {?function} callback Called after component is updated.
|
|
1042
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
1043
|
-
* @internal
|
|
1044
|
-
*/
|
|
1045
|
-
enqueueForceUpdate: function(e, r, o) {
|
|
1046
|
-
be(e, "forceUpdate");
|
|
1047
|
-
},
|
|
1048
|
-
/**
|
|
1049
|
-
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
1050
|
-
* You should treat `this.state` as immutable.
|
|
1051
|
-
*
|
|
1052
|
-
* There is no guarantee that `this.state` will be immediately updated, so
|
|
1053
|
-
* accessing `this.state` after calling this method may return the old value.
|
|
1054
|
-
*
|
|
1055
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
1056
|
-
* @param {object} completeState Next state.
|
|
1057
|
-
* @param {?function} callback Called after component is updated.
|
|
1058
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
1059
|
-
* @internal
|
|
1060
|
-
*/
|
|
1061
|
-
enqueueReplaceState: function(e, r, o, a) {
|
|
1062
|
-
be(e, "replaceState");
|
|
1063
|
-
},
|
|
1064
|
-
/**
|
|
1065
|
-
* Sets a subset of the state. This only exists because _pendingState is
|
|
1066
|
-
* internal. This provides a merging strategy that is not available to deep
|
|
1067
|
-
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
1068
|
-
* during the merge.
|
|
1069
|
-
*
|
|
1070
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
1071
|
-
* @param {object} partialState Next partial state to be merged with state.
|
|
1072
|
-
* @param {?function} callback Called after component is updated.
|
|
1073
|
-
* @param {?string} Name of the calling function in the public API.
|
|
1074
|
-
* @internal
|
|
1075
|
-
*/
|
|
1076
|
-
enqueueSetState: function(e, r, o, a) {
|
|
1077
|
-
be(e, "setState");
|
|
1078
|
-
}
|
|
1079
|
-
}, s = Object.assign, S = {};
|
|
1080
|
-
Object.freeze(S);
|
|
1081
|
-
function O(e, r, o) {
|
|
1082
|
-
this.props = e, this.context = r, this.refs = S, this.updater = o || n;
|
|
1083
|
-
}
|
|
1084
|
-
O.prototype.isReactComponent = {}, O.prototype.setState = function(e, r) {
|
|
1085
|
-
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
1086
|
-
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
1087
|
-
this.updater.enqueueSetState(this, e, r, "setState");
|
|
1088
|
-
}, O.prototype.forceUpdate = function(e) {
|
|
1089
|
-
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1090
|
-
};
|
|
1091
|
-
{
|
|
1092
|
-
var $ = {
|
|
1093
|
-
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
1094
|
-
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
1095
|
-
}, U = function(e, r) {
|
|
1096
|
-
Object.defineProperty(O.prototype, e, {
|
|
1097
|
-
get: function() {
|
|
1098
|
-
pe("%s(...) is deprecated in plain JavaScript React classes. %s", r[0], r[1]);
|
|
1099
|
-
}
|
|
1100
|
-
});
|
|
1101
|
-
};
|
|
1102
|
-
for (var q in $)
|
|
1103
|
-
$.hasOwnProperty(q) && U(q, $[q]);
|
|
1104
|
-
}
|
|
1105
|
-
function M() {
|
|
1106
|
-
}
|
|
1107
|
-
M.prototype = O.prototype;
|
|
1108
|
-
function F(e, r, o) {
|
|
1109
|
-
this.props = e, this.context = r, this.refs = S, this.updater = o || n;
|
|
1110
|
-
}
|
|
1111
|
-
var Z = F.prototype = new M();
|
|
1112
|
-
Z.constructor = F, s(Z, O.prototype), Z.isPureReactComponent = !0;
|
|
1113
|
-
function Er() {
|
|
1114
|
-
var e = {
|
|
1115
|
-
current: null
|
|
1116
|
-
};
|
|
1117
|
-
return Object.seal(e), e;
|
|
1118
|
-
}
|
|
1119
|
-
var tr = Array.isArray;
|
|
1120
|
-
function Ve(e) {
|
|
1121
|
-
return tr(e);
|
|
1122
|
-
}
|
|
1123
|
-
function Sr(e) {
|
|
1124
|
-
{
|
|
1125
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, o = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
1126
|
-
return o;
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
function Ue(e) {
|
|
1130
|
-
try {
|
|
1131
|
-
return Re(e), !1;
|
|
1132
|
-
} catch {
|
|
1133
|
-
return !0;
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
function Re(e) {
|
|
1137
|
-
return "" + e;
|
|
1138
|
-
}
|
|
1139
|
-
function $e(e) {
|
|
1140
|
-
if (Ue(e))
|
|
1141
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Sr(e)), Re(e);
|
|
1142
|
-
}
|
|
1143
|
-
function nr(e, r, o) {
|
|
1144
|
-
var a = e.displayName;
|
|
1145
|
-
if (a)
|
|
1146
|
-
return a;
|
|
1147
|
-
var l = r.displayName || r.name || "";
|
|
1148
|
-
return l !== "" ? o + "(" + l + ")" : o;
|
|
1149
|
-
}
|
|
1150
|
-
function Ne(e) {
|
|
1151
|
-
return e.displayName || "Context";
|
|
1152
|
-
}
|
|
1153
|
-
function me(e) {
|
|
1154
|
-
if (e == null)
|
|
1155
|
-
return null;
|
|
1156
|
-
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
1157
|
-
return e.displayName || e.name || null;
|
|
1158
|
-
if (typeof e == "string")
|
|
1159
|
-
return e;
|
|
1160
|
-
switch (e) {
|
|
1161
|
-
case C:
|
|
1162
|
-
return "Fragment";
|
|
1163
|
-
case P:
|
|
1164
|
-
return "Portal";
|
|
1165
|
-
case g:
|
|
1166
|
-
return "Profiler";
|
|
1167
|
-
case v:
|
|
1168
|
-
return "StrictMode";
|
|
1169
|
-
case x:
|
|
1170
|
-
return "Suspense";
|
|
1171
|
-
case J:
|
|
1172
|
-
return "SuspenseList";
|
|
1173
|
-
}
|
|
1174
|
-
if (typeof e == "object")
|
|
1175
|
-
switch (e.$$typeof) {
|
|
1176
|
-
case D:
|
|
1177
|
-
var r = e;
|
|
1178
|
-
return Ne(r) + ".Consumer";
|
|
1179
|
-
case p:
|
|
1180
|
-
var o = e;
|
|
1181
|
-
return Ne(o._context) + ".Provider";
|
|
1182
|
-
case E:
|
|
1183
|
-
return nr(e, e.render, "ForwardRef");
|
|
1184
|
-
case L:
|
|
1185
|
-
var a = e.displayName || null;
|
|
1186
|
-
return a !== null ? a : me(e.type) || "Memo";
|
|
1187
|
-
case ee: {
|
|
1188
|
-
var l = e, h = l._payload, f = l._init;
|
|
1189
|
-
try {
|
|
1190
|
-
return me(f(h));
|
|
1191
|
-
} catch {
|
|
1192
|
-
return null;
|
|
1193
|
-
}
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
return null;
|
|
1197
|
-
}
|
|
1198
|
-
var De = Object.prototype.hasOwnProperty, We = {
|
|
1199
|
-
key: !0,
|
|
1200
|
-
ref: !0,
|
|
1201
|
-
__self: !0,
|
|
1202
|
-
__source: !0
|
|
1203
|
-
}, or, ar, ze;
|
|
1204
|
-
ze = {};
|
|
1205
|
-
function Je(e) {
|
|
1206
|
-
if (De.call(e, "ref")) {
|
|
1207
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
1208
|
-
if (r && r.isReactWarning)
|
|
1209
|
-
return !1;
|
|
1210
|
-
}
|
|
1211
|
-
return e.ref !== void 0;
|
|
1212
|
-
}
|
|
1213
|
-
function we(e) {
|
|
1214
|
-
if (De.call(e, "key")) {
|
|
1215
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
1216
|
-
if (r && r.isReactWarning)
|
|
1217
|
-
return !1;
|
|
1218
|
-
}
|
|
1219
|
-
return e.key !== void 0;
|
|
1220
|
-
}
|
|
1221
|
-
function Cr(e, r) {
|
|
1222
|
-
var o = function() {
|
|
1223
|
-
or || (or = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
1224
|
-
};
|
|
1225
|
-
o.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
1226
|
-
get: o,
|
|
1227
|
-
configurable: !0
|
|
1228
|
-
});
|
|
1229
|
-
}
|
|
1230
|
-
function ir(e, r) {
|
|
1231
|
-
var o = function() {
|
|
1232
|
-
ar || (ar = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
1233
|
-
};
|
|
1234
|
-
o.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
1235
|
-
get: o,
|
|
1236
|
-
configurable: !0
|
|
1237
|
-
});
|
|
1238
|
-
}
|
|
1239
|
-
function sr(e) {
|
|
1240
|
-
if (typeof e.ref == "string" && ie.current && e.__self && ie.current.stateNode !== e.__self) {
|
|
1241
|
-
var r = me(ie.current.type);
|
|
1242
|
-
ze[r] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', r, e.ref), ze[r] = !0);
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
var Fe = function(e, r, o, a, l, h, f) {
|
|
1246
|
-
var _ = {
|
|
1247
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
1248
|
-
$$typeof: I,
|
|
1249
|
-
// Built-in properties that belong on the element
|
|
1250
|
-
type: e,
|
|
1251
|
-
key: r,
|
|
1252
|
-
ref: o,
|
|
1253
|
-
props: f,
|
|
1254
|
-
// Record the component responsible for creating this element.
|
|
1255
|
-
_owner: h
|
|
1256
|
-
};
|
|
1257
|
-
return _._store = {}, Object.defineProperty(_._store, "validated", {
|
|
1258
|
-
configurable: !1,
|
|
1259
|
-
enumerable: !1,
|
|
1260
|
-
writable: !0,
|
|
1261
|
-
value: !1
|
|
1262
|
-
}), Object.defineProperty(_, "_self", {
|
|
1263
|
-
configurable: !1,
|
|
1264
|
-
enumerable: !1,
|
|
1265
|
-
writable: !1,
|
|
1266
|
-
value: a
|
|
1267
|
-
}), Object.defineProperty(_, "_source", {
|
|
1268
|
-
configurable: !1,
|
|
1269
|
-
enumerable: !1,
|
|
1270
|
-
writable: !1,
|
|
1271
|
-
value: l
|
|
1272
|
-
}), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
|
|
1273
|
-
};
|
|
1274
|
-
function jr(e, r, o) {
|
|
1275
|
-
var a, l = {}, h = null, f = null, _ = null, T = null;
|
|
1276
|
-
if (r != null) {
|
|
1277
|
-
Je(r) && (f = r.ref, sr(r)), we(r) && ($e(r.key), h = "" + r.key), _ = r.__self === void 0 ? null : r.__self, T = r.__source === void 0 ? null : r.__source;
|
|
1278
|
-
for (a in r)
|
|
1279
|
-
De.call(r, a) && !We.hasOwnProperty(a) && (l[a] = r[a]);
|
|
1280
|
-
}
|
|
1281
|
-
var V = arguments.length - 2;
|
|
1282
|
-
if (V === 1)
|
|
1283
|
-
l.children = o;
|
|
1284
|
-
else if (V > 1) {
|
|
1285
|
-
for (var W = Array(V), z = 0; z < V; z++)
|
|
1286
|
-
W[z] = arguments[z + 2];
|
|
1287
|
-
Object.freeze && Object.freeze(W), l.children = W;
|
|
1288
|
-
}
|
|
1289
|
-
if (e && e.defaultProps) {
|
|
1290
|
-
var G = e.defaultProps;
|
|
1291
|
-
for (a in G)
|
|
1292
|
-
l[a] === void 0 && (l[a] = G[a]);
|
|
1293
|
-
}
|
|
1294
|
-
if (h || f) {
|
|
1295
|
-
var Q = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
1296
|
-
h && Cr(l, Q), f && ir(l, Q);
|
|
1297
|
-
}
|
|
1298
|
-
return Fe(e, h, f, _, T, ie.current, l);
|
|
1299
|
-
}
|
|
1300
|
-
function kr(e, r) {
|
|
1301
|
-
var o = Fe(e.type, r, e.ref, e._self, e._source, e._owner, e.props);
|
|
1302
|
-
return o;
|
|
1303
|
-
}
|
|
1304
|
-
function Or(e, r, o) {
|
|
1305
|
-
if (e == null)
|
|
1306
|
-
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
|
|
1307
|
-
var a, l = s({}, e.props), h = e.key, f = e.ref, _ = e._self, T = e._source, V = e._owner;
|
|
1308
|
-
if (r != null) {
|
|
1309
|
-
Je(r) && (f = r.ref, V = ie.current), we(r) && ($e(r.key), h = "" + r.key);
|
|
1310
|
-
var W;
|
|
1311
|
-
e.type && e.type.defaultProps && (W = e.type.defaultProps);
|
|
1312
|
-
for (a in r)
|
|
1313
|
-
De.call(r, a) && !We.hasOwnProperty(a) && (r[a] === void 0 && W !== void 0 ? l[a] = W[a] : l[a] = r[a]);
|
|
1314
|
-
}
|
|
1315
|
-
var z = arguments.length - 2;
|
|
1316
|
-
if (z === 1)
|
|
1317
|
-
l.children = o;
|
|
1318
|
-
else if (z > 1) {
|
|
1319
|
-
for (var G = Array(z), Q = 0; Q < z; Q++)
|
|
1320
|
-
G[Q] = arguments[Q + 2];
|
|
1321
|
-
l.children = G;
|
|
1322
|
-
}
|
|
1323
|
-
return Fe(e.type, h, f, _, T, V, l);
|
|
1324
|
-
}
|
|
1325
|
-
function Ee(e) {
|
|
1326
|
-
return typeof e == "object" && e !== null && e.$$typeof === I;
|
|
1327
|
-
}
|
|
1328
|
-
var ur = ".", Pr = ":";
|
|
1329
|
-
function Tr(e) {
|
|
1330
|
-
var r = /[=:]/g, o = {
|
|
1331
|
-
"=": "=0",
|
|
1332
|
-
":": "=2"
|
|
1333
|
-
}, a = e.replace(r, function(l) {
|
|
1334
|
-
return o[l];
|
|
1335
|
-
});
|
|
1336
|
-
return "$" + a;
|
|
1337
|
-
}
|
|
1338
|
-
var Be = !1, lr = /\/+/g;
|
|
1339
|
-
function ge(e) {
|
|
1340
|
-
return e.replace(lr, "$&/");
|
|
1341
|
-
}
|
|
1342
|
-
function Ae(e, r) {
|
|
1343
|
-
return typeof e == "object" && e !== null && e.key != null ? ($e(e.key), Tr("" + e.key)) : r.toString(36);
|
|
1344
|
-
}
|
|
1345
|
-
function Se(e, r, o, a, l) {
|
|
1346
|
-
var h = typeof e;
|
|
1347
|
-
(h === "undefined" || h === "boolean") && (e = null);
|
|
1348
|
-
var f = !1;
|
|
1349
|
-
if (e === null)
|
|
1350
|
-
f = !0;
|
|
1351
|
-
else
|
|
1352
|
-
switch (h) {
|
|
1353
|
-
case "string":
|
|
1354
|
-
case "number":
|
|
1355
|
-
f = !0;
|
|
1356
|
-
break;
|
|
1357
|
-
case "object":
|
|
1358
|
-
switch (e.$$typeof) {
|
|
1359
|
-
case I:
|
|
1360
|
-
case P:
|
|
1361
|
-
f = !0;
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1364
|
-
if (f) {
|
|
1365
|
-
var _ = e, T = l(_), V = a === "" ? ur + Ae(_, 0) : a;
|
|
1366
|
-
if (Ve(T)) {
|
|
1367
|
-
var W = "";
|
|
1368
|
-
V != null && (W = ge(V) + "/"), Se(T, r, W, "", function(Zt) {
|
|
1369
|
-
return Zt;
|
|
1370
|
-
});
|
|
1371
|
-
} else T != null && (Ee(T) && (T.key && (!_ || _.key !== T.key) && $e(T.key), T = kr(
|
|
1372
|
-
T,
|
|
1373
|
-
// Keep both the (mapped) and old keys if they differ, just as
|
|
1374
|
-
// traverseAllChildren used to do for objects as children
|
|
1375
|
-
o + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
1376
|
-
(T.key && (!_ || _.key !== T.key) ? (
|
|
1377
|
-
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
1378
|
-
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
1379
|
-
ge("" + T.key) + "/"
|
|
1380
|
-
) : "") + V
|
|
1381
|
-
)), r.push(T));
|
|
1382
|
-
return 1;
|
|
1383
|
-
}
|
|
1384
|
-
var z, G, Q = 0, ne = a === "" ? ur : a + Pr;
|
|
1385
|
-
if (Ve(e))
|
|
1386
|
-
for (var xr = 0; xr < e.length; xr++)
|
|
1387
|
-
z = e[xr], G = ne + Ae(z, xr), Q += Se(z, r, o, G, l);
|
|
1388
|
-
else {
|
|
1389
|
-
var Yr = Y(e);
|
|
1390
|
-
if (typeof Yr == "function") {
|
|
1391
|
-
var mt = e;
|
|
1392
|
-
Yr === mt.entries && (Be || pe("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Be = !0);
|
|
1393
|
-
for (var Kt = Yr.call(mt), ht, Xt = 0; !(ht = Kt.next()).done; )
|
|
1394
|
-
z = ht.value, G = ne + Ae(z, Xt++), Q += Se(z, r, o, G, l);
|
|
1395
|
-
} else if (h === "object") {
|
|
1396
|
-
var bt = String(e);
|
|
1397
|
-
throw new Error("Objects are not valid as a React child (found: " + (bt === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : bt) + "). If you meant to render a collection of children, use an array instead.");
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
return Q;
|
|
1401
|
-
}
|
|
1402
|
-
function Me(e, r, o) {
|
|
1403
|
-
if (e == null)
|
|
1404
|
-
return e;
|
|
1405
|
-
var a = [], l = 0;
|
|
1406
|
-
return Se(e, a, "", "", function(h) {
|
|
1407
|
-
return r.call(o, h, l++);
|
|
1408
|
-
}), a;
|
|
1409
|
-
}
|
|
1410
|
-
function Ir(e) {
|
|
1411
|
-
var r = 0;
|
|
1412
|
-
return Me(e, function() {
|
|
1413
|
-
r++;
|
|
1414
|
-
}), r;
|
|
1415
|
-
}
|
|
1416
|
-
function cr(e, r, o) {
|
|
1417
|
-
Me(e, function() {
|
|
1418
|
-
r.apply(this, arguments);
|
|
1419
|
-
}, o);
|
|
1420
|
-
}
|
|
1421
|
-
function $r(e) {
|
|
1422
|
-
return Me(e, function(r) {
|
|
1423
|
-
return r;
|
|
1424
|
-
}) || [];
|
|
1425
|
-
}
|
|
1426
|
-
function fr(e) {
|
|
1427
|
-
if (!Ee(e))
|
|
1428
|
-
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
1429
|
-
return e;
|
|
1430
|
-
}
|
|
1431
|
-
function dr(e) {
|
|
1432
|
-
var r = {
|
|
1433
|
-
$$typeof: D,
|
|
1434
|
-
// As a workaround to support multiple concurrent renderers, we categorize
|
|
1435
|
-
// some renderers as primary and others as secondary. We only expect
|
|
1436
|
-
// there to be two concurrent renderers at most: React Native (primary) and
|
|
1437
|
-
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
1438
|
-
// Secondary renderers store their context values on separate fields.
|
|
1439
|
-
_currentValue: e,
|
|
1440
|
-
_currentValue2: e,
|
|
1441
|
-
// Used to track how many concurrent renderers this context currently
|
|
1442
|
-
// supports within in a single renderer. Such as parallel server rendering.
|
|
1443
|
-
_threadCount: 0,
|
|
1444
|
-
// These are circular
|
|
1445
|
-
Provider: null,
|
|
1446
|
-
Consumer: null,
|
|
1447
|
-
// Add these to use same hidden class in VM as ServerContext
|
|
1448
|
-
_defaultValue: null,
|
|
1449
|
-
_globalName: null
|
|
1450
|
-
};
|
|
1451
|
-
r.Provider = {
|
|
1452
|
-
$$typeof: p,
|
|
1453
|
-
_context: r
|
|
1454
|
-
};
|
|
1455
|
-
var o = !1, a = !1, l = !1;
|
|
1456
|
-
{
|
|
1457
|
-
var h = {
|
|
1458
|
-
$$typeof: D,
|
|
1459
|
-
_context: r
|
|
1460
|
-
};
|
|
1461
|
-
Object.defineProperties(h, {
|
|
1462
|
-
Provider: {
|
|
1463
|
-
get: function() {
|
|
1464
|
-
return a || (a = !0, y("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), r.Provider;
|
|
1465
|
-
},
|
|
1466
|
-
set: function(f) {
|
|
1467
|
-
r.Provider = f;
|
|
1468
|
-
}
|
|
1469
|
-
},
|
|
1470
|
-
_currentValue: {
|
|
1471
|
-
get: function() {
|
|
1472
|
-
return r._currentValue;
|
|
1473
|
-
},
|
|
1474
|
-
set: function(f) {
|
|
1475
|
-
r._currentValue = f;
|
|
1476
|
-
}
|
|
1477
|
-
},
|
|
1478
|
-
_currentValue2: {
|
|
1479
|
-
get: function() {
|
|
1480
|
-
return r._currentValue2;
|
|
1481
|
-
},
|
|
1482
|
-
set: function(f) {
|
|
1483
|
-
r._currentValue2 = f;
|
|
1484
|
-
}
|
|
1485
|
-
},
|
|
1486
|
-
_threadCount: {
|
|
1487
|
-
get: function() {
|
|
1488
|
-
return r._threadCount;
|
|
1489
|
-
},
|
|
1490
|
-
set: function(f) {
|
|
1491
|
-
r._threadCount = f;
|
|
1492
|
-
}
|
|
1493
|
-
},
|
|
1494
|
-
Consumer: {
|
|
1495
|
-
get: function() {
|
|
1496
|
-
return o || (o = !0, y("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), r.Consumer;
|
|
1497
|
-
}
|
|
1498
|
-
},
|
|
1499
|
-
displayName: {
|
|
1500
|
-
get: function() {
|
|
1501
|
-
return r.displayName;
|
|
1502
|
-
},
|
|
1503
|
-
set: function(f) {
|
|
1504
|
-
l || (pe("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", f), l = !0);
|
|
1505
|
-
}
|
|
1506
|
-
}
|
|
1507
|
-
}), r.Consumer = h;
|
|
1508
|
-
}
|
|
1509
|
-
return r._currentRenderer = null, r._currentRenderer2 = null, r;
|
|
1510
|
-
}
|
|
1511
|
-
var Le = -1, Ke = 0, Xe = 1, pr = 2;
|
|
1512
|
-
function Nr(e) {
|
|
1513
|
-
if (e._status === Le) {
|
|
1514
|
-
var r = e._result, o = r();
|
|
1515
|
-
if (o.then(function(h) {
|
|
1516
|
-
if (e._status === Ke || e._status === Le) {
|
|
1517
|
-
var f = e;
|
|
1518
|
-
f._status = Xe, f._result = h;
|
|
1519
|
-
}
|
|
1520
|
-
}, function(h) {
|
|
1521
|
-
if (e._status === Ke || e._status === Le) {
|
|
1522
|
-
var f = e;
|
|
1523
|
-
f._status = pr, f._result = h;
|
|
1524
|
-
}
|
|
1525
|
-
}), e._status === Le) {
|
|
1526
|
-
var a = e;
|
|
1527
|
-
a._status = Ke, a._result = o;
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
if (e._status === Xe) {
|
|
1531
|
-
var l = e._result;
|
|
1532
|
-
return l === void 0 && y(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1533
|
-
|
|
1534
|
-
Your code should look like:
|
|
1535
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
1536
|
-
|
|
1537
|
-
Did you accidentally put curly braces around the import?`, l), "default" in l || y(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1538
|
-
|
|
1539
|
-
Your code should look like:
|
|
1540
|
-
const MyComponent = lazy(() => import('./MyComponent'))`, l), l.default;
|
|
1541
|
-
} else
|
|
1542
|
-
throw e._result;
|
|
1543
|
-
}
|
|
1544
|
-
function Dr(e) {
|
|
1545
|
-
var r = {
|
|
1546
|
-
// We use these fields to store the result.
|
|
1547
|
-
_status: Le,
|
|
1548
|
-
_result: e
|
|
1549
|
-
}, o = {
|
|
1550
|
-
$$typeof: ee,
|
|
1551
|
-
_payload: r,
|
|
1552
|
-
_init: Nr
|
|
1553
|
-
};
|
|
1554
|
-
{
|
|
1555
|
-
var a, l;
|
|
1556
|
-
Object.defineProperties(o, {
|
|
1557
|
-
defaultProps: {
|
|
1558
|
-
configurable: !0,
|
|
1559
|
-
get: function() {
|
|
1560
|
-
return a;
|
|
1561
|
-
},
|
|
1562
|
-
set: function(h) {
|
|
1563
|
-
y("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), a = h, Object.defineProperty(o, "defaultProps", {
|
|
1564
|
-
enumerable: !0
|
|
1565
|
-
});
|
|
1566
|
-
}
|
|
1567
|
-
},
|
|
1568
|
-
propTypes: {
|
|
1569
|
-
configurable: !0,
|
|
1570
|
-
get: function() {
|
|
1571
|
-
return l;
|
|
1572
|
-
},
|
|
1573
|
-
set: function(h) {
|
|
1574
|
-
y("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), l = h, Object.defineProperty(o, "propTypes", {
|
|
1575
|
-
enumerable: !0
|
|
1576
|
-
});
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
});
|
|
1580
|
-
}
|
|
1581
|
-
return o;
|
|
1582
|
-
}
|
|
1583
|
-
function Fr(e) {
|
|
1584
|
-
e != null && e.$$typeof === L ? y("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? y("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && y("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && y("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
1585
|
-
var r = {
|
|
1586
|
-
$$typeof: E,
|
|
1587
|
-
render: e
|
|
1588
|
-
};
|
|
1589
|
-
{
|
|
1590
|
-
var o;
|
|
1591
|
-
Object.defineProperty(r, "displayName", {
|
|
1592
|
-
enumerable: !1,
|
|
1593
|
-
configurable: !0,
|
|
1594
|
-
get: function() {
|
|
1595
|
-
return o;
|
|
1596
|
-
},
|
|
1597
|
-
set: function(a) {
|
|
1598
|
-
o = a, !e.name && !e.displayName && (e.displayName = a);
|
|
1599
|
-
}
|
|
1600
|
-
});
|
|
1601
|
-
}
|
|
1602
|
-
return r;
|
|
1603
|
-
}
|
|
1604
|
-
var yr;
|
|
1605
|
-
yr = Symbol.for("react.module.reference");
|
|
1606
|
-
function t(e) {
|
|
1607
|
-
return !!(typeof e == "string" || typeof e == "function" || e === C || e === g || se || e === v || e === x || e === J || oe || e === qe || Pe || Ge || Te || typeof e == "object" && e !== null && (e.$$typeof === ee || e.$$typeof === L || e.$$typeof === p || e.$$typeof === D || e.$$typeof === E || // This needs to include all possible module reference object
|
|
1608
|
-
// types supported by any Flight configuration anywhere since
|
|
1609
|
-
// we don't know which Flight build this will end up being used
|
|
1610
|
-
// with.
|
|
1611
|
-
e.$$typeof === yr || e.getModuleId !== void 0));
|
|
1612
|
-
}
|
|
1613
|
-
function i(e, r) {
|
|
1614
|
-
t(e) || y("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
|
|
1615
|
-
var o = {
|
|
1616
|
-
$$typeof: L,
|
|
1617
|
-
type: e,
|
|
1618
|
-
compare: r === void 0 ? null : r
|
|
1619
|
-
};
|
|
1620
|
-
{
|
|
1621
|
-
var a;
|
|
1622
|
-
Object.defineProperty(o, "displayName", {
|
|
1623
|
-
enumerable: !1,
|
|
1624
|
-
configurable: !0,
|
|
1625
|
-
get: function() {
|
|
1626
|
-
return a;
|
|
1627
|
-
},
|
|
1628
|
-
set: function(l) {
|
|
1629
|
-
a = l, !e.name && !e.displayName && (e.displayName = l);
|
|
1630
|
-
}
|
|
1631
|
-
});
|
|
1632
|
-
}
|
|
1633
|
-
return o;
|
|
1634
|
-
}
|
|
1635
|
-
function u() {
|
|
1636
|
-
var e = xe.current;
|
|
1637
|
-
return e === null && y(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
1638
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
1639
|
-
2. You might be breaking the Rules of Hooks
|
|
1640
|
-
3. You might have more than one copy of React in the same app
|
|
1641
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), e;
|
|
1642
|
-
}
|
|
1643
|
-
function m(e) {
|
|
1644
|
-
var r = u();
|
|
1645
|
-
if (e._context !== void 0) {
|
|
1646
|
-
var o = e._context;
|
|
1647
|
-
o.Consumer === e ? y("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : o.Provider === e && y("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
1648
|
-
}
|
|
1649
|
-
return r.useContext(e);
|
|
1650
|
-
}
|
|
1651
|
-
function N(e) {
|
|
1652
|
-
var r = u();
|
|
1653
|
-
return r.useState(e);
|
|
1654
|
-
}
|
|
1655
|
-
function A(e, r, o) {
|
|
1656
|
-
var a = u();
|
|
1657
|
-
return a.useReducer(e, r, o);
|
|
1658
|
-
}
|
|
1659
|
-
function j(e) {
|
|
1660
|
-
var r = u();
|
|
1661
|
-
return r.useRef(e);
|
|
1662
|
-
}
|
|
1663
|
-
function R(e, r) {
|
|
1664
|
-
var o = u();
|
|
1665
|
-
return o.useEffect(e, r);
|
|
1666
|
-
}
|
|
1667
|
-
function te(e, r) {
|
|
1668
|
-
var o = u();
|
|
1669
|
-
return o.useInsertionEffect(e, r);
|
|
1670
|
-
}
|
|
1671
|
-
function H(e, r) {
|
|
1672
|
-
var o = u();
|
|
1673
|
-
return o.useLayoutEffect(e, r);
|
|
1674
|
-
}
|
|
1675
|
-
function K(e, r) {
|
|
1676
|
-
var o = u();
|
|
1677
|
-
return o.useCallback(e, r);
|
|
1678
|
-
}
|
|
1679
|
-
function ue(e, r) {
|
|
1680
|
-
var o = u();
|
|
1681
|
-
return o.useMemo(e, r);
|
|
1682
|
-
}
|
|
1683
|
-
function Ce(e, r, o) {
|
|
1684
|
-
var a = u();
|
|
1685
|
-
return a.useImperativeHandle(e, r, o);
|
|
1686
|
-
}
|
|
1687
|
-
function _e(e, r) {
|
|
1688
|
-
{
|
|
1689
|
-
var o = u();
|
|
1690
|
-
return o.useDebugValue(e, r);
|
|
1691
|
-
}
|
|
1692
|
-
}
|
|
1693
|
-
function ae() {
|
|
1694
|
-
var e = u();
|
|
1695
|
-
return e.useTransition();
|
|
1696
|
-
}
|
|
1697
|
-
function Ze(e) {
|
|
1698
|
-
var r = u();
|
|
1699
|
-
return r.useDeferredValue(e);
|
|
1700
|
-
}
|
|
1701
|
-
function Ar() {
|
|
1702
|
-
var e = u();
|
|
1703
|
-
return e.useId();
|
|
1704
|
-
}
|
|
1705
|
-
function Mr(e, r, o) {
|
|
1706
|
-
var a = u();
|
|
1707
|
-
return a.useSyncExternalStore(e, r, o);
|
|
1708
|
-
}
|
|
1709
|
-
var Qe = 0, Jr, Kr, Xr, Zr, Qr, et, rt;
|
|
1710
|
-
function tt() {
|
|
1711
|
-
}
|
|
1712
|
-
tt.__reactDisabledLog = !0;
|
|
1713
|
-
function It() {
|
|
1714
|
-
{
|
|
1715
|
-
if (Qe === 0) {
|
|
1716
|
-
Jr = console.log, Kr = console.info, Xr = console.warn, Zr = console.error, Qr = console.group, et = console.groupCollapsed, rt = console.groupEnd;
|
|
1717
|
-
var e = {
|
|
1718
|
-
configurable: !0,
|
|
1719
|
-
enumerable: !0,
|
|
1720
|
-
value: tt,
|
|
1721
|
-
writable: !0
|
|
1722
|
-
};
|
|
1723
|
-
Object.defineProperties(console, {
|
|
1724
|
-
info: e,
|
|
1725
|
-
log: e,
|
|
1726
|
-
warn: e,
|
|
1727
|
-
error: e,
|
|
1728
|
-
group: e,
|
|
1729
|
-
groupCollapsed: e,
|
|
1730
|
-
groupEnd: e
|
|
1731
|
-
});
|
|
1732
|
-
}
|
|
1733
|
-
Qe++;
|
|
1734
|
-
}
|
|
1735
|
-
}
|
|
1736
|
-
function $t() {
|
|
1737
|
-
{
|
|
1738
|
-
if (Qe--, Qe === 0) {
|
|
1739
|
-
var e = {
|
|
1740
|
-
configurable: !0,
|
|
1741
|
-
enumerable: !0,
|
|
1742
|
-
writable: !0
|
|
1743
|
-
};
|
|
1744
|
-
Object.defineProperties(console, {
|
|
1745
|
-
log: s({}, e, {
|
|
1746
|
-
value: Jr
|
|
1747
|
-
}),
|
|
1748
|
-
info: s({}, e, {
|
|
1749
|
-
value: Kr
|
|
1750
|
-
}),
|
|
1751
|
-
warn: s({}, e, {
|
|
1752
|
-
value: Xr
|
|
1753
|
-
}),
|
|
1754
|
-
error: s({}, e, {
|
|
1755
|
-
value: Zr
|
|
1756
|
-
}),
|
|
1757
|
-
group: s({}, e, {
|
|
1758
|
-
value: Qr
|
|
1759
|
-
}),
|
|
1760
|
-
groupCollapsed: s({}, e, {
|
|
1761
|
-
value: et
|
|
1762
|
-
}),
|
|
1763
|
-
groupEnd: s({}, e, {
|
|
1764
|
-
value: rt
|
|
1765
|
-
})
|
|
1766
|
-
});
|
|
1767
|
-
}
|
|
1768
|
-
Qe < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1769
|
-
}
|
|
1770
|
-
}
|
|
1771
|
-
var Lr = re.ReactCurrentDispatcher, qr;
|
|
1772
|
-
function vr(e, r, o) {
|
|
1773
|
-
{
|
|
1774
|
-
if (qr === void 0)
|
|
1775
|
-
try {
|
|
1776
|
-
throw Error();
|
|
1777
|
-
} catch (l) {
|
|
1778
|
-
var a = l.stack.trim().match(/\n( *(at )?)/);
|
|
1779
|
-
qr = a && a[1] || "";
|
|
1780
|
-
}
|
|
1781
|
-
return `
|
|
1782
|
-
` + qr + e;
|
|
1783
|
-
}
|
|
1784
|
-
}
|
|
1785
|
-
var Vr = !1, mr;
|
|
1786
|
-
{
|
|
1787
|
-
var Nt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1788
|
-
mr = new Nt();
|
|
1789
|
-
}
|
|
1790
|
-
function nt(e, r) {
|
|
1791
|
-
if (!e || Vr)
|
|
1792
|
-
return "";
|
|
1793
|
-
{
|
|
1794
|
-
var o = mr.get(e);
|
|
1795
|
-
if (o !== void 0)
|
|
1796
|
-
return o;
|
|
1797
|
-
}
|
|
1798
|
-
var a;
|
|
1799
|
-
Vr = !0;
|
|
1800
|
-
var l = Error.prepareStackTrace;
|
|
1801
|
-
Error.prepareStackTrace = void 0;
|
|
1802
|
-
var h;
|
|
1803
|
-
h = Lr.current, Lr.current = null, It();
|
|
1804
|
-
try {
|
|
1805
|
-
if (r) {
|
|
1806
|
-
var f = function() {
|
|
1807
|
-
throw Error();
|
|
1808
|
-
};
|
|
1809
|
-
if (Object.defineProperty(f.prototype, "props", {
|
|
1810
|
-
set: function() {
|
|
1811
|
-
throw Error();
|
|
1812
|
-
}
|
|
1813
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1814
|
-
try {
|
|
1815
|
-
Reflect.construct(f, []);
|
|
1816
|
-
} catch (ne) {
|
|
1817
|
-
a = ne;
|
|
1818
|
-
}
|
|
1819
|
-
Reflect.construct(e, [], f);
|
|
1820
|
-
} else {
|
|
1821
|
-
try {
|
|
1822
|
-
f.call();
|
|
1823
|
-
} catch (ne) {
|
|
1824
|
-
a = ne;
|
|
1825
|
-
}
|
|
1826
|
-
e.call(f.prototype);
|
|
1827
|
-
}
|
|
1828
|
-
} else {
|
|
1829
|
-
try {
|
|
1830
|
-
throw Error();
|
|
1831
|
-
} catch (ne) {
|
|
1832
|
-
a = ne;
|
|
1833
|
-
}
|
|
1834
|
-
e();
|
|
1835
|
-
}
|
|
1836
|
-
} catch (ne) {
|
|
1837
|
-
if (ne && a && typeof ne.stack == "string") {
|
|
1838
|
-
for (var _ = ne.stack.split(`
|
|
1839
|
-
`), T = a.stack.split(`
|
|
1840
|
-
`), V = _.length - 1, W = T.length - 1; V >= 1 && W >= 0 && _[V] !== T[W]; )
|
|
1841
|
-
W--;
|
|
1842
|
-
for (; V >= 1 && W >= 0; V--, W--)
|
|
1843
|
-
if (_[V] !== T[W]) {
|
|
1844
|
-
if (V !== 1 || W !== 1)
|
|
1845
|
-
do
|
|
1846
|
-
if (V--, W--, W < 0 || _[V] !== T[W]) {
|
|
1847
|
-
var z = `
|
|
1848
|
-
` + _[V].replace(" at new ", " at ");
|
|
1849
|
-
return e.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", e.displayName)), typeof e == "function" && mr.set(e, z), z;
|
|
1850
|
-
}
|
|
1851
|
-
while (V >= 1 && W >= 0);
|
|
1852
|
-
break;
|
|
1853
|
-
}
|
|
1854
|
-
}
|
|
1855
|
-
} finally {
|
|
1856
|
-
Vr = !1, Lr.current = h, $t(), Error.prepareStackTrace = l;
|
|
1857
|
-
}
|
|
1858
|
-
var G = e ? e.displayName || e.name : "", Q = G ? vr(G) : "";
|
|
1859
|
-
return typeof e == "function" && mr.set(e, Q), Q;
|
|
1860
|
-
}
|
|
1861
|
-
function Dt(e, r, o) {
|
|
1862
|
-
return nt(e, !1);
|
|
1863
|
-
}
|
|
1864
|
-
function Ft(e) {
|
|
1865
|
-
var r = e.prototype;
|
|
1866
|
-
return !!(r && r.isReactComponent);
|
|
1867
|
-
}
|
|
1868
|
-
function hr(e, r, o) {
|
|
1869
|
-
if (e == null)
|
|
1870
|
-
return "";
|
|
1871
|
-
if (typeof e == "function")
|
|
1872
|
-
return nt(e, Ft(e));
|
|
1873
|
-
if (typeof e == "string")
|
|
1874
|
-
return vr(e);
|
|
1875
|
-
switch (e) {
|
|
1876
|
-
case x:
|
|
1877
|
-
return vr("Suspense");
|
|
1878
|
-
case J:
|
|
1879
|
-
return vr("SuspenseList");
|
|
1880
|
-
}
|
|
1881
|
-
if (typeof e == "object")
|
|
1882
|
-
switch (e.$$typeof) {
|
|
1883
|
-
case E:
|
|
1884
|
-
return Dt(e.render);
|
|
1885
|
-
case L:
|
|
1886
|
-
return hr(e.type, r, o);
|
|
1887
|
-
case ee: {
|
|
1888
|
-
var a = e, l = a._payload, h = a._init;
|
|
1889
|
-
try {
|
|
1890
|
-
return hr(h(l), r, o);
|
|
1891
|
-
} catch {
|
|
1892
|
-
}
|
|
1893
|
-
}
|
|
1894
|
-
}
|
|
1895
|
-
return "";
|
|
1896
|
-
}
|
|
1897
|
-
var ot = {}, at = re.ReactDebugCurrentFrame;
|
|
1898
|
-
function br(e) {
|
|
1899
|
-
if (e) {
|
|
1900
|
-
var r = e._owner, o = hr(e.type, e._source, r ? r.type : null);
|
|
1901
|
-
at.setExtraStackFrame(o);
|
|
1902
|
-
} else
|
|
1903
|
-
at.setExtraStackFrame(null);
|
|
1904
|
-
}
|
|
1905
|
-
function At(e, r, o, a, l) {
|
|
1906
|
-
{
|
|
1907
|
-
var h = Function.call.bind(De);
|
|
1908
|
-
for (var f in e)
|
|
1909
|
-
if (h(e, f)) {
|
|
1910
|
-
var _ = void 0;
|
|
1911
|
-
try {
|
|
1912
|
-
if (typeof e[f] != "function") {
|
|
1913
|
-
var T = Error((a || "React class") + ": " + o + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1914
|
-
throw T.name = "Invariant Violation", T;
|
|
1915
|
-
}
|
|
1916
|
-
_ = e[f](r, f, a, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1917
|
-
} catch (V) {
|
|
1918
|
-
_ = V;
|
|
1919
|
-
}
|
|
1920
|
-
_ && !(_ instanceof Error) && (br(l), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", o, f, typeof _), br(null)), _ instanceof Error && !(_.message in ot) && (ot[_.message] = !0, br(l), y("Failed %s type: %s", o, _.message), br(null));
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1923
|
-
}
|
|
1924
|
-
function Ye(e) {
|
|
1925
|
-
if (e) {
|
|
1926
|
-
var r = e._owner, o = hr(e.type, e._source, r ? r.type : null);
|
|
1927
|
-
Oe(o);
|
|
1928
|
-
} else
|
|
1929
|
-
Oe(null);
|
|
1930
|
-
}
|
|
1931
|
-
var Ur;
|
|
1932
|
-
Ur = !1;
|
|
1933
|
-
function it() {
|
|
1934
|
-
if (ie.current) {
|
|
1935
|
-
var e = me(ie.current.type);
|
|
1936
|
-
if (e)
|
|
1937
|
-
return `
|
|
1938
|
-
|
|
1939
|
-
Check the render method of \`` + e + "`.";
|
|
1940
|
-
}
|
|
1941
|
-
return "";
|
|
1942
|
-
}
|
|
1943
|
-
function Mt(e) {
|
|
1944
|
-
if (e !== void 0) {
|
|
1945
|
-
var r = e.fileName.replace(/^.*[\\\/]/, ""), o = e.lineNumber;
|
|
1946
|
-
return `
|
|
1947
|
-
|
|
1948
|
-
Check your code at ` + r + ":" + o + ".";
|
|
1949
|
-
}
|
|
1950
|
-
return "";
|
|
1951
|
-
}
|
|
1952
|
-
function Lt(e) {
|
|
1953
|
-
return e != null ? Mt(e.__source) : "";
|
|
1954
|
-
}
|
|
1955
|
-
var st = {};
|
|
1956
|
-
function qt(e) {
|
|
1957
|
-
var r = it();
|
|
1958
|
-
if (!r) {
|
|
1959
|
-
var o = typeof e == "string" ? e : e.displayName || e.name;
|
|
1960
|
-
o && (r = `
|
|
1961
|
-
|
|
1962
|
-
Check the top-level render call using <` + o + ">.");
|
|
1963
|
-
}
|
|
1964
|
-
return r;
|
|
1965
|
-
}
|
|
1966
|
-
function ut(e, r) {
|
|
1967
|
-
if (!(!e._store || e._store.validated || e.key != null)) {
|
|
1968
|
-
e._store.validated = !0;
|
|
1969
|
-
var o = qt(r);
|
|
1970
|
-
if (!st[o]) {
|
|
1971
|
-
st[o] = !0;
|
|
1972
|
-
var a = "";
|
|
1973
|
-
e && e._owner && e._owner !== ie.current && (a = " It was passed a child from " + me(e._owner.type) + "."), Ye(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, a), Ye(null);
|
|
1974
|
-
}
|
|
1975
|
-
}
|
|
1976
|
-
}
|
|
1977
|
-
function lt(e, r) {
|
|
1978
|
-
if (typeof e == "object") {
|
|
1979
|
-
if (Ve(e))
|
|
1980
|
-
for (var o = 0; o < e.length; o++) {
|
|
1981
|
-
var a = e[o];
|
|
1982
|
-
Ee(a) && ut(a, r);
|
|
1983
|
-
}
|
|
1984
|
-
else if (Ee(e))
|
|
1985
|
-
e._store && (e._store.validated = !0);
|
|
1986
|
-
else if (e) {
|
|
1987
|
-
var l = Y(e);
|
|
1988
|
-
if (typeof l == "function" && l !== e.entries)
|
|
1989
|
-
for (var h = l.call(e), f; !(f = h.next()).done; )
|
|
1990
|
-
Ee(f.value) && ut(f.value, r);
|
|
1991
|
-
}
|
|
1992
|
-
}
|
|
1993
|
-
}
|
|
1994
|
-
function ct(e) {
|
|
1995
|
-
{
|
|
1996
|
-
var r = e.type;
|
|
1997
|
-
if (r == null || typeof r == "string")
|
|
1998
|
-
return;
|
|
1999
|
-
var o;
|
|
2000
|
-
if (typeof r == "function")
|
|
2001
|
-
o = r.propTypes;
|
|
2002
|
-
else if (typeof r == "object" && (r.$$typeof === E || // Note: Memo only checks outer props here.
|
|
2003
|
-
// Inner props are checked in the reconciler.
|
|
2004
|
-
r.$$typeof === L))
|
|
2005
|
-
o = r.propTypes;
|
|
2006
|
-
else
|
|
2007
|
-
return;
|
|
2008
|
-
if (o) {
|
|
2009
|
-
var a = me(r);
|
|
2010
|
-
At(o, e.props, "prop", a, e);
|
|
2011
|
-
} else if (r.PropTypes !== void 0 && !Ur) {
|
|
2012
|
-
Ur = !0;
|
|
2013
|
-
var l = me(r);
|
|
2014
|
-
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
|
|
2015
|
-
}
|
|
2016
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2017
|
-
}
|
|
2018
|
-
}
|
|
2019
|
-
function Vt(e) {
|
|
2020
|
-
{
|
|
2021
|
-
for (var r = Object.keys(e.props), o = 0; o < r.length; o++) {
|
|
2022
|
-
var a = r[o];
|
|
2023
|
-
if (a !== "children" && a !== "key") {
|
|
2024
|
-
Ye(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), Ye(null);
|
|
2025
|
-
break;
|
|
2026
|
-
}
|
|
2027
|
-
}
|
|
2028
|
-
e.ref !== null && (Ye(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), Ye(null));
|
|
2029
|
-
}
|
|
2030
|
-
}
|
|
2031
|
-
function ft(e, r, o) {
|
|
2032
|
-
var a = t(e);
|
|
2033
|
-
if (!a) {
|
|
2034
|
-
var l = "";
|
|
2035
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
2036
|
-
var h = Lt(r);
|
|
2037
|
-
h ? l += h : l += it();
|
|
2038
|
-
var f;
|
|
2039
|
-
e === null ? f = "null" : Ve(e) ? f = "array" : e !== void 0 && e.$$typeof === I ? (f = "<" + (me(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, y("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, l);
|
|
2040
|
-
}
|
|
2041
|
-
var _ = jr.apply(this, arguments);
|
|
2042
|
-
if (_ == null)
|
|
2043
|
-
return _;
|
|
2044
|
-
if (a)
|
|
2045
|
-
for (var T = 2; T < arguments.length; T++)
|
|
2046
|
-
lt(arguments[T], e);
|
|
2047
|
-
return e === C ? Vt(_) : ct(_), _;
|
|
2048
|
-
}
|
|
2049
|
-
var dt = !1;
|
|
2050
|
-
function Ut(e) {
|
|
2051
|
-
var r = ft.bind(null, e);
|
|
2052
|
-
return r.type = e, dt || (dt = !0, pe("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(r, "type", {
|
|
2053
|
-
enumerable: !1,
|
|
2054
|
-
get: function() {
|
|
2055
|
-
return pe("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
|
|
2056
|
-
value: e
|
|
2057
|
-
}), e;
|
|
2058
|
-
}
|
|
2059
|
-
}), r;
|
|
2060
|
-
}
|
|
2061
|
-
function Wt(e, r, o) {
|
|
2062
|
-
for (var a = Or.apply(this, arguments), l = 2; l < arguments.length; l++)
|
|
2063
|
-
lt(arguments[l], a.type);
|
|
2064
|
-
return ct(a), a;
|
|
2065
|
-
}
|
|
2066
|
-
function zt(e, r) {
|
|
2067
|
-
var o = de.transition;
|
|
2068
|
-
de.transition = {};
|
|
2069
|
-
var a = de.transition;
|
|
2070
|
-
de.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
2071
|
-
try {
|
|
2072
|
-
e();
|
|
2073
|
-
} finally {
|
|
2074
|
-
if (de.transition = o, o === null && a._updatedFibers) {
|
|
2075
|
-
var l = a._updatedFibers.size;
|
|
2076
|
-
l > 10 && pe("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), a._updatedFibers.clear();
|
|
2077
|
-
}
|
|
2078
|
-
}
|
|
2079
|
-
}
|
|
2080
|
-
var pt = !1, gr = null;
|
|
2081
|
-
function Bt(e) {
|
|
2082
|
-
if (gr === null)
|
|
2083
|
-
try {
|
|
2084
|
-
var r = ("require" + Math.random()).slice(0, 7), o = d && d[r];
|
|
2085
|
-
gr = o.call(d, "timers").setImmediate;
|
|
2086
|
-
} catch {
|
|
2087
|
-
gr = function(a) {
|
|
2088
|
-
pt === !1 && (pt = !0, typeof MessageChannel > "u" && y("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
2089
|
-
var l = new MessageChannel();
|
|
2090
|
-
l.port1.onmessage = a, l.port2.postMessage(void 0);
|
|
2091
|
-
};
|
|
2092
|
-
}
|
|
2093
|
-
return gr(e);
|
|
2094
|
-
}
|
|
2095
|
-
var He = 0, yt = !1;
|
|
2096
|
-
function vt(e) {
|
|
2097
|
-
{
|
|
2098
|
-
var r = He;
|
|
2099
|
-
He++, X.current === null && (X.current = []);
|
|
2100
|
-
var o = X.isBatchingLegacy, a;
|
|
2101
|
-
try {
|
|
2102
|
-
if (X.isBatchingLegacy = !0, a = e(), !o && X.didScheduleLegacyUpdate) {
|
|
2103
|
-
var l = X.current;
|
|
2104
|
-
l !== null && (X.didScheduleLegacyUpdate = !1, Br(l));
|
|
2105
|
-
}
|
|
2106
|
-
} catch (G) {
|
|
2107
|
-
throw _r(r), G;
|
|
2108
|
-
} finally {
|
|
2109
|
-
X.isBatchingLegacy = o;
|
|
2110
|
-
}
|
|
2111
|
-
if (a !== null && typeof a == "object" && typeof a.then == "function") {
|
|
2112
|
-
var h = a, f = !1, _ = {
|
|
2113
|
-
then: function(G, Q) {
|
|
2114
|
-
f = !0, h.then(function(ne) {
|
|
2115
|
-
_r(r), He === 0 ? Wr(ne, G, Q) : G(ne);
|
|
2116
|
-
}, function(ne) {
|
|
2117
|
-
_r(r), Q(ne);
|
|
2118
|
-
});
|
|
2119
|
-
}
|
|
2120
|
-
};
|
|
2121
|
-
return !yt && typeof Promise < "u" && Promise.resolve().then(function() {
|
|
2122
|
-
}).then(function() {
|
|
2123
|
-
f || (yt = !0, y("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
2124
|
-
}), _;
|
|
2125
|
-
} else {
|
|
2126
|
-
var T = a;
|
|
2127
|
-
if (_r(r), He === 0) {
|
|
2128
|
-
var V = X.current;
|
|
2129
|
-
V !== null && (Br(V), X.current = null);
|
|
2130
|
-
var W = {
|
|
2131
|
-
then: function(G, Q) {
|
|
2132
|
-
X.current === null ? (X.current = [], Wr(T, G, Q)) : G(T);
|
|
2133
|
-
}
|
|
2134
|
-
};
|
|
2135
|
-
return W;
|
|
2136
|
-
} else {
|
|
2137
|
-
var z = {
|
|
2138
|
-
then: function(G, Q) {
|
|
2139
|
-
G(T);
|
|
2140
|
-
}
|
|
2141
|
-
};
|
|
2142
|
-
return z;
|
|
2143
|
-
}
|
|
2144
|
-
}
|
|
2145
|
-
}
|
|
2146
|
-
}
|
|
2147
|
-
function _r(e) {
|
|
2148
|
-
e !== He - 1 && y("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), He = e;
|
|
2149
|
-
}
|
|
2150
|
-
function Wr(e, r, o) {
|
|
2151
|
-
{
|
|
2152
|
-
var a = X.current;
|
|
2153
|
-
if (a !== null)
|
|
2154
|
-
try {
|
|
2155
|
-
Br(a), Bt(function() {
|
|
2156
|
-
a.length === 0 ? (X.current = null, r(e)) : Wr(e, r, o);
|
|
2157
|
-
});
|
|
2158
|
-
} catch (l) {
|
|
2159
|
-
o(l);
|
|
2160
|
-
}
|
|
2161
|
-
else
|
|
2162
|
-
r(e);
|
|
2163
|
-
}
|
|
2164
|
-
}
|
|
2165
|
-
var zr = !1;
|
|
2166
|
-
function Br(e) {
|
|
2167
|
-
if (!zr) {
|
|
2168
|
-
zr = !0;
|
|
2169
|
-
var r = 0;
|
|
2170
|
-
try {
|
|
2171
|
-
for (; r < e.length; r++) {
|
|
2172
|
-
var o = e[r];
|
|
2173
|
-
do
|
|
2174
|
-
o = o(!0);
|
|
2175
|
-
while (o !== null);
|
|
2176
|
-
}
|
|
2177
|
-
e.length = 0;
|
|
2178
|
-
} catch (a) {
|
|
2179
|
-
throw e = e.slice(r + 1), a;
|
|
2180
|
-
} finally {
|
|
2181
|
-
zr = !1;
|
|
2182
|
-
}
|
|
2183
|
-
}
|
|
2184
|
-
}
|
|
2185
|
-
var Yt = ft, Ht = Wt, Gt = Ut, Jt = {
|
|
2186
|
-
map: Me,
|
|
2187
|
-
forEach: cr,
|
|
2188
|
-
count: Ir,
|
|
2189
|
-
toArray: $r,
|
|
2190
|
-
only: fr
|
|
2191
|
-
};
|
|
2192
|
-
c.Children = Jt, c.Component = O, c.Fragment = C, c.Profiler = g, c.PureComponent = F, c.StrictMode = v, c.Suspense = x, c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = re, c.act = vt, c.cloneElement = Ht, c.createContext = dr, c.createElement = Yt, c.createFactory = Gt, c.createRef = Er, c.forwardRef = Fr, c.isValidElement = Ee, c.lazy = Dr, c.memo = i, c.startTransition = zt, c.unstable_act = vt, c.useCallback = K, c.useContext = m, c.useDebugValue = _e, c.useDeferredValue = Ze, c.useEffect = R, c.useId = Ar, c.useImperativeHandle = Ce, c.useInsertionEffect = te, c.useLayoutEffect = H, c.useMemo = ue, c.useReducer = A, c.useRef = j, c.useState = N, c.useSyncExternalStore = Mr, c.useTransition = ae, c.version = k, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
2193
|
-
}();
|
|
2194
|
-
}(wr, wr.exports)), wr.exports;
|
|
2195
|
-
}
|
|
2196
|
-
var Et;
|
|
2197
|
-
function on() {
|
|
2198
|
-
return Et || (Et = 1, process.env.NODE_ENV === "production" ? Hr.exports = tn() : Hr.exports = nn()), Hr.exports;
|
|
2199
|
-
}
|
|
2200
|
-
on();
|
|
2201
|
-
const ke = B.createContext({
|
|
2202
|
-
helperTextId: "",
|
|
2203
|
-
errorMessageId: "",
|
|
2204
|
-
isInvalid: !1,
|
|
2205
|
-
isRequired: !1
|
|
2206
|
-
}), St = `
|
|
2207
|
-
bg-white
|
|
2208
|
-
border
|
|
2209
|
-
border-solid
|
|
2210
|
-
border-sumi-900
|
|
2211
|
-
disabled:bg-transparent
|
|
2212
|
-
disabled:text-sumi-500
|
|
2213
|
-
disabled:border-sumi-500
|
|
2214
|
-
aria-invalid:border-sun-800
|
|
2215
|
-
${je.focusRect}
|
|
2216
|
-
`, Ct = {
|
|
2217
|
-
// 16(p-4) * 2 + 22(text-label * leading-snug) + boader * 2 = 56px
|
|
2218
|
-
lg: `
|
|
2219
|
-
p-4
|
|
2220
|
-
text-label
|
|
2221
|
-
rounded-lg
|
|
2222
|
-
leading-snug
|
|
2223
|
-
`,
|
|
2224
|
-
// 12(py-3) * 2 + 22(text-label * leading-snug) + boader * 2 = 48px
|
|
2225
|
-
md: `
|
|
2226
|
-
px-4
|
|
2227
|
-
py-3
|
|
2228
|
-
text-label
|
|
2229
|
-
rounded-lg
|
|
2230
|
-
leading-snug
|
|
2231
|
-
`,
|
|
2232
|
-
// 8(py-2) * 2 + 22(text-label * leading-snug) + boader * 2 = 40px
|
|
2233
|
-
sm: `
|
|
2234
|
-
px-3
|
|
2235
|
-
py-2
|
|
2236
|
-
text-label
|
|
2237
|
-
rounded-md
|
|
2238
|
-
leading-snug
|
|
2239
|
-
`
|
|
2240
|
-
}, jt = `
|
|
2241
|
-
inline-block
|
|
2242
|
-
cursor-pointer
|
|
2243
|
-
border
|
|
2244
|
-
border-solid
|
|
2245
|
-
border-transparent
|
|
2246
|
-
`, kt = {
|
|
2247
|
-
// 16(p-4) * 2 + 22(text-label * leading-snug) + boader(transparent) * 2 = 56px
|
|
2248
|
-
lg: `
|
|
2249
|
-
pr-8
|
|
2250
|
-
py-4
|
|
2251
|
-
text-label
|
|
2252
|
-
leading-snug
|
|
2253
|
-
`,
|
|
2254
|
-
// 12(py-3) * 2 + 22(text-label * leading-snug) + boader(transparent) * 2 = 48px
|
|
2255
|
-
md: `
|
|
2256
|
-
pr-6
|
|
2257
|
-
py-3
|
|
2258
|
-
text-label
|
|
2259
|
-
leading-snug
|
|
2260
|
-
`,
|
|
2261
|
-
// 8(py-2) * 2 + 22(text-label * leading-snug) + boader(transparent) * 2 = 40px
|
|
2262
|
-
sm: `
|
|
2263
|
-
pr-4
|
|
2264
|
-
py-2
|
|
2265
|
-
text-label
|
|
2266
|
-
leading-snug
|
|
2267
|
-
`
|
|
2268
|
-
}, Ot = {
|
|
2269
|
-
lg: "w-[22px] h-[22px] mr-2",
|
|
2270
|
-
md: "w-[18px] h-[18px] mr-1.5",
|
|
2271
|
-
sm: "w-[18px] h-[18px] mr-1"
|
|
2272
|
-
}, Pt = B.forwardRef(
|
|
2273
|
-
(d, c) => {
|
|
2274
|
-
const { id: k, className: I, size: P = "lg", children: C, ...v } = d, g = k || B.useId(), p = B.useContext(ke);
|
|
2275
|
-
p.isRequired && (v.required = !0), p.groupName && (v.name = p.groupName);
|
|
2276
|
-
const D = {
|
|
2277
|
-
lg: 22 / 24,
|
|
2278
|
-
md: 18 / 24,
|
|
2279
|
-
sm: 18 / 24
|
|
2280
|
-
}, E = `
|
|
2281
|
-
peer
|
|
2282
|
-
sr-only
|
|
2283
|
-
`, x = `
|
|
2284
|
-
bg-clip-content
|
|
2285
|
-
rounded
|
|
2286
|
-
border
|
|
2287
|
-
border-solid
|
|
2288
|
-
border-sumi-900
|
|
2289
|
-
fill-transparent
|
|
2290
|
-
peer-checked:fill-white
|
|
2291
|
-
peer-checked:bg-sea-600
|
|
2292
|
-
peer-checked:border-none
|
|
2293
|
-
peer-disabled:border-sumi-500
|
|
2294
|
-
${je.Peer.focusRect}
|
|
2295
|
-
`;
|
|
2296
|
-
return /* @__PURE__ */ b.jsx(
|
|
2297
|
-
"label",
|
|
2298
|
-
{
|
|
2299
|
-
htmlFor: g,
|
|
2300
|
-
className: le(
|
|
2301
|
-
jt,
|
|
2302
|
-
kt[P],
|
|
2303
|
-
I
|
|
2304
|
-
),
|
|
2305
|
-
children: /* @__PURE__ */ b.jsxs("span", { className: "flex items-center", children: [
|
|
2306
|
-
/* @__PURE__ */ b.jsx(
|
|
2307
|
-
"input",
|
|
2308
|
-
{
|
|
2309
|
-
id: g,
|
|
2310
|
-
className: E,
|
|
2311
|
-
type: "checkbox",
|
|
2312
|
-
"aria-describedby": p.helperTextId,
|
|
2313
|
-
"aria-errormessage": p.errorMessageId,
|
|
2314
|
-
"aria-invalid": p.isInvalid ?? !1,
|
|
2315
|
-
"aria-required": p.isRequired ?? !1,
|
|
2316
|
-
...v,
|
|
2317
|
-
ref: c
|
|
2318
|
-
}
|
|
2319
|
-
),
|
|
2320
|
-
/* @__PURE__ */ b.jsx("span", { className: le(x, Ot[P]), children: /* @__PURE__ */ b.jsx(
|
|
2321
|
-
"svg",
|
|
2322
|
-
{
|
|
2323
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2324
|
-
"aria-hidden": !0,
|
|
2325
|
-
width: "24",
|
|
2326
|
-
height: "24",
|
|
2327
|
-
viewBox: "0 0 24 24",
|
|
2328
|
-
children: /* @__PURE__ */ b.jsx("g", { transform: `scale(${D[P]} ${D[P]})`, children: /* @__PURE__ */ b.jsx("path", { d: "m9.55 17.65-5.325-5.325 1.05-1.075 4.275 4.275 9.175-9.175 1.05 1.075Z" }) })
|
|
2329
|
-
}
|
|
2330
|
-
) }),
|
|
2331
|
-
/* @__PURE__ */ b.jsx("span", { className: "peer-disabled:text-sumi-500", children: C })
|
|
2332
|
-
] })
|
|
2333
|
-
}
|
|
2334
|
-
);
|
|
2335
|
-
}
|
|
2336
|
-
);
|
|
2337
|
-
Pt.displayName = "Checkbox";
|
|
2338
|
-
const Tt = B.forwardRef(
|
|
2339
|
-
(d, c) => {
|
|
2340
|
-
const { id: k, className: I, size: P = "lg", children: C, ...v } = d, g = k || B.useId(), p = B.useContext(ke);
|
|
2341
|
-
p.isRequired && (v.required = !0), p.groupName && (v.name = p.groupName);
|
|
2342
|
-
const D = `
|
|
2343
|
-
peer
|
|
2344
|
-
sr-only
|
|
2345
|
-
`, E = `
|
|
2346
|
-
bg-clip-content
|
|
2347
|
-
rounded-full
|
|
2348
|
-
border
|
|
2349
|
-
border-solid
|
|
2350
|
-
border-sumi-900
|
|
2351
|
-
peer-checked:bg-sea-600
|
|
2352
|
-
peer-checked:border-sea-600
|
|
2353
|
-
peer-disabled:border-sumi-500
|
|
2354
|
-
${je.Peer.focusRect}
|
|
2355
|
-
`, x = {
|
|
2356
|
-
lg: "p-1",
|
|
2357
|
-
md: "p-[3px]",
|
|
2358
|
-
sm: "p-[3px]"
|
|
2359
|
-
};
|
|
2360
|
-
return /* @__PURE__ */ b.jsx(
|
|
2361
|
-
"label",
|
|
2362
|
-
{
|
|
2363
|
-
htmlFor: g,
|
|
2364
|
-
className: le(
|
|
2365
|
-
jt,
|
|
2366
|
-
kt[P],
|
|
2367
|
-
I
|
|
2368
|
-
),
|
|
2369
|
-
children: /* @__PURE__ */ b.jsxs("span", { className: "flex items-center", children: [
|
|
2370
|
-
/* @__PURE__ */ b.jsx(
|
|
2371
|
-
"input",
|
|
2372
|
-
{
|
|
2373
|
-
id: g,
|
|
2374
|
-
className: D,
|
|
2375
|
-
type: "radio",
|
|
2376
|
-
"aria-describedby": p.helperTextId,
|
|
2377
|
-
"aria-errormessage": p.errorMessageId,
|
|
2378
|
-
"aria-invalid": p.isInvalid ?? !1,
|
|
2379
|
-
"aria-required": p.isRequired ?? !1,
|
|
2380
|
-
...v,
|
|
2381
|
-
ref: c
|
|
2382
|
-
}
|
|
2383
|
-
),
|
|
2384
|
-
/* @__PURE__ */ b.jsx(
|
|
2385
|
-
"span",
|
|
2386
|
-
{
|
|
2387
|
-
"aria-hidden": !0,
|
|
2388
|
-
className: le(E, x[P], Ot[P])
|
|
2389
|
-
}
|
|
2390
|
-
),
|
|
2391
|
-
/* @__PURE__ */ b.jsx("span", { className: "peer-disabled:text-sumi-500", children: C })
|
|
2392
|
-
] })
|
|
2393
|
-
}
|
|
2394
|
-
);
|
|
2395
|
-
}
|
|
2396
|
-
);
|
|
2397
|
-
Tt.displayName = "Radio";
|
|
2398
|
-
const pn = B.forwardRef(
|
|
2399
|
-
(d, c) => {
|
|
2400
|
-
const { id: k, className: I, size: P = "lg", children: C, ...v } = d, g = B.useContext(ke);
|
|
2401
|
-
return g.isRequired && (v.required = !0), /* @__PURE__ */ b.jsxs("div", { className: "inline-block relative", children: [
|
|
2402
|
-
/* @__PURE__ */ b.jsx(
|
|
2403
|
-
"select",
|
|
2404
|
-
{
|
|
2405
|
-
id: k || g.id,
|
|
2406
|
-
className: le(
|
|
2407
|
-
`
|
|
2408
|
-
!pr-8
|
|
2409
|
-
peer
|
|
2410
|
-
cursor-pointer
|
|
2411
|
-
appearance-none
|
|
2412
|
-
`,
|
|
2413
|
-
St,
|
|
2414
|
-
Ct[P],
|
|
2415
|
-
I
|
|
2416
|
-
),
|
|
2417
|
-
"aria-describedby": g.helperTextId,
|
|
2418
|
-
"aria-errormessage": g.errorMessageId,
|
|
2419
|
-
"aria-invalid": g.isInvalid ?? !1,
|
|
2420
|
-
"aria-required": g.isRequired ?? !1,
|
|
2421
|
-
...v,
|
|
2422
|
-
ref: c,
|
|
2423
|
-
children: C
|
|
2424
|
-
}
|
|
2425
|
-
),
|
|
2426
|
-
/* @__PURE__ */ b.jsxs(
|
|
2427
|
-
"svg",
|
|
2428
|
-
{
|
|
2429
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2430
|
-
"aria-hidden": !0,
|
|
2431
|
-
className: `
|
|
2432
|
-
pointer-events-none
|
|
2433
|
-
absolute
|
|
2434
|
-
right-4
|
|
2435
|
-
top-1/2
|
|
2436
|
-
-translate-y-1/2
|
|
2437
|
-
text-sumi-900
|
|
2438
|
-
peer-disabled:text-sumi-500
|
|
2439
|
-
`,
|
|
2440
|
-
fill: "none",
|
|
2441
|
-
width: "16",
|
|
2442
|
-
height: "16",
|
|
2443
|
-
viewBox: "0 0 16 16",
|
|
2444
|
-
children: [
|
|
2445
|
-
/* @__PURE__ */ b.jsx("title", { children: "arrow down" }),
|
|
2446
|
-
/* @__PURE__ */ b.jsx(
|
|
2447
|
-
"path",
|
|
2448
|
-
{
|
|
2449
|
-
d: "M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z",
|
|
2450
|
-
fill: "currentColor"
|
|
2451
|
-
}
|
|
2452
|
-
)
|
|
2453
|
-
]
|
|
2454
|
-
}
|
|
2455
|
-
)
|
|
2456
|
-
] });
|
|
2457
|
-
}
|
|
2458
|
-
), an = B.forwardRef(
|
|
2459
|
-
(d, c) => {
|
|
2460
|
-
const { id: k, className: I, size: P = "lg", ...C } = d, v = B.useContext(ke);
|
|
2461
|
-
v.isRequired && (C.required = !0);
|
|
2462
|
-
const g = `
|
|
2463
|
-
file:mr-2
|
|
2464
|
-
file:inline-block
|
|
2465
|
-
file:text-button
|
|
2466
|
-
file:text-center
|
|
2467
|
-
file:cursor-pointer
|
|
2468
|
-
file:select-none
|
|
2469
|
-
file:touch-manipulation
|
|
2470
|
-
file:whitespace-nowrap
|
|
2471
|
-
file:border
|
|
2472
|
-
file:border-solid
|
|
2473
|
-
file:border-blue-900
|
|
2474
|
-
file:hover:border-blue-1000
|
|
2475
|
-
file:active:border-blue-1200
|
|
2476
|
-
file:disabled:border-sumi-500
|
|
2477
|
-
file:disabled:cursor-not-allowed
|
|
2478
|
-
`, p = `
|
|
2479
|
-
file:text-sea-900
|
|
2480
|
-
file:hover:text-sea-1000
|
|
2481
|
-
file:active:text-sea-1200
|
|
2482
|
-
file:bg-transparent
|
|
2483
|
-
file:hover:bg-sea-200
|
|
2484
|
-
file:active:bg-sea-300
|
|
2485
|
-
file:disabled:text-sumi-500
|
|
2486
|
-
file:disabled:bg-transparent
|
|
2487
|
-
`, D = `
|
|
2488
|
-
text-label
|
|
2489
|
-
text-sumi-900
|
|
2490
|
-
rounded-lg
|
|
2491
|
-
outline-offset-2
|
|
2492
|
-
aria-invalid:text-sun-800
|
|
2493
|
-
${je.hoverUnderline}
|
|
2494
|
-
${je.focusRounded}
|
|
2495
|
-
`, E = {
|
|
2496
|
-
// 16(p-4) * 2 + 22(text-button * leading-snug) + boader * 2 = 56px
|
|
2497
|
-
lg: `
|
|
2498
|
-
file:p-4
|
|
2499
|
-
file:text-button
|
|
2500
|
-
file:rounded-lg
|
|
2501
|
-
file:leading-snug
|
|
2502
|
-
`,
|
|
2503
|
-
// 12(py-3) * 2 + 22(text-button * leading-snug) + boader * 2 = 48px
|
|
2504
|
-
md: `
|
|
2505
|
-
file:px-4
|
|
2506
|
-
file:py-3
|
|
2507
|
-
file:text-button
|
|
2508
|
-
file:rounded-lg
|
|
2509
|
-
file:leading-snug
|
|
2510
|
-
`,
|
|
2511
|
-
// 8(py-2) * 2 + 22(text-button * leading-snug) + boader * 2 = 40px
|
|
2512
|
-
sm: `
|
|
2513
|
-
file:px-3
|
|
2514
|
-
file:py-2
|
|
2515
|
-
file:text-button
|
|
2516
|
-
file:rounded-md
|
|
2517
|
-
file:leading-snug
|
|
2518
|
-
`
|
|
2519
|
-
};
|
|
2520
|
-
return /* @__PURE__ */ b.jsx(
|
|
2521
|
-
"input",
|
|
2522
|
-
{
|
|
2523
|
-
type: "file",
|
|
2524
|
-
id: k || v.id,
|
|
2525
|
-
className: le(g, p, E[P], D, I),
|
|
2526
|
-
"aria-describedby": v.helperTextId,
|
|
2527
|
-
"aria-errormessage": v.errorMessageId,
|
|
2528
|
-
"aria-invalid": v.isInvalid ?? !1,
|
|
2529
|
-
"aria-required": v.isRequired ?? !1,
|
|
2530
|
-
ref: c,
|
|
2531
|
-
...C
|
|
2532
|
-
}
|
|
2533
|
-
);
|
|
2534
|
-
}
|
|
2535
|
-
);
|
|
2536
|
-
an.displayName = "FileInput";
|
|
2537
|
-
const sn = B.forwardRef(
|
|
2538
|
-
(d, c) => {
|
|
2539
|
-
const { id: k, className: I, size: P = "lg", ...C } = d, v = B.useContext(ke);
|
|
2540
|
-
return v.isRequired && (C.required = !0), /* @__PURE__ */ b.jsx(
|
|
2541
|
-
"input",
|
|
2542
|
-
{
|
|
2543
|
-
type: "text",
|
|
2544
|
-
id: k || v.id,
|
|
2545
|
-
className: le(
|
|
2546
|
-
St,
|
|
2547
|
-
Ct[P],
|
|
2548
|
-
I
|
|
2549
|
-
),
|
|
2550
|
-
"aria-describedby": v.helperTextId,
|
|
2551
|
-
"aria-errormessage": v.errorMessageId,
|
|
2552
|
-
"aria-invalid": v.isInvalid ?? !1,
|
|
2553
|
-
"aria-required": v.isRequired ?? !1,
|
|
2554
|
-
ref: c,
|
|
2555
|
-
...C
|
|
2556
|
-
}
|
|
2557
|
-
);
|
|
2558
|
-
}
|
|
2559
|
-
);
|
|
2560
|
-
sn.displayName = "Input";
|
|
2561
|
-
const un = B.forwardRef(
|
|
2562
|
-
(d, c) => {
|
|
2563
|
-
const { id: k, className: I, children: P, onChange: C, maxLength: v, ...g } = d, [p, D] = B.useState(0), E = (ee) => {
|
|
2564
|
-
C && C(ee), D(ee.target.value.length);
|
|
2565
|
-
}, x = B.useContext(ke);
|
|
2566
|
-
x.isRequired && (g.required = !0);
|
|
2567
|
-
const J = p > (v || 0) ? "text-sun-800" : "text-sumi-700", L = `
|
|
875
|
+
);
|
|
876
|
+
};
|
|
877
|
+
Ue.displayName = "Input";
|
|
878
|
+
const Fe = (s) => {
|
|
879
|
+
const { id: d, className: f, children: b, onChange: i, maxLength: o, ...n } = s, [g, c] = R.useState(0), m = (j) => {
|
|
880
|
+
i && i(j), c(j.target.value.length);
|
|
881
|
+
}, p = R.useContext(_);
|
|
882
|
+
p.isRequired && (n.required = !0);
|
|
883
|
+
const y = g > (o || 0) ? "text-red-800" : "text-solid-gray-700", E = `
|
|
2568
884
|
p-4
|
|
2569
885
|
text-label
|
|
2570
886
|
rounded-lg
|
|
2571
887
|
border
|
|
2572
888
|
border-solid
|
|
2573
|
-
border-
|
|
889
|
+
border-solid-gray-900
|
|
2574
890
|
disabled:bg-transparent
|
|
2575
|
-
disabled:text-
|
|
2576
|
-
disabled:border-
|
|
2577
|
-
aria-invalid:border-
|
|
2578
|
-
${
|
|
891
|
+
disabled:text-solid-gray-500
|
|
892
|
+
disabled:border-solid-gray-500
|
|
893
|
+
aria-invalid:border-red-800
|
|
894
|
+
${k.focusRect}
|
|
2579
895
|
`;
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
)
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
isInvalid: g ?? !1,
|
|
2620
|
-
isRequired: p ?? !1
|
|
896
|
+
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
897
|
+
/* @__PURE__ */ l.jsx(
|
|
898
|
+
"textarea",
|
|
899
|
+
{
|
|
900
|
+
id: d || p.id,
|
|
901
|
+
className: N(E, f),
|
|
902
|
+
"aria-describedby": p.helperTextId,
|
|
903
|
+
"aria-errormessage": p.errorMessageId,
|
|
904
|
+
"aria-invalid": p.isInvalid ?? !1,
|
|
905
|
+
"aria-required": p.isRequired ?? !1,
|
|
906
|
+
onChange: m,
|
|
907
|
+
...n,
|
|
908
|
+
children: b
|
|
909
|
+
}
|
|
910
|
+
),
|
|
911
|
+
o ? /* @__PURE__ */ l.jsxs("p", { className: "text-label text-solid-gray-700", children: [
|
|
912
|
+
/* @__PURE__ */ l.jsx("span", { className: y, children: g }),
|
|
913
|
+
"/",
|
|
914
|
+
/* @__PURE__ */ l.jsx("span", { children: o })
|
|
915
|
+
] }) : ""
|
|
916
|
+
] });
|
|
917
|
+
};
|
|
918
|
+
Fe.displayName = "Textarea";
|
|
919
|
+
const Ge = (s) => {
|
|
920
|
+
const d = R.useId(), {
|
|
921
|
+
labelText: f,
|
|
922
|
+
className: b,
|
|
923
|
+
helperText: i,
|
|
924
|
+
errorMessage: o,
|
|
925
|
+
isInvalid: n,
|
|
926
|
+
isRequired: g,
|
|
927
|
+
children: c,
|
|
928
|
+
...m
|
|
929
|
+
} = s, p = {
|
|
930
|
+
id: s.htmlFor ?? `input-${d}`,
|
|
931
|
+
helperTextId: `helper-text-${d}`,
|
|
932
|
+
errorMessageId: `error-message-${d}`,
|
|
933
|
+
isInvalid: n ?? !1,
|
|
934
|
+
isRequired: g ?? !1
|
|
2621
935
|
};
|
|
2622
|
-
return /* @__PURE__ */
|
|
2623
|
-
/* @__PURE__ */
|
|
936
|
+
return /* @__PURE__ */ l.jsx(_.Provider, { value: p, children: /* @__PURE__ */ l.jsxs("div", { className: N("flex flex-col items-start gap-2", b), children: [
|
|
937
|
+
/* @__PURE__ */ l.jsxs(
|
|
2624
938
|
"label",
|
|
2625
939
|
{
|
|
2626
|
-
className:
|
|
2627
|
-
htmlFor:
|
|
2628
|
-
|
|
2629
|
-
...E,
|
|
940
|
+
className: N("block text-label", n && "text-red-800"),
|
|
941
|
+
htmlFor: p.id,
|
|
942
|
+
...m,
|
|
2630
943
|
children: [
|
|
2631
|
-
|
|
2632
|
-
|
|
944
|
+
f,
|
|
945
|
+
g && /* @__PURE__ */ l.jsx("span", { className: "text-label text-red-800", children: " *" })
|
|
2633
946
|
]
|
|
2634
947
|
}
|
|
2635
948
|
),
|
|
2636
|
-
|
|
2637
|
-
text-label text-
|
|
2638
|
-
`, children:
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
text-label text-
|
|
2642
|
-
`, children:
|
|
949
|
+
i && /* @__PURE__ */ l.jsx("p", { id: p.helperTextId, className: `
|
|
950
|
+
text-label text-solid-gray-700
|
|
951
|
+
`, children: i }),
|
|
952
|
+
c,
|
|
953
|
+
n && /* @__PURE__ */ l.jsx("p", { id: p.errorMessageId, className: `
|
|
954
|
+
text-label text-red-800
|
|
955
|
+
`, children: o })
|
|
2643
956
|
] }) });
|
|
2644
|
-
}
|
|
2645
|
-
|
|
2646
|
-
const
|
|
2647
|
-
const
|
|
2648
|
-
labelText:
|
|
2649
|
-
className:
|
|
2650
|
-
helperText:
|
|
2651
|
-
errorMessage:
|
|
2652
|
-
isInvalid:
|
|
2653
|
-
isRequired:
|
|
2654
|
-
direction:
|
|
2655
|
-
children:
|
|
2656
|
-
...
|
|
2657
|
-
} =
|
|
2658
|
-
groupName:
|
|
2659
|
-
helperTextId: `helper-text-${
|
|
2660
|
-
errorMessageId: `error-message-${
|
|
2661
|
-
isInvalid:
|
|
2662
|
-
isRequired:
|
|
2663
|
-
},
|
|
2664
|
-
return /* @__PURE__ */
|
|
957
|
+
};
|
|
958
|
+
Ge.displayName = "LabelControl";
|
|
959
|
+
const K = (s) => {
|
|
960
|
+
const d = R.useId(), {
|
|
961
|
+
labelText: f,
|
|
962
|
+
className: b,
|
|
963
|
+
helperText: i,
|
|
964
|
+
errorMessage: o,
|
|
965
|
+
isInvalid: n,
|
|
966
|
+
isRequired: g,
|
|
967
|
+
direction: c,
|
|
968
|
+
children: m,
|
|
969
|
+
...p
|
|
970
|
+
} = s, E = {
|
|
971
|
+
groupName: p.name ?? `group-${d}`,
|
|
972
|
+
helperTextId: `helper-text-${d}`,
|
|
973
|
+
errorMessageId: `error-message-${d}`,
|
|
974
|
+
isInvalid: n ?? !1,
|
|
975
|
+
isRequired: g ?? !1
|
|
976
|
+
}, j = c ?? "flex-col";
|
|
977
|
+
return /* @__PURE__ */ l.jsx(_.Provider, { value: E, children: /* @__PURE__ */ l.jsxs(
|
|
2665
978
|
"fieldset",
|
|
2666
979
|
{
|
|
2667
|
-
className:
|
|
2668
|
-
|
|
2669
|
-
...x,
|
|
980
|
+
className: N("flex flex-col items-start gap-2", b),
|
|
981
|
+
...p,
|
|
2670
982
|
children: [
|
|
2671
|
-
/* @__PURE__ */
|
|
2672
|
-
|
|
2673
|
-
|
|
983
|
+
/* @__PURE__ */ l.jsx("legend", { children: /* @__PURE__ */ l.jsxs("p", { className: N("block text-label", n && "text-red-800"), children: [
|
|
984
|
+
f,
|
|
985
|
+
g && /* @__PURE__ */ l.jsx("span", { className: "text-red-800", children: " *" })
|
|
2674
986
|
] }) }),
|
|
2675
|
-
/* @__PURE__ */
|
|
2676
|
-
|
|
2677
|
-
|
|
987
|
+
/* @__PURE__ */ l.jsx("div", { className: N("inline-flex", j), children: m }),
|
|
988
|
+
i && /* @__PURE__ */ l.jsx("p", { id: E.helperTextId, className: "text-sup text-solid-gray-700", children: i }),
|
|
989
|
+
n && /* @__PURE__ */ l.jsx("p", { id: E.errorMessageId, className: "text-label text-red-800", children: o })
|
|
2678
990
|
]
|
|
2679
991
|
}
|
|
2680
992
|
) });
|
|
2681
|
-
}
|
|
2682
|
-
|
|
2683
|
-
const
|
|
993
|
+
};
|
|
994
|
+
K.displayName = "FieldsetControl";
|
|
995
|
+
const He = (s) => {
|
|
2684
996
|
const {
|
|
2685
|
-
items:
|
|
2686
|
-
onChange:
|
|
2687
|
-
className:
|
|
2688
|
-
labelText:
|
|
2689
|
-
helperText:
|
|
2690
|
-
errorMessage:
|
|
2691
|
-
isInvalid:
|
|
2692
|
-
isRequired:
|
|
2693
|
-
size:
|
|
2694
|
-
...
|
|
2695
|
-
} =
|
|
2696
|
-
return /* @__PURE__ */
|
|
2697
|
-
|
|
997
|
+
items: d,
|
|
998
|
+
onChange: f,
|
|
999
|
+
className: b,
|
|
1000
|
+
labelText: i,
|
|
1001
|
+
helperText: o,
|
|
1002
|
+
errorMessage: n,
|
|
1003
|
+
isInvalid: g,
|
|
1004
|
+
isRequired: c,
|
|
1005
|
+
size: m,
|
|
1006
|
+
...p
|
|
1007
|
+
} = s;
|
|
1008
|
+
return /* @__PURE__ */ l.jsx(
|
|
1009
|
+
K,
|
|
2698
1010
|
{
|
|
2699
|
-
className:
|
|
2700
|
-
labelText:
|
|
2701
|
-
helperText:
|
|
2702
|
-
errorMessage:
|
|
2703
|
-
isInvalid:
|
|
2704
|
-
isRequired:
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
Pt,
|
|
1011
|
+
className: b,
|
|
1012
|
+
labelText: i,
|
|
1013
|
+
helperText: o,
|
|
1014
|
+
errorMessage: n,
|
|
1015
|
+
isInvalid: g,
|
|
1016
|
+
isRequired: c,
|
|
1017
|
+
...p,
|
|
1018
|
+
children: d.map(({ label: y, value: E }) => /* @__PURE__ */ l.jsx(
|
|
1019
|
+
ke,
|
|
2709
1020
|
{
|
|
2710
|
-
size:
|
|
2711
|
-
value:
|
|
2712
|
-
onChange:
|
|
2713
|
-
children:
|
|
1021
|
+
size: m,
|
|
1022
|
+
value: E,
|
|
1023
|
+
onChange: f,
|
|
1024
|
+
children: y
|
|
2714
1025
|
},
|
|
2715
|
-
`${
|
|
1026
|
+
`${y}-${E}`
|
|
2716
1027
|
))
|
|
2717
1028
|
}
|
|
2718
1029
|
);
|
|
2719
|
-
}
|
|
2720
|
-
|
|
2721
|
-
const
|
|
1030
|
+
};
|
|
1031
|
+
He.displayName = "CheckboxGroup";
|
|
1032
|
+
const Je = (s) => {
|
|
2722
1033
|
const {
|
|
2723
|
-
items:
|
|
2724
|
-
onChange:
|
|
2725
|
-
className:
|
|
2726
|
-
labelText:
|
|
2727
|
-
helperText:
|
|
2728
|
-
errorMessage:
|
|
2729
|
-
isInvalid:
|
|
2730
|
-
isRequired:
|
|
2731
|
-
defaultValue:
|
|
2732
|
-
size:
|
|
2733
|
-
...
|
|
2734
|
-
} =
|
|
2735
|
-
return /* @__PURE__ */
|
|
2736
|
-
|
|
1034
|
+
items: d,
|
|
1035
|
+
onChange: f,
|
|
1036
|
+
className: b,
|
|
1037
|
+
labelText: i,
|
|
1038
|
+
helperText: o,
|
|
1039
|
+
errorMessage: n,
|
|
1040
|
+
isInvalid: g,
|
|
1041
|
+
isRequired: c,
|
|
1042
|
+
defaultValue: m,
|
|
1043
|
+
size: p,
|
|
1044
|
+
...y
|
|
1045
|
+
} = s;
|
|
1046
|
+
return /* @__PURE__ */ l.jsx(
|
|
1047
|
+
K,
|
|
2737
1048
|
{
|
|
2738
|
-
className:
|
|
2739
|
-
labelText:
|
|
2740
|
-
helperText:
|
|
2741
|
-
errorMessage:
|
|
2742
|
-
isInvalid:
|
|
2743
|
-
isRequired:
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
Tt,
|
|
1049
|
+
className: b,
|
|
1050
|
+
labelText: i,
|
|
1051
|
+
helperText: o,
|
|
1052
|
+
errorMessage: n,
|
|
1053
|
+
isInvalid: g,
|
|
1054
|
+
isRequired: c,
|
|
1055
|
+
...y,
|
|
1056
|
+
children: d.map(({ label: E, value: j }) => /* @__PURE__ */ l.jsx(
|
|
1057
|
+
_e,
|
|
2748
1058
|
{
|
|
2749
|
-
size:
|
|
2750
|
-
value:
|
|
2751
|
-
onChange:
|
|
2752
|
-
defaultChecked:
|
|
2753
|
-
children:
|
|
1059
|
+
size: p,
|
|
1060
|
+
value: j,
|
|
1061
|
+
onChange: f,
|
|
1062
|
+
defaultChecked: m === j,
|
|
1063
|
+
children: E
|
|
2754
1064
|
},
|
|
2755
|
-
`${
|
|
1065
|
+
`${E}-${j}`
|
|
2756
1066
|
))
|
|
2757
1067
|
}
|
|
2758
1068
|
);
|
|
2759
|
-
}
|
|
2760
|
-
|
|
1069
|
+
};
|
|
1070
|
+
Je.displayName = "RadioGroup";
|
|
2761
1071
|
export {
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
1072
|
+
ke as Checkbox,
|
|
1073
|
+
He as CheckboxGroup,
|
|
1074
|
+
K as FieldsetControl,
|
|
1075
|
+
Be as FileInput,
|
|
1076
|
+
Ue as Input,
|
|
1077
|
+
Ge as LabelControl,
|
|
1078
|
+
_e as Radio,
|
|
1079
|
+
Je as RadioGroup,
|
|
1080
|
+
We as Select,
|
|
1081
|
+
Fe as Textarea
|
|
2772
1082
|
};
|