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.
@@ -1,4 +1,5 @@
1
- import D from "react";
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 dr() {
14
+ function vr() {
14
15
  if (Oe) return I;
15
16
  Oe = 1;
16
- var p = D, E = 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 };
17
- function T(g, c, S) {
18
- var h, w = {}, O = null, Y = null;
19
- S !== void 0 && (O = "" + S), c.key !== void 0 && (O = "" + c.key), c.ref !== void 0 && (Y = c.ref);
20
- for (h in c) l.call(c, h) && !s.hasOwnProperty(h) && (w[h] = c[h]);
21
- if (g && g.defaultProps) for (h in c = g.defaultProps, c) w[h] === void 0 && (w[h] = c[h]);
22
- return { $$typeof: E, type: g, key: O, ref: Y, props: w, _owner: f.current };
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 W = {};
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 vr() {
38
+ function pr() {
38
39
  return xe || (xe = 1, process.env.NODE_ENV !== "production" && function() {
39
- var p = D, E = 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"), g = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), re = Symbol.iterator, Pe = "@@iterator";
40
- function ke(e) {
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[Pe];
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
- je("error", e, t);
52
+ Fe("error", e, t);
52
53
  }
53
54
  }
54
- function je(e, r, t) {
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 Fe = !1, De = !1, Ae = !1, $e = !1, Ie = !1, te;
65
+ var De = !1, Ae = !1, Ie = !1, $e = !1, We = !1, te;
65
66
  te = Symbol.for("react.module.reference");
66
- function We(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === l || e === s || Ie || e === f || e === S || e === h || $e || e === Y || Fe || De || Ae || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === w || e.$$typeof === T || e.$$typeof === g || e.$$typeof === c || // This needs to include all possible module reference object
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 Ye(e, r, t) {
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 h:
102
+ case g:
102
103
  return "SuspenseList";
103
104
  }
104
105
  if (typeof e == "object")
105
106
  switch (e.$$typeof) {
106
- case g:
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 c:
113
- return Ye(e, e.render, "ForwardRef");
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, A = 0, ae, ie, oe, se, ue, le, fe;
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 Ne() {
133
+ function Ve() {
133
134
  {
134
- if (A === 0) {
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
- A++;
153
+ D++;
153
154
  }
154
155
  }
155
- function Ve() {
156
+ function Le() {
156
157
  {
157
- if (A--, A === 0) {
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
- A < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
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 N(e, r, t) {
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, V;
205
+ var q = !1, N;
205
206
  {
206
- var Le = typeof WeakMap == "function" ? WeakMap : Map;
207
- V = new Le();
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 = V.get(e);
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, Ne();
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
- `), d = a.length - 1, v = m.length - 1; d >= 1 && v >= 0 && a[d] !== m[v]; )
260
- v--;
261
- for (; d >= 1 && v >= 0; d--, v--)
262
- if (a[d] !== m[v]) {
263
- if (d !== 1 || v !== 1)
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 (d--, v--, v < 0 || a[d] !== m[v]) {
266
- var R = `
267
- ` + a[d].replace(" at new ", " at ");
268
- return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, R), R;
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 (d >= 1 && v >= 0);
271
+ while (c >= 1 && d >= 0);
271
272
  break;
272
273
  }
273
274
  }
274
275
  } finally {
275
- q = !1, z.current = u, Ve(), Error.prepareStackTrace = o;
276
+ q = !1, z.current = u, Le(), Error.prepareStackTrace = o;
276
277
  }
277
- var F = e ? e.displayName || e.name : "", P = F ? N(F) : "";
278
- return typeof e == "function" && V.set(e, P), P;
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 Me(e, r, t) {
281
+ function Ue(e, r, t) {
281
282
  return de(e, !1);
282
283
  }
283
- function Ue(e) {
284
+ function ze(e) {
284
285
  var r = e.prototype;
285
286
  return !!(r && r.isReactComponent);
286
287
  }
287
- function L(e, r, t) {
288
+ function V(e, r, t) {
288
289
  if (e == null)
289
290
  return "";
290
291
  if (typeof e == "function")
291
- return de(e, Ue(e));
292
+ return de(e, ze(e));
292
293
  if (typeof e == "string")
293
- return N(e);
294
+ return Y(e);
294
295
  switch (e) {
295
296
  case S:
296
- return N("Suspense");
297
- case h:
298
- return N("SuspenseList");
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 c:
303
- return Me(e.render);
303
+ case v:
304
+ return Ue(e.render);
304
305
  case w:
305
- return L(e.type, r, t);
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 L(u(o), r, t);
310
+ return V(u(o), r, t);
310
311
  } catch {
311
312
  }
312
313
  }
313
314
  }
314
315
  return "";
315
316
  }
316
- var $ = Object.prototype.hasOwnProperty, ve = {}, pe = k.ReactDebugCurrentFrame;
317
- function M(e) {
317
+ var A = Object.prototype.hasOwnProperty, ve = {}, pe = k.ReactDebugCurrentFrame;
318
+ function L(e) {
318
319
  if (e) {
319
- var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
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 ze(e, r, t, n, o) {
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 (d) {
337
- a = d;
337
+ } catch (c) {
338
+ a = c;
338
339
  }
339
- a && !(a instanceof Error) && (M(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), M(null)), a instanceof Error && !(a.message in ve) && (ve[a.message] = !0, M(o), y("Failed %s type: %s", t, a.message), M(null));
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 Be = Array.isArray;
344
+ var qe = Array.isArray;
344
345
  function J(e) {
345
- return Be(e);
346
+ return qe(e);
346
347
  }
347
- function qe(e) {
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 Je(e) {
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 (Je(e))
365
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), he(e);
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, Ke = {
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 Ge(e) {
374
- if ($.call(e, "ref")) {
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 Xe(e) {
382
- if ($.call(e, "key")) {
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 He(e, r) {
390
+ function Ze(e, r) {
390
391
  typeof e.ref == "string" && ye.current;
391
392
  }
392
- function Ze(e, r) {
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 Qe(e, r) {
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 er = function(e, r, t, n, o, u, i) {
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: E,
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 rr(e, r, t, n, o) {
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), Xe(r) && (ge(r.key), a = "" + r.key), Ge(r) && (m = r.ref, He(r, o));
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
- $.call(r, u) && !Ke.hasOwnProperty(u) && (i[u] = r[u]);
449
+ A.call(r, u) && !Ge.hasOwnProperty(u) && (i[u] = r[u]);
449
450
  if (e && e.defaultProps) {
450
- var d = e.defaultProps;
451
- for (u in d)
452
- i[u] === void 0 && (i[u] = d[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 v = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
- a && Ze(i, v), m && Qe(i, v);
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 er(e, a, m, o, n, ye.current, i);
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 = L(e.type, e._source, r ? r.type : null);
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 === E;
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 tr(e) {
487
+ function nr(e) {
487
488
  return "";
488
489
  }
489
490
  var _e = {};
490
- function nr(e) {
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 = nr(r);
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 = ke(e);
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 ar(e) {
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 === c || // Note: Memo only checks outer props here.
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
- ze(t, e.props, "prop", n, e);
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 ir(e) {
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 = We(e);
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 = tr();
579
+ var m = nr();
579
580
  m ? a += m : a += Re();
580
- var d;
581
- e === null ? d = "null" : J(e) ? d = "array" : e !== void 0 && e.$$typeof === E ? (d = "<" + (C(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : d = 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", d, a);
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 v = rr(e, r, t, o, u);
584
- if (v == null)
585
- return v;
584
+ var d = tr(e, r, t, o, u);
585
+ if (d == null)
586
+ return d;
586
587
  if (i) {
587
- var R = r.children;
588
- if (R !== void 0)
588
+ var E = r.children;
589
+ if (E !== void 0)
589
590
  if (n)
590
- if (J(R)) {
591
- for (var F = 0; F < R.length; F++)
592
- Se(R[F], e);
593
- Object.freeze && Object.freeze(R);
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(R, e);
598
+ Se(E, e);
598
599
  }
599
- if ($.call(r, "key")) {
600
- var P = C(e), b = Object.keys(r).filter(function(cr) {
601
- return cr !== "key";
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 fr = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}";
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, fr, P), we[P + H] = !0;
611
+ <%s key={someKey} {...props} />`, H, P, cr, P), we[P + H] = !0;
611
612
  }
612
613
  }
613
- return e === l ? ir(v) : ar(v), v;
614
+ return e === l ? or(d) : ir(d), d;
614
615
  }
615
616
  }
616
- function or(e, r, t) {
617
+ function sr(e, r, t) {
617
618
  return Ce(e, r, t, !0);
618
619
  }
619
- function sr(e, r, t) {
620
+ function ur(e, r, t) {
620
621
  return Ce(e, r, t, !1);
621
622
  }
622
- var ur = sr, lr = or;
623
- W.Fragment = l, W.jsx = ur, W.jsxs = lr;
624
- }()), W;
623
+ var lr = ur, fr = sr;
624
+ $.Fragment = l, $.jsx = lr, $.jsxs = fr;
625
+ }()), $;
625
626
  }
626
- process.env.NODE_ENV === "production" ? ee.exports = dr() : ee.exports = vr();
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 pr(p) {
633
+ function hr(p) {
635
634
  if (typeof document > "u") return {};
636
- const E = typeof p.type == "string" ? p.type : "div", _ = `${E}-${p.props.id || ""}-${p.props.className || ""}`;
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(E);
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, g]) => {
640
- l.style[T] = g;
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 || "0px"
647
+ borderRadius: f.borderRadius || "4px"
649
648
  };
650
649
  return document.body.removeChild(l), Q[_] = s, s;
651
650
  }
652
- const gr = ({ children: p }) => {
653
- function E(l) {
654
- if (!D.isValidElement(l)) return l;
655
- let f = { ...l.props }, s = { ...f.style };
656
- if (f.skeletonrequired === "y") {
657
- const g = typeof l.type == "string" ? l.type : "div", c = pr(l);
658
- s.height = s.height || f.height || c.height || "20px", s.width = s.width || f.width || c.width || "100%", s.fontSize = s.fontSize || f.fontSize || c.fontSize || "16px", s.margin = s.margin || f.margin || c.margin || "0", s.padding = s.padding || f.padding || c.padding || "0", s.borderRadius = s.borderRadius || c.borderRadius || "4px";
659
- const S = ["p", "span", "h1", "h2", "h3", "h4", "h5", "h6"].includes(g);
660
- s.backgroundColor = S ? U.text : U.box, s.color = "transparent", s.position = "relative", s.overflow = "hidden";
661
- const h = S ? U.text : U.box;
662
- s.backgroundImage = `linear-gradient(90deg, ${h} 0%, #f5f5f5 50%, ${h} 100%)`, s.backgroundSize = "200% 100%", s.animation = "shimmer 1.5s infinite", delete f.skeletonrequired, f.style = s;
663
- }
664
- if (typeof l.type == "function") {
665
- const g = l.type(f);
666
- return E(g);
667
- }
668
- const T = D.Children.map(
669
- l.props.children,
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 _ = D.Children.map(p, E);
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
- gr as SkeletonBlock,
687
- gr as default
682
+ yr as SkeletonBlock,
683
+ yr as default
688
684
  };
@@ -1,4 +1,4 @@
1
- (function(O,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],R):(O=typeof globalThis<"u"?globalThis:O||self,R(O.SkeletonGhostLoader={},O.React))})(this,function(O,R){"use strict";var z={exports:{}},$={};/**
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 te;function je(){if(te)return $;te=1;var p=R,E=Symbol.for("react.element"),S=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,f=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function T(g,c,w){var h,C={},P=null,L=null;w!==void 0&&(P=""+w),c.key!==void 0&&(P=""+c.key),c.ref!==void 0&&(L=c.ref);for(h in c)l.call(c,h)&&!u.hasOwnProperty(h)&&(C[h]=c[h]);if(g&&g.defaultProps)for(h in c=g.defaultProps,c)C[h]===void 0&&(C[h]=c[h]);return{$$typeof:E,type:g,key:P,ref:L,props:C,_owner:f.current}}return $.Fragment=S,$.jsx=T,$.jsxs=T,$}var I={};/**
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 ne;function Fe(){return ne||(ne=1,process.env.NODE_ENV!=="production"&&function(){var p=R,E=Symbol.for("react.element"),S=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),g=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),ie=Symbol.iterator,Ae="@@iterator";function $e(e){if(e===null||typeof e!="object")return null;var r=ie&&e[ie]||e[Ae];return typeof r=="function"?r:null}var F=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ie("error",e,t)}}function Ie(e,r,t){{var n=F.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var s=t.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var We=!1,Ye=!1,Ne=!1,Le=!1,Me=!1,oe;oe=Symbol.for("react.module.reference");function Ve(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===u||Me||e===f||e===w||e===h||Le||e===L||We||Ye||Ne||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===C||e.$$typeof===T||e.$$typeof===g||e.$$typeof===c||e.$$typeof===oe||e.getModuleId!==void 0))}function Ue(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function ue(e){return e.displayName||"Context"}function x(e){if(e==null)return null;if(typeof e.tag=="number"&&y("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 l:return"Fragment";case S:return"Portal";case u:return"Profiler";case f:return"StrictMode";case w:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g:var r=e;return ue(r)+".Consumer";case T:var t=e;return ue(t._context)+".Provider";case c:return Ue(e,e.render,"ForwardRef");case C:var n=e.displayName||null;return n!==null?n:x(e.type)||"Memo";case P:{var o=e,s=o._payload,i=o._init;try{return x(i(s))}catch{return null}}}return null}var k=Object.assign,W=0,se,le,fe,ce,de,ve,pe;function he(){}he.__reactDisabledLog=!0;function Be(){{if(W===0){se=console.log,le=console.info,fe=console.warn,ce=console.error,de=console.group,ve=console.groupCollapsed,pe=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 ze(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:se}),info:k({},e,{value:le}),warn:k({},e,{value:fe}),error:k({},e,{value:ce}),group:k({},e,{value:de}),groupCollapsed:k({},e,{value:ve}),groupEnd:k({},e,{value:pe})})}W<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=F.ReactCurrentDispatcher,G;function M(e,r,t){{if(G===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);G=n&&n[1]||""}return`
18
- `+G+e}}var X=!1,V;{var qe=typeof WeakMap=="function"?WeakMap:Map;V=new qe}function ge(e,r){if(!e||X)return"";{var t=V.get(e);if(t!==void 0)return t}var n;X=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=K.current,K.current=null,Be();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(b){n=b}Reflect.construct(e,[],i)}else{try{i.call()}catch(b){n=b}e.call(i.prototype)}}else{try{throw Error()}catch(b){n=b}e()}}catch(b){if(b&&n&&typeof b.stack=="string"){for(var a=b.stack.split(`
19
- `),m=n.stack.split(`
20
- `),d=a.length-1,v=m.length-1;d>=1&&v>=0&&a[d]!==m[v];)v--;for(;d>=1&&v>=0;d--,v--)if(a[d]!==m[v]){if(d!==1||v!==1)do if(d--,v--,v<0||a[d]!==m[v]){var _=`
21
- `+a[d].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,_),_}while(d>=1&&v>=0);break}}}finally{X=!1,K.current=s,ze(),Error.prepareStackTrace=o}var A=e?e.displayName||e.name:"",j=A?M(A):"";return typeof e=="function"&&V.set(e,j),j}function Je(e,r,t){return ge(e,!1)}function Ke(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return ge(e,Ke(e));if(typeof e=="string")return M(e);switch(e){case w:return M("Suspense");case h:return M("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Je(e.render);case C:return U(e.type,r,t);case P:{var n=e,o=n._payload,s=n._init;try{return U(s(o),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,ye={},me=F.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);me.setExtraStackFrame(t)}else me.setExtraStackFrame(null)}function Ge(e,r,t,n,o){{var s=Function.call.bind(Y);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var m=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 m.name="Invariant Violation",m}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),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),B(null)),a instanceof Error&&!(a.message in ye)&&(ye[a.message]=!0,B(o),y("Failed %s type: %s",t,a.message),B(null))}}}var Xe=Array.isArray;function H(e){return Xe(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ze(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function Ee(e){if(Ze(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),be(e)}var _e=F.ReactCurrentOwner,Qe={key:!0,ref:!0,__self:!0,__source:!0},Re,Se;function er(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 rr(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 tr(e,r){typeof e.ref=="string"&&_e.current}function nr(e,r){{var t=function(){Re||(Re=!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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ar(e,r){{var t=function(){Se||(Se=!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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ir=function(e,r,t,n,o,s,i){var a={$$typeof:E,type:e,key:r,ref:t,props:i,_owner:s};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 or(e,r,t,n,o){{var s,i={},a=null,m=null;t!==void 0&&(Ee(t),a=""+t),rr(r)&&(Ee(r.key),a=""+r.key),er(r)&&(m=r.ref,tr(r,o));for(s in r)Y.call(r,s)&&!Qe.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var d=e.defaultProps;for(s in d)i[s]===void 0&&(i[s]=d[s])}if(a||m){var v=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&nr(i,v),m&&ar(i,v)}return ir(e,a,m,o,n,_e.current,i)}}var Z=F.ReactCurrentOwner,Te=F.ReactDebugCurrentFrame;function D(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===E}function we(){{if(Z.current){var e=x(Z.current.type);if(e)return`
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 ur(e){return""}var Ce={};function sr(e){{var r=we();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
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 Oe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=sr(r);if(Ce[t])return;Ce[t]=!0;var n="";e&&e._owner&&e._owner!==Z.current&&(n=" It was passed a child from "+x(e._owner.type)+"."),D(e),y('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),D(null)}}function xe(e,r){{if(typeof e!="object")return;if(H(e))for(var t=0;t<e.length;t++){var n=e[t];ee(n)&&Oe(n,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=$e(e);if(typeof o=="function"&&o!==e.entries)for(var s=o.call(e),i;!(i=s.next()).done;)ee(i.value)&&Oe(i.value,r)}}}function lr(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===c||r.$$typeof===C))t=r.propTypes;else return;if(t){var n=x(r);Ge(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var o=x(r);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){D(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),D(null);break}}e.ref!==null&&(D(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}var Pe={};function ke(e,r,t,n,o,s){{var i=Ve(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 m=ur();m?a+=m:a+=we();var d;e===null?d="null":H(e)?d="array":e!==void 0&&e.$$typeof===E?(d="<"+(x(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):d=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",d,a)}var v=or(e,r,t,o,s);if(v==null)return v;if(i){var _=r.children;if(_!==void 0)if(n)if(H(_)){for(var A=0;A<_.length;A++)xe(_[A],e);Object.freeze&&Object.freeze(_)}else 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.");else xe(_,e)}if(Y.call(r,"key")){var j=x(e),b=Object.keys(r).filter(function(gr){return gr!=="key"}),re=b.length>0?"{key: someKey, "+b.join(": ..., ")+": ...}":"{key: someKey}";if(!Pe[j+re]){var hr=b.length>0?"{"+b.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
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} />`,re,j,hr,j),Pe[j+re]=!0}}return e===l?fr(v):lr(v),v}}function cr(e,r,t){return ke(e,r,t,!0)}function dr(e,r,t){return ke(e,r,t,!1)}var vr=dr,pr=cr;I.Fragment=l,I.jsx=vr,I.jsxs=pr}()),I}process.env.NODE_ENV==="production"?z.exports=je():z.exports=Fe();var q=z.exports;const N={text:"#ccc",box:"#e0e0e0"},J={};function De(p){if(typeof document>"u")return{};const E=typeof p.type=="string"?p.type:"div",S=`${E}-${p.props.id||""}-${p.props.className||""}`;if(J[S])return J[S];const l=document.createElement(E);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,g])=>{l.style[T]=g}),l.style.display="none",document.body.appendChild(l);const f=window.getComputedStyle(l),u={height:f.height||void 0,width:f.width||"100%",fontSize:f.fontSize||void 0,margin:f.margin||"0",padding:f.padding||"0",borderRadius:f.borderRadius||"0px"};return document.body.removeChild(l),J[S]=u,u}const ae=({children:p})=>{function E(l){if(!R.isValidElement(l))return l;let f={...l.props},u={...f.style};if(f.skeletonrequired==="y"){const g=typeof l.type=="string"?l.type:"div",c=De(l);u.height=u.height||f.height||c.height||"20px",u.width=u.width||f.width||c.width||"100%",u.fontSize=u.fontSize||f.fontSize||c.fontSize||"16px",u.margin=u.margin||f.margin||c.margin||"0",u.padding=u.padding||f.padding||c.padding||"0",u.borderRadius=u.borderRadius||c.borderRadius||"4px";const w=["p","span","h1","h2","h3","h4","h5","h6"].includes(g);u.backgroundColor=w?N.text:N.box,u.color="transparent",u.position="relative",u.overflow="hidden";const h=w?N.text:N.box;u.backgroundImage=`linear-gradient(90deg, ${h} 0%, #f5f5f5 50%, ${h} 100%)`,u.backgroundSize="200% 100%",u.animation="shimmer 1.5s infinite",delete f.skeletonrequired,f.style=u}if(typeof l.type=="function"){const g=l.type(f);return E(g)}const T=R.Children.map(l.props.children,g=>E(g));return R.cloneElement(l,f,T)}const S=R.Children.map(p,E);return q.jsxs(q.Fragment,{children:[q.jsx("style",{children:`
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
- `}),S]})};O.SkeletonBlock=ae,O.default=ae,Object.defineProperties(O,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
35
+ `}),E]})};w.SkeletonBlock=ie,w.default=ie,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skeleton-ghost-loader",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Smart skeleton loader that auto-detects styles (inline, class, Tailwind, browser defaults)",
5
5
  "author": "Shubh Patil",
6
6
  "license": "MIT",