@tapcart/mobile-components 0.2.2 → 0.2.4
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.d.mts +1 -6
- package/dist/index.mjs +96 -3075
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +0 -41
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -1,2905 +1,7 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
20
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
21
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
22
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
23
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
|
-
mod
|
|
25
|
-
));
|
|
26
|
-
|
|
27
|
-
// ../../node_modules/object-assign/index.js
|
|
28
|
-
var require_object_assign = __commonJS({
|
|
29
|
-
"../../node_modules/object-assign/index.js"(exports, module) {
|
|
30
|
-
"use strict";
|
|
31
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
32
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
33
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
34
|
-
function toObject(val) {
|
|
35
|
-
if (val === null || val === void 0) {
|
|
36
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
37
|
-
}
|
|
38
|
-
return Object(val);
|
|
39
|
-
}
|
|
40
|
-
function shouldUseNative() {
|
|
41
|
-
try {
|
|
42
|
-
if (!Object.assign) {
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
45
|
-
var test1 = new String("abc");
|
|
46
|
-
test1[5] = "de";
|
|
47
|
-
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
var test2 = {};
|
|
51
|
-
for (var i = 0; i < 10; i++) {
|
|
52
|
-
test2["_" + String.fromCharCode(i)] = i;
|
|
53
|
-
}
|
|
54
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
|
|
55
|
-
return test2[n];
|
|
56
|
-
});
|
|
57
|
-
if (order2.join("") !== "0123456789") {
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
var test3 = {};
|
|
61
|
-
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
62
|
-
test3[letter] = letter;
|
|
63
|
-
});
|
|
64
|
-
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
return true;
|
|
68
|
-
} catch (err) {
|
|
69
|
-
return false;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
module.exports = shouldUseNative() ? Object.assign : function(target, source) {
|
|
73
|
-
var from;
|
|
74
|
-
var to = toObject(target);
|
|
75
|
-
var symbols;
|
|
76
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
77
|
-
from = Object(arguments[s]);
|
|
78
|
-
for (var key in from) {
|
|
79
|
-
if (hasOwnProperty.call(from, key)) {
|
|
80
|
-
to[key] = from[key];
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
if (getOwnPropertySymbols) {
|
|
84
|
-
symbols = getOwnPropertySymbols(from);
|
|
85
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
86
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
87
|
-
to[symbols[i]] = from[symbols[i]];
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
return to;
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
// node_modules/react/cjs/react.production.min.js
|
|
98
|
-
var require_react_production_min = __commonJS({
|
|
99
|
-
"node_modules/react/cjs/react.production.min.js"(exports) {
|
|
100
|
-
"use strict";
|
|
101
|
-
var l = require_object_assign();
|
|
102
|
-
var n = 60103;
|
|
103
|
-
var p = 60106;
|
|
104
|
-
exports.Fragment = 60107;
|
|
105
|
-
exports.StrictMode = 60108;
|
|
106
|
-
exports.Profiler = 60114;
|
|
107
|
-
var q = 60109;
|
|
108
|
-
var r = 60110;
|
|
109
|
-
var t = 60112;
|
|
110
|
-
exports.Suspense = 60113;
|
|
111
|
-
var u = 60115;
|
|
112
|
-
var v = 60116;
|
|
113
|
-
if ("function" === typeof Symbol && Symbol.for) {
|
|
114
|
-
w = Symbol.for;
|
|
115
|
-
n = w("react.element");
|
|
116
|
-
p = w("react.portal");
|
|
117
|
-
exports.Fragment = w("react.fragment");
|
|
118
|
-
exports.StrictMode = w("react.strict_mode");
|
|
119
|
-
exports.Profiler = w("react.profiler");
|
|
120
|
-
q = w("react.provider");
|
|
121
|
-
r = w("react.context");
|
|
122
|
-
t = w("react.forward_ref");
|
|
123
|
-
exports.Suspense = w("react.suspense");
|
|
124
|
-
u = w("react.memo");
|
|
125
|
-
v = w("react.lazy");
|
|
126
|
-
}
|
|
127
|
-
var w;
|
|
128
|
-
var x = "function" === typeof Symbol && Symbol.iterator;
|
|
129
|
-
function y(a) {
|
|
130
|
-
if (null === a || "object" !== typeof a) return null;
|
|
131
|
-
a = x && a[x] || a["@@iterator"];
|
|
132
|
-
return "function" === typeof a ? a : null;
|
|
133
|
-
}
|
|
134
|
-
function z(a) {
|
|
135
|
-
for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]);
|
|
136
|
-
return "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
137
|
-
}
|
|
138
|
-
var A = { isMounted: function() {
|
|
139
|
-
return false;
|
|
140
|
-
}, enqueueForceUpdate: function() {
|
|
141
|
-
}, enqueueReplaceState: function() {
|
|
142
|
-
}, enqueueSetState: function() {
|
|
143
|
-
} };
|
|
144
|
-
var B = {};
|
|
145
|
-
function C(a, b, c) {
|
|
146
|
-
this.props = a;
|
|
147
|
-
this.context = b;
|
|
148
|
-
this.refs = B;
|
|
149
|
-
this.updater = c || A;
|
|
150
|
-
}
|
|
151
|
-
C.prototype.isReactComponent = {};
|
|
152
|
-
C.prototype.setState = function(a, b) {
|
|
153
|
-
if ("object" !== typeof a && "function" !== typeof a && null != a) throw Error(z(85));
|
|
154
|
-
this.updater.enqueueSetState(this, a, b, "setState");
|
|
155
|
-
};
|
|
156
|
-
C.prototype.forceUpdate = function(a) {
|
|
157
|
-
this.updater.enqueueForceUpdate(this, a, "forceUpdate");
|
|
158
|
-
};
|
|
159
|
-
function D() {
|
|
160
|
-
}
|
|
161
|
-
D.prototype = C.prototype;
|
|
162
|
-
function E(a, b, c) {
|
|
163
|
-
this.props = a;
|
|
164
|
-
this.context = b;
|
|
165
|
-
this.refs = B;
|
|
166
|
-
this.updater = c || A;
|
|
167
|
-
}
|
|
168
|
-
var F = E.prototype = new D();
|
|
169
|
-
F.constructor = E;
|
|
170
|
-
l(F, C.prototype);
|
|
171
|
-
F.isPureReactComponent = true;
|
|
172
|
-
var G = { current: null };
|
|
173
|
-
var H = Object.prototype.hasOwnProperty;
|
|
174
|
-
var I = { key: true, ref: true, __self: true, __source: true };
|
|
175
|
-
function J(a, b, c) {
|
|
176
|
-
var e, d = {}, k = null, h = null;
|
|
177
|
-
if (null != b) for (e in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) H.call(b, e) && !I.hasOwnProperty(e) && (d[e] = b[e]);
|
|
178
|
-
var g = arguments.length - 2;
|
|
179
|
-
if (1 === g) d.children = c;
|
|
180
|
-
else if (1 < g) {
|
|
181
|
-
for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];
|
|
182
|
-
d.children = f;
|
|
183
|
-
}
|
|
184
|
-
if (a && a.defaultProps) for (e in g = a.defaultProps, g) void 0 === d[e] && (d[e] = g[e]);
|
|
185
|
-
return { $$typeof: n, type: a, key: k, ref: h, props: d, _owner: G.current };
|
|
186
|
-
}
|
|
187
|
-
function K(a, b) {
|
|
188
|
-
return { $$typeof: n, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
|
|
189
|
-
}
|
|
190
|
-
function L(a) {
|
|
191
|
-
return "object" === typeof a && null !== a && a.$$typeof === n;
|
|
192
|
-
}
|
|
193
|
-
function escape(a) {
|
|
194
|
-
var b = { "=": "=0", ":": "=2" };
|
|
195
|
-
return "$" + a.replace(/[=:]/g, function(a2) {
|
|
196
|
-
return b[a2];
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
var M = /\/+/g;
|
|
200
|
-
function N(a, b) {
|
|
201
|
-
return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
|
|
202
|
-
}
|
|
203
|
-
function O(a, b, c, e, d) {
|
|
204
|
-
var k = typeof a;
|
|
205
|
-
if ("undefined" === k || "boolean" === k) a = null;
|
|
206
|
-
var h = false;
|
|
207
|
-
if (null === a) h = true;
|
|
208
|
-
else switch (k) {
|
|
209
|
-
case "string":
|
|
210
|
-
case "number":
|
|
211
|
-
h = true;
|
|
212
|
-
break;
|
|
213
|
-
case "object":
|
|
214
|
-
switch (a.$$typeof) {
|
|
215
|
-
case n:
|
|
216
|
-
case p:
|
|
217
|
-
h = true;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
if (h) return h = a, d = d(h), a = "" === e ? "." + N(h, 0) : e, Array.isArray(d) ? (c = "", null != a && (c = a.replace(M, "$&/") + "/"), O(d, b, c, "", function(a2) {
|
|
221
|
-
return a2;
|
|
222
|
-
})) : null != d && (L(d) && (d = K(d, c + (!d.key || h && h.key === d.key ? "" : ("" + d.key).replace(M, "$&/") + "/") + a)), b.push(d)), 1;
|
|
223
|
-
h = 0;
|
|
224
|
-
e = "" === e ? "." : e + ":";
|
|
225
|
-
if (Array.isArray(a)) for (var g = 0; g < a.length; g++) {
|
|
226
|
-
k = a[g];
|
|
227
|
-
var f = e + N(k, g);
|
|
228
|
-
h += O(k, b, c, f, d);
|
|
229
|
-
}
|
|
230
|
-
else if (f = y(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done; ) k = k.value, f = e + N(k, g++), h += O(k, b, c, f, d);
|
|
231
|
-
else if ("object" === k) throw b = "" + a, Error(z(31, "[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b));
|
|
232
|
-
return h;
|
|
233
|
-
}
|
|
234
|
-
function P(a, b, c) {
|
|
235
|
-
if (null == a) return a;
|
|
236
|
-
var e = [], d = 0;
|
|
237
|
-
O(a, e, "", "", function(a2) {
|
|
238
|
-
return b.call(c, a2, d++);
|
|
239
|
-
});
|
|
240
|
-
return e;
|
|
241
|
-
}
|
|
242
|
-
function Q(a) {
|
|
243
|
-
if (-1 === a._status) {
|
|
244
|
-
var b = a._result;
|
|
245
|
-
b = b();
|
|
246
|
-
a._status = 0;
|
|
247
|
-
a._result = b;
|
|
248
|
-
b.then(function(b2) {
|
|
249
|
-
0 === a._status && (b2 = b2.default, a._status = 1, a._result = b2);
|
|
250
|
-
}, function(b2) {
|
|
251
|
-
0 === a._status && (a._status = 2, a._result = b2);
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
if (1 === a._status) return a._result;
|
|
255
|
-
throw a._result;
|
|
256
|
-
}
|
|
257
|
-
var R = { current: null };
|
|
258
|
-
function S() {
|
|
259
|
-
var a = R.current;
|
|
260
|
-
if (null === a) throw Error(z(321));
|
|
261
|
-
return a;
|
|
262
|
-
}
|
|
263
|
-
var T = { ReactCurrentDispatcher: R, ReactCurrentBatchConfig: { transition: 0 }, ReactCurrentOwner: G, IsSomeRendererActing: { current: false }, assign: l };
|
|
264
|
-
exports.Children = { map: P, forEach: function(a, b, c) {
|
|
265
|
-
P(a, function() {
|
|
266
|
-
b.apply(this, arguments);
|
|
267
|
-
}, c);
|
|
268
|
-
}, count: function(a) {
|
|
269
|
-
var b = 0;
|
|
270
|
-
P(a, function() {
|
|
271
|
-
b++;
|
|
272
|
-
});
|
|
273
|
-
return b;
|
|
274
|
-
}, toArray: function(a) {
|
|
275
|
-
return P(a, function(a2) {
|
|
276
|
-
return a2;
|
|
277
|
-
}) || [];
|
|
278
|
-
}, only: function(a) {
|
|
279
|
-
if (!L(a)) throw Error(z(143));
|
|
280
|
-
return a;
|
|
281
|
-
} };
|
|
282
|
-
exports.Component = C;
|
|
283
|
-
exports.PureComponent = E;
|
|
284
|
-
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T;
|
|
285
|
-
exports.cloneElement = function(a, b, c) {
|
|
286
|
-
if (null === a || void 0 === a) throw Error(z(267, a));
|
|
287
|
-
var e = l({}, a.props), d = a.key, k = a.ref, h = a._owner;
|
|
288
|
-
if (null != b) {
|
|
289
|
-
void 0 !== b.ref && (k = b.ref, h = G.current);
|
|
290
|
-
void 0 !== b.key && (d = "" + b.key);
|
|
291
|
-
if (a.type && a.type.defaultProps) var g = a.type.defaultProps;
|
|
292
|
-
for (f in b) H.call(b, f) && !I.hasOwnProperty(f) && (e[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
|
|
293
|
-
}
|
|
294
|
-
var f = arguments.length - 2;
|
|
295
|
-
if (1 === f) e.children = c;
|
|
296
|
-
else if (1 < f) {
|
|
297
|
-
g = Array(f);
|
|
298
|
-
for (var m = 0; m < f; m++) g[m] = arguments[m + 2];
|
|
299
|
-
e.children = g;
|
|
300
|
-
}
|
|
301
|
-
return {
|
|
302
|
-
$$typeof: n,
|
|
303
|
-
type: a.type,
|
|
304
|
-
key: d,
|
|
305
|
-
ref: k,
|
|
306
|
-
props: e,
|
|
307
|
-
_owner: h
|
|
308
|
-
};
|
|
309
|
-
};
|
|
310
|
-
exports.createContext = function(a, b) {
|
|
311
|
-
void 0 === b && (b = null);
|
|
312
|
-
a = { $$typeof: r, _calculateChangedBits: b, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null };
|
|
313
|
-
a.Provider = { $$typeof: q, _context: a };
|
|
314
|
-
return a.Consumer = a;
|
|
315
|
-
};
|
|
316
|
-
exports.createElement = J;
|
|
317
|
-
exports.createFactory = function(a) {
|
|
318
|
-
var b = J.bind(null, a);
|
|
319
|
-
b.type = a;
|
|
320
|
-
return b;
|
|
321
|
-
};
|
|
322
|
-
exports.createRef = function() {
|
|
323
|
-
return { current: null };
|
|
324
|
-
};
|
|
325
|
-
exports.forwardRef = function(a) {
|
|
326
|
-
return { $$typeof: t, render: a };
|
|
327
|
-
};
|
|
328
|
-
exports.isValidElement = L;
|
|
329
|
-
exports.lazy = function(a) {
|
|
330
|
-
return { $$typeof: v, _payload: { _status: -1, _result: a }, _init: Q };
|
|
331
|
-
};
|
|
332
|
-
exports.memo = function(a, b) {
|
|
333
|
-
return { $$typeof: u, type: a, compare: void 0 === b ? null : b };
|
|
334
|
-
};
|
|
335
|
-
exports.useCallback = function(a, b) {
|
|
336
|
-
return S().useCallback(a, b);
|
|
337
|
-
};
|
|
338
|
-
exports.useContext = function(a, b) {
|
|
339
|
-
return S().useContext(a, b);
|
|
340
|
-
};
|
|
341
|
-
exports.useDebugValue = function() {
|
|
342
|
-
};
|
|
343
|
-
exports.useEffect = function(a, b) {
|
|
344
|
-
return S().useEffect(a, b);
|
|
345
|
-
};
|
|
346
|
-
exports.useImperativeHandle = function(a, b, c) {
|
|
347
|
-
return S().useImperativeHandle(a, b, c);
|
|
348
|
-
};
|
|
349
|
-
exports.useLayoutEffect = function(a, b) {
|
|
350
|
-
return S().useLayoutEffect(a, b);
|
|
351
|
-
};
|
|
352
|
-
exports.useMemo = function(a, b) {
|
|
353
|
-
return S().useMemo(a, b);
|
|
354
|
-
};
|
|
355
|
-
exports.useReducer = function(a, b, c) {
|
|
356
|
-
return S().useReducer(a, b, c);
|
|
357
|
-
};
|
|
358
|
-
exports.useRef = function(a) {
|
|
359
|
-
return S().useRef(a);
|
|
360
|
-
};
|
|
361
|
-
exports.useState = function(a) {
|
|
362
|
-
return S().useState(a);
|
|
363
|
-
};
|
|
364
|
-
exports.version = "17.0.2";
|
|
365
|
-
}
|
|
366
|
-
});
|
|
367
|
-
|
|
368
|
-
// node_modules/react/cjs/react.development.js
|
|
369
|
-
var require_react_development = __commonJS({
|
|
370
|
-
"node_modules/react/cjs/react.development.js"(exports) {
|
|
371
|
-
"use strict";
|
|
372
|
-
if (process.env.NODE_ENV !== "production") {
|
|
373
|
-
(function() {
|
|
374
|
-
"use strict";
|
|
375
|
-
var _assign = require_object_assign();
|
|
376
|
-
var ReactVersion = "17.0.2";
|
|
377
|
-
var REACT_ELEMENT_TYPE = 60103;
|
|
378
|
-
var REACT_PORTAL_TYPE = 60106;
|
|
379
|
-
exports.Fragment = 60107;
|
|
380
|
-
exports.StrictMode = 60108;
|
|
381
|
-
exports.Profiler = 60114;
|
|
382
|
-
var REACT_PROVIDER_TYPE = 60109;
|
|
383
|
-
var REACT_CONTEXT_TYPE = 60110;
|
|
384
|
-
var REACT_FORWARD_REF_TYPE = 60112;
|
|
385
|
-
exports.Suspense = 60113;
|
|
386
|
-
var REACT_SUSPENSE_LIST_TYPE = 60120;
|
|
387
|
-
var REACT_MEMO_TYPE = 60115;
|
|
388
|
-
var REACT_LAZY_TYPE = 60116;
|
|
389
|
-
var REACT_BLOCK_TYPE = 60121;
|
|
390
|
-
var REACT_SERVER_BLOCK_TYPE = 60122;
|
|
391
|
-
var REACT_FUNDAMENTAL_TYPE = 60117;
|
|
392
|
-
var REACT_SCOPE_TYPE = 60119;
|
|
393
|
-
var REACT_OPAQUE_ID_TYPE = 60128;
|
|
394
|
-
var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
|
|
395
|
-
var REACT_OFFSCREEN_TYPE = 60130;
|
|
396
|
-
var REACT_LEGACY_HIDDEN_TYPE = 60131;
|
|
397
|
-
if (typeof Symbol === "function" && Symbol.for) {
|
|
398
|
-
var symbolFor = Symbol.for;
|
|
399
|
-
REACT_ELEMENT_TYPE = symbolFor("react.element");
|
|
400
|
-
REACT_PORTAL_TYPE = symbolFor("react.portal");
|
|
401
|
-
exports.Fragment = symbolFor("react.fragment");
|
|
402
|
-
exports.StrictMode = symbolFor("react.strict_mode");
|
|
403
|
-
exports.Profiler = symbolFor("react.profiler");
|
|
404
|
-
REACT_PROVIDER_TYPE = symbolFor("react.provider");
|
|
405
|
-
REACT_CONTEXT_TYPE = symbolFor("react.context");
|
|
406
|
-
REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref");
|
|
407
|
-
exports.Suspense = symbolFor("react.suspense");
|
|
408
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list");
|
|
409
|
-
REACT_MEMO_TYPE = symbolFor("react.memo");
|
|
410
|
-
REACT_LAZY_TYPE = symbolFor("react.lazy");
|
|
411
|
-
REACT_BLOCK_TYPE = symbolFor("react.block");
|
|
412
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block");
|
|
413
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental");
|
|
414
|
-
REACT_SCOPE_TYPE = symbolFor("react.scope");
|
|
415
|
-
REACT_OPAQUE_ID_TYPE = symbolFor("react.opaque.id");
|
|
416
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode");
|
|
417
|
-
REACT_OFFSCREEN_TYPE = symbolFor("react.offscreen");
|
|
418
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
|
|
419
|
-
}
|
|
420
|
-
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
421
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
422
|
-
function getIteratorFn(maybeIterable) {
|
|
423
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
424
|
-
return null;
|
|
425
|
-
}
|
|
426
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
427
|
-
if (typeof maybeIterator === "function") {
|
|
428
|
-
return maybeIterator;
|
|
429
|
-
}
|
|
430
|
-
return null;
|
|
431
|
-
}
|
|
432
|
-
var ReactCurrentDispatcher = {
|
|
433
|
-
/**
|
|
434
|
-
* @internal
|
|
435
|
-
* @type {ReactComponent}
|
|
436
|
-
*/
|
|
437
|
-
current: null
|
|
438
|
-
};
|
|
439
|
-
var ReactCurrentBatchConfig = {
|
|
440
|
-
transition: 0
|
|
441
|
-
};
|
|
442
|
-
var ReactCurrentOwner = {
|
|
443
|
-
/**
|
|
444
|
-
* @internal
|
|
445
|
-
* @type {ReactComponent}
|
|
446
|
-
*/
|
|
447
|
-
current: null
|
|
448
|
-
};
|
|
449
|
-
var ReactDebugCurrentFrame = {};
|
|
450
|
-
var currentExtraStackFrame = null;
|
|
451
|
-
function setExtraStackFrame(stack) {
|
|
452
|
-
{
|
|
453
|
-
currentExtraStackFrame = stack;
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
{
|
|
457
|
-
ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
|
|
458
|
-
{
|
|
459
|
-
currentExtraStackFrame = stack;
|
|
460
|
-
}
|
|
461
|
-
};
|
|
462
|
-
ReactDebugCurrentFrame.getCurrentStack = null;
|
|
463
|
-
ReactDebugCurrentFrame.getStackAddendum = function() {
|
|
464
|
-
var stack = "";
|
|
465
|
-
if (currentExtraStackFrame) {
|
|
466
|
-
stack += currentExtraStackFrame;
|
|
467
|
-
}
|
|
468
|
-
var impl = ReactDebugCurrentFrame.getCurrentStack;
|
|
469
|
-
if (impl) {
|
|
470
|
-
stack += impl() || "";
|
|
471
|
-
}
|
|
472
|
-
return stack;
|
|
473
|
-
};
|
|
474
|
-
}
|
|
475
|
-
var IsSomeRendererActing = {
|
|
476
|
-
current: false
|
|
477
|
-
};
|
|
478
|
-
var ReactSharedInternals = {
|
|
479
|
-
ReactCurrentDispatcher,
|
|
480
|
-
ReactCurrentBatchConfig,
|
|
481
|
-
ReactCurrentOwner,
|
|
482
|
-
IsSomeRendererActing,
|
|
483
|
-
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
|
|
484
|
-
assign: _assign
|
|
485
|
-
};
|
|
486
|
-
{
|
|
487
|
-
ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
|
|
488
|
-
}
|
|
489
|
-
function warn(format) {
|
|
490
|
-
{
|
|
491
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
492
|
-
args[_key - 1] = arguments[_key];
|
|
493
|
-
}
|
|
494
|
-
printWarning("warn", format, args);
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
function error(format) {
|
|
498
|
-
{
|
|
499
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
500
|
-
args[_key2 - 1] = arguments[_key2];
|
|
501
|
-
}
|
|
502
|
-
printWarning("error", format, args);
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
function printWarning(level, format, args) {
|
|
506
|
-
{
|
|
507
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
508
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
509
|
-
if (stack !== "") {
|
|
510
|
-
format += "%s";
|
|
511
|
-
args = args.concat([stack]);
|
|
512
|
-
}
|
|
513
|
-
var argsWithFormat = args.map(function(item) {
|
|
514
|
-
return "" + item;
|
|
515
|
-
});
|
|
516
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
517
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
var didWarnStateUpdateForUnmountedComponent = {};
|
|
521
|
-
function warnNoop(publicInstance, callerName) {
|
|
522
|
-
{
|
|
523
|
-
var _constructor = publicInstance.constructor;
|
|
524
|
-
var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
|
|
525
|
-
var warningKey = componentName + "." + callerName;
|
|
526
|
-
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
|
527
|
-
return;
|
|
528
|
-
}
|
|
529
|
-
error("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.", callerName, componentName);
|
|
530
|
-
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
var ReactNoopUpdateQueue = {
|
|
534
|
-
/**
|
|
535
|
-
* Checks whether or not this composite component is mounted.
|
|
536
|
-
* @param {ReactClass} publicInstance The instance we want to test.
|
|
537
|
-
* @return {boolean} True if mounted, false otherwise.
|
|
538
|
-
* @protected
|
|
539
|
-
* @final
|
|
540
|
-
*/
|
|
541
|
-
isMounted: function(publicInstance) {
|
|
542
|
-
return false;
|
|
543
|
-
},
|
|
544
|
-
/**
|
|
545
|
-
* Forces an update. This should only be invoked when it is known with
|
|
546
|
-
* certainty that we are **not** in a DOM transaction.
|
|
547
|
-
*
|
|
548
|
-
* You may want to call this when you know that some deeper aspect of the
|
|
549
|
-
* component's state has changed but `setState` was not called.
|
|
550
|
-
*
|
|
551
|
-
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
552
|
-
* `componentWillUpdate` and `componentDidUpdate`.
|
|
553
|
-
*
|
|
554
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
555
|
-
* @param {?function} callback Called after component is updated.
|
|
556
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
557
|
-
* @internal
|
|
558
|
-
*/
|
|
559
|
-
enqueueForceUpdate: function(publicInstance, callback, callerName) {
|
|
560
|
-
warnNoop(publicInstance, "forceUpdate");
|
|
561
|
-
},
|
|
562
|
-
/**
|
|
563
|
-
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
564
|
-
* You should treat `this.state` as immutable.
|
|
565
|
-
*
|
|
566
|
-
* There is no guarantee that `this.state` will be immediately updated, so
|
|
567
|
-
* accessing `this.state` after calling this method may return the old value.
|
|
568
|
-
*
|
|
569
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
570
|
-
* @param {object} completeState Next state.
|
|
571
|
-
* @param {?function} callback Called after component is updated.
|
|
572
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
573
|
-
* @internal
|
|
574
|
-
*/
|
|
575
|
-
enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
|
|
576
|
-
warnNoop(publicInstance, "replaceState");
|
|
577
|
-
},
|
|
578
|
-
/**
|
|
579
|
-
* Sets a subset of the state. This only exists because _pendingState is
|
|
580
|
-
* internal. This provides a merging strategy that is not available to deep
|
|
581
|
-
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
582
|
-
* during the merge.
|
|
583
|
-
*
|
|
584
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
585
|
-
* @param {object} partialState Next partial state to be merged with state.
|
|
586
|
-
* @param {?function} callback Called after component is updated.
|
|
587
|
-
* @param {?string} Name of the calling function in the public API.
|
|
588
|
-
* @internal
|
|
589
|
-
*/
|
|
590
|
-
enqueueSetState: function(publicInstance, partialState, callback, callerName) {
|
|
591
|
-
warnNoop(publicInstance, "setState");
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
|
-
var emptyObject = {};
|
|
595
|
-
{
|
|
596
|
-
Object.freeze(emptyObject);
|
|
597
|
-
}
|
|
598
|
-
function Component(props, context, updater) {
|
|
599
|
-
this.props = props;
|
|
600
|
-
this.context = context;
|
|
601
|
-
this.refs = emptyObject;
|
|
602
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
603
|
-
}
|
|
604
|
-
Component.prototype.isReactComponent = {};
|
|
605
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
606
|
-
if (!(typeof partialState === "object" || typeof partialState === "function" || partialState == null)) {
|
|
607
|
-
{
|
|
608
|
-
throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
612
|
-
};
|
|
613
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
614
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
615
|
-
};
|
|
616
|
-
{
|
|
617
|
-
var deprecatedAPIs = {
|
|
618
|
-
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
619
|
-
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
620
|
-
};
|
|
621
|
-
var defineDeprecationWarning = function(methodName, info) {
|
|
622
|
-
Object.defineProperty(Component.prototype, methodName, {
|
|
623
|
-
get: function() {
|
|
624
|
-
warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
|
|
625
|
-
return void 0;
|
|
626
|
-
}
|
|
627
|
-
});
|
|
628
|
-
};
|
|
629
|
-
for (var fnName in deprecatedAPIs) {
|
|
630
|
-
if (deprecatedAPIs.hasOwnProperty(fnName)) {
|
|
631
|
-
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
function ComponentDummy() {
|
|
636
|
-
}
|
|
637
|
-
ComponentDummy.prototype = Component.prototype;
|
|
638
|
-
function PureComponent(props, context, updater) {
|
|
639
|
-
this.props = props;
|
|
640
|
-
this.context = context;
|
|
641
|
-
this.refs = emptyObject;
|
|
642
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
643
|
-
}
|
|
644
|
-
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
645
|
-
pureComponentPrototype.constructor = PureComponent;
|
|
646
|
-
_assign(pureComponentPrototype, Component.prototype);
|
|
647
|
-
pureComponentPrototype.isPureReactComponent = true;
|
|
648
|
-
function createRef() {
|
|
649
|
-
var refObject = {
|
|
650
|
-
current: null
|
|
651
|
-
};
|
|
652
|
-
{
|
|
653
|
-
Object.seal(refObject);
|
|
654
|
-
}
|
|
655
|
-
return refObject;
|
|
656
|
-
}
|
|
657
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
658
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
659
|
-
return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
|
|
660
|
-
}
|
|
661
|
-
function getContextName(type) {
|
|
662
|
-
return type.displayName || "Context";
|
|
663
|
-
}
|
|
664
|
-
function getComponentName(type) {
|
|
665
|
-
if (type == null) {
|
|
666
|
-
return null;
|
|
667
|
-
}
|
|
668
|
-
{
|
|
669
|
-
if (typeof type.tag === "number") {
|
|
670
|
-
error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.");
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
if (typeof type === "function") {
|
|
674
|
-
return type.displayName || type.name || null;
|
|
675
|
-
}
|
|
676
|
-
if (typeof type === "string") {
|
|
677
|
-
return type;
|
|
678
|
-
}
|
|
679
|
-
switch (type) {
|
|
680
|
-
case exports.Fragment:
|
|
681
|
-
return "Fragment";
|
|
682
|
-
case REACT_PORTAL_TYPE:
|
|
683
|
-
return "Portal";
|
|
684
|
-
case exports.Profiler:
|
|
685
|
-
return "Profiler";
|
|
686
|
-
case exports.StrictMode:
|
|
687
|
-
return "StrictMode";
|
|
688
|
-
case exports.Suspense:
|
|
689
|
-
return "Suspense";
|
|
690
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
691
|
-
return "SuspenseList";
|
|
692
|
-
}
|
|
693
|
-
if (typeof type === "object") {
|
|
694
|
-
switch (type.$$typeof) {
|
|
695
|
-
case REACT_CONTEXT_TYPE:
|
|
696
|
-
var context = type;
|
|
697
|
-
return getContextName(context) + ".Consumer";
|
|
698
|
-
case REACT_PROVIDER_TYPE:
|
|
699
|
-
var provider = type;
|
|
700
|
-
return getContextName(provider._context) + ".Provider";
|
|
701
|
-
case REACT_FORWARD_REF_TYPE:
|
|
702
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
703
|
-
case REACT_MEMO_TYPE:
|
|
704
|
-
return getComponentName(type.type);
|
|
705
|
-
case REACT_BLOCK_TYPE:
|
|
706
|
-
return getComponentName(type._render);
|
|
707
|
-
case REACT_LAZY_TYPE: {
|
|
708
|
-
var lazyComponent = type;
|
|
709
|
-
var payload = lazyComponent._payload;
|
|
710
|
-
var init = lazyComponent._init;
|
|
711
|
-
try {
|
|
712
|
-
return getComponentName(init(payload));
|
|
713
|
-
} catch (x) {
|
|
714
|
-
return null;
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
return null;
|
|
720
|
-
}
|
|
721
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
722
|
-
var RESERVED_PROPS = {
|
|
723
|
-
key: true,
|
|
724
|
-
ref: true,
|
|
725
|
-
__self: true,
|
|
726
|
-
__source: true
|
|
727
|
-
};
|
|
728
|
-
var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
|
|
729
|
-
{
|
|
730
|
-
didWarnAboutStringRefs = {};
|
|
731
|
-
}
|
|
732
|
-
function hasValidRef(config) {
|
|
733
|
-
{
|
|
734
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
735
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
736
|
-
if (getter && getter.isReactWarning) {
|
|
737
|
-
return false;
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
return config.ref !== void 0;
|
|
742
|
-
}
|
|
743
|
-
function hasValidKey(config) {
|
|
744
|
-
{
|
|
745
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
746
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
747
|
-
if (getter && getter.isReactWarning) {
|
|
748
|
-
return false;
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
return config.key !== void 0;
|
|
753
|
-
}
|
|
754
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
755
|
-
var warnAboutAccessingKey = function() {
|
|
756
|
-
{
|
|
757
|
-
if (!specialPropKeyWarningShown) {
|
|
758
|
-
specialPropKeyWarningShown = true;
|
|
759
|
-
error("%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)", displayName);
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
};
|
|
763
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
764
|
-
Object.defineProperty(props, "key", {
|
|
765
|
-
get: warnAboutAccessingKey,
|
|
766
|
-
configurable: true
|
|
767
|
-
});
|
|
768
|
-
}
|
|
769
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
770
|
-
var warnAboutAccessingRef = function() {
|
|
771
|
-
{
|
|
772
|
-
if (!specialPropRefWarningShown) {
|
|
773
|
-
specialPropRefWarningShown = true;
|
|
774
|
-
error("%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)", displayName);
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
};
|
|
778
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
779
|
-
Object.defineProperty(props, "ref", {
|
|
780
|
-
get: warnAboutAccessingRef,
|
|
781
|
-
configurable: true
|
|
782
|
-
});
|
|
783
|
-
}
|
|
784
|
-
function warnIfStringRefCannotBeAutoConverted(config) {
|
|
785
|
-
{
|
|
786
|
-
if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
|
|
787
|
-
var componentName = getComponentName(ReactCurrentOwner.current.type);
|
|
788
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
789
|
-
error('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', componentName, config.ref);
|
|
790
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
796
|
-
var element = {
|
|
797
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
798
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
799
|
-
// Built-in properties that belong on the element
|
|
800
|
-
type,
|
|
801
|
-
key,
|
|
802
|
-
ref,
|
|
803
|
-
props,
|
|
804
|
-
// Record the component responsible for creating this element.
|
|
805
|
-
_owner: owner
|
|
806
|
-
};
|
|
807
|
-
{
|
|
808
|
-
element._store = {};
|
|
809
|
-
Object.defineProperty(element._store, "validated", {
|
|
810
|
-
configurable: false,
|
|
811
|
-
enumerable: false,
|
|
812
|
-
writable: true,
|
|
813
|
-
value: false
|
|
814
|
-
});
|
|
815
|
-
Object.defineProperty(element, "_self", {
|
|
816
|
-
configurable: false,
|
|
817
|
-
enumerable: false,
|
|
818
|
-
writable: false,
|
|
819
|
-
value: self
|
|
820
|
-
});
|
|
821
|
-
Object.defineProperty(element, "_source", {
|
|
822
|
-
configurable: false,
|
|
823
|
-
enumerable: false,
|
|
824
|
-
writable: false,
|
|
825
|
-
value: source
|
|
826
|
-
});
|
|
827
|
-
if (Object.freeze) {
|
|
828
|
-
Object.freeze(element.props);
|
|
829
|
-
Object.freeze(element);
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
return element;
|
|
833
|
-
};
|
|
834
|
-
function createElement(type, config, children) {
|
|
835
|
-
var propName;
|
|
836
|
-
var props = {};
|
|
837
|
-
var key = null;
|
|
838
|
-
var ref = null;
|
|
839
|
-
var self = null;
|
|
840
|
-
var source = null;
|
|
841
|
-
if (config != null) {
|
|
842
|
-
if (hasValidRef(config)) {
|
|
843
|
-
ref = config.ref;
|
|
844
|
-
{
|
|
845
|
-
warnIfStringRefCannotBeAutoConverted(config);
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
if (hasValidKey(config)) {
|
|
849
|
-
key = "" + config.key;
|
|
850
|
-
}
|
|
851
|
-
self = config.__self === void 0 ? null : config.__self;
|
|
852
|
-
source = config.__source === void 0 ? null : config.__source;
|
|
853
|
-
for (propName in config) {
|
|
854
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
855
|
-
props[propName] = config[propName];
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
var childrenLength = arguments.length - 2;
|
|
860
|
-
if (childrenLength === 1) {
|
|
861
|
-
props.children = children;
|
|
862
|
-
} else if (childrenLength > 1) {
|
|
863
|
-
var childArray = Array(childrenLength);
|
|
864
|
-
for (var i = 0; i < childrenLength; i++) {
|
|
865
|
-
childArray[i] = arguments[i + 2];
|
|
866
|
-
}
|
|
867
|
-
{
|
|
868
|
-
if (Object.freeze) {
|
|
869
|
-
Object.freeze(childArray);
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
props.children = childArray;
|
|
873
|
-
}
|
|
874
|
-
if (type && type.defaultProps) {
|
|
875
|
-
var defaultProps = type.defaultProps;
|
|
876
|
-
for (propName in defaultProps) {
|
|
877
|
-
if (props[propName] === void 0) {
|
|
878
|
-
props[propName] = defaultProps[propName];
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
{
|
|
883
|
-
if (key || ref) {
|
|
884
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
885
|
-
if (key) {
|
|
886
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
887
|
-
}
|
|
888
|
-
if (ref) {
|
|
889
|
-
defineRefPropWarningGetter(props, displayName);
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
894
|
-
}
|
|
895
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
896
|
-
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
|
|
897
|
-
return newElement;
|
|
898
|
-
}
|
|
899
|
-
function cloneElement(element, config, children) {
|
|
900
|
-
if (!!(element === null || element === void 0)) {
|
|
901
|
-
{
|
|
902
|
-
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
var propName;
|
|
906
|
-
var props = _assign({}, element.props);
|
|
907
|
-
var key = element.key;
|
|
908
|
-
var ref = element.ref;
|
|
909
|
-
var self = element._self;
|
|
910
|
-
var source = element._source;
|
|
911
|
-
var owner = element._owner;
|
|
912
|
-
if (config != null) {
|
|
913
|
-
if (hasValidRef(config)) {
|
|
914
|
-
ref = config.ref;
|
|
915
|
-
owner = ReactCurrentOwner.current;
|
|
916
|
-
}
|
|
917
|
-
if (hasValidKey(config)) {
|
|
918
|
-
key = "" + config.key;
|
|
919
|
-
}
|
|
920
|
-
var defaultProps;
|
|
921
|
-
if (element.type && element.type.defaultProps) {
|
|
922
|
-
defaultProps = element.type.defaultProps;
|
|
923
|
-
}
|
|
924
|
-
for (propName in config) {
|
|
925
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
926
|
-
if (config[propName] === void 0 && defaultProps !== void 0) {
|
|
927
|
-
props[propName] = defaultProps[propName];
|
|
928
|
-
} else {
|
|
929
|
-
props[propName] = config[propName];
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
var childrenLength = arguments.length - 2;
|
|
935
|
-
if (childrenLength === 1) {
|
|
936
|
-
props.children = children;
|
|
937
|
-
} else if (childrenLength > 1) {
|
|
938
|
-
var childArray = Array(childrenLength);
|
|
939
|
-
for (var i = 0; i < childrenLength; i++) {
|
|
940
|
-
childArray[i] = arguments[i + 2];
|
|
941
|
-
}
|
|
942
|
-
props.children = childArray;
|
|
943
|
-
}
|
|
944
|
-
return ReactElement(element.type, key, ref, self, source, owner, props);
|
|
945
|
-
}
|
|
946
|
-
function isValidElement(object) {
|
|
947
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
948
|
-
}
|
|
949
|
-
var SEPARATOR = ".";
|
|
950
|
-
var SUBSEPARATOR = ":";
|
|
951
|
-
function escape(key) {
|
|
952
|
-
var escapeRegex = /[=:]/g;
|
|
953
|
-
var escaperLookup = {
|
|
954
|
-
"=": "=0",
|
|
955
|
-
":": "=2"
|
|
956
|
-
};
|
|
957
|
-
var escapedString = key.replace(escapeRegex, function(match) {
|
|
958
|
-
return escaperLookup[match];
|
|
959
|
-
});
|
|
960
|
-
return "$" + escapedString;
|
|
961
|
-
}
|
|
962
|
-
var didWarnAboutMaps = false;
|
|
963
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
964
|
-
function escapeUserProvidedKey(text) {
|
|
965
|
-
return text.replace(userProvidedKeyEscapeRegex, "$&/");
|
|
966
|
-
}
|
|
967
|
-
function getElementKey(element, index) {
|
|
968
|
-
if (typeof element === "object" && element !== null && element.key != null) {
|
|
969
|
-
return escape("" + element.key);
|
|
970
|
-
}
|
|
971
|
-
return index.toString(36);
|
|
972
|
-
}
|
|
973
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
974
|
-
var type = typeof children;
|
|
975
|
-
if (type === "undefined" || type === "boolean") {
|
|
976
|
-
children = null;
|
|
977
|
-
}
|
|
978
|
-
var invokeCallback = false;
|
|
979
|
-
if (children === null) {
|
|
980
|
-
invokeCallback = true;
|
|
981
|
-
} else {
|
|
982
|
-
switch (type) {
|
|
983
|
-
case "string":
|
|
984
|
-
case "number":
|
|
985
|
-
invokeCallback = true;
|
|
986
|
-
break;
|
|
987
|
-
case "object":
|
|
988
|
-
switch (children.$$typeof) {
|
|
989
|
-
case REACT_ELEMENT_TYPE:
|
|
990
|
-
case REACT_PORTAL_TYPE:
|
|
991
|
-
invokeCallback = true;
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
|
-
if (invokeCallback) {
|
|
996
|
-
var _child = children;
|
|
997
|
-
var mappedChild = callback(_child);
|
|
998
|
-
var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
|
|
999
|
-
if (Array.isArray(mappedChild)) {
|
|
1000
|
-
var escapedChildKey = "";
|
|
1001
|
-
if (childKey != null) {
|
|
1002
|
-
escapedChildKey = escapeUserProvidedKey(childKey) + "/";
|
|
1003
|
-
}
|
|
1004
|
-
mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
|
|
1005
|
-
return c;
|
|
1006
|
-
});
|
|
1007
|
-
} else if (mappedChild != null) {
|
|
1008
|
-
if (isValidElement(mappedChild)) {
|
|
1009
|
-
mappedChild = cloneAndReplaceKey(
|
|
1010
|
-
mappedChild,
|
|
1011
|
-
// Keep both the (mapped) and old keys if they differ, just as
|
|
1012
|
-
// traverseAllChildren used to do for objects as children
|
|
1013
|
-
escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
1014
|
-
(mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
|
|
1015
|
-
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
1016
|
-
escapeUserProvidedKey("" + mappedChild.key) + "/"
|
|
1017
|
-
) : "") + childKey
|
|
1018
|
-
);
|
|
1019
|
-
}
|
|
1020
|
-
array.push(mappedChild);
|
|
1021
|
-
}
|
|
1022
|
-
return 1;
|
|
1023
|
-
}
|
|
1024
|
-
var child;
|
|
1025
|
-
var nextName;
|
|
1026
|
-
var subtreeCount = 0;
|
|
1027
|
-
var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
|
1028
|
-
if (Array.isArray(children)) {
|
|
1029
|
-
for (var i = 0; i < children.length; i++) {
|
|
1030
|
-
child = children[i];
|
|
1031
|
-
nextName = nextNamePrefix + getElementKey(child, i);
|
|
1032
|
-
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
1033
|
-
}
|
|
1034
|
-
} else {
|
|
1035
|
-
var iteratorFn = getIteratorFn(children);
|
|
1036
|
-
if (typeof iteratorFn === "function") {
|
|
1037
|
-
var iterableChildren = children;
|
|
1038
|
-
{
|
|
1039
|
-
if (iteratorFn === iterableChildren.entries) {
|
|
1040
|
-
if (!didWarnAboutMaps) {
|
|
1041
|
-
warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
|
|
1042
|
-
}
|
|
1043
|
-
didWarnAboutMaps = true;
|
|
1044
|
-
}
|
|
1045
|
-
}
|
|
1046
|
-
var iterator = iteratorFn.call(iterableChildren);
|
|
1047
|
-
var step;
|
|
1048
|
-
var ii = 0;
|
|
1049
|
-
while (!(step = iterator.next()).done) {
|
|
1050
|
-
child = step.value;
|
|
1051
|
-
nextName = nextNamePrefix + getElementKey(child, ii++);
|
|
1052
|
-
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
1053
|
-
}
|
|
1054
|
-
} else if (type === "object") {
|
|
1055
|
-
var childrenString = "" + children;
|
|
1056
|
-
{
|
|
1057
|
-
{
|
|
1058
|
-
throw Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
return subtreeCount;
|
|
1064
|
-
}
|
|
1065
|
-
function mapChildren(children, func, context) {
|
|
1066
|
-
if (children == null) {
|
|
1067
|
-
return children;
|
|
1068
|
-
}
|
|
1069
|
-
var result = [];
|
|
1070
|
-
var count2 = 0;
|
|
1071
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
1072
|
-
return func.call(context, child, count2++);
|
|
1073
|
-
});
|
|
1074
|
-
return result;
|
|
1075
|
-
}
|
|
1076
|
-
function countChildren(children) {
|
|
1077
|
-
var n = 0;
|
|
1078
|
-
mapChildren(children, function() {
|
|
1079
|
-
n++;
|
|
1080
|
-
});
|
|
1081
|
-
return n;
|
|
1082
|
-
}
|
|
1083
|
-
function forEachChildren(children, forEachFunc, forEachContext) {
|
|
1084
|
-
mapChildren(children, function() {
|
|
1085
|
-
forEachFunc.apply(this, arguments);
|
|
1086
|
-
}, forEachContext);
|
|
1087
|
-
}
|
|
1088
|
-
function toArray(children) {
|
|
1089
|
-
return mapChildren(children, function(child) {
|
|
1090
|
-
return child;
|
|
1091
|
-
}) || [];
|
|
1092
|
-
}
|
|
1093
|
-
function onlyChild(children) {
|
|
1094
|
-
if (!isValidElement(children)) {
|
|
1095
|
-
{
|
|
1096
|
-
throw Error("React.Children.only expected to receive a single React element child.");
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
return children;
|
|
1100
|
-
}
|
|
1101
|
-
function createContext3(defaultValue, calculateChangedBits) {
|
|
1102
|
-
if (calculateChangedBits === void 0) {
|
|
1103
|
-
calculateChangedBits = null;
|
|
1104
|
-
} else {
|
|
1105
|
-
{
|
|
1106
|
-
if (calculateChangedBits !== null && typeof calculateChangedBits !== "function") {
|
|
1107
|
-
error("createContext: Expected the optional second argument to be a function. Instead received: %s", calculateChangedBits);
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
var context = {
|
|
1112
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1113
|
-
_calculateChangedBits: calculateChangedBits,
|
|
1114
|
-
// As a workaround to support multiple concurrent renderers, we categorize
|
|
1115
|
-
// some renderers as primary and others as secondary. We only expect
|
|
1116
|
-
// there to be two concurrent renderers at most: React Native (primary) and
|
|
1117
|
-
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
1118
|
-
// Secondary renderers store their context values on separate fields.
|
|
1119
|
-
_currentValue: defaultValue,
|
|
1120
|
-
_currentValue2: defaultValue,
|
|
1121
|
-
// Used to track how many concurrent renderers this context currently
|
|
1122
|
-
// supports within in a single renderer. Such as parallel server rendering.
|
|
1123
|
-
_threadCount: 0,
|
|
1124
|
-
// These are circular
|
|
1125
|
-
Provider: null,
|
|
1126
|
-
Consumer: null
|
|
1127
|
-
};
|
|
1128
|
-
context.Provider = {
|
|
1129
|
-
$$typeof: REACT_PROVIDER_TYPE,
|
|
1130
|
-
_context: context
|
|
1131
|
-
};
|
|
1132
|
-
var hasWarnedAboutUsingNestedContextConsumers = false;
|
|
1133
|
-
var hasWarnedAboutUsingConsumerProvider = false;
|
|
1134
|
-
var hasWarnedAboutDisplayNameOnConsumer = false;
|
|
1135
|
-
{
|
|
1136
|
-
var Consumer = {
|
|
1137
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1138
|
-
_context: context,
|
|
1139
|
-
_calculateChangedBits: context._calculateChangedBits
|
|
1140
|
-
};
|
|
1141
|
-
Object.defineProperties(Consumer, {
|
|
1142
|
-
Provider: {
|
|
1143
|
-
get: function() {
|
|
1144
|
-
if (!hasWarnedAboutUsingConsumerProvider) {
|
|
1145
|
-
hasWarnedAboutUsingConsumerProvider = true;
|
|
1146
|
-
error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
|
|
1147
|
-
}
|
|
1148
|
-
return context.Provider;
|
|
1149
|
-
},
|
|
1150
|
-
set: function(_Provider) {
|
|
1151
|
-
context.Provider = _Provider;
|
|
1152
|
-
}
|
|
1153
|
-
},
|
|
1154
|
-
_currentValue: {
|
|
1155
|
-
get: function() {
|
|
1156
|
-
return context._currentValue;
|
|
1157
|
-
},
|
|
1158
|
-
set: function(_currentValue) {
|
|
1159
|
-
context._currentValue = _currentValue;
|
|
1160
|
-
}
|
|
1161
|
-
},
|
|
1162
|
-
_currentValue2: {
|
|
1163
|
-
get: function() {
|
|
1164
|
-
return context._currentValue2;
|
|
1165
|
-
},
|
|
1166
|
-
set: function(_currentValue2) {
|
|
1167
|
-
context._currentValue2 = _currentValue2;
|
|
1168
|
-
}
|
|
1169
|
-
},
|
|
1170
|
-
_threadCount: {
|
|
1171
|
-
get: function() {
|
|
1172
|
-
return context._threadCount;
|
|
1173
|
-
},
|
|
1174
|
-
set: function(_threadCount) {
|
|
1175
|
-
context._threadCount = _threadCount;
|
|
1176
|
-
}
|
|
1177
|
-
},
|
|
1178
|
-
Consumer: {
|
|
1179
|
-
get: function() {
|
|
1180
|
-
if (!hasWarnedAboutUsingNestedContextConsumers) {
|
|
1181
|
-
hasWarnedAboutUsingNestedContextConsumers = true;
|
|
1182
|
-
error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
|
|
1183
|
-
}
|
|
1184
|
-
return context.Consumer;
|
|
1185
|
-
}
|
|
1186
|
-
},
|
|
1187
|
-
displayName: {
|
|
1188
|
-
get: function() {
|
|
1189
|
-
return context.displayName;
|
|
1190
|
-
},
|
|
1191
|
-
set: function(displayName) {
|
|
1192
|
-
if (!hasWarnedAboutDisplayNameOnConsumer) {
|
|
1193
|
-
warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
|
|
1194
|
-
hasWarnedAboutDisplayNameOnConsumer = true;
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
});
|
|
1199
|
-
context.Consumer = Consumer;
|
|
1200
|
-
}
|
|
1201
|
-
{
|
|
1202
|
-
context._currentRenderer = null;
|
|
1203
|
-
context._currentRenderer2 = null;
|
|
1204
|
-
}
|
|
1205
|
-
return context;
|
|
1206
|
-
}
|
|
1207
|
-
var Uninitialized = -1;
|
|
1208
|
-
var Pending = 0;
|
|
1209
|
-
var Resolved = 1;
|
|
1210
|
-
var Rejected = 2;
|
|
1211
|
-
function lazyInitializer(payload) {
|
|
1212
|
-
if (payload._status === Uninitialized) {
|
|
1213
|
-
var ctor = payload._result;
|
|
1214
|
-
var thenable = ctor();
|
|
1215
|
-
var pending = payload;
|
|
1216
|
-
pending._status = Pending;
|
|
1217
|
-
pending._result = thenable;
|
|
1218
|
-
thenable.then(function(moduleObject) {
|
|
1219
|
-
if (payload._status === Pending) {
|
|
1220
|
-
var defaultExport = moduleObject.default;
|
|
1221
|
-
{
|
|
1222
|
-
if (defaultExport === void 0) {
|
|
1223
|
-
error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
var resolved = payload;
|
|
1227
|
-
resolved._status = Resolved;
|
|
1228
|
-
resolved._result = defaultExport;
|
|
1229
|
-
}
|
|
1230
|
-
}, function(error2) {
|
|
1231
|
-
if (payload._status === Pending) {
|
|
1232
|
-
var rejected = payload;
|
|
1233
|
-
rejected._status = Rejected;
|
|
1234
|
-
rejected._result = error2;
|
|
1235
|
-
}
|
|
1236
|
-
});
|
|
1237
|
-
}
|
|
1238
|
-
if (payload._status === Resolved) {
|
|
1239
|
-
return payload._result;
|
|
1240
|
-
} else {
|
|
1241
|
-
throw payload._result;
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
function lazy(ctor) {
|
|
1245
|
-
var payload = {
|
|
1246
|
-
// We use these fields to store the result.
|
|
1247
|
-
_status: -1,
|
|
1248
|
-
_result: ctor
|
|
1249
|
-
};
|
|
1250
|
-
var lazyType = {
|
|
1251
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
1252
|
-
_payload: payload,
|
|
1253
|
-
_init: lazyInitializer
|
|
1254
|
-
};
|
|
1255
|
-
{
|
|
1256
|
-
var defaultProps;
|
|
1257
|
-
var propTypes;
|
|
1258
|
-
Object.defineProperties(lazyType, {
|
|
1259
|
-
defaultProps: {
|
|
1260
|
-
configurable: true,
|
|
1261
|
-
get: function() {
|
|
1262
|
-
return defaultProps;
|
|
1263
|
-
},
|
|
1264
|
-
set: function(newDefaultProps) {
|
|
1265
|
-
error("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.");
|
|
1266
|
-
defaultProps = newDefaultProps;
|
|
1267
|
-
Object.defineProperty(lazyType, "defaultProps", {
|
|
1268
|
-
enumerable: true
|
|
1269
|
-
});
|
|
1270
|
-
}
|
|
1271
|
-
},
|
|
1272
|
-
propTypes: {
|
|
1273
|
-
configurable: true,
|
|
1274
|
-
get: function() {
|
|
1275
|
-
return propTypes;
|
|
1276
|
-
},
|
|
1277
|
-
set: function(newPropTypes) {
|
|
1278
|
-
error("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.");
|
|
1279
|
-
propTypes = newPropTypes;
|
|
1280
|
-
Object.defineProperty(lazyType, "propTypes", {
|
|
1281
|
-
enumerable: true
|
|
1282
|
-
});
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
return lazyType;
|
|
1288
|
-
}
|
|
1289
|
-
function forwardRef12(render) {
|
|
1290
|
-
{
|
|
1291
|
-
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
|
|
1292
|
-
error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
|
|
1293
|
-
} else if (typeof render !== "function") {
|
|
1294
|
-
error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
|
|
1295
|
-
} else {
|
|
1296
|
-
if (render.length !== 0 && render.length !== 2) {
|
|
1297
|
-
error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
if (render != null) {
|
|
1301
|
-
if (render.defaultProps != null || render.propTypes != null) {
|
|
1302
|
-
error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
|
-
var elementType = {
|
|
1307
|
-
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
1308
|
-
render
|
|
1309
|
-
};
|
|
1310
|
-
{
|
|
1311
|
-
var ownName;
|
|
1312
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1313
|
-
enumerable: false,
|
|
1314
|
-
configurable: true,
|
|
1315
|
-
get: function() {
|
|
1316
|
-
return ownName;
|
|
1317
|
-
},
|
|
1318
|
-
set: function(name) {
|
|
1319
|
-
ownName = name;
|
|
1320
|
-
if (render.displayName == null) {
|
|
1321
|
-
render.displayName = name;
|
|
1322
|
-
}
|
|
1323
|
-
}
|
|
1324
|
-
});
|
|
1325
|
-
}
|
|
1326
|
-
return elementType;
|
|
1327
|
-
}
|
|
1328
|
-
var enableScopeAPI = false;
|
|
1329
|
-
function isValidElementType(type) {
|
|
1330
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
1331
|
-
return true;
|
|
1332
|
-
}
|
|
1333
|
-
if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
|
|
1334
|
-
return true;
|
|
1335
|
-
}
|
|
1336
|
-
if (typeof type === "object" && type !== null) {
|
|
1337
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
|
|
1338
|
-
return true;
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
return false;
|
|
1342
|
-
}
|
|
1343
|
-
function memo(type, compare) {
|
|
1344
|
-
{
|
|
1345
|
-
if (!isValidElementType(type)) {
|
|
1346
|
-
error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
|
|
1347
|
-
}
|
|
1348
|
-
}
|
|
1349
|
-
var elementType = {
|
|
1350
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
1351
|
-
type,
|
|
1352
|
-
compare: compare === void 0 ? null : compare
|
|
1353
|
-
};
|
|
1354
|
-
{
|
|
1355
|
-
var ownName;
|
|
1356
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1357
|
-
enumerable: false,
|
|
1358
|
-
configurable: true,
|
|
1359
|
-
get: function() {
|
|
1360
|
-
return ownName;
|
|
1361
|
-
},
|
|
1362
|
-
set: function(name) {
|
|
1363
|
-
ownName = name;
|
|
1364
|
-
if (type.displayName == null) {
|
|
1365
|
-
type.displayName = name;
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
});
|
|
1369
|
-
}
|
|
1370
|
-
return elementType;
|
|
1371
|
-
}
|
|
1372
|
-
function resolveDispatcher() {
|
|
1373
|
-
var dispatcher = ReactCurrentDispatcher.current;
|
|
1374
|
-
if (!(dispatcher !== null)) {
|
|
1375
|
-
{
|
|
1376
|
-
throw Error("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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
return dispatcher;
|
|
1380
|
-
}
|
|
1381
|
-
function useContext3(Context, unstable_observedBits) {
|
|
1382
|
-
var dispatcher = resolveDispatcher();
|
|
1383
|
-
{
|
|
1384
|
-
if (unstable_observedBits !== void 0) {
|
|
1385
|
-
error("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s", unstable_observedBits, typeof unstable_observedBits === "number" && Array.isArray(arguments[2]) ? "\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks" : "");
|
|
1386
|
-
}
|
|
1387
|
-
if (Context._context !== void 0) {
|
|
1388
|
-
var realContext = Context._context;
|
|
1389
|
-
if (realContext.Consumer === Context) {
|
|
1390
|
-
error("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?");
|
|
1391
|
-
} else if (realContext.Provider === Context) {
|
|
1392
|
-
error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
return dispatcher.useContext(Context, unstable_observedBits);
|
|
1397
|
-
}
|
|
1398
|
-
function useState4(initialState) {
|
|
1399
|
-
var dispatcher = resolveDispatcher();
|
|
1400
|
-
return dispatcher.useState(initialState);
|
|
1401
|
-
}
|
|
1402
|
-
function useReducer(reducer2, initialArg, init) {
|
|
1403
|
-
var dispatcher = resolveDispatcher();
|
|
1404
|
-
return dispatcher.useReducer(reducer2, initialArg, init);
|
|
1405
|
-
}
|
|
1406
|
-
function useRef(initialValue) {
|
|
1407
|
-
var dispatcher = resolveDispatcher();
|
|
1408
|
-
return dispatcher.useRef(initialValue);
|
|
1409
|
-
}
|
|
1410
|
-
function useEffect3(create, deps) {
|
|
1411
|
-
var dispatcher = resolveDispatcher();
|
|
1412
|
-
return dispatcher.useEffect(create, deps);
|
|
1413
|
-
}
|
|
1414
|
-
function useLayoutEffect(create, deps) {
|
|
1415
|
-
var dispatcher = resolveDispatcher();
|
|
1416
|
-
return dispatcher.useLayoutEffect(create, deps);
|
|
1417
|
-
}
|
|
1418
|
-
function useCallback2(callback, deps) {
|
|
1419
|
-
var dispatcher = resolveDispatcher();
|
|
1420
|
-
return dispatcher.useCallback(callback, deps);
|
|
1421
|
-
}
|
|
1422
|
-
function useMemo(create, deps) {
|
|
1423
|
-
var dispatcher = resolveDispatcher();
|
|
1424
|
-
return dispatcher.useMemo(create, deps);
|
|
1425
|
-
}
|
|
1426
|
-
function useImperativeHandle(ref, create, deps) {
|
|
1427
|
-
var dispatcher = resolveDispatcher();
|
|
1428
|
-
return dispatcher.useImperativeHandle(ref, create, deps);
|
|
1429
|
-
}
|
|
1430
|
-
function useDebugValue(value, formatterFn) {
|
|
1431
|
-
{
|
|
1432
|
-
var dispatcher = resolveDispatcher();
|
|
1433
|
-
return dispatcher.useDebugValue(value, formatterFn);
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
var disabledDepth = 0;
|
|
1437
|
-
var prevLog;
|
|
1438
|
-
var prevInfo;
|
|
1439
|
-
var prevWarn;
|
|
1440
|
-
var prevError;
|
|
1441
|
-
var prevGroup;
|
|
1442
|
-
var prevGroupCollapsed;
|
|
1443
|
-
var prevGroupEnd;
|
|
1444
|
-
function disabledLog() {
|
|
1445
|
-
}
|
|
1446
|
-
disabledLog.__reactDisabledLog = true;
|
|
1447
|
-
function disableLogs() {
|
|
1448
|
-
{
|
|
1449
|
-
if (disabledDepth === 0) {
|
|
1450
|
-
prevLog = console.log;
|
|
1451
|
-
prevInfo = console.info;
|
|
1452
|
-
prevWarn = console.warn;
|
|
1453
|
-
prevError = console.error;
|
|
1454
|
-
prevGroup = console.group;
|
|
1455
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
1456
|
-
prevGroupEnd = console.groupEnd;
|
|
1457
|
-
var props = {
|
|
1458
|
-
configurable: true,
|
|
1459
|
-
enumerable: true,
|
|
1460
|
-
value: disabledLog,
|
|
1461
|
-
writable: true
|
|
1462
|
-
};
|
|
1463
|
-
Object.defineProperties(console, {
|
|
1464
|
-
info: props,
|
|
1465
|
-
log: props,
|
|
1466
|
-
warn: props,
|
|
1467
|
-
error: props,
|
|
1468
|
-
group: props,
|
|
1469
|
-
groupCollapsed: props,
|
|
1470
|
-
groupEnd: props
|
|
1471
|
-
});
|
|
1472
|
-
}
|
|
1473
|
-
disabledDepth++;
|
|
1474
|
-
}
|
|
1475
|
-
}
|
|
1476
|
-
function reenableLogs() {
|
|
1477
|
-
{
|
|
1478
|
-
disabledDepth--;
|
|
1479
|
-
if (disabledDepth === 0) {
|
|
1480
|
-
var props = {
|
|
1481
|
-
configurable: true,
|
|
1482
|
-
enumerable: true,
|
|
1483
|
-
writable: true
|
|
1484
|
-
};
|
|
1485
|
-
Object.defineProperties(console, {
|
|
1486
|
-
log: _assign({}, props, {
|
|
1487
|
-
value: prevLog
|
|
1488
|
-
}),
|
|
1489
|
-
info: _assign({}, props, {
|
|
1490
|
-
value: prevInfo
|
|
1491
|
-
}),
|
|
1492
|
-
warn: _assign({}, props, {
|
|
1493
|
-
value: prevWarn
|
|
1494
|
-
}),
|
|
1495
|
-
error: _assign({}, props, {
|
|
1496
|
-
value: prevError
|
|
1497
|
-
}),
|
|
1498
|
-
group: _assign({}, props, {
|
|
1499
|
-
value: prevGroup
|
|
1500
|
-
}),
|
|
1501
|
-
groupCollapsed: _assign({}, props, {
|
|
1502
|
-
value: prevGroupCollapsed
|
|
1503
|
-
}),
|
|
1504
|
-
groupEnd: _assign({}, props, {
|
|
1505
|
-
value: prevGroupEnd
|
|
1506
|
-
})
|
|
1507
|
-
});
|
|
1508
|
-
}
|
|
1509
|
-
if (disabledDepth < 0) {
|
|
1510
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
}
|
|
1514
|
-
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
|
|
1515
|
-
var prefix;
|
|
1516
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
1517
|
-
{
|
|
1518
|
-
if (prefix === void 0) {
|
|
1519
|
-
try {
|
|
1520
|
-
throw Error();
|
|
1521
|
-
} catch (x) {
|
|
1522
|
-
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
1523
|
-
prefix = match && match[1] || "";
|
|
1524
|
-
}
|
|
1525
|
-
}
|
|
1526
|
-
return "\n" + prefix + name;
|
|
1527
|
-
}
|
|
1528
|
-
}
|
|
1529
|
-
var reentry = false;
|
|
1530
|
-
var componentFrameCache;
|
|
1531
|
-
{
|
|
1532
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
1533
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
1534
|
-
}
|
|
1535
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
1536
|
-
if (!fn || reentry) {
|
|
1537
|
-
return "";
|
|
1538
|
-
}
|
|
1539
|
-
{
|
|
1540
|
-
var frame = componentFrameCache.get(fn);
|
|
1541
|
-
if (frame !== void 0) {
|
|
1542
|
-
return frame;
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1545
|
-
var control;
|
|
1546
|
-
reentry = true;
|
|
1547
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
1548
|
-
Error.prepareStackTrace = void 0;
|
|
1549
|
-
var previousDispatcher;
|
|
1550
|
-
{
|
|
1551
|
-
previousDispatcher = ReactCurrentDispatcher$1.current;
|
|
1552
|
-
ReactCurrentDispatcher$1.current = null;
|
|
1553
|
-
disableLogs();
|
|
1554
|
-
}
|
|
1555
|
-
try {
|
|
1556
|
-
if (construct) {
|
|
1557
|
-
var Fake = function() {
|
|
1558
|
-
throw Error();
|
|
1559
|
-
};
|
|
1560
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
1561
|
-
set: function() {
|
|
1562
|
-
throw Error();
|
|
1563
|
-
}
|
|
1564
|
-
});
|
|
1565
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
1566
|
-
try {
|
|
1567
|
-
Reflect.construct(Fake, []);
|
|
1568
|
-
} catch (x) {
|
|
1569
|
-
control = x;
|
|
1570
|
-
}
|
|
1571
|
-
Reflect.construct(fn, [], Fake);
|
|
1572
|
-
} else {
|
|
1573
|
-
try {
|
|
1574
|
-
Fake.call();
|
|
1575
|
-
} catch (x) {
|
|
1576
|
-
control = x;
|
|
1577
|
-
}
|
|
1578
|
-
fn.call(Fake.prototype);
|
|
1579
|
-
}
|
|
1580
|
-
} else {
|
|
1581
|
-
try {
|
|
1582
|
-
throw Error();
|
|
1583
|
-
} catch (x) {
|
|
1584
|
-
control = x;
|
|
1585
|
-
}
|
|
1586
|
-
fn();
|
|
1587
|
-
}
|
|
1588
|
-
} catch (sample) {
|
|
1589
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
1590
|
-
var sampleLines = sample.stack.split("\n");
|
|
1591
|
-
var controlLines = control.stack.split("\n");
|
|
1592
|
-
var s = sampleLines.length - 1;
|
|
1593
|
-
var c = controlLines.length - 1;
|
|
1594
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
1595
|
-
c--;
|
|
1596
|
-
}
|
|
1597
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
1598
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
1599
|
-
if (s !== 1 || c !== 1) {
|
|
1600
|
-
do {
|
|
1601
|
-
s--;
|
|
1602
|
-
c--;
|
|
1603
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
1604
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
1605
|
-
{
|
|
1606
|
-
if (typeof fn === "function") {
|
|
1607
|
-
componentFrameCache.set(fn, _frame);
|
|
1608
|
-
}
|
|
1609
|
-
}
|
|
1610
|
-
return _frame;
|
|
1611
|
-
}
|
|
1612
|
-
} while (s >= 1 && c >= 0);
|
|
1613
|
-
}
|
|
1614
|
-
break;
|
|
1615
|
-
}
|
|
1616
|
-
}
|
|
1617
|
-
}
|
|
1618
|
-
} finally {
|
|
1619
|
-
reentry = false;
|
|
1620
|
-
{
|
|
1621
|
-
ReactCurrentDispatcher$1.current = previousDispatcher;
|
|
1622
|
-
reenableLogs();
|
|
1623
|
-
}
|
|
1624
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
1625
|
-
}
|
|
1626
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
1627
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
1628
|
-
{
|
|
1629
|
-
if (typeof fn === "function") {
|
|
1630
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
1631
|
-
}
|
|
1632
|
-
}
|
|
1633
|
-
return syntheticFrame;
|
|
1634
|
-
}
|
|
1635
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
1636
|
-
{
|
|
1637
|
-
return describeNativeComponentFrame(fn, false);
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
function shouldConstruct(Component2) {
|
|
1641
|
-
var prototype = Component2.prototype;
|
|
1642
|
-
return !!(prototype && prototype.isReactComponent);
|
|
1643
|
-
}
|
|
1644
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
1645
|
-
if (type == null) {
|
|
1646
|
-
return "";
|
|
1647
|
-
}
|
|
1648
|
-
if (typeof type === "function") {
|
|
1649
|
-
{
|
|
1650
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
1651
|
-
}
|
|
1652
|
-
}
|
|
1653
|
-
if (typeof type === "string") {
|
|
1654
|
-
return describeBuiltInComponentFrame(type);
|
|
1655
|
-
}
|
|
1656
|
-
switch (type) {
|
|
1657
|
-
case exports.Suspense:
|
|
1658
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
1659
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1660
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
1661
|
-
}
|
|
1662
|
-
if (typeof type === "object") {
|
|
1663
|
-
switch (type.$$typeof) {
|
|
1664
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1665
|
-
return describeFunctionComponentFrame(type.render);
|
|
1666
|
-
case REACT_MEMO_TYPE:
|
|
1667
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
1668
|
-
case REACT_BLOCK_TYPE:
|
|
1669
|
-
return describeFunctionComponentFrame(type._render);
|
|
1670
|
-
case REACT_LAZY_TYPE: {
|
|
1671
|
-
var lazyComponent = type;
|
|
1672
|
-
var payload = lazyComponent._payload;
|
|
1673
|
-
var init = lazyComponent._init;
|
|
1674
|
-
try {
|
|
1675
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
1676
|
-
} catch (x) {
|
|
1677
|
-
}
|
|
1678
|
-
}
|
|
1679
|
-
}
|
|
1680
|
-
}
|
|
1681
|
-
return "";
|
|
1682
|
-
}
|
|
1683
|
-
var loggedTypeFailures = {};
|
|
1684
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
1685
|
-
function setCurrentlyValidatingElement(element) {
|
|
1686
|
-
{
|
|
1687
|
-
if (element) {
|
|
1688
|
-
var owner = element._owner;
|
|
1689
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
1690
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
1691
|
-
} else {
|
|
1692
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
1693
|
-
}
|
|
1694
|
-
}
|
|
1695
|
-
}
|
|
1696
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
1697
|
-
{
|
|
1698
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
1699
|
-
for (var typeSpecName in typeSpecs) {
|
|
1700
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
1701
|
-
var error$1 = void 0;
|
|
1702
|
-
try {
|
|
1703
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
1704
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1705
|
-
err.name = "Invariant Violation";
|
|
1706
|
-
throw err;
|
|
1707
|
-
}
|
|
1708
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1709
|
-
} catch (ex) {
|
|
1710
|
-
error$1 = ex;
|
|
1711
|
-
}
|
|
1712
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
1713
|
-
setCurrentlyValidatingElement(element);
|
|
1714
|
-
error("%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).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
1715
|
-
setCurrentlyValidatingElement(null);
|
|
1716
|
-
}
|
|
1717
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
1718
|
-
loggedTypeFailures[error$1.message] = true;
|
|
1719
|
-
setCurrentlyValidatingElement(element);
|
|
1720
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
1721
|
-
setCurrentlyValidatingElement(null);
|
|
1722
|
-
}
|
|
1723
|
-
}
|
|
1724
|
-
}
|
|
1725
|
-
}
|
|
1726
|
-
}
|
|
1727
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
1728
|
-
{
|
|
1729
|
-
if (element) {
|
|
1730
|
-
var owner = element._owner;
|
|
1731
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
1732
|
-
setExtraStackFrame(stack);
|
|
1733
|
-
} else {
|
|
1734
|
-
setExtraStackFrame(null);
|
|
1735
|
-
}
|
|
1736
|
-
}
|
|
1737
|
-
}
|
|
1738
|
-
var propTypesMisspellWarningShown;
|
|
1739
|
-
{
|
|
1740
|
-
propTypesMisspellWarningShown = false;
|
|
1741
|
-
}
|
|
1742
|
-
function getDeclarationErrorAddendum() {
|
|
1743
|
-
if (ReactCurrentOwner.current) {
|
|
1744
|
-
var name = getComponentName(ReactCurrentOwner.current.type);
|
|
1745
|
-
if (name) {
|
|
1746
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
1747
|
-
}
|
|
1748
|
-
}
|
|
1749
|
-
return "";
|
|
1750
|
-
}
|
|
1751
|
-
function getSourceInfoErrorAddendum(source) {
|
|
1752
|
-
if (source !== void 0) {
|
|
1753
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
1754
|
-
var lineNumber = source.lineNumber;
|
|
1755
|
-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
1756
|
-
}
|
|
1757
|
-
return "";
|
|
1758
|
-
}
|
|
1759
|
-
function getSourceInfoErrorAddendumForProps(elementProps) {
|
|
1760
|
-
if (elementProps !== null && elementProps !== void 0) {
|
|
1761
|
-
return getSourceInfoErrorAddendum(elementProps.__source);
|
|
1762
|
-
}
|
|
1763
|
-
return "";
|
|
1764
|
-
}
|
|
1765
|
-
var ownerHasKeyUseWarning = {};
|
|
1766
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
1767
|
-
var info = getDeclarationErrorAddendum();
|
|
1768
|
-
if (!info) {
|
|
1769
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
1770
|
-
if (parentName) {
|
|
1771
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
1772
|
-
}
|
|
1773
|
-
}
|
|
1774
|
-
return info;
|
|
1775
|
-
}
|
|
1776
|
-
function validateExplicitKey(element, parentType) {
|
|
1777
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
1778
|
-
return;
|
|
1779
|
-
}
|
|
1780
|
-
element._store.validated = true;
|
|
1781
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
1782
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
1783
|
-
return;
|
|
1784
|
-
}
|
|
1785
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
1786
|
-
var childOwner = "";
|
|
1787
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
|
|
1788
|
-
childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
|
|
1789
|
-
}
|
|
1790
|
-
{
|
|
1791
|
-
setCurrentlyValidatingElement$1(element);
|
|
1792
|
-
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
1793
|
-
setCurrentlyValidatingElement$1(null);
|
|
1794
|
-
}
|
|
1795
|
-
}
|
|
1796
|
-
function validateChildKeys(node, parentType) {
|
|
1797
|
-
if (typeof node !== "object") {
|
|
1798
|
-
return;
|
|
1799
|
-
}
|
|
1800
|
-
if (Array.isArray(node)) {
|
|
1801
|
-
for (var i = 0; i < node.length; i++) {
|
|
1802
|
-
var child = node[i];
|
|
1803
|
-
if (isValidElement(child)) {
|
|
1804
|
-
validateExplicitKey(child, parentType);
|
|
1805
|
-
}
|
|
1806
|
-
}
|
|
1807
|
-
} else if (isValidElement(node)) {
|
|
1808
|
-
if (node._store) {
|
|
1809
|
-
node._store.validated = true;
|
|
1810
|
-
}
|
|
1811
|
-
} else if (node) {
|
|
1812
|
-
var iteratorFn = getIteratorFn(node);
|
|
1813
|
-
if (typeof iteratorFn === "function") {
|
|
1814
|
-
if (iteratorFn !== node.entries) {
|
|
1815
|
-
var iterator = iteratorFn.call(node);
|
|
1816
|
-
var step;
|
|
1817
|
-
while (!(step = iterator.next()).done) {
|
|
1818
|
-
if (isValidElement(step.value)) {
|
|
1819
|
-
validateExplicitKey(step.value, parentType);
|
|
1820
|
-
}
|
|
1821
|
-
}
|
|
1822
|
-
}
|
|
1823
|
-
}
|
|
1824
|
-
}
|
|
1825
|
-
}
|
|
1826
|
-
function validatePropTypes(element) {
|
|
1827
|
-
{
|
|
1828
|
-
var type = element.type;
|
|
1829
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
1830
|
-
return;
|
|
1831
|
-
}
|
|
1832
|
-
var propTypes;
|
|
1833
|
-
if (typeof type === "function") {
|
|
1834
|
-
propTypes = type.propTypes;
|
|
1835
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
1836
|
-
// Inner props are checked in the reconciler.
|
|
1837
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
1838
|
-
propTypes = type.propTypes;
|
|
1839
|
-
} else {
|
|
1840
|
-
return;
|
|
1841
|
-
}
|
|
1842
|
-
if (propTypes) {
|
|
1843
|
-
var name = getComponentName(type);
|
|
1844
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
1845
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
1846
|
-
propTypesMisspellWarningShown = true;
|
|
1847
|
-
var _name = getComponentName(type);
|
|
1848
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
1849
|
-
}
|
|
1850
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
1851
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1852
|
-
}
|
|
1853
|
-
}
|
|
1854
|
-
}
|
|
1855
|
-
function validateFragmentProps(fragment) {
|
|
1856
|
-
{
|
|
1857
|
-
var keys = Object.keys(fragment.props);
|
|
1858
|
-
for (var i = 0; i < keys.length; i++) {
|
|
1859
|
-
var key = keys[i];
|
|
1860
|
-
if (key !== "children" && key !== "key") {
|
|
1861
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
1862
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
1863
|
-
setCurrentlyValidatingElement$1(null);
|
|
1864
|
-
break;
|
|
1865
|
-
}
|
|
1866
|
-
}
|
|
1867
|
-
if (fragment.ref !== null) {
|
|
1868
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
1869
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
1870
|
-
setCurrentlyValidatingElement$1(null);
|
|
1871
|
-
}
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
|
-
function createElementWithValidation(type, props, children) {
|
|
1875
|
-
var validType = isValidElementType(type);
|
|
1876
|
-
if (!validType) {
|
|
1877
|
-
var info = "";
|
|
1878
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
1879
|
-
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
1880
|
-
}
|
|
1881
|
-
var sourceInfo = getSourceInfoErrorAddendumForProps(props);
|
|
1882
|
-
if (sourceInfo) {
|
|
1883
|
-
info += sourceInfo;
|
|
1884
|
-
} else {
|
|
1885
|
-
info += getDeclarationErrorAddendum();
|
|
1886
|
-
}
|
|
1887
|
-
var typeString;
|
|
1888
|
-
if (type === null) {
|
|
1889
|
-
typeString = "null";
|
|
1890
|
-
} else if (Array.isArray(type)) {
|
|
1891
|
-
typeString = "array";
|
|
1892
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
1893
|
-
typeString = "<" + (getComponentName(type.type) || "Unknown") + " />";
|
|
1894
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
1895
|
-
} else {
|
|
1896
|
-
typeString = typeof type;
|
|
1897
|
-
}
|
|
1898
|
-
{
|
|
1899
|
-
error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
1900
|
-
}
|
|
1901
|
-
}
|
|
1902
|
-
var element = createElement.apply(this, arguments);
|
|
1903
|
-
if (element == null) {
|
|
1904
|
-
return element;
|
|
1905
|
-
}
|
|
1906
|
-
if (validType) {
|
|
1907
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
1908
|
-
validateChildKeys(arguments[i], type);
|
|
1909
|
-
}
|
|
1910
|
-
}
|
|
1911
|
-
if (type === exports.Fragment) {
|
|
1912
|
-
validateFragmentProps(element);
|
|
1913
|
-
} else {
|
|
1914
|
-
validatePropTypes(element);
|
|
1915
|
-
}
|
|
1916
|
-
return element;
|
|
1917
|
-
}
|
|
1918
|
-
var didWarnAboutDeprecatedCreateFactory = false;
|
|
1919
|
-
function createFactoryWithValidation(type) {
|
|
1920
|
-
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
1921
|
-
validatedFactory.type = type;
|
|
1922
|
-
{
|
|
1923
|
-
if (!didWarnAboutDeprecatedCreateFactory) {
|
|
1924
|
-
didWarnAboutDeprecatedCreateFactory = true;
|
|
1925
|
-
warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
|
|
1926
|
-
}
|
|
1927
|
-
Object.defineProperty(validatedFactory, "type", {
|
|
1928
|
-
enumerable: false,
|
|
1929
|
-
get: function() {
|
|
1930
|
-
warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
|
|
1931
|
-
Object.defineProperty(this, "type", {
|
|
1932
|
-
value: type
|
|
1933
|
-
});
|
|
1934
|
-
return type;
|
|
1935
|
-
}
|
|
1936
|
-
});
|
|
1937
|
-
}
|
|
1938
|
-
return validatedFactory;
|
|
1939
|
-
}
|
|
1940
|
-
function cloneElementWithValidation(element, props, children) {
|
|
1941
|
-
var newElement = cloneElement.apply(this, arguments);
|
|
1942
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
1943
|
-
validateChildKeys(arguments[i], newElement.type);
|
|
1944
|
-
}
|
|
1945
|
-
validatePropTypes(newElement);
|
|
1946
|
-
return newElement;
|
|
1947
|
-
}
|
|
1948
|
-
{
|
|
1949
|
-
try {
|
|
1950
|
-
var frozenObject = Object.freeze({});
|
|
1951
|
-
/* @__PURE__ */ new Map([[frozenObject, null]]);
|
|
1952
|
-
/* @__PURE__ */ new Set([frozenObject]);
|
|
1953
|
-
} catch (e) {
|
|
1954
|
-
}
|
|
1955
|
-
}
|
|
1956
|
-
var createElement$1 = createElementWithValidation;
|
|
1957
|
-
var cloneElement$1 = cloneElementWithValidation;
|
|
1958
|
-
var createFactory = createFactoryWithValidation;
|
|
1959
|
-
var Children = {
|
|
1960
|
-
map: mapChildren,
|
|
1961
|
-
forEach: forEachChildren,
|
|
1962
|
-
count: countChildren,
|
|
1963
|
-
toArray,
|
|
1964
|
-
only: onlyChild
|
|
1965
|
-
};
|
|
1966
|
-
exports.Children = Children;
|
|
1967
|
-
exports.Component = Component;
|
|
1968
|
-
exports.PureComponent = PureComponent;
|
|
1969
|
-
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
|
1970
|
-
exports.cloneElement = cloneElement$1;
|
|
1971
|
-
exports.createContext = createContext3;
|
|
1972
|
-
exports.createElement = createElement$1;
|
|
1973
|
-
exports.createFactory = createFactory;
|
|
1974
|
-
exports.createRef = createRef;
|
|
1975
|
-
exports.forwardRef = forwardRef12;
|
|
1976
|
-
exports.isValidElement = isValidElement;
|
|
1977
|
-
exports.lazy = lazy;
|
|
1978
|
-
exports.memo = memo;
|
|
1979
|
-
exports.useCallback = useCallback2;
|
|
1980
|
-
exports.useContext = useContext3;
|
|
1981
|
-
exports.useDebugValue = useDebugValue;
|
|
1982
|
-
exports.useEffect = useEffect3;
|
|
1983
|
-
exports.useImperativeHandle = useImperativeHandle;
|
|
1984
|
-
exports.useLayoutEffect = useLayoutEffect;
|
|
1985
|
-
exports.useMemo = useMemo;
|
|
1986
|
-
exports.useReducer = useReducer;
|
|
1987
|
-
exports.useRef = useRef;
|
|
1988
|
-
exports.useState = useState4;
|
|
1989
|
-
exports.version = ReactVersion;
|
|
1990
|
-
})();
|
|
1991
|
-
}
|
|
1992
|
-
}
|
|
1993
|
-
});
|
|
1994
|
-
|
|
1995
|
-
// node_modules/react/index.js
|
|
1996
|
-
var require_react = __commonJS({
|
|
1997
|
-
"node_modules/react/index.js"(exports, module) {
|
|
1998
|
-
"use strict";
|
|
1999
|
-
if (process.env.NODE_ENV === "production") {
|
|
2000
|
-
module.exports = require_react_production_min();
|
|
2001
|
-
} else {
|
|
2002
|
-
module.exports = require_react_development();
|
|
2003
|
-
}
|
|
2004
|
-
}
|
|
2005
|
-
});
|
|
2006
|
-
|
|
2007
|
-
// node_modules/react/cjs/react-jsx-runtime.production.min.js
|
|
2008
|
-
var require_react_jsx_runtime_production_min = __commonJS({
|
|
2009
|
-
"node_modules/react/cjs/react-jsx-runtime.production.min.js"(exports) {
|
|
2010
|
-
"use strict";
|
|
2011
|
-
require_object_assign();
|
|
2012
|
-
var f = require_react();
|
|
2013
|
-
var g = 60103;
|
|
2014
|
-
exports.Fragment = 60107;
|
|
2015
|
-
if ("function" === typeof Symbol && Symbol.for) {
|
|
2016
|
-
h = Symbol.for;
|
|
2017
|
-
g = h("react.element");
|
|
2018
|
-
exports.Fragment = h("react.fragment");
|
|
2019
|
-
}
|
|
2020
|
-
var h;
|
|
2021
|
-
var m = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
|
|
2022
|
-
var n = Object.prototype.hasOwnProperty;
|
|
2023
|
-
var p = { key: true, ref: true, __self: true, __source: true };
|
|
2024
|
-
function q(c, a, k) {
|
|
2025
|
-
var b, d = {}, e = null, l = null;
|
|
2026
|
-
void 0 !== k && (e = "" + k);
|
|
2027
|
-
void 0 !== a.key && (e = "" + a.key);
|
|
2028
|
-
void 0 !== a.ref && (l = a.ref);
|
|
2029
|
-
for (b in a) n.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
|
|
2030
|
-
if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
|
|
2031
|
-
return { $$typeof: g, type: c, key: e, ref: l, props: d, _owner: m.current };
|
|
2032
|
-
}
|
|
2033
|
-
exports.jsx = q;
|
|
2034
|
-
exports.jsxs = q;
|
|
2035
|
-
}
|
|
2036
|
-
});
|
|
2037
|
-
|
|
2038
|
-
// node_modules/react/cjs/react-jsx-runtime.development.js
|
|
2039
|
-
var require_react_jsx_runtime_development = __commonJS({
|
|
2040
|
-
"node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
|
2041
|
-
"use strict";
|
|
2042
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2043
|
-
(function() {
|
|
2044
|
-
"use strict";
|
|
2045
|
-
var React14 = require_react();
|
|
2046
|
-
var _assign = require_object_assign();
|
|
2047
|
-
var REACT_ELEMENT_TYPE = 60103;
|
|
2048
|
-
var REACT_PORTAL_TYPE = 60106;
|
|
2049
|
-
exports.Fragment = 60107;
|
|
2050
|
-
var REACT_STRICT_MODE_TYPE = 60108;
|
|
2051
|
-
var REACT_PROFILER_TYPE = 60114;
|
|
2052
|
-
var REACT_PROVIDER_TYPE = 60109;
|
|
2053
|
-
var REACT_CONTEXT_TYPE = 60110;
|
|
2054
|
-
var REACT_FORWARD_REF_TYPE = 60112;
|
|
2055
|
-
var REACT_SUSPENSE_TYPE = 60113;
|
|
2056
|
-
var REACT_SUSPENSE_LIST_TYPE = 60120;
|
|
2057
|
-
var REACT_MEMO_TYPE = 60115;
|
|
2058
|
-
var REACT_LAZY_TYPE = 60116;
|
|
2059
|
-
var REACT_BLOCK_TYPE = 60121;
|
|
2060
|
-
var REACT_SERVER_BLOCK_TYPE = 60122;
|
|
2061
|
-
var REACT_FUNDAMENTAL_TYPE = 60117;
|
|
2062
|
-
var REACT_SCOPE_TYPE = 60119;
|
|
2063
|
-
var REACT_OPAQUE_ID_TYPE = 60128;
|
|
2064
|
-
var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
|
|
2065
|
-
var REACT_OFFSCREEN_TYPE = 60130;
|
|
2066
|
-
var REACT_LEGACY_HIDDEN_TYPE = 60131;
|
|
2067
|
-
if (typeof Symbol === "function" && Symbol.for) {
|
|
2068
|
-
var symbolFor = Symbol.for;
|
|
2069
|
-
REACT_ELEMENT_TYPE = symbolFor("react.element");
|
|
2070
|
-
REACT_PORTAL_TYPE = symbolFor("react.portal");
|
|
2071
|
-
exports.Fragment = symbolFor("react.fragment");
|
|
2072
|
-
REACT_STRICT_MODE_TYPE = symbolFor("react.strict_mode");
|
|
2073
|
-
REACT_PROFILER_TYPE = symbolFor("react.profiler");
|
|
2074
|
-
REACT_PROVIDER_TYPE = symbolFor("react.provider");
|
|
2075
|
-
REACT_CONTEXT_TYPE = symbolFor("react.context");
|
|
2076
|
-
REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref");
|
|
2077
|
-
REACT_SUSPENSE_TYPE = symbolFor("react.suspense");
|
|
2078
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list");
|
|
2079
|
-
REACT_MEMO_TYPE = symbolFor("react.memo");
|
|
2080
|
-
REACT_LAZY_TYPE = symbolFor("react.lazy");
|
|
2081
|
-
REACT_BLOCK_TYPE = symbolFor("react.block");
|
|
2082
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block");
|
|
2083
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental");
|
|
2084
|
-
REACT_SCOPE_TYPE = symbolFor("react.scope");
|
|
2085
|
-
REACT_OPAQUE_ID_TYPE = symbolFor("react.opaque.id");
|
|
2086
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode");
|
|
2087
|
-
REACT_OFFSCREEN_TYPE = symbolFor("react.offscreen");
|
|
2088
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
|
|
2089
|
-
}
|
|
2090
|
-
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
2091
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
2092
|
-
function getIteratorFn(maybeIterable) {
|
|
2093
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
2094
|
-
return null;
|
|
2095
|
-
}
|
|
2096
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
2097
|
-
if (typeof maybeIterator === "function") {
|
|
2098
|
-
return maybeIterator;
|
|
2099
|
-
}
|
|
2100
|
-
return null;
|
|
2101
|
-
}
|
|
2102
|
-
var ReactSharedInternals = React14.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2103
|
-
function error(format) {
|
|
2104
|
-
{
|
|
2105
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
2106
|
-
args[_key2 - 1] = arguments[_key2];
|
|
2107
|
-
}
|
|
2108
|
-
printWarning("error", format, args);
|
|
2109
|
-
}
|
|
2110
|
-
}
|
|
2111
|
-
function printWarning(level, format, args) {
|
|
2112
|
-
{
|
|
2113
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2114
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
2115
|
-
if (stack !== "") {
|
|
2116
|
-
format += "%s";
|
|
2117
|
-
args = args.concat([stack]);
|
|
2118
|
-
}
|
|
2119
|
-
var argsWithFormat = args.map(function(item) {
|
|
2120
|
-
return "" + item;
|
|
2121
|
-
});
|
|
2122
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
2123
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
2124
|
-
}
|
|
2125
|
-
}
|
|
2126
|
-
var enableScopeAPI = false;
|
|
2127
|
-
function isValidElementType(type) {
|
|
2128
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
2129
|
-
return true;
|
|
2130
|
-
}
|
|
2131
|
-
if (type === exports.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
|
|
2132
|
-
return true;
|
|
2133
|
-
}
|
|
2134
|
-
if (typeof type === "object" && type !== null) {
|
|
2135
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
|
|
2136
|
-
return true;
|
|
2137
|
-
}
|
|
2138
|
-
}
|
|
2139
|
-
return false;
|
|
2140
|
-
}
|
|
2141
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
2142
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
2143
|
-
return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
|
|
2144
|
-
}
|
|
2145
|
-
function getContextName(type) {
|
|
2146
|
-
return type.displayName || "Context";
|
|
2147
|
-
}
|
|
2148
|
-
function getComponentName(type) {
|
|
2149
|
-
if (type == null) {
|
|
2150
|
-
return null;
|
|
2151
|
-
}
|
|
2152
|
-
{
|
|
2153
|
-
if (typeof type.tag === "number") {
|
|
2154
|
-
error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.");
|
|
2155
|
-
}
|
|
2156
|
-
}
|
|
2157
|
-
if (typeof type === "function") {
|
|
2158
|
-
return type.displayName || type.name || null;
|
|
2159
|
-
}
|
|
2160
|
-
if (typeof type === "string") {
|
|
2161
|
-
return type;
|
|
2162
|
-
}
|
|
2163
|
-
switch (type) {
|
|
2164
|
-
case exports.Fragment:
|
|
2165
|
-
return "Fragment";
|
|
2166
|
-
case REACT_PORTAL_TYPE:
|
|
2167
|
-
return "Portal";
|
|
2168
|
-
case REACT_PROFILER_TYPE:
|
|
2169
|
-
return "Profiler";
|
|
2170
|
-
case REACT_STRICT_MODE_TYPE:
|
|
2171
|
-
return "StrictMode";
|
|
2172
|
-
case REACT_SUSPENSE_TYPE:
|
|
2173
|
-
return "Suspense";
|
|
2174
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
2175
|
-
return "SuspenseList";
|
|
2176
|
-
}
|
|
2177
|
-
if (typeof type === "object") {
|
|
2178
|
-
switch (type.$$typeof) {
|
|
2179
|
-
case REACT_CONTEXT_TYPE:
|
|
2180
|
-
var context = type;
|
|
2181
|
-
return getContextName(context) + ".Consumer";
|
|
2182
|
-
case REACT_PROVIDER_TYPE:
|
|
2183
|
-
var provider = type;
|
|
2184
|
-
return getContextName(provider._context) + ".Provider";
|
|
2185
|
-
case REACT_FORWARD_REF_TYPE:
|
|
2186
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
2187
|
-
case REACT_MEMO_TYPE:
|
|
2188
|
-
return getComponentName(type.type);
|
|
2189
|
-
case REACT_BLOCK_TYPE:
|
|
2190
|
-
return getComponentName(type._render);
|
|
2191
|
-
case REACT_LAZY_TYPE: {
|
|
2192
|
-
var lazyComponent = type;
|
|
2193
|
-
var payload = lazyComponent._payload;
|
|
2194
|
-
var init = lazyComponent._init;
|
|
2195
|
-
try {
|
|
2196
|
-
return getComponentName(init(payload));
|
|
2197
|
-
} catch (x) {
|
|
2198
|
-
return null;
|
|
2199
|
-
}
|
|
2200
|
-
}
|
|
2201
|
-
}
|
|
2202
|
-
}
|
|
2203
|
-
return null;
|
|
2204
|
-
}
|
|
2205
|
-
var disabledDepth = 0;
|
|
2206
|
-
var prevLog;
|
|
2207
|
-
var prevInfo;
|
|
2208
|
-
var prevWarn;
|
|
2209
|
-
var prevError;
|
|
2210
|
-
var prevGroup;
|
|
2211
|
-
var prevGroupCollapsed;
|
|
2212
|
-
var prevGroupEnd;
|
|
2213
|
-
function disabledLog() {
|
|
2214
|
-
}
|
|
2215
|
-
disabledLog.__reactDisabledLog = true;
|
|
2216
|
-
function disableLogs() {
|
|
2217
|
-
{
|
|
2218
|
-
if (disabledDepth === 0) {
|
|
2219
|
-
prevLog = console.log;
|
|
2220
|
-
prevInfo = console.info;
|
|
2221
|
-
prevWarn = console.warn;
|
|
2222
|
-
prevError = console.error;
|
|
2223
|
-
prevGroup = console.group;
|
|
2224
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
2225
|
-
prevGroupEnd = console.groupEnd;
|
|
2226
|
-
var props = {
|
|
2227
|
-
configurable: true,
|
|
2228
|
-
enumerable: true,
|
|
2229
|
-
value: disabledLog,
|
|
2230
|
-
writable: true
|
|
2231
|
-
};
|
|
2232
|
-
Object.defineProperties(console, {
|
|
2233
|
-
info: props,
|
|
2234
|
-
log: props,
|
|
2235
|
-
warn: props,
|
|
2236
|
-
error: props,
|
|
2237
|
-
group: props,
|
|
2238
|
-
groupCollapsed: props,
|
|
2239
|
-
groupEnd: props
|
|
2240
|
-
});
|
|
2241
|
-
}
|
|
2242
|
-
disabledDepth++;
|
|
2243
|
-
}
|
|
2244
|
-
}
|
|
2245
|
-
function reenableLogs() {
|
|
2246
|
-
{
|
|
2247
|
-
disabledDepth--;
|
|
2248
|
-
if (disabledDepth === 0) {
|
|
2249
|
-
var props = {
|
|
2250
|
-
configurable: true,
|
|
2251
|
-
enumerable: true,
|
|
2252
|
-
writable: true
|
|
2253
|
-
};
|
|
2254
|
-
Object.defineProperties(console, {
|
|
2255
|
-
log: _assign({}, props, {
|
|
2256
|
-
value: prevLog
|
|
2257
|
-
}),
|
|
2258
|
-
info: _assign({}, props, {
|
|
2259
|
-
value: prevInfo
|
|
2260
|
-
}),
|
|
2261
|
-
warn: _assign({}, props, {
|
|
2262
|
-
value: prevWarn
|
|
2263
|
-
}),
|
|
2264
|
-
error: _assign({}, props, {
|
|
2265
|
-
value: prevError
|
|
2266
|
-
}),
|
|
2267
|
-
group: _assign({}, props, {
|
|
2268
|
-
value: prevGroup
|
|
2269
|
-
}),
|
|
2270
|
-
groupCollapsed: _assign({}, props, {
|
|
2271
|
-
value: prevGroupCollapsed
|
|
2272
|
-
}),
|
|
2273
|
-
groupEnd: _assign({}, props, {
|
|
2274
|
-
value: prevGroupEnd
|
|
2275
|
-
})
|
|
2276
|
-
});
|
|
2277
|
-
}
|
|
2278
|
-
if (disabledDepth < 0) {
|
|
2279
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
2280
|
-
}
|
|
2281
|
-
}
|
|
2282
|
-
}
|
|
2283
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
2284
|
-
var prefix;
|
|
2285
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
2286
|
-
{
|
|
2287
|
-
if (prefix === void 0) {
|
|
2288
|
-
try {
|
|
2289
|
-
throw Error();
|
|
2290
|
-
} catch (x) {
|
|
2291
|
-
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
2292
|
-
prefix = match && match[1] || "";
|
|
2293
|
-
}
|
|
2294
|
-
}
|
|
2295
|
-
return "\n" + prefix + name;
|
|
2296
|
-
}
|
|
2297
|
-
}
|
|
2298
|
-
var reentry = false;
|
|
2299
|
-
var componentFrameCache;
|
|
2300
|
-
{
|
|
2301
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
2302
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
2303
|
-
}
|
|
2304
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
2305
|
-
if (!fn || reentry) {
|
|
2306
|
-
return "";
|
|
2307
|
-
}
|
|
2308
|
-
{
|
|
2309
|
-
var frame = componentFrameCache.get(fn);
|
|
2310
|
-
if (frame !== void 0) {
|
|
2311
|
-
return frame;
|
|
2312
|
-
}
|
|
2313
|
-
}
|
|
2314
|
-
var control;
|
|
2315
|
-
reentry = true;
|
|
2316
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
2317
|
-
Error.prepareStackTrace = void 0;
|
|
2318
|
-
var previousDispatcher;
|
|
2319
|
-
{
|
|
2320
|
-
previousDispatcher = ReactCurrentDispatcher.current;
|
|
2321
|
-
ReactCurrentDispatcher.current = null;
|
|
2322
|
-
disableLogs();
|
|
2323
|
-
}
|
|
2324
|
-
try {
|
|
2325
|
-
if (construct) {
|
|
2326
|
-
var Fake = function() {
|
|
2327
|
-
throw Error();
|
|
2328
|
-
};
|
|
2329
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
2330
|
-
set: function() {
|
|
2331
|
-
throw Error();
|
|
2332
|
-
}
|
|
2333
|
-
});
|
|
2334
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
2335
|
-
try {
|
|
2336
|
-
Reflect.construct(Fake, []);
|
|
2337
|
-
} catch (x) {
|
|
2338
|
-
control = x;
|
|
2339
|
-
}
|
|
2340
|
-
Reflect.construct(fn, [], Fake);
|
|
2341
|
-
} else {
|
|
2342
|
-
try {
|
|
2343
|
-
Fake.call();
|
|
2344
|
-
} catch (x) {
|
|
2345
|
-
control = x;
|
|
2346
|
-
}
|
|
2347
|
-
fn.call(Fake.prototype);
|
|
2348
|
-
}
|
|
2349
|
-
} else {
|
|
2350
|
-
try {
|
|
2351
|
-
throw Error();
|
|
2352
|
-
} catch (x) {
|
|
2353
|
-
control = x;
|
|
2354
|
-
}
|
|
2355
|
-
fn();
|
|
2356
|
-
}
|
|
2357
|
-
} catch (sample) {
|
|
2358
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
2359
|
-
var sampleLines = sample.stack.split("\n");
|
|
2360
|
-
var controlLines = control.stack.split("\n");
|
|
2361
|
-
var s = sampleLines.length - 1;
|
|
2362
|
-
var c = controlLines.length - 1;
|
|
2363
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
2364
|
-
c--;
|
|
2365
|
-
}
|
|
2366
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
2367
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
2368
|
-
if (s !== 1 || c !== 1) {
|
|
2369
|
-
do {
|
|
2370
|
-
s--;
|
|
2371
|
-
c--;
|
|
2372
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
2373
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
2374
|
-
{
|
|
2375
|
-
if (typeof fn === "function") {
|
|
2376
|
-
componentFrameCache.set(fn, _frame);
|
|
2377
|
-
}
|
|
2378
|
-
}
|
|
2379
|
-
return _frame;
|
|
2380
|
-
}
|
|
2381
|
-
} while (s >= 1 && c >= 0);
|
|
2382
|
-
}
|
|
2383
|
-
break;
|
|
2384
|
-
}
|
|
2385
|
-
}
|
|
2386
|
-
}
|
|
2387
|
-
} finally {
|
|
2388
|
-
reentry = false;
|
|
2389
|
-
{
|
|
2390
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
2391
|
-
reenableLogs();
|
|
2392
|
-
}
|
|
2393
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
2394
|
-
}
|
|
2395
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
2396
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
2397
|
-
{
|
|
2398
|
-
if (typeof fn === "function") {
|
|
2399
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
2400
|
-
}
|
|
2401
|
-
}
|
|
2402
|
-
return syntheticFrame;
|
|
2403
|
-
}
|
|
2404
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
2405
|
-
{
|
|
2406
|
-
return describeNativeComponentFrame(fn, false);
|
|
2407
|
-
}
|
|
2408
|
-
}
|
|
2409
|
-
function shouldConstruct(Component) {
|
|
2410
|
-
var prototype = Component.prototype;
|
|
2411
|
-
return !!(prototype && prototype.isReactComponent);
|
|
2412
|
-
}
|
|
2413
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
2414
|
-
if (type == null) {
|
|
2415
|
-
return "";
|
|
2416
|
-
}
|
|
2417
|
-
if (typeof type === "function") {
|
|
2418
|
-
{
|
|
2419
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
2420
|
-
}
|
|
2421
|
-
}
|
|
2422
|
-
if (typeof type === "string") {
|
|
2423
|
-
return describeBuiltInComponentFrame(type);
|
|
2424
|
-
}
|
|
2425
|
-
switch (type) {
|
|
2426
|
-
case REACT_SUSPENSE_TYPE:
|
|
2427
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
2428
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
2429
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
2430
|
-
}
|
|
2431
|
-
if (typeof type === "object") {
|
|
2432
|
-
switch (type.$$typeof) {
|
|
2433
|
-
case REACT_FORWARD_REF_TYPE:
|
|
2434
|
-
return describeFunctionComponentFrame(type.render);
|
|
2435
|
-
case REACT_MEMO_TYPE:
|
|
2436
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
2437
|
-
case REACT_BLOCK_TYPE:
|
|
2438
|
-
return describeFunctionComponentFrame(type._render);
|
|
2439
|
-
case REACT_LAZY_TYPE: {
|
|
2440
|
-
var lazyComponent = type;
|
|
2441
|
-
var payload = lazyComponent._payload;
|
|
2442
|
-
var init = lazyComponent._init;
|
|
2443
|
-
try {
|
|
2444
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
2445
|
-
} catch (x) {
|
|
2446
|
-
}
|
|
2447
|
-
}
|
|
2448
|
-
}
|
|
2449
|
-
}
|
|
2450
|
-
return "";
|
|
2451
|
-
}
|
|
2452
|
-
var loggedTypeFailures = {};
|
|
2453
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2454
|
-
function setCurrentlyValidatingElement(element) {
|
|
2455
|
-
{
|
|
2456
|
-
if (element) {
|
|
2457
|
-
var owner = element._owner;
|
|
2458
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
2459
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
2460
|
-
} else {
|
|
2461
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
2462
|
-
}
|
|
2463
|
-
}
|
|
2464
|
-
}
|
|
2465
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
2466
|
-
{
|
|
2467
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2468
|
-
for (var typeSpecName in typeSpecs) {
|
|
2469
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
2470
|
-
var error$1 = void 0;
|
|
2471
|
-
try {
|
|
2472
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
2473
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
2474
|
-
err.name = "Invariant Violation";
|
|
2475
|
-
throw err;
|
|
2476
|
-
}
|
|
2477
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
2478
|
-
} catch (ex) {
|
|
2479
|
-
error$1 = ex;
|
|
2480
|
-
}
|
|
2481
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
2482
|
-
setCurrentlyValidatingElement(element);
|
|
2483
|
-
error("%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).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
2484
|
-
setCurrentlyValidatingElement(null);
|
|
2485
|
-
}
|
|
2486
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
2487
|
-
loggedTypeFailures[error$1.message] = true;
|
|
2488
|
-
setCurrentlyValidatingElement(element);
|
|
2489
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
2490
|
-
setCurrentlyValidatingElement(null);
|
|
2491
|
-
}
|
|
2492
|
-
}
|
|
2493
|
-
}
|
|
2494
|
-
}
|
|
2495
|
-
}
|
|
2496
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
2497
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2498
|
-
var RESERVED_PROPS = {
|
|
2499
|
-
key: true,
|
|
2500
|
-
ref: true,
|
|
2501
|
-
__self: true,
|
|
2502
|
-
__source: true
|
|
2503
|
-
};
|
|
2504
|
-
var specialPropKeyWarningShown;
|
|
2505
|
-
var specialPropRefWarningShown;
|
|
2506
|
-
var didWarnAboutStringRefs;
|
|
2507
|
-
{
|
|
2508
|
-
didWarnAboutStringRefs = {};
|
|
2509
|
-
}
|
|
2510
|
-
function hasValidRef(config) {
|
|
2511
|
-
{
|
|
2512
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
2513
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
2514
|
-
if (getter && getter.isReactWarning) {
|
|
2515
|
-
return false;
|
|
2516
|
-
}
|
|
2517
|
-
}
|
|
2518
|
-
}
|
|
2519
|
-
return config.ref !== void 0;
|
|
2520
|
-
}
|
|
2521
|
-
function hasValidKey(config) {
|
|
2522
|
-
{
|
|
2523
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
2524
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
2525
|
-
if (getter && getter.isReactWarning) {
|
|
2526
|
-
return false;
|
|
2527
|
-
}
|
|
2528
|
-
}
|
|
2529
|
-
}
|
|
2530
|
-
return config.key !== void 0;
|
|
2531
|
-
}
|
|
2532
|
-
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
2533
|
-
{
|
|
2534
|
-
if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
|
2535
|
-
var componentName = getComponentName(ReactCurrentOwner.current.type);
|
|
2536
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
2537
|
-
error('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', getComponentName(ReactCurrentOwner.current.type), config.ref);
|
|
2538
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
2539
|
-
}
|
|
2540
|
-
}
|
|
2541
|
-
}
|
|
2542
|
-
}
|
|
2543
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
2544
|
-
{
|
|
2545
|
-
var warnAboutAccessingKey = function() {
|
|
2546
|
-
if (!specialPropKeyWarningShown) {
|
|
2547
|
-
specialPropKeyWarningShown = true;
|
|
2548
|
-
error("%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)", displayName);
|
|
2549
|
-
}
|
|
2550
|
-
};
|
|
2551
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
2552
|
-
Object.defineProperty(props, "key", {
|
|
2553
|
-
get: warnAboutAccessingKey,
|
|
2554
|
-
configurable: true
|
|
2555
|
-
});
|
|
2556
|
-
}
|
|
2557
|
-
}
|
|
2558
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
2559
|
-
{
|
|
2560
|
-
var warnAboutAccessingRef = function() {
|
|
2561
|
-
if (!specialPropRefWarningShown) {
|
|
2562
|
-
specialPropRefWarningShown = true;
|
|
2563
|
-
error("%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)", displayName);
|
|
2564
|
-
}
|
|
2565
|
-
};
|
|
2566
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
2567
|
-
Object.defineProperty(props, "ref", {
|
|
2568
|
-
get: warnAboutAccessingRef,
|
|
2569
|
-
configurable: true
|
|
2570
|
-
});
|
|
2571
|
-
}
|
|
2572
|
-
}
|
|
2573
|
-
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
2574
|
-
var element = {
|
|
2575
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
2576
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
2577
|
-
// Built-in properties that belong on the element
|
|
2578
|
-
type,
|
|
2579
|
-
key,
|
|
2580
|
-
ref,
|
|
2581
|
-
props,
|
|
2582
|
-
// Record the component responsible for creating this element.
|
|
2583
|
-
_owner: owner
|
|
2584
|
-
};
|
|
2585
|
-
{
|
|
2586
|
-
element._store = {};
|
|
2587
|
-
Object.defineProperty(element._store, "validated", {
|
|
2588
|
-
configurable: false,
|
|
2589
|
-
enumerable: false,
|
|
2590
|
-
writable: true,
|
|
2591
|
-
value: false
|
|
2592
|
-
});
|
|
2593
|
-
Object.defineProperty(element, "_self", {
|
|
2594
|
-
configurable: false,
|
|
2595
|
-
enumerable: false,
|
|
2596
|
-
writable: false,
|
|
2597
|
-
value: self
|
|
2598
|
-
});
|
|
2599
|
-
Object.defineProperty(element, "_source", {
|
|
2600
|
-
configurable: false,
|
|
2601
|
-
enumerable: false,
|
|
2602
|
-
writable: false,
|
|
2603
|
-
value: source
|
|
2604
|
-
});
|
|
2605
|
-
if (Object.freeze) {
|
|
2606
|
-
Object.freeze(element.props);
|
|
2607
|
-
Object.freeze(element);
|
|
2608
|
-
}
|
|
2609
|
-
}
|
|
2610
|
-
return element;
|
|
2611
|
-
};
|
|
2612
|
-
function jsxDEV(type, config, maybeKey, source, self) {
|
|
2613
|
-
{
|
|
2614
|
-
var propName;
|
|
2615
|
-
var props = {};
|
|
2616
|
-
var key = null;
|
|
2617
|
-
var ref = null;
|
|
2618
|
-
if (maybeKey !== void 0) {
|
|
2619
|
-
key = "" + maybeKey;
|
|
2620
|
-
}
|
|
2621
|
-
if (hasValidKey(config)) {
|
|
2622
|
-
key = "" + config.key;
|
|
2623
|
-
}
|
|
2624
|
-
if (hasValidRef(config)) {
|
|
2625
|
-
ref = config.ref;
|
|
2626
|
-
warnIfStringRefCannotBeAutoConverted(config, self);
|
|
2627
|
-
}
|
|
2628
|
-
for (propName in config) {
|
|
2629
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
2630
|
-
props[propName] = config[propName];
|
|
2631
|
-
}
|
|
2632
|
-
}
|
|
2633
|
-
if (type && type.defaultProps) {
|
|
2634
|
-
var defaultProps = type.defaultProps;
|
|
2635
|
-
for (propName in defaultProps) {
|
|
2636
|
-
if (props[propName] === void 0) {
|
|
2637
|
-
props[propName] = defaultProps[propName];
|
|
2638
|
-
}
|
|
2639
|
-
}
|
|
2640
|
-
}
|
|
2641
|
-
if (key || ref) {
|
|
2642
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
2643
|
-
if (key) {
|
|
2644
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
2645
|
-
}
|
|
2646
|
-
if (ref) {
|
|
2647
|
-
defineRefPropWarningGetter(props, displayName);
|
|
2648
|
-
}
|
|
2649
|
-
}
|
|
2650
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
2651
|
-
}
|
|
2652
|
-
}
|
|
2653
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
2654
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2655
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
2656
|
-
{
|
|
2657
|
-
if (element) {
|
|
2658
|
-
var owner = element._owner;
|
|
2659
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
2660
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
2661
|
-
} else {
|
|
2662
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
2663
|
-
}
|
|
2664
|
-
}
|
|
2665
|
-
}
|
|
2666
|
-
var propTypesMisspellWarningShown;
|
|
2667
|
-
{
|
|
2668
|
-
propTypesMisspellWarningShown = false;
|
|
2669
|
-
}
|
|
2670
|
-
function isValidElement(object) {
|
|
2671
|
-
{
|
|
2672
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
2673
|
-
}
|
|
2674
|
-
}
|
|
2675
|
-
function getDeclarationErrorAddendum() {
|
|
2676
|
-
{
|
|
2677
|
-
if (ReactCurrentOwner$1.current) {
|
|
2678
|
-
var name = getComponentName(ReactCurrentOwner$1.current.type);
|
|
2679
|
-
if (name) {
|
|
2680
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
2681
|
-
}
|
|
2682
|
-
}
|
|
2683
|
-
return "";
|
|
2684
|
-
}
|
|
2685
|
-
}
|
|
2686
|
-
function getSourceInfoErrorAddendum(source) {
|
|
2687
|
-
{
|
|
2688
|
-
if (source !== void 0) {
|
|
2689
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
2690
|
-
var lineNumber = source.lineNumber;
|
|
2691
|
-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
2692
|
-
}
|
|
2693
|
-
return "";
|
|
2694
|
-
}
|
|
2695
|
-
}
|
|
2696
|
-
var ownerHasKeyUseWarning = {};
|
|
2697
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
2698
|
-
{
|
|
2699
|
-
var info = getDeclarationErrorAddendum();
|
|
2700
|
-
if (!info) {
|
|
2701
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
2702
|
-
if (parentName) {
|
|
2703
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
2704
|
-
}
|
|
2705
|
-
}
|
|
2706
|
-
return info;
|
|
2707
|
-
}
|
|
2708
|
-
}
|
|
2709
|
-
function validateExplicitKey(element, parentType) {
|
|
2710
|
-
{
|
|
2711
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
2712
|
-
return;
|
|
2713
|
-
}
|
|
2714
|
-
element._store.validated = true;
|
|
2715
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
2716
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
2717
|
-
return;
|
|
2718
|
-
}
|
|
2719
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
2720
|
-
var childOwner = "";
|
|
2721
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
2722
|
-
childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
|
|
2723
|
-
}
|
|
2724
|
-
setCurrentlyValidatingElement$1(element);
|
|
2725
|
-
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
2726
|
-
setCurrentlyValidatingElement$1(null);
|
|
2727
|
-
}
|
|
2728
|
-
}
|
|
2729
|
-
function validateChildKeys(node, parentType) {
|
|
2730
|
-
{
|
|
2731
|
-
if (typeof node !== "object") {
|
|
2732
|
-
return;
|
|
2733
|
-
}
|
|
2734
|
-
if (Array.isArray(node)) {
|
|
2735
|
-
for (var i = 0; i < node.length; i++) {
|
|
2736
|
-
var child = node[i];
|
|
2737
|
-
if (isValidElement(child)) {
|
|
2738
|
-
validateExplicitKey(child, parentType);
|
|
2739
|
-
}
|
|
2740
|
-
}
|
|
2741
|
-
} else if (isValidElement(node)) {
|
|
2742
|
-
if (node._store) {
|
|
2743
|
-
node._store.validated = true;
|
|
2744
|
-
}
|
|
2745
|
-
} else if (node) {
|
|
2746
|
-
var iteratorFn = getIteratorFn(node);
|
|
2747
|
-
if (typeof iteratorFn === "function") {
|
|
2748
|
-
if (iteratorFn !== node.entries) {
|
|
2749
|
-
var iterator = iteratorFn.call(node);
|
|
2750
|
-
var step;
|
|
2751
|
-
while (!(step = iterator.next()).done) {
|
|
2752
|
-
if (isValidElement(step.value)) {
|
|
2753
|
-
validateExplicitKey(step.value, parentType);
|
|
2754
|
-
}
|
|
2755
|
-
}
|
|
2756
|
-
}
|
|
2757
|
-
}
|
|
2758
|
-
}
|
|
2759
|
-
}
|
|
2760
|
-
}
|
|
2761
|
-
function validatePropTypes(element) {
|
|
2762
|
-
{
|
|
2763
|
-
var type = element.type;
|
|
2764
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
2765
|
-
return;
|
|
2766
|
-
}
|
|
2767
|
-
var propTypes;
|
|
2768
|
-
if (typeof type === "function") {
|
|
2769
|
-
propTypes = type.propTypes;
|
|
2770
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
2771
|
-
// Inner props are checked in the reconciler.
|
|
2772
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
2773
|
-
propTypes = type.propTypes;
|
|
2774
|
-
} else {
|
|
2775
|
-
return;
|
|
2776
|
-
}
|
|
2777
|
-
if (propTypes) {
|
|
2778
|
-
var name = getComponentName(type);
|
|
2779
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
2780
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
2781
|
-
propTypesMisspellWarningShown = true;
|
|
2782
|
-
var _name = getComponentName(type);
|
|
2783
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
2784
|
-
}
|
|
2785
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
2786
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2787
|
-
}
|
|
2788
|
-
}
|
|
2789
|
-
}
|
|
2790
|
-
function validateFragmentProps(fragment) {
|
|
2791
|
-
{
|
|
2792
|
-
var keys = Object.keys(fragment.props);
|
|
2793
|
-
for (var i = 0; i < keys.length; i++) {
|
|
2794
|
-
var key = keys[i];
|
|
2795
|
-
if (key !== "children" && key !== "key") {
|
|
2796
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
2797
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
2798
|
-
setCurrentlyValidatingElement$1(null);
|
|
2799
|
-
break;
|
|
2800
|
-
}
|
|
2801
|
-
}
|
|
2802
|
-
if (fragment.ref !== null) {
|
|
2803
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
2804
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
2805
|
-
setCurrentlyValidatingElement$1(null);
|
|
2806
|
-
}
|
|
2807
|
-
}
|
|
2808
|
-
}
|
|
2809
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
2810
|
-
{
|
|
2811
|
-
var validType = isValidElementType(type);
|
|
2812
|
-
if (!validType) {
|
|
2813
|
-
var info = "";
|
|
2814
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
2815
|
-
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
2816
|
-
}
|
|
2817
|
-
var sourceInfo = getSourceInfoErrorAddendum(source);
|
|
2818
|
-
if (sourceInfo) {
|
|
2819
|
-
info += sourceInfo;
|
|
2820
|
-
} else {
|
|
2821
|
-
info += getDeclarationErrorAddendum();
|
|
2822
|
-
}
|
|
2823
|
-
var typeString;
|
|
2824
|
-
if (type === null) {
|
|
2825
|
-
typeString = "null";
|
|
2826
|
-
} else if (Array.isArray(type)) {
|
|
2827
|
-
typeString = "array";
|
|
2828
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
2829
|
-
typeString = "<" + (getComponentName(type.type) || "Unknown") + " />";
|
|
2830
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
2831
|
-
} else {
|
|
2832
|
-
typeString = typeof type;
|
|
2833
|
-
}
|
|
2834
|
-
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
2835
|
-
}
|
|
2836
|
-
var element = jsxDEV(type, props, key, source, self);
|
|
2837
|
-
if (element == null) {
|
|
2838
|
-
return element;
|
|
2839
|
-
}
|
|
2840
|
-
if (validType) {
|
|
2841
|
-
var children = props.children;
|
|
2842
|
-
if (children !== void 0) {
|
|
2843
|
-
if (isStaticChildren) {
|
|
2844
|
-
if (Array.isArray(children)) {
|
|
2845
|
-
for (var i = 0; i < children.length; i++) {
|
|
2846
|
-
validateChildKeys(children[i], type);
|
|
2847
|
-
}
|
|
2848
|
-
if (Object.freeze) {
|
|
2849
|
-
Object.freeze(children);
|
|
2850
|
-
}
|
|
2851
|
-
} else {
|
|
2852
|
-
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
2853
|
-
}
|
|
2854
|
-
} else {
|
|
2855
|
-
validateChildKeys(children, type);
|
|
2856
|
-
}
|
|
2857
|
-
}
|
|
2858
|
-
}
|
|
2859
|
-
if (type === exports.Fragment) {
|
|
2860
|
-
validateFragmentProps(element);
|
|
2861
|
-
} else {
|
|
2862
|
-
validatePropTypes(element);
|
|
2863
|
-
}
|
|
2864
|
-
return element;
|
|
2865
|
-
}
|
|
2866
|
-
}
|
|
2867
|
-
function jsxWithValidationStatic(type, props, key) {
|
|
2868
|
-
{
|
|
2869
|
-
return jsxWithValidation(type, props, key, true);
|
|
2870
|
-
}
|
|
2871
|
-
}
|
|
2872
|
-
function jsxWithValidationDynamic(type, props, key) {
|
|
2873
|
-
{
|
|
2874
|
-
return jsxWithValidation(type, props, key, false);
|
|
2875
|
-
}
|
|
2876
|
-
}
|
|
2877
|
-
var jsx23 = jsxWithValidationDynamic;
|
|
2878
|
-
var jsxs9 = jsxWithValidationStatic;
|
|
2879
|
-
exports.jsx = jsx23;
|
|
2880
|
-
exports.jsxs = jsxs9;
|
|
2881
|
-
})();
|
|
2882
|
-
}
|
|
2883
|
-
}
|
|
2884
|
-
});
|
|
2885
|
-
|
|
2886
|
-
// node_modules/react/jsx-runtime.js
|
|
2887
|
-
var require_jsx_runtime = __commonJS({
|
|
2888
|
-
"node_modules/react/jsx-runtime.js"(exports, module) {
|
|
2889
|
-
"use strict";
|
|
2890
|
-
if (process.env.NODE_ENV === "production") {
|
|
2891
|
-
module.exports = require_react_jsx_runtime_production_min();
|
|
2892
|
-
} else {
|
|
2893
|
-
module.exports = require_react_jsx_runtime_development();
|
|
2894
|
-
}
|
|
2895
|
-
}
|
|
2896
|
-
});
|
|
2897
|
-
|
|
2898
1
|
// components/ui/button.tsx
|
|
2899
|
-
|
|
2
|
+
import * as React from "react";
|
|
2900
3
|
import { Slot } from "@radix-ui/react-slot";
|
|
2901
4
|
import { cva } from "class-variance-authority";
|
|
2902
|
-
import { IconLoader2 } from "@tabler/icons-react";
|
|
2903
5
|
|
|
2904
6
|
// lib/utils.ts
|
|
2905
7
|
import { clsx } from "clsx";
|
|
@@ -2928,7 +30,7 @@ for (let iconColorLevel of iconColorLevels) {
|
|
|
2928
30
|
}
|
|
2929
31
|
|
|
2930
32
|
// components/ui/button.tsx
|
|
2931
|
-
|
|
33
|
+
import { jsx } from "react/jsx-runtime";
|
|
2932
34
|
var buttonVariants = cva(
|
|
2933
35
|
"w-full flex rounded items-center justify-center text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:bg-stateColors-disabled disabled:pointer-events-none ring-offset-background overflow-elipse whitespace-nowrap truncate",
|
|
2934
36
|
{
|
|
@@ -2961,7 +63,7 @@ var buttonVariants = cva(
|
|
|
2961
63
|
var Button = React.forwardRef(
|
|
2962
64
|
({ className, variant, size, asChild = false, loading, ...props }, ref) => {
|
|
2963
65
|
const Comp = asChild ? Slot : "button";
|
|
2964
|
-
return /* @__PURE__ */ (
|
|
66
|
+
return /* @__PURE__ */ jsx(
|
|
2965
67
|
Comp,
|
|
2966
68
|
{
|
|
2967
69
|
className: cn(buttonVariants({ variant, size, className }), {
|
|
@@ -2969,10 +71,7 @@ var Button = React.forwardRef(
|
|
|
2969
71
|
}),
|
|
2970
72
|
ref,
|
|
2971
73
|
...props,
|
|
2972
|
-
children:
|
|
2973
|
-
!loading && props.children,
|
|
2974
|
-
loading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconLoader2, { className: "h-4 w-4 animate-spin" })
|
|
2975
|
-
]
|
|
74
|
+
children: !loading && props.children
|
|
2976
75
|
}
|
|
2977
76
|
);
|
|
2978
77
|
}
|
|
@@ -2980,10 +79,10 @@ var Button = React.forwardRef(
|
|
|
2980
79
|
Button.displayName = "Button";
|
|
2981
80
|
|
|
2982
81
|
// components/ui/input.tsx
|
|
2983
|
-
|
|
82
|
+
import * as React2 from "react";
|
|
2984
83
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
2985
84
|
import { cva as cva2 } from "class-variance-authority";
|
|
2986
|
-
|
|
85
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
2987
86
|
var inputVariants = cva2(
|
|
2988
87
|
"flex h-14 w-full rounded border border-coreColors-dividingLines bg-coreColors-inputBackground px-4 pt-5 pb-2 placeholder-shown:p-4 text-textColors-primaryColor text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-textColors-secondaryColor focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-50 focus:border-coreColors-brandColorPrimary peer data-[icon=true]:pr-10",
|
|
2989
88
|
{
|
|
@@ -3001,8 +100,8 @@ var inputVariants = cva2(
|
|
|
3001
100
|
var Input = React2.forwardRef(
|
|
3002
101
|
({ className, error = false, id, type, label, icon, asChild, ...props }, ref) => {
|
|
3003
102
|
const Comp = asChild ? Slot2 : "div";
|
|
3004
|
-
return /* @__PURE__ */
|
|
3005
|
-
/* @__PURE__ */ (
|
|
103
|
+
return /* @__PURE__ */ jsxs(Comp, { className: "relative", children: [
|
|
104
|
+
/* @__PURE__ */ jsx2(
|
|
3006
105
|
"input",
|
|
3007
106
|
{
|
|
3008
107
|
id,
|
|
@@ -3013,7 +112,7 @@ var Input = React2.forwardRef(
|
|
|
3013
112
|
...props
|
|
3014
113
|
}
|
|
3015
114
|
),
|
|
3016
|
-
label ? /* @__PURE__ */ (
|
|
115
|
+
label ? /* @__PURE__ */ jsx2(
|
|
3017
116
|
"label",
|
|
3018
117
|
{
|
|
3019
118
|
htmlFor: id,
|
|
@@ -3031,12 +130,12 @@ import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
|
3031
130
|
var AspectRatio = AspectRatioPrimitive.Root;
|
|
3032
131
|
|
|
3033
132
|
// components/ui/accordion.tsx
|
|
3034
|
-
|
|
133
|
+
import * as React3 from "react";
|
|
3035
134
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
3036
135
|
import { ChevronDown } from "lucide-react";
|
|
3037
|
-
|
|
136
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
3038
137
|
var Accordion = AccordionPrimitive.Root;
|
|
3039
|
-
var AccordionItem = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
138
|
+
var AccordionItem = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
|
|
3040
139
|
AccordionPrimitive.Item,
|
|
3041
140
|
{
|
|
3042
141
|
ref,
|
|
@@ -3045,7 +144,7 @@ var AccordionItem = React3.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3045
144
|
}
|
|
3046
145
|
));
|
|
3047
146
|
AccordionItem.displayName = "AccordionItem";
|
|
3048
|
-
var AccordionTrigger = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (
|
|
147
|
+
var AccordionTrigger = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx3(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs2(
|
|
3049
148
|
AccordionPrimitive.Trigger,
|
|
3050
149
|
{
|
|
3051
150
|
ref,
|
|
@@ -3056,27 +155,27 @@ var AccordionTrigger = React3.forwardRef(({ className, children, ...props }, ref
|
|
|
3056
155
|
...props,
|
|
3057
156
|
children: [
|
|
3058
157
|
children,
|
|
3059
|
-
/* @__PURE__ */ (
|
|
158
|
+
/* @__PURE__ */ jsx3(ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })
|
|
3060
159
|
]
|
|
3061
160
|
}
|
|
3062
161
|
) }));
|
|
3063
162
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
3064
|
-
var AccordionContent = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (
|
|
163
|
+
var AccordionContent = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx3(
|
|
3065
164
|
AccordionPrimitive.Content,
|
|
3066
165
|
{
|
|
3067
166
|
ref,
|
|
3068
167
|
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
3069
168
|
...props,
|
|
3070
|
-
children: /* @__PURE__ */ (
|
|
169
|
+
children: /* @__PURE__ */ jsx3("div", { className: cn("pb-4 pt-0", className), children })
|
|
3071
170
|
}
|
|
3072
171
|
));
|
|
3073
172
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
3074
173
|
|
|
3075
174
|
// components/ui/carousel.tsx
|
|
3076
|
-
|
|
175
|
+
import * as React4 from "react";
|
|
3077
176
|
import useEmblaCarousel from "embla-carousel-react";
|
|
3078
177
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
3079
|
-
|
|
178
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
3080
179
|
var CarouselContext = React4.createContext(null);
|
|
3081
180
|
function useCarousel() {
|
|
3082
181
|
const context = React4.useContext(CarouselContext);
|
|
@@ -3146,7 +245,7 @@ var Carousel = React4.forwardRef(
|
|
|
3146
245
|
api?.off("select", onSelect);
|
|
3147
246
|
};
|
|
3148
247
|
}, [api, onSelect]);
|
|
3149
|
-
return /* @__PURE__ */ (
|
|
248
|
+
return /* @__PURE__ */ jsx4(
|
|
3150
249
|
CarouselContext.Provider,
|
|
3151
250
|
{
|
|
3152
251
|
value: {
|
|
@@ -3159,7 +258,7 @@ var Carousel = React4.forwardRef(
|
|
|
3159
258
|
canScrollPrev,
|
|
3160
259
|
canScrollNext
|
|
3161
260
|
},
|
|
3162
|
-
children: /* @__PURE__ */ (
|
|
261
|
+
children: /* @__PURE__ */ jsx4(
|
|
3163
262
|
"div",
|
|
3164
263
|
{
|
|
3165
264
|
ref,
|
|
@@ -3178,7 +277,7 @@ var Carousel = React4.forwardRef(
|
|
|
3178
277
|
Carousel.displayName = "Carousel";
|
|
3179
278
|
var CarouselContent = React4.forwardRef(({ className, ...props }, ref) => {
|
|
3180
279
|
const { carouselRef, orientation } = useCarousel();
|
|
3181
|
-
return /* @__PURE__ */ (
|
|
280
|
+
return /* @__PURE__ */ jsx4("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx4(
|
|
3182
281
|
"div",
|
|
3183
282
|
{
|
|
3184
283
|
ref,
|
|
@@ -3194,7 +293,7 @@ var CarouselContent = React4.forwardRef(({ className, ...props }, ref) => {
|
|
|
3194
293
|
CarouselContent.displayName = "CarouselContent";
|
|
3195
294
|
var CarouselItem = React4.forwardRef(({ className, ...props }, ref) => {
|
|
3196
295
|
const { orientation } = useCarousel();
|
|
3197
|
-
return /* @__PURE__ */ (
|
|
296
|
+
return /* @__PURE__ */ jsx4(
|
|
3198
297
|
"div",
|
|
3199
298
|
{
|
|
3200
299
|
ref,
|
|
@@ -3212,7 +311,7 @@ var CarouselItem = React4.forwardRef(({ className, ...props }, ref) => {
|
|
|
3212
311
|
CarouselItem.displayName = "CarouselItem";
|
|
3213
312
|
var CarouselPrevious = React4.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
3214
313
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
3215
|
-
return /* @__PURE__ */ (
|
|
314
|
+
return /* @__PURE__ */ jsxs3(
|
|
3216
315
|
Button,
|
|
3217
316
|
{
|
|
3218
317
|
ref,
|
|
@@ -3227,8 +326,8 @@ var CarouselPrevious = React4.forwardRef(({ className, variant = "outline", size
|
|
|
3227
326
|
onClick: scrollPrev,
|
|
3228
327
|
...props,
|
|
3229
328
|
children: [
|
|
3230
|
-
/* @__PURE__ */ (
|
|
3231
|
-
/* @__PURE__ */ (
|
|
329
|
+
/* @__PURE__ */ jsx4(ArrowLeft, { className: "h-4 w-4" }),
|
|
330
|
+
/* @__PURE__ */ jsx4("span", { className: "sr-only", children: "Previous slide" })
|
|
3232
331
|
]
|
|
3233
332
|
}
|
|
3234
333
|
);
|
|
@@ -3236,7 +335,7 @@ var CarouselPrevious = React4.forwardRef(({ className, variant = "outline", size
|
|
|
3236
335
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
3237
336
|
var CarouselNext = React4.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
3238
337
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
3239
|
-
return /* @__PURE__ */ (
|
|
338
|
+
return /* @__PURE__ */ jsxs3(
|
|
3240
339
|
Button,
|
|
3241
340
|
{
|
|
3242
341
|
ref,
|
|
@@ -3251,8 +350,8 @@ var CarouselNext = React4.forwardRef(({ className, variant = "outline", size = "
|
|
|
3251
350
|
onClick: scrollNext,
|
|
3252
351
|
...props,
|
|
3253
352
|
children: [
|
|
3254
|
-
/* @__PURE__ */ (
|
|
3255
|
-
/* @__PURE__ */ (
|
|
353
|
+
/* @__PURE__ */ jsx4(ArrowRight, { className: "h-4 w-4" }),
|
|
354
|
+
/* @__PURE__ */ jsx4("span", { className: "sr-only", children: "Next slide" })
|
|
3256
355
|
]
|
|
3257
356
|
}
|
|
3258
357
|
);
|
|
@@ -3261,7 +360,7 @@ CarouselNext.displayName = "CarouselNext";
|
|
|
3261
360
|
|
|
3262
361
|
// components/ui/container.tsx
|
|
3263
362
|
import { cva as cva3 } from "class-variance-authority";
|
|
3264
|
-
|
|
363
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
3265
364
|
var containerVariants = cva3("container", {
|
|
3266
365
|
variants: {
|
|
3267
366
|
variant: {
|
|
@@ -3270,12 +369,12 @@ var containerVariants = cva3("container", {
|
|
|
3270
369
|
}
|
|
3271
370
|
});
|
|
3272
371
|
function Container({ className, variant, ...props }) {
|
|
3273
|
-
return /* @__PURE__ */ (
|
|
372
|
+
return /* @__PURE__ */ jsx5("div", { className: cn(containerVariants({ variant }), className), ...props });
|
|
3274
373
|
}
|
|
3275
374
|
|
|
3276
375
|
// components/ui/grid.tsx
|
|
3277
376
|
import { cva as cva4 } from "class-variance-authority";
|
|
3278
|
-
|
|
377
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
3279
378
|
var gridVariants = cva4("grid", {
|
|
3280
379
|
variants: {
|
|
3281
380
|
columns: {
|
|
@@ -3290,18 +389,18 @@ var gridVariants = cva4("grid", {
|
|
|
3290
389
|
}
|
|
3291
390
|
});
|
|
3292
391
|
function Grid({ className, columns, ...props }) {
|
|
3293
|
-
return /* @__PURE__ */ (
|
|
392
|
+
return /* @__PURE__ */ jsx6(Container, { children: /* @__PURE__ */ jsx6("div", { className: cn(gridVariants({ columns }), className), ...props }) });
|
|
3294
393
|
}
|
|
3295
394
|
|
|
3296
395
|
// components/ui/label.tsx
|
|
3297
|
-
|
|
396
|
+
import * as React5 from "react";
|
|
3298
397
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3299
398
|
import { cva as cva5 } from "class-variance-authority";
|
|
3300
|
-
|
|
399
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
3301
400
|
var labelVariants = cva5(
|
|
3302
401
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
3303
402
|
);
|
|
3304
|
-
var Label = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
403
|
+
var Label = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
|
|
3305
404
|
LabelPrimitive.Root,
|
|
3306
405
|
{
|
|
3307
406
|
ref,
|
|
@@ -3312,11 +411,11 @@ var Label = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
3312
411
|
Label.displayName = LabelPrimitive.Root.displayName;
|
|
3313
412
|
|
|
3314
413
|
// components/ui/separator.tsx
|
|
3315
|
-
|
|
414
|
+
import * as React6 from "react";
|
|
3316
415
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3317
|
-
|
|
416
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
3318
417
|
var Separator = React6.forwardRef(
|
|
3319
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (
|
|
418
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
3320
419
|
SeparatorPrimitive.Root,
|
|
3321
420
|
{
|
|
3322
421
|
ref,
|
|
@@ -3335,7 +434,7 @@ Separator.displayName = SeparatorPrimitive.Root.displayName;
|
|
|
3335
434
|
|
|
3336
435
|
// components/ui/badge.tsx
|
|
3337
436
|
import { cva as cva6 } from "class-variance-authority";
|
|
3338
|
-
|
|
437
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
3339
438
|
var badgeVariants = cva6(
|
|
3340
439
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
3341
440
|
{
|
|
@@ -3353,17 +452,17 @@ var badgeVariants = cva6(
|
|
|
3353
452
|
}
|
|
3354
453
|
);
|
|
3355
454
|
function Badge({ className, variant, ...props }) {
|
|
3356
|
-
return /* @__PURE__ */ (
|
|
455
|
+
return /* @__PURE__ */ jsx9("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
3357
456
|
}
|
|
3358
457
|
|
|
3359
458
|
// components/ui/video.tsx
|
|
3360
459
|
import { cva as cva7 } from "class-variance-authority";
|
|
3361
|
-
|
|
460
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
3362
461
|
var videoVariants = cva7("w-full", {
|
|
3363
462
|
variants: {}
|
|
3364
463
|
});
|
|
3365
464
|
function Video({ className, ...props }) {
|
|
3366
|
-
return /* @__PURE__ */ (
|
|
465
|
+
return /* @__PURE__ */ jsx10(
|
|
3367
466
|
"video",
|
|
3368
467
|
{
|
|
3369
468
|
className: cn(videoVariants({}), className),
|
|
@@ -3377,8 +476,8 @@ function Video({ className, ...props }) {
|
|
|
3377
476
|
}
|
|
3378
477
|
|
|
3379
478
|
// components/ui/money.tsx
|
|
3380
|
-
var import_jsx_runtime11 = __toESM(require_jsx_runtime());
|
|
3381
479
|
import { cva as cva8 } from "class-variance-authority";
|
|
480
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
3382
481
|
var moneyVariants = cva8("", {
|
|
3383
482
|
variants: {},
|
|
3384
483
|
defaultVariants: {
|
|
@@ -3392,16 +491,16 @@ function Money({ price, locale, currency, ...props }) {
|
|
|
3392
491
|
currency
|
|
3393
492
|
});
|
|
3394
493
|
let formattedPrice = formatter.format(Number(price));
|
|
3395
|
-
return /* @__PURE__ */ (
|
|
494
|
+
return /* @__PURE__ */ jsx11("span", { ...props, children: formattedPrice });
|
|
3396
495
|
}
|
|
3397
496
|
|
|
3398
497
|
// components/ui/skeleton.tsx
|
|
3399
|
-
|
|
498
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
3400
499
|
function Skeleton({
|
|
3401
500
|
className,
|
|
3402
501
|
...props
|
|
3403
502
|
}) {
|
|
3404
|
-
return /* @__PURE__ */ (
|
|
503
|
+
return /* @__PURE__ */ jsx12(
|
|
3405
504
|
"div",
|
|
3406
505
|
{
|
|
3407
506
|
className: cn("animate-pulse rounded-md bg-muted", className),
|
|
@@ -3412,7 +511,7 @@ function Skeleton({
|
|
|
3412
511
|
|
|
3413
512
|
// components/ui/text.tsx
|
|
3414
513
|
import { cva as cva9 } from "class-variance-authority";
|
|
3415
|
-
|
|
514
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
3416
515
|
var textVariants = cva9("", {
|
|
3417
516
|
variants: {
|
|
3418
517
|
type: {
|
|
@@ -3428,14 +527,14 @@ var textVariants = cva9("", {
|
|
|
3428
527
|
}
|
|
3429
528
|
});
|
|
3430
529
|
function Text({ className, type, ...props }) {
|
|
3431
|
-
return /* @__PURE__ */ (
|
|
530
|
+
return /* @__PURE__ */ jsx13("p", { className: cn(textVariants({ type }), className), ...props });
|
|
3432
531
|
}
|
|
3433
532
|
|
|
3434
533
|
// components/ui/toggle.tsx
|
|
3435
|
-
|
|
534
|
+
import * as React7 from "react";
|
|
3436
535
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
3437
536
|
import { cva as cva10 } from "class-variance-authority";
|
|
3438
|
-
|
|
537
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
3439
538
|
var toggleVariants = cva10(
|
|
3440
539
|
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
3441
540
|
{
|
|
@@ -3456,7 +555,7 @@ var toggleVariants = cva10(
|
|
|
3456
555
|
}
|
|
3457
556
|
}
|
|
3458
557
|
);
|
|
3459
|
-
var Toggle = React7.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (
|
|
558
|
+
var Toggle = React7.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
3460
559
|
TogglePrimitive.Root,
|
|
3461
560
|
{
|
|
3462
561
|
ref,
|
|
@@ -3467,26 +566,26 @@ var Toggle = React7.forwardRef(({ className, variant, size, ...props }, ref) =>
|
|
|
3467
566
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
3468
567
|
|
|
3469
568
|
// components/ui/toggle-group.tsx
|
|
3470
|
-
|
|
569
|
+
import * as React8 from "react";
|
|
3471
570
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
3472
|
-
|
|
571
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
3473
572
|
var ToggleGroupContext = React8.createContext({
|
|
3474
573
|
size: "default",
|
|
3475
574
|
variant: "default"
|
|
3476
575
|
});
|
|
3477
|
-
var ToggleGroup = React8.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ (
|
|
576
|
+
var ToggleGroup = React8.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
3478
577
|
ToggleGroupPrimitive.Root,
|
|
3479
578
|
{
|
|
3480
579
|
ref,
|
|
3481
580
|
className: cn("flex items-center justify-center gap-1", className),
|
|
3482
581
|
...props,
|
|
3483
|
-
children: /* @__PURE__ */ (
|
|
582
|
+
children: /* @__PURE__ */ jsx15(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
3484
583
|
}
|
|
3485
584
|
));
|
|
3486
585
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
3487
586
|
var ToggleGroupItem = React8.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
3488
587
|
const context = React8.useContext(ToggleGroupContext);
|
|
3489
|
-
return /* @__PURE__ */ (
|
|
588
|
+
return /* @__PURE__ */ jsx15(
|
|
3490
589
|
ToggleGroupPrimitive.Item,
|
|
3491
590
|
{
|
|
3492
591
|
ref,
|
|
@@ -3505,10 +604,10 @@ var ToggleGroupItem = React8.forwardRef(({ className, children, variant, size, .
|
|
|
3505
604
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
3506
605
|
|
|
3507
606
|
// components/ui/switch.tsx
|
|
3508
|
-
|
|
607
|
+
import * as React9 from "react";
|
|
3509
608
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
3510
|
-
|
|
3511
|
-
var Switch = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
609
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
610
|
+
var Switch = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
3512
611
|
SwitchPrimitives.Root,
|
|
3513
612
|
{
|
|
3514
613
|
className: cn(
|
|
@@ -3517,7 +616,7 @@ var Switch = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
3517
616
|
),
|
|
3518
617
|
...props,
|
|
3519
618
|
ref,
|
|
3520
|
-
children: /* @__PURE__ */ (
|
|
619
|
+
children: /* @__PURE__ */ jsx16(
|
|
3521
620
|
SwitchPrimitives.Thumb,
|
|
3522
621
|
{
|
|
3523
622
|
className: cn(
|
|
@@ -3530,24 +629,24 @@ var Switch = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
3530
629
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
3531
630
|
|
|
3532
631
|
// components/ui/scroll-area.tsx
|
|
3533
|
-
|
|
632
|
+
import * as React10 from "react";
|
|
3534
633
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
3535
|
-
|
|
3536
|
-
var ScrollArea = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (
|
|
634
|
+
import { jsx as jsx17, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
635
|
+
var ScrollArea = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs4(
|
|
3537
636
|
ScrollAreaPrimitive.Root,
|
|
3538
637
|
{
|
|
3539
638
|
ref,
|
|
3540
639
|
className: cn("relative overflow-hidden", className),
|
|
3541
640
|
...props,
|
|
3542
641
|
children: [
|
|
3543
|
-
/* @__PURE__ */ (
|
|
3544
|
-
/* @__PURE__ */ (
|
|
3545
|
-
/* @__PURE__ */ (
|
|
642
|
+
/* @__PURE__ */ jsx17(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children: /* @__PURE__ */ jsx17("div", { className: "flex w-max px-[16px]", children }) }),
|
|
643
|
+
/* @__PURE__ */ jsx17(ScrollBar, {}),
|
|
644
|
+
/* @__PURE__ */ jsx17(ScrollAreaPrimitive.Corner, {})
|
|
3546
645
|
]
|
|
3547
646
|
}
|
|
3548
647
|
));
|
|
3549
648
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
3550
|
-
var ScrollBar = React10.forwardRef(({ className, orientation = "horizontal", ...props }, ref) => /* @__PURE__ */ (
|
|
649
|
+
var ScrollBar = React10.forwardRef(({ className, orientation = "horizontal", ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
3551
650
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
3552
651
|
{
|
|
3553
652
|
ref,
|
|
@@ -3559,19 +658,19 @@ var ScrollBar = React10.forwardRef(({ className, orientation = "horizontal", ...
|
|
|
3559
658
|
className
|
|
3560
659
|
),
|
|
3561
660
|
...props,
|
|
3562
|
-
children: /* @__PURE__ */ (
|
|
661
|
+
children: /* @__PURE__ */ jsx17(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
3563
662
|
}
|
|
3564
663
|
));
|
|
3565
664
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
3566
665
|
|
|
3567
666
|
// components/ui/toast.tsx
|
|
3568
|
-
|
|
667
|
+
import * as React11 from "react";
|
|
3569
668
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
3570
669
|
import { cva as cva11 } from "class-variance-authority";
|
|
3571
670
|
import { X } from "lucide-react";
|
|
3572
|
-
|
|
671
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
3573
672
|
var ToastProvider = ToastPrimitives.Provider;
|
|
3574
|
-
var ToastViewport = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
673
|
+
var ToastViewport = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
3575
674
|
ToastPrimitives.Viewport,
|
|
3576
675
|
{
|
|
3577
676
|
ref,
|
|
@@ -3598,7 +697,7 @@ var toastVariants = cva11(
|
|
|
3598
697
|
}
|
|
3599
698
|
);
|
|
3600
699
|
var Toast = React11.forwardRef(({ className, variant, ...props }, ref) => {
|
|
3601
|
-
return /* @__PURE__ */ (
|
|
700
|
+
return /* @__PURE__ */ jsx18(
|
|
3602
701
|
ToastPrimitives.Root,
|
|
3603
702
|
{
|
|
3604
703
|
ref,
|
|
@@ -3608,7 +707,7 @@ var Toast = React11.forwardRef(({ className, variant, ...props }, ref) => {
|
|
|
3608
707
|
);
|
|
3609
708
|
});
|
|
3610
709
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
3611
|
-
var ToastAction = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
710
|
+
var ToastAction = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
3612
711
|
ToastPrimitives.Action,
|
|
3613
712
|
{
|
|
3614
713
|
ref,
|
|
@@ -3620,7 +719,7 @@ var ToastAction = React11.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3620
719
|
}
|
|
3621
720
|
));
|
|
3622
721
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
3623
|
-
var ToastClose = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
722
|
+
var ToastClose = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
3624
723
|
ToastPrimitives.Close,
|
|
3625
724
|
{
|
|
3626
725
|
ref,
|
|
@@ -3630,11 +729,11 @@ var ToastClose = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3630
729
|
),
|
|
3631
730
|
"toast-close": "",
|
|
3632
731
|
...props,
|
|
3633
|
-
children: /* @__PURE__ */ (
|
|
732
|
+
children: /* @__PURE__ */ jsx18(X, { className: "h-4 w-4" })
|
|
3634
733
|
}
|
|
3635
734
|
));
|
|
3636
735
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
3637
|
-
var ToastTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
736
|
+
var ToastTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
3638
737
|
ToastPrimitives.Title,
|
|
3639
738
|
{
|
|
3640
739
|
ref,
|
|
@@ -3643,7 +742,7 @@ var ToastTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3643
742
|
}
|
|
3644
743
|
));
|
|
3645
744
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
3646
|
-
var ToastDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
745
|
+
var ToastDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
3647
746
|
ToastPrimitives.Description,
|
|
3648
747
|
{
|
|
3649
748
|
ref,
|
|
@@ -3654,7 +753,7 @@ var ToastDescription = React11.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3654
753
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
3655
754
|
|
|
3656
755
|
// components/ui/use-toast.ts
|
|
3657
|
-
|
|
756
|
+
import * as React12 from "react";
|
|
3658
757
|
var TOAST_LIMIT = 1;
|
|
3659
758
|
var TOAST_REMOVE_DELAY = 1e6;
|
|
3660
759
|
var count = 0;
|
|
@@ -3773,28 +872,28 @@ function useToast() {
|
|
|
3773
872
|
}
|
|
3774
873
|
|
|
3775
874
|
// components/ui/toaster.tsx
|
|
3776
|
-
|
|
875
|
+
import { jsx as jsx19, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
3777
876
|
function Toaster() {
|
|
3778
877
|
const { toasts } = useToast();
|
|
3779
|
-
return /* @__PURE__ */ (
|
|
878
|
+
return /* @__PURE__ */ jsxs5(ToastProvider, { children: [
|
|
3780
879
|
toasts.map(function({ id, title, description, action, ...props }) {
|
|
3781
|
-
return /* @__PURE__ */ (
|
|
3782
|
-
/* @__PURE__ */ (
|
|
3783
|
-
title && /* @__PURE__ */ (
|
|
3784
|
-
description && /* @__PURE__ */ (
|
|
880
|
+
return /* @__PURE__ */ jsxs5(Toast, { ...props, children: [
|
|
881
|
+
/* @__PURE__ */ jsxs5("div", { className: "grid gap-1", children: [
|
|
882
|
+
title && /* @__PURE__ */ jsx19(ToastTitle, { children: title }),
|
|
883
|
+
description && /* @__PURE__ */ jsx19(ToastDescription, { children: description })
|
|
3785
884
|
] }),
|
|
3786
885
|
action,
|
|
3787
|
-
/* @__PURE__ */ (
|
|
886
|
+
/* @__PURE__ */ jsx19(ToastClose, {})
|
|
3788
887
|
] }, id);
|
|
3789
888
|
}),
|
|
3790
|
-
/* @__PURE__ */ (
|
|
889
|
+
/* @__PURE__ */ jsx19(ToastViewport, {})
|
|
3791
890
|
] });
|
|
3792
891
|
}
|
|
3793
892
|
|
|
3794
893
|
// components/ui/chip.tsx
|
|
3795
894
|
import { cva as cva12 } from "class-variance-authority";
|
|
3796
|
-
|
|
3797
|
-
|
|
895
|
+
import React13, { useState as useState3 } from "react";
|
|
896
|
+
import { jsx as jsx20, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
3798
897
|
var chipVariants = cva12(
|
|
3799
898
|
"inline-flex items-center justify-center rounded border border-coreColors-dividingLines text-[12px] transition-colors",
|
|
3800
899
|
{
|
|
@@ -3814,24 +913,24 @@ var chipVariants = cva12(
|
|
|
3814
913
|
}
|
|
3815
914
|
}
|
|
3816
915
|
);
|
|
3817
|
-
var Chip =
|
|
916
|
+
var Chip = React13.forwardRef(
|
|
3818
917
|
({ className, variant, direction, children, icon: Icon, iconPosition = "left", onClose, ...props }, ref) => {
|
|
3819
|
-
const [visible, setVisible] = (
|
|
918
|
+
const [visible, setVisible] = useState3(true);
|
|
3820
919
|
if (!visible) return null;
|
|
3821
920
|
const handleIconClick = () => {
|
|
3822
921
|
setVisible(false);
|
|
3823
922
|
onClose?.();
|
|
3824
923
|
};
|
|
3825
|
-
return /* @__PURE__ */ (
|
|
924
|
+
return /* @__PURE__ */ jsxs6(
|
|
3826
925
|
"div",
|
|
3827
926
|
{
|
|
3828
927
|
ref,
|
|
3829
928
|
className: cn(chipVariants({ variant, direction }), "p-2 space-x-2", className),
|
|
3830
929
|
...props,
|
|
3831
930
|
children: [
|
|
3832
|
-
Icon && iconPosition === "left" && /* @__PURE__ */ (
|
|
931
|
+
Icon && iconPosition === "left" && /* @__PURE__ */ jsx20(Icon, { className: "mr-2 h-4 w-4 cursor-pointer", onClick: handleIconClick }),
|
|
3833
932
|
children,
|
|
3834
|
-
Icon && iconPosition === "right" && /* @__PURE__ */ (
|
|
933
|
+
Icon && iconPosition === "right" && /* @__PURE__ */ jsx20(Icon, { className: "ml-2 h-4 w-4 cursor-pointer", onClick: handleIconClick })
|
|
3835
934
|
]
|
|
3836
935
|
}
|
|
3837
936
|
);
|
|
@@ -3839,40 +938,13 @@ var Chip = import_react.default.forwardRef(
|
|
|
3839
938
|
);
|
|
3840
939
|
Chip.displayName = "Chip";
|
|
3841
940
|
var MultipleChips = ({ children }) => {
|
|
3842
|
-
return /* @__PURE__ */ (
|
|
3843
|
-
/* @__PURE__ */ (
|
|
941
|
+
return /* @__PURE__ */ jsxs6("div", { className: "relative mt-2 mb-4", children: [
|
|
942
|
+
/* @__PURE__ */ jsx20("div", { className: "flex overflow-x-auto no-scrollbar", children: children.map((chip, index) => /* @__PURE__ */ jsx20("div", { className: cn("shrink-0", {
|
|
3844
943
|
"mr-2": index < children.length - 1
|
|
3845
944
|
}), children: chip }, index)) }),
|
|
3846
|
-
/* @__PURE__ */ (
|
|
945
|
+
/* @__PURE__ */ jsx20("div", { className: "fade-right" })
|
|
3847
946
|
] });
|
|
3848
947
|
};
|
|
3849
|
-
|
|
3850
|
-
// components/ThemeToggle.tsx
|
|
3851
|
-
import { useTheme } from "next-themes";
|
|
3852
|
-
var import_jsx_runtime21 = __toESM(require_jsx_runtime());
|
|
3853
|
-
function ThemeToggle() {
|
|
3854
|
-
const { setTheme, theme } = useTheme();
|
|
3855
|
-
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
3856
|
-
Button,
|
|
3857
|
-
{
|
|
3858
|
-
variant: "ghost",
|
|
3859
|
-
size: "sm",
|
|
3860
|
-
onClick: () => setTheme(theme === "light" ? "dark" : "light"),
|
|
3861
|
-
children: [
|
|
3862
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" }),
|
|
3863
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "absolute rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" }),
|
|
3864
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "sr-only", children: "Toggle theme" })
|
|
3865
|
-
]
|
|
3866
|
-
}
|
|
3867
|
-
);
|
|
3868
|
-
}
|
|
3869
|
-
|
|
3870
|
-
// components/ThemeProvider.tsx
|
|
3871
|
-
var import_jsx_runtime22 = __toESM(require_jsx_runtime());
|
|
3872
|
-
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
|
3873
|
-
function ThemeProvider({ children, ...props }) {
|
|
3874
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(NextThemesProvider, { ...props, children });
|
|
3875
|
-
}
|
|
3876
948
|
export {
|
|
3877
949
|
Accordion,
|
|
3878
950
|
AccordionContent,
|
|
@@ -3899,8 +971,6 @@ export {
|
|
|
3899
971
|
Skeleton,
|
|
3900
972
|
Switch,
|
|
3901
973
|
Text,
|
|
3902
|
-
ThemeProvider,
|
|
3903
|
-
ThemeToggle,
|
|
3904
974
|
Toast,
|
|
3905
975
|
ToastAction,
|
|
3906
976
|
ToastClose,
|
|
@@ -3926,53 +996,4 @@ export {
|
|
|
3926
996
|
useToast,
|
|
3927
997
|
videoVariants
|
|
3928
998
|
};
|
|
3929
|
-
/*! Bundled license information:
|
|
3930
|
-
|
|
3931
|
-
object-assign/index.js:
|
|
3932
|
-
(*
|
|
3933
|
-
object-assign
|
|
3934
|
-
(c) Sindre Sorhus
|
|
3935
|
-
@license MIT
|
|
3936
|
-
*)
|
|
3937
|
-
|
|
3938
|
-
react/cjs/react.production.min.js:
|
|
3939
|
-
(** @license React v17.0.2
|
|
3940
|
-
* react.production.min.js
|
|
3941
|
-
*
|
|
3942
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3943
|
-
*
|
|
3944
|
-
* This source code is licensed under the MIT license found in the
|
|
3945
|
-
* LICENSE file in the root directory of this source tree.
|
|
3946
|
-
*)
|
|
3947
|
-
|
|
3948
|
-
react/cjs/react.development.js:
|
|
3949
|
-
(** @license React v17.0.2
|
|
3950
|
-
* react.development.js
|
|
3951
|
-
*
|
|
3952
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3953
|
-
*
|
|
3954
|
-
* This source code is licensed under the MIT license found in the
|
|
3955
|
-
* LICENSE file in the root directory of this source tree.
|
|
3956
|
-
*)
|
|
3957
|
-
|
|
3958
|
-
react/cjs/react-jsx-runtime.production.min.js:
|
|
3959
|
-
(** @license React v17.0.2
|
|
3960
|
-
* react-jsx-runtime.production.min.js
|
|
3961
|
-
*
|
|
3962
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3963
|
-
*
|
|
3964
|
-
* This source code is licensed under the MIT license found in the
|
|
3965
|
-
* LICENSE file in the root directory of this source tree.
|
|
3966
|
-
*)
|
|
3967
|
-
|
|
3968
|
-
react/cjs/react-jsx-runtime.development.js:
|
|
3969
|
-
(** @license React v17.0.2
|
|
3970
|
-
* react-jsx-runtime.development.js
|
|
3971
|
-
*
|
|
3972
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3973
|
-
*
|
|
3974
|
-
* This source code is licensed under the MIT license found in the
|
|
3975
|
-
* LICENSE file in the root directory of this source tree.
|
|
3976
|
-
*)
|
|
3977
|
-
*/
|
|
3978
999
|
//# sourceMappingURL=index.mjs.map
|