skeleton-ghost-loader 2.0.9 → 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 +684 -0
- package/dist/skeleton-loader.umd.js +35 -0
- package/package.json +1 -1
- package/dist/skeleton-loader.es.jsx +0 -675
- package/dist/skeleton-loader.umd.jsx +0 -35
|
@@ -1,675 +0,0 @@
|
|
|
1
|
-
import F from "react";
|
|
2
|
-
var Q = { exports: {} }, I = {};
|
|
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 we;
|
|
13
|
-
function dr() {
|
|
14
|
-
if (we) return I;
|
|
15
|
-
we = 1;
|
|
16
|
-
var h = F, E = Symbol.for("react.element"), d = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, a = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
-
function S(m, v, P) {
|
|
18
|
-
var y, T = {}, w = null, Y = null;
|
|
19
|
-
P !== void 0 && (w = "" + P), v.key !== void 0 && (w = "" + v.key), v.ref !== void 0 && (Y = v.ref);
|
|
20
|
-
for (y in v) f.call(v, y) && !_.hasOwnProperty(y) && (T[y] = v[y]);
|
|
21
|
-
if (m && m.defaultProps) for (y in v = m.defaultProps, v) T[y] === void 0 && (T[y] = v[y]);
|
|
22
|
-
return { $$typeof: E, type: m, key: w, ref: Y, props: T, _owner: a.current };
|
|
23
|
-
}
|
|
24
|
-
return I.Fragment = d, I.jsx = S, I.jsxs = S, I;
|
|
25
|
-
}
|
|
26
|
-
var W = {};
|
|
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 Oe;
|
|
37
|
-
function vr() {
|
|
38
|
-
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var h = F, E = Symbol.for("react.element"), d = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), m = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), ee = Symbol.iterator, Pe = "@@iterator";
|
|
40
|
-
function xe(e) {
|
|
41
|
-
if (e === null || typeof e != "object")
|
|
42
|
-
return null;
|
|
43
|
-
var r = ee && e[ee] || e[Pe];
|
|
44
|
-
return typeof r == "function" ? r : null;
|
|
45
|
-
}
|
|
46
|
-
var x = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
-
function p(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
|
-
je("error", e, t);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function je(e, r, t) {
|
|
55
|
-
{
|
|
56
|
-
var n = x.ReactDebugCurrentFrame, u = n.getStackAddendum();
|
|
57
|
-
u !== "" && (r += "%s", t = t.concat([u]));
|
|
58
|
-
var s = t.map(function(o) {
|
|
59
|
-
return String(o);
|
|
60
|
-
});
|
|
61
|
-
s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
var De = !1, Fe = !1, Ae = !1, $e = !1, Ie = !1, re;
|
|
65
|
-
re = Symbol.for("react.module.reference");
|
|
66
|
-
function We(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === f || e === _ || Ie || e === a || e === P || e === y || $e || e === Y || De || Fe || Ae || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === T || e.$$typeof === S || e.$$typeof === m || e.$$typeof === v || // 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 === re || e.getModuleId !== void 0));
|
|
72
|
-
}
|
|
73
|
-
function Ye(e, r, t) {
|
|
74
|
-
var n = e.displayName;
|
|
75
|
-
if (n)
|
|
76
|
-
return n;
|
|
77
|
-
var u = r.displayName || r.name || "";
|
|
78
|
-
return u !== "" ? t + "(" + u + ")" : t;
|
|
79
|
-
}
|
|
80
|
-
function te(e) {
|
|
81
|
-
return e.displayName || "Context";
|
|
82
|
-
}
|
|
83
|
-
function C(e) {
|
|
84
|
-
if (e == null)
|
|
85
|
-
return null;
|
|
86
|
-
if (typeof e.tag == "number" && p("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 f:
|
|
92
|
-
return "Fragment";
|
|
93
|
-
case d:
|
|
94
|
-
return "Portal";
|
|
95
|
-
case _:
|
|
96
|
-
return "Profiler";
|
|
97
|
-
case a:
|
|
98
|
-
return "StrictMode";
|
|
99
|
-
case P:
|
|
100
|
-
return "Suspense";
|
|
101
|
-
case y:
|
|
102
|
-
return "SuspenseList";
|
|
103
|
-
}
|
|
104
|
-
if (typeof e == "object")
|
|
105
|
-
switch (e.$$typeof) {
|
|
106
|
-
case m:
|
|
107
|
-
var r = e;
|
|
108
|
-
return te(r) + ".Consumer";
|
|
109
|
-
case S:
|
|
110
|
-
var t = e;
|
|
111
|
-
return te(t._context) + ".Provider";
|
|
112
|
-
case v:
|
|
113
|
-
return Ye(e, e.render, "ForwardRef");
|
|
114
|
-
case T:
|
|
115
|
-
var n = e.displayName || null;
|
|
116
|
-
return n !== null ? n : C(e.type) || "Memo";
|
|
117
|
-
case w: {
|
|
118
|
-
var u = e, s = u._payload, o = u._init;
|
|
119
|
-
try {
|
|
120
|
-
return C(o(s));
|
|
121
|
-
} catch {
|
|
122
|
-
return null;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return null;
|
|
127
|
-
}
|
|
128
|
-
var O = Object.assign, A = 0, ne, ae, ie, oe, ue, se, le;
|
|
129
|
-
function ce() {
|
|
130
|
-
}
|
|
131
|
-
ce.__reactDisabledLog = !0;
|
|
132
|
-
function Ve() {
|
|
133
|
-
{
|
|
134
|
-
if (A === 0) {
|
|
135
|
-
ne = console.log, ae = console.info, ie = console.warn, oe = console.error, ue = console.group, se = console.groupCollapsed, le = console.groupEnd;
|
|
136
|
-
var e = {
|
|
137
|
-
configurable: !0,
|
|
138
|
-
enumerable: !0,
|
|
139
|
-
value: ce,
|
|
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
|
-
A++;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
function Le() {
|
|
156
|
-
{
|
|
157
|
-
if (A--, A === 0) {
|
|
158
|
-
var e = {
|
|
159
|
-
configurable: !0,
|
|
160
|
-
enumerable: !0,
|
|
161
|
-
writable: !0
|
|
162
|
-
};
|
|
163
|
-
Object.defineProperties(console, {
|
|
164
|
-
log: O({}, e, {
|
|
165
|
-
value: ne
|
|
166
|
-
}),
|
|
167
|
-
info: O({}, e, {
|
|
168
|
-
value: ae
|
|
169
|
-
}),
|
|
170
|
-
warn: O({}, e, {
|
|
171
|
-
value: ie
|
|
172
|
-
}),
|
|
173
|
-
error: O({}, e, {
|
|
174
|
-
value: oe
|
|
175
|
-
}),
|
|
176
|
-
group: O({}, e, {
|
|
177
|
-
value: ue
|
|
178
|
-
}),
|
|
179
|
-
groupCollapsed: O({}, e, {
|
|
180
|
-
value: se
|
|
181
|
-
}),
|
|
182
|
-
groupEnd: O({}, e, {
|
|
183
|
-
value: le
|
|
184
|
-
})
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
A < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
var U = x.ReactCurrentDispatcher, B;
|
|
191
|
-
function V(e, r, t) {
|
|
192
|
-
{
|
|
193
|
-
if (B === void 0)
|
|
194
|
-
try {
|
|
195
|
-
throw Error();
|
|
196
|
-
} catch (u) {
|
|
197
|
-
var n = u.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
B = n && n[1] || "";
|
|
199
|
-
}
|
|
200
|
-
return `
|
|
201
|
-
` + B + e;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
var z = !1, L;
|
|
205
|
-
{
|
|
206
|
-
var Me = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
L = new Me();
|
|
208
|
-
}
|
|
209
|
-
function fe(e, r) {
|
|
210
|
-
if (!e || z)
|
|
211
|
-
return "";
|
|
212
|
-
{
|
|
213
|
-
var t = L.get(e);
|
|
214
|
-
if (t !== void 0)
|
|
215
|
-
return t;
|
|
216
|
-
}
|
|
217
|
-
var n;
|
|
218
|
-
z = !0;
|
|
219
|
-
var u = Error.prepareStackTrace;
|
|
220
|
-
Error.prepareStackTrace = void 0;
|
|
221
|
-
var s;
|
|
222
|
-
s = U.current, U.current = null, Ve();
|
|
223
|
-
try {
|
|
224
|
-
if (r) {
|
|
225
|
-
var o = function() {
|
|
226
|
-
throw Error();
|
|
227
|
-
};
|
|
228
|
-
if (Object.defineProperty(o.prototype, "props", {
|
|
229
|
-
set: function() {
|
|
230
|
-
throw Error();
|
|
231
|
-
}
|
|
232
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
-
try {
|
|
234
|
-
Reflect.construct(o, []);
|
|
235
|
-
} catch (b) {
|
|
236
|
-
n = b;
|
|
237
|
-
}
|
|
238
|
-
Reflect.construct(e, [], o);
|
|
239
|
-
} else {
|
|
240
|
-
try {
|
|
241
|
-
o.call();
|
|
242
|
-
} catch (b) {
|
|
243
|
-
n = b;
|
|
244
|
-
}
|
|
245
|
-
e.call(o.prototype);
|
|
246
|
-
}
|
|
247
|
-
} else {
|
|
248
|
-
try {
|
|
249
|
-
throw Error();
|
|
250
|
-
} catch (b) {
|
|
251
|
-
n = b;
|
|
252
|
-
}
|
|
253
|
-
e();
|
|
254
|
-
}
|
|
255
|
-
} catch (b) {
|
|
256
|
-
if (b && n && typeof b.stack == "string") {
|
|
257
|
-
for (var i = b.stack.split(`
|
|
258
|
-
`), g = n.stack.split(`
|
|
259
|
-
`), l = i.length - 1, c = g.length - 1; l >= 1 && c >= 0 && i[l] !== g[c]; )
|
|
260
|
-
c--;
|
|
261
|
-
for (; l >= 1 && c >= 0; l--, c--)
|
|
262
|
-
if (i[l] !== g[c]) {
|
|
263
|
-
if (l !== 1 || c !== 1)
|
|
264
|
-
do
|
|
265
|
-
if (l--, c--, c < 0 || i[l] !== g[c]) {
|
|
266
|
-
var R = `
|
|
267
|
-
` + i[l].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, R), R;
|
|
269
|
-
}
|
|
270
|
-
while (l >= 1 && c >= 0);
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
} finally {
|
|
275
|
-
z = !1, U.current = s, Le(), Error.prepareStackTrace = u;
|
|
276
|
-
}
|
|
277
|
-
var D = e ? e.displayName || e.name : "", k = D ? V(D) : "";
|
|
278
|
-
return typeof e == "function" && L.set(e, k), k;
|
|
279
|
-
}
|
|
280
|
-
function Ne(e, r, t) {
|
|
281
|
-
return fe(e, !1);
|
|
282
|
-
}
|
|
283
|
-
function Ue(e) {
|
|
284
|
-
var r = e.prototype;
|
|
285
|
-
return !!(r && r.isReactComponent);
|
|
286
|
-
}
|
|
287
|
-
function M(e, r, t) {
|
|
288
|
-
if (e == null)
|
|
289
|
-
return "";
|
|
290
|
-
if (typeof e == "function")
|
|
291
|
-
return fe(e, Ue(e));
|
|
292
|
-
if (typeof e == "string")
|
|
293
|
-
return V(e);
|
|
294
|
-
switch (e) {
|
|
295
|
-
case P:
|
|
296
|
-
return V("Suspense");
|
|
297
|
-
case y:
|
|
298
|
-
return V("SuspenseList");
|
|
299
|
-
}
|
|
300
|
-
if (typeof e == "object")
|
|
301
|
-
switch (e.$$typeof) {
|
|
302
|
-
case v:
|
|
303
|
-
return Ne(e.render);
|
|
304
|
-
case T:
|
|
305
|
-
return M(e.type, r, t);
|
|
306
|
-
case w: {
|
|
307
|
-
var n = e, u = n._payload, s = n._init;
|
|
308
|
-
try {
|
|
309
|
-
return M(s(u), r, t);
|
|
310
|
-
} catch {
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
return "";
|
|
315
|
-
}
|
|
316
|
-
var $ = Object.prototype.hasOwnProperty, de = {}, ve = x.ReactDebugCurrentFrame;
|
|
317
|
-
function N(e) {
|
|
318
|
-
if (e) {
|
|
319
|
-
var r = e._owner, t = M(e.type, e._source, r ? r.type : null);
|
|
320
|
-
ve.setExtraStackFrame(t);
|
|
321
|
-
} else
|
|
322
|
-
ve.setExtraStackFrame(null);
|
|
323
|
-
}
|
|
324
|
-
function Be(e, r, t, n, u) {
|
|
325
|
-
{
|
|
326
|
-
var s = Function.call.bind($);
|
|
327
|
-
for (var o in e)
|
|
328
|
-
if (s(e, o)) {
|
|
329
|
-
var i = void 0;
|
|
330
|
-
try {
|
|
331
|
-
if (typeof e[o] != "function") {
|
|
332
|
-
var g = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
-
throw g.name = "Invariant Violation", g;
|
|
334
|
-
}
|
|
335
|
-
i = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
-
} catch (l) {
|
|
337
|
-
i = l;
|
|
338
|
-
}
|
|
339
|
-
i && !(i instanceof Error) && (N(u), p("%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, o, typeof i), N(null)), i instanceof Error && !(i.message in de) && (de[i.message] = !0, N(u), p("Failed %s type: %s", t, i.message), N(null));
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
var ze = Array.isArray;
|
|
344
|
-
function q(e) {
|
|
345
|
-
return ze(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 Je(e) {
|
|
354
|
-
try {
|
|
355
|
-
return pe(e), !1;
|
|
356
|
-
} catch {
|
|
357
|
-
return !0;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
function pe(e) {
|
|
361
|
-
return "" + e;
|
|
362
|
-
}
|
|
363
|
-
function ge(e) {
|
|
364
|
-
if (Je(e))
|
|
365
|
-
return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), pe(e);
|
|
366
|
-
}
|
|
367
|
-
var he = x.ReactCurrentOwner, Ke = {
|
|
368
|
-
key: !0,
|
|
369
|
-
ref: !0,
|
|
370
|
-
__self: !0,
|
|
371
|
-
__source: !0
|
|
372
|
-
}, me, be;
|
|
373
|
-
function Ge(e) {
|
|
374
|
-
if ($.call(e, "ref")) {
|
|
375
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
|
-
if (r && r.isReactWarning)
|
|
377
|
-
return !1;
|
|
378
|
-
}
|
|
379
|
-
return e.ref !== void 0;
|
|
380
|
-
}
|
|
381
|
-
function Xe(e) {
|
|
382
|
-
if ($.call(e, "key")) {
|
|
383
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
|
-
if (r && r.isReactWarning)
|
|
385
|
-
return !1;
|
|
386
|
-
}
|
|
387
|
-
return e.key !== void 0;
|
|
388
|
-
}
|
|
389
|
-
function He(e, r) {
|
|
390
|
-
typeof e.ref == "string" && he.current;
|
|
391
|
-
}
|
|
392
|
-
function Ze(e, r) {
|
|
393
|
-
{
|
|
394
|
-
var t = function() {
|
|
395
|
-
me || (me = !0, p("%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));
|
|
396
|
-
};
|
|
397
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
|
-
get: t,
|
|
399
|
-
configurable: !0
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
function Qe(e, r) {
|
|
404
|
-
{
|
|
405
|
-
var t = function() {
|
|
406
|
-
be || (be = !0, p("%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));
|
|
407
|
-
};
|
|
408
|
-
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
|
-
get: t,
|
|
410
|
-
configurable: !0
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
var er = function(e, r, t, n, u, s, o) {
|
|
415
|
-
var i = {
|
|
416
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof: E,
|
|
418
|
-
// Built-in properties that belong on the element
|
|
419
|
-
type: e,
|
|
420
|
-
key: r,
|
|
421
|
-
ref: t,
|
|
422
|
-
props: o,
|
|
423
|
-
// Record the component responsible for creating this element.
|
|
424
|
-
_owner: s
|
|
425
|
-
};
|
|
426
|
-
return i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
427
|
-
configurable: !1,
|
|
428
|
-
enumerable: !1,
|
|
429
|
-
writable: !0,
|
|
430
|
-
value: !1
|
|
431
|
-
}), Object.defineProperty(i, "_self", {
|
|
432
|
-
configurable: !1,
|
|
433
|
-
enumerable: !1,
|
|
434
|
-
writable: !1,
|
|
435
|
-
value: n
|
|
436
|
-
}), Object.defineProperty(i, "_source", {
|
|
437
|
-
configurable: !1,
|
|
438
|
-
enumerable: !1,
|
|
439
|
-
writable: !1,
|
|
440
|
-
value: u
|
|
441
|
-
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
442
|
-
};
|
|
443
|
-
function rr(e, r, t, n, u) {
|
|
444
|
-
{
|
|
445
|
-
var s, o = {}, i = null, g = null;
|
|
446
|
-
t !== void 0 && (ge(t), i = "" + t), Xe(r) && (ge(r.key), i = "" + r.key), Ge(r) && (g = r.ref, He(r, u));
|
|
447
|
-
for (s in r)
|
|
448
|
-
$.call(r, s) && !Ke.hasOwnProperty(s) && (o[s] = r[s]);
|
|
449
|
-
if (e && e.defaultProps) {
|
|
450
|
-
var l = e.defaultProps;
|
|
451
|
-
for (s in l)
|
|
452
|
-
o[s] === void 0 && (o[s] = l[s]);
|
|
453
|
-
}
|
|
454
|
-
if (i || g) {
|
|
455
|
-
var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
i && Ze(o, c), g && Qe(o, c);
|
|
457
|
-
}
|
|
458
|
-
return er(e, i, g, u, n, he.current, o);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
var J = x.ReactCurrentOwner, ye = x.ReactDebugCurrentFrame;
|
|
462
|
-
function j(e) {
|
|
463
|
-
if (e) {
|
|
464
|
-
var r = e._owner, t = M(e.type, e._source, r ? r.type : null);
|
|
465
|
-
ye.setExtraStackFrame(t);
|
|
466
|
-
} else
|
|
467
|
-
ye.setExtraStackFrame(null);
|
|
468
|
-
}
|
|
469
|
-
var K;
|
|
470
|
-
K = !1;
|
|
471
|
-
function G(e) {
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof === E;
|
|
473
|
-
}
|
|
474
|
-
function Ee() {
|
|
475
|
-
{
|
|
476
|
-
if (J.current) {
|
|
477
|
-
var e = C(J.current.type);
|
|
478
|
-
if (e)
|
|
479
|
-
return `
|
|
480
|
-
|
|
481
|
-
Check the render method of \`` + e + "`.";
|
|
482
|
-
}
|
|
483
|
-
return "";
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
function tr(e) {
|
|
487
|
-
return "";
|
|
488
|
-
}
|
|
489
|
-
var Re = {};
|
|
490
|
-
function nr(e) {
|
|
491
|
-
{
|
|
492
|
-
var r = Ee();
|
|
493
|
-
if (!r) {
|
|
494
|
-
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
|
-
t && (r = `
|
|
496
|
-
|
|
497
|
-
Check the top-level render call using <` + t + ">.");
|
|
498
|
-
}
|
|
499
|
-
return r;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
function _e(e, r) {
|
|
503
|
-
{
|
|
504
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
505
|
-
return;
|
|
506
|
-
e._store.validated = !0;
|
|
507
|
-
var t = nr(r);
|
|
508
|
-
if (Re[t])
|
|
509
|
-
return;
|
|
510
|
-
Re[t] = !0;
|
|
511
|
-
var n = "";
|
|
512
|
-
e && e._owner && e._owner !== J.current && (n = " It was passed a child from " + C(e._owner.type) + "."), j(e), p('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), j(null);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
function Te(e, r) {
|
|
516
|
-
{
|
|
517
|
-
if (typeof e != "object")
|
|
518
|
-
return;
|
|
519
|
-
if (q(e))
|
|
520
|
-
for (var t = 0; t < e.length; t++) {
|
|
521
|
-
var n = e[t];
|
|
522
|
-
G(n) && _e(n, r);
|
|
523
|
-
}
|
|
524
|
-
else if (G(e))
|
|
525
|
-
e._store && (e._store.validated = !0);
|
|
526
|
-
else if (e) {
|
|
527
|
-
var u = xe(e);
|
|
528
|
-
if (typeof u == "function" && u !== e.entries)
|
|
529
|
-
for (var s = u.call(e), o; !(o = s.next()).done; )
|
|
530
|
-
G(o.value) && _e(o.value, r);
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
function ar(e) {
|
|
535
|
-
{
|
|
536
|
-
var r = e.type;
|
|
537
|
-
if (r == null || typeof r == "string")
|
|
538
|
-
return;
|
|
539
|
-
var t;
|
|
540
|
-
if (typeof r == "function")
|
|
541
|
-
t = r.propTypes;
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here.
|
|
543
|
-
// Inner props are checked in the reconciler.
|
|
544
|
-
r.$$typeof === T))
|
|
545
|
-
t = r.propTypes;
|
|
546
|
-
else
|
|
547
|
-
return;
|
|
548
|
-
if (t) {
|
|
549
|
-
var n = C(r);
|
|
550
|
-
Be(t, e.props, "prop", n, e);
|
|
551
|
-
} else if (r.PropTypes !== void 0 && !K) {
|
|
552
|
-
K = !0;
|
|
553
|
-
var u = C(r);
|
|
554
|
-
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
|
|
555
|
-
}
|
|
556
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
function ir(e) {
|
|
560
|
-
{
|
|
561
|
-
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
562
|
-
var n = r[t];
|
|
563
|
-
if (n !== "children" && n !== "key") {
|
|
564
|
-
j(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), j(null);
|
|
565
|
-
break;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
e.ref !== null && (j(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), j(null));
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
var Ce = {};
|
|
572
|
-
function Se(e, r, t, n, u, s) {
|
|
573
|
-
{
|
|
574
|
-
var o = We(e);
|
|
575
|
-
if (!o) {
|
|
576
|
-
var i = "";
|
|
577
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " 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 g = tr();
|
|
579
|
-
g ? i += g : i += Ee();
|
|
580
|
-
var l;
|
|
581
|
-
e === null ? l = "null" : q(e) ? l = "array" : e !== void 0 && e.$$typeof === E ? (l = "<" + (C(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, i);
|
|
582
|
-
}
|
|
583
|
-
var c = rr(e, r, t, u, s);
|
|
584
|
-
if (c == null)
|
|
585
|
-
return c;
|
|
586
|
-
if (o) {
|
|
587
|
-
var R = r.children;
|
|
588
|
-
if (R !== void 0)
|
|
589
|
-
if (n)
|
|
590
|
-
if (q(R)) {
|
|
591
|
-
for (var D = 0; D < R.length; D++)
|
|
592
|
-
Te(R[D], e);
|
|
593
|
-
Object.freeze && Object.freeze(R);
|
|
594
|
-
} else
|
|
595
|
-
p("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
|
-
else
|
|
597
|
-
Te(R, e);
|
|
598
|
-
}
|
|
599
|
-
if ($.call(r, "key")) {
|
|
600
|
-
var k = C(e), b = Object.keys(r).filter(function(fr) {
|
|
601
|
-
return fr !== "key";
|
|
602
|
-
}), X = b.length > 0 ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
-
if (!Ce[k + X]) {
|
|
604
|
-
var cr = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
-
p(`A props object containing a "key" prop is being spread into JSX:
|
|
606
|
-
let props = %s;
|
|
607
|
-
<%s {...props} />
|
|
608
|
-
React keys must be passed directly to JSX without using spread:
|
|
609
|
-
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`, X, k, cr, k), Ce[k + X] = !0;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
return e === f ? ir(c) : ar(c), c;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
function or(e, r, t) {
|
|
617
|
-
return Se(e, r, t, !0);
|
|
618
|
-
}
|
|
619
|
-
function ur(e, r, t) {
|
|
620
|
-
return Se(e, r, t, !1);
|
|
621
|
-
}
|
|
622
|
-
var sr = ur, lr = or;
|
|
623
|
-
W.Fragment = f, W.jsx = sr, W.jsxs = lr;
|
|
624
|
-
}()), W;
|
|
625
|
-
}
|
|
626
|
-
process.env.NODE_ENV === "production" ? Q.exports = dr() : Q.exports = vr();
|
|
627
|
-
var H = Q.exports;
|
|
628
|
-
const ke = {
|
|
629
|
-
text: "#ccc",
|
|
630
|
-
box: "#e0e0e0"
|
|
631
|
-
}, Z = /* @__PURE__ */ new Map();
|
|
632
|
-
function pr(h) {
|
|
633
|
-
if (typeof document > "u") return {};
|
|
634
|
-
const E = typeof h.type == "string" ? h.type : "div", d = `${E}-${h.props.id || ""}-${h.props.className || ""}`;
|
|
635
|
-
if (Z.has(d)) return Z.get(d);
|
|
636
|
-
const f = document.createElement(E);
|
|
637
|
-
h.props.className && (f.className = h.props.className), h.props.id && (f.id = h.props.id), document.body.appendChild(f);
|
|
638
|
-
const a = window.getComputedStyle(f), _ = {
|
|
639
|
-
height: a.height,
|
|
640
|
-
width: a.width,
|
|
641
|
-
fontSize: a.fontSize,
|
|
642
|
-
margin: a.margin,
|
|
643
|
-
padding: a.padding,
|
|
644
|
-
borderRadius: a.borderRadius
|
|
645
|
-
};
|
|
646
|
-
return document.body.removeChild(f), Z.set(d, _), _;
|
|
647
|
-
}
|
|
648
|
-
function hr({ children: h }) {
|
|
649
|
-
function E(d) {
|
|
650
|
-
if (!F.isValidElement(d)) return d;
|
|
651
|
-
const f = { ...d.props }, a = { ...f.style };
|
|
652
|
-
if (f.skeletonrequired === !0) {
|
|
653
|
-
const _ = typeof d.type == "string" ? d.type : "div", S = ["p", "span", "h1", "h2", "h3", "h4", "h5", "h6"].includes(_), m = pr(d);
|
|
654
|
-
a.height || (a.height = m.height || "1em"), a.width || (a.width = m.width || "100%"), a.fontSize || (a.fontSize = m.fontSize), a.margin || (a.margin = m.margin || "0"), a.padding || (a.padding = m.padding || "0"), a.borderRadius || (a.borderRadius = m.borderRadius || "4px"), a.backgroundColor = S ? ke.text : ke.box, a.color = "transparent", a.backgroundImage = `linear-gradient(90deg, ${a.backgroundColor}, #f5f5f5, ${a.backgroundColor})`, a.backgroundSize = "200% 100%", a.animation = "skeleton-shimmer 1.4s infinite", delete f.skeletonrequired, f.style = a;
|
|
655
|
-
}
|
|
656
|
-
return typeof d.type == "function" ? E(d.type(f)) : F.cloneElement(
|
|
657
|
-
d,
|
|
658
|
-
f,
|
|
659
|
-
F.Children.map(d.props.children, E)
|
|
660
|
-
);
|
|
661
|
-
}
|
|
662
|
-
return /* @__PURE__ */ H.jsxs(H.Fragment, { children: [
|
|
663
|
-
/* @__PURE__ */ H.jsx("style", { children: `
|
|
664
|
-
@keyframes skeleton-shimmer {
|
|
665
|
-
0% { background-position: -200% 0; }
|
|
666
|
-
100% { background-position: 200% 0; }
|
|
667
|
-
}
|
|
668
|
-
` }),
|
|
669
|
-
F.Children.map(h, E)
|
|
670
|
-
] });
|
|
671
|
-
}
|
|
672
|
-
export {
|
|
673
|
-
hr as SkeletonBlock,
|
|
674
|
-
hr as default
|
|
675
|
-
};
|