skeleton-ghost-loader 2.6.0 → 2.6.2

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,6 +1,7 @@
1
- import * as M from "react";
2
- import Pe from "react";
3
- var ee = { exports: {} }, I = {};
1
+ import * as React from "react";
2
+ import React__default from "react";
3
+ var jsxRuntime = { exports: {} };
4
+ var reactJsxRuntime_production_min = {};
4
5
  /**
5
6
  * @license React
6
7
  * react-jsx-runtime.production.min.js
@@ -10,21 +11,26 @@ var ee = { exports: {} }, I = {};
10
11
  * This source code is licensed under the MIT license found in the
11
12
  * LICENSE file in the root directory of this source tree.
12
13
  */
13
- var Oe;
14
- function vr() {
15
- if (Oe) return I;
16
- Oe = 1;
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 };
14
+ var hasRequiredReactJsxRuntime_production_min;
15
+ function requireReactJsxRuntime_production_min() {
16
+ if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
17
+ hasRequiredReactJsxRuntime_production_min = 1;
18
+ var f = React__default, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: true, ref: true, __self: true, __source: true };
19
+ function q(c, a, g) {
20
+ var b, d = {}, e = null, h = null;
21
+ void 0 !== g && (e = "" + g);
22
+ void 0 !== a.key && (e = "" + a.key);
23
+ void 0 !== a.ref && (h = a.ref);
24
+ for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
25
+ if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
26
+ return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
24
27
  }
25
- return I.Fragment = _, I.jsx = T, I.jsxs = T, I;
28
+ reactJsxRuntime_production_min.Fragment = l;
29
+ reactJsxRuntime_production_min.jsx = q;
30
+ reactJsxRuntime_production_min.jsxs = q;
31
+ return reactJsxRuntime_production_min;
26
32
  }
27
- var $ = {};
33
+ var reactJsxRuntime_development = {};
28
34
  /**
29
35
  * @license React
30
36
  * react-jsx-runtime.development.js
@@ -34,651 +40,965 @@ var $ = {};
34
40
  * This source code is licensed under the MIT license found in the
35
41
  * LICENSE file in the root directory of this source tree.
36
42
  */
