skeleton-ghost-loader 2.0.8 → 2.1.0

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