solid-hook-form 1.5.0 → 1.5.2
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/README.md +2 -2
- package/dist/main.js +336 -339
- package/dist/main.umd.cjs +4 -4
- package/dist/use_form.d.ts +1 -1
- package/package.json +4 -2
package/dist/main.js
CHANGED
|
@@ -16,7 +16,7 @@ const Ze = (n) => {
|
|
|
16
16
|
function Je(n) {
|
|
17
17
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
18
18
|
}
|
|
19
|
-
var ye = { exports: {} },
|
|
19
|
+
var ye = { exports: {} }, p = {};
|
|
20
20
|
/**
|
|
21
21
|
* @license React
|
|
22
22
|
* react.production.js
|
|
@@ -28,13 +28,13 @@ var ye = { exports: {} }, l = {};
|
|
|
28
28
|
*/
|
|
29
29
|
var Me;
|
|
30
30
|
function et() {
|
|
31
|
-
if (Me) return
|
|
31
|
+
if (Me) return p;
|
|
32
32
|
Me = 1;
|
|
33
|
-
var n = Symbol.for("react.transitional.element"), s = Symbol.for("react.portal"),
|
|
33
|
+
var n = Symbol.for("react.transitional.element"), s = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), L = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), N = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), z = Symbol.iterator;
|
|
34
34
|
function Z(t) {
|
|
35
|
-
return t === null || typeof t != "object" ? null : (t =
|
|
35
|
+
return t === null || typeof t != "object" ? null : (t = z && t[z] || t["@@iterator"], typeof t == "function" ? t : null);
|
|
36
36
|
}
|
|
37
|
-
var
|
|
37
|
+
var G = {
|
|
38
38
|
isMounted: function() {
|
|
39
39
|
return !1;
|
|
40
40
|
},
|
|
@@ -44,9 +44,9 @@ function et() {
|
|
|
44
44
|
},
|
|
45
45
|
enqueueSetState: function() {
|
|
46
46
|
}
|
|
47
|
-
},
|
|
47
|
+
}, B = Object.assign, J = {};
|
|
48
48
|
function H(t, o, f) {
|
|
49
|
-
this.props = t, this.context = o, this.refs =
|
|
49
|
+
this.props = t, this.context = o, this.refs = J, this.updater = f || G;
|
|
50
50
|
}
|
|
51
51
|
H.prototype.isReactComponent = {}, H.prototype.setState = function(t, o) {
|
|
52
52
|
if (typeof t != "object" && typeof t != "function" && t != null)
|
|
@@ -60,13 +60,13 @@ function et() {
|
|
|
60
60
|
function W() {
|
|
61
61
|
}
|
|
62
62
|
W.prototype = H.prototype;
|
|
63
|
-
function
|
|
64
|
-
this.props = t, this.context = o, this.refs =
|
|
63
|
+
function Q(t, o, f) {
|
|
64
|
+
this.props = t, this.context = o, this.refs = J, this.updater = f || G;
|
|
65
65
|
}
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
var
|
|
69
|
-
function
|
|
66
|
+
var $ = Q.prototype = new W();
|
|
67
|
+
$.constructor = Q, B($, H.prototype), $.isPureReactComponent = !0;
|
|
68
|
+
var K = Array.isArray, T = { H: null, A: null, T: null, S: null, V: null }, X = Object.prototype.hasOwnProperty;
|
|
69
|
+
function x(t, o, f, c, _, S) {
|
|
70
70
|
return f = S.ref, {
|
|
71
71
|
$$typeof: n,
|
|
72
72
|
type: t,
|
|
@@ -75,8 +75,8 @@ function et() {
|
|
|
75
75
|
props: S
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return
|
|
78
|
+
function q(t, o) {
|
|
79
|
+
return x(
|
|
80
80
|
t.type,
|
|
81
81
|
o,
|
|
82
82
|
void 0,
|
|
@@ -85,7 +85,7 @@ function et() {
|
|
|
85
85
|
t.props
|
|
86
86
|
);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Y(t) {
|
|
89
89
|
return typeof t == "object" && t !== null && t.$$typeof === n;
|
|
90
90
|
}
|
|
91
91
|
function ae(t) {
|
|
@@ -95,19 +95,19 @@ function et() {
|
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
var C = /\/+/g;
|
|
98
|
-
function
|
|
98
|
+
function ee(t, o) {
|
|
99
99
|
return typeof t == "object" && t !== null && t.key != null ? ae("" + t.key) : o.toString(36);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function l() {
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function O(t) {
|
|
104
104
|
switch (t.status) {
|
|
105
105
|
case "fulfilled":
|
|
106
106
|
return t.value;
|
|
107
107
|
case "rejected":
|
|
108
108
|
throw t.reason;
|
|
109
109
|
default:
|
|
110
|
-
switch (typeof t.status == "string" ? t.then(
|
|
110
|
+
switch (typeof t.status == "string" ? t.then(l, l) : (t.status = "pending", t.then(
|
|
111
111
|
function(o) {
|
|
112
112
|
t.status === "pending" && (t.status = "fulfilled", t.value = o);
|
|
113
113
|
},
|
|
@@ -123,7 +123,7 @@ function et() {
|
|
|
123
123
|
}
|
|
124
124
|
throw t;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function E(t, o, f, c, _) {
|
|
127
127
|
var S = typeof t;
|
|
128
128
|
(S === "undefined" || S === "boolean") && (t = null);
|
|
129
129
|
var m = !1;
|
|
@@ -141,54 +141,54 @@ function et() {
|
|
|
141
141
|
case s:
|
|
142
142
|
m = !0;
|
|
143
143
|
break;
|
|
144
|
-
case
|
|
145
|
-
return m = t._init,
|
|
144
|
+
case D:
|
|
145
|
+
return m = t._init, E(
|
|
146
146
|
m(t._payload),
|
|
147
147
|
o,
|
|
148
148
|
f,
|
|
149
149
|
c,
|
|
150
|
-
|
|
150
|
+
_
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
if (m)
|
|
155
|
-
return
|
|
156
|
-
return
|
|
157
|
-
})) :
|
|
158
|
-
|
|
159
|
-
f + (
|
|
155
|
+
return _ = _(t), m = c === "" ? "." + ee(t, 0) : c, K(_) ? (f = "", m != null && (f = m.replace(C, "$&/") + "/"), E(_, o, f, "", function(re) {
|
|
156
|
+
return re;
|
|
157
|
+
})) : _ != null && (Y(_) && (_ = q(
|
|
158
|
+
_,
|
|
159
|
+
f + (_.key == null || t && t.key === _.key ? "" : ("" + _.key).replace(
|
|
160
160
|
C,
|
|
161
161
|
"$&/"
|
|
162
162
|
) + "/") + m
|
|
163
|
-
)), o.push(
|
|
163
|
+
)), o.push(_)), 1;
|
|
164
164
|
m = 0;
|
|
165
|
-
var
|
|
166
|
-
if (
|
|
165
|
+
var F = c === "" ? "." : c + ":";
|
|
166
|
+
if (K(t))
|
|
167
167
|
for (var A = 0; A < t.length; A++)
|
|
168
|
-
c = t[A], S =
|
|
168
|
+
c = t[A], S = F + ee(c, A), m += E(
|
|
169
169
|
c,
|
|
170
170
|
o,
|
|
171
171
|
f,
|
|
172
172
|
S,
|
|
173
|
-
|
|
173
|
+
_
|
|
174
174
|
);
|
|
175
175
|
else if (A = Z(t), typeof A == "function")
|
|
176
176
|
for (t = A.call(t), A = 0; !(c = t.next()).done; )
|
|
177
|
-
c = c.value, S =
|
|
177
|
+
c = c.value, S = F + ee(c, A++), m += E(
|
|
178
178
|
c,
|
|
179
179
|
o,
|
|
180
180
|
f,
|
|
181
181
|
S,
|
|
182
|
-
|
|
182
|
+
_
|
|
183
183
|
);
|
|
184
184
|
else if (S === "object") {
|
|
185
185
|
if (typeof t.then == "function")
|
|
186
|
-
return
|
|
187
|
-
|
|
186
|
+
return E(
|
|
187
|
+
O(t),
|
|
188
188
|
o,
|
|
189
189
|
f,
|
|
190
190
|
c,
|
|
191
|
-
|
|
191
|
+
_
|
|
192
192
|
);
|
|
193
193
|
throw o = String(t), Error(
|
|
194
194
|
"Objects are not valid as a React child (found: " + (o === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : o) + "). If you meant to render a collection of children, use an array instead."
|
|
@@ -196,14 +196,14 @@ function et() {
|
|
|
196
196
|
}
|
|
197
197
|
return m;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function k(t, o, f) {
|
|
200
200
|
if (t == null) return t;
|
|
201
|
-
var c = [],
|
|
202
|
-
return
|
|
203
|
-
return o.call(f, S,
|
|
201
|
+
var c = [], _ = 0;
|
|
202
|
+
return E(t, c, "", "", function(S) {
|
|
203
|
+
return o.call(f, S, _++);
|
|
204
204
|
}), c;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function U(t) {
|
|
207
207
|
if (t._status === -1) {
|
|
208
208
|
var o = t._result;
|
|
209
209
|
o = o(), o.then(
|
|
@@ -218,7 +218,7 @@ function et() {
|
|
|
218
218
|
if (t._status === 1) return t._result.default;
|
|
219
219
|
throw t._result;
|
|
220
220
|
}
|
|
221
|
-
var
|
|
221
|
+
var te = typeof reportError == "function" ? reportError : function(t) {
|
|
222
222
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
223
223
|
var o = new window.ErrorEvent("error", {
|
|
224
224
|
bubbles: !0,
|
|
@@ -235,10 +235,10 @@ function et() {
|
|
|
235
235
|
};
|
|
236
236
|
function ce() {
|
|
237
237
|
}
|
|
238
|
-
return
|
|
239
|
-
map:
|
|
238
|
+
return p.Children = {
|
|
239
|
+
map: k,
|
|
240
240
|
forEach: function(t, o, f) {
|
|
241
|
-
|
|
241
|
+
k(
|
|
242
242
|
t,
|
|
243
243
|
function() {
|
|
244
244
|
o.apply(this, arguments);
|
|
@@ -248,150 +248,150 @@ function et() {
|
|
|
248
248
|
},
|
|
249
249
|
count: function(t) {
|
|
250
250
|
var o = 0;
|
|
251
|
-
return
|
|
251
|
+
return k(t, function() {
|
|
252
252
|
o++;
|
|
253
253
|
}), o;
|
|
254
254
|
},
|
|
255
255
|
toArray: function(t) {
|
|
256
|
-
return
|
|
256
|
+
return k(t, function(o) {
|
|
257
257
|
return o;
|
|
258
258
|
}) || [];
|
|
259
259
|
},
|
|
260
260
|
only: function(t) {
|
|
261
|
-
if (!
|
|
261
|
+
if (!Y(t))
|
|
262
262
|
throw Error(
|
|
263
263
|
"React.Children.only expected to receive a single React element child."
|
|
264
264
|
);
|
|
265
265
|
return t;
|
|
266
266
|
}
|
|
267
|
-
},
|
|
267
|
+
}, p.Component = H, p.Fragment = g, p.Profiler = R, p.PureComponent = Q, p.StrictMode = w, p.Suspense = M, p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, p.__COMPILER_RUNTIME = {
|
|
268
268
|
__proto__: null,
|
|
269
269
|
c: function(t) {
|
|
270
|
-
return
|
|
270
|
+
return T.H.useMemoCache(t);
|
|
271
271
|
}
|
|
272
|
-
},
|
|
272
|
+
}, p.cache = function(t) {
|
|
273
273
|
return function() {
|
|
274
274
|
return t.apply(null, arguments);
|
|
275
275
|
};
|
|
276
|
-
},
|
|
276
|
+
}, p.cloneElement = function(t, o, f) {
|
|
277
277
|
if (t == null)
|
|
278
278
|
throw Error(
|
|
279
279
|
"The argument must be a React element, but you passed " + t + "."
|
|
280
280
|
);
|
|
281
|
-
var c =
|
|
281
|
+
var c = B({}, t.props), _ = t.key, S = void 0;
|
|
282
282
|
if (o != null)
|
|
283
|
-
for (m in o.ref !== void 0 && (S = void 0), o.key !== void 0 && (
|
|
284
|
-
!
|
|
283
|
+
for (m in o.ref !== void 0 && (S = void 0), o.key !== void 0 && (_ = "" + o.key), o)
|
|
284
|
+
!X.call(o, m) || m === "key" || m === "__self" || m === "__source" || m === "ref" && o.ref === void 0 || (c[m] = o[m]);
|
|
285
285
|
var m = arguments.length - 2;
|
|
286
286
|
if (m === 1) c.children = f;
|
|
287
287
|
else if (1 < m) {
|
|
288
|
-
for (var
|
|
289
|
-
|
|
290
|
-
c.children =
|
|
288
|
+
for (var F = Array(m), A = 0; A < m; A++)
|
|
289
|
+
F[A] = arguments[A + 2];
|
|
290
|
+
c.children = F;
|
|
291
291
|
}
|
|
292
|
-
return
|
|
293
|
-
},
|
|
292
|
+
return x(t.type, _, void 0, void 0, S, c);
|
|
293
|
+
}, p.createContext = function(t) {
|
|
294
294
|
return t = {
|
|
295
|
-
$$typeof:
|
|
295
|
+
$$typeof: L,
|
|
296
296
|
_currentValue: t,
|
|
297
297
|
_currentValue2: t,
|
|
298
298
|
_threadCount: 0,
|
|
299
299
|
Provider: null,
|
|
300
300
|
Consumer: null
|
|
301
301
|
}, t.Provider = t, t.Consumer = {
|
|
302
|
-
$$typeof:
|
|
302
|
+
$$typeof: j,
|
|
303
303
|
_context: t
|
|
304
304
|
}, t;
|
|
305
|
-
},
|
|
306
|
-
var c,
|
|
305
|
+
}, p.createElement = function(t, o, f) {
|
|
306
|
+
var c, _ = {}, S = null;
|
|
307
307
|
if (o != null)
|
|
308
308
|
for (c in o.key !== void 0 && (S = "" + o.key), o)
|
|
309
|
-
|
|
309
|
+
X.call(o, c) && c !== "key" && c !== "__self" && c !== "__source" && (_[c] = o[c]);
|
|
310
310
|
var m = arguments.length - 2;
|
|
311
|
-
if (m === 1)
|
|
311
|
+
if (m === 1) _.children = f;
|
|
312
312
|
else if (1 < m) {
|
|
313
|
-
for (var
|
|
314
|
-
|
|
315
|
-
|
|
313
|
+
for (var F = Array(m), A = 0; A < m; A++)
|
|
314
|
+
F[A] = arguments[A + 2];
|
|
315
|
+
_.children = F;
|
|
316
316
|
}
|
|
317
317
|
if (t && t.defaultProps)
|
|
318
318
|
for (c in m = t.defaultProps, m)
|
|
319
|
-
|
|
320
|
-
return
|
|
321
|
-
},
|
|
319
|
+
_[c] === void 0 && (_[c] = m[c]);
|
|
320
|
+
return x(t, S, void 0, void 0, null, _);
|
|
321
|
+
}, p.createRef = function() {
|
|
322
322
|
return { current: null };
|
|
323
|
-
},
|
|
323
|
+
}, p.forwardRef = function(t) {
|
|
324
324
|
return { $$typeof: P, render: t };
|
|
325
|
-
},
|
|
325
|
+
}, p.isValidElement = Y, p.lazy = function(t) {
|
|
326
326
|
return {
|
|
327
|
-
$$typeof:
|
|
327
|
+
$$typeof: D,
|
|
328
328
|
_payload: { _status: -1, _result: t },
|
|
329
|
-
_init:
|
|
329
|
+
_init: U
|
|
330
330
|
};
|
|
331
|
-
},
|
|
331
|
+
}, p.memo = function(t, o) {
|
|
332
332
|
return {
|
|
333
|
-
$$typeof:
|
|
333
|
+
$$typeof: N,
|
|
334
334
|
type: t,
|
|
335
335
|
compare: o === void 0 ? null : o
|
|
336
336
|
};
|
|
337
|
-
},
|
|
338
|
-
var o =
|
|
339
|
-
|
|
337
|
+
}, p.startTransition = function(t) {
|
|
338
|
+
var o = T.T, f = {};
|
|
339
|
+
T.T = f;
|
|
340
340
|
try {
|
|
341
|
-
var c = t(),
|
|
342
|
-
|
|
341
|
+
var c = t(), _ = T.S;
|
|
342
|
+
_ !== null && _(f, c), typeof c == "object" && c !== null && typeof c.then == "function" && c.then(ce, te);
|
|
343
343
|
} catch (S) {
|
|
344
|
-
|
|
344
|
+
te(S);
|
|
345
345
|
} finally {
|
|
346
|
-
|
|
346
|
+
T.T = o;
|
|
347
347
|
}
|
|
348
|
-
},
|
|
349
|
-
return
|
|
350
|
-
},
|
|
351
|
-
return
|
|
352
|
-
},
|
|
353
|
-
return
|
|
354
|
-
},
|
|
355
|
-
return
|
|
356
|
-
},
|
|
357
|
-
return
|
|
358
|
-
},
|
|
359
|
-
},
|
|
360
|
-
return
|
|
361
|
-
},
|
|
362
|
-
var c =
|
|
348
|
+
}, p.unstable_useCacheRefresh = function() {
|
|
349
|
+
return T.H.useCacheRefresh();
|
|
350
|
+
}, p.use = function(t) {
|
|
351
|
+
return T.H.use(t);
|
|
352
|
+
}, p.useActionState = function(t, o, f) {
|
|
353
|
+
return T.H.useActionState(t, o, f);
|
|
354
|
+
}, p.useCallback = function(t, o) {
|
|
355
|
+
return T.H.useCallback(t, o);
|
|
356
|
+
}, p.useContext = function(t) {
|
|
357
|
+
return T.H.useContext(t);
|
|
358
|
+
}, p.useDebugValue = function() {
|
|
359
|
+
}, p.useDeferredValue = function(t, o) {
|
|
360
|
+
return T.H.useDeferredValue(t, o);
|
|
361
|
+
}, p.useEffect = function(t, o, f) {
|
|
362
|
+
var c = T.H;
|
|
363
363
|
if (typeof f == "function")
|
|
364
364
|
throw Error(
|
|
365
365
|
"useEffect CRUD overload is not enabled in this build of React."
|
|
366
366
|
);
|
|
367
367
|
return c.useEffect(t, o);
|
|
368
|
-
},
|
|
369
|
-
return
|
|
370
|
-
},
|
|
371
|
-
return
|
|
372
|
-
},
|
|
373
|
-
return
|
|
374
|
-
},
|
|
375
|
-
return
|
|
376
|
-
},
|
|
377
|
-
return
|
|
378
|
-
},
|
|
379
|
-
return
|
|
380
|
-
},
|
|
381
|
-
return
|
|
382
|
-
},
|
|
383
|
-
return
|
|
384
|
-
},
|
|
385
|
-
return
|
|
386
|
-
},
|
|
387
|
-
return
|
|
368
|
+
}, p.useId = function() {
|
|
369
|
+
return T.H.useId();
|
|
370
|
+
}, p.useImperativeHandle = function(t, o, f) {
|
|
371
|
+
return T.H.useImperativeHandle(t, o, f);
|
|
372
|
+
}, p.useInsertionEffect = function(t, o) {
|
|
373
|
+
return T.H.useInsertionEffect(t, o);
|
|
374
|
+
}, p.useLayoutEffect = function(t, o) {
|
|
375
|
+
return T.H.useLayoutEffect(t, o);
|
|
376
|
+
}, p.useMemo = function(t, o) {
|
|
377
|
+
return T.H.useMemo(t, o);
|
|
378
|
+
}, p.useOptimistic = function(t, o) {
|
|
379
|
+
return T.H.useOptimistic(t, o);
|
|
380
|
+
}, p.useReducer = function(t, o, f) {
|
|
381
|
+
return T.H.useReducer(t, o, f);
|
|
382
|
+
}, p.useRef = function(t) {
|
|
383
|
+
return T.H.useRef(t);
|
|
384
|
+
}, p.useState = function(t) {
|
|
385
|
+
return T.H.useState(t);
|
|
386
|
+
}, p.useSyncExternalStore = function(t, o, f) {
|
|
387
|
+
return T.H.useSyncExternalStore(
|
|
388
388
|
t,
|
|
389
389
|
o,
|
|
390
390
|
f
|
|
391
391
|
);
|
|
392
|
-
},
|
|
393
|
-
return
|
|
394
|
-
},
|
|
392
|
+
}, p.useTransition = function() {
|
|
393
|
+
return T.H.useTransition();
|
|
394
|
+
}, p.version = "19.1.0", p;
|
|
395
395
|
}
|
|
396
396
|
var se = { exports: {} };
|
|
397
397
|
/**
|
|
@@ -408,8 +408,8 @@ var $e;
|
|
|
408
408
|
function tt() {
|
|
409
409
|
return $e || ($e = 1, function(n, s) {
|
|
410
410
|
process.env.NODE_ENV !== "production" && function() {
|
|
411
|
-
function
|
|
412
|
-
Object.defineProperty(
|
|
411
|
+
function g(e, r) {
|
|
412
|
+
Object.defineProperty(j.prototype, e, {
|
|
413
413
|
get: function() {
|
|
414
414
|
console.warn(
|
|
415
415
|
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
@@ -419,10 +419,10 @@ function tt() {
|
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function w(e) {
|
|
423
423
|
return e === null || typeof e != "object" ? null : (e = Ee && e[Ee] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function R(e, r) {
|
|
426
426
|
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
427
427
|
var u = e + "." + r;
|
|
428
428
|
we[u] || (console.error(
|
|
@@ -431,20 +431,20 @@ function tt() {
|
|
|
431
431
|
e
|
|
432
432
|
), we[u] = !0);
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function j(e, r, u) {
|
|
435
435
|
this.props = e, this.context = r, this.refs = he, this.updater = u || Re;
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function L() {
|
|
438
438
|
}
|
|
439
439
|
function P(e, r, u) {
|
|
440
440
|
this.props = e, this.context = r, this.refs = he, this.updater = u || Re;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function M(e) {
|
|
443
443
|
return "" + e;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function N(e) {
|
|
446
446
|
try {
|
|
447
|
-
|
|
447
|
+
M(e);
|
|
448
448
|
var r = !1;
|
|
449
449
|
} catch {
|
|
450
450
|
r = !0;
|
|
@@ -456,10 +456,10 @@ function tt() {
|
|
|
456
456
|
r,
|
|
457
457
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
458
458
|
i
|
|
459
|
-
),
|
|
459
|
+
), M(e);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function D(e) {
|
|
463
463
|
if (e == null) return null;
|
|
464
464
|
if (typeof e == "function")
|
|
465
465
|
return e.$$typeof === ze ? null : e.displayName || e.name || null;
|
|
@@ -473,7 +473,7 @@ function tt() {
|
|
|
473
473
|
return "StrictMode";
|
|
474
474
|
case m:
|
|
475
475
|
return "Suspense";
|
|
476
|
-
case
|
|
476
|
+
case F:
|
|
477
477
|
return "SuspenseList";
|
|
478
478
|
case We:
|
|
479
479
|
return "Activity";
|
|
@@ -484,7 +484,7 @@ function tt() {
|
|
|
484
484
|
), e.$$typeof) {
|
|
485
485
|
case ce:
|
|
486
486
|
return "Portal";
|
|
487
|
-
case
|
|
487
|
+
case _:
|
|
488
488
|
return (e.displayName || "Context") + ".Provider";
|
|
489
489
|
case c:
|
|
490
490
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
@@ -492,22 +492,22 @@ function tt() {
|
|
|
492
492
|
var r = e.render;
|
|
493
493
|
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
494
494
|
case A:
|
|
495
|
-
return r = e.displayName || null, r !== null ? r :
|
|
496
|
-
case
|
|
495
|
+
return r = e.displayName || null, r !== null ? r : D(e.type) || "Memo";
|
|
496
|
+
case re:
|
|
497
497
|
r = e._payload, e = e._init;
|
|
498
498
|
try {
|
|
499
|
-
return
|
|
499
|
+
return D(e(r));
|
|
500
500
|
} catch {
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
return null;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function z(e) {
|
|
506
506
|
if (e === t) return "<>";
|
|
507
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
507
|
+
if (typeof e == "object" && e !== null && e.$$typeof === re)
|
|
508
508
|
return "<...>";
|
|
509
509
|
try {
|
|
510
|
-
var r =
|
|
510
|
+
var r = D(e);
|
|
511
511
|
return r ? "<" + r + ">" : "<...>";
|
|
512
512
|
} catch {
|
|
513
513
|
return "<...>";
|
|
@@ -517,17 +517,17 @@ function tt() {
|
|
|
517
517
|
var e = h.A;
|
|
518
518
|
return e === null ? null : e.getOwner();
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function G() {
|
|
521
521
|
return Error("react-stack-top-frame");
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function B(e) {
|
|
524
524
|
if (le.call(e, "key")) {
|
|
525
525
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
526
526
|
if (r && r.isReactWarning) return !1;
|
|
527
527
|
}
|
|
528
528
|
return e.key !== void 0;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function J(e, r) {
|
|
531
531
|
function u() {
|
|
532
532
|
Ce || (Ce = !0, console.error(
|
|
533
533
|
"%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)",
|
|
@@ -540,14 +540,14 @@ function tt() {
|
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
542
|
function H() {
|
|
543
|
-
var e =
|
|
543
|
+
var e = D(this.type);
|
|
544
544
|
return Ae[e] || (Ae[e] = !0, console.error(
|
|
545
545
|
"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."
|
|
546
546
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
547
547
|
}
|
|
548
548
|
function W(e, r, u, i, a, v, d, b) {
|
|
549
549
|
return u = v.ref, e = {
|
|
550
|
-
$$typeof:
|
|
550
|
+
$$typeof: te,
|
|
551
551
|
type: e,
|
|
552
552
|
key: r,
|
|
553
553
|
props: v,
|
|
@@ -577,7 +577,7 @@ function tt() {
|
|
|
577
577
|
value: b
|
|
578
578
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function Q(e, r) {
|
|
581
581
|
return r = W(
|
|
582
582
|
e.type,
|
|
583
583
|
r,
|
|
@@ -589,28 +589,28 @@ function tt() {
|
|
|
589
589
|
e._debugTask
|
|
590
590
|
), e._store && (r._store.validated = e._store.validated), r;
|
|
591
591
|
}
|
|
592
|
-
function
|
|
593
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
592
|
+
function $(e) {
|
|
593
|
+
return typeof e == "object" && e !== null && e.$$typeof === te;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function K(e) {
|
|
596
596
|
var r = { "=": "=0", ":": "=2" };
|
|
597
597
|
return "$" + e.replace(/[=:]/g, function(u) {
|
|
598
598
|
return r[u];
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return typeof e == "object" && e !== null && e.key != null ? (
|
|
601
|
+
function T(e, r) {
|
|
602
|
+
return typeof e == "object" && e !== null && e.key != null ? (N(e.key), K("" + e.key)) : r.toString(36);
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function X() {
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function x(e) {
|
|
607
607
|
switch (e.status) {
|
|
608
608
|
case "fulfilled":
|
|
609
609
|
return e.value;
|
|
610
610
|
case "rejected":
|
|
611
611
|
throw e.reason;
|
|
612
612
|
default:
|
|
613
|
-
switch (typeof e.status == "string" ? e.then(
|
|
613
|
+
switch (typeof e.status == "string" ? e.then(X, X) : (e.status = "pending", e.then(
|
|
614
614
|
function(r) {
|
|
615
615
|
e.status === "pending" && (e.status = "fulfilled", e.value = r);
|
|
616
616
|
},
|
|
@@ -626,7 +626,7 @@ function tt() {
|
|
|
626
626
|
}
|
|
627
627
|
throw e;
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function q(e, r, u, i, a) {
|
|
630
630
|
var v = typeof e;
|
|
631
631
|
(v === "undefined" || v === "boolean") && (e = null);
|
|
632
632
|
var d = !1;
|
|
@@ -640,12 +640,12 @@ function tt() {
|
|
|
640
640
|
break;
|
|
641
641
|
case "object":
|
|
642
642
|
switch (e.$$typeof) {
|
|
643
|
-
case
|
|
643
|
+
case te:
|
|
644
644
|
case ce:
|
|
645
645
|
d = !0;
|
|
646
646
|
break;
|
|
647
|
-
case
|
|
648
|
-
return d = e._init,
|
|
647
|
+
case re:
|
|
648
|
+
return d = e._init, q(
|
|
649
649
|
d(e._payload),
|
|
650
650
|
r,
|
|
651
651
|
u,
|
|
@@ -656,31 +656,31 @@ function tt() {
|
|
|
656
656
|
}
|
|
657
657
|
if (d) {
|
|
658
658
|
d = e, a = a(d);
|
|
659
|
-
var b = i === "" ? "." +
|
|
660
|
-
return be(a) ? (u = "", b != null && (u = b.replace(Pe, "$&/") + "/"),
|
|
661
|
-
return
|
|
662
|
-
})) : a != null && (
|
|
659
|
+
var b = i === "" ? "." + T(d, 0) : i;
|
|
660
|
+
return be(a) ? (u = "", b != null && (u = b.replace(Pe, "$&/") + "/"), q(a, r, u, "", function(V) {
|
|
661
|
+
return V;
|
|
662
|
+
})) : a != null && ($(a) && (a.key != null && (d && d.key === a.key || N(a.key)), u = Q(
|
|
663
663
|
a,
|
|
664
664
|
u + (a.key == null || d && d.key === a.key ? "" : ("" + a.key).replace(
|
|
665
665
|
Pe,
|
|
666
666
|
"$&/"
|
|
667
667
|
) + "/") + b
|
|
668
|
-
), i !== "" && d != null &&
|
|
668
|
+
), i !== "" && d != null && $(d) && d.key == null && d._store && !d._store.validated && (u._store.validated = 2), a = u), r.push(a)), 1;
|
|
669
669
|
}
|
|
670
670
|
if (d = 0, b = i === "" ? "." : i + ":", be(e))
|
|
671
671
|
for (var y = 0; y < e.length; y++)
|
|
672
|
-
i = e[y], v = b +
|
|
672
|
+
i = e[y], v = b + T(i, y), d += q(
|
|
673
673
|
i,
|
|
674
674
|
r,
|
|
675
675
|
u,
|
|
676
676
|
v,
|
|
677
677
|
a
|
|
678
678
|
);
|
|
679
|
-
else if (y =
|
|
679
|
+
else if (y = w(e), typeof y == "function")
|
|
680
680
|
for (y === e.entries && (ke || console.warn(
|
|
681
681
|
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
682
682
|
), ke = !0), e = y.call(e), y = 0; !(i = e.next()).done; )
|
|
683
|
-
i = i.value, v = b +
|
|
683
|
+
i = i.value, v = b + T(i, y++), d += q(
|
|
684
684
|
i,
|
|
685
685
|
r,
|
|
686
686
|
u,
|
|
@@ -689,8 +689,8 @@ function tt() {
|
|
|
689
689
|
);
|
|
690
690
|
else if (v === "object") {
|
|
691
691
|
if (typeof e.then == "function")
|
|
692
|
-
return
|
|
693
|
-
|
|
692
|
+
return q(
|
|
693
|
+
x(e),
|
|
694
694
|
r,
|
|
695
695
|
u,
|
|
696
696
|
i,
|
|
@@ -702,10 +702,10 @@ function tt() {
|
|
|
702
702
|
}
|
|
703
703
|
return d;
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function Y(e, r, u) {
|
|
706
706
|
if (e == null) return e;
|
|
707
707
|
var i = [], a = 0;
|
|
708
|
-
return
|
|
708
|
+
return q(e, i, "", "", function(v) {
|
|
709
709
|
return r.call(u, v, a++);
|
|
710
710
|
}), i;
|
|
711
711
|
}
|
|
@@ -749,9 +749,9 @@ Your code should look like:
|
|
|
749
749
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
750
750
|
), e;
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function ee() {
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function l(e) {
|
|
755
755
|
if (pe === null)
|
|
756
756
|
try {
|
|
757
757
|
var r = ("require" + Math.random()).slice(0, 7);
|
|
@@ -770,30 +770,30 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
770
770
|
}
|
|
771
771
|
return pe(e);
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function O(e) {
|
|
774
774
|
return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function E(e, r) {
|
|
777
777
|
r !== de - 1 && console.error(
|
|
778
778
|
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
779
779
|
), de = r;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function k(e, r, u) {
|
|
782
782
|
var i = h.actQueue;
|
|
783
783
|
if (i !== null)
|
|
784
784
|
if (i.length !== 0)
|
|
785
785
|
try {
|
|
786
|
-
|
|
787
|
-
return
|
|
786
|
+
U(i), l(function() {
|
|
787
|
+
return k(e, r, u);
|
|
788
788
|
});
|
|
789
789
|
return;
|
|
790
790
|
} catch (a) {
|
|
791
791
|
h.thrownErrors.push(a);
|
|
792
792
|
}
|
|
793
793
|
else h.actQueue = null;
|
|
794
|
-
0 < h.thrownErrors.length ? (i =
|
|
794
|
+
0 < h.thrownErrors.length ? (i = O(h.thrownErrors), h.thrownErrors.length = 0, u(i)) : r(e);
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function U(e) {
|
|
797
797
|
if (!ve) {
|
|
798
798
|
ve = !0;
|
|
799
799
|
var r = 0;
|
|
@@ -821,30 +821,30 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
823
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
824
|
-
var
|
|
824
|
+
var te = Symbol.for("react.transitional.element"), ce = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), F = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), re = Symbol.for("react.lazy"), We = Symbol.for("react.activity"), Ee = Symbol.iterator, we = {}, Re = {
|
|
825
825
|
isMounted: function() {
|
|
826
826
|
return !1;
|
|
827
827
|
},
|
|
828
828
|
enqueueForceUpdate: function(e) {
|
|
829
|
-
|
|
829
|
+
R(e, "forceUpdate");
|
|
830
830
|
},
|
|
831
831
|
enqueueReplaceState: function(e) {
|
|
832
|
-
|
|
832
|
+
R(e, "replaceState");
|
|
833
833
|
},
|
|
834
834
|
enqueueSetState: function(e) {
|
|
835
|
-
|
|
835
|
+
R(e, "setState");
|
|
836
836
|
}
|
|
837
837
|
}, Te = Object.assign, he = {};
|
|
838
|
-
Object.freeze(he),
|
|
838
|
+
Object.freeze(he), j.prototype.isReactComponent = {}, j.prototype.setState = function(e, r) {
|
|
839
839
|
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
840
840
|
throw Error(
|
|
841
841
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
842
842
|
);
|
|
843
843
|
this.updater.enqueueSetState(this, e, r, "setState");
|
|
844
|
-
},
|
|
844
|
+
}, j.prototype.forceUpdate = function(e) {
|
|
845
845
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
846
846
|
};
|
|
847
|
-
var
|
|
847
|
+
var I = {
|
|
848
848
|
isMounted: [
|
|
849
849
|
"isMounted",
|
|
850
850
|
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
@@ -854,9 +854,9 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
854
854
|
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
855
855
|
]
|
|
856
856
|
}, fe;
|
|
857
|
-
for (fe in
|
|
858
|
-
|
|
859
|
-
|
|
857
|
+
for (fe in I)
|
|
858
|
+
I.hasOwnProperty(fe) && g(fe, I[fe]);
|
|
859
|
+
L.prototype = j.prototype, I = P.prototype = new L(), I.constructor = P, Te(I, j.prototype), I.isPureReactComponent = !0;
|
|
860
860
|
var be = Array.isArray, ze = Symbol.for("react.client.reference"), h = {
|
|
861
861
|
H: null,
|
|
862
862
|
A: null,
|
|
@@ -873,12 +873,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
873
873
|
}, le = Object.prototype.hasOwnProperty, Oe = console.createTask ? console.createTask : function() {
|
|
874
874
|
return null;
|
|
875
875
|
};
|
|
876
|
-
|
|
876
|
+
I = {
|
|
877
877
|
"react-stack-bottom-frame": function(e) {
|
|
878
878
|
return e();
|
|
879
879
|
}
|
|
880
880
|
};
|
|
881
|
-
var Ce, Se, Ae = {}, xe =
|
|
881
|
+
var Ce, Se, Ae = {}, xe = I["react-stack-bottom-frame"].bind(I, G)(), Ve = Oe(z(G)), ke = !1, Pe = /\/+/g, je = typeof reportError == "function" ? reportError : function(e) {
|
|
882
882
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
883
883
|
var r = new window.ErrorEvent("error", {
|
|
884
884
|
bubbles: !0,
|
|
@@ -896,16 +896,16 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
896
896
|
queueMicrotask(function() {
|
|
897
897
|
return queueMicrotask(e);
|
|
898
898
|
});
|
|
899
|
-
} :
|
|
900
|
-
|
|
899
|
+
} : l;
|
|
900
|
+
I = Object.freeze({
|
|
901
901
|
__proto__: null,
|
|
902
902
|
c: function(e) {
|
|
903
903
|
return C().useMemoCache(e);
|
|
904
904
|
}
|
|
905
905
|
}), s.Children = {
|
|
906
|
-
map:
|
|
906
|
+
map: Y,
|
|
907
907
|
forEach: function(e, r, u) {
|
|
908
|
-
|
|
908
|
+
Y(
|
|
909
909
|
e,
|
|
910
910
|
function() {
|
|
911
911
|
r.apply(this, arguments);
|
|
@@ -915,23 +915,23 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
915
915
|
},
|
|
916
916
|
count: function(e) {
|
|
917
917
|
var r = 0;
|
|
918
|
-
return
|
|
918
|
+
return Y(e, function() {
|
|
919
919
|
r++;
|
|
920
920
|
}), r;
|
|
921
921
|
},
|
|
922
922
|
toArray: function(e) {
|
|
923
|
-
return
|
|
923
|
+
return Y(e, function(r) {
|
|
924
924
|
return r;
|
|
925
925
|
}) || [];
|
|
926
926
|
},
|
|
927
927
|
only: function(e) {
|
|
928
|
-
if (
|
|
928
|
+
if (!$(e))
|
|
929
929
|
throw Error(
|
|
930
930
|
"React.Children.only expected to receive a single React element child."
|
|
931
931
|
);
|
|
932
932
|
return e;
|
|
933
933
|
}
|
|
934
|
-
}, s.Component =
|
|
934
|
+
}, s.Component = j, s.Fragment = t, s.Profiler = f, s.PureComponent = P, s.StrictMode = o, s.Suspense = m, s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = h, s.__COMPILER_RUNTIME = I, s.act = function(e) {
|
|
935
935
|
var r = h.actQueue, u = de;
|
|
936
936
|
de++;
|
|
937
937
|
var i = h.actQueue = r !== null ? r : [], a = !1;
|
|
@@ -941,7 +941,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
941
941
|
h.thrownErrors.push(y);
|
|
942
942
|
}
|
|
943
943
|
if (0 < h.thrownErrors.length)
|
|
944
|
-
throw
|
|
944
|
+
throw E(r, u), e = O(h.thrownErrors), h.thrownErrors.length = 0, e;
|
|
945
945
|
if (v !== null && typeof v == "object" && typeof v.then == "function") {
|
|
946
946
|
var d = v;
|
|
947
947
|
return Le(function() {
|
|
@@ -949,52 +949,52 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
949
949
|
"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 () => ...);"
|
|
950
950
|
));
|
|
951
951
|
}), {
|
|
952
|
-
then: function(y,
|
|
952
|
+
then: function(y, V) {
|
|
953
953
|
a = !0, d.then(
|
|
954
|
-
function(
|
|
955
|
-
if (
|
|
954
|
+
function(ne) {
|
|
955
|
+
if (E(r, u), u === 0) {
|
|
956
956
|
try {
|
|
957
|
-
|
|
958
|
-
return
|
|
959
|
-
|
|
957
|
+
U(i), l(function() {
|
|
958
|
+
return k(
|
|
959
|
+
ne,
|
|
960
960
|
y,
|
|
961
|
-
|
|
961
|
+
V
|
|
962
962
|
);
|
|
963
963
|
});
|
|
964
|
-
} catch (
|
|
965
|
-
h.thrownErrors.push(
|
|
964
|
+
} catch (Be) {
|
|
965
|
+
h.thrownErrors.push(Be);
|
|
966
966
|
}
|
|
967
967
|
if (0 < h.thrownErrors.length) {
|
|
968
|
-
var
|
|
968
|
+
var Ge = O(
|
|
969
969
|
h.thrownErrors
|
|
970
970
|
);
|
|
971
|
-
h.thrownErrors.length = 0,
|
|
971
|
+
h.thrownErrors.length = 0, V(Ge);
|
|
972
972
|
}
|
|
973
|
-
} else y(
|
|
973
|
+
} else y(ne);
|
|
974
974
|
},
|
|
975
|
-
function(
|
|
976
|
-
|
|
975
|
+
function(ne) {
|
|
976
|
+
E(r, u), 0 < h.thrownErrors.length && (ne = O(
|
|
977
977
|
h.thrownErrors
|
|
978
|
-
), h.thrownErrors.length = 0),
|
|
978
|
+
), h.thrownErrors.length = 0), V(ne);
|
|
979
979
|
}
|
|
980
980
|
);
|
|
981
981
|
}
|
|
982
982
|
};
|
|
983
983
|
}
|
|
984
984
|
var b = v;
|
|
985
|
-
if (
|
|
985
|
+
if (E(r, u), u === 0 && (U(i), i.length !== 0 && Le(function() {
|
|
986
986
|
a || me || (me = !0, console.error(
|
|
987
987
|
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
988
988
|
));
|
|
989
989
|
}), h.actQueue = null), 0 < h.thrownErrors.length)
|
|
990
|
-
throw e =
|
|
990
|
+
throw e = O(h.thrownErrors), h.thrownErrors.length = 0, e;
|
|
991
991
|
return {
|
|
992
|
-
then: function(y,
|
|
993
|
-
a = !0, u === 0 ? (h.actQueue = i,
|
|
994
|
-
return
|
|
992
|
+
then: function(y, V) {
|
|
993
|
+
a = !0, u === 0 ? (h.actQueue = i, l(function() {
|
|
994
|
+
return k(
|
|
995
995
|
b,
|
|
996
996
|
y,
|
|
997
|
-
|
|
997
|
+
V
|
|
998
998
|
);
|
|
999
999
|
})) : y(b);
|
|
1000
1000
|
}
|
|
@@ -1024,7 +1024,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1024
1024
|
}
|
|
1025
1025
|
d = r.ref !== void 0;
|
|
1026
1026
|
}
|
|
1027
|
-
d && (v = Z()),
|
|
1027
|
+
d && (v = Z()), B(r) && (N(r.key), a = "" + r.key);
|
|
1028
1028
|
for (b in r)
|
|
1029
1029
|
!le.call(r, b) || b === "key" || b === "__self" || b === "__source" || b === "ref" && r.ref === void 0 || (i[b] = r[b]);
|
|
1030
1030
|
}
|
|
@@ -1046,11 +1046,11 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1046
1046
|
e._debugStack,
|
|
1047
1047
|
e._debugTask
|
|
1048
1048
|
), a = 2; a < arguments.length; a++)
|
|
1049
|
-
v = arguments[a],
|
|
1049
|
+
v = arguments[a], $(v) && v._store && (v._store.validated = 1);
|
|
1050
1050
|
return i;
|
|
1051
1051
|
}, s.createContext = function(e) {
|
|
1052
1052
|
return e = {
|
|
1053
|
-
$$typeof:
|
|
1053
|
+
$$typeof: _,
|
|
1054
1054
|
_currentValue: e,
|
|
1055
1055
|
_currentValue2: e,
|
|
1056
1056
|
_threadCount: 0,
|
|
@@ -1063,12 +1063,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1063
1063
|
}, s.createElement = function(e, r, u) {
|
|
1064
1064
|
for (var i = 2; i < arguments.length; i++) {
|
|
1065
1065
|
var a = arguments[i];
|
|
1066
|
-
|
|
1066
|
+
$(a) && a._store && (a._store.validated = 1);
|
|
1067
1067
|
}
|
|
1068
1068
|
if (i = {}, a = null, r != null)
|
|
1069
1069
|
for (y in Se || !("__self" in r) || "key" in r || (Se = !0, console.warn(
|
|
1070
1070
|
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1071
|
-
)),
|
|
1071
|
+
)), B(r) && (N(r.key), a = "" + r.key), r)
|
|
1072
1072
|
le.call(r, y) && y !== "key" && y !== "__self" && y !== "__source" && (i[y] = r[y]);
|
|
1073
1073
|
var v = arguments.length - 2;
|
|
1074
1074
|
if (v === 1) i.children = u;
|
|
@@ -1080,7 +1080,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1080
1080
|
if (e && e.defaultProps)
|
|
1081
1081
|
for (y in v = e.defaultProps, v)
|
|
1082
1082
|
i[y] === void 0 && (i[y] = v[y]);
|
|
1083
|
-
a &&
|
|
1083
|
+
a && J(
|
|
1084
1084
|
i,
|
|
1085
1085
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
1086
1086
|
);
|
|
@@ -1093,7 +1093,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1093
1093
|
Z(),
|
|
1094
1094
|
i,
|
|
1095
1095
|
y ? Error("react-stack-top-frame") : xe,
|
|
1096
|
-
y ? Oe(
|
|
1096
|
+
y ? Oe(z(e)) : Ve
|
|
1097
1097
|
);
|
|
1098
1098
|
}, s.createRef = function() {
|
|
1099
1099
|
var e = { current: null };
|
|
@@ -1121,9 +1121,9 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1121
1121
|
u = i, e.name || e.displayName || (Object.defineProperty(e, "name", { value: i }), e.displayName = i);
|
|
1122
1122
|
}
|
|
1123
1123
|
}), r;
|
|
1124
|
-
}, s.isValidElement =
|
|
1124
|
+
}, s.isValidElement = $, s.lazy = function(e) {
|
|
1125
1125
|
return {
|
|
1126
|
-
$$typeof:
|
|
1126
|
+
$$typeof: re,
|
|
1127
1127
|
_payload: { _status: -1, _result: e },
|
|
1128
1128
|
_init: ae
|
|
1129
1129
|
};
|
|
@@ -1152,7 +1152,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1152
1152
|
h.T = u, u._updatedFibers = /* @__PURE__ */ new Set();
|
|
1153
1153
|
try {
|
|
1154
1154
|
var i = e(), a = h.S;
|
|
1155
|
-
a !== null && a(u, i), typeof i == "object" && i !== null && typeof i.then == "function" && i.then(
|
|
1155
|
+
a !== null && a(u, i), typeof i == "object" && i !== null && typeof i.then == "function" && i.then(ee, je);
|
|
1156
1156
|
} catch (v) {
|
|
1157
1157
|
je(v);
|
|
1158
1158
|
} finally {
|
|
@@ -1233,157 +1233,154 @@ var nt = rt();
|
|
|
1233
1233
|
const ot = /* @__PURE__ */ Je(nt);
|
|
1234
1234
|
var ut = (n) => n instanceof Date, Ye = (n) => n == null;
|
|
1235
1235
|
const st = (n) => typeof n == "object";
|
|
1236
|
-
var Ue = (n) => !Ye(n) && !Array.isArray(n) && st(n) && !ut(n), qe = (n) => Array.isArray(n) ? n.filter(Boolean) : [], De = (n) => n === void 0, ie = (n, s,
|
|
1236
|
+
var Ue = (n) => !Ye(n) && !Array.isArray(n) && st(n) && !ut(n), qe = (n) => Array.isArray(n) ? n.filter(Boolean) : [], De = (n) => n === void 0, ie = (n, s, g) => {
|
|
1237
1237
|
if (!s || !Ue(n))
|
|
1238
|
-
return
|
|
1239
|
-
const
|
|
1240
|
-
return De(
|
|
1241
|
-
}, it = (n) => /^\w*$/.test(n), at = (n) => qe(n.replace(/["|']|\]/g, "").split(/\.|\[/)), He = (n, s,
|
|
1242
|
-
let
|
|
1243
|
-
const
|
|
1244
|
-
for (; ++
|
|
1245
|
-
const P = w
|
|
1246
|
-
let
|
|
1247
|
-
if (
|
|
1248
|
-
const
|
|
1249
|
-
|
|
1238
|
+
return g;
|
|
1239
|
+
const w = qe(s.split(/[,[\].]+?/)).reduce((R, j) => Ye(R) ? R : R[j], n);
|
|
1240
|
+
return De(w) || w === n ? De(n[s]) ? g : n[s] : w;
|
|
1241
|
+
}, it = (n) => /^\w*$/.test(n), at = (n) => qe(n.replace(/["|']|\]/g, "").split(/\.|\[/)), He = (n, s, g) => {
|
|
1242
|
+
let w = -1;
|
|
1243
|
+
const R = it(s) ? [s] : at(s), j = R.length, L = j - 1;
|
|
1244
|
+
for (; ++w < j; ) {
|
|
1245
|
+
const P = R[w];
|
|
1246
|
+
let M = g;
|
|
1247
|
+
if (w !== L) {
|
|
1248
|
+
const N = n[P];
|
|
1249
|
+
M = Ue(N) || Array.isArray(N) ? N : isNaN(+R[w + 1]) ? {} : [];
|
|
1250
1250
|
}
|
|
1251
1251
|
if (P === "__proto__" || P === "constructor" || P === "prototype")
|
|
1252
1252
|
return;
|
|
1253
|
-
n[P] =
|
|
1253
|
+
n[P] = M, n = n[P];
|
|
1254
1254
|
}
|
|
1255
1255
|
};
|
|
1256
1256
|
ot.createContext(null);
|
|
1257
|
-
const ue = (n) => n instanceof RegExp || typeof n == "string" || typeof n == "number" ? n : n.value,
|
|
1258
|
-
const
|
|
1259
|
-
if (
|
|
1260
|
-
return { type: "required", message:
|
|
1261
|
-
if (
|
|
1262
|
-
return { type: "min", message:
|
|
1263
|
-
if (
|
|
1264
|
-
return { type: "max", message:
|
|
1265
|
-
if (
|
|
1266
|
-
return { type: "minLength", message:
|
|
1267
|
-
if (
|
|
1268
|
-
return { type: "maxLength", message:
|
|
1269
|
-
if (
|
|
1270
|
-
return { type: "pattern", message:
|
|
1271
|
-
if (
|
|
1272
|
-
const
|
|
1273
|
-
if (
|
|
1257
|
+
const ue = (n) => n instanceof RegExp || typeof n == "string" || typeof n == "number" ? n : n.value, oe = (n) => typeof n == "string" ? n : typeof n.message == "string" ? n.message : "", ct = (n, s, g = {}) => {
|
|
1258
|
+
const w = ie(n, s);
|
|
1259
|
+
if (g.required && !w)
|
|
1260
|
+
return { type: "required", message: oe(g.required) };
|
|
1261
|
+
if (g.min && Number(w) < Number(ue(g.min)))
|
|
1262
|
+
return { type: "min", message: oe(g.min) };
|
|
1263
|
+
if (g.max && Number(w) > Number(ue(g.max)))
|
|
1264
|
+
return { type: "max", message: oe(g.max) };
|
|
1265
|
+
if (g.minLength && w.length < ue(g.minLength))
|
|
1266
|
+
return { type: "minLength", message: oe(g.minLength) };
|
|
1267
|
+
if (g.maxLength && w.length > ue(g.maxLength))
|
|
1268
|
+
return { type: "maxLength", message: oe(g.maxLength) };
|
|
1269
|
+
if (g.pattern && !ue(g.pattern).test(w))
|
|
1270
|
+
return { type: "pattern", message: oe(g.pattern) };
|
|
1271
|
+
if (g.validate) {
|
|
1272
|
+
const R = g.validate(w, n);
|
|
1273
|
+
if (R === !1)
|
|
1274
1274
|
return { type: "validate" };
|
|
1275
|
-
if (typeof
|
|
1276
|
-
return { type: "validate", message:
|
|
1275
|
+
if (typeof R == "string")
|
|
1276
|
+
return { type: "validate", message: R };
|
|
1277
1277
|
}
|
|
1278
1278
|
}, ft = () => {
|
|
1279
1279
|
const [n, s] = _e({});
|
|
1280
1280
|
return {
|
|
1281
1281
|
errors: n,
|
|
1282
|
-
appendError: (
|
|
1283
|
-
s((
|
|
1282
|
+
appendError: (L, P) => {
|
|
1283
|
+
s((M) => ({ ...M, [L]: P }));
|
|
1284
1284
|
},
|
|
1285
|
-
removeError: (
|
|
1285
|
+
removeError: (L) => {
|
|
1286
1286
|
s((P) => {
|
|
1287
|
-
const
|
|
1288
|
-
return delete
|
|
1287
|
+
const M = { ...P };
|
|
1288
|
+
return delete M[L], M;
|
|
1289
1289
|
});
|
|
1290
1290
|
},
|
|
1291
1291
|
resetErrors: () => {
|
|
1292
1292
|
s({});
|
|
1293
1293
|
},
|
|
1294
|
-
getError: (
|
|
1294
|
+
getError: (L) => ie(n(), L)
|
|
1295
1295
|
};
|
|
1296
1296
|
}, lt = () => {
|
|
1297
1297
|
const n = {};
|
|
1298
|
-
return { rules: n, addRule: (
|
|
1299
|
-
n[
|
|
1300
|
-
required:
|
|
1301
|
-
min:
|
|
1302
|
-
max:
|
|
1303
|
-
minLength:
|
|
1304
|
-
maxLength:
|
|
1305
|
-
pattern:
|
|
1306
|
-
validate:
|
|
1298
|
+
return { rules: n, addRule: (w, R) => {
|
|
1299
|
+
n[w] = {
|
|
1300
|
+
required: R.required,
|
|
1301
|
+
min: R.min,
|
|
1302
|
+
max: R.max,
|
|
1303
|
+
minLength: R.minLength,
|
|
1304
|
+
maxLength: R.maxLength,
|
|
1305
|
+
pattern: R.pattern,
|
|
1306
|
+
validate: R.validate
|
|
1307
1307
|
};
|
|
1308
|
-
}, getRule: (
|
|
1308
|
+
}, getRule: (w) => n[w] };
|
|
1309
1309
|
}, pt = () => {
|
|
1310
1310
|
const n = {};
|
|
1311
1311
|
return {
|
|
1312
1312
|
fields: n,
|
|
1313
|
-
getField: (
|
|
1314
|
-
setField: (
|
|
1315
|
-
n[
|
|
1313
|
+
getField: (w) => n[w],
|
|
1314
|
+
setField: (w, R) => {
|
|
1315
|
+
n[w] = R;
|
|
1316
1316
|
}
|
|
1317
1317
|
};
|
|
1318
|
-
}, mt = ({
|
|
1319
|
-
defaultValues: n,
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
},
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
}, J = () => {
|
|
1331
|
-
Object.keys(N).forEach((p) => {
|
|
1332
|
-
I(p);
|
|
1318
|
+
}, mt = (n = { defaultValues: {} }) => {
|
|
1319
|
+
const { defaultValues: s, mode: g = "onInput" } = n, { fields: w, getField: R, setField: j } = pt(), { rules: L, addRule: P, getRule: M } = lt(), [N, D] = _e(s), { errors: z, appendError: Z, removeError: G, resetErrors: B, getError: J } = ft(), [H, W] = _e(!0), Q = (l, O) => {
|
|
1320
|
+
const E = R(l);
|
|
1321
|
+
E && (O.ref = E), Z(l, O);
|
|
1322
|
+
}, $ = (l) => {
|
|
1323
|
+
G(l);
|
|
1324
|
+
}, K = (l) => {
|
|
1325
|
+
const O = M(l), E = ct(N(), l, O);
|
|
1326
|
+
E ? Q(l, E) : $(l), W(!Object.keys(z()).length);
|
|
1327
|
+
}, T = () => {
|
|
1328
|
+
Object.keys(L).forEach((l) => {
|
|
1329
|
+
K(l);
|
|
1333
1330
|
});
|
|
1334
|
-
},
|
|
1331
|
+
}, X = () => {
|
|
1335
1332
|
var O;
|
|
1336
|
-
const
|
|
1337
|
-
for (const
|
|
1338
|
-
const k =
|
|
1333
|
+
const l = Object.keys(w);
|
|
1334
|
+
for (const E of l) {
|
|
1335
|
+
const k = J(E);
|
|
1339
1336
|
if (k) {
|
|
1340
1337
|
(O = k.ref) == null || O.focus();
|
|
1341
1338
|
break;
|
|
1342
1339
|
}
|
|
1343
1340
|
}
|
|
1344
|
-
},
|
|
1345
|
-
const
|
|
1346
|
-
|
|
1347
|
-
const
|
|
1348
|
-
return He(
|
|
1349
|
-
}),
|
|
1350
|
-
},
|
|
1351
|
-
name:
|
|
1341
|
+
}, x = (l, O) => {
|
|
1342
|
+
const E = Ze(l);
|
|
1343
|
+
D((k) => {
|
|
1344
|
+
const U = { ...k };
|
|
1345
|
+
return He(U, O, E), U;
|
|
1346
|
+
}), K(O);
|
|
1347
|
+
}, q = (l, O = {}) => (P(l, O), {
|
|
1348
|
+
name: l,
|
|
1352
1349
|
// value: get(values(), name),
|
|
1353
|
-
onInput(
|
|
1354
|
-
|
|
1350
|
+
onInput(E) {
|
|
1351
|
+
g === "onInput" && x(E, l);
|
|
1355
1352
|
},
|
|
1356
|
-
onChange(
|
|
1357
|
-
(
|
|
1353
|
+
onChange(E) {
|
|
1354
|
+
(g === "onChange" || g === "onInput") && x(E, l);
|
|
1358
1355
|
},
|
|
1359
|
-
ref(
|
|
1360
|
-
|
|
1356
|
+
ref(E) {
|
|
1357
|
+
R(l) || (j(l, E), E && ge(E, ie(N(), l)));
|
|
1361
1358
|
}
|
|
1362
|
-
}), Y = (
|
|
1359
|
+
}), Y = (l) => l ? ie(N(), l) : N();
|
|
1363
1360
|
return {
|
|
1364
|
-
values:
|
|
1365
|
-
errors:
|
|
1366
|
-
isValid:
|
|
1367
|
-
register:
|
|
1361
|
+
values: N,
|
|
1362
|
+
errors: z,
|
|
1363
|
+
isValid: H,
|
|
1364
|
+
register: q,
|
|
1368
1365
|
getValues: Y,
|
|
1369
|
-
setValue: (
|
|
1370
|
-
|
|
1371
|
-
const
|
|
1372
|
-
return He(
|
|
1366
|
+
setValue: (l, O) => {
|
|
1367
|
+
D((k) => {
|
|
1368
|
+
const U = { ...k };
|
|
1369
|
+
return He(U, l, O), U;
|
|
1373
1370
|
});
|
|
1374
|
-
const
|
|
1375
|
-
|
|
1371
|
+
const E = R(l);
|
|
1372
|
+
E && ge(E, O);
|
|
1376
1373
|
},
|
|
1377
|
-
onSubmit: (
|
|
1378
|
-
O.preventDefault(),
|
|
1374
|
+
onSubmit: (l) => (O) => {
|
|
1375
|
+
O.preventDefault(), T(), H() && l(Y()), X();
|
|
1379
1376
|
},
|
|
1380
|
-
reset: (
|
|
1377
|
+
reset: (l = {}) => {
|
|
1381
1378
|
const O = {
|
|
1382
|
-
...structuredClone(
|
|
1383
|
-
...
|
|
1379
|
+
...structuredClone(s),
|
|
1380
|
+
...l
|
|
1384
1381
|
};
|
|
1385
|
-
|
|
1386
|
-
k && ge(k, ie(O,
|
|
1382
|
+
D(() => O), B(), W(!0), Object.entries(w).forEach(([E, k]) => {
|
|
1383
|
+
k && ge(k, ie(O, E));
|
|
1387
1384
|
});
|
|
1388
1385
|
}
|
|
1389
1386
|
};
|