skeleton-ghost-loader 2.1.0 → 2.1.1
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/skeleton-loader.es.js +159 -163
- package/dist/skeleton-loader.umd.js +11 -11
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as M from "react";
|
|
2
|
+
import Pe from "react";
|
|
2
3
|
var ee = { exports: {} }, I = {};
|
|
3
4
|
/**
|
|
4
5
|
* @license React
|
|
@@ -10,20 +11,20 @@ var ee = { exports: {} }, I = {};
|
|
|
10
11
|
* LICENSE file in the root directory of this source tree.
|
|
11
12
|
*/
|
|
12
13
|
var Oe;
|
|
13
|
-
function
|
|
14
|
+
function vr() {
|
|
14
15
|
if (Oe) return I;
|
|
15
16
|
Oe = 1;
|
|
16
|
-
var p =
|
|
17
|
-
function T(
|
|
18
|
-
var
|
|
19
|
-
S !== void 0 && (O = "" + S),
|
|
20
|
-
for (
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof:
|
|
17
|
+
var p = Pe, R = Symbol.for("react.element"), _ = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, f = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function T(h, v, S) {
|
|
19
|
+
var g, w = {}, O = null, W = null;
|
|
20
|
+
S !== void 0 && (O = "" + S), v.key !== void 0 && (O = "" + v.key), v.ref !== void 0 && (W = v.ref);
|
|
21
|
+
for (g in v) l.call(v, g) && !s.hasOwnProperty(g) && (w[g] = v[g]);
|
|
22
|
+
if (h && h.defaultProps) for (g in v = h.defaultProps, v) w[g] === void 0 && (w[g] = v[g]);
|
|
23
|
+
return { $$typeof: R, type: h, key: O, ref: W, props: w, _owner: f.current };
|
|
23
24
|
}
|
|
24
25
|
return I.Fragment = _, I.jsx = T, I.jsxs = T, I;
|
|
25
26
|
}
|
|
26
|
-
var
|
|
27
|
+
var $ = {};
|
|
27
28
|
/**
|
|
28
29
|
* @license React
|
|
29
30
|
* react-jsx-runtime.development.js
|
|
@@ -34,13 +35,13 @@ var W = {};
|
|
|
34
35
|
* LICENSE file in the root directory of this source tree.
|
|
35
36
|
*/
|
|
36
37
|
var xe;
|
|
37
|
-
function
|
|
38
|
+
function pr() {
|
|
38
39
|
return xe || (xe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var p =
|
|
40
|
-
function
|
|
40
|
+
var p = Pe, R = Symbol.for("react.element"), _ = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), h = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), re = Symbol.iterator, ke = "@@iterator";
|
|
41
|
+
function je(e) {
|
|
41
42
|
if (e === null || typeof e != "object")
|
|
42
43
|
return null;
|
|
43
|
-
var r = re && e[re] || e[
|
|
44
|
+
var r = re && e[re] || e[ke];
|
|
44
45
|
return typeof r == "function" ? r : null;
|
|
45
46
|
}
|
|
46
47
|
var k = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -48,10 +49,10 @@ function vr() {
|
|
|
48
49
|
{
|
|
49
50
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
50
51
|
t[n - 1] = arguments[n];
|
|
51
|
-
|
|
52
|
+
Fe("error", e, t);
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function Fe(e, r, t) {
|
|
55
56
|
{
|
|
56
57
|
var n = k.ReactDebugCurrentFrame, o = n.getStackAddendum();
|
|
57
58
|
o !== "" && (r += "%s", t = t.concat([o]));
|
|
@@ -61,16 +62,16 @@ function vr() {
|
|
|
61
62
|
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
|
-
var
|
|
65
|
+
var De = !1, Ae = !1, Ie = !1, $e = !1, We = !1, te;
|
|
65
66
|
te = Symbol.for("react.module.reference");
|
|
66
|
-
function
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === l || e === s ||
|
|
67
|
+
function Ye(e) {
|
|
68
|
+
return !!(typeof e == "string" || typeof e == "function" || e === l || e === s || We || e === f || e === S || e === g || $e || e === W || De || Ae || Ie || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === w || e.$$typeof === T || e.$$typeof === h || e.$$typeof === v || // This needs to include all possible module reference object
|
|
68
69
|
// types supported by any Flight configuration anywhere since
|
|
69
70
|
// we don't know which Flight build this will end up being used
|
|
70
71
|
// with.
|
|
71
72
|
e.$$typeof === te || e.getModuleId !== void 0));
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function Ne(e, r, t) {
|
|
74
75
|
var n = e.displayName;
|
|
75
76
|
if (n)
|
|
76
77
|
return n;
|
|
@@ -98,19 +99,19 @@ function vr() {
|
|
|
98
99
|
return "StrictMode";
|
|
99
100
|
case S:
|
|
100
101
|
return "Suspense";
|
|
101
|
-
case
|
|
102
|
+
case g:
|
|
102
103
|
return "SuspenseList";
|
|
103
104
|
}
|
|
104
105
|
if (typeof e == "object")
|
|
105
106
|
switch (e.$$typeof) {
|
|
106
|
-
case
|
|
107
|
+
case h:
|
|
107
108
|
var r = e;
|
|
108
109
|
return ne(r) + ".Consumer";
|
|
109
110
|
case T:
|
|
110
111
|
var t = e;
|
|
111
112
|
return ne(t._context) + ".Provider";
|
|
112
|
-
case
|
|
113
|
-
return
|
|
113
|
+
case v:
|
|
114
|
+
return Ne(e, e.render, "ForwardRef");
|
|
114
115
|
case w:
|
|
115
116
|
var n = e.displayName || null;
|
|
116
117
|
return n !== null ? n : C(e.type) || "Memo";
|
|
@@ -125,13 +126,13 @@ function vr() {
|
|
|
125
126
|
}
|
|
126
127
|
return null;
|
|
127
128
|
}
|
|
128
|
-
var x = Object.assign,
|
|
129
|
+
var x = Object.assign, D = 0, ae, ie, oe, se, ue, le, fe;
|
|
129
130
|
function ce() {
|
|
130
131
|
}
|
|
131
132
|
ce.__reactDisabledLog = !0;
|
|
132
|
-
function
|
|
133
|
+
function Ve() {
|
|
133
134
|
{
|
|
134
|
-
if (
|
|
135
|
+
if (D === 0) {
|
|
135
136
|
ae = console.log, ie = console.info, oe = console.warn, se = console.error, ue = console.group, le = console.groupCollapsed, fe = console.groupEnd;
|
|
136
137
|
var e = {
|
|
137
138
|
configurable: !0,
|
|
@@ -149,12 +150,12 @@ function vr() {
|
|
|
149
150
|
groupEnd: e
|
|
150
151
|
});
|
|
151
152
|
}
|
|
152
|
-
|
|
153
|
+
D++;
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
|
-
function
|
|
156
|
+
function Le() {
|
|
156
157
|
{
|
|
157
|
-
if (
|
|
158
|
+
if (D--, D === 0) {
|
|
158
159
|
var e = {
|
|
159
160
|
configurable: !0,
|
|
160
161
|
enumerable: !0,
|
|
@@ -184,11 +185,11 @@ function vr() {
|
|
|
184
185
|
})
|
|
185
186
|
});
|
|
186
187
|
}
|
|
187
|
-
|
|
188
|
+
D < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
189
|
}
|
|
189
190
|
}
|
|
190
191
|
var z = k.ReactCurrentDispatcher, B;
|
|
191
|
-
function
|
|
192
|
+
function Y(e, r, t) {
|
|
192
193
|
{
|
|
193
194
|
if (B === void 0)
|
|
194
195
|
try {
|
|
@@ -201,16 +202,16 @@ function vr() {
|
|
|
201
202
|
` + B + e;
|
|
202
203
|
}
|
|
203
204
|
}
|
|
204
|
-
var q = !1,
|
|
205
|
+
var q = !1, N;
|
|
205
206
|
{
|
|
206
|
-
var
|
|
207
|
-
|
|
207
|
+
var Me = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
|
+
N = new Me();
|
|
208
209
|
}
|
|
209
210
|
function de(e, r) {
|
|
210
211
|
if (!e || q)
|
|
211
212
|
return "";
|
|
212
213
|
{
|
|
213
|
-
var t =
|
|
214
|
+
var t = N.get(e);
|
|
214
215
|
if (t !== void 0)
|
|
215
216
|
return t;
|
|
216
217
|
}
|
|
@@ -219,7 +220,7 @@ function vr() {
|
|
|
219
220
|
var o = Error.prepareStackTrace;
|
|
220
221
|
Error.prepareStackTrace = void 0;
|
|
221
222
|
var u;
|
|
222
|
-
u = z.current, z.current = null,
|
|
223
|
+
u = z.current, z.current = null, Ve();
|
|
223
224
|
try {
|
|
224
225
|
if (r) {
|
|
225
226
|
var i = function() {
|
|
@@ -256,74 +257,74 @@ function vr() {
|
|
|
256
257
|
if (b && n && typeof b.stack == "string") {
|
|
257
258
|
for (var a = b.stack.split(`
|
|
258
259
|
`), m = n.stack.split(`
|
|
259
|
-
`),
|
|
260
|
-
|
|
261
|
-
for (;
|
|
262
|
-
if (a[
|
|
263
|
-
if (
|
|
260
|
+
`), c = a.length - 1, d = m.length - 1; c >= 1 && d >= 0 && a[c] !== m[d]; )
|
|
261
|
+
d--;
|
|
262
|
+
for (; c >= 1 && d >= 0; c--, d--)
|
|
263
|
+
if (a[c] !== m[d]) {
|
|
264
|
+
if (c !== 1 || d !== 1)
|
|
264
265
|
do
|
|
265
|
-
if (
|
|
266
|
-
var
|
|
267
|
-
` + a[
|
|
268
|
-
return e.displayName &&
|
|
266
|
+
if (c--, d--, d < 0 || a[c] !== m[d]) {
|
|
267
|
+
var E = `
|
|
268
|
+
` + a[c].replace(" at new ", " at ");
|
|
269
|
+
return e.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, E), E;
|
|
269
270
|
}
|
|
270
|
-
while (
|
|
271
|
+
while (c >= 1 && d >= 0);
|
|
271
272
|
break;
|
|
272
273
|
}
|
|
273
274
|
}
|
|
274
275
|
} finally {
|
|
275
|
-
q = !1, z.current = u,
|
|
276
|
+
q = !1, z.current = u, Le(), Error.prepareStackTrace = o;
|
|
276
277
|
}
|
|
277
|
-
var F = e ? e.displayName || e.name : "", P = F ?
|
|
278
|
-
return typeof e == "function" &&
|
|
278
|
+
var F = e ? e.displayName || e.name : "", P = F ? Y(F) : "";
|
|
279
|
+
return typeof e == "function" && N.set(e, P), P;
|
|
279
280
|
}
|
|
280
|
-
function
|
|
281
|
+
function Ue(e, r, t) {
|
|
281
282
|
return de(e, !1);
|
|
282
283
|
}
|
|
283
|
-
function
|
|
284
|
+
function ze(e) {
|
|
284
285
|
var r = e.prototype;
|
|
285
286
|
return !!(r && r.isReactComponent);
|
|
286
287
|
}
|
|
287
|
-
function
|
|
288
|
+
function V(e, r, t) {
|
|
288
289
|
if (e == null)
|
|
289
290
|
return "";
|
|
290
291
|
if (typeof e == "function")
|
|
291
|
-
return de(e,
|
|
292
|
+
return de(e, ze(e));
|
|
292
293
|
if (typeof e == "string")
|
|
293
|
-
return
|
|
294
|
+
return Y(e);
|
|
294
295
|
switch (e) {
|
|
295
296
|
case S:
|
|
296
|
-
return
|
|
297
|
-
case
|
|
298
|
-
return
|
|
297
|
+
return Y("Suspense");
|
|
298
|
+
case g:
|
|
299
|
+
return Y("SuspenseList");
|
|
299
300
|
}
|
|
300
301
|
if (typeof e == "object")
|
|
301
302
|
switch (e.$$typeof) {
|
|
302
|
-
case
|
|
303
|
-
return
|
|
303
|
+
case v:
|
|
304
|
+
return Ue(e.render);
|
|
304
305
|
case w:
|
|
305
|
-
return
|
|
306
|
+
return V(e.type, r, t);
|
|
306
307
|
case O: {
|
|
307
308
|
var n = e, o = n._payload, u = n._init;
|
|
308
309
|
try {
|
|
309
|
-
return
|
|
310
|
+
return V(u(o), r, t);
|
|
310
311
|
} catch {
|
|
311
312
|
}
|
|
312
313
|
}
|
|
313
314
|
}
|
|
314
315
|
return "";
|
|
315
316
|
}
|
|
316
|
-
var
|
|
317
|
-
function
|
|
317
|
+
var A = Object.prototype.hasOwnProperty, ve = {}, pe = k.ReactDebugCurrentFrame;
|
|
318
|
+
function L(e) {
|
|
318
319
|
if (e) {
|
|
319
|
-
var r = e._owner, t =
|
|
320
|
+
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
320
321
|
pe.setExtraStackFrame(t);
|
|
321
322
|
} else
|
|
322
323
|
pe.setExtraStackFrame(null);
|
|
323
324
|
}
|
|
324
|
-
function
|
|
325
|
+
function Be(e, r, t, n, o) {
|
|
325
326
|
{
|
|
326
|
-
var u = Function.call.bind(
|
|
327
|
+
var u = Function.call.bind(A);
|
|
327
328
|
for (var i in e)
|
|
328
329
|
if (u(e, i)) {
|
|
329
330
|
var a = void 0;
|
|
@@ -333,24 +334,24 @@ function vr() {
|
|
|
333
334
|
throw m.name = "Invariant Violation", m;
|
|
334
335
|
}
|
|
335
336
|
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
-
} catch (
|
|
337
|
-
a =
|
|
337
|
+
} catch (c) {
|
|
338
|
+
a = c;
|
|
338
339
|
}
|
|
339
|
-
a && !(a instanceof Error) && (
|
|
340
|
+
a && !(a instanceof Error) && (L(o), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), L(null)), a instanceof Error && !(a.message in ve) && (ve[a.message] = !0, L(o), y("Failed %s type: %s", t, a.message), L(null));
|
|
340
341
|
}
|
|
341
342
|
}
|
|
342
343
|
}
|
|
343
|
-
var
|
|
344
|
+
var qe = Array.isArray;
|
|
344
345
|
function J(e) {
|
|
345
|
-
return
|
|
346
|
+
return qe(e);
|
|
346
347
|
}
|
|
347
|
-
function
|
|
348
|
+
function Je(e) {
|
|
348
349
|
{
|
|
349
350
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
351
|
return t;
|
|
351
352
|
}
|
|
352
353
|
}
|
|
353
|
-
function
|
|
354
|
+
function Ke(e) {
|
|
354
355
|
try {
|
|
355
356
|
return he(e), !1;
|
|
356
357
|
} catch {
|
|
@@ -361,35 +362,35 @@ function vr() {
|
|
|
361
362
|
return "" + e;
|
|
362
363
|
}
|
|
363
364
|
function ge(e) {
|
|
364
|
-
if (
|
|
365
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
365
|
+
if (Ke(e))
|
|
366
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), he(e);
|
|
366
367
|
}
|
|
367
|
-
var ye = k.ReactCurrentOwner,
|
|
368
|
+
var ye = k.ReactCurrentOwner, Ge = {
|
|
368
369
|
key: !0,
|
|
369
370
|
ref: !0,
|
|
370
371
|
__self: !0,
|
|
371
372
|
__source: !0
|
|
372
373
|
}, me, be;
|
|
373
|
-
function
|
|
374
|
-
if (
|
|
374
|
+
function Xe(e) {
|
|
375
|
+
if (A.call(e, "ref")) {
|
|
375
376
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
377
|
if (r && r.isReactWarning)
|
|
377
378
|
return !1;
|
|
378
379
|
}
|
|
379
380
|
return e.ref !== void 0;
|
|
380
381
|
}
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
382
|
+
function He(e) {
|
|
383
|
+
if (A.call(e, "key")) {
|
|
383
384
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
385
|
if (r && r.isReactWarning)
|
|
385
386
|
return !1;
|
|
386
387
|
}
|
|
387
388
|
return e.key !== void 0;
|
|
388
389
|
}
|
|
389
|
-
function
|
|
390
|
+
function Ze(e, r) {
|
|
390
391
|
typeof e.ref == "string" && ye.current;
|
|
391
392
|
}
|
|
392
|
-
function
|
|
393
|
+
function Qe(e, r) {
|
|
393
394
|
{
|
|
394
395
|
var t = function() {
|
|
395
396
|
me || (me = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
@@ -400,7 +401,7 @@ function vr() {
|
|
|
400
401
|
});
|
|
401
402
|
}
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
+
function er(e, r) {
|
|
404
405
|
{
|
|
405
406
|
var t = function() {
|
|
406
407
|
be || (be = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
@@ -411,10 +412,10 @@ function vr() {
|
|
|
411
412
|
});
|
|
412
413
|
}
|
|
413
414
|
}
|
|
414
|
-
var
|
|
415
|
+
var rr = function(e, r, t, n, o, u, i) {
|
|
415
416
|
var a = {
|
|
416
417
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof:
|
|
418
|
+
$$typeof: R,
|
|
418
419
|
// Built-in properties that belong on the element
|
|
419
420
|
type: e,
|
|
420
421
|
key: r,
|
|
@@ -440,28 +441,28 @@ function vr() {
|
|
|
440
441
|
value: o
|
|
441
442
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
442
443
|
};
|
|
443
|
-
function
|
|
444
|
+
function tr(e, r, t, n, o) {
|
|
444
445
|
{
|
|
445
446
|
var u, i = {}, a = null, m = null;
|
|
446
|
-
t !== void 0 && (ge(t), a = "" + t),
|
|
447
|
+
t !== void 0 && (ge(t), a = "" + t), He(r) && (ge(r.key), a = "" + r.key), Xe(r) && (m = r.ref, Ze(r, o));
|
|
447
448
|
for (u in r)
|
|
448
|
-
|
|
449
|
+
A.call(r, u) && !Ge.hasOwnProperty(u) && (i[u] = r[u]);
|
|
449
450
|
if (e && e.defaultProps) {
|
|
450
|
-
var
|
|
451
|
-
for (u in
|
|
452
|
-
i[u] === void 0 && (i[u] =
|
|
451
|
+
var c = e.defaultProps;
|
|
452
|
+
for (u in c)
|
|
453
|
+
i[u] === void 0 && (i[u] = c[u]);
|
|
453
454
|
}
|
|
454
455
|
if (a || m) {
|
|
455
|
-
var
|
|
456
|
-
a &&
|
|
456
|
+
var d = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
457
|
+
a && Qe(i, d), m && er(i, d);
|
|
457
458
|
}
|
|
458
|
-
return
|
|
459
|
+
return rr(e, a, m, o, n, ye.current, i);
|
|
459
460
|
}
|
|
460
461
|
}
|
|
461
462
|
var K = k.ReactCurrentOwner, Ee = k.ReactDebugCurrentFrame;
|
|
462
463
|
function j(e) {
|
|
463
464
|
if (e) {
|
|
464
|
-
var r = e._owner, t =
|
|
465
|
+
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
465
466
|
Ee.setExtraStackFrame(t);
|
|
466
467
|
} else
|
|
467
468
|
Ee.setExtraStackFrame(null);
|
|
@@ -469,7 +470,7 @@ function vr() {
|
|
|
469
470
|
var G;
|
|
470
471
|
G = !1;
|
|
471
472
|
function X(e) {
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
473
|
+
return typeof e == "object" && e !== null && e.$$typeof === R;
|
|
473
474
|
}
|
|
474
475
|
function Re() {
|
|
475
476
|
{
|
|
@@ -483,11 +484,11 @@ Check the render method of \`` + e + "`.";
|
|
|
483
484
|
return "";
|
|
484
485
|
}
|
|
485
486
|
}
|
|
486
|
-
function
|
|
487
|
+
function nr(e) {
|
|
487
488
|
return "";
|
|
488
489
|
}
|
|
489
490
|
var _e = {};
|
|
490
|
-
function
|
|
491
|
+
function ar(e) {
|
|
491
492
|
{
|
|
492
493
|
var r = Re();
|
|
493
494
|
if (!r) {
|
|
@@ -504,7 +505,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
504
505
|
if (!e._store || e._store.validated || e.key != null)
|
|
505
506
|
return;
|
|
506
507
|
e._store.validated = !0;
|
|
507
|
-
var t =
|
|
508
|
+
var t = ar(r);
|
|
508
509
|
if (_e[t])
|
|
509
510
|
return;
|
|
510
511
|
_e[t] = !0;
|
|
@@ -524,14 +525,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
524
525
|
else if (X(e))
|
|
525
526
|
e._store && (e._store.validated = !0);
|
|
526
527
|
else if (e) {
|
|
527
|
-
var o =
|
|
528
|
+
var o = je(e);
|
|
528
529
|
if (typeof o == "function" && o !== e.entries)
|
|
529
530
|
for (var u = o.call(e), i; !(i = u.next()).done; )
|
|
530
531
|
X(i.value) && Te(i.value, r);
|
|
531
532
|
}
|
|
532
533
|
}
|
|
533
534
|
}
|
|
534
|
-
function
|
|
535
|
+
function ir(e) {
|
|
535
536
|
{
|
|
536
537
|
var r = e.type;
|
|
537
538
|
if (r == null || typeof r == "string")
|
|
@@ -539,7 +540,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
539
540
|
var t;
|
|
540
541
|
if (typeof r == "function")
|
|
541
542
|
t = r.propTypes;
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
543
|
+
else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here.
|
|
543
544
|
// Inner props are checked in the reconciler.
|
|
544
545
|
r.$$typeof === w))
|
|
545
546
|
t = r.propTypes;
|
|
@@ -547,7 +548,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
547
548
|
return;
|
|
548
549
|
if (t) {
|
|
549
550
|
var n = C(r);
|
|
550
|
-
|
|
551
|
+
Be(t, e.props, "prop", n, e);
|
|
551
552
|
} else if (r.PropTypes !== void 0 && !G) {
|
|
552
553
|
G = !0;
|
|
553
554
|
var o = C(r);
|
|
@@ -556,7 +557,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
556
557
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
558
|
}
|
|
558
559
|
}
|
|
559
|
-
function
|
|
560
|
+
function or(e) {
|
|
560
561
|
{
|
|
561
562
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
562
563
|
var n = r[t];
|
|
@@ -571,73 +572,71 @@ Check the top-level render call using <` + t + ">.");
|
|
|
571
572
|
var we = {};
|
|
572
573
|
function Ce(e, r, t, n, o, u) {
|
|
573
574
|
{
|
|
574
|
-
var i =
|
|
575
|
+
var i = Ye(e);
|
|
575
576
|
if (!i) {
|
|
576
577
|
var a = "";
|
|
577
578
|
(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.");
|
|
578
|
-
var m =
|
|
579
|
+
var m = nr();
|
|
579
580
|
m ? a += m : a += Re();
|
|
580
|
-
var
|
|
581
|
-
e === null ?
|
|
581
|
+
var c;
|
|
582
|
+
e === null ? c = "null" : J(e) ? c = "array" : e !== void 0 && e.$$typeof === R ? (c = "<" + (C(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : c = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", c, a);
|
|
582
583
|
}
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
584
|
+
var d = tr(e, r, t, o, u);
|
|
585
|
+
if (d == null)
|
|
586
|
+
return d;
|
|
586
587
|
if (i) {
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
588
|
+
var E = r.children;
|
|
589
|
+
if (E !== void 0)
|
|
589
590
|
if (n)
|
|
590
|
-
if (J(
|
|
591
|
-
for (var F = 0; F <
|
|
592
|
-
Se(
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
591
|
+
if (J(E)) {
|
|
592
|
+
for (var F = 0; F < E.length; F++)
|
|
593
|
+
Se(E[F], e);
|
|
594
|
+
Object.freeze && Object.freeze(E);
|
|
594
595
|
} else
|
|
595
596
|
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
597
|
else
|
|
597
|
-
Se(
|
|
598
|
+
Se(E, e);
|
|
598
599
|
}
|
|
599
|
-
if (
|
|
600
|
-
var P = C(e), b = Object.keys(r).filter(function(
|
|
601
|
-
return
|
|
600
|
+
if (A.call(r, "key")) {
|
|
601
|
+
var P = C(e), b = Object.keys(r).filter(function(dr) {
|
|
602
|
+
return dr !== "key";
|
|
602
603
|
}), H = b.length > 0 ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
604
|
if (!we[P + H]) {
|
|
604
|
-
var
|
|
605
|
+
var cr = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}";
|
|
605
606
|
y(`A props object containing a "key" prop is being spread into JSX:
|
|
606
607
|
let props = %s;
|
|
607
608
|
<%s {...props} />
|
|
608
609
|
React keys must be passed directly to JSX without using spread:
|
|
609
610
|
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`, H, P,
|
|
611
|
+
<%s key={someKey} {...props} />`, H, P, cr, P), we[P + H] = !0;
|
|
611
612
|
}
|
|
612
613
|
}
|
|
613
|
-
return e === l ?
|
|
614
|
+
return e === l ? or(d) : ir(d), d;
|
|
614
615
|
}
|
|
615
616
|
}
|
|
616
|
-
function
|
|
617
|
+
function sr(e, r, t) {
|
|
617
618
|
return Ce(e, r, t, !0);
|
|
618
619
|
}
|
|
619
|
-
function
|
|
620
|
+
function ur(e, r, t) {
|
|
620
621
|
return Ce(e, r, t, !1);
|
|
621
622
|
}
|
|
622
|
-
var
|
|
623
|
-
|
|
624
|
-
}()),
|
|
623
|
+
var lr = ur, fr = sr;
|
|
624
|
+
$.Fragment = l, $.jsx = lr, $.jsxs = fr;
|
|
625
|
+
}()), $;
|
|
625
626
|
}
|
|
626
|
-
process.env.NODE_ENV === "production" ? ee.exports =
|
|
627
|
+
process.env.NODE_ENV === "production" ? ee.exports = vr() : ee.exports = pr();
|
|
627
628
|
var Z = ee.exports;
|
|
628
629
|
const U = {
|
|
629
630
|
text: "#ccc",
|
|
630
|
-
// lighter for text/headings
|
|
631
631
|
box: "#e0e0e0"
|
|
632
|
-
// darker for boxes/images/buttons
|
|
633
632
|
}, Q = {};
|
|
634
|
-
function
|
|
633
|
+
function hr(p) {
|
|
635
634
|
if (typeof document > "u") return {};
|
|
636
|
-
const
|
|
635
|
+
const R = typeof p.type == "string" ? p.type : "div", _ = `${R}-${p.props.id || ""}-${p.props.className || ""}`;
|
|
637
636
|
if (Q[_]) return Q[_];
|
|
638
|
-
const l = document.createElement(
|
|
639
|
-
p.props.id && (l.id = p.props.id), p.props.className && (l.className = p.props.className), p.props.style && Object.entries(p.props.style).forEach(([T,
|
|
640
|
-
l.style[T] =
|
|
637
|
+
const l = document.createElement(R);
|
|
638
|
+
p.props.id && (l.id = p.props.id), p.props.className && (l.className = p.props.className), p.props.style && Object.entries(p.props.style).forEach(([T, h]) => {
|
|
639
|
+
l.style[T] = h;
|
|
641
640
|
}), l.style.display = "none", document.body.appendChild(l);
|
|
642
641
|
const f = window.getComputedStyle(l), s = {
|
|
643
642
|
height: f.height || void 0,
|
|
@@ -645,33 +644,30 @@ function pr(p) {
|
|
|
645
644
|
fontSize: f.fontSize || void 0,
|
|
646
645
|
margin: f.margin || "0",
|
|
647
646
|
padding: f.padding || "0",
|
|
648
|
-
borderRadius: f.borderRadius || "
|
|
647
|
+
borderRadius: f.borderRadius || "4px"
|
|
649
648
|
};
|
|
650
649
|
return document.body.removeChild(l), Q[_] = s, s;
|
|
651
650
|
}
|
|
652
|
-
const
|
|
653
|
-
function
|
|
654
|
-
if (!
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
(g) => E(g)
|
|
671
|
-
);
|
|
672
|
-
return D.cloneElement(l, f, T);
|
|
651
|
+
const yr = ({ children: p }) => {
|
|
652
|
+
function R(l) {
|
|
653
|
+
if (!M.isValidElement(l)) return l;
|
|
654
|
+
if (typeof l.type == "string") {
|
|
655
|
+
const f = { ...l.props };
|
|
656
|
+
let s = { ...f.style };
|
|
657
|
+
if (f.skeletonrequired === "y") {
|
|
658
|
+
const h = hr(l);
|
|
659
|
+
s.height = s.height || f.height || h.height || "20px", s.width = s.width || f.width || h.width || "100%", s.fontSize = s.fontSize || f.fontSize || h.fontSize || "16px", s.margin = s.margin || f.margin || h.margin || "0", s.padding = s.padding || f.padding || h.padding || "0", s.borderRadius = s.borderRadius || h.borderRadius || "4px";
|
|
660
|
+
const v = l.type, S = ["p", "span", "h1", "h2", "h3", "h4", "h5", "h6"].includes(v);
|
|
661
|
+
s.backgroundColor = S ? U.text : U.box, s.color = "transparent", s.position = "relative", s.overflow = "hidden";
|
|
662
|
+
const g = S ? U.text : U.box;
|
|
663
|
+
s.backgroundImage = `linear-gradient(90deg, ${g} 0%, #f5f5f5 50%, ${g} 100%)`, s.backgroundSize = "200% 100%", s.animation = "shimmer 1.5s infinite", delete f.skeletonrequired, f.style = s;
|
|
664
|
+
}
|
|
665
|
+
const T = M.Children.map(l.props.children, R);
|
|
666
|
+
return M.cloneElement(l, f, T);
|
|
667
|
+
}
|
|
668
|
+
return l;
|
|
673
669
|
}
|
|
674
|
-
const _ =
|
|
670
|
+
const _ = M.Children.map(p, R);
|
|
675
671
|
return /* @__PURE__ */ Z.jsxs(Z.Fragment, { children: [
|
|
676
672
|
/* @__PURE__ */ Z.jsx("style", { children: `
|
|
677
673
|
@keyframes shimmer {
|
|
@@ -683,6 +679,6 @@ const gr = ({ children: p }) => {
|
|
|
683
679
|
] });
|
|
684
680
|
};
|
|
685
681
|
export {
|
|
686
|
-
|
|
687
|
-
|
|
682
|
+
yr as SkeletonBlock,
|
|
683
|
+
yr as default
|
|
688
684
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(w,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(w=typeof globalThis<"u"?globalThis:w||self,P(w.SkeletonGhostLoader={},w.React))})(this,function(w,P){"use strict";function De(f){const y=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(f){for(const E in f)if(E!=="default"){const s=Object.getOwnPropertyDescriptor(f,E);Object.defineProperty(y,E,s.get?s:{enumerable:!0,get:()=>f[E]})}}return y.default=f,Object.freeze(y)}const N=De(P);var q={exports:{}},$={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var ne;function Fe(){if(ne)return $;ne=1;var f=P,y=Symbol.for("react.element"),E=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,c=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function S(g,p,T){var h,O={},x=null,L=null;T!==void 0&&(x=""+T),p.key!==void 0&&(x=""+p.key),p.ref!==void 0&&(L=p.ref);for(h in p)s.call(p,h)&&!u.hasOwnProperty(h)&&(O[h]=p[h]);if(g&&g.defaultProps)for(h in p=g.defaultProps,p)O[h]===void 0&&(O[h]=p[h]);return{$$typeof:y,type:g,key:x,ref:L,props:O,_owner:c.current}}return $.Fragment=E,$.jsx=S,$.jsxs=S,$}var I={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,22 +14,22 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),d=a.length-1,v=
|
|
21
|
-
`+a[d].replace(" at new "," at ");return e.displayName&&
|
|
17
|
+
*/var ae;function Ae(){return ae||(ae=1,process.env.NODE_ENV!=="production"&&function(){var f=P,y=Symbol.for("react.element"),E=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),g=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),oe=Symbol.iterator,Ie="@@iterator";function We(e){if(e===null||typeof e!="object")return null;var r=oe&&e[oe]||e[Ie];return typeof r=="function"?r:null}var D=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ye("error",e,t)}}function Ye(e,r,t){{var n=D.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var l=t.map(function(i){return String(i)});l.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,l)}}var Ne=!1,Me=!1,Le=!1,Ve=!1,Ue=!1,ue;ue=Symbol.for("react.module.reference");function ze(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===u||Ue||e===c||e===T||e===h||Ve||e===L||Ne||Me||Le||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===O||e.$$typeof===S||e.$$typeof===g||e.$$typeof===p||e.$$typeof===ue||e.getModuleId!==void 0))}function Be(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function se(e){return e.displayName||"Context"}function C(e){if(e==null)return null;if(typeof e.tag=="number"&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case s:return"Fragment";case E:return"Portal";case u:return"Profiler";case c:return"StrictMode";case T:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g:var r=e;return se(r)+".Consumer";case S:var t=e;return se(t._context)+".Provider";case p:return Be(e,e.render,"ForwardRef");case O:var n=e.displayName||null;return n!==null?n:C(e.type)||"Memo";case x:{var o=e,l=o._payload,i=o._init;try{return C(i(l))}catch{return null}}}return null}var j=Object.assign,W=0,le,fe,ce,de,ve,pe,ge;function he(){}he.__reactDisabledLog=!0;function qe(){{if(W===0){le=console.log,fe=console.info,ce=console.warn,de=console.error,ve=console.group,pe=console.groupCollapsed,ge=console.groupEnd;var e={configurable:!0,enumerable:!0,value:he,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function Je(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:le}),info:j({},e,{value:fe}),warn:j({},e,{value:ce}),error:j({},e,{value:de}),group:j({},e,{value:ve}),groupCollapsed:j({},e,{value:pe}),groupEnd:j({},e,{value:ge})})}W<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=D.ReactCurrentDispatcher,X;function V(e,r,t){{if(X===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);X=n&&n[1]||""}return`
|
|
18
|
+
`+X+e}}var H=!1,U;{var Ke=typeof WeakMap=="function"?WeakMap:Map;U=new Ke}function ye(e,r){if(!e||H)return"";{var t=U.get(e);if(t!==void 0)return t}var n;H=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var l;l=G.current,G.current=null,qe();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(_){n=_}Reflect.construct(e,[],i)}else{try{i.call()}catch(_){n=_}e.call(i.prototype)}}else{try{throw Error()}catch(_){n=_}e()}}catch(_){if(_&&n&&typeof _.stack=="string"){for(var a=_.stack.split(`
|
|
19
|
+
`),b=n.stack.split(`
|
|
20
|
+
`),d=a.length-1,v=b.length-1;d>=1&&v>=0&&a[d]!==b[v];)v--;for(;d>=1&&v>=0;d--,v--)if(a[d]!==b[v]){if(d!==1||v!==1)do if(d--,v--,v<0||a[d]!==b[v]){var R=`
|
|
21
|
+
`+a[d].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,R),R}while(d>=1&&v>=0);break}}}finally{H=!1,G.current=l,Je(),Error.prepareStackTrace=o}var A=e?e.displayName||e.name:"",k=A?V(A):"";return typeof e=="function"&&U.set(e,k),k}function Ge(e,r,t){return ye(e,!1)}function Xe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function z(e,r,t){if(e==null)return"";if(typeof e=="function")return ye(e,Xe(e));if(typeof e=="string")return V(e);switch(e){case T:return V("Suspense");case h:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return Ge(e.render);case O:return z(e.type,r,t);case x:{var n=e,o=n._payload,l=n._init;try{return z(l(o),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,me={},be=D.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=z(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}function He(e,r,t,n,o){{var l=Function.call.bind(Y);for(var i in e)if(l(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var b=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`.");throw b.name="Invariant Violation",b}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){a=d}a&&!(a instanceof Error)&&(B(o),m("%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),B(null)),a instanceof Error&&!(a.message in me)&&(me[a.message]=!0,B(o),m("Failed %s type: %s",t,a.message),B(null))}}}var Ze=Array.isArray;function Z(e){return Ze(e)}function Qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function er(e){try{return Ee(e),!1}catch{return!0}}function Ee(e){return""+e}function _e(e){if(er(e))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qe(e)),Ee(e)}var Re=D.ReactCurrentOwner,rr={key:!0,ref:!0,__self:!0,__source:!0},Se,Te;function tr(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function nr(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ar(e,r){typeof e.ref=="string"&&Re.current}function ir(e,r){{var t=function(){Se||(Se=!0,m("%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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function or(e,r){{var t=function(){Te||(Te=!0,m("%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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ur=function(e,r,t,n,o,l,i){var a={$$typeof:y,type:e,key:r,ref:t,props:i,_owner:l};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function sr(e,r,t,n,o){{var l,i={},a=null,b=null;t!==void 0&&(_e(t),a=""+t),nr(r)&&(_e(r.key),a=""+r.key),tr(r)&&(b=r.ref,ar(r,o));for(l in r)Y.call(r,l)&&!rr.hasOwnProperty(l)&&(i[l]=r[l]);if(e&&e.defaultProps){var d=e.defaultProps;for(l in d)i[l]===void 0&&(i[l]=d[l])}if(a||b){var v=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ir(i,v),b&&or(i,v)}return ur(e,a,b,o,n,Re.current,i)}}var Q=D.ReactCurrentOwner,Oe=D.ReactDebugCurrentFrame;function F(e){if(e){var r=e._owner,t=z(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(t)}else Oe.setExtraStackFrame(null)}var ee;ee=!1;function re(e){return typeof e=="object"&&e!==null&&e.$$typeof===y}function we(){{if(Q.current){var e=C(Q.current.type);if(e)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function lr(e){return""}var Ce={};function fr(e){{var r=we();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+t+">.")}return r}}function
|
|
25
|
+
Check the top-level render call using <`+t+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=fr(r);if(Ce[t])return;Ce[t]=!0;var n="";e&&e._owner&&e._owner!==Q.current&&(n=" It was passed a child from "+C(e._owner.type)+"."),F(e),m('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),F(null)}}function xe(e,r){{if(typeof e!="object")return;if(Z(e))for(var t=0;t<e.length;t++){var n=e[t];re(n)&&Pe(n,r)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var o=We(e);if(typeof o=="function"&&o!==e.entries)for(var l=o.call(e),i;!(i=l.next()).done;)re(i.value)&&Pe(i.value,r)}}}function cr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===p||r.$$typeof===O))t=r.propTypes;else return;if(t){var n=C(r);He(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ee){ee=!0;var o=C(r);m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function dr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){F(e),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),F(null);break}}e.ref!==null&&(F(e),m("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var je={};function ke(e,r,t,n,o,l){{var i=ze(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var b=lr();b?a+=b:a+=we();var d;e===null?d="null":Z(e)?d="array":e!==void 0&&e.$$typeof===y?(d="<"+(C(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,a)}var v=sr(e,r,t,o,l);if(v==null)return v;if(i){var R=r.children;if(R!==void 0)if(n)if(Z(R)){for(var A=0;A<R.length;A++)xe(R[A],e);Object.freeze&&Object.freeze(R)}else m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else xe(R,e)}if(Y.call(r,"key")){var k=C(e),_=Object.keys(r).filter(function(mr){return mr!=="key"}),te=_.length>0?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}";if(!je[k+te]){var yr=_.length>0?"{"+_.join(": ..., ")+": ...}":"{}";m(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,te,k,yr,k),je[k+te]=!0}}return e===s?dr(v):cr(v),v}}function vr(e,r,t){return ke(e,r,t,!0)}function pr(e,r,t){return ke(e,r,t,!1)}var gr=pr,hr=vr;I.Fragment=s,I.jsx=gr,I.jsxs=hr}()),I}process.env.NODE_ENV==="production"?q.exports=Fe():q.exports=Ae();var J=q.exports;const M={text:"#ccc",box:"#e0e0e0"},K={};function $e(f){if(typeof document>"u")return{};const y=typeof f.type=="string"?f.type:"div",E=`${y}-${f.props.id||""}-${f.props.className||""}`;if(K[E])return K[E];const s=document.createElement(y);f.props.id&&(s.id=f.props.id),f.props.className&&(s.className=f.props.className),f.props.style&&Object.entries(f.props.style).forEach(([S,g])=>{s.style[S]=g}),s.style.display="none",document.body.appendChild(s);const c=window.getComputedStyle(s),u={height:c.height||void 0,width:c.width||"100%",fontSize:c.fontSize||void 0,margin:c.margin||"0",padding:c.padding||"0",borderRadius:c.borderRadius||"4px"};return document.body.removeChild(s),K[E]=u,u}const ie=({children:f})=>{function y(s){if(!N.isValidElement(s))return s;if(typeof s.type=="string"){const c={...s.props};let u={...c.style};if(c.skeletonrequired==="y"){const g=$e(s);u.height=u.height||c.height||g.height||"20px",u.width=u.width||c.width||g.width||"100%",u.fontSize=u.fontSize||c.fontSize||g.fontSize||"16px",u.margin=u.margin||c.margin||g.margin||"0",u.padding=u.padding||c.padding||g.padding||"0",u.borderRadius=u.borderRadius||g.borderRadius||"4px";const p=s.type,T=["p","span","h1","h2","h3","h4","h5","h6"].includes(p);u.backgroundColor=T?M.text:M.box,u.color="transparent",u.position="relative",u.overflow="hidden";const h=T?M.text:M.box;u.backgroundImage=`linear-gradient(90deg, ${h} 0%, #f5f5f5 50%, ${h} 100%)`,u.backgroundSize="200% 100%",u.animation="shimmer 1.5s infinite",delete c.skeletonrequired,c.style=u}const S=N.Children.map(s.props.children,y);return N.cloneElement(s,c,S)}return s}const E=N.Children.map(f,y);return J.jsxs(J.Fragment,{children:[J.jsx("style",{children:`
|
|
31
31
|
@keyframes shimmer {
|
|
32
32
|
0% { background-position: -200% 0; }
|
|
33
33
|
100% { background-position: 200% 0; }
|
|
34
34
|
}
|
|
35
|
-
`}),
|
|
35
|
+
`}),E]})};w.SkeletonBlock=ie,w.default=ie,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|