37
- var xe;
38
- function pr() {
39
- return xe || (xe = 1, process.env.NODE_ENV !== "production" && function() {
40
- var p = Pe, R = Symbol.for("react.element"), _ = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), h = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), re = Symbol.iterator, ke = "@@iterator";
41
- function je(e) {
42
- if (e === null || typeof e != "object")
43
+ var hasRequiredReactJsxRuntime_development;
44
+ function requireReactJsxRuntime_development() {
45
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
46
+ hasRequiredReactJsxRuntime_development = 1;
47
+ if (process.env.NODE_ENV !== "production") {
48
+ (function() {
49
+ var React2 = React__default;
50
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
51
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
52
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
53
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
54
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
55
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
56
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
57
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
58
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
59
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
60
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
61
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
62
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
63
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
64
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
65
+ function getIteratorFn(maybeIterable) {
66
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
67
+ return null;
68
+ }
69
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
70
+ if (typeof maybeIterator === "function") {
71
+ return maybeIterator;
72
+ }
43
73
  return null;
44
- var r = re && e[re] || e[ke];
45
- return typeof r == "function" ? r : null;
46
- }
47
- var k = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
48
- function y(e) {
49
- {
50
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
51
- t[n - 1] = arguments[n];
52
- Fe("error", e, t);
53
74
  }
54
- }
55
- function Fe(e, r, t) {
56
- {
57
- var n = k.ReactDebugCurrentFrame, o = n.getStackAddendum();
58
- o !== "" && (r += "%s", t = t.concat([o]));
59
- var u = t.map(function(i) {
60
- return String(i);
61
- });
62
- u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
63
- }
64
- }
65
- var De = !1, Ae = !1, Ie = !1, $e = !1, We = !1, te;
66
- te = Symbol.for("react.module.reference");
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
69
- // types supported by any Flight configuration anywhere since
70
- // we don't know which Flight build this will end up being used
71
- // with.
72
- e.$$typeof === te || e.getModuleId !== void 0));
73
- }
74
- function Ne(e, r, t) {
75
- var n = e.displayName;
76
- if (n)
77
- return n;
78
- var o = r.displayName || r.name || "";
79
- return o !== "" ? t + "(" + o + ")" : t;
80
- }
81
- function ne(e) {
82
- return e.displayName || "Context";
83
- }
84
- function C(e) {
85
- if (e == null)
86
- return null;
87
- 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")
88
- return e.displayName || e.name || null;
89
- if (typeof e == "string")
90
- return e;
91
- switch (e) {
92
- case l:
93
- return "Fragment";
94
- case _:
95
- return "Portal";
96
- case s:
97
- return "Profiler";
98
- case f:
99
- return "StrictMode";
100
- case S:
101
- return "Suspense";
102
- case g:
103
- return "SuspenseList";
104
- }
105
- if (typeof e == "object")
106
- switch (e.$$typeof) {
107
- case h:
108
- var r = e;
109
- return ne(r) + ".Consumer";
110
- case T:
111
- var t = e;
112
- return ne(t._context) + ".Provider";
113
- case v:
114
- return Ne(e, e.render, "ForwardRef");
115
- case w:
116
- var n = e.displayName || null;
117
- return n !== null ? n : C(e.type) || "Memo";
118
- case O: {
119
- var o = e, u = o._payload, i = o._init;
120
- try {
121
- return C(i(u));
122
- } catch {
123
- return null;
75
+ var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
76
+ function error(format) {
77
+ {
78
+ {
79
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
80
+ args[_key2 - 1] = arguments[_key2];
124
81
  }
82
+ printWarning("error", format, args);
125
83
  }
126
84
  }
127
- return null;
128
- }
129
- var x = Object.assign, D = 0, ae, ie, oe, se, ue, le, fe;
130
- function ce() {
131
- }
132
- ce.__reactDisabledLog = !0;
133
- function Ve() {
134
- {
135
- if (D === 0) {
136
- ae = console.log, ie = console.info, oe = console.warn, se = console.error, ue = console.group, le = console.groupCollapsed, fe = console.groupEnd;
137
- var e = {
138
- configurable: !0,
139
- enumerable: !0,
140
- value: ce,
141
- writable: !0
142
- };
143
- Object.defineProperties(console, {
144
- info: e,
145
- log: e,
146
- warn: e,
147
- error: e,
148
- group: e,
149
- groupCollapsed: e,
150
- groupEnd: e
85
+ }
86
+ function printWarning(level, format, args) {
87
+ {
88
+ var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
89
+ var stack = ReactDebugCurrentFrame2.getStackAddendum();
90
+ if (stack !== "") {
91
+ format += "%s";
92
+ args = args.concat([stack]);
93
+ }
94
+ var argsWithFormat = args.map(function(item) {
95
+ return String(item);
151
96
  });
97
+ argsWithFormat.unshift("Warning: " + format);
98
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
152
99
  }
153
- D++;
154
100
  }
155
- }
156
- function Le() {
101
+ var enableScopeAPI = false;
102
+ var enableCacheElement = false;
103
+ var enableTransitionTracing = false;
104
+ var enableLegacyHidden = false;
105
+ var enableDebugTracing = false;
106
+ var REACT_MODULE_REFERENCE;
157
107
  {
158
- if (D--, D === 0) {
159
- var e = {
160
- configurable: !0,
161
- enumerable: !0,
162
- writable: !0
163
- };
164
- Object.defineProperties(console, {
165
- log: x({}, e, {
166
- value: ae
167
- }),
168
- info: x({}, e, {
169
- value: ie
170
- }),
171
- warn: x({}, e, {
172
- value: oe
173
- }),
174
- error: x({}, e, {
175
- value: se
176
- }),
177
- group: x({}, e, {
178
- value: ue
179
- }),
180
- groupCollapsed: x({}, e, {
181
- value: le
182
- }),
183
- groupEnd: x({}, e, {
184
- value: fe
185
- })
186
- });
108
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
109
+ }
110
+ function isValidElementType(type) {
111
+ if (typeof type === "string" || typeof type === "function") {
112
+ return true;
113
+ }
114
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
115
+ return true;
187
116
  }
188
- D < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
117
+ if (typeof type === "object" && type !== null) {
118
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
119
+ // types supported by any Flight configuration anywhere since
120
+ // we don't know which Flight build this will end up being used
121
+ // with.
122
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
123
+ return true;
124
+ }
125
+ }
126
+ return false;
189
127
  }
190
- }
191
- var z = k.ReactCurrentDispatcher, B;
192
- function Y(e, r, t) {
193
- {
194
- if (B === void 0)
195
- try {
196
- throw Error();
197
- } catch (o) {
198
- var n = o.stack.trim().match(/\n( *(at )?)/);
199
- B = n && n[1] || "";
128
+ function getWrappedName(outerType, innerType, wrapperName) {
129
+ var displayName = outerType.displayName;
130
+ if (displayName) {
131
+ return displayName;
132
+ }
133
+ var functionName = innerType.displayName || innerType.name || "";
134
+ return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
135
+ }
136
+ function getContextName(type) {
137
+ return type.displayName || "Context";
138
+ }
139
+ function getComponentNameFromType(type) {
140
+ if (type == null) {
141
+ return null;
142
+ }
143
+ {
144
+ if (typeof type.tag === "number") {
145
+ error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
146
+ }
147
+ }
148
+ if (typeof type === "function") {
149
+ return type.displayName || type.name || null;
150
+ }
151
+ if (typeof type === "string") {
152
+ return type;
153
+ }
154
+ switch (type) {
155
+ case REACT_FRAGMENT_TYPE:
156
+ return "Fragment";
157
+ case REACT_PORTAL_TYPE:
158
+ return "Portal";
159
+ case REACT_PROFILER_TYPE:
160
+ return "Profiler";
161
+ case REACT_STRICT_MODE_TYPE:
162
+ return "StrictMode";
163
+ case REACT_SUSPENSE_TYPE:
164
+ return "Suspense";
165
+ case REACT_SUSPENSE_LIST_TYPE:
166
+ return "SuspenseList";
167
+ }
168
+ if (typeof type === "object") {
169
+ switch (type.$$typeof) {
170
+ case REACT_CONTEXT_TYPE:
171
+ var context = type;
172
+ return getContextName(context) + ".Consumer";
173
+ case REACT_PROVIDER_TYPE:
174
+ var provider = type;
175
+ return getContextName(provider._context) + ".Provider";
176
+ case REACT_FORWARD_REF_TYPE:
177
+ return getWrappedName(type, type.render, "ForwardRef");
178
+ case REACT_MEMO_TYPE:
179
+ var outerName = type.displayName || null;
180
+ if (outerName !== null) {
181
+ return outerName;
182
+ }
183
+ return getComponentNameFromType(type.type) || "Memo";
184
+ case REACT_LAZY_TYPE: {
185
+ var lazyComponent = type;
186
+ var payload = lazyComponent._payload;
187
+ var init = lazyComponent._init;
188
+ try {
189
+ return getComponentNameFromType(init(payload));
190
+ } catch (x) {
191
+ return null;
192
+ }
193
+ }
200
194
  }
201
- return `
202
- ` + B + e;
195
+ }
196
+ return null;
203
197
  }
204
- }
205
- var q = !1, N;
206
- {
207
- var Me = typeof WeakMap == "function" ? WeakMap : Map;
208
- N = new Me();
209
- }
210
- function de(e, r) {
211
- if (!e || q)
212
- return "";
213
- {
214
- var t = N.get(e);
215
- if (t !== void 0)
216
- return t;
217
- }
218
- var n;
219
- q = !0;
220
- var o = Error.prepareStackTrace;
221
- Error.prepareStackTrace = void 0;
222
- var u;
223
- u = z.current, z.current = null, Ve();
224
- try {
225
- if (r) {
226
- var i = function() {
227
- throw Error();
228
- };
229
- if (Object.defineProperty(i.prototype, "props", {
230
- set: function() {
198
+ var assign = Object.assign;
199
+ var disabledDepth = 0;
200
+ var prevLog;
201
+ var prevInfo;
202
+ var prevWarn;
203
+ var prevError;
204
+ var prevGroup;
205
+ var prevGroupCollapsed;
206
+ var prevGroupEnd;
207
+ function disabledLog() {
208
+ }
209
+ disabledLog.__reactDisabledLog = true;
210
+ function disableLogs() {
211
+ {
212
+ if (disabledDepth === 0) {
213
+ prevLog = console.log;
214
+ prevInfo = console.info;
215
+ prevWarn = console.warn;
216
+ prevError = console.error;
217
+ prevGroup = console.group;
218
+ prevGroupCollapsed = console.groupCollapsed;
219
+ prevGroupEnd = console.groupEnd;
220
+ var props = {
221
+ configurable: true,
222
+ enumerable: true,
223
+ value: disabledLog,
224
+ writable: true
225
+ };
226
+ Object.defineProperties(console, {
227
+ info: props,
228
+ log: props,
229
+ warn: props,
230
+ error: props,
231
+ group: props,
232
+ groupCollapsed: props,
233
+ groupEnd: props
234
+ });
235
+ }
236
+ disabledDepth++;
237
+ }
238
+ }
239
+ function reenableLogs() {
240
+ {
241
+ disabledDepth--;
242
+ if (disabledDepth === 0) {
243
+ var props = {
244
+ configurable: true,
245
+ enumerable: true,
246
+ writable: true
247
+ };
248
+ Object.defineProperties(console, {
249
+ log: assign({}, props, {
250
+ value: prevLog
251
+ }),
252
+ info: assign({}, props, {
253
+ value: prevInfo
254
+ }),
255
+ warn: assign({}, props, {
256
+ value: prevWarn
257
+ }),
258
+ error: assign({}, props, {
259
+ value: prevError
260
+ }),
261
+ group: assign({}, props, {
262
+ value: prevGroup
263
+ }),
264
+ groupCollapsed: assign({}, props, {
265
+ value: prevGroupCollapsed
266
+ }),
267
+ groupEnd: assign({}, props, {
268
+ value: prevGroupEnd
269
+ })
270
+ });
271
+ }
272
+ if (disabledDepth < 0) {
273
+ error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
274
+ }
275
+ }
276
+ }
277
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
278
+ var prefix;
279
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
280
+ {
281
+ if (prefix === void 0) {
282
+ try {
231
283
  throw Error();
284
+ } catch (x) {
285
+ var match = x.stack.trim().match(/\n( *(at )?)/);
286
+ prefix = match && match[1] || "";
232
287
  }
233
- }), typeof Reflect == "object" && Reflect.construct) {
234
- try {
235
- Reflect.construct(i, []);
236
- } catch (b) {
237
- n = b;
288
+ }
289
+ return "\n" + prefix + name;
290
+ }
291
+ }
292
+ var reentry = false;
293
+ var componentFrameCache;
294
+ {
295
+ var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
296
+ componentFrameCache = new PossiblyWeakMap();
297
+ }
298
+ function describeNativeComponentFrame(fn, construct) {
299
+ if (!fn || reentry) {
300
+ return "";
301
+ }
302
+ {
303
+ var frame = componentFrameCache.get(fn);
304
+ if (frame !== void 0) {
305
+ return frame;
306
+ }
307
+ }
308
+ var control;
309
+ reentry = true;
310
+ var previousPrepareStackTrace = Error.prepareStackTrace;
311
+ Error.prepareStackTrace = void 0;
312
+ var previousDispatcher;
313
+ {
314
+ previousDispatcher = ReactCurrentDispatcher.current;
315
+ ReactCurrentDispatcher.current = null;
316
+ disableLogs();
317
+ }
318
+ try {
319
+ if (construct) {
320
+ var Fake = function() {
321
+ throw Error();
322
+ };
323
+ Object.defineProperty(Fake.prototype, "props", {
324
+ set: function() {
325
+ throw Error();
326
+ }
327
+ });
328
+ if (typeof Reflect === "object" && Reflect.construct) {
329
+ try {
330
+ Reflect.construct(Fake, []);
331
+ } catch (x) {
332
+ control = x;
333
+ }
334
+ Reflect.construct(fn, [], Fake);
335
+ } else {
336
+ try {
337
+ Fake.call();
338
+ } catch (x) {
339
+ control = x;
340
+ }
341
+ fn.call(Fake.prototype);
238
342
  }
239
- Reflect.construct(e, [], i);
240
343
  } else {
241
344
  try {
242
- i.call();
243
- } catch (b) {
244
- n = b;
345
+ throw Error();
346
+ } catch (x) {
347
+ control = x;
245
348
  }
246
- e.call(i.prototype);
349
+ fn();
247
350
  }
248
- } else {
249
- try {
250
- throw Error();
251
- } catch (b) {
252
- n = b;
253
- }
254
- e();
255
- }
256
- } catch (b) {
257
- if (b && n && typeof b.stack == "string") {
258
- for (var a = b.stack.split(`
259
- `), m = n.stack.split(`
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)
265
- do
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;
270
- }
271
- while (c >= 1 && d >= 0);
272
- break;
351
+ } catch (sample) {
352
+ if (sample && control && typeof sample.stack === "string") {
353
+ var sampleLines = sample.stack.split("\n");
354
+ var controlLines = control.stack.split("\n");
355
+ var s = sampleLines.length - 1;
356
+ var c = controlLines.length - 1;
357
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
358
+ c--;
273
359
  }
360
+ for (; s >= 1 && c >= 0; s--, c--) {
361
+ if (sampleLines[s] !== controlLines[c]) {
362
+ if (s !== 1 || c !== 1) {
363
+ do {
364
+ s--;
365
+ c--;
366
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
367
+ var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
368
+ if (fn.displayName && _frame.includes("<anonymous>")) {
369
+ _frame = _frame.replace("<anonymous>", fn.displayName);
370
+ }
371
+ {
372
+ if (typeof fn === "function") {
373
+ componentFrameCache.set(fn, _frame);
374
+ }
375
+ }
376
+ return _frame;
377
+ }
378
+ } while (s >= 1 && c >= 0);
379
+ }
380
+ break;
381
+ }
382
+ }
383
+ }
384
+ } finally {
385
+ reentry = false;
386
+ {
387
+ ReactCurrentDispatcher.current = previousDispatcher;
388
+ reenableLogs();
389
+ }
390
+ Error.prepareStackTrace = previousPrepareStackTrace;
274
391
  }
275
- } finally {
276
- q = !1, z.current = u, Le(), Error.prepareStackTrace = o;
392
+ var name = fn ? fn.displayName || fn.name : "";
393
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
394
+ {
395
+ if (typeof fn === "function") {
396
+ componentFrameCache.set(fn, syntheticFrame);
397
+ }
398
+ }
399
+ return syntheticFrame;
277
400
  }
278
- var F = e ? e.displayName || e.name : "", P = F ? Y(F) : "";
279
- return typeof e == "function" && N.set(e, P), P;
280
- }
281
- function Ue(e, r, t) {
282
- return de(e, !1);
283
- }
284
- function ze(e) {
285
- var r = e.prototype;
286
- return !!(r && r.isReactComponent);
287
- }
288
- function V(e, r, t) {
289
- if (e == null)
290
- return "";
291
- if (typeof e == "function")
292
- return de(e, ze(e));
293
- if (typeof e == "string")
294
- return Y(e);
295
- switch (e) {
296
- case S:
297
- return Y("Suspense");
298
- case g:
299
- return Y("SuspenseList");
300
- }
301
- if (typeof e == "object")
302
- switch (e.$$typeof) {
303
- case v:
304
- return Ue(e.render);
305
- case w:
306
- return V(e.type, r, t);
307
- case O: {
308
- var n = e, o = n._payload, u = n._init;
309
- try {
310
- return V(u(o), r, t);
311
- } catch {
401
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
402
+ {
403
+ return describeNativeComponentFrame(fn, false);
404
+ }
405
+ }
406
+ function shouldConstruct(Component) {
407
+ var prototype = Component.prototype;
408
+ return !!(prototype && prototype.isReactComponent);
409
+ }
410
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
411
+ if (type == null) {
412
+ return "";
413
+ }
414
+ if (typeof type === "function") {
415
+ {
416
+ return describeNativeComponentFrame(type, shouldConstruct(type));
417
+ }
418
+ }
419
+ if (typeof type === "string") {
420
+ return describeBuiltInComponentFrame(type);
421
+ }
422
+ switch (type) {
423
+ case REACT_SUSPENSE_TYPE:
424
+ return describeBuiltInComponentFrame("Suspense");
425
+ case REACT_SUSPENSE_LIST_TYPE:
426
+ return describeBuiltInComponentFrame("SuspenseList");
427
+ }
428
+ if (typeof type === "object") {
429
+ switch (type.$$typeof) {
430
+ case REACT_FORWARD_REF_TYPE:
431
+ return describeFunctionComponentFrame(type.render);
432
+ case REACT_MEMO_TYPE:
433
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
434
+ case REACT_LAZY_TYPE: {
435
+ var lazyComponent = type;
436
+ var payload = lazyComponent._payload;
437
+ var init = lazyComponent._init;
438
+ try {
439
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
440
+ } catch (x) {
441
+ }
312
442
  }
313
443
  }
314
444
  }
315
- return "";
316
- }
317
- var A = Object.prototype.hasOwnProperty, ve = {}, pe = k.ReactDebugCurrentFrame;
318
- function L(e) {
319
- if (e) {
320
- var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
321
- pe.setExtraStackFrame(t);
322
- } else
323
- pe.setExtraStackFrame(null);
324
- }
325
- function Be(e, r, t, n, o) {
326
- {
327
- var u = Function.call.bind(A);
328
- for (var i in e)
329
- if (u(e, i)) {
330
- var a = void 0;
331
- try {
332
- if (typeof e[i] != "function") {
333
- 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`.");
334
- throw m.name = "Invariant Violation", m;
445
+ return "";
446
+ }
447
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
448
+ var loggedTypeFailures = {};
449
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
450
+ function setCurrentlyValidatingElement(element) {
451
+ {
452
+ if (element) {
453
+ var owner = element._owner;
454
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
455
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
456
+ } else {
457
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
458
+ }
459
+ }
460
+ }
461
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
462
+ {
463
+ var has = Function.call.bind(hasOwnProperty);
464
+ for (var typeSpecName in typeSpecs) {
465
+ if (has(typeSpecs, typeSpecName)) {
466
+ var error$1 = void 0;
467
+ try {
468
+ if (typeof typeSpecs[typeSpecName] !== "function") {
469
+ var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
470
+ err.name = "Invariant Violation";
471
+ throw err;
472
+ }
473
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
474
+ } catch (ex) {
475
+ error$1 = ex;
476
+ }
477
+ if (error$1 && !(error$1 instanceof Error)) {
478
+ setCurrentlyValidatingElement(element);
479
+ error("%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).", componentName || "React class", location, typeSpecName, typeof error$1);
480
+ setCurrentlyValidatingElement(null);
481
+ }
482
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
483
+ loggedTypeFailures[error$1.message] = true;
484
+ setCurrentlyValidatingElement(element);
485
+ error("Failed %s type: %s", location, error$1.message);
486
+ setCurrentlyValidatingElement(null);
335
487
  }
336
- a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
- } catch (c) {
338
- a = c;
339
488
  }
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));
341
489
  }
490
+ }
342
491
  }
343
- }
344
- var qe = Array.isArray;
345
- function J(e) {
346
- return qe(e);
347
- }
348
- function Je(e) {
349
- {
350
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
351
- return t;
492
+ var isArrayImpl = Array.isArray;
493
+ function isArray(a) {
494
+ return isArrayImpl(a);
352
495
  }
353
- }
354
- function Ke(e) {
355
- try {
356
- return he(e), !1;
357
- } catch {
358
- return !0;
496
+ function typeName(value) {
497
+ {
498
+ var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
499
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
500
+ return type;
501
+ }
359
502
  }
360
- }
361
- function he(e) {
362
- return "" + e;
363
- }
364
- function ge(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);
367
- }
368
- var ye = k.ReactCurrentOwner, Ge = {
369
- key: !0,
370
- ref: !0,
371
- __self: !0,
372
- __source: !0
373
- }, me, be;
374
- function Xe(e) {
375
- if (A.call(e, "ref")) {
376
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
377
- if (r && r.isReactWarning)
378
- return !1;
379
- }
380
- return e.ref !== void 0;
381
- }
382
- function He(e) {
383
- if (A.call(e, "key")) {
384
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
385
- if (r && r.isReactWarning)
386
- return !1;
503
+ function willCoercionThrow(value) {
504
+ {
505
+ try {
506
+ testStringCoercion(value);
507
+ return false;
508
+ } catch (e) {
509
+ return true;
510
+ }
511
+ }
387
512
  }
388
- return e.key !== void 0;
389
- }
390
- function Ze(e, r) {
391
- typeof e.ref == "string" && ye.current;
392
- }
393
- function Qe(e, r) {
394
- {
395
- var t = function() {
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));
397
- };
398
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
399
- get: t,
400
- configurable: !0
401
- });
513
+ function testStringCoercion(value) {
514
+ return "" + value;
402
515
  }
403
- }
404
- function er(e, r) {
405
- {
406
- var t = function() {
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));
408
- };
409
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
410
- get: t,
411
- configurable: !0
412
- });
516
+ function checkKeyStringCoercion(value) {
517
+ {
518
+ if (willCoercionThrow(value)) {
519
+ error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
520
+ return testStringCoercion(value);
521
+ }
522
+ }
413
523
  }
414
- }
415
- var rr = function(e, r, t, n, o, u, i) {
416
- var a = {
417
- // This tag allows us to uniquely identify this as a React Element
418
- $$typeof: R,
419
- // Built-in properties that belong on the element
420
- type: e,
421
- key: r,
422
- ref: t,
423
- props: i,
424
- // Record the component responsible for creating this element.
425
- _owner: u
524
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
525
+ var RESERVED_PROPS = {
526
+ key: true,
527
+ ref: true,
528
+ __self: true,
529
+ __source: true
426
530
  };
427
- return a._store = {}, Object.defineProperty(a._store, "validated", {
428
- configurable: !1,
429
- enumerable: !1,
430
- writable: !0,
431
- value: !1
432
- }), Object.defineProperty(a, "_self", {
433
- configurable: !1,
434
- enumerable: !1,
435
- writable: !1,
436
- value: n
437
- }), Object.defineProperty(a, "_source", {
438
- configurable: !1,
439
- enumerable: !1,
440
- writable: !1,
441
- value: o
442
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
443
- };
444
- function tr(e, r, t, n, o) {
445
- {
446
- var u, i = {}, a = null, m = null;
447
- t !== void 0 && (ge(t), a = "" + t), He(r) && (ge(r.key), a = "" + r.key), Xe(r) && (m = r.ref, Ze(r, o));
448
- for (u in r)
449
- A.call(r, u) && !Ge.hasOwnProperty(u) && (i[u] = r[u]);
450
- if (e && e.defaultProps) {
451
- var c = e.defaultProps;
452
- for (u in c)
453
- i[u] === void 0 && (i[u] = c[u]);
531
+ var specialPropKeyWarningShown;
532
+ var specialPropRefWarningShown;
533
+ function hasValidRef(config) {
534
+ {
535
+ if (hasOwnProperty.call(config, "ref")) {
536
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
537
+ if (getter && getter.isReactWarning) {
538
+ return false;
539
+ }
540
+ }
454
541
  }
455
- if (a || m) {
456
- var d = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
457
- a && Qe(i, d), m && er(i, d);
542
+ return config.ref !== void 0;
543
+ }
544
+ function hasValidKey(config) {
545
+ {
546
+ if (hasOwnProperty.call(config, "key")) {
547
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
548
+ if (getter && getter.isReactWarning) {
549
+ return false;
550
+ }
551
+ }
458
552
  }
459
- return rr(e, a, m, o, n, ye.current, i);
553
+ return config.key !== void 0;
460
554
  }
461
- }
462
- var K = k.ReactCurrentOwner, Ee = k.ReactDebugCurrentFrame;
463
- function j(e) {
464
- if (e) {
465
- var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
466
- Ee.setExtraStackFrame(t);
467
- } else
468
- Ee.setExtraStackFrame(null);
469
- }
470
- var G;
471
- G = !1;
472
- function X(e) {
473
- return typeof e == "object" && e !== null && e.$$typeof === R;
474
- }
475
- function Re() {
476
- {
477
- if (K.current) {
478
- var e = C(K.current.type);
479
- if (e)
480
- return `
481
-
482
- Check the render method of \`` + e + "`.";
555
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
556
+ {
557
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && self) ;
483
558
  }
484
- return "";
485
559
  }
486
- }
487
- function nr(e) {
488
- return "";
489
- }
490
- var _e = {};
491
- function ar(e) {
492
- {
493
- var r = Re();
494
- if (!r) {
495
- var t = typeof e == "string" ? e : e.displayName || e.name;
496
- t && (r = `
497
-
498
- Check the top-level render call using <` + t + ">.");
560
+ function defineKeyPropWarningGetter(props, displayName) {
561
+ {
562
+ var warnAboutAccessingKey = function() {
563
+ if (!specialPropKeyWarningShown) {
564
+ specialPropKeyWarningShown = true;
565
+ error("%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)", displayName);
566
+ }
567
+ };
568
+ warnAboutAccessingKey.isReactWarning = true;
569
+ Object.defineProperty(props, "key", {
570
+ get: warnAboutAccessingKey,
571
+ configurable: true
572
+ });
499
573
  }
500
- return r;
501
574
  }
502
- }
503
- function Te(e, r) {
504
- {
505
- if (!e._store || e._store.validated || e.key != null)
506
- return;
507
- e._store.validated = !0;
508
- var t = ar(r);
509
- if (_e[t])
510
- return;
511
- _e[t] = !0;
512
- var n = "";
513
- 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);
575
+ function defineRefPropWarningGetter(props, displayName) {
576
+ {
577
+ var warnAboutAccessingRef = function() {
578
+ if (!specialPropRefWarningShown) {
579
+ specialPropRefWarningShown = true;
580
+ error("%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)", displayName);
581
+ }
582
+ };
583
+ warnAboutAccessingRef.isReactWarning = true;
584
+ Object.defineProperty(props, "ref", {
585
+ get: warnAboutAccessingRef,
586
+ configurable: true
587
+ });
588
+ }
514
589
  }
515
- }
516
- function Se(e, r) {
517
- {
518
- if (typeof e != "object")
519
- return;
520
- if (J(e))
521
- for (var t = 0; t < e.length; t++) {
522
- var n = e[t];
523
- X(n) && Te(n, r);
524
- }
525
- else if (X(e))
526
- e._store && (e._store.validated = !0);
527
- else if (e) {
528
- var o = je(e);
529
- if (typeof o == "function" && o !== e.entries)
530
- for (var u = o.call(e), i; !(i = u.next()).done; )
531
- X(i.value) && Te(i.value, r);
590
+ var ReactElement = function(type, key, ref, self, source, owner, props) {
591
+ var element = {
592
+ // This tag allows us to uniquely identify this as a React Element
593
+ $$typeof: REACT_ELEMENT_TYPE,
594
+ // Built-in properties that belong on the element
595
+ type,
596
+ key,
597
+ ref,
598
+ props,
599
+ // Record the component responsible for creating this element.
600
+ _owner: owner
601
+ };
602
+ {
603
+ element._store = {};
604
+ Object.defineProperty(element._store, "validated", {
605
+ configurable: false,
606
+ enumerable: false,
607
+ writable: true,
608
+ value: false
609
+ });
610
+ Object.defineProperty(element, "_self", {
611
+ configurable: false,
612
+ enumerable: false,
613
+ writable: false,
614
+ value: self
615
+ });
616
+ Object.defineProperty(element, "_source", {
617
+ configurable: false,
618
+ enumerable: false,
619
+ writable: false,
620
+ value: source
621
+ });
622
+ if (Object.freeze) {
623
+ Object.freeze(element.props);
624
+ Object.freeze(element);
625
+ }
626
+ }
627
+ return element;
628
+ };
629
+ function jsxDEV(type, config, maybeKey, source, self) {
630
+ {
631
+ var propName;
632
+ var props = {};
633
+ var key = null;
634
+ var ref = null;
635
+ if (maybeKey !== void 0) {
636
+ {
637
+ checkKeyStringCoercion(maybeKey);
638
+ }
639
+ key = "" + maybeKey;
640
+ }
641
+ if (hasValidKey(config)) {
642
+ {
643
+ checkKeyStringCoercion(config.key);
644
+ }
645
+ key = "" + config.key;
646
+ }
647
+ if (hasValidRef(config)) {
648
+ ref = config.ref;
649
+ warnIfStringRefCannotBeAutoConverted(config, self);
650
+ }
651
+ for (propName in config) {
652
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
653
+ props[propName] = config[propName];
654
+ }
655
+ }
656
+ if (type && type.defaultProps) {
657
+ var defaultProps = type.defaultProps;
658
+ for (propName in defaultProps) {
659
+ if (props[propName] === void 0) {
660
+ props[propName] = defaultProps[propName];
661
+ }
662
+ }
663
+ }
664
+ if (key || ref) {
665
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
666
+ if (key) {
667
+ defineKeyPropWarningGetter(props, displayName);
668
+ }
669
+ if (ref) {
670
+ defineRefPropWarningGetter(props, displayName);
671
+ }
672
+ }
673
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
532
674
  }
533
675
  }
534
- }
535
- function ir(e) {
536
- {
537
- var r = e.type;
538
- if (r == null || typeof r == "string")
539
- return;
540
- var t;
541
- if (typeof r == "function")
542
- t = r.propTypes;
543
- else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here.
544
- // Inner props are checked in the reconciler.
545
- r.$$typeof === w))
546
- t = r.propTypes;
547
- else
548
- return;
549
- if (t) {
550
- var n = C(r);
551
- Be(t, e.props, "prop", n, e);
552
- } else if (r.PropTypes !== void 0 && !G) {
553
- G = !0;
554
- var o = C(r);
555
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
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.");
676
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
677
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
678
+ function setCurrentlyValidatingElement$1(element) {
679
+ {
680
+ if (element) {
681
+ var owner = element._owner;
682
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
683
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
684
+ } else {
685
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
686
+ }
687
+ }
558
688
  }
559
- }
560
- function or(e) {
689
+ var propTypesMisspellWarningShown;
561
690
  {
562
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
563
- var n = r[t];
564
- if (n !== "children" && n !== "key") {
565
- j(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), j(null);
566
- break;
691
+ propTypesMisspellWarningShown = false;
692
+ }
693
+ function isValidElement(object) {
694
+ {
695
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
696
+ }
697
+ }
698
+ function getDeclarationErrorAddendum() {
699
+ {
700
+ if (ReactCurrentOwner$1.current) {
701
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
702
+ if (name) {
703
+ return "\n\nCheck the render method of `" + name + "`.";
704
+ }
567
705
  }
706
+ return "";
568
707
  }
569
- e.ref !== null && (j(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), j(null));
570
708
  }
571
- }
572
- var we = {};
573
- function Ce(e, r, t, n, o, u) {
574
- {
575
- var i = Ye(e);
576
- if (!i) {
577
- var a = "";
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.");
579
- var m = nr();
580
- m ? a += m : a += Re();
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);
583
- }
584
- var d = tr(e, r, t, o, u);
585
- if (d == null)
586
- return d;
587
- if (i) {
588
- var E = r.children;
589
- if (E !== void 0)
590
- if (n)
591
- if (J(E)) {
592
- for (var F = 0; F < E.length; F++)
593
- Se(E[F], e);
594
- Object.freeze && Object.freeze(E);
595
- } else
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.");
597
- else
598
- Se(E, e);
599
- }
600
- if (A.call(r, "key")) {
601
- var P = C(e), b = Object.keys(r).filter(function(dr) {
602
- return dr !== "key";
603
- }), H = b.length > 0 ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}";
604
- if (!we[P + H]) {
605
- var cr = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}";
606
- y(`A props object containing a "key" prop is being spread into JSX:
607
- let props = %s;
608
- <%s {...props} />
609
- React keys must be passed directly to JSX without using spread:
610
- let props = %s;
611
- <%s key={someKey} {...props} />`, H, P, cr, P), we[P + H] = !0;
612
- }
613
- }
614
- return e === l ? or(d) : ir(d), d;
709
+ function getSourceInfoErrorAddendum(source) {
710
+ {
711
+ return "";
712
+ }
615
713
  }
616
- }
617
- function sr(e, r, t) {
618
- return Ce(e, r, t, !0);
619
- }
620
- function ur(e, r, t) {
621
- return Ce(e, r, t, !1);
622
- }
623
- var lr = ur, fr = sr;
624
- $.Fragment = l, $.jsx = lr, $.jsxs = fr;
625
- }()), $;
714
+ var ownerHasKeyUseWarning = {};
715
+ function getCurrentComponentErrorInfo(parentType) {
716
+ {
717
+ var info = getDeclarationErrorAddendum();
718
+ if (!info) {
719
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
720
+ if (parentName) {
721
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
722
+ }
723
+ }
724
+ return info;
725
+ }
726
+ }
727
+ function validateExplicitKey(element, parentType) {
728
+ {
729
+ if (!element._store || element._store.validated || element.key != null) {
730
+ return;
731
+ }
732
+ element._store.validated = true;
733
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
734
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
735
+ return;
736
+ }
737
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
738
+ var childOwner = "";
739
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
740
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
741
+ }
742
+ setCurrentlyValidatingElement$1(element);
743
+ error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
744
+ setCurrentlyValidatingElement$1(null);
745
+ }
746
+ }
747
+ function validateChildKeys(node, parentType) {
748
+ {
749
+ if (typeof node !== "object") {
750
+ return;
751
+ }
752
+ if (isArray(node)) {
753
+ for (var i = 0; i < node.length; i++) {
754
+ var child = node[i];
755
+ if (isValidElement(child)) {
756
+ validateExplicitKey(child, parentType);
757
+ }
758
+ }
759
+ } else if (isValidElement(node)) {
760
+ if (node._store) {
761
+ node._store.validated = true;
762
+ }
763
+ } else if (node) {
764
+ var iteratorFn = getIteratorFn(node);
765
+ if (typeof iteratorFn === "function") {
766
+ if (iteratorFn !== node.entries) {
767
+ var iterator = iteratorFn.call(node);
768
+ var step;
769
+ while (!(step = iterator.next()).done) {
770
+ if (isValidElement(step.value)) {
771
+ validateExplicitKey(step.value, parentType);
772
+ }
773
+ }
774
+ }
775
+ }
776
+ }
777
+ }
778
+ }
779
+ function validatePropTypes(element) {
780
+ {
781
+ var type = element.type;
782
+ if (type === null || type === void 0 || typeof type === "string") {
783
+ return;
784
+ }
785
+ var propTypes;
786
+ if (typeof type === "function") {
787
+ propTypes = type.propTypes;
788
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
789
+ // Inner props are checked in the reconciler.
790
+ type.$$typeof === REACT_MEMO_TYPE)) {
791
+ propTypes = type.propTypes;
792
+ } else {
793
+ return;
794
+ }
795
+ if (propTypes) {
796
+ var name = getComponentNameFromType(type);
797
+ checkPropTypes(propTypes, element.props, "prop", name, element);
798
+ } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
799
+ propTypesMisspellWarningShown = true;
800
+ var _name = getComponentNameFromType(type);
801
+ error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
802
+ }
803
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
804
+ error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
805
+ }
806
+ }
807
+ }
808
+ function validateFragmentProps(fragment) {
809
+ {
810
+ var keys = Object.keys(fragment.props);
811
+ for (var i = 0; i < keys.length; i++) {
812
+ var key = keys[i];
813
+ if (key !== "children" && key !== "key") {
814
+ setCurrentlyValidatingElement$1(fragment);
815
+ error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
816
+ setCurrentlyValidatingElement$1(null);
817
+ break;
818
+ }
819
+ }
820
+ if (fragment.ref !== null) {
821
+ setCurrentlyValidatingElement$1(fragment);
822
+ error("Invalid attribute `ref` supplied to `React.Fragment`.");
823
+ setCurrentlyValidatingElement$1(null);
824
+ }
825
+ }
826
+ }
827
+ var didWarnAboutKeySpread = {};
828
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
829
+ {
830
+ var validType = isValidElementType(type);
831
+ if (!validType) {
832
+ var info = "";
833
+ if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
834
+ info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
835
+ }
836
+ var sourceInfo = getSourceInfoErrorAddendum();
837
+ if (sourceInfo) {
838
+ info += sourceInfo;
839
+ } else {
840
+ info += getDeclarationErrorAddendum();
841
+ }
842
+ var typeString;
843
+ if (type === null) {
844
+ typeString = "null";
845
+ } else if (isArray(type)) {
846
+ typeString = "array";
847
+ } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
848
+ typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
849
+ info = " Did you accidentally export a JSX literal instead of a component?";
850
+ } else {
851
+ typeString = typeof type;
852
+ }
853
+ error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
854
+ }
855
+ var element = jsxDEV(type, props, key, source, self);
856
+ if (element == null) {
857
+ return element;
858
+ }
859
+ if (validType) {
860
+ var children = props.children;
861
+ if (children !== void 0) {
862
+ if (isStaticChildren) {
863
+ if (isArray(children)) {
864
+ for (var i = 0; i < children.length; i++) {
865
+ validateChildKeys(children[i], type);
866
+ }
867
+ if (Object.freeze) {
868
+ Object.freeze(children);
869
+ }
870
+ } else {
871
+ error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
872
+ }
873
+ } else {
874
+ validateChildKeys(children, type);
875
+ }
876
+ }
877
+ }
878
+ {
879
+ if (hasOwnProperty.call(props, "key")) {
880
+ var componentName = getComponentNameFromType(type);
881
+ var keys = Object.keys(props).filter(function(k) {
882
+ return k !== "key";
883
+ });
884
+ var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
885
+ if (!didWarnAboutKeySpread[componentName + beforeExample]) {
886
+ var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
887
+ error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
888
+ didWarnAboutKeySpread[componentName + beforeExample] = true;
889
+ }
890
+ }
891
+ }
892
+ if (type === REACT_FRAGMENT_TYPE) {
893
+ validateFragmentProps(element);
894
+ } else {
895
+ validatePropTypes(element);
896
+ }
897
+ return element;
898
+ }
899
+ }
900
+ function jsxWithValidationStatic(type, props, key) {
901
+ {
902
+ return jsxWithValidation(type, props, key, true);
903
+ }
904
+ }
905
+ function jsxWithValidationDynamic(type, props, key) {
906
+ {
907
+ return jsxWithValidation(type, props, key, false);
908
+ }
909
+ }
910
+ var jsx = jsxWithValidationDynamic;
911
+ var jsxs = jsxWithValidationStatic;
912
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
913
+ reactJsxRuntime_development.jsx = jsx;
914
+ reactJsxRuntime_development.jsxs = jsxs;
915
+ })();
916
+ }
917
+ return reactJsxRuntime_development;
918
+ }
919
+ if (process.env.NODE_ENV === "production") {
920
+ jsxRuntime.exports = requireReactJsxRuntime_production_min();
921
+ } else {
922
+ jsxRuntime.exports = requireReactJsxRuntime_development();
626
923
  }
627
- process.env.NODE_ENV === "production" ? ee.exports = vr() : ee.exports = pr();
628
- var Z = ee.exports;
629
- const U = {
924
+ var jsxRuntimeExports = jsxRuntime.exports;
925
+ const skeletonBgColors = {
630
926
  text: "#ccc",
631
927
  box: "#e0e0e0"
632
- }, Q = {};
633
- function hr(p) {
634
- if (typeof document > "u") return {};
635
- const R = typeof p.type == "string" ? p.type : "div", _ = `${R}-${p.props.id || ""}-${p.props.className || ""}`;
636
- if (Q[_]) return Q[_];
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;
640
- }), l.style.display = "none", document.body.appendChild(l);
641
- const f = window.getComputedStyle(l), s = {
642
- height: f.height || void 0,
643
- width: f.width || "100%",
644
- fontSize: f.fontSize || void 0,
645
- margin: f.margin || "0",
646
- padding: f.padding || "0",
647
- borderRadius: f.borderRadius || "4px"
928
+ };
929
+ const styleCache = {};
930
+ function getComputedStyleFromNode(node) {
931
+ if (typeof document === "undefined") return {};
932
+ const type = typeof node.type === "string" ? node.type : "div";
933
+ const key = `${type}-${node.props.id || ""}-${node.props.className || ""}`;
934
+ if (styleCache[key]) return styleCache[key];
935
+ const el = document.createElement(type);
936
+ if (node.props.id) el.id = node.props.id;
937
+ if (node.props.className) el.className = node.props.className;
938
+ if (node.props.style) {
939
+ Object.entries(node.props.style).forEach(([k, v]) => {
940
+ el.style[k] = v;
941
+ });
942
+ }
943
+ el.style.display = "none";
944
+ document.body.appendChild(el);
945
+ const cs = window.getComputedStyle(el);
946
+ const computed = {
947
+ height: cs.height || void 0,
948
+ width: cs.width || "100%",
949
+ fontSize: cs.fontSize || void 0,
950
+ margin: cs.margin || "0",
951
+ padding: cs.padding || "0",
952
+ borderRadius: cs.borderRadius || "4px"
648
953
  };
649
- return document.body.removeChild(l), Q[_] = s, s;
954
+ document.body.removeChild(el);
955
+ styleCache[key] = computed;
956
+ return computed;
650
957
  }
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);
958
+ const SkeletonBlock = ({ children }) => {
959
+ function traverse(node) {
960
+ if (!React.isValidElement(node)) return node;
961
+ if (typeof node.type === "string") {
962
+ const newProps = { ...node.props };
963
+ let style = { ...newProps.style };
964
+ if (newProps.skeletonrequired === "y") {
965
+ const defaults = getComputedStyleFromNode(node);
966
+ style.height = style.height || newProps.height || defaults.height || "20px";
967
+ style.width = style.width || newProps.width || defaults.width || "100%";
968
+ style.fontSize = style.fontSize || newProps.fontSize || defaults.fontSize || "16px";
969
+ style.margin = style.margin || newProps.margin || defaults.margin || "0";
970
+ style.padding = style.padding || newProps.padding || defaults.padding || "0";
971
+ style.borderRadius = style.borderRadius || defaults.borderRadius || "4px";
972
+ const type = node.type;
973
+ const isText = ["p", "span", "h1", "h2", "h3", "h4", "h5", "h6"].includes(type);
974
+ style.backgroundColor = isText ? skeletonBgColors.text : skeletonBgColors.box;
975
+ style.color = "transparent";
976
+ style.position = "relative";
977
+ style.overflow = "hidden";
978
+ const shimmerBase = isText ? skeletonBgColors.text : skeletonBgColors.box;
979
+ style.backgroundImage = `linear-gradient(90deg, ${shimmerBase} 0%, #f5f5f5 50%, ${shimmerBase} 100%)`;
980
+ style.backgroundSize = "200% 100%";
981
+ style.animation = "shimmer 1.5s infinite";
982
+ delete newProps.skeletonrequired;
983
+ newProps.style = style;
984
+ }
985
+ const childrenNodes = React.Children.map(node.props.children, traverse);
986
+ return React.cloneElement(node, newProps, childrenNodes);
667
987
  }
668
- return l;
988
+ return node;
669
989
  }
670
- const _ = M.Children.map(p, R);
671
- return /* @__PURE__ */ Z.jsxs(Z.Fragment, { children: [
672
- /* @__PURE__ */ Z.jsx("style", { children: `
990
+ const result = React.Children.map(children, traverse);
991
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
992
+ /* @__PURE__ */ jsxRuntimeExports.jsx("style", { children: `
673
993
  @keyframes shimmer {
674
994
  0% { background-position: -200% 0; }
675
995
  100% { background-position: 200% 0; }
676
996
  }
677
997
  ` }),
678
- _
998
+ result
679
999
  ] });
680
1000
  };
681
1001
  export {
682
- yr as SkeletonBlock,
683
- yr as default
1002
+ SkeletonBlock,
1003
+ SkeletonBlock as default
684
1004
  };