@itcase/storybook-config 1.2.42 → 1.2.44

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.
@@ -32,47 +32,26 @@ function getDefaultExportFromCjs (x) {
32
32
 
33
33
  var jsxRuntime = {exports: {}};
34
34
 
35
- var reactJsxRuntime_production = {};
35
+ var reactJsxRuntime_production_min = {};
36
36
 
37
37
  /**
38
38
  * @license React
39
- * react-jsx-runtime.production.js
39
+ * react-jsx-runtime.production.min.js
40
40
  *
41
- * Copyright (c) Meta Platforms, Inc. and affiliates.
41
+ * Copyright (c) Facebook, Inc. and its affiliates.
42
42
  *
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
45
  */
46
46
 
47
- var hasRequiredReactJsxRuntime_production;
48
-
49
- function requireReactJsxRuntime_production () {
50
- if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
51
- hasRequiredReactJsxRuntime_production = 1;
52
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
53
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
54
- function jsxProd(type, config, maybeKey) {
55
- var key = null;
56
- void 0 !== maybeKey && (key = "" + maybeKey);
57
- void 0 !== config.key && (key = "" + config.key);
58
- if ("key" in config) {
59
- maybeKey = {};
60
- for (var propName in config)
61
- "key" !== propName && (maybeKey[propName] = config[propName]);
62
- } else maybeKey = config;
63
- config = maybeKey.ref;
64
- return {
65
- $$typeof: REACT_ELEMENT_TYPE,
66
- type: type,
67
- key: key,
68
- ref: void 0 !== config ? config : null,
69
- props: maybeKey
70
- };
71
- }
72
- reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
73
- reactJsxRuntime_production.jsx = jsxProd;
74
- reactJsxRuntime_production.jsxs = jsxProd;
75
- return reactJsxRuntime_production;
47
+ var hasRequiredReactJsxRuntime_production_min;
48
+
49
+ function requireReactJsxRuntime_production_min () {
50
+ if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
51
+ hasRequiredReactJsxRuntime_production_min = 1;
52
+ var f=React,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};
53
+ function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
54
+ return reactJsxRuntime_production_min;
76
55
  }
77
56
 
78
57
  var reactJsxRuntime_development = {};
@@ -81,7 +60,7 @@ var reactJsxRuntime_development = {};
81
60
  * @license React
82
61
  * react-jsx-runtime.development.js
83
62
  *
84
- * Copyright (c) Meta Platforms, Inc. and affiliates.
63
+ * Copyright (c) Facebook, Inc. and its affiliates.
85
64
  *
86
65
  * This source code is licensed under the MIT license found in the
87
66
  * LICENSE file in the root directory of this source tree.
@@ -92,347 +71,1309 @@ var hasRequiredReactJsxRuntime_development;
92
71
  function requireReactJsxRuntime_development () {
93
72
  if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
94
73
  hasRequiredReactJsxRuntime_development = 1;
95
- "production" !== process.env.NODE_ENV &&
96
- (function () {
97
- function getComponentNameFromType(type) {
98
- if (null == type) return null;
99
- if ("function" === typeof type)
100
- return type.$$typeof === REACT_CLIENT_REFERENCE
101
- ? null
102
- : type.displayName || type.name || null;
103
- if ("string" === typeof type) return type;
104
- switch (type) {
105
- case REACT_FRAGMENT_TYPE:
106
- return "Fragment";
107
- case REACT_PROFILER_TYPE:
108
- return "Profiler";
109
- case REACT_STRICT_MODE_TYPE:
110
- return "StrictMode";
111
- case REACT_SUSPENSE_TYPE:
112
- return "Suspense";
113
- case REACT_SUSPENSE_LIST_TYPE:
114
- return "SuspenseList";
115
- case REACT_ACTIVITY_TYPE:
116
- return "Activity";
74
+
75
+ if (process.env.NODE_ENV !== "production") {
76
+ (function() {
77
+
78
+ var React$1 = React;
79
+
80
+ // ATTENTION
81
+ // When adding new symbols to this file,
82
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
83
+ // The Symbol used to tag the ReactElement-like types.
84
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
85
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
86
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
87
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
88
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
89
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
90
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
91
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
92
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
93
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
94
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
95
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
96
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
97
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
98
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
99
+ function getIteratorFn(maybeIterable) {
100
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
101
+ return null;
102
+ }
103
+
104
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
105
+
106
+ if (typeof maybeIterator === 'function') {
107
+ return maybeIterator;
108
+ }
109
+
110
+ return null;
111
+ }
112
+
113
+ var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
114
+
115
+ function error(format) {
116
+ {
117
+ {
118
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
119
+ args[_key2 - 1] = arguments[_key2];
117
120
  }
118
- if ("object" === typeof type)
119
- switch (
120
- ("number" === typeof type.tag &&
121
- console.error(
122
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
123
- ),
124
- type.$$typeof)
125
- ) {
126
- case REACT_PORTAL_TYPE:
127
- return "Portal";
128
- case REACT_CONTEXT_TYPE:
129
- return type.displayName || "Context";
130
- case REACT_CONSUMER_TYPE:
131
- return (type._context.displayName || "Context") + ".Consumer";
132
- case REACT_FORWARD_REF_TYPE:
133
- var innerType = type.render;
134
- type = type.displayName;
135
- type ||
136
- ((type = innerType.displayName || innerType.name || ""),
137
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
138
- return type;
139
- case REACT_MEMO_TYPE:
140
- return (
141
- (innerType = type.displayName || null),
142
- null !== innerType
143
- ? innerType
144
- : getComponentNameFromType(type.type) || "Memo"
145
- );
146
- case REACT_LAZY_TYPE:
147
- innerType = type._payload;
148
- type = type._init;
149
- try {
150
- return getComponentNameFromType(type(innerType));
151
- } catch (x) {}
121
+
122
+ printWarning('error', format, args);
123
+ }
124
+ }
125
+ }
126
+
127
+ function printWarning(level, format, args) {
128
+ // When changing this logic, you might want to also
129
+ // update consoleWithStackDev.www.js as well.
130
+ {
131
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
132
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
133
+
134
+ if (stack !== '') {
135
+ format += '%s';
136
+ args = args.concat([stack]);
137
+ } // eslint-disable-next-line react-internal/safe-string-coercion
138
+
139
+
140
+ var argsWithFormat = args.map(function (item) {
141
+ return String(item);
142
+ }); // Careful: RN currently depends on this prefix
143
+
144
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
145
+ // breaks IE9: https://github.com/facebook/react/issues/13610
146
+ // eslint-disable-next-line react-internal/no-production-logging
147
+
148
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
149
+ }
150
+ }
151
+
152
+ // -----------------------------------------------------------------------------
153
+
154
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
155
+ var enableCacheElement = false;
156
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
157
+
158
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
159
+ // stuff. Intended to enable React core members to more easily debug scheduling
160
+ // issues in DEV builds.
161
+
162
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
163
+
164
+ var REACT_MODULE_REFERENCE;
165
+
166
+ {
167
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
168
+ }
169
+
170
+ function isValidElementType(type) {
171
+ if (typeof type === 'string' || typeof type === 'function') {
172
+ return true;
173
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
174
+
175
+
176
+ 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 ) {
177
+ return true;
178
+ }
179
+
180
+ if (typeof type === 'object' && type !== null) {
181
+ 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
182
+ // types supported by any Flight configuration anywhere since
183
+ // we don't know which Flight build this will end up being used
184
+ // with.
185
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
186
+ return true;
187
+ }
188
+ }
189
+
190
+ return false;
191
+ }
192
+
193
+ function getWrappedName(outerType, innerType, wrapperName) {
194
+ var displayName = outerType.displayName;
195
+
196
+ if (displayName) {
197
+ return displayName;
198
+ }
199
+
200
+ var functionName = innerType.displayName || innerType.name || '';
201
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
202
+ } // Keep in sync with react-reconciler/getComponentNameFromFiber
203
+
204
+
205
+ function getContextName(type) {
206
+ return type.displayName || 'Context';
207
+ } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
208
+
209
+
210
+ function getComponentNameFromType(type) {
211
+ if (type == null) {
212
+ // Host root, text node or just invalid type.
213
+ return null;
214
+ }
215
+
216
+ {
217
+ if (typeof type.tag === 'number') {
218
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
219
+ }
220
+ }
221
+
222
+ if (typeof type === 'function') {
223
+ return type.displayName || type.name || null;
224
+ }
225
+
226
+ if (typeof type === 'string') {
227
+ return type;
228
+ }
229
+
230
+ switch (type) {
231
+ case REACT_FRAGMENT_TYPE:
232
+ return 'Fragment';
233
+
234
+ case REACT_PORTAL_TYPE:
235
+ return 'Portal';
236
+
237
+ case REACT_PROFILER_TYPE:
238
+ return 'Profiler';
239
+
240
+ case REACT_STRICT_MODE_TYPE:
241
+ return 'StrictMode';
242
+
243
+ case REACT_SUSPENSE_TYPE:
244
+ return 'Suspense';
245
+
246
+ case REACT_SUSPENSE_LIST_TYPE:
247
+ return 'SuspenseList';
248
+
249
+ }
250
+
251
+ if (typeof type === 'object') {
252
+ switch (type.$$typeof) {
253
+ case REACT_CONTEXT_TYPE:
254
+ var context = type;
255
+ return getContextName(context) + '.Consumer';
256
+
257
+ case REACT_PROVIDER_TYPE:
258
+ var provider = type;
259
+ return getContextName(provider._context) + '.Provider';
260
+
261
+ case REACT_FORWARD_REF_TYPE:
262
+ return getWrappedName(type, type.render, 'ForwardRef');
263
+
264
+ case REACT_MEMO_TYPE:
265
+ var outerName = type.displayName || null;
266
+
267
+ if (outerName !== null) {
268
+ return outerName;
152
269
  }
153
- return null;
270
+
271
+ return getComponentNameFromType(type.type) || 'Memo';
272
+
273
+ case REACT_LAZY_TYPE:
274
+ {
275
+ var lazyComponent = type;
276
+ var payload = lazyComponent._payload;
277
+ var init = lazyComponent._init;
278
+
279
+ try {
280
+ return getComponentNameFromType(init(payload));
281
+ } catch (x) {
282
+ return null;
283
+ }
284
+ }
285
+
286
+ // eslint-disable-next-line no-fallthrough
287
+ }
288
+ }
289
+
290
+ return null;
291
+ }
292
+
293
+ var assign = Object.assign;
294
+
295
+ // Helpers to patch console.logs to avoid logging during side-effect free
296
+ // replaying on render function. This currently only patches the object
297
+ // lazily which won't cover if the log function was extracted eagerly.
298
+ // We could also eagerly patch the method.
299
+ var disabledDepth = 0;
300
+ var prevLog;
301
+ var prevInfo;
302
+ var prevWarn;
303
+ var prevError;
304
+ var prevGroup;
305
+ var prevGroupCollapsed;
306
+ var prevGroupEnd;
307
+
308
+ function disabledLog() {}
309
+
310
+ disabledLog.__reactDisabledLog = true;
311
+ function disableLogs() {
312
+ {
313
+ if (disabledDepth === 0) {
314
+ /* eslint-disable react-internal/no-production-logging */
315
+ prevLog = console.log;
316
+ prevInfo = console.info;
317
+ prevWarn = console.warn;
318
+ prevError = console.error;
319
+ prevGroup = console.group;
320
+ prevGroupCollapsed = console.groupCollapsed;
321
+ prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
322
+
323
+ var props = {
324
+ configurable: true,
325
+ enumerable: true,
326
+ value: disabledLog,
327
+ writable: true
328
+ }; // $FlowFixMe Flow thinks console is immutable.
329
+
330
+ Object.defineProperties(console, {
331
+ info: props,
332
+ log: props,
333
+ warn: props,
334
+ error: props,
335
+ group: props,
336
+ groupCollapsed: props,
337
+ groupEnd: props
338
+ });
339
+ /* eslint-enable react-internal/no-production-logging */
340
+ }
341
+
342
+ disabledDepth++;
343
+ }
344
+ }
345
+ function reenableLogs() {
346
+ {
347
+ disabledDepth--;
348
+
349
+ if (disabledDepth === 0) {
350
+ /* eslint-disable react-internal/no-production-logging */
351
+ var props = {
352
+ configurable: true,
353
+ enumerable: true,
354
+ writable: true
355
+ }; // $FlowFixMe Flow thinks console is immutable.
356
+
357
+ Object.defineProperties(console, {
358
+ log: assign({}, props, {
359
+ value: prevLog
360
+ }),
361
+ info: assign({}, props, {
362
+ value: prevInfo
363
+ }),
364
+ warn: assign({}, props, {
365
+ value: prevWarn
366
+ }),
367
+ error: assign({}, props, {
368
+ value: prevError
369
+ }),
370
+ group: assign({}, props, {
371
+ value: prevGroup
372
+ }),
373
+ groupCollapsed: assign({}, props, {
374
+ value: prevGroupCollapsed
375
+ }),
376
+ groupEnd: assign({}, props, {
377
+ value: prevGroupEnd
378
+ })
379
+ });
380
+ /* eslint-enable react-internal/no-production-logging */
154
381
  }
155
- function testStringCoercion(value) {
156
- return "" + value;
382
+
383
+ if (disabledDepth < 0) {
384
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
157
385
  }
158
- function checkKeyStringCoercion(value) {
386
+ }
387
+ }
388
+
389
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
390
+ var prefix;
391
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
392
+ {
393
+ if (prefix === undefined) {
394
+ // Extract the VM specific prefix used by each line.
159
395
  try {
160
- testStringCoercion(value);
161
- var JSCompiler_inline_result = !1;
162
- } catch (e) {
163
- JSCompiler_inline_result = true;
164
- }
165
- if (JSCompiler_inline_result) {
166
- JSCompiler_inline_result = console;
167
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
168
- var JSCompiler_inline_result$jscomp$0 =
169
- ("function" === typeof Symbol &&
170
- Symbol.toStringTag &&
171
- value[Symbol.toStringTag]) ||
172
- value.constructor.name ||
173
- "Object";
174
- JSCompiler_temp_const.call(
175
- JSCompiler_inline_result,
176
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
177
- JSCompiler_inline_result$jscomp$0
178
- );
179
- return testStringCoercion(value);
396
+ throw Error();
397
+ } catch (x) {
398
+ var match = x.stack.trim().match(/\n( *(at )?)/);
399
+ prefix = match && match[1] || '';
180
400
  }
401
+ } // We use the prefix to ensure our stacks line up with native stack frames.
402
+
403
+
404
+ return '\n' + prefix + name;
405
+ }
406
+ }
407
+ var reentry = false;
408
+ var componentFrameCache;
409
+
410
+ {
411
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
412
+ componentFrameCache = new PossiblyWeakMap();
413
+ }
414
+
415
+ function describeNativeComponentFrame(fn, construct) {
416
+ // If something asked for a stack inside a fake render, it should get ignored.
417
+ if ( !fn || reentry) {
418
+ return '';
419
+ }
420
+
421
+ {
422
+ var frame = componentFrameCache.get(fn);
423
+
424
+ if (frame !== undefined) {
425
+ return frame;
181
426
  }
182
- function getTaskName(type) {
183
- if (type === REACT_FRAGMENT_TYPE) return "<>";
184
- if (
185
- "object" === typeof type &&
186
- null !== type &&
187
- type.$$typeof === REACT_LAZY_TYPE
188
- )
189
- return "<...>";
427
+ }
428
+
429
+ var control;
430
+ reentry = true;
431
+ var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
432
+
433
+ Error.prepareStackTrace = undefined;
434
+ var previousDispatcher;
435
+
436
+ {
437
+ previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
438
+ // for warnings.
439
+
440
+ ReactCurrentDispatcher.current = null;
441
+ disableLogs();
442
+ }
443
+
444
+ try {
445
+ // This should throw.
446
+ if (construct) {
447
+ // Something should be setting the props in the constructor.
448
+ var Fake = function () {
449
+ throw Error();
450
+ }; // $FlowFixMe
451
+
452
+
453
+ Object.defineProperty(Fake.prototype, 'props', {
454
+ set: function () {
455
+ // We use a throwing setter instead of frozen or non-writable props
456
+ // because that won't throw in a non-strict mode function.
457
+ throw Error();
458
+ }
459
+ });
460
+
461
+ if (typeof Reflect === 'object' && Reflect.construct) {
462
+ // We construct a different control for this case to include any extra
463
+ // frames added by the construct call.
464
+ try {
465
+ Reflect.construct(Fake, []);
466
+ } catch (x) {
467
+ control = x;
468
+ }
469
+
470
+ Reflect.construct(fn, [], Fake);
471
+ } else {
472
+ try {
473
+ Fake.call();
474
+ } catch (x) {
475
+ control = x;
476
+ }
477
+
478
+ fn.call(Fake.prototype);
479
+ }
480
+ } else {
190
481
  try {
191
- var name = getComponentNameFromType(type);
192
- return name ? "<" + name + ">" : "<...>";
482
+ throw Error();
193
483
  } catch (x) {
194
- return "<...>";
484
+ control = x;
195
485
  }
486
+
487
+ fn();
196
488
  }
197
- function getOwner() {
198
- var dispatcher = ReactSharedInternals.A;
199
- return null === dispatcher ? null : dispatcher.getOwner();
200
- }
201
- function UnknownOwner() {
202
- return Error("react-stack-top-frame");
203
- }
204
- function hasValidKey(config) {
205
- if (hasOwnProperty.call(config, "key")) {
206
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
207
- if (getter && getter.isReactWarning) return false;
489
+ } catch (sample) {
490
+ // This is inlined manually because closure doesn't do it for us.
491
+ if (sample && control && typeof sample.stack === 'string') {
492
+ // This extracts the first frame from the sample that isn't also in the control.
493
+ // Skipping one frame that we assume is the frame that calls the two.
494
+ var sampleLines = sample.stack.split('\n');
495
+ var controlLines = control.stack.split('\n');
496
+ var s = sampleLines.length - 1;
497
+ var c = controlLines.length - 1;
498
+
499
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
500
+ // We expect at least one stack frame to be shared.
501
+ // Typically this will be the root most one. However, stack frames may be
502
+ // cut off due to maximum stack limits. In this case, one maybe cut off
503
+ // earlier than the other. We assume that the sample is longer or the same
504
+ // and there for cut off earlier. So we should find the root most frame in
505
+ // the sample somewhere in the control.
506
+ c--;
208
507
  }
209
- return void 0 !== config.key;
210
- }
211
- function defineKeyPropWarningGetter(props, displayName) {
212
- function warnAboutAccessingKey() {
213
- specialPropKeyWarningShown ||
214
- ((specialPropKeyWarningShown = true),
215
- console.error(
216
- "%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://react.dev/link/special-props)",
217
- displayName
218
- ));
508
+
509
+ for (; s >= 1 && c >= 0; s--, c--) {
510
+ // Next we find the first one that isn't the same which should be the
511
+ // frame that called our sample function and the control.
512
+ if (sampleLines[s] !== controlLines[c]) {
513
+ // In V8, the first line is describing the message but other VMs don't.
514
+ // If we're about to return the first line, and the control is also on the same
515
+ // line, that's a pretty good indicator that our sample threw at same line as
516
+ // the control. I.e. before we entered the sample frame. So we ignore this result.
517
+ // This can happen if you passed a class to function component, or non-function.
518
+ if (s !== 1 || c !== 1) {
519
+ do {
520
+ s--;
521
+ c--; // We may still have similar intermediate frames from the construct call.
522
+ // The next one that isn't the same should be our match though.
523
+
524
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
525
+ // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
526
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
527
+ // but we have a user-provided "displayName"
528
+ // splice it in to make the stack more readable.
529
+
530
+
531
+ if (fn.displayName && _frame.includes('<anonymous>')) {
532
+ _frame = _frame.replace('<anonymous>', fn.displayName);
533
+ }
534
+
535
+ {
536
+ if (typeof fn === 'function') {
537
+ componentFrameCache.set(fn, _frame);
538
+ }
539
+ } // Return the line we found.
540
+
541
+
542
+ return _frame;
543
+ }
544
+ } while (s >= 1 && c >= 0);
545
+ }
546
+
547
+ break;
548
+ }
219
549
  }
220
- warnAboutAccessingKey.isReactWarning = true;
221
- Object.defineProperty(props, "key", {
222
- get: warnAboutAccessingKey,
223
- configurable: true
224
- });
225
550
  }
226
- function elementRefGetterWithDeprecationWarning() {
227
- var componentName = getComponentNameFromType(this.type);
228
- didWarnAboutElementRef[componentName] ||
229
- ((didWarnAboutElementRef[componentName] = true),
230
- console.error(
231
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
232
- ));
233
- componentName = this.props.ref;
234
- return void 0 !== componentName ? componentName : null;
551
+ } finally {
552
+ reentry = false;
553
+
554
+ {
555
+ ReactCurrentDispatcher.current = previousDispatcher;
556
+ reenableLogs();
235
557
  }
236
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
237
- var refProp = props.ref;
238
- type = {
239
- $$typeof: REACT_ELEMENT_TYPE,
240
- type: type,
241
- key: key,
242
- props: props,
243
- _owner: owner
244
- };
245
- null !== (void 0 !== refProp ? refProp : null)
246
- ? Object.defineProperty(type, "ref", {
247
- enumerable: false,
248
- get: elementRefGetterWithDeprecationWarning
249
- })
250
- : Object.defineProperty(type, "ref", { enumerable: false, value: null });
251
- type._store = {};
252
- Object.defineProperty(type._store, "validated", {
253
- configurable: false,
254
- enumerable: false,
255
- writable: true,
256
- value: 0
257
- });
258
- Object.defineProperty(type, "_debugInfo", {
259
- configurable: false,
260
- enumerable: false,
261
- writable: true,
262
- value: null
263
- });
264
- Object.defineProperty(type, "_debugStack", {
265
- configurable: false,
266
- enumerable: false,
267
- writable: true,
268
- value: debugStack
269
- });
270
- Object.defineProperty(type, "_debugTask", {
271
- configurable: false,
272
- enumerable: false,
273
- writable: true,
274
- value: debugTask
275
- });
276
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
277
- return type;
558
+
559
+ Error.prepareStackTrace = previousPrepareStackTrace;
560
+ } // Fallback to just using the name if we couldn't make it throw.
561
+
562
+
563
+ var name = fn ? fn.displayName || fn.name : '';
564
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
565
+
566
+ {
567
+ if (typeof fn === 'function') {
568
+ componentFrameCache.set(fn, syntheticFrame);
278
569
  }
279
- function jsxDEVImpl(
280
- type,
281
- config,
282
- maybeKey,
283
- isStaticChildren,
284
- debugStack,
285
- debugTask
286
- ) {
287
- var children = config.children;
288
- if (void 0 !== children)
289
- if (isStaticChildren)
290
- if (isArrayImpl(children)) {
291
- for (
292
- isStaticChildren = 0;
293
- isStaticChildren < children.length;
294
- isStaticChildren++
295
- )
296
- validateChildKeys(children[isStaticChildren]);
297
- Object.freeze && Object.freeze(children);
298
- } else
299
- console.error(
300
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
301
- );
302
- else validateChildKeys(children);
303
- if (hasOwnProperty.call(config, "key")) {
304
- children = getComponentNameFromType(type);
305
- var keys = Object.keys(config).filter(function (k) {
306
- return "key" !== k;
307
- });
308
- isStaticChildren =
309
- 0 < keys.length
310
- ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
311
- : "{key: someKey}";
312
- didWarnAboutKeySpread[children + isStaticChildren] ||
313
- ((keys =
314
- 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
315
- console.error(
316
- '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} />',
317
- isStaticChildren,
318
- children,
319
- keys,
320
- children
321
- ),
322
- (didWarnAboutKeySpread[children + isStaticChildren] = true));
323
- }
324
- children = null;
325
- void 0 !== maybeKey &&
326
- (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
327
- hasValidKey(config) &&
328
- (checkKeyStringCoercion(config.key), (children = "" + config.key));
329
- if ("key" in config) {
330
- maybeKey = {};
331
- for (var propName in config)
332
- "key" !== propName && (maybeKey[propName] = config[propName]);
333
- } else maybeKey = config;
334
- children &&
335
- defineKeyPropWarningGetter(
336
- maybeKey,
337
- "function" === typeof type
338
- ? type.displayName || type.name || "Unknown"
339
- : type
340
- );
341
- return ReactElement(
342
- type,
343
- children,
344
- maybeKey,
345
- getOwner(),
346
- debugStack,
347
- debugTask
348
- );
570
+ }
571
+
572
+ return syntheticFrame;
573
+ }
574
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
575
+ {
576
+ return describeNativeComponentFrame(fn, false);
577
+ }
578
+ }
579
+
580
+ function shouldConstruct(Component) {
581
+ var prototype = Component.prototype;
582
+ return !!(prototype && prototype.isReactComponent);
583
+ }
584
+
585
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
586
+
587
+ if (type == null) {
588
+ return '';
589
+ }
590
+
591
+ if (typeof type === 'function') {
592
+ {
593
+ return describeNativeComponentFrame(type, shouldConstruct(type));
349
594
  }
350
- function validateChildKeys(node) {
351
- isValidElement(node)
352
- ? node._store && (node._store.validated = 1)
353
- : "object" === typeof node &&
354
- null !== node &&
355
- node.$$typeof === REACT_LAZY_TYPE &&
356
- ("fulfilled" === node._payload.status
357
- ? isValidElement(node._payload.value) &&
358
- node._payload.value._store &&
359
- (node._payload.value._store.validated = 1)
360
- : node._store && (node._store.validated = 1));
595
+ }
596
+
597
+ if (typeof type === 'string') {
598
+ return describeBuiltInComponentFrame(type);
599
+ }
600
+
601
+ switch (type) {
602
+ case REACT_SUSPENSE_TYPE:
603
+ return describeBuiltInComponentFrame('Suspense');
604
+
605
+ case REACT_SUSPENSE_LIST_TYPE:
606
+ return describeBuiltInComponentFrame('SuspenseList');
607
+ }
608
+
609
+ if (typeof type === 'object') {
610
+ switch (type.$$typeof) {
611
+ case REACT_FORWARD_REF_TYPE:
612
+ return describeFunctionComponentFrame(type.render);
613
+
614
+ case REACT_MEMO_TYPE:
615
+ // Memo may contain any component type so we recursively resolve it.
616
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
617
+
618
+ case REACT_LAZY_TYPE:
619
+ {
620
+ var lazyComponent = type;
621
+ var payload = lazyComponent._payload;
622
+ var init = lazyComponent._init;
623
+
624
+ try {
625
+ // Lazy may contain any component type so we recursively resolve it.
626
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
627
+ } catch (x) {}
628
+ }
361
629
  }
362
- function isValidElement(object) {
363
- return (
364
- "object" === typeof object &&
365
- null !== object &&
366
- object.$$typeof === REACT_ELEMENT_TYPE
367
- );
630
+ }
631
+
632
+ return '';
633
+ }
634
+
635
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
636
+
637
+ var loggedTypeFailures = {};
638
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
639
+
640
+ function setCurrentlyValidatingElement(element) {
641
+ {
642
+ if (element) {
643
+ var owner = element._owner;
644
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
645
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
646
+ } else {
647
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
368
648
  }
369
- var React$1 = React,
370
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
371
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
372
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
373
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
374
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
375
- REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
376
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
377
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
378
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
379
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
380
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
381
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
382
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
383
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
384
- ReactSharedInternals =
385
- React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
386
- hasOwnProperty = Object.prototype.hasOwnProperty,
387
- isArrayImpl = Array.isArray,
388
- createTask = console.createTask
389
- ? console.createTask
390
- : function () {
391
- return null;
392
- };
393
- React$1 = {
394
- react_stack_bottom_frame: function (callStackForError) {
395
- return callStackForError();
649
+ }
650
+ }
651
+
652
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
653
+ {
654
+ // $FlowFixMe This is okay but Flow doesn't know it.
655
+ var has = Function.call.bind(hasOwnProperty);
656
+
657
+ for (var typeSpecName in typeSpecs) {
658
+ if (has(typeSpecs, typeSpecName)) {
659
+ var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
660
+ // fail the render phase where it didn't fail before. So we log it.
661
+ // After these have been cleaned up, we'll let them throw.
662
+
663
+ try {
664
+ // This is intentionally an invariant that gets caught. It's the same
665
+ // behavior as without this statement except with a better message.
666
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
667
+ // eslint-disable-next-line react-internal/prod-error-codes
668
+ 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`.');
669
+ err.name = 'Invariant Violation';
670
+ throw err;
671
+ }
672
+
673
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
674
+ } catch (ex) {
675
+ error$1 = ex;
676
+ }
677
+
678
+ if (error$1 && !(error$1 instanceof Error)) {
679
+ setCurrentlyValidatingElement(element);
680
+
681
+ 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);
682
+
683
+ setCurrentlyValidatingElement(null);
684
+ }
685
+
686
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
687
+ // Only monitor this failure once because there tends to be a lot of the
688
+ // same error.
689
+ loggedTypeFailures[error$1.message] = true;
690
+ setCurrentlyValidatingElement(element);
691
+
692
+ error('Failed %s type: %s', location, error$1.message);
693
+
694
+ setCurrentlyValidatingElement(null);
695
+ }
396
696
  }
397
- };
398
- var specialPropKeyWarningShown;
399
- var didWarnAboutElementRef = {};
400
- var unknownOwnerDebugStack = React$1.react_stack_bottom_frame.bind(
401
- React$1,
402
- UnknownOwner
403
- )();
404
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
405
- var didWarnAboutKeySpread = {};
406
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
407
- reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
408
- var trackActualOwner =
409
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
410
- return jsxDEVImpl(
411
- type,
412
- config,
413
- maybeKey,
414
- false,
415
- trackActualOwner
416
- ? Error("react-stack-top-frame")
417
- : unknownOwnerDebugStack,
418
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
419
- );
420
- };
421
- reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
422
- var trackActualOwner =
423
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
424
- return jsxDEVImpl(
425
- type,
426
- config,
427
- maybeKey,
428
- true,
429
- trackActualOwner
430
- ? Error("react-stack-top-frame")
431
- : unknownOwnerDebugStack,
432
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
433
- );
434
- };
435
- })();
697
+ }
698
+ }
699
+ }
700
+
701
+ var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
702
+
703
+ function isArray(a) {
704
+ return isArrayImpl(a);
705
+ }
706
+
707
+ /*
708
+ * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
709
+ * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
710
+ *
711
+ * The functions in this module will throw an easier-to-understand,
712
+ * easier-to-debug exception with a clear errors message message explaining the
713
+ * problem. (Instead of a confusing exception thrown inside the implementation
714
+ * of the `value` object).
715
+ */
716
+ // $FlowFixMe only called in DEV, so void return is not possible.
717
+ function typeName(value) {
718
+ {
719
+ // toStringTag is needed for namespaced types like Temporal.Instant
720
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
721
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
722
+ return type;
723
+ }
724
+ } // $FlowFixMe only called in DEV, so void return is not possible.
725
+
726
+
727
+ function willCoercionThrow(value) {
728
+ {
729
+ try {
730
+ testStringCoercion(value);
731
+ return false;
732
+ } catch (e) {
733
+ return true;
734
+ }
735
+ }
736
+ }
737
+
738
+ function testStringCoercion(value) {
739
+ // If you ended up here by following an exception call stack, here's what's
740
+ // happened: you supplied an object or symbol value to React (as a prop, key,
741
+ // DOM attribute, CSS property, string ref, etc.) and when React tried to
742
+ // coerce it to a string using `'' + value`, an exception was thrown.
743
+ //
744
+ // The most common types that will cause this exception are `Symbol` instances
745
+ // and Temporal objects like `Temporal.Instant`. But any object that has a
746
+ // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
747
+ // exception. (Library authors do this to prevent users from using built-in
748
+ // numeric operators like `+` or comparison operators like `>=` because custom
749
+ // methods are needed to perform accurate arithmetic or comparison.)
750
+ //
751
+ // To fix the problem, coerce this object or symbol value to a string before
752
+ // passing it to React. The most reliable way is usually `String(value)`.
753
+ //
754
+ // To find which value is throwing, check the browser or debugger console.
755
+ // Before this exception was thrown, there should be `console.error` output
756
+ // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
757
+ // problem and how that type was used: key, atrribute, input value prop, etc.
758
+ // In most cases, this console output also shows the component and its
759
+ // ancestor components where the exception happened.
760
+ //
761
+ // eslint-disable-next-line react-internal/safe-string-coercion
762
+ return '' + value;
763
+ }
764
+ function checkKeyStringCoercion(value) {
765
+ {
766
+ if (willCoercionThrow(value)) {
767
+ error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
768
+
769
+ return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
770
+ }
771
+ }
772
+ }
773
+
774
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
775
+ var RESERVED_PROPS = {
776
+ key: true,
777
+ ref: true,
778
+ __self: true,
779
+ __source: true
780
+ };
781
+ var specialPropKeyWarningShown;
782
+ var specialPropRefWarningShown;
783
+
784
+ function hasValidRef(config) {
785
+ {
786
+ if (hasOwnProperty.call(config, 'ref')) {
787
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
788
+
789
+ if (getter && getter.isReactWarning) {
790
+ return false;
791
+ }
792
+ }
793
+ }
794
+
795
+ return config.ref !== undefined;
796
+ }
797
+
798
+ function hasValidKey(config) {
799
+ {
800
+ if (hasOwnProperty.call(config, 'key')) {
801
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
802
+
803
+ if (getter && getter.isReactWarning) {
804
+ return false;
805
+ }
806
+ }
807
+ }
808
+
809
+ return config.key !== undefined;
810
+ }
811
+
812
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
813
+ {
814
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && self) ;
815
+ }
816
+ }
817
+
818
+ function defineKeyPropWarningGetter(props, displayName) {
819
+ {
820
+ var warnAboutAccessingKey = function () {
821
+ if (!specialPropKeyWarningShown) {
822
+ specialPropKeyWarningShown = true;
823
+
824
+ 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);
825
+ }
826
+ };
827
+
828
+ warnAboutAccessingKey.isReactWarning = true;
829
+ Object.defineProperty(props, 'key', {
830
+ get: warnAboutAccessingKey,
831
+ configurable: true
832
+ });
833
+ }
834
+ }
835
+
836
+ function defineRefPropWarningGetter(props, displayName) {
837
+ {
838
+ var warnAboutAccessingRef = function () {
839
+ if (!specialPropRefWarningShown) {
840
+ specialPropRefWarningShown = true;
841
+
842
+ 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);
843
+ }
844
+ };
845
+
846
+ warnAboutAccessingRef.isReactWarning = true;
847
+ Object.defineProperty(props, 'ref', {
848
+ get: warnAboutAccessingRef,
849
+ configurable: true
850
+ });
851
+ }
852
+ }
853
+ /**
854
+ * Factory method to create a new React element. This no longer adheres to
855
+ * the class pattern, so do not use new to call it. Also, instanceof check
856
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
857
+ * if something is a React Element.
858
+ *
859
+ * @param {*} type
860
+ * @param {*} props
861
+ * @param {*} key
862
+ * @param {string|object} ref
863
+ * @param {*} owner
864
+ * @param {*} self A *temporary* helper to detect places where `this` is
865
+ * different from the `owner` when React.createElement is called, so that we
866
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
867
+ * functions, and as long as `this` and owner are the same, there will be no
868
+ * change in behavior.
869
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
870
+ * indicating filename, line number, and/or other information.
871
+ * @internal
872
+ */
873
+
874
+
875
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
876
+ var element = {
877
+ // This tag allows us to uniquely identify this as a React Element
878
+ $$typeof: REACT_ELEMENT_TYPE,
879
+ // Built-in properties that belong on the element
880
+ type: type,
881
+ key: key,
882
+ ref: ref,
883
+ props: props,
884
+ // Record the component responsible for creating this element.
885
+ _owner: owner
886
+ };
887
+
888
+ {
889
+ // The validation flag is currently mutative. We put it on
890
+ // an external backing store so that we can freeze the whole object.
891
+ // This can be replaced with a WeakMap once they are implemented in
892
+ // commonly used development environments.
893
+ element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
894
+ // the validation flag non-enumerable (where possible, which should
895
+ // include every environment we run tests in), so the test framework
896
+ // ignores it.
897
+
898
+ Object.defineProperty(element._store, 'validated', {
899
+ configurable: false,
900
+ enumerable: false,
901
+ writable: true,
902
+ value: false
903
+ }); // self and source are DEV only properties.
904
+
905
+ Object.defineProperty(element, '_self', {
906
+ configurable: false,
907
+ enumerable: false,
908
+ writable: false,
909
+ value: self
910
+ }); // Two elements created in two different places should be considered
911
+ // equal for testing purposes and therefore we hide it from enumeration.
912
+
913
+ Object.defineProperty(element, '_source', {
914
+ configurable: false,
915
+ enumerable: false,
916
+ writable: false,
917
+ value: source
918
+ });
919
+
920
+ if (Object.freeze) {
921
+ Object.freeze(element.props);
922
+ Object.freeze(element);
923
+ }
924
+ }
925
+
926
+ return element;
927
+ };
928
+ /**
929
+ * https://github.com/reactjs/rfcs/pull/107
930
+ * @param {*} type
931
+ * @param {object} props
932
+ * @param {string} key
933
+ */
934
+
935
+ function jsxDEV(type, config, maybeKey, source, self) {
936
+ {
937
+ var propName; // Reserved names are extracted
938
+
939
+ var props = {};
940
+ var key = null;
941
+ var ref = null; // Currently, key can be spread in as a prop. This causes a potential
942
+ // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
943
+ // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
944
+ // but as an intermediary step, we will use jsxDEV for everything except
945
+ // <div {...props} key="Hi" />, because we aren't currently able to tell if
946
+ // key is explicitly declared to be undefined or not.
947
+
948
+ if (maybeKey !== undefined) {
949
+ {
950
+ checkKeyStringCoercion(maybeKey);
951
+ }
952
+
953
+ key = '' + maybeKey;
954
+ }
955
+
956
+ if (hasValidKey(config)) {
957
+ {
958
+ checkKeyStringCoercion(config.key);
959
+ }
960
+
961
+ key = '' + config.key;
962
+ }
963
+
964
+ if (hasValidRef(config)) {
965
+ ref = config.ref;
966
+ warnIfStringRefCannotBeAutoConverted(config, self);
967
+ } // Remaining properties are added to a new props object
968
+
969
+
970
+ for (propName in config) {
971
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
972
+ props[propName] = config[propName];
973
+ }
974
+ } // Resolve default props
975
+
976
+
977
+ if (type && type.defaultProps) {
978
+ var defaultProps = type.defaultProps;
979
+
980
+ for (propName in defaultProps) {
981
+ if (props[propName] === undefined) {
982
+ props[propName] = defaultProps[propName];
983
+ }
984
+ }
985
+ }
986
+
987
+ if (key || ref) {
988
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
989
+
990
+ if (key) {
991
+ defineKeyPropWarningGetter(props, displayName);
992
+ }
993
+
994
+ if (ref) {
995
+ defineRefPropWarningGetter(props, displayName);
996
+ }
997
+ }
998
+
999
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
1000
+ }
1001
+ }
1002
+
1003
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
1004
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1005
+
1006
+ function setCurrentlyValidatingElement$1(element) {
1007
+ {
1008
+ if (element) {
1009
+ var owner = element._owner;
1010
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1011
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1012
+ } else {
1013
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1014
+ }
1015
+ }
1016
+ }
1017
+
1018
+ var propTypesMisspellWarningShown;
1019
+
1020
+ {
1021
+ propTypesMisspellWarningShown = false;
1022
+ }
1023
+ /**
1024
+ * Verifies the object is a ReactElement.
1025
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
1026
+ * @param {?object} object
1027
+ * @return {boolean} True if `object` is a ReactElement.
1028
+ * @final
1029
+ */
1030
+
1031
+
1032
+ function isValidElement(object) {
1033
+ {
1034
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1035
+ }
1036
+ }
1037
+
1038
+ function getDeclarationErrorAddendum() {
1039
+ {
1040
+ if (ReactCurrentOwner$1.current) {
1041
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
1042
+
1043
+ if (name) {
1044
+ return '\n\nCheck the render method of `' + name + '`.';
1045
+ }
1046
+ }
1047
+
1048
+ return '';
1049
+ }
1050
+ }
1051
+
1052
+ function getSourceInfoErrorAddendum(source) {
1053
+ {
1054
+
1055
+ return '';
1056
+ }
1057
+ }
1058
+ /**
1059
+ * Warn if there's no key explicitly set on dynamic arrays of children or
1060
+ * object keys are not valid. This allows us to keep track of children between
1061
+ * updates.
1062
+ */
1063
+
1064
+
1065
+ var ownerHasKeyUseWarning = {};
1066
+
1067
+ function getCurrentComponentErrorInfo(parentType) {
1068
+ {
1069
+ var info = getDeclarationErrorAddendum();
1070
+
1071
+ if (!info) {
1072
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
1073
+
1074
+ if (parentName) {
1075
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1076
+ }
1077
+ }
1078
+
1079
+ return info;
1080
+ }
1081
+ }
1082
+ /**
1083
+ * Warn if the element doesn't have an explicit key assigned to it.
1084
+ * This element is in an array. The array could grow and shrink or be
1085
+ * reordered. All children that haven't already been validated are required to
1086
+ * have a "key" property assigned to it. Error statuses are cached so a warning
1087
+ * will only be shown once.
1088
+ *
1089
+ * @internal
1090
+ * @param {ReactElement} element Element that requires a key.
1091
+ * @param {*} parentType element's parent's type.
1092
+ */
1093
+
1094
+
1095
+ function validateExplicitKey(element, parentType) {
1096
+ {
1097
+ if (!element._store || element._store.validated || element.key != null) {
1098
+ return;
1099
+ }
1100
+
1101
+ element._store.validated = true;
1102
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1103
+
1104
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1105
+ return;
1106
+ }
1107
+
1108
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
1109
+ // property, it may be the creator of the child that's responsible for
1110
+ // assigning it a key.
1111
+
1112
+ var childOwner = '';
1113
+
1114
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
1115
+ // Give the component that originally created this child.
1116
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1117
+ }
1118
+
1119
+ setCurrentlyValidatingElement$1(element);
1120
+
1121
+ 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);
1122
+
1123
+ setCurrentlyValidatingElement$1(null);
1124
+ }
1125
+ }
1126
+ /**
1127
+ * Ensure that every element either is passed in a static location, in an
1128
+ * array with an explicit keys property defined, or in an object literal
1129
+ * with valid key property.
1130
+ *
1131
+ * @internal
1132
+ * @param {ReactNode} node Statically passed child of any type.
1133
+ * @param {*} parentType node's parent's type.
1134
+ */
1135
+
1136
+
1137
+ function validateChildKeys(node, parentType) {
1138
+ {
1139
+ if (typeof node !== 'object') {
1140
+ return;
1141
+ }
1142
+
1143
+ if (isArray(node)) {
1144
+ for (var i = 0; i < node.length; i++) {
1145
+ var child = node[i];
1146
+
1147
+ if (isValidElement(child)) {
1148
+ validateExplicitKey(child, parentType);
1149
+ }
1150
+ }
1151
+ } else if (isValidElement(node)) {
1152
+ // This element was passed in a valid location.
1153
+ if (node._store) {
1154
+ node._store.validated = true;
1155
+ }
1156
+ } else if (node) {
1157
+ var iteratorFn = getIteratorFn(node);
1158
+
1159
+ if (typeof iteratorFn === 'function') {
1160
+ // Entry iterators used to provide implicit keys,
1161
+ // but now we print a separate warning for them later.
1162
+ if (iteratorFn !== node.entries) {
1163
+ var iterator = iteratorFn.call(node);
1164
+ var step;
1165
+
1166
+ while (!(step = iterator.next()).done) {
1167
+ if (isValidElement(step.value)) {
1168
+ validateExplicitKey(step.value, parentType);
1169
+ }
1170
+ }
1171
+ }
1172
+ }
1173
+ }
1174
+ }
1175
+ }
1176
+ /**
1177
+ * Given an element, validate that its props follow the propTypes definition,
1178
+ * provided by the type.
1179
+ *
1180
+ * @param {ReactElement} element
1181
+ */
1182
+
1183
+
1184
+ function validatePropTypes(element) {
1185
+ {
1186
+ var type = element.type;
1187
+
1188
+ if (type === null || type === undefined || typeof type === 'string') {
1189
+ return;
1190
+ }
1191
+
1192
+ var propTypes;
1193
+
1194
+ if (typeof type === 'function') {
1195
+ propTypes = type.propTypes;
1196
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1197
+ // Inner props are checked in the reconciler.
1198
+ type.$$typeof === REACT_MEMO_TYPE)) {
1199
+ propTypes = type.propTypes;
1200
+ } else {
1201
+ return;
1202
+ }
1203
+
1204
+ if (propTypes) {
1205
+ // Intentionally inside to avoid triggering lazy initializers:
1206
+ var name = getComponentNameFromType(type);
1207
+ checkPropTypes(propTypes, element.props, 'prop', name, element);
1208
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
1209
+ propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
1210
+
1211
+ var _name = getComponentNameFromType(type);
1212
+
1213
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
1214
+ }
1215
+
1216
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
1217
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
1218
+ }
1219
+ }
1220
+ }
1221
+ /**
1222
+ * Given a fragment, validate that it can only be provided with fragment props
1223
+ * @param {ReactElement} fragment
1224
+ */
1225
+
1226
+
1227
+ function validateFragmentProps(fragment) {
1228
+ {
1229
+ var keys = Object.keys(fragment.props);
1230
+
1231
+ for (var i = 0; i < keys.length; i++) {
1232
+ var key = keys[i];
1233
+
1234
+ if (key !== 'children' && key !== 'key') {
1235
+ setCurrentlyValidatingElement$1(fragment);
1236
+
1237
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
1238
+
1239
+ setCurrentlyValidatingElement$1(null);
1240
+ break;
1241
+ }
1242
+ }
1243
+
1244
+ if (fragment.ref !== null) {
1245
+ setCurrentlyValidatingElement$1(fragment);
1246
+
1247
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
1248
+
1249
+ setCurrentlyValidatingElement$1(null);
1250
+ }
1251
+ }
1252
+ }
1253
+
1254
+ var didWarnAboutKeySpread = {};
1255
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
1256
+ {
1257
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
1258
+ // succeed and there will likely be errors in render.
1259
+
1260
+ if (!validType) {
1261
+ var info = '';
1262
+
1263
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
1264
+ 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.";
1265
+ }
1266
+
1267
+ var sourceInfo = getSourceInfoErrorAddendum();
1268
+
1269
+ if (sourceInfo) {
1270
+ info += sourceInfo;
1271
+ } else {
1272
+ info += getDeclarationErrorAddendum();
1273
+ }
1274
+
1275
+ var typeString;
1276
+
1277
+ if (type === null) {
1278
+ typeString = 'null';
1279
+ } else if (isArray(type)) {
1280
+ typeString = 'array';
1281
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
1282
+ typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
1283
+ info = ' Did you accidentally export a JSX literal instead of a component?';
1284
+ } else {
1285
+ typeString = typeof type;
1286
+ }
1287
+
1288
+ 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);
1289
+ }
1290
+
1291
+ var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
1292
+ // TODO: Drop this when these are no longer allowed as the type argument.
1293
+
1294
+ if (element == null) {
1295
+ return element;
1296
+ } // Skip key warning if the type isn't valid since our key validation logic
1297
+ // doesn't expect a non-string/function type and can throw confusing errors.
1298
+ // We don't want exception behavior to differ between dev and prod.
1299
+ // (Rendering will throw with a helpful message and as soon as the type is
1300
+ // fixed, the key warnings will appear.)
1301
+
1302
+
1303
+ if (validType) {
1304
+ var children = props.children;
1305
+
1306
+ if (children !== undefined) {
1307
+ if (isStaticChildren) {
1308
+ if (isArray(children)) {
1309
+ for (var i = 0; i < children.length; i++) {
1310
+ validateChildKeys(children[i], type);
1311
+ }
1312
+
1313
+ if (Object.freeze) {
1314
+ Object.freeze(children);
1315
+ }
1316
+ } else {
1317
+ 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.');
1318
+ }
1319
+ } else {
1320
+ validateChildKeys(children, type);
1321
+ }
1322
+ }
1323
+ }
1324
+
1325
+ {
1326
+ if (hasOwnProperty.call(props, 'key')) {
1327
+ var componentName = getComponentNameFromType(type);
1328
+ var keys = Object.keys(props).filter(function (k) {
1329
+ return k !== 'key';
1330
+ });
1331
+ var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
1332
+
1333
+ if (!didWarnAboutKeySpread[componentName + beforeExample]) {
1334
+ var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
1335
+
1336
+ error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
1337
+
1338
+ didWarnAboutKeySpread[componentName + beforeExample] = true;
1339
+ }
1340
+ }
1341
+ }
1342
+
1343
+ if (type === REACT_FRAGMENT_TYPE) {
1344
+ validateFragmentProps(element);
1345
+ } else {
1346
+ validatePropTypes(element);
1347
+ }
1348
+
1349
+ return element;
1350
+ }
1351
+ } // These two functions exist to still get child warnings in dev
1352
+ // even with the prod transform. This means that jsxDEV is purely
1353
+ // opt-in behavior for better messages but that we won't stop
1354
+ // giving you warnings if you use production apis.
1355
+
1356
+ function jsxWithValidationStatic(type, props, key) {
1357
+ {
1358
+ return jsxWithValidation(type, props, key, true);
1359
+ }
1360
+ }
1361
+ function jsxWithValidationDynamic(type, props, key) {
1362
+ {
1363
+ return jsxWithValidation(type, props, key, false);
1364
+ }
1365
+ }
1366
+
1367
+ var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
1368
+ // for now we can ship identical prod functions
1369
+
1370
+ var jsxs = jsxWithValidationStatic ;
1371
+
1372
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
1373
+ reactJsxRuntime_development.jsx = jsx;
1374
+ reactJsxRuntime_development.jsxs = jsxs;
1375
+ })();
1376
+ }
436
1377
  return reactJsxRuntime_development;
437
1378
  }
438
1379
 
@@ -443,7 +1384,7 @@ function requireJsxRuntime () {
443
1384
  hasRequiredJsxRuntime = 1;
444
1385
 
445
1386
  if (process.env.NODE_ENV === 'production') {
446
- jsxRuntime.exports = requireReactJsxRuntime_production();
1387
+ jsxRuntime.exports = requireReactJsxRuntime_production_min();
447
1388
  } else {
448
1389
  jsxRuntime.exports = requireReactJsxRuntime_development();
449
1390
  }
@@ -5304,7 +6245,7 @@ const iconAppearance = {
5304
6245
  const iconConfig = {
5305
6246
  appearance: iconAppearance};
5306
6247
  const Icon = urlWithAssetPrefix(React.forwardRef(function Icon(props, ref) {
5307
- const { id, appearance, className, dataTestId, dataTour, width, height, badgeClass, href, imageSrc, link, linkRel, linkTarget, notification, saveFillStroke, showTooltip, SvgImage, before, after, isActive, isDisabled, isSkeleton, onClick, onMouseEnter, onMouseLeave, } = props;
6248
+ const { id, appearance, className, dataTestId, dataTour, width, height, badgeClass, href, imageSrc, link, linkRel, linkTarget, notification, saveFillStroke, showTooltip, SvgImage, svgImageStyles, before, after, isActive, isDisabled, isSkeleton, onClick, onMouseEnter, onMouseLeave, } = props;
5308
6249
  const ImageComponent = React.useMemo(() => {
5309
6250
  if (SvgImage) {
5310
6251
  const SvgComponent = SvgImage;
@@ -5315,7 +6256,7 @@ const Icon = urlWithAssetPrefix(React.forwardRef(function Icon(props, ref) {
5315
6256
  if (height) {
5316
6257
  sizes.height = height;
5317
6258
  }
5318
- return jsxRuntimeExports.jsx(SvgComponent, { ...sizes });
6259
+ return jsxRuntimeExports.jsx(SvgComponent, { ...sizes, ...svgImageStyles });
5319
6260
  }
5320
6261
  if (imageSrc) {
5321
6262
  if (imageSrc.endsWith('.svg')) {
@@ -5327,7 +6268,7 @@ const Icon = urlWithAssetPrefix(React.forwardRef(function Icon(props, ref) {
5327
6268
  return jsxRuntimeExports.jsx("img", { src: imageSrc });
5328
6269
  }
5329
6270
  return null;
5330
- }, [SvgImage, imageSrc, width, height, saveFillStroke]);
6271
+ }, [SvgImage, imageSrc, width, height, svgImageStyles, saveFillStroke]);
5331
6272
  const appearanceConfig = useAppearanceConfig(appearance, iconConfig, isDisabled);
5332
6273
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
5333
6274
  const { alignmentClass, fillActiveClass, fillActiveHoverClass, fillClass, fillDisabledClass, fillHoverClass, fillSizeClass, borderColorClass, borderColorHoverClass, borderTypeClass, borderWidthClass, badgeAppearance, badgeAppearanceSize, badgeShape, badgeSize, badgeTextColor, badgeTextSize, badgeValue, centeringClass, iconFillActiveClass, iconFillActiveHoverClass, iconFillClass, iconFillDisabledClass, iconFillHoverClass, iconSizeClass, shapeClass, shapeStrengthClass, tooltipAppearance, tooltipText, tooltipTextSize, tooltipTitle, tooltipTitleSize, } = propsGenerator;