itrm-components 1.0.2 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -2
- package/dist/index.d.ts +1 -1
- package/dist/itrm-components.js +634 -0
- package/dist/itrm-components.umd.cjs +30 -0
- package/dist/tooltip/components/tooltip.d.ts +1 -1
- package/dist/tooltip/index.d.ts +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +49 -20
- package/dist/index.cjs.js +0 -69
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.es.js +0 -2122
- package/dist/index.es.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,2 +1,50 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
+
|
|
10
|
+
## Expanding the ESLint configuration
|
|
11
|
+
|
|
12
|
+
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
|
|
13
|
+
|
|
14
|
+
- Configure the top-level `parserOptions` property like this:
|
|
15
|
+
|
|
16
|
+
```js
|
|
17
|
+
export default tseslint.config({
|
|
18
|
+
languageOptions: {
|
|
19
|
+
// other options...
|
|
20
|
+
parserOptions: {
|
|
21
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
22
|
+
tsconfigRootDir: import.meta.dirname,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
})
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
|
|
29
|
+
- Optionally add `...tseslint.configs.stylisticTypeChecked`
|
|
30
|
+
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
// eslint.config.js
|
|
34
|
+
import react from 'eslint-plugin-react'
|
|
35
|
+
|
|
36
|
+
export default tseslint.config({
|
|
37
|
+
// Set the react version
|
|
38
|
+
settings: { react: { version: '18.3' } },
|
|
39
|
+
plugins: {
|
|
40
|
+
// Add the react plugin
|
|
41
|
+
react,
|
|
42
|
+
},
|
|
43
|
+
rules: {
|
|
44
|
+
// other rules...
|
|
45
|
+
// Enable its recommended rules
|
|
46
|
+
...react.configs.recommended.rules,
|
|
47
|
+
...react.configs['jsx-runtime'].rules,
|
|
48
|
+
},
|
|
49
|
+
})
|
|
50
|
+
```
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './tooltip';
|
|
@@ -0,0 +1,634 @@
|
|
|
1
|
+
import Ce from "react";
|
|
2
|
+
var M = { exports: {} }, D = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.min.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var Oe;
|
|
13
|
+
function cr() {
|
|
14
|
+
if (Oe) return D;
|
|
15
|
+
Oe = 1;
|
|
16
|
+
var U = Ce, C = Symbol.for("react.element"), N = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, A = U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function P(h, c, T) {
|
|
18
|
+
var p, b = {}, R = null, W = null;
|
|
19
|
+
T !== void 0 && (R = "" + T), c.key !== void 0 && (R = "" + c.key), c.ref !== void 0 && (W = c.ref);
|
|
20
|
+
for (p in c) m.call(c, p) && !I.hasOwnProperty(p) && (b[p] = c[p]);
|
|
21
|
+
if (h && h.defaultProps) for (p in c = h.defaultProps, c) b[p] === void 0 && (b[p] = c[p]);
|
|
22
|
+
return { $$typeof: C, type: h, key: R, ref: W, props: b, _owner: A.current };
|
|
23
|
+
}
|
|
24
|
+
return D.Fragment = N, D.jsx = P, D.jsxs = P, D;
|
|
25
|
+
}
|
|
26
|
+
var F = {};
|
|
27
|
+
/**
|
|
28
|
+
* @license React
|
|
29
|
+
* react-jsx-runtime.development.js
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the MIT license found in the
|
|
34
|
+
* LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/
|
|
36
|
+
var Se;
|
|
37
|
+
function vr() {
|
|
38
|
+
return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
+
var U = Ce, C = Symbol.for("react.element"), N = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), P = Symbol.for("react.provider"), h = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Q = Symbol.iterator, Pe = "@@iterator";
|
|
40
|
+
function je(e) {
|
|
41
|
+
if (e === null || typeof e != "object")
|
|
42
|
+
return null;
|
|
43
|
+
var r = Q && e[Q] || e[Pe];
|
|
44
|
+
return typeof r == "function" ? r : null;
|
|
45
|
+
}
|
|
46
|
+
var O = U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
+
function l(e) {
|
|
48
|
+
{
|
|
49
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
50
|
+
t[n - 1] = arguments[n];
|
|
51
|
+
xe("error", e, t);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function xe(e, r, t) {
|
|
55
|
+
{
|
|
56
|
+
var n = O.ReactDebugCurrentFrame, o = n.getStackAddendum();
|
|
57
|
+
o !== "" && (r += "%s", t = t.concat([o]));
|
|
58
|
+
var u = t.map(function(i) {
|
|
59
|
+
return String(i);
|
|
60
|
+
});
|
|
61
|
+
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
var ke = !1, De = !1, Fe = !1, Ae = !1, Ie = !1, ee;
|
|
65
|
+
ee = Symbol.for("react.module.reference");
|
|
66
|
+
function We(e) {
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === m || e === I || Ie || e === A || e === T || e === p || Ae || e === W || ke || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === b || e.$$typeof === P || e.$$typeof === h || e.$$typeof === c || // This needs to include all possible module reference object
|
|
68
|
+
// types supported by any Flight configuration anywhere since
|
|
69
|
+
// we don't know which Flight build this will end up being used
|
|
70
|
+
// with.
|
|
71
|
+
e.$$typeof === ee || e.getModuleId !== void 0));
|
|
72
|
+
}
|
|
73
|
+
function $e(e, r, t) {
|
|
74
|
+
var n = e.displayName;
|
|
75
|
+
if (n)
|
|
76
|
+
return n;
|
|
77
|
+
var o = r.displayName || r.name || "";
|
|
78
|
+
return o !== "" ? t + "(" + o + ")" : t;
|
|
79
|
+
}
|
|
80
|
+
function re(e) {
|
|
81
|
+
return e.displayName || "Context";
|
|
82
|
+
}
|
|
83
|
+
function y(e) {
|
|
84
|
+
if (e == null)
|
|
85
|
+
return null;
|
|
86
|
+
if (typeof e.tag == "number" && l("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
|
+
return e.displayName || e.name || null;
|
|
88
|
+
if (typeof e == "string")
|
|
89
|
+
return e;
|
|
90
|
+
switch (e) {
|
|
91
|
+
case m:
|
|
92
|
+
return "Fragment";
|
|
93
|
+
case N:
|
|
94
|
+
return "Portal";
|
|
95
|
+
case I:
|
|
96
|
+
return "Profiler";
|
|
97
|
+
case A:
|
|
98
|
+
return "StrictMode";
|
|
99
|
+
case T:
|
|
100
|
+
return "Suspense";
|
|
101
|
+
case p:
|
|
102
|
+
return "SuspenseList";
|
|
103
|
+
}
|
|
104
|
+
if (typeof e == "object")
|
|
105
|
+
switch (e.$$typeof) {
|
|
106
|
+
case h:
|
|
107
|
+
var r = e;
|
|
108
|
+
return re(r) + ".Consumer";
|
|
109
|
+
case P:
|
|
110
|
+
var t = e;
|
|
111
|
+
return re(t._context) + ".Provider";
|
|
112
|
+
case c:
|
|
113
|
+
return $e(e, e.render, "ForwardRef");
|
|
114
|
+
case b:
|
|
115
|
+
var n = e.displayName || null;
|
|
116
|
+
return n !== null ? n : y(e.type) || "Memo";
|
|
117
|
+
case R: {
|
|
118
|
+
var o = e, u = o._payload, i = o._init;
|
|
119
|
+
try {
|
|
120
|
+
return y(i(u));
|
|
121
|
+
} catch {
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
var E = Object.assign, j = 0, te, ne, ae, ie, oe, ue, se;
|
|
129
|
+
function fe() {
|
|
130
|
+
}
|
|
131
|
+
fe.__reactDisabledLog = !0;
|
|
132
|
+
function Ye() {
|
|
133
|
+
{
|
|
134
|
+
if (j === 0) {
|
|
135
|
+
te = console.log, ne = console.info, ae = console.warn, ie = console.error, oe = console.group, ue = console.groupCollapsed, se = console.groupEnd;
|
|
136
|
+
var e = {
|
|
137
|
+
configurable: !0,
|
|
138
|
+
enumerable: !0,
|
|
139
|
+
value: fe,
|
|
140
|
+
writable: !0
|
|
141
|
+
};
|
|
142
|
+
Object.defineProperties(console, {
|
|
143
|
+
info: e,
|
|
144
|
+
log: e,
|
|
145
|
+
warn: e,
|
|
146
|
+
error: e,
|
|
147
|
+
group: e,
|
|
148
|
+
groupCollapsed: e,
|
|
149
|
+
groupEnd: e
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
j++;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function Le() {
|
|
156
|
+
{
|
|
157
|
+
if (j--, j === 0) {
|
|
158
|
+
var e = {
|
|
159
|
+
configurable: !0,
|
|
160
|
+
enumerable: !0,
|
|
161
|
+
writable: !0
|
|
162
|
+
};
|
|
163
|
+
Object.defineProperties(console, {
|
|
164
|
+
log: E({}, e, {
|
|
165
|
+
value: te
|
|
166
|
+
}),
|
|
167
|
+
info: E({}, e, {
|
|
168
|
+
value: ne
|
|
169
|
+
}),
|
|
170
|
+
warn: E({}, e, {
|
|
171
|
+
value: ae
|
|
172
|
+
}),
|
|
173
|
+
error: E({}, e, {
|
|
174
|
+
value: ie
|
|
175
|
+
}),
|
|
176
|
+
group: E({}, e, {
|
|
177
|
+
value: oe
|
|
178
|
+
}),
|
|
179
|
+
groupCollapsed: E({}, e, {
|
|
180
|
+
value: ue
|
|
181
|
+
}),
|
|
182
|
+
groupEnd: E({}, e, {
|
|
183
|
+
value: se
|
|
184
|
+
})
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
j < 0 && l("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
var J = O.ReactCurrentDispatcher, q;
|
|
191
|
+
function $(e, r, t) {
|
|
192
|
+
{
|
|
193
|
+
if (q === void 0)
|
|
194
|
+
try {
|
|
195
|
+
throw Error();
|
|
196
|
+
} catch (o) {
|
|
197
|
+
var n = o.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
q = n && n[1] || "";
|
|
199
|
+
}
|
|
200
|
+
return `
|
|
201
|
+
` + q + e;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
var B = !1, Y;
|
|
205
|
+
{
|
|
206
|
+
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
Y = new Ve();
|
|
208
|
+
}
|
|
209
|
+
function le(e, r) {
|
|
210
|
+
if (!e || B)
|
|
211
|
+
return "";
|
|
212
|
+
{
|
|
213
|
+
var t = Y.get(e);
|
|
214
|
+
if (t !== void 0)
|
|
215
|
+
return t;
|
|
216
|
+
}
|
|
217
|
+
var n;
|
|
218
|
+
B = !0;
|
|
219
|
+
var o = Error.prepareStackTrace;
|
|
220
|
+
Error.prepareStackTrace = void 0;
|
|
221
|
+
var u;
|
|
222
|
+
u = J.current, J.current = null, Ye();
|
|
223
|
+
try {
|
|
224
|
+
if (r) {
|
|
225
|
+
var i = function() {
|
|
226
|
+
throw Error();
|
|
227
|
+
};
|
|
228
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
229
|
+
set: function() {
|
|
230
|
+
throw Error();
|
|
231
|
+
}
|
|
232
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
+
try {
|
|
234
|
+
Reflect.construct(i, []);
|
|
235
|
+
} catch (d) {
|
|
236
|
+
n = d;
|
|
237
|
+
}
|
|
238
|
+
Reflect.construct(e, [], i);
|
|
239
|
+
} else {
|
|
240
|
+
try {
|
|
241
|
+
i.call();
|
|
242
|
+
} catch (d) {
|
|
243
|
+
n = d;
|
|
244
|
+
}
|
|
245
|
+
e.call(i.prototype);
|
|
246
|
+
}
|
|
247
|
+
} else {
|
|
248
|
+
try {
|
|
249
|
+
throw Error();
|
|
250
|
+
} catch (d) {
|
|
251
|
+
n = d;
|
|
252
|
+
}
|
|
253
|
+
e();
|
|
254
|
+
}
|
|
255
|
+
} catch (d) {
|
|
256
|
+
if (d && n && typeof d.stack == "string") {
|
|
257
|
+
for (var a = d.stack.split(`
|
|
258
|
+
`), v = n.stack.split(`
|
|
259
|
+
`), s = a.length - 1, f = v.length - 1; s >= 1 && f >= 0 && a[s] !== v[f]; )
|
|
260
|
+
f--;
|
|
261
|
+
for (; s >= 1 && f >= 0; s--, f--)
|
|
262
|
+
if (a[s] !== v[f]) {
|
|
263
|
+
if (s !== 1 || f !== 1)
|
|
264
|
+
do
|
|
265
|
+
if (s--, f--, f < 0 || a[s] !== v[f]) {
|
|
266
|
+
var g = `
|
|
267
|
+
` + a[s].replace(" at new ", " at ");
|
|
268
|
+
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, g), g;
|
|
269
|
+
}
|
|
270
|
+
while (s >= 1 && f >= 0);
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
} finally {
|
|
275
|
+
B = !1, J.current = u, Le(), Error.prepareStackTrace = o;
|
|
276
|
+
}
|
|
277
|
+
var w = e ? e.displayName || e.name : "", _ = w ? $(w) : "";
|
|
278
|
+
return typeof e == "function" && Y.set(e, _), _;
|
|
279
|
+
}
|
|
280
|
+
function Me(e, r, t) {
|
|
281
|
+
return le(e, !1);
|
|
282
|
+
}
|
|
283
|
+
function Ue(e) {
|
|
284
|
+
var r = e.prototype;
|
|
285
|
+
return !!(r && r.isReactComponent);
|
|
286
|
+
}
|
|
287
|
+
function L(e, r, t) {
|
|
288
|
+
if (e == null)
|
|
289
|
+
return "";
|
|
290
|
+
if (typeof e == "function")
|
|
291
|
+
return le(e, Ue(e));
|
|
292
|
+
if (typeof e == "string")
|
|
293
|
+
return $(e);
|
|
294
|
+
switch (e) {
|
|
295
|
+
case T:
|
|
296
|
+
return $("Suspense");
|
|
297
|
+
case p:
|
|
298
|
+
return $("SuspenseList");
|
|
299
|
+
}
|
|
300
|
+
if (typeof e == "object")
|
|
301
|
+
switch (e.$$typeof) {
|
|
302
|
+
case c:
|
|
303
|
+
return Me(e.render);
|
|
304
|
+
case b:
|
|
305
|
+
return L(e.type, r, t);
|
|
306
|
+
case R: {
|
|
307
|
+
var n = e, o = n._payload, u = n._init;
|
|
308
|
+
try {
|
|
309
|
+
return L(u(o), r, t);
|
|
310
|
+
} catch {
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
return "";
|
|
315
|
+
}
|
|
316
|
+
var x = Object.prototype.hasOwnProperty, ce = {}, ve = O.ReactDebugCurrentFrame;
|
|
317
|
+
function V(e) {
|
|
318
|
+
if (e) {
|
|
319
|
+
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
320
|
+
ve.setExtraStackFrame(t);
|
|
321
|
+
} else
|
|
322
|
+
ve.setExtraStackFrame(null);
|
|
323
|
+
}
|
|
324
|
+
function Ne(e, r, t, n, o) {
|
|
325
|
+
{
|
|
326
|
+
var u = Function.call.bind(x);
|
|
327
|
+
for (var i in e)
|
|
328
|
+
if (u(e, i)) {
|
|
329
|
+
var a = void 0;
|
|
330
|
+
try {
|
|
331
|
+
if (typeof e[i] != "function") {
|
|
332
|
+
var v = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
+
throw v.name = "Invariant Violation", v;
|
|
334
|
+
}
|
|
335
|
+
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
+
} catch (s) {
|
|
337
|
+
a = s;
|
|
338
|
+
}
|
|
339
|
+
a && !(a instanceof Error) && (V(o), l("%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).", n || "React class", t, i, typeof a), V(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, V(o), l("Failed %s type: %s", t, a.message), V(null));
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
var Je = Array.isArray;
|
|
344
|
+
function K(e) {
|
|
345
|
+
return Je(e);
|
|
346
|
+
}
|
|
347
|
+
function qe(e) {
|
|
348
|
+
{
|
|
349
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
+
return t;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
function Be(e) {
|
|
354
|
+
try {
|
|
355
|
+
return de(e), !1;
|
|
356
|
+
} catch {
|
|
357
|
+
return !0;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
function de(e) {
|
|
361
|
+
return "" + e;
|
|
362
|
+
}
|
|
363
|
+
function pe(e) {
|
|
364
|
+
if (Be(e))
|
|
365
|
+
return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), de(e);
|
|
366
|
+
}
|
|
367
|
+
var k = O.ReactCurrentOwner, Ke = {
|
|
368
|
+
key: !0,
|
|
369
|
+
ref: !0,
|
|
370
|
+
__self: !0,
|
|
371
|
+
__source: !0
|
|
372
|
+
}, ge, ye, G;
|
|
373
|
+
G = {};
|
|
374
|
+
function Ge(e) {
|
|
375
|
+
if (x.call(e, "ref")) {
|
|
376
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
377
|
+
if (r && r.isReactWarning)
|
|
378
|
+
return !1;
|
|
379
|
+
}
|
|
380
|
+
return e.ref !== void 0;
|
|
381
|
+
}
|
|
382
|
+
function ze(e) {
|
|
383
|
+
if (x.call(e, "key")) {
|
|
384
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
385
|
+
if (r && r.isReactWarning)
|
|
386
|
+
return !1;
|
|
387
|
+
}
|
|
388
|
+
return e.key !== void 0;
|
|
389
|
+
}
|
|
390
|
+
function Xe(e, r) {
|
|
391
|
+
if (typeof e.ref == "string" && k.current && r && k.current.stateNode !== r) {
|
|
392
|
+
var t = y(k.current.type);
|
|
393
|
+
G[t] || (l('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', y(k.current.type), e.ref), G[t] = !0);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
function He(e, r) {
|
|
397
|
+
{
|
|
398
|
+
var t = function() {
|
|
399
|
+
ge || (ge = !0, l("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
400
|
+
};
|
|
401
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
402
|
+
get: t,
|
|
403
|
+
configurable: !0
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
function Ze(e, r) {
|
|
408
|
+
{
|
|
409
|
+
var t = function() {
|
|
410
|
+
ye || (ye = !0, l("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
411
|
+
};
|
|
412
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
413
|
+
get: t,
|
|
414
|
+
configurable: !0
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
var Qe = function(e, r, t, n, o, u, i) {
|
|
419
|
+
var a = {
|
|
420
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
421
|
+
$$typeof: C,
|
|
422
|
+
// Built-in properties that belong on the element
|
|
423
|
+
type: e,
|
|
424
|
+
key: r,
|
|
425
|
+
ref: t,
|
|
426
|
+
props: i,
|
|
427
|
+
// Record the component responsible for creating this element.
|
|
428
|
+
_owner: u
|
|
429
|
+
};
|
|
430
|
+
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
431
|
+
configurable: !1,
|
|
432
|
+
enumerable: !1,
|
|
433
|
+
writable: !0,
|
|
434
|
+
value: !1
|
|
435
|
+
}), Object.defineProperty(a, "_self", {
|
|
436
|
+
configurable: !1,
|
|
437
|
+
enumerable: !1,
|
|
438
|
+
writable: !1,
|
|
439
|
+
value: n
|
|
440
|
+
}), Object.defineProperty(a, "_source", {
|
|
441
|
+
configurable: !1,
|
|
442
|
+
enumerable: !1,
|
|
443
|
+
writable: !1,
|
|
444
|
+
value: o
|
|
445
|
+
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
446
|
+
};
|
|
447
|
+
function er(e, r, t, n, o) {
|
|
448
|
+
{
|
|
449
|
+
var u, i = {}, a = null, v = null;
|
|
450
|
+
t !== void 0 && (pe(t), a = "" + t), ze(r) && (pe(r.key), a = "" + r.key), Ge(r) && (v = r.ref, Xe(r, o));
|
|
451
|
+
for (u in r)
|
|
452
|
+
x.call(r, u) && !Ke.hasOwnProperty(u) && (i[u] = r[u]);
|
|
453
|
+
if (e && e.defaultProps) {
|
|
454
|
+
var s = e.defaultProps;
|
|
455
|
+
for (u in s)
|
|
456
|
+
i[u] === void 0 && (i[u] = s[u]);
|
|
457
|
+
}
|
|
458
|
+
if (a || v) {
|
|
459
|
+
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
460
|
+
a && He(i, f), v && Ze(i, f);
|
|
461
|
+
}
|
|
462
|
+
return Qe(e, a, v, o, n, k.current, i);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
var z = O.ReactCurrentOwner, be = O.ReactDebugCurrentFrame;
|
|
466
|
+
function S(e) {
|
|
467
|
+
if (e) {
|
|
468
|
+
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
469
|
+
be.setExtraStackFrame(t);
|
|
470
|
+
} else
|
|
471
|
+
be.setExtraStackFrame(null);
|
|
472
|
+
}
|
|
473
|
+
var X;
|
|
474
|
+
X = !1;
|
|
475
|
+
function H(e) {
|
|
476
|
+
return typeof e == "object" && e !== null && e.$$typeof === C;
|
|
477
|
+
}
|
|
478
|
+
function he() {
|
|
479
|
+
{
|
|
480
|
+
if (z.current) {
|
|
481
|
+
var e = y(z.current.type);
|
|
482
|
+
if (e)
|
|
483
|
+
return `
|
|
484
|
+
|
|
485
|
+
Check the render method of \`` + e + "`.";
|
|
486
|
+
}
|
|
487
|
+
return "";
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
function rr(e) {
|
|
491
|
+
return "";
|
|
492
|
+
}
|
|
493
|
+
var Re = {};
|
|
494
|
+
function tr(e) {
|
|
495
|
+
{
|
|
496
|
+
var r = he();
|
|
497
|
+
if (!r) {
|
|
498
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
499
|
+
t && (r = `
|
|
500
|
+
|
|
501
|
+
Check the top-level render call using <` + t + ">.");
|
|
502
|
+
}
|
|
503
|
+
return r;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
function Ee(e, r) {
|
|
507
|
+
{
|
|
508
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
509
|
+
return;
|
|
510
|
+
e._store.validated = !0;
|
|
511
|
+
var t = tr(r);
|
|
512
|
+
if (Re[t])
|
|
513
|
+
return;
|
|
514
|
+
Re[t] = !0;
|
|
515
|
+
var n = "";
|
|
516
|
+
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + y(e._owner.type) + "."), S(e), l('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), S(null);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
function _e(e, r) {
|
|
520
|
+
{
|
|
521
|
+
if (typeof e != "object")
|
|
522
|
+
return;
|
|
523
|
+
if (K(e))
|
|
524
|
+
for (var t = 0; t < e.length; t++) {
|
|
525
|
+
var n = e[t];
|
|
526
|
+
H(n) && Ee(n, r);
|
|
527
|
+
}
|
|
528
|
+
else if (H(e))
|
|
529
|
+
e._store && (e._store.validated = !0);
|
|
530
|
+
else if (e) {
|
|
531
|
+
var o = je(e);
|
|
532
|
+
if (typeof o == "function" && o !== e.entries)
|
|
533
|
+
for (var u = o.call(e), i; !(i = u.next()).done; )
|
|
534
|
+
H(i.value) && Ee(i.value, r);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
function nr(e) {
|
|
539
|
+
{
|
|
540
|
+
var r = e.type;
|
|
541
|
+
if (r == null || typeof r == "string")
|
|
542
|
+
return;
|
|
543
|
+
var t;
|
|
544
|
+
if (typeof r == "function")
|
|
545
|
+
t = r.propTypes;
|
|
546
|
+
else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
|
|
547
|
+
// Inner props are checked in the reconciler.
|
|
548
|
+
r.$$typeof === b))
|
|
549
|
+
t = r.propTypes;
|
|
550
|
+
else
|
|
551
|
+
return;
|
|
552
|
+
if (t) {
|
|
553
|
+
var n = y(r);
|
|
554
|
+
Ne(t, e.props, "prop", n, e);
|
|
555
|
+
} else if (r.PropTypes !== void 0 && !X) {
|
|
556
|
+
X = !0;
|
|
557
|
+
var o = y(r);
|
|
558
|
+
l("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
559
|
+
}
|
|
560
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && l("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
function ar(e) {
|
|
564
|
+
{
|
|
565
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
566
|
+
var n = r[t];
|
|
567
|
+
if (n !== "children" && n !== "key") {
|
|
568
|
+
S(e), l("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), S(null);
|
|
569
|
+
break;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
e.ref !== null && (S(e), l("Invalid attribute `ref` supplied to `React.Fragment`."), S(null));
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
var me = {};
|
|
576
|
+
function Te(e, r, t, n, o, u) {
|
|
577
|
+
{
|
|
578
|
+
var i = We(e);
|
|
579
|
+
if (!i) {
|
|
580
|
+
var a = "";
|
|
581
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
582
|
+
var v = rr();
|
|
583
|
+
v ? a += v : a += he();
|
|
584
|
+
var s;
|
|
585
|
+
e === null ? s = "null" : K(e) ? s = "array" : e !== void 0 && e.$$typeof === C ? (s = "<" + (y(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, l("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
586
|
+
}
|
|
587
|
+
var f = er(e, r, t, o, u);
|
|
588
|
+
if (f == null)
|
|
589
|
+
return f;
|
|
590
|
+
if (i) {
|
|
591
|
+
var g = r.children;
|
|
592
|
+
if (g !== void 0)
|
|
593
|
+
if (n)
|
|
594
|
+
if (K(g)) {
|
|
595
|
+
for (var w = 0; w < g.length; w++)
|
|
596
|
+
_e(g[w], e);
|
|
597
|
+
Object.freeze && Object.freeze(g);
|
|
598
|
+
} else
|
|
599
|
+
l("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
|
+
else
|
|
601
|
+
_e(g, e);
|
|
602
|
+
}
|
|
603
|
+
if (x.call(r, "key")) {
|
|
604
|
+
var _ = y(e), d = Object.keys(r).filter(function(lr) {
|
|
605
|
+
return lr !== "key";
|
|
606
|
+
}), Z = d.length > 0 ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
|
+
if (!me[_ + Z]) {
|
|
608
|
+
var fr = d.length > 0 ? "{" + d.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
+
l(`A props object containing a "key" prop is being spread into JSX:
|
|
610
|
+
let props = %s;
|
|
611
|
+
<%s {...props} />
|
|
612
|
+
React keys must be passed directly to JSX without using spread:
|
|
613
|
+
let props = %s;
|
|
614
|
+
<%s key={someKey} {...props} />`, Z, _, fr, _), me[_ + Z] = !0;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
return e === m ? ar(f) : nr(f), f;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
function ir(e, r, t) {
|
|
621
|
+
return Te(e, r, t, !0);
|
|
622
|
+
}
|
|
623
|
+
function or(e, r, t) {
|
|
624
|
+
return Te(e, r, t, !1);
|
|
625
|
+
}
|
|
626
|
+
var ur = or, sr = ir;
|
|
627
|
+
F.Fragment = m, F.jsx = ur, F.jsxs = sr;
|
|
628
|
+
}()), F;
|
|
629
|
+
}
|
|
630
|
+
var we;
|
|
631
|
+
function dr() {
|
|
632
|
+
return we || (we = 1, process.env.NODE_ENV === "production" ? M.exports = cr() : M.exports = vr()), M.exports;
|
|
633
|
+
}
|
|
634
|
+
dr();
|