@ape.swap/bonds-sdk 4.0.1-test.12 → 4.0.1-test.15

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.
Files changed (2) hide show
  1. package/dist/main.js +755 -1541
  2. package/package.json +16 -15
package/dist/main.js CHANGED
@@ -21,26 +21,47 @@ function getDefaultExportFromCjs (x) {
21
21
 
22
22
  var jsxRuntime = {exports: {}};
23
23
 
24
- var reactJsxRuntime_production_min = {};
24
+ var reactJsxRuntime_production = {};
25
25
 
26
26
  /**
27
27
  * @license React
28
- * react-jsx-runtime.production.min.js
28
+ * react-jsx-runtime.production.js
29
29
  *
30
- * Copyright (c) Facebook, Inc. and its affiliates.
30
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
31
31
  *
32
32
  * This source code is licensed under the MIT license found in the
33
33
  * LICENSE file in the root directory of this source tree.
34
34
  */
35
35
 
36
- var hasRequiredReactJsxRuntime_production_min;
37
-
38
- function requireReactJsxRuntime_production_min () {
39
- if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
40
- hasRequiredReactJsxRuntime_production_min = 1;
41
- 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};
42
- 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;
43
- return reactJsxRuntime_production_min;
36
+ var hasRequiredReactJsxRuntime_production;
37
+
38
+ function requireReactJsxRuntime_production () {
39
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
40
+ hasRequiredReactJsxRuntime_production = 1;
41
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
42
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
43
+ function jsxProd(type, config, maybeKey) {
44
+ var key = null;
45
+ void 0 !== maybeKey && (key = "" + maybeKey);
46
+ void 0 !== config.key && (key = "" + config.key);
47
+ if ("key" in config) {
48
+ maybeKey = {};
49
+ for (var propName in config)
50
+ "key" !== propName && (maybeKey[propName] = config[propName]);
51
+ } else maybeKey = config;
52
+ config = maybeKey.ref;
53
+ return {
54
+ $$typeof: REACT_ELEMENT_TYPE,
55
+ type: type,
56
+ key: key,
57
+ ref: void 0 !== config ? config : null,
58
+ props: maybeKey
59
+ };
60
+ }
61
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
62
+ reactJsxRuntime_production.jsx = jsxProd;
63
+ reactJsxRuntime_production.jsxs = jsxProd;
64
+ return reactJsxRuntime_production;
44
65
  }
45
66
 
46
67
  var reactJsxRuntime_development = {};
@@ -49,7 +70,7 @@ var reactJsxRuntime_development = {};
49
70
  * @license React
50
71
  * react-jsx-runtime.development.js
51
72
  *
52
- * Copyright (c) Facebook, Inc. and its affiliates.
73
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
53
74
  *
54
75
  * This source code is licensed under the MIT license found in the
55
76
  * LICENSE file in the root directory of this source tree.
@@ -60,1314 +81,357 @@ var hasRequiredReactJsxRuntime_development;
60
81
  function requireReactJsxRuntime_development () {
61
82
  if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
62
83
  hasRequiredReactJsxRuntime_development = 1;
63
-
64
- if (process.env.NODE_ENV !== "production") {
65
- (function() {
66
-
67
- var React = React__default;
68
-
69
- // ATTENTION
70
- // When adding new symbols to this file,
71
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
72
- // The Symbol used to tag the ReactElement-like types.
73
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
74
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
75
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
76
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
77
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
78
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
79
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
80
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
81
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
82
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
83
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
84
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
85
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
86
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
87
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
88
- function getIteratorFn(maybeIterable) {
89
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
90
- return null;
91
- }
92
-
93
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
94
-
95
- if (typeof maybeIterator === 'function') {
96
- return maybeIterator;
97
- }
98
-
99
- return null;
100
- }
101
-
102
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
103
-
104
- function error(format) {
105
- {
106
- {
107
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
108
- args[_key2 - 1] = arguments[_key2];
84
+ "production" !== process.env.NODE_ENV &&
85
+ (function () {
86
+ function getComponentNameFromType(type) {
87
+ if (null == type) return null;
88
+ if ("function" === typeof type)
89
+ return type.$$typeof === REACT_CLIENT_REFERENCE
90
+ ? null
91
+ : type.displayName || type.name || null;
92
+ if ("string" === typeof type) return type;
93
+ switch (type) {
94
+ case REACT_FRAGMENT_TYPE:
95
+ return "Fragment";
96
+ case REACT_PROFILER_TYPE:
97
+ return "Profiler";
98
+ case REACT_STRICT_MODE_TYPE:
99
+ return "StrictMode";
100
+ case REACT_SUSPENSE_TYPE:
101
+ return "Suspense";
102
+ case REACT_SUSPENSE_LIST_TYPE:
103
+ return "SuspenseList";
104
+ case REACT_ACTIVITY_TYPE:
105
+ return "Activity";
109
106
  }
110
-
111
- printWarning('error', format, args);
112
- }
113
- }
114
- }
115
-
116
- function printWarning(level, format, args) {
117
- // When changing this logic, you might want to also
118
- // update consoleWithStackDev.www.js as well.
119
- {
120
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
121
- var stack = ReactDebugCurrentFrame.getStackAddendum();
122
-
123
- if (stack !== '') {
124
- format += '%s';
125
- args = args.concat([stack]);
126
- } // eslint-disable-next-line react-internal/safe-string-coercion
127
-
128
-
129
- var argsWithFormat = args.map(function (item) {
130
- return String(item);
131
- }); // Careful: RN currently depends on this prefix
132
-
133
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
134
- // breaks IE9: https://github.com/facebook/react/issues/13610
135
- // eslint-disable-next-line react-internal/no-production-logging
136
-
137
- Function.prototype.apply.call(console[level], console, argsWithFormat);
138
- }
139
- }
140
-
141
- // -----------------------------------------------------------------------------
142
-
143
- var enableScopeAPI = false; // Experimental Create Event Handle API.
144
- var enableCacheElement = false;
145
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
146
-
147
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
148
- // stuff. Intended to enable React core members to more easily debug scheduling
149
- // issues in DEV builds.
150
-
151
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
152
-
153
- var REACT_MODULE_REFERENCE;
154
-
155
- {
156
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
157
- }
158
-
159
- function isValidElementType(type) {
160
- if (typeof type === 'string' || typeof type === 'function') {
161
- return true;
162
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
163
-
164
-
165
- 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 ) {
166
- return true;
167
- }
168
-
169
- if (typeof type === 'object' && type !== null) {
170
- 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
171
- // types supported by any Flight configuration anywhere since
172
- // we don't know which Flight build this will end up being used
173
- // with.
174
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
175
- return true;
176
- }
177
- }
178
-
179
- return false;
180
- }
181
-
182
- function getWrappedName(outerType, innerType, wrapperName) {
183
- var displayName = outerType.displayName;
184
-
185
- if (displayName) {
186
- return displayName;
187
- }
188
-
189
- var functionName = innerType.displayName || innerType.name || '';
190
- return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
191
- } // Keep in sync with react-reconciler/getComponentNameFromFiber
192
-
193
-
194
- function getContextName(type) {
195
- return type.displayName || 'Context';
196
- } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
197
-
198
-
199
- function getComponentNameFromType(type) {
200
- if (type == null) {
201
- // Host root, text node or just invalid type.
202
- return null;
203
- }
204
-
205
- {
206
- if (typeof type.tag === 'number') {
207
- error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
208
- }
209
- }
210
-
211
- if (typeof type === 'function') {
212
- return type.displayName || type.name || null;
213
- }
214
-
215
- if (typeof type === 'string') {
216
- return type;
217
- }
218
-
219
- switch (type) {
220
- case REACT_FRAGMENT_TYPE:
221
- return 'Fragment';
222
-
223
- case REACT_PORTAL_TYPE:
224
- return 'Portal';
225
-
226
- case REACT_PROFILER_TYPE:
227
- return 'Profiler';
228
-
229
- case REACT_STRICT_MODE_TYPE:
230
- return 'StrictMode';
231
-
232
- case REACT_SUSPENSE_TYPE:
233
- return 'Suspense';
234
-
235
- case REACT_SUSPENSE_LIST_TYPE:
236
- return 'SuspenseList';
237
-
238
- }
239
-
240
- if (typeof type === 'object') {
241
- switch (type.$$typeof) {
242
- case REACT_CONTEXT_TYPE:
243
- var context = type;
244
- return getContextName(context) + '.Consumer';
245
-
246
- case REACT_PROVIDER_TYPE:
247
- var provider = type;
248
- return getContextName(provider._context) + '.Provider';
249
-
250
- case REACT_FORWARD_REF_TYPE:
251
- return getWrappedName(type, type.render, 'ForwardRef');
252
-
253
- case REACT_MEMO_TYPE:
254
- var outerName = type.displayName || null;
255
-
256
- if (outerName !== null) {
257
- return outerName;
258
- }
259
-
260
- return getComponentNameFromType(type.type) || 'Memo';
261
-
262
- case REACT_LAZY_TYPE:
263
- {
264
- var lazyComponent = type;
265
- var payload = lazyComponent._payload;
266
- var init = lazyComponent._init;
267
-
268
- try {
269
- return getComponentNameFromType(init(payload));
270
- } catch (x) {
271
- return null;
272
- }
107
+ if ("object" === typeof type)
108
+ switch (
109
+ ("number" === typeof type.tag &&
110
+ console.error(
111
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
112
+ ),
113
+ type.$$typeof)
114
+ ) {
115
+ case REACT_PORTAL_TYPE:
116
+ return "Portal";
117
+ case REACT_CONTEXT_TYPE:
118
+ return (type.displayName || "Context") + ".Provider";
119
+ case REACT_CONSUMER_TYPE:
120
+ return (type._context.displayName || "Context") + ".Consumer";
121
+ case REACT_FORWARD_REF_TYPE:
122
+ var innerType = type.render;
123
+ type = type.displayName;
124
+ type ||
125
+ ((type = innerType.displayName || innerType.name || ""),
126
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
127
+ return type;
128
+ case REACT_MEMO_TYPE:
129
+ return (
130
+ (innerType = type.displayName || null),
131
+ null !== innerType
132
+ ? innerType
133
+ : getComponentNameFromType(type.type) || "Memo"
134
+ );
135
+ case REACT_LAZY_TYPE:
136
+ innerType = type._payload;
137
+ type = type._init;
138
+ try {
139
+ return getComponentNameFromType(type(innerType));
140
+ } catch (x) {}
273
141
  }
274
-
275
- // eslint-disable-next-line no-fallthrough
142
+ return null;
276
143
  }
277
- }
278
-
279
- return null;
280
- }
281
-
282
- var assign = Object.assign;
283
-
284
- // Helpers to patch console.logs to avoid logging during side-effect free
285
- // replaying on render function. This currently only patches the object
286
- // lazily which won't cover if the log function was extracted eagerly.
287
- // We could also eagerly patch the method.
288
- var disabledDepth = 0;
289
- var prevLog;
290
- var prevInfo;
291
- var prevWarn;
292
- var prevError;
293
- var prevGroup;
294
- var prevGroupCollapsed;
295
- var prevGroupEnd;
296
-
297
- function disabledLog() {}
298
-
299
- disabledLog.__reactDisabledLog = true;
300
- function disableLogs() {
301
- {
302
- if (disabledDepth === 0) {
303
- /* eslint-disable react-internal/no-production-logging */
304
- prevLog = console.log;
305
- prevInfo = console.info;
306
- prevWarn = console.warn;
307
- prevError = console.error;
308
- prevGroup = console.group;
309
- prevGroupCollapsed = console.groupCollapsed;
310
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
311
-
312
- var props = {
313
- configurable: true,
314
- enumerable: true,
315
- value: disabledLog,
316
- writable: true
317
- }; // $FlowFixMe Flow thinks console is immutable.
318
-
319
- Object.defineProperties(console, {
320
- info: props,
321
- log: props,
322
- warn: props,
323
- error: props,
324
- group: props,
325
- groupCollapsed: props,
326
- groupEnd: props
327
- });
328
- /* eslint-enable react-internal/no-production-logging */
329
- }
330
-
331
- disabledDepth++;
332
- }
333
- }
334
- function reenableLogs() {
335
- {
336
- disabledDepth--;
337
-
338
- if (disabledDepth === 0) {
339
- /* eslint-disable react-internal/no-production-logging */
340
- var props = {
341
- configurable: true,
342
- enumerable: true,
343
- writable: true
344
- }; // $FlowFixMe Flow thinks console is immutable.
345
-
346
- Object.defineProperties(console, {
347
- log: assign({}, props, {
348
- value: prevLog
349
- }),
350
- info: assign({}, props, {
351
- value: prevInfo
352
- }),
353
- warn: assign({}, props, {
354
- value: prevWarn
355
- }),
356
- error: assign({}, props, {
357
- value: prevError
358
- }),
359
- group: assign({}, props, {
360
- value: prevGroup
361
- }),
362
- groupCollapsed: assign({}, props, {
363
- value: prevGroupCollapsed
364
- }),
365
- groupEnd: assign({}, props, {
366
- value: prevGroupEnd
367
- })
368
- });
369
- /* eslint-enable react-internal/no-production-logging */
144
+ function testStringCoercion(value) {
145
+ return "" + value;
370
146
  }
371
-
372
- if (disabledDepth < 0) {
373
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
374
- }
375
- }
376
- }
377
-
378
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
379
- var prefix;
380
- function describeBuiltInComponentFrame(name, source, ownerFn) {
381
- {
382
- if (prefix === undefined) {
383
- // Extract the VM specific prefix used by each line.
147
+ function checkKeyStringCoercion(value) {
384
148
  try {
385
- throw Error();
386
- } catch (x) {
387
- var match = x.stack.trim().match(/\n( *(at )?)/);
388
- prefix = match && match[1] || '';
149
+ testStringCoercion(value);
150
+ var JSCompiler_inline_result = !1;
151
+ } catch (e) {
152
+ JSCompiler_inline_result = true;
389
153
  }
390
- } // We use the prefix to ensure our stacks line up with native stack frames.
391
-
392
-
393
- return '\n' + prefix + name;
394
- }
395
- }
396
- var reentry = false;
397
- var componentFrameCache;
398
-
399
- {
400
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
401
- componentFrameCache = new PossiblyWeakMap();
402
- }
403
-
404
- function describeNativeComponentFrame(fn, construct) {
405
- // If something asked for a stack inside a fake render, it should get ignored.
406
- if ( !fn || reentry) {
407
- return '';
408
- }
409
-
410
- {
411
- var frame = componentFrameCache.get(fn);
412
-
413
- if (frame !== undefined) {
414
- return frame;
415
- }
416
- }
417
-
418
- var control;
419
- reentry = true;
420
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
421
-
422
- Error.prepareStackTrace = undefined;
423
- var previousDispatcher;
424
-
425
- {
426
- previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
427
- // for warnings.
428
-
429
- ReactCurrentDispatcher.current = null;
430
- disableLogs();
431
- }
432
-
433
- try {
434
- // This should throw.
435
- if (construct) {
436
- // Something should be setting the props in the constructor.
437
- var Fake = function () {
438
- throw Error();
439
- }; // $FlowFixMe
440
-
441
-
442
- Object.defineProperty(Fake.prototype, 'props', {
443
- set: function () {
444
- // We use a throwing setter instead of frozen or non-writable props
445
- // because that won't throw in a non-strict mode function.
446
- throw Error();
447
- }
448
- });
449
-
450
- if (typeof Reflect === 'object' && Reflect.construct) {
451
- // We construct a different control for this case to include any extra
452
- // frames added by the construct call.
453
- try {
454
- Reflect.construct(Fake, []);
455
- } catch (x) {
456
- control = x;
457
- }
458
-
459
- Reflect.construct(fn, [], Fake);
460
- } else {
461
- try {
462
- Fake.call();
463
- } catch (x) {
464
- control = x;
465
- }
466
-
467
- fn.call(Fake.prototype);
154
+ if (JSCompiler_inline_result) {
155
+ JSCompiler_inline_result = console;
156
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
157
+ var JSCompiler_inline_result$jscomp$0 =
158
+ ("function" === typeof Symbol &&
159
+ Symbol.toStringTag &&
160
+ value[Symbol.toStringTag]) ||
161
+ value.constructor.name ||
162
+ "Object";
163
+ JSCompiler_temp_const.call(
164
+ JSCompiler_inline_result,
165
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
166
+ JSCompiler_inline_result$jscomp$0
167
+ );
168
+ return testStringCoercion(value);
468
169
  }
469
- } else {
170
+ }
171
+ function getTaskName(type) {
172
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
173
+ if (
174
+ "object" === typeof type &&
175
+ null !== type &&
176
+ type.$$typeof === REACT_LAZY_TYPE
177
+ )
178
+ return "<...>";
470
179
  try {
471
- throw Error();
180
+ var name = getComponentNameFromType(type);
181
+ return name ? "<" + name + ">" : "<...>";
472
182
  } catch (x) {
473
- control = x;
474
- }
475
-
476
- fn();
477
- }
478
- } catch (sample) {
479
- // This is inlined manually because closure doesn't do it for us.
480
- if (sample && control && typeof sample.stack === 'string') {
481
- // This extracts the first frame from the sample that isn't also in the control.
482
- // Skipping one frame that we assume is the frame that calls the two.
483
- var sampleLines = sample.stack.split('\n');
484
- var controlLines = control.stack.split('\n');
485
- var s = sampleLines.length - 1;
486
- var c = controlLines.length - 1;
487
-
488
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
489
- // We expect at least one stack frame to be shared.
490
- // Typically this will be the root most one. However, stack frames may be
491
- // cut off due to maximum stack limits. In this case, one maybe cut off
492
- // earlier than the other. We assume that the sample is longer or the same
493
- // and there for cut off earlier. So we should find the root most frame in
494
- // the sample somewhere in the control.
495
- c--;
496
- }
497
-
498
- for (; s >= 1 && c >= 0; s--, c--) {
499
- // Next we find the first one that isn't the same which should be the
500
- // frame that called our sample function and the control.
501
- if (sampleLines[s] !== controlLines[c]) {
502
- // In V8, the first line is describing the message but other VMs don't.
503
- // If we're about to return the first line, and the control is also on the same
504
- // line, that's a pretty good indicator that our sample threw at same line as
505
- // the control. I.e. before we entered the sample frame. So we ignore this result.
506
- // This can happen if you passed a class to function component, or non-function.
507
- if (s !== 1 || c !== 1) {
508
- do {
509
- s--;
510
- c--; // We may still have similar intermediate frames from the construct call.
511
- // The next one that isn't the same should be our match though.
512
-
513
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
514
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
515
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
516
- // but we have a user-provided "displayName"
517
- // splice it in to make the stack more readable.
518
-
519
-
520
- if (fn.displayName && _frame.includes('<anonymous>')) {
521
- _frame = _frame.replace('<anonymous>', fn.displayName);
522
- }
523
-
524
- {
525
- if (typeof fn === 'function') {
526
- componentFrameCache.set(fn, _frame);
527
- }
528
- } // Return the line we found.
529
-
530
-
531
- return _frame;
532
- }
533
- } while (s >= 1 && c >= 0);
534
- }
535
-
536
- break;
537
- }
183
+ return "<...>";
538
184
  }
539
185
  }
540
- } finally {
541
- reentry = false;
542
-
543
- {
544
- ReactCurrentDispatcher.current = previousDispatcher;
545
- reenableLogs();
186
+ function getOwner() {
187
+ var dispatcher = ReactSharedInternals.A;
188
+ return null === dispatcher ? null : dispatcher.getOwner();
546
189
  }
547
-
548
- Error.prepareStackTrace = previousPrepareStackTrace;
549
- } // Fallback to just using the name if we couldn't make it throw.
550
-
551
-
552
- var name = fn ? fn.displayName || fn.name : '';
553
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
554
-
555
- {
556
- if (typeof fn === 'function') {
557
- componentFrameCache.set(fn, syntheticFrame);
190
+ function UnknownOwner() {
191
+ return Error("react-stack-top-frame");
558
192
  }
559
- }
560
-
561
- return syntheticFrame;
562
- }
563
- function describeFunctionComponentFrame(fn, source, ownerFn) {
564
- {
565
- return describeNativeComponentFrame(fn, false);
566
- }
567
- }
568
-
569
- function shouldConstruct(Component) {
570
- var prototype = Component.prototype;
571
- return !!(prototype && prototype.isReactComponent);
572
- }
573
-
574
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
575
-
576
- if (type == null) {
577
- return '';
578
- }
579
-
580
- if (typeof type === 'function') {
581
- {
582
- return describeNativeComponentFrame(type, shouldConstruct(type));
583
- }
584
- }
585
-
586
- if (typeof type === 'string') {
587
- return describeBuiltInComponentFrame(type);
588
- }
589
-
590
- switch (type) {
591
- case REACT_SUSPENSE_TYPE:
592
- return describeBuiltInComponentFrame('Suspense');
593
-
594
- case REACT_SUSPENSE_LIST_TYPE:
595
- return describeBuiltInComponentFrame('SuspenseList');
596
- }
597
-
598
- if (typeof type === 'object') {
599
- switch (type.$$typeof) {
600
- case REACT_FORWARD_REF_TYPE:
601
- return describeFunctionComponentFrame(type.render);
602
-
603
- case REACT_MEMO_TYPE:
604
- // Memo may contain any component type so we recursively resolve it.
605
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
606
-
607
- case REACT_LAZY_TYPE:
608
- {
609
- var lazyComponent = type;
610
- var payload = lazyComponent._payload;
611
- var init = lazyComponent._init;
612
-
613
- try {
614
- // Lazy may contain any component type so we recursively resolve it.
615
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
616
- } catch (x) {}
617
- }
618
- }
619
- }
620
-
621
- return '';
622
- }
623
-
624
- var hasOwnProperty = Object.prototype.hasOwnProperty;
625
-
626
- var loggedTypeFailures = {};
627
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
628
-
629
- function setCurrentlyValidatingElement(element) {
630
- {
631
- if (element) {
632
- var owner = element._owner;
633
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
634
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
635
- } else {
636
- ReactDebugCurrentFrame.setExtraStackFrame(null);
637
- }
638
- }
639
- }
640
-
641
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
642
- {
643
- // $FlowFixMe This is okay but Flow doesn't know it.
644
- var has = Function.call.bind(hasOwnProperty);
645
-
646
- for (var typeSpecName in typeSpecs) {
647
- if (has(typeSpecs, typeSpecName)) {
648
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
649
- // fail the render phase where it didn't fail before. So we log it.
650
- // After these have been cleaned up, we'll let them throw.
651
-
652
- try {
653
- // This is intentionally an invariant that gets caught. It's the same
654
- // behavior as without this statement except with a better message.
655
- if (typeof typeSpecs[typeSpecName] !== 'function') {
656
- // eslint-disable-next-line react-internal/prod-error-codes
657
- 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`.');
658
- err.name = 'Invariant Violation';
659
- throw err;
660
- }
661
-
662
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
663
- } catch (ex) {
664
- error$1 = ex;
665
- }
666
-
667
- if (error$1 && !(error$1 instanceof Error)) {
668
- setCurrentlyValidatingElement(element);
669
-
670
- 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);
671
-
672
- setCurrentlyValidatingElement(null);
673
- }
674
-
675
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
676
- // Only monitor this failure once because there tends to be a lot of the
677
- // same error.
678
- loggedTypeFailures[error$1.message] = true;
679
- setCurrentlyValidatingElement(element);
680
-
681
- error('Failed %s type: %s', location, error$1.message);
682
-
683
- setCurrentlyValidatingElement(null);
684
- }
193
+ function hasValidKey(config) {
194
+ if (hasOwnProperty.call(config, "key")) {
195
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
196
+ if (getter && getter.isReactWarning) return false;
685
197
  }
686
- }
687
- }
688
- }
689
-
690
- var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
691
-
692
- function isArray(a) {
693
- return isArrayImpl(a);
694
- }
695
-
696
- /*
697
- * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
698
- * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
699
- *
700
- * The functions in this module will throw an easier-to-understand,
701
- * easier-to-debug exception with a clear errors message message explaining the
702
- * problem. (Instead of a confusing exception thrown inside the implementation
703
- * of the `value` object).
704
- */
705
- // $FlowFixMe only called in DEV, so void return is not possible.
706
- function typeName(value) {
707
- {
708
- // toStringTag is needed for namespaced types like Temporal.Instant
709
- var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
710
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
711
- return type;
712
- }
713
- } // $FlowFixMe only called in DEV, so void return is not possible.
714
-
715
-
716
- function willCoercionThrow(value) {
717
- {
718
- try {
719
- testStringCoercion(value);
720
- return false;
721
- } catch (e) {
722
- return true;
723
- }
724
- }
725
- }
726
-
727
- function testStringCoercion(value) {
728
- // If you ended up here by following an exception call stack, here's what's
729
- // happened: you supplied an object or symbol value to React (as a prop, key,
730
- // DOM attribute, CSS property, string ref, etc.) and when React tried to
731
- // coerce it to a string using `'' + value`, an exception was thrown.
732
- //
733
- // The most common types that will cause this exception are `Symbol` instances
734
- // and Temporal objects like `Temporal.Instant`. But any object that has a
735
- // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
736
- // exception. (Library authors do this to prevent users from using built-in
737
- // numeric operators like `+` or comparison operators like `>=` because custom
738
- // methods are needed to perform accurate arithmetic or comparison.)
739
- //
740
- // To fix the problem, coerce this object or symbol value to a string before
741
- // passing it to React. The most reliable way is usually `String(value)`.
742
- //
743
- // To find which value is throwing, check the browser or debugger console.
744
- // Before this exception was thrown, there should be `console.error` output
745
- // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
746
- // problem and how that type was used: key, atrribute, input value prop, etc.
747
- // In most cases, this console output also shows the component and its
748
- // ancestor components where the exception happened.
749
- //
750
- // eslint-disable-next-line react-internal/safe-string-coercion
751
- return '' + value;
752
- }
753
- function checkKeyStringCoercion(value) {
754
- {
755
- if (willCoercionThrow(value)) {
756
- error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
757
-
758
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
759
- }
760
- }
761
- }
762
-
763
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
764
- var RESERVED_PROPS = {
765
- key: true,
766
- ref: true,
767
- __self: true,
768
- __source: true
769
- };
770
- var specialPropKeyWarningShown;
771
- var specialPropRefWarningShown;
772
-
773
- function hasValidRef(config) {
774
- {
775
- if (hasOwnProperty.call(config, 'ref')) {
776
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
777
-
778
- if (getter && getter.isReactWarning) {
779
- return false;
198
+ return void 0 !== config.key;
199
+ }
200
+ function defineKeyPropWarningGetter(props, displayName) {
201
+ function warnAboutAccessingKey() {
202
+ specialPropKeyWarningShown ||
203
+ ((specialPropKeyWarningShown = true),
204
+ console.error(
205
+ "%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)",
206
+ displayName
207
+ ));
780
208
  }
209
+ warnAboutAccessingKey.isReactWarning = true;
210
+ Object.defineProperty(props, "key", {
211
+ get: warnAboutAccessingKey,
212
+ configurable: true
213
+ });
781
214
  }
782
- }
783
-
784
- return config.ref !== undefined;
785
- }
786
-
787
- function hasValidKey(config) {
788
- {
789
- if (hasOwnProperty.call(config, 'key')) {
790
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
791
-
792
- if (getter && getter.isReactWarning) {
793
- return false;
215
+ function elementRefGetterWithDeprecationWarning() {
216
+ var componentName = getComponentNameFromType(this.type);
217
+ didWarnAboutElementRef[componentName] ||
218
+ ((didWarnAboutElementRef[componentName] = true),
219
+ console.error(
220
+ "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."
221
+ ));
222
+ componentName = this.props.ref;
223
+ return void 0 !== componentName ? componentName : null;
224
+ }
225
+ function ReactElement(
226
+ type,
227
+ key,
228
+ self,
229
+ source,
230
+ owner,
231
+ props,
232
+ debugStack,
233
+ debugTask
234
+ ) {
235
+ self = props.ref;
236
+ type = {
237
+ $$typeof: REACT_ELEMENT_TYPE,
238
+ type: type,
239
+ key: key,
240
+ props: props,
241
+ _owner: owner
242
+ };
243
+ null !== (void 0 !== self ? self : null)
244
+ ? Object.defineProperty(type, "ref", {
245
+ enumerable: false,
246
+ get: elementRefGetterWithDeprecationWarning
247
+ })
248
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
249
+ type._store = {};
250
+ Object.defineProperty(type._store, "validated", {
251
+ configurable: false,
252
+ enumerable: false,
253
+ writable: true,
254
+ value: 0
255
+ });
256
+ Object.defineProperty(type, "_debugInfo", {
257
+ configurable: false,
258
+ enumerable: false,
259
+ writable: true,
260
+ value: null
261
+ });
262
+ Object.defineProperty(type, "_debugStack", {
263
+ configurable: false,
264
+ enumerable: false,
265
+ writable: true,
266
+ value: debugStack
267
+ });
268
+ Object.defineProperty(type, "_debugTask", {
269
+ configurable: false,
270
+ enumerable: false,
271
+ writable: true,
272
+ value: debugTask
273
+ });
274
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
275
+ return type;
276
+ }
277
+ function jsxDEVImpl(
278
+ type,
279
+ config,
280
+ maybeKey,
281
+ isStaticChildren,
282
+ source,
283
+ self,
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));
794
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
+ self,
345
+ source,
346
+ getOwner(),
347
+ maybeKey,
348
+ debugStack,
349
+ debugTask
350
+ );
795
351
  }
796
- }
797
-
798
- return config.key !== undefined;
799
- }
800
-
801
- function warnIfStringRefCannotBeAutoConverted(config, self) {
802
- {
803
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && self) ;
804
- }
805
- }
806
-
807
- function defineKeyPropWarningGetter(props, displayName) {
808
- {
809
- var warnAboutAccessingKey = function () {
810
- if (!specialPropKeyWarningShown) {
811
- specialPropKeyWarningShown = true;
812
-
813
- 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);
352
+ function validateChildKeys(node) {
353
+ "object" === typeof node &&
354
+ null !== node &&
355
+ node.$$typeof === REACT_ELEMENT_TYPE &&
356
+ node._store &&
357
+ (node._store.validated = 1);
358
+ }
359
+ var React = React__default,
360
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
361
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
362
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
363
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
364
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler");
365
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
366
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
367
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
368
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
369
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
370
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
371
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
372
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
373
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
374
+ ReactSharedInternals =
375
+ React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
376
+ hasOwnProperty = Object.prototype.hasOwnProperty,
377
+ isArrayImpl = Array.isArray,
378
+ createTask = console.createTask
379
+ ? console.createTask
380
+ : function () {
381
+ return null;
382
+ };
383
+ React = {
384
+ react_stack_bottom_frame: function (callStackForError) {
385
+ return callStackForError();
814
386
  }
815
387
  };
816
-
817
- warnAboutAccessingKey.isReactWarning = true;
818
- Object.defineProperty(props, 'key', {
819
- get: warnAboutAccessingKey,
820
- configurable: true
821
- });
822
- }
823
- }
824
-
825
- function defineRefPropWarningGetter(props, displayName) {
826
- {
827
- var warnAboutAccessingRef = function () {
828
- if (!specialPropRefWarningShown) {
829
- specialPropRefWarningShown = true;
830
-
831
- 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);
832
- }
388
+ var specialPropKeyWarningShown;
389
+ var didWarnAboutElementRef = {};
390
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
391
+ React,
392
+ UnknownOwner
393
+ )();
394
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
395
+ var didWarnAboutKeySpread = {};
396
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
397
+ reactJsxRuntime_development.jsx = function (type, config, maybeKey, source, self) {
398
+ var trackActualOwner =
399
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
400
+ return jsxDEVImpl(
401
+ type,
402
+ config,
403
+ maybeKey,
404
+ false,
405
+ source,
406
+ self,
407
+ trackActualOwner
408
+ ? Error("react-stack-top-frame")
409
+ : unknownOwnerDebugStack,
410
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
411
+ );
412
+ };
413
+ reactJsxRuntime_development.jsxs = function (type, config, maybeKey, source, self) {
414
+ var trackActualOwner =
415
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
416
+ return jsxDEVImpl(
417
+ type,
418
+ config,
419
+ maybeKey,
420
+ true,
421
+ source,
422
+ self,
423
+ trackActualOwner
424
+ ? Error("react-stack-top-frame")
425
+ : unknownOwnerDebugStack,
426
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
427
+ );
833
428
  };
834
-
835
- warnAboutAccessingRef.isReactWarning = true;
836
- Object.defineProperty(props, 'ref', {
837
- get: warnAboutAccessingRef,
838
- configurable: true
839
- });
840
- }
841
- }
842
- /**
843
- * Factory method to create a new React element. This no longer adheres to
844
- * the class pattern, so do not use new to call it. Also, instanceof check
845
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
846
- * if something is a React Element.
847
- *
848
- * @param {*} type
849
- * @param {*} props
850
- * @param {*} key
851
- * @param {string|object} ref
852
- * @param {*} owner
853
- * @param {*} self A *temporary* helper to detect places where `this` is
854
- * different from the `owner` when React.createElement is called, so that we
855
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
856
- * functions, and as long as `this` and owner are the same, there will be no
857
- * change in behavior.
858
- * @param {*} source An annotation object (added by a transpiler or otherwise)
859
- * indicating filename, line number, and/or other information.
860
- * @internal
861
- */
862
-
863
-
864
- var ReactElement = function (type, key, ref, self, source, owner, props) {
865
- var element = {
866
- // This tag allows us to uniquely identify this as a React Element
867
- $$typeof: REACT_ELEMENT_TYPE,
868
- // Built-in properties that belong on the element
869
- type: type,
870
- key: key,
871
- ref: ref,
872
- props: props,
873
- // Record the component responsible for creating this element.
874
- _owner: owner
875
- };
876
-
877
- {
878
- // The validation flag is currently mutative. We put it on
879
- // an external backing store so that we can freeze the whole object.
880
- // This can be replaced with a WeakMap once they are implemented in
881
- // commonly used development environments.
882
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
883
- // the validation flag non-enumerable (where possible, which should
884
- // include every environment we run tests in), so the test framework
885
- // ignores it.
886
-
887
- Object.defineProperty(element._store, 'validated', {
888
- configurable: false,
889
- enumerable: false,
890
- writable: true,
891
- value: false
892
- }); // self and source are DEV only properties.
893
-
894
- Object.defineProperty(element, '_self', {
895
- configurable: false,
896
- enumerable: false,
897
- writable: false,
898
- value: self
899
- }); // Two elements created in two different places should be considered
900
- // equal for testing purposes and therefore we hide it from enumeration.
901
-
902
- Object.defineProperty(element, '_source', {
903
- configurable: false,
904
- enumerable: false,
905
- writable: false,
906
- value: source
907
- });
908
-
909
- if (Object.freeze) {
910
- Object.freeze(element.props);
911
- Object.freeze(element);
912
- }
913
- }
914
-
915
- return element;
916
- };
917
- /**
918
- * https://github.com/reactjs/rfcs/pull/107
919
- * @param {*} type
920
- * @param {object} props
921
- * @param {string} key
922
- */
923
-
924
- function jsxDEV(type, config, maybeKey, source, self) {
925
- {
926
- var propName; // Reserved names are extracted
927
-
928
- var props = {};
929
- var key = null;
930
- var ref = null; // Currently, key can be spread in as a prop. This causes a potential
931
- // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
932
- // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
933
- // but as an intermediary step, we will use jsxDEV for everything except
934
- // <div {...props} key="Hi" />, because we aren't currently able to tell if
935
- // key is explicitly declared to be undefined or not.
936
-
937
- if (maybeKey !== undefined) {
938
- {
939
- checkKeyStringCoercion(maybeKey);
940
- }
941
-
942
- key = '' + maybeKey;
943
- }
944
-
945
- if (hasValidKey(config)) {
946
- {
947
- checkKeyStringCoercion(config.key);
948
- }
949
-
950
- key = '' + config.key;
951
- }
952
-
953
- if (hasValidRef(config)) {
954
- ref = config.ref;
955
- warnIfStringRefCannotBeAutoConverted(config, self);
956
- } // Remaining properties are added to a new props object
957
-
958
-
959
- for (propName in config) {
960
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
961
- props[propName] = config[propName];
962
- }
963
- } // Resolve default props
964
-
965
-
966
- if (type && type.defaultProps) {
967
- var defaultProps = type.defaultProps;
968
-
969
- for (propName in defaultProps) {
970
- if (props[propName] === undefined) {
971
- props[propName] = defaultProps[propName];
972
- }
973
- }
974
- }
975
-
976
- if (key || ref) {
977
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
978
-
979
- if (key) {
980
- defineKeyPropWarningGetter(props, displayName);
981
- }
982
-
983
- if (ref) {
984
- defineRefPropWarningGetter(props, displayName);
985
- }
986
- }
987
-
988
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
989
- }
990
- }
991
-
992
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
993
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
994
-
995
- function setCurrentlyValidatingElement$1(element) {
996
- {
997
- if (element) {
998
- var owner = element._owner;
999
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1000
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1001
- } else {
1002
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1003
- }
1004
- }
1005
- }
1006
-
1007
- var propTypesMisspellWarningShown;
1008
-
1009
- {
1010
- propTypesMisspellWarningShown = false;
1011
- }
1012
- /**
1013
- * Verifies the object is a ReactElement.
1014
- * See https://reactjs.org/docs/react-api.html#isvalidelement
1015
- * @param {?object} object
1016
- * @return {boolean} True if `object` is a ReactElement.
1017
- * @final
1018
- */
1019
-
1020
-
1021
- function isValidElement(object) {
1022
- {
1023
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1024
- }
1025
- }
1026
-
1027
- function getDeclarationErrorAddendum() {
1028
- {
1029
- if (ReactCurrentOwner$1.current) {
1030
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
1031
-
1032
- if (name) {
1033
- return '\n\nCheck the render method of `' + name + '`.';
1034
- }
1035
- }
1036
-
1037
- return '';
1038
- }
1039
- }
1040
-
1041
- function getSourceInfoErrorAddendum(source) {
1042
- {
1043
-
1044
- return '';
1045
- }
1046
- }
1047
- /**
1048
- * Warn if there's no key explicitly set on dynamic arrays of children or
1049
- * object keys are not valid. This allows us to keep track of children between
1050
- * updates.
1051
- */
1052
-
1053
-
1054
- var ownerHasKeyUseWarning = {};
1055
-
1056
- function getCurrentComponentErrorInfo(parentType) {
1057
- {
1058
- var info = getDeclarationErrorAddendum();
1059
-
1060
- if (!info) {
1061
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
1062
-
1063
- if (parentName) {
1064
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1065
- }
1066
- }
1067
-
1068
- return info;
1069
- }
1070
- }
1071
- /**
1072
- * Warn if the element doesn't have an explicit key assigned to it.
1073
- * This element is in an array. The array could grow and shrink or be
1074
- * reordered. All children that haven't already been validated are required to
1075
- * have a "key" property assigned to it. Error statuses are cached so a warning
1076
- * will only be shown once.
1077
- *
1078
- * @internal
1079
- * @param {ReactElement} element Element that requires a key.
1080
- * @param {*} parentType element's parent's type.
1081
- */
1082
-
1083
-
1084
- function validateExplicitKey(element, parentType) {
1085
- {
1086
- if (!element._store || element._store.validated || element.key != null) {
1087
- return;
1088
- }
1089
-
1090
- element._store.validated = true;
1091
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1092
-
1093
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1094
- return;
1095
- }
1096
-
1097
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
1098
- // property, it may be the creator of the child that's responsible for
1099
- // assigning it a key.
1100
-
1101
- var childOwner = '';
1102
-
1103
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
1104
- // Give the component that originally created this child.
1105
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1106
- }
1107
-
1108
- setCurrentlyValidatingElement$1(element);
1109
-
1110
- 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);
1111
-
1112
- setCurrentlyValidatingElement$1(null);
1113
- }
1114
- }
1115
- /**
1116
- * Ensure that every element either is passed in a static location, in an
1117
- * array with an explicit keys property defined, or in an object literal
1118
- * with valid key property.
1119
- *
1120
- * @internal
1121
- * @param {ReactNode} node Statically passed child of any type.
1122
- * @param {*} parentType node's parent's type.
1123
- */
1124
-
1125
-
1126
- function validateChildKeys(node, parentType) {
1127
- {
1128
- if (typeof node !== 'object') {
1129
- return;
1130
- }
1131
-
1132
- if (isArray(node)) {
1133
- for (var i = 0; i < node.length; i++) {
1134
- var child = node[i];
1135
-
1136
- if (isValidElement(child)) {
1137
- validateExplicitKey(child, parentType);
1138
- }
1139
- }
1140
- } else if (isValidElement(node)) {
1141
- // This element was passed in a valid location.
1142
- if (node._store) {
1143
- node._store.validated = true;
1144
- }
1145
- } else if (node) {
1146
- var iteratorFn = getIteratorFn(node);
1147
-
1148
- if (typeof iteratorFn === 'function') {
1149
- // Entry iterators used to provide implicit keys,
1150
- // but now we print a separate warning for them later.
1151
- if (iteratorFn !== node.entries) {
1152
- var iterator = iteratorFn.call(node);
1153
- var step;
1154
-
1155
- while (!(step = iterator.next()).done) {
1156
- if (isValidElement(step.value)) {
1157
- validateExplicitKey(step.value, parentType);
1158
- }
1159
- }
1160
- }
1161
- }
1162
- }
1163
- }
1164
- }
1165
- /**
1166
- * Given an element, validate that its props follow the propTypes definition,
1167
- * provided by the type.
1168
- *
1169
- * @param {ReactElement} element
1170
- */
1171
-
1172
-
1173
- function validatePropTypes(element) {
1174
- {
1175
- var type = element.type;
1176
-
1177
- if (type === null || type === undefined || typeof type === 'string') {
1178
- return;
1179
- }
1180
-
1181
- var propTypes;
1182
-
1183
- if (typeof type === 'function') {
1184
- propTypes = type.propTypes;
1185
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1186
- // Inner props are checked in the reconciler.
1187
- type.$$typeof === REACT_MEMO_TYPE)) {
1188
- propTypes = type.propTypes;
1189
- } else {
1190
- return;
1191
- }
1192
-
1193
- if (propTypes) {
1194
- // Intentionally inside to avoid triggering lazy initializers:
1195
- var name = getComponentNameFromType(type);
1196
- checkPropTypes(propTypes, element.props, 'prop', name, element);
1197
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
1198
- propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
1199
-
1200
- var _name = getComponentNameFromType(type);
1201
-
1202
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
1203
- }
1204
-
1205
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
1206
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
1207
- }
1208
- }
1209
- }
1210
- /**
1211
- * Given a fragment, validate that it can only be provided with fragment props
1212
- * @param {ReactElement} fragment
1213
- */
1214
-
1215
-
1216
- function validateFragmentProps(fragment) {
1217
- {
1218
- var keys = Object.keys(fragment.props);
1219
-
1220
- for (var i = 0; i < keys.length; i++) {
1221
- var key = keys[i];
1222
-
1223
- if (key !== 'children' && key !== 'key') {
1224
- setCurrentlyValidatingElement$1(fragment);
1225
-
1226
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
1227
-
1228
- setCurrentlyValidatingElement$1(null);
1229
- break;
1230
- }
1231
- }
1232
-
1233
- if (fragment.ref !== null) {
1234
- setCurrentlyValidatingElement$1(fragment);
1235
-
1236
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
1237
-
1238
- setCurrentlyValidatingElement$1(null);
1239
- }
1240
- }
1241
- }
1242
-
1243
- var didWarnAboutKeySpread = {};
1244
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
1245
- {
1246
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
1247
- // succeed and there will likely be errors in render.
1248
-
1249
- if (!validType) {
1250
- var info = '';
1251
-
1252
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
1253
- 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.";
1254
- }
1255
-
1256
- var sourceInfo = getSourceInfoErrorAddendum();
1257
-
1258
- if (sourceInfo) {
1259
- info += sourceInfo;
1260
- } else {
1261
- info += getDeclarationErrorAddendum();
1262
- }
1263
-
1264
- var typeString;
1265
-
1266
- if (type === null) {
1267
- typeString = 'null';
1268
- } else if (isArray(type)) {
1269
- typeString = 'array';
1270
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
1271
- typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
1272
- info = ' Did you accidentally export a JSX literal instead of a component?';
1273
- } else {
1274
- typeString = typeof type;
1275
- }
1276
-
1277
- 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);
1278
- }
1279
-
1280
- var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
1281
- // TODO: Drop this when these are no longer allowed as the type argument.
1282
-
1283
- if (element == null) {
1284
- return element;
1285
- } // Skip key warning if the type isn't valid since our key validation logic
1286
- // doesn't expect a non-string/function type and can throw confusing errors.
1287
- // We don't want exception behavior to differ between dev and prod.
1288
- // (Rendering will throw with a helpful message and as soon as the type is
1289
- // fixed, the key warnings will appear.)
1290
-
1291
-
1292
- if (validType) {
1293
- var children = props.children;
1294
-
1295
- if (children !== undefined) {
1296
- if (isStaticChildren) {
1297
- if (isArray(children)) {
1298
- for (var i = 0; i < children.length; i++) {
1299
- validateChildKeys(children[i], type);
1300
- }
1301
-
1302
- if (Object.freeze) {
1303
- Object.freeze(children);
1304
- }
1305
- } else {
1306
- 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.');
1307
- }
1308
- } else {
1309
- validateChildKeys(children, type);
1310
- }
1311
- }
1312
- }
1313
-
1314
- {
1315
- if (hasOwnProperty.call(props, 'key')) {
1316
- var componentName = getComponentNameFromType(type);
1317
- var keys = Object.keys(props).filter(function (k) {
1318
- return k !== 'key';
1319
- });
1320
- var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
1321
-
1322
- if (!didWarnAboutKeySpread[componentName + beforeExample]) {
1323
- var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
1324
-
1325
- 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);
1326
-
1327
- didWarnAboutKeySpread[componentName + beforeExample] = true;
1328
- }
1329
- }
1330
- }
1331
-
1332
- if (type === REACT_FRAGMENT_TYPE) {
1333
- validateFragmentProps(element);
1334
- } else {
1335
- validatePropTypes(element);
1336
- }
1337
-
1338
- return element;
1339
- }
1340
- } // These two functions exist to still get child warnings in dev
1341
- // even with the prod transform. This means that jsxDEV is purely
1342
- // opt-in behavior for better messages but that we won't stop
1343
- // giving you warnings if you use production apis.
1344
-
1345
- function jsxWithValidationStatic(type, props, key) {
1346
- {
1347
- return jsxWithValidation(type, props, key, true);
1348
- }
1349
- }
1350
- function jsxWithValidationDynamic(type, props, key) {
1351
- {
1352
- return jsxWithValidation(type, props, key, false);
1353
- }
1354
- }
1355
-
1356
- var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
1357
- // for now we can ship identical prod functions
1358
-
1359
- var jsxs = jsxWithValidationStatic ;
1360
-
1361
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
1362
- reactJsxRuntime_development.jsx = jsx;
1363
- reactJsxRuntime_development.jsxs = jsxs;
1364
429
  })();
1365
- }
1366
430
  return reactJsxRuntime_development;
1367
431
  }
1368
432
 
1369
433
  if (process.env.NODE_ENV === 'production') {
1370
- jsxRuntime.exports = requireReactJsxRuntime_production_min();
434
+ jsxRuntime.exports = requireReactJsxRuntime_production();
1371
435
  } else {
1372
436
  jsxRuntime.exports = requireReactJsxRuntime_development();
1373
437
  }
@@ -84565,7 +83629,7 @@ const useApproval = (amount, currency, spender, account, chainId) => {
84565
83629
  return [approvalState !== null && approvalState !== void 0 ? approvalState : ApprovalState.NOT_APPROVED, handleApprove];
84566
83630
  };
84567
83631
 
84568
- const version$1 = '2.30.6';
83632
+ const version$1 = '2.34.0';
84569
83633
 
84570
83634
  let errorConfig = {
84571
83635
  getDocsUrl: ({ docsBaseUrl, docsPath = '', docsSlug, }) => docsPath
@@ -88460,8 +87524,8 @@ const chartOptions = [
88460
87524
  },
88461
87525
  ];
88462
87526
 
88463
- function _arrayWithHoles$2(arr) {
88464
- if (Array.isArray(arr)) return arr;
87527
+ function _arrayWithHoles$2(r) {
87528
+ if (Array.isArray(r)) return r;
88465
87529
  }
88466
87530
 
88467
87531
  function _iterableToArrayLimit$2(r, l) {
@@ -88489,27 +87553,26 @@ function _iterableToArrayLimit$2(r, l) {
88489
87553
  }
88490
87554
  }
88491
87555
 
88492
- function _arrayLikeToArray$2$1(arr, len) {
88493
- if (len == null || len > arr.length) len = arr.length;
88494
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
88495
- return arr2;
87556
+ function _arrayLikeToArray$2$1(r, a) {
87557
+ (null == a || a > r.length) && (a = r.length);
87558
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
87559
+ return n;
88496
87560
  }
88497
87561
 
88498
- function _unsupportedIterableToArray$2$1(o, minLen) {
88499
- if (!o) return;
88500
- if (typeof o === "string") return _arrayLikeToArray$2$1(o, minLen);
88501
- var n = Object.prototype.toString.call(o).slice(8, -1);
88502
- if (n === "Object" && o.constructor) n = o.constructor.name;
88503
- if (n === "Map" || n === "Set") return Array.from(o);
88504
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2$1(o, minLen);
87562
+ function _unsupportedIterableToArray$2$1(r, a) {
87563
+ if (r) {
87564
+ if ("string" == typeof r) return _arrayLikeToArray$2$1(r, a);
87565
+ var t = {}.toString.call(r).slice(8, -1);
87566
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2$1(r, a) : void 0;
87567
+ }
88505
87568
  }
88506
87569
 
88507
87570
  function _nonIterableRest$2() {
88508
87571
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
88509
87572
  }
88510
87573
 
88511
- function _slicedToArray$2(arr, i) {
88512
- return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$2$1(arr, i) || _nonIterableRest$2();
87574
+ function _slicedToArray$2(r, e) {
87575
+ return _arrayWithHoles$2(r) || _iterableToArrayLimit$2(r, e) || _unsupportedIterableToArray$2$1(r, e) || _nonIterableRest$2();
88513
87576
  }
88514
87577
 
88515
87578
  function _typeof$2(o) {
@@ -88553,84 +87616,71 @@ function classNames() {
88553
87616
  return undefined;
88554
87617
  }
88555
87618
 
88556
- function _arrayWithoutHoles$1(arr) {
88557
- if (Array.isArray(arr)) return _arrayLikeToArray$2$1(arr);
87619
+ function _arrayWithoutHoles$1(r) {
87620
+ if (Array.isArray(r)) return _arrayLikeToArray$2$1(r);
88558
87621
  }
88559
87622
 
88560
- function _iterableToArray$1(iter) {
88561
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
87623
+ function _iterableToArray$1(r) {
87624
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
88562
87625
  }
88563
87626
 
88564
87627
  function _nonIterableSpread$1() {
88565
87628
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
88566
87629
  }
88567
87630
 
88568
- function _toConsumableArray$1(arr) {
88569
- return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$2$1(arr) || _nonIterableSpread$1();
87631
+ function _toConsumableArray$1(r) {
87632
+ return _arrayWithoutHoles$1(r) || _iterableToArray$1(r) || _unsupportedIterableToArray$2$1(r) || _nonIterableSpread$1();
88570
87633
  }
88571
87634
 
88572
- function _classCallCheck$1(instance, Constructor) {
88573
- if (!(instance instanceof Constructor)) {
88574
- throw new TypeError("Cannot call a class as a function");
88575
- }
87635
+ function _classCallCheck$1(a, n) {
87636
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
88576
87637
  }
88577
87638
 
88578
- function _toPrimitive$2(input, hint) {
88579
- if (_typeof$2(input) !== "object" || input === null) return input;
88580
- var prim = input[Symbol.toPrimitive];
88581
- if (prim !== undefined) {
88582
- var res = prim.call(input, hint);
88583
- if (_typeof$2(res) !== "object") return res;
87639
+ function toPrimitive$2(t, r) {
87640
+ if ("object" != _typeof$2(t) || !t) return t;
87641
+ var e = t[Symbol.toPrimitive];
87642
+ if (void 0 !== e) {
87643
+ var i = e.call(t, r);
87644
+ if ("object" != _typeof$2(i)) return i;
88584
87645
  throw new TypeError("@@toPrimitive must return a primitive value.");
88585
87646
  }
88586
- return (hint === "string" ? String : Number)(input);
87647
+ return ("string" === r ? String : Number)(t);
88587
87648
  }
88588
87649
 
88589
- function _toPropertyKey$2(arg) {
88590
- var key = _toPrimitive$2(arg, "string");
88591
- return _typeof$2(key) === "symbol" ? key : String(key);
87650
+ function toPropertyKey$2(t) {
87651
+ var i = toPrimitive$2(t, "string");
87652
+ return "symbol" == _typeof$2(i) ? i : i + "";
88592
87653
  }
88593
87654
 
88594
- function _defineProperties(target, props) {
88595
- for (var i = 0; i < props.length; i++) {
88596
- var descriptor = props[i];
88597
- descriptor.enumerable = descriptor.enumerable || false;
88598
- descriptor.configurable = true;
88599
- if ("value" in descriptor) descriptor.writable = true;
88600
- Object.defineProperty(target, _toPropertyKey$2(descriptor.key), descriptor);
87655
+ function _defineProperties(e, r) {
87656
+ for (var t = 0; t < r.length; t++) {
87657
+ var o = r[t];
87658
+ o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, toPropertyKey$2(o.key), o);
88601
87659
  }
88602
87660
  }
88603
- function _createClass$1(Constructor, protoProps, staticProps) {
88604
- if (staticProps) _defineProperties(Constructor, staticProps);
88605
- Object.defineProperty(Constructor, "prototype", {
87661
+ function _createClass$1(e, r, t) {
87662
+ return t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
88606
87663
  writable: false
88607
- });
88608
- return Constructor;
87664
+ }), e;
88609
87665
  }
88610
87666
 
88611
- function _defineProperty$2(obj, key, value) {
88612
- key = _toPropertyKey$2(key);
88613
- if (key in obj) {
88614
- Object.defineProperty(obj, key, {
88615
- value: value,
88616
- enumerable: true,
88617
- configurable: true,
88618
- writable: true
88619
- });
88620
- } else {
88621
- obj[key] = value;
88622
- }
88623
- return obj;
87667
+ function _defineProperty$2(e, r, t) {
87668
+ return (r = toPropertyKey$2(r)) in e ? Object.defineProperty(e, r, {
87669
+ value: t,
87670
+ enumerable: true,
87671
+ configurable: true,
87672
+ writable: true
87673
+ }) : e[r] = t, e;
88624
87674
  }
88625
87675
 
88626
- function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1$1(o)) || allowArrayLike) { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
88627
- function _unsupportedIterableToArray$1$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1$1(o, minLen); }
88628
- function _arrayLikeToArray$1$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
87676
+ function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1$1(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: true } : { done: false, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = true, u = false; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = true, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
87677
+ function _unsupportedIterableToArray$1$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1$1(r, a) : void 0; } }
87678
+ function _arrayLikeToArray$1$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
88629
87679
  var DomHandler = /*#__PURE__*/function () {
88630
87680
  function DomHandler() {
88631
87681
  _classCallCheck$1(this, DomHandler);
88632
87682
  }
88633
- _createClass$1(DomHandler, null, [{
87683
+ return _createClass$1(DomHandler, null, [{
88634
87684
  key: "innerWidth",
88635
87685
  value: function innerWidth(el) {
88636
87686
  if (el) {
@@ -88645,10 +87695,10 @@ var DomHandler = /*#__PURE__*/function () {
88645
87695
  key: "width",
88646
87696
  value: function width(el) {
88647
87697
  if (el) {
88648
- var width = el.offsetWidth;
87698
+ var _width = el.offsetWidth;
88649
87699
  var style = getComputedStyle(el);
88650
- width = width - (parseFloat(style.paddingLeft) + parseFloat(style.paddingRight));
88651
- return width;
87700
+ _width = _width - (parseFloat(style.paddingLeft) + parseFloat(style.paddingRight));
87701
+ return _width;
88652
87702
  }
88653
87703
  return 0;
88654
87704
  }
@@ -88866,7 +87916,7 @@ var DomHandler = /*#__PURE__*/function () {
88866
87916
  var _this = this;
88867
87917
  var attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
88868
87918
  if (element) {
88869
- var computedStyles = function computedStyles(rule, value) {
87919
+ var _computedStyles = function computedStyles(rule, value) {
88870
87920
  var _element$$attrs, _element$$attrs2;
88871
87921
  var styles = element !== null && element !== void 0 && (_element$$attrs = element.$attrs) !== null && _element$$attrs !== void 0 && _element$$attrs[rule] ? [element === null || element === void 0 || (_element$$attrs2 = element.$attrs) === null || _element$$attrs2 === void 0 ? void 0 : _element$$attrs2[rule]] : [];
88872
87922
  return [value].flat().reduce(function (cv, v) {
@@ -88875,7 +87925,7 @@ var DomHandler = /*#__PURE__*/function () {
88875
87925
  if (type === 'string' || type === 'number') {
88876
87926
  cv.push(v);
88877
87927
  } else if (type === 'object') {
88878
- var _cv = Array.isArray(v) ? computedStyles(rule, v) : Object.entries(v).map(function (_ref3) {
87928
+ var _cv = Array.isArray(v) ? _computedStyles(rule, v) : Object.entries(v).map(function (_ref3) {
88879
87929
  var _ref4 = _slicedToArray$2(_ref3, 2),
88880
87930
  _k = _ref4[0],
88881
87931
  _v = _ref4[1];
@@ -88900,7 +87950,7 @@ var DomHandler = /*#__PURE__*/function () {
88900
87950
  } else if (key === 'p-bind') {
88901
87951
  _this.setAttributes(element, value);
88902
87952
  } else {
88903
- value = key === 'class' ? _toConsumableArray$1(new Set(computedStyles('class', value))).join(' ').trim() : key === 'style' ? computedStyles('style', value).join(';').trim() : value;
87953
+ value = key === 'class' ? _toConsumableArray$1(new Set(_computedStyles('class', value))).join(' ').trim() : key === 'style' ? _computedStyles('style', value).join(';').trim() : value;
88904
87954
  (element.$attrs = element.$attrs || {}) && (element.$attrs[key] = value);
88905
87955
  element.setAttribute(key, value);
88906
87956
  }
@@ -88998,11 +88048,18 @@ var DomHandler = /*#__PURE__*/function () {
88998
88048
  element.style.transformOrigin = 'top';
88999
88049
  }
89000
88050
  var targetOffsetPx = targetOffset.left;
89001
- var alignOffset = align === 'left' ? 0 : elementOuterWidth - targetOuterWidth;
89002
- if (targetOffsetPx + targetOuterWidth + elementOuterWidth > viewport.width) {
89003
- left = Math.max(0, targetOffsetPx + windowScrollLeft + targetOuterWidth - elementOuterWidth);
88051
+ if (align === 'left') {
88052
+ if (targetOffsetPx + elementOuterWidth > viewport.width) {
88053
+ left = Math.max(0, targetOffsetPx + windowScrollLeft + targetOuterWidth - elementOuterWidth);
88054
+ } else {
88055
+ left = targetOffsetPx + windowScrollLeft;
88056
+ }
89004
88057
  } else {
89005
- left = targetOffsetPx - alignOffset + windowScrollLeft;
88058
+ if (targetOffsetPx + targetOuterWidth - elementOuterWidth < 0) {
88059
+ left = windowScrollLeft;
88060
+ } else {
88061
+ left = targetOffsetPx + targetOuterWidth - elementOuterWidth + windowScrollLeft;
88062
+ }
89006
88063
  }
89007
88064
  element.style.top = top + 'px';
89008
88065
  element.style.left = left + 'px';
@@ -89207,34 +88264,55 @@ var DomHandler = /*#__PURE__*/function () {
89207
88264
  var parents = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
89208
88265
  return element.parentNode === null ? parents : this.getParents(element.parentNode, parents.concat([element.parentNode]));
89209
88266
  }
88267
+
88268
+ /**
88269
+ * Gets all scrollable parent elements of a given element
88270
+ * @param {HTMLElement} element - The element to find scrollable parents for
88271
+ * @returns {Array} Array of scrollable parent elements
88272
+ */
89210
88273
  }, {
89211
88274
  key: "getScrollableParents",
89212
88275
  value: function getScrollableParents(element) {
89213
- var hideOverlaysOnDocumentScrolling = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
88276
+ var _this3 = this;
89214
88277
  var scrollableParents = [];
89215
88278
  if (element) {
88279
+ // Get all parent elements
89216
88280
  var parents = this.getParents(element);
88281
+ // Regex to match auto or scroll overflow values
89217
88282
  var overflowRegex = /(auto|scroll)/;
88283
+
88284
+ /**
88285
+ * Checks if an element has overflow scroll/auto in any direction
88286
+ * @param {HTMLElement} node - Element to check
88287
+ * @returns {boolean} True if element has overflow scroll/auto
88288
+ */
89218
88289
  var overflowCheck = function overflowCheck(node) {
89219
88290
  var styleDeclaration = node ? getComputedStyle(node) : null;
89220
88291
  return styleDeclaration && (overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflow-x')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflow-y')));
89221
88292
  };
88293
+
88294
+ /**
88295
+ * Adds a scrollable parent element to the collection
88296
+ * @param {HTMLElement} node - Element to add
88297
+ */
89222
88298
  var addScrollableParent = function addScrollableParent(node) {
89223
- if (hideOverlaysOnDocumentScrolling) {
89224
- // nodeType 9 is for document element
89225
- scrollableParents.push(node.nodeName === 'BODY' || node.nodeName === 'HTML' || node.nodeType === 9 ? window : node);
89226
- } else {
89227
- scrollableParents.push(node);
89228
- }
88299
+ // For document/body/html elements, add window instead
88300
+ scrollableParents.push(node.nodeName === 'BODY' || node.nodeName === 'HTML' || _this3.isDocument(node) ? window : node);
89229
88301
  };
88302
+
88303
+ // Iterate through all parent elements
89230
88304
  var _iterator = _createForOfIteratorHelper$1(parents),
89231
88305
  _step;
89232
88306
  try {
89233
88307
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
88308
+ var _parent$dataset;
89234
88309
  var parent = _step.value;
89235
- var scrollSelectors = parent.nodeType === 1 && parent.dataset.scrollselectors;
88310
+ // Check for custom scroll selectors in data attribute
88311
+ var scrollSelectors = parent.nodeType === 1 && ((_parent$dataset = parent.dataset) === null || _parent$dataset === void 0 ? void 0 : _parent$dataset.scrollselectors);
89236
88312
  if (scrollSelectors) {
89237
88313
  var selectors = scrollSelectors.split(',');
88314
+
88315
+ // Check each selector
89238
88316
  var _iterator2 = _createForOfIteratorHelper$1(selectors),
89239
88317
  _step2;
89240
88318
  try {
@@ -89252,7 +88330,7 @@ var DomHandler = /*#__PURE__*/function () {
89252
88330
  }
89253
88331
  }
89254
88332
 
89255
- // BODY
88333
+ // Check if the parent itself is scrollable
89256
88334
  if (parent.nodeType === 1 && overflowCheck(parent)) {
89257
88335
  addScrollableParent(parent);
89258
88336
  }
@@ -89263,13 +88341,6 @@ var DomHandler = /*#__PURE__*/function () {
89263
88341
  _iterator.f();
89264
88342
  }
89265
88343
  }
89266
-
89267
- // we should always at least have the body or window
89268
- if (!scrollableParents.some(function (node) {
89269
- return node === document.body || node === window;
89270
- })) {
89271
- scrollableParents.push(window);
89272
- }
89273
88344
  return scrollableParents;
89274
88345
  }
89275
88346
  }, {
@@ -89319,15 +88390,15 @@ var DomHandler = /*#__PURE__*/function () {
89319
88390
  element.style.opacity = 0;
89320
88391
  var last = +new Date();
89321
88392
  var opacity = 0;
89322
- var tick = function tick() {
88393
+ var _tick = function tick() {
89323
88394
  opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
89324
88395
  element.style.opacity = opacity;
89325
88396
  last = +new Date();
89326
88397
  if (+opacity < 1) {
89327
- window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
88398
+ window.requestAnimationFrame && requestAnimationFrame(_tick) || setTimeout(_tick, 16);
89328
88399
  }
89329
88400
  };
89330
- tick();
88401
+ _tick();
89331
88402
  }
89332
88403
  }
89333
88404
  }, {
@@ -89409,6 +88480,11 @@ var DomHandler = /*#__PURE__*/function () {
89409
88480
  value: function isElement(obj) {
89410
88481
  return (typeof HTMLElement === "undefined" ? "undefined" : _typeof$2(HTMLElement)) === 'object' ? obj instanceof HTMLElement : obj && _typeof$2(obj) === 'object' && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === 'string';
89411
88482
  }
88483
+ }, {
88484
+ key: "isDocument",
88485
+ value: function isDocument(obj) {
88486
+ return (typeof Document === "undefined" ? "undefined" : _typeof$2(Document)) === 'object' ? obj instanceof Document : obj && _typeof$2(obj) === 'object' && obj !== null && obj.nodeType === 9;
88487
+ }
89412
88488
  }, {
89413
88489
  key: "scrollInView",
89414
88490
  value: function scrollInView(container, item) {
@@ -89648,9 +88724,9 @@ var DomHandler = /*#__PURE__*/function () {
89648
88724
  key: "applyStyle",
89649
88725
  value: function applyStyle(element, style) {
89650
88726
  if (typeof style === 'string') {
89651
- element.style.cssText = this.style;
88727
+ element.style.cssText = style;
89652
88728
  } else {
89653
- for (var prop in this.style) {
88729
+ for (var prop in style) {
89654
88730
  element.style[prop] = style[prop];
89655
88731
  }
89656
88732
  }
@@ -89746,7 +88822,7 @@ var DomHandler = /*#__PURE__*/function () {
89746
88822
  return !!(obj && obj.constructor && obj.call && obj.apply);
89747
88823
  };
89748
88824
  var element = isFunction(target) ? target() : target;
89749
- return element && element.nodeType === 9 || this.isExist(element) ? element : null;
88825
+ return this.isDocument(element) || this.isExist(element) ? element : null;
89750
88826
  }
89751
88827
 
89752
88828
  /**
@@ -89860,7 +88936,6 @@ var DomHandler = /*#__PURE__*/function () {
89860
88936
  return false;
89861
88937
  }
89862
88938
  }]);
89863
- return DomHandler;
89864
88939
  }();
89865
88940
  /**
89866
88941
  * All data- properties like data-test-id
@@ -89871,14 +88946,14 @@ _defineProperty$2(DomHandler, "DATA_PROPS", ['data-']);
89871
88946
  */
89872
88947
  _defineProperty$2(DomHandler, "ARIA_PROPS", ['aria', 'focus-target']);
89873
88948
 
89874
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike) { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
89875
- function _unsupportedIterableToArray$3(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$3(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen); }
89876
- function _arrayLikeToArray$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
88949
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$3(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: true } : { done: false, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = true, u = false; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = true, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
88950
+ function _unsupportedIterableToArray$3(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$3(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) : void 0; } }
88951
+ function _arrayLikeToArray$3(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
89877
88952
  var ObjectUtils = /*#__PURE__*/function () {
89878
88953
  function ObjectUtils() {
89879
88954
  _classCallCheck$1(this, ObjectUtils);
89880
88955
  }
89881
- _createClass$1(ObjectUtils, null, [{
88956
+ return _createClass$1(ObjectUtils, null, [{
89882
88957
  key: "equals",
89883
88958
  value: function equals(obj1, obj2, field) {
89884
88959
  if (field && obj1 && _typeof$2(obj1) === 'object' && obj2 && _typeof$2(obj2) === 'object') {
@@ -90107,13 +89182,34 @@ var ObjectUtils = /*#__PURE__*/function () {
90107
89182
  value: function getDiffProps(props, defaultProps) {
90108
89183
  return this.findDiffKeys(props, defaultProps);
90109
89184
  }
89185
+
89186
+ /**
89187
+ * Gets the value of a property which can be a function or a direct value.
89188
+ * If the property is a function, it will be invoked with the provided parameters.
89189
+ * @param {*} obj - The object to get the value from
89190
+ * @param {...*} params - Parameters to pass to the function if obj is a function
89191
+ * @returns {*} The resolved value
89192
+ */
90110
89193
  }, {
90111
89194
  key: "getPropValue",
90112
89195
  value: function getPropValue(obj) {
89196
+ // If obj is not a function, return it directly
89197
+ if (!this.isFunction(obj)) {
89198
+ return obj;
89199
+ }
89200
+
89201
+ // Handle function invocation
90113
89202
  for (var _len3 = arguments.length, params = new Array(_len3 > 1 ? _len3 - 1 : 0), _key4 = 1; _key4 < _len3; _key4++) {
90114
89203
  params[_key4 - 1] = arguments[_key4];
90115
89204
  }
90116
- return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
89205
+ if (params.length === 1) {
89206
+ // For single parameter case, unwrap array if needed to avoid extra nesting
89207
+ var param = params[0];
89208
+ return obj(Array.isArray(param) ? param[0] : param);
89209
+ }
89210
+
89211
+ // Pass all parameters to function
89212
+ return obj.apply(void 0, params);
90117
89213
  }
90118
89214
  }, {
90119
89215
  key: "getComponentProp",
@@ -90247,6 +89343,11 @@ var ObjectUtils = /*#__PURE__*/function () {
90247
89343
  value: function isLetter(_char2) {
90248
89344
  return /^[a-zA-Z\u00C0-\u017F]$/.test(_char2);
90249
89345
  }
89346
+ }, {
89347
+ key: "isScalar",
89348
+ value: function isScalar(value) {
89349
+ return value != null && (typeof value === 'string' || typeof value === 'number' || typeof value === 'bigint' || typeof value === 'boolean');
89350
+ }
90250
89351
 
90251
89352
  /**
90252
89353
  * Firefox-v103 does not currently support the "findLast" method. It is stated that this method will be supported with Firefox-v104.
@@ -90399,8 +89500,125 @@ var ObjectUtils = /*#__PURE__*/function () {
90399
89500
  obj = obj[fields[i]];
90400
89501
  }
90401
89502
  }
89503
+
89504
+ /**
89505
+ * This helper function takes an object and a dot-separated key path. It traverses the object based on the path,
89506
+ * returning the value at the specified depth. If any part of the path is missing or undefined, it returns undefined.
89507
+ *
89508
+ * Example:
89509
+ * const obj = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
89510
+ * const path = 'address.city';
89511
+ * const result = ObjectUtils.getNestedValue(obj, path);
89512
+ * console.log(result); // Output: "Wonderland"
89513
+ *
89514
+ * @param {object} obj - The object to traverse.
89515
+ * @param {string} path - The dot-separated key path.
89516
+ * @returns {*} The value at the specified depth, or undefined if any part of the path is missing or undefined.
89517
+ */
89518
+ }, {
89519
+ key: "getNestedValue",
89520
+ value: function getNestedValue(obj, path) {
89521
+ return path.split('.').reduce(function (acc, part) {
89522
+ return acc && acc[part] !== undefined ? acc[part] : undefined;
89523
+ }, obj);
89524
+ }
89525
+
89526
+ /**
89527
+ * This function takes an object and a dot-separated key path. It traverses the object based on the path,
89528
+ * returning the value at the specified depth. If any part of the path is missing or undefined, it returns undefined.
89529
+ *
89530
+ * Example:
89531
+ * const objA = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
89532
+ * const objB = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
89533
+ * const result = ObjectUtils.absoluteCompare(objA, objB);
89534
+ * console.log(result); // Output: true
89535
+ *
89536
+ * const objC = { name: 'Alice', address: { city: 'Wonderland', zip: 12346 } };
89537
+ * const result2 = ObjectUtils.absoluteCompare(objA, objC);
89538
+ * console.log(result2); // Output: false
89539
+ *
89540
+ * @param {object} objA - The first object to compare.
89541
+ * @param {object} objB - The second object to compare.
89542
+ * @param {number} [maxDepth=1] - The maximum depth to compare.
89543
+ * @param {number} [currentDepth=0] - The current depth (used internally for recursion).
89544
+ * @returns {boolean} True if the objects are equal within the specified depth, false otherwise.
89545
+ *
89546
+ */
89547
+ }, {
89548
+ key: "absoluteCompare",
89549
+ value: function absoluteCompare(objA, objB) {
89550
+ var maxDepth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
89551
+ var currentDepth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
89552
+ if (!objA || !objB) return true;
89553
+ if (currentDepth > maxDepth) return true;
89554
+ if (_typeof$2(objA) !== _typeof$2(objB)) return false;
89555
+ var aKeys = Object.keys(objA);
89556
+ var bKeys = Object.keys(objB);
89557
+ if (aKeys.length !== bKeys.length) return false;
89558
+ for (var _i = 0, _aKeys = aKeys; _i < _aKeys.length; _i++) {
89559
+ var key = _aKeys[_i];
89560
+ var aValue = objA[key];
89561
+ var bValue = objB[key];
89562
+
89563
+ // Skip comparison if values are objects
89564
+ var isObject = ObjectUtils.isObject(aValue) && ObjectUtils.isObject(bValue);
89565
+ var isFunction = ObjectUtils.isFunction(aValue) && ObjectUtils.isFunction(bValue);
89566
+ if ((isObject || isFunction) && !this.absoluteCompare(aValue, bValue, maxDepth, currentDepth + 1)) return false;
89567
+ if (!isObject && aValue !== bValue) return false;
89568
+ }
89569
+ return true;
89570
+ }
89571
+
89572
+ /**
89573
+ * This helper function takes two objects and a list of keys to compare. It compares the values of the specified keys
89574
+ * in both objects. If any comparison fails, it returns false. If all specified properties are equal, it returns true.
89575
+ * It performs a shallow comparison using absoluteCompare if no keys are provided.
89576
+ *
89577
+ * Example:
89578
+ * const objA = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
89579
+ * const objB = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
89580
+ * const keysToCompare = ['name', 'address.city', 'address.zip'];
89581
+ * const result = ObjectUtils.selectiveCompare(objA, objB, keysToCompare);
89582
+ * console.log(result); // Output: true
89583
+ *
89584
+ * const objC = { name: 'Alice', address: { city: 'Wonderland', zip: 12346 } };
89585
+ * const result2 = ObjectUtils.selectiveCompare(objA, objC, keysToCompare);
89586
+ * console.log(result2); // Output: false
89587
+ *
89588
+ * @param {object} a - The first object to compare.
89589
+ * @param {object} b - The second object to compare.
89590
+ * @param {string[]} [keysToCompare] - The keys to compare. If not provided, performs a shallow comparison using absoluteCompare.
89591
+ * @param {number} [maxDepth=1] - The maximum depth to compare if the variables are objects.
89592
+ * @returns {boolean} True if all specified properties are equal, false otherwise.
89593
+ */
89594
+ }, {
89595
+ key: "selectiveCompare",
89596
+ value: function selectiveCompare(a, b, keysToCompare) {
89597
+ var maxDepth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
89598
+ if (a === b) return true;
89599
+ if (!a || !b || _typeof$2(a) !== 'object' || _typeof$2(b) !== 'object') return false;
89600
+ if (!keysToCompare) return this.absoluteCompare(a, b, 1); // If no keys are provided, the comparison is limited to one depth level.
89601
+ var _iterator2 = _createForOfIteratorHelper(keysToCompare),
89602
+ _step2;
89603
+ try {
89604
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
89605
+ var key = _step2.value;
89606
+ var aValue = this.getNestedValue(a, key);
89607
+ var bValue = this.getNestedValue(b, key);
89608
+ var isObject = _typeof$2(aValue) === 'object' && aValue !== null && _typeof$2(bValue) === 'object' && bValue !== null;
89609
+
89610
+ // If the current key is an object, they are compared in one further level only.
89611
+ if (isObject && !this.absoluteCompare(aValue, bValue, maxDepth)) return false;
89612
+ if (!isObject && aValue !== bValue) return false;
89613
+ }
89614
+ } catch (err) {
89615
+ _iterator2.e(err);
89616
+ } finally {
89617
+ _iterator2.f();
89618
+ }
89619
+ return true;
89620
+ }
90402
89621
  }]);
90403
- return ObjectUtils;
90404
89622
  }();
90405
89623
 
90406
89624
  function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -90465,6 +89683,7 @@ var FilterMatchMode = Object.freeze({
90465
89683
  EQUALS: 'equals',
90466
89684
  NOT_EQUALS: 'notEquals',
90467
89685
  IN: 'in',
89686
+ NOT_IN: 'notIn',
90468
89687
  LESS_THAN: 'lt',
90469
89688
  LESS_THAN_OR_EQUAL_TO: 'lte',
90470
89689
  GREATER_THAN: 'gt',
@@ -90487,47 +89706,38 @@ function _typeof$1(o) {
90487
89706
  }, _typeof$1(o);
90488
89707
  }
90489
89708
 
90490
- function _toPrimitive$1(input, hint) {
90491
- if (_typeof$1(input) !== "object" || input === null) return input;
90492
- var prim = input[Symbol.toPrimitive];
90493
- if (prim !== undefined) {
90494
- var res = prim.call(input, hint);
90495
- if (_typeof$1(res) !== "object") return res;
89709
+ function toPrimitive$1(t, r) {
89710
+ if ("object" != _typeof$1(t) || !t) return t;
89711
+ var e = t[Symbol.toPrimitive];
89712
+ if (void 0 !== e) {
89713
+ var i = e.call(t, r);
89714
+ if ("object" != _typeof$1(i)) return i;
90496
89715
  throw new TypeError("@@toPrimitive must return a primitive value.");
90497
89716
  }
90498
- return (hint === "string" ? String : Number)(input);
89717
+ return ("string" === r ? String : Number)(t);
90499
89718
  }
90500
89719
 
90501
- function _toPropertyKey$1(arg) {
90502
- var key = _toPrimitive$1(arg, "string");
90503
- return _typeof$1(key) === "symbol" ? key : String(key);
89720
+ function toPropertyKey$1(t) {
89721
+ var i = toPrimitive$1(t, "string");
89722
+ return "symbol" == _typeof$1(i) ? i : i + "";
90504
89723
  }
90505
89724
 
90506
- function _defineProperty$1(obj, key, value) {
90507
- key = _toPropertyKey$1(key);
90508
- if (key in obj) {
90509
- Object.defineProperty(obj, key, {
90510
- value: value,
90511
- enumerable: true,
90512
- configurable: true,
90513
- writable: true
90514
- });
90515
- } else {
90516
- obj[key] = value;
90517
- }
90518
- return obj;
89725
+ function _defineProperty$1(e, r, t) {
89726
+ return (r = toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
89727
+ value: t,
89728
+ enumerable: true,
89729
+ configurable: true,
89730
+ writable: true
89731
+ }) : e[r] = t, e;
90519
89732
  }
90520
- function _createClass(Constructor, protoProps, staticProps) {
90521
- Object.defineProperty(Constructor, "prototype", {
89733
+ function _createClass(e, r, t) {
89734
+ return Object.defineProperty(e, "prototype", {
90522
89735
  writable: false
90523
- });
90524
- return Constructor;
89736
+ }), e;
90525
89737
  }
90526
89738
 
90527
- function _classCallCheck(instance, Constructor) {
90528
- if (!(instance instanceof Constructor)) {
90529
- throw new TypeError("Cannot call a class as a function");
90530
- }
89739
+ function _classCallCheck(a, n) {
89740
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
90531
89741
  }
90532
89742
 
90533
89743
  /**
@@ -90561,26 +89771,28 @@ _defineProperty$1(PrimeReact$1, "filterMatchModeOptions", {
90561
89771
  _defineProperty$1(PrimeReact$1, "changeTheme", function (currentTheme, newTheme, linkElementId, callback) {
90562
89772
  var _linkElement$parentNo;
90563
89773
  var linkElement = document.getElementById(linkElementId);
90564
- var cloneLinkElement = linkElement.cloneNode(true);
89774
+ if (!linkElement) {
89775
+ throw Error("Element with id ".concat(linkElementId, " not found."));
89776
+ }
90565
89777
  var newThemeUrl = linkElement.getAttribute('href').replace(currentTheme, newTheme);
90566
- cloneLinkElement.setAttribute('id', linkElementId + '-clone');
90567
- cloneLinkElement.setAttribute('href', newThemeUrl);
90568
- cloneLinkElement.addEventListener('load', function () {
90569
- linkElement.remove();
90570
- cloneLinkElement.setAttribute('id', linkElementId);
89778
+ var newLinkElement = document.createElement('link');
89779
+ newLinkElement.setAttribute('rel', 'stylesheet');
89780
+ newLinkElement.setAttribute('id', linkElementId);
89781
+ newLinkElement.setAttribute('href', newThemeUrl);
89782
+ newLinkElement.addEventListener('load', function () {
90571
89783
  if (callback) {
90572
89784
  callback();
90573
89785
  }
90574
89786
  });
90575
- (_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.insertBefore(cloneLinkElement, linkElement.nextSibling);
89787
+ (_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.replaceChild(newLinkElement, linkElement);
90576
89788
  });
90577
89789
 
90578
89790
  var PrimeReactContext = /*#__PURE__*/React__default.createContext();
90579
89791
 
90580
89792
  var PrimeReact = PrimeReact$1;
90581
89793
 
90582
- function _arrayWithHoles$1(arr) {
90583
- if (Array.isArray(arr)) return arr;
89794
+ function _arrayWithHoles$1(r) {
89795
+ if (Array.isArray(r)) return r;
90584
89796
  }
90585
89797
 
90586
89798
  function _iterableToArrayLimit$1(r, l) {
@@ -90608,27 +89820,26 @@ function _iterableToArrayLimit$1(r, l) {
90608
89820
  }
90609
89821
  }
90610
89822
 
90611
- function _arrayLikeToArray$2(arr, len) {
90612
- if (len == null || len > arr.length) len = arr.length;
90613
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
90614
- return arr2;
89823
+ function _arrayLikeToArray$2(r, a) {
89824
+ (null == a || a > r.length) && (a = r.length);
89825
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
89826
+ return n;
90615
89827
  }
90616
89828
 
90617
- function _unsupportedIterableToArray$2(o, minLen) {
90618
- if (!o) return;
90619
- if (typeof o === "string") return _arrayLikeToArray$2(o, minLen);
90620
- var n = Object.prototype.toString.call(o).slice(8, -1);
90621
- if (n === "Object" && o.constructor) n = o.constructor.name;
90622
- if (n === "Map" || n === "Set") return Array.from(o);
90623
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen);
89829
+ function _unsupportedIterableToArray$2(r, a) {
89830
+ if (r) {
89831
+ if ("string" == typeof r) return _arrayLikeToArray$2(r, a);
89832
+ var t = {}.toString.call(r).slice(8, -1);
89833
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0;
89834
+ }
90624
89835
  }
90625
89836
 
90626
89837
  function _nonIterableRest$1() {
90627
89838
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
90628
89839
  }
90629
89840
 
90630
- function _slicedToArray$1(arr, i) {
90631
- return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest$1();
89841
+ function _slicedToArray$1(r, e) {
89842
+ return _arrayWithHoles$1(r) || _iterableToArrayLimit$1(r, e) || _unsupportedIterableToArray$2(r, e) || _nonIterableRest$1();
90632
89843
  }
90633
89844
 
90634
89845
  var usePrevious = function usePrevious(newValue) {
@@ -90849,35 +90060,34 @@ var useUpdateEffect = function useUpdateEffect(fn, deps) {
90849
90060
  }, deps);
90850
90061
  };
90851
90062
 
90852
- function _arrayLikeToArray$1(arr, len) {
90853
- if (len == null || len > arr.length) len = arr.length;
90854
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
90855
- return arr2;
90063
+ function _arrayLikeToArray$1(r, a) {
90064
+ (null == a || a > r.length) && (a = r.length);
90065
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
90066
+ return n;
90856
90067
  }
90857
90068
 
90858
- function _arrayWithoutHoles(arr) {
90859
- if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
90069
+ function _arrayWithoutHoles(r) {
90070
+ if (Array.isArray(r)) return _arrayLikeToArray$1(r);
90860
90071
  }
90861
90072
 
90862
- function _iterableToArray(iter) {
90863
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
90073
+ function _iterableToArray(r) {
90074
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
90864
90075
  }
90865
90076
 
90866
- function _unsupportedIterableToArray$1(o, minLen) {
90867
- if (!o) return;
90868
- if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
90869
- var n = Object.prototype.toString.call(o).slice(8, -1);
90870
- if (n === "Object" && o.constructor) n = o.constructor.name;
90871
- if (n === "Map" || n === "Set") return Array.from(o);
90872
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
90077
+ function _unsupportedIterableToArray$1(r, a) {
90078
+ if (r) {
90079
+ if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
90080
+ var t = {}.toString.call(r).slice(8, -1);
90081
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0;
90082
+ }
90873
90083
  }
90874
90084
 
90875
90085
  function _nonIterableSpread() {
90876
90086
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
90877
90087
  }
90878
90088
 
90879
- function _toConsumableArray(arr) {
90880
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread();
90089
+ function _toConsumableArray(r) {
90090
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread();
90881
90091
  }
90882
90092
 
90883
90093
  function _typeof(o) {
@@ -90890,44 +90100,38 @@ function _typeof(o) {
90890
90100
  }, _typeof(o);
90891
90101
  }
90892
90102
 
90893
- function _toPrimitive(input, hint) {
90894
- if (_typeof(input) !== "object" || input === null) return input;
90895
- var prim = input[Symbol.toPrimitive];
90896
- if (prim !== undefined) {
90897
- var res = prim.call(input, hint);
90898
- if (_typeof(res) !== "object") return res;
90103
+ function toPrimitive(t, r) {
90104
+ if ("object" != _typeof(t) || !t) return t;
90105
+ var e = t[Symbol.toPrimitive];
90106
+ if (void 0 !== e) {
90107
+ var i = e.call(t, r);
90108
+ if ("object" != _typeof(i)) return i;
90899
90109
  throw new TypeError("@@toPrimitive must return a primitive value.");
90900
90110
  }
90901
- return (hint === "string" ? String : Number)(input);
90111
+ return ("string" === r ? String : Number)(t);
90902
90112
  }
90903
90113
 
90904
- function _toPropertyKey(arg) {
90905
- var key = _toPrimitive(arg, "string");
90906
- return _typeof(key) === "symbol" ? key : String(key);
90114
+ function toPropertyKey(t) {
90115
+ var i = toPrimitive(t, "string");
90116
+ return "symbol" == _typeof(i) ? i : i + "";
90907
90117
  }
90908
90118
 
90909
- function _defineProperty(obj, key, value) {
90910
- key = _toPropertyKey(key);
90911
- if (key in obj) {
90912
- Object.defineProperty(obj, key, {
90913
- value: value,
90914
- enumerable: true,
90915
- configurable: true,
90916
- writable: true
90917
- });
90918
- } else {
90919
- obj[key] = value;
90920
- }
90921
- return obj;
90119
+ function _defineProperty(e, r, t) {
90120
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
90121
+ value: t,
90122
+ enumerable: true,
90123
+ configurable: true,
90124
+ writable: true
90125
+ }) : e[r] = t, e;
90922
90126
  }
90923
90127
 
90924
90128
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
90925
90129
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
90926
- var baseStyle = "\n.p-hidden-accessible {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.p-hidden-accessible input,\n.p-hidden-accessible select {\n transform: scale(0);\n}\n\n.p-overflow-hidden {\n overflow: hidden;\n padding-right: var(--scrollbar-width);\n}\n";
90927
- var buttonStyles = "\n.p-button {\n margin: 0;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-button-group .p-button {\n margin: 0;\n}\n\n.p-button-group .p-button:not(:last-child) {\n border-right: 0 none;\n}\n\n.p-button-group .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-button-group .p-button:first-of-type {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-button-group .p-button:last-of-type {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-button-group .p-button:focus {\n position: relative;\n z-index: 1;\n}\n";
90130
+ var baseStyle = "\n.p-hidden-accessible {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n opacity: 0;\n overflow: hidden;\n padding: 0;\n pointer-events: none;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.p-overflow-hidden {\n overflow: hidden;\n padding-right: var(--scrollbar-width);\n}\n";
90131
+ var buttonStyles = "\n.p-button {\n margin: 0;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon {\n pointer-events: none;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-button-group .p-button {\n margin: 0;\n}\n\n.p-button-group .p-button:not(:last-child) {\n border-right: 0 none;\n}\n\n.p-button-group .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-button-group .p-button:first-of-type {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-button-group .p-button:last-of-type {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-button-group .p-button:focus {\n position: relative;\n z-index: 1;\n}\n\n.p-button-group-single .p-button:first-of-type {\n border-top-right-radius: var(--border-radius) !important;\n border-bottom-right-radius: var(--border-radius) !important;\n}\n\n.p-button-group-single .p-button:last-of-type {\n border-top-left-radius: var(--border-radius) !important;\n border-bottom-left-radius: var(--border-radius) !important;\n}\n";
90928
90132
  var inputTextStyles = "\n.p-inputtext {\n margin: 0;\n}\n\n.p-fluid .p-inputtext {\n width: 100%;\n}\n\n/* InputGroup */\n.p-inputgroup {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup-addon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-inputgroup .p-float-label {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup .p-inputtext,\n.p-fluid .p-inputgroup .p-inputtext,\n.p-inputgroup .p-inputwrapper,\n.p-fluid .p-inputgroup .p-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n/* Floating Label */\n.p-float-label {\n display: block;\n position: relative;\n}\n\n.p-float-label label {\n position: absolute;\n pointer-events: none;\n top: 50%;\n margin-top: -0.5rem;\n transition-property: all;\n transition-timing-function: ease;\n line-height: 1;\n}\n\n.p-float-label textarea ~ label,\n.p-float-label .p-mention ~ label {\n top: 1rem;\n}\n\n.p-float-label input:focus ~ label,\n.p-float-label input:-webkit-autofill ~ label,\n.p-float-label input.p-filled ~ label,\n.p-float-label textarea:focus ~ label,\n.p-float-label textarea.p-filled ~ label,\n.p-float-label .p-inputwrapper-focus ~ label,\n.p-float-label .p-inputwrapper-filled ~ label,\n.p-float-label .p-tooltip-target-wrapper ~ label {\n top: -0.75rem;\n font-size: 12px;\n}\n\n.p-float-label .p-placeholder,\n.p-float-label input::placeholder,\n.p-float-label .p-inputtext::placeholder {\n opacity: 0;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-float-label .p-focus .p-placeholder,\n.p-float-label input:focus::placeholder,\n.p-float-label .p-inputtext:focus::placeholder {\n opacity: 1;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-input-icon-left,\n.p-input-icon-right {\n position: relative;\n display: inline-block;\n}\n\n.p-input-icon-left > i,\n.p-input-icon-right > i,\n.p-input-icon-left > svg,\n.p-input-icon-right > svg,\n.p-input-icon-left > .p-input-prefix,\n.p-input-icon-right > .p-input-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-fluid .p-input-icon-left,\n.p-fluid .p-input-icon-right {\n display: block;\n width: 100%;\n}\n";
90929
90133
  var iconStyles = "\n.p-icon {\n display: inline-block;\n}\n\n.p-icon-spin {\n -webkit-animation: p-icon-spin 2s infinite linear;\n animation: p-icon-spin 2s infinite linear;\n}\n\nsvg.p-icon {\n pointer-events: auto;\n}\n\nsvg.p-icon g,\n.p-disabled svg.p-icon {\n pointer-events: none;\n}\n\n@-webkit-keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n";
90930
- var commonStyle = "\n@layer primereact {\n .p-component, .p-component * {\n box-sizing: border-box;\n }\n\n .p-hidden {\n display: none;\n }\n\n .p-hidden-space {\n visibility: hidden;\n }\n\n .p-reset {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n font-size: 100%;\n list-style: none;\n }\n\n .p-disabled, .p-disabled * {\n cursor: default;\n pointer-events: none;\n user-select: none;\n }\n\n .p-component-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .p-unselectable-text {\n user-select: none;\n }\n\n .p-scrollbar-measure {\n width: 100px;\n height: 100px;\n overflow: scroll;\n position: absolute;\n top: -9999px;\n }\n\n @-webkit-keyframes p-fadein {\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n }\n @keyframes p-fadein {\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n }\n\n .p-link {\n text-align: left;\n background-color: transparent;\n margin: 0;\n padding: 0;\n border: none;\n cursor: pointer;\n user-select: none;\n }\n\n .p-link:disabled {\n cursor: default;\n }\n\n /* Non react overlay animations */\n .p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n }\n\n .p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity .1s linear;\n }\n\n /* React based overlay animations */\n .p-connected-overlay-enter {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-connected-overlay-enter-active {\n opacity: 1;\n transform: scaleY(1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-enter-done {\n transform: none;\n }\n\n .p-connected-overlay-exit {\n opacity: 1;\n }\n\n .p-connected-overlay-exit-active {\n opacity: 0;\n transition: opacity .1s linear;\n }\n\n /* Toggleable Content */\n .p-toggleable-content-enter {\n max-height: 0;\n }\n\n .p-toggleable-content-enter-active {\n overflow: hidden;\n max-height: 1000px;\n transition: max-height 1s ease-in-out;\n }\n\n .p-toggleable-content-enter-done {\n transform: none;\n }\n\n .p-toggleable-content-exit {\n max-height: 1000px;\n }\n\n .p-toggleable-content-exit-active {\n overflow: hidden;\n max-height: 0;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n }\n\n .p-sr-only {\n border: 0;\n clip: rect(1px, 1px, 1px, 1px);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n word-wrap: normal;\n }\n\n /* @todo Refactor */\n .p-menu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n }\n\n ".concat(buttonStyles, "\n ").concat(inputTextStyles, "\n ").concat(iconStyles, "\n}\n");
90134
+ var commonStyle = "\n@layer primereact {\n .p-component, .p-component * {\n box-sizing: border-box;\n }\n\n .p-hidden {\n display: none;\n }\n\n .p-hidden-space {\n visibility: hidden;\n }\n\n .p-reset {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n font-size: 100%;\n list-style: none;\n }\n\n .p-disabled, .p-disabled * {\n cursor: default;\n pointer-events: none;\n user-select: none;\n }\n\n .p-component-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .p-unselectable-text {\n user-select: none;\n }\n\n .p-scrollbar-measure {\n width: 100px;\n height: 100px;\n overflow: scroll;\n position: absolute;\n top: -9999px;\n }\n\n @-webkit-keyframes p-fadein {\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n }\n @keyframes p-fadein {\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n }\n\n .p-link {\n text-align: left;\n background-color: transparent;\n margin: 0;\n padding: 0;\n border: none;\n cursor: pointer;\n user-select: none;\n }\n\n .p-link:disabled {\n cursor: default;\n }\n\n /* Non react overlay animations */\n .p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n }\n\n .p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity .1s linear;\n }\n\n /* React based overlay animations */\n .p-connected-overlay-enter {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-connected-overlay-enter-active {\n opacity: 1;\n transform: scaleY(1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-enter-done {\n transform: none;\n }\n\n .p-connected-overlay-exit {\n opacity: 1;\n }\n\n .p-connected-overlay-exit-active {\n opacity: 0;\n transition: opacity .1s linear;\n }\n\n /* Toggleable Content */\n .p-toggleable-content-enter {\n max-height: 0;\n }\n\n .p-toggleable-content-enter-active {\n overflow: hidden;\n max-height: 1000px;\n transition: max-height 1s ease-in-out;\n }\n\n .p-toggleable-content-enter-done {\n transform: none;\n }\n\n .p-toggleable-content-exit {\n max-height: 1000px;\n }\n\n .p-toggleable-content-exit-active {\n overflow: hidden;\n max-height: 0;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n }\n\n /* @todo Refactor */\n .p-menu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n }\n\n ".concat(buttonStyles, "\n ").concat(inputTextStyles, "\n ").concat(iconStyles, "\n}\n");
90931
90135
  var ComponentBase = {
90932
90136
  cProps: undefined,
90933
90137
  cParams: undefined,
@@ -90972,12 +90176,12 @@ var ComponentBase = {
90972
90176
  var componentName = hostName || params.props && params.props.__TYPE && ObjectUtils.toFlatCase(params.props.__TYPE) || '';
90973
90177
  var isTransition = fkey === 'transition';
90974
90178
  var datasetPrefix = 'data-pc-';
90975
- var getHostInstance = function getHostInstance(params) {
90976
- return params !== null && params !== void 0 && params.props ? params.hostName ? params.props.__TYPE === params.hostName ? params.props : getHostInstance(params.parent) : params.parent : undefined;
90179
+ var _getHostInstance = function getHostInstance(params) {
90180
+ return params !== null && params !== void 0 && params.props ? params.hostName ? params.props.__TYPE === params.hostName ? params.props : _getHostInstance(params.parent) : params.parent : undefined;
90977
90181
  };
90978
90182
  var getPropValue = function getPropValue(name) {
90979
- var _params$props, _getHostInstance;
90980
- return ((_params$props = params.props) === null || _params$props === void 0 ? void 0 : _params$props[name]) || ((_getHostInstance = getHostInstance(params)) === null || _getHostInstance === void 0 ? void 0 : _getHostInstance[name]);
90183
+ var _params$props, _getHostInstance2;
90184
+ return ((_params$props = params.props) === null || _params$props === void 0 ? void 0 : _params$props[name]) || ((_getHostInstance2 = _getHostInstance(params)) === null || _getHostInstance2 === void 0 ? void 0 : _getHostInstance2[name]);
90981
90185
  };
90982
90186
  ComponentBase.cParams = params;
90983
90187
  ComponentBase.cName = componentName;
@@ -90987,7 +90191,7 @@ var ComponentBase = {
90987
90191
  _ref$mergeProps = _ref.mergeProps,
90988
90192
  useMergeProps = _ref$mergeProps === void 0 ? false : _ref$mergeProps;
90989
90193
  var getPTClassValue = function getPTClassValue() {
90990
- var value = getOptionValue.apply(void 0, arguments);
90194
+ var value = _getOptionValue.apply(void 0, arguments);
90991
90195
  if (Array.isArray(value)) {
90992
90196
  return {
90993
90197
  className: classNames.apply(void 0, _toConsumableArray(value))
@@ -91033,7 +90237,7 @@ var ComponentBase = {
91033
90237
  var cx = function cx() {
91034
90238
  var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
91035
90239
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
91036
- return !isUnstyled() ? getOptionValue(css && css.classes, key, _objectSpread({
90240
+ return !isUnstyled() ? _getOptionValue(css && css.classes, key, _objectSpread({
91037
90241
  props: props,
91038
90242
  state: state
91039
90243
  }, params)) : undefined;
@@ -91044,11 +90248,11 @@ var ComponentBase = {
91044
90248
  var when = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
91045
90249
  if (when) {
91046
90250
  var _ComponentBase$contex2;
91047
- var self = getOptionValue(css && css.inlineStyles, key, _objectSpread({
90251
+ var self = _getOptionValue(css && css.inlineStyles, key, _objectSpread({
91048
90252
  props: props,
91049
90253
  state: state
91050
90254
  }, params));
91051
- var base = getOptionValue(inlineStyles, key, _objectSpread({
90255
+ var base = _getOptionValue(inlineStyles, key, _objectSpread({
91052
90256
  props: props,
91053
90257
  state: state
91054
90258
  }, params));
@@ -91075,7 +90279,7 @@ var ComponentBase = {
91075
90279
  });
91076
90280
  }
91077
90281
  };
91078
- var getOptionValue = function getOptionValue(obj) {
90282
+ var _getOptionValue = function getOptionValue(obj) {
91079
90283
  var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
91080
90284
  var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
91081
90285
  var fKeys = String(ObjectUtils.toFlatCase(key)).split('.');
@@ -91083,7 +90287,7 @@ var getOptionValue = function getOptionValue(obj) {
91083
90287
  var matchedPTOption = ObjectUtils.isNotEmpty(obj) ? Object.keys(obj).find(function (k) {
91084
90288
  return ObjectUtils.toFlatCase(k) === fKey;
91085
90289
  }) : '';
91086
- return fKey ? ObjectUtils.isObject(obj) ? getOptionValue(ObjectUtils.getItemValue(obj[matchedPTOption], params), fKeys.join('.'), params) : undefined : ObjectUtils.getItemValue(obj, params);
90290
+ return fKey ? ObjectUtils.isObject(obj) ? _getOptionValue(ObjectUtils.getItemValue(obj[matchedPTOption], params), fKeys.join('.'), params) : undefined : ObjectUtils.getItemValue(obj, params);
91087
90291
  };
91088
90292
  var _getPT = function _getPT(pt) {
91089
90293
  var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
@@ -91135,7 +90339,7 @@ var getGlobalPT = function getGlobalPT() {
91135
90339
  };
91136
90340
  var getDefaultPT = function getDefaultPT() {
91137
90341
  return _getPT(ComponentBase.context.pt || PrimeReact.pt, undefined, function (value) {
91138
- return getOptionValue(value, ComponentBase.cName, ComponentBase.cParams) || ObjectUtils.getItemValue(value, ComponentBase.cParams);
90342
+ return _getOptionValue(value, ComponentBase.cName, ComponentBase.cParams) || ObjectUtils.getItemValue(value, ComponentBase.cParams);
91139
90343
  });
91140
90344
  };
91141
90345
  var _useGlobalPT = function _useGlobalPT(callback, key, params) {
@@ -91145,13 +90349,14 @@ var _useDefaultPT = function _useDefaultPT(callback, key, params) {
91145
90349
  return _usePT(getDefaultPT(), callback, key, params);
91146
90350
  };
91147
90351
  var useHandleStyle = function useHandleStyle(styles) {
90352
+ var _isUnstyled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
91148
90353
  var config = arguments.length > 2 ? arguments[2] : undefined;
91149
90354
  var name = config.name,
91150
90355
  _config$styled = config.styled,
91151
90356
  styled = _config$styled === void 0 ? false : _config$styled,
91152
90357
  _config$hostName = config.hostName,
91153
90358
  hostName = _config$hostName === void 0 ? '' : _config$hostName;
91154
- var globalCSS = _useGlobalPT(getOptionValue, 'global.css', ComponentBase.cParams);
90359
+ var globalCSS = _useGlobalPT(_getOptionValue, 'global.css', ComponentBase.cParams);
91155
90360
  var componentName = ObjectUtils.toFlatCase(name);
91156
90361
  var _useStyle = useStyle(baseStyle, {
91157
90362
  name: 'base',
@@ -91172,22 +90377,30 @@ var useHandleStyle = function useHandleStyle(styles) {
91172
90377
  name: name,
91173
90378
  manual: true
91174
90379
  }),
91175
- load = _useStyle4.load;
90380
+ loadComponentStyle = _useStyle4.load;
91176
90381
  var hook = function hook(hookName) {
91177
90382
  if (!hostName) {
91178
- var selfHook = _usePT(_getPT((ComponentBase.cProps || {}).pt, componentName), getOptionValue, "hooks.".concat(hookName));
91179
- var defaultHook = _useDefaultPT(getOptionValue, "hooks.".concat(hookName));
90383
+ var selfHook = _usePT(_getPT((ComponentBase.cProps || {}).pt, componentName), _getOptionValue, "hooks.".concat(hookName));
90384
+ var defaultHook = _useDefaultPT(_getOptionValue, "hooks.".concat(hookName));
91180
90385
  selfHook === null || selfHook === void 0 || selfHook();
91181
90386
  defaultHook === null || defaultHook === void 0 || defaultHook();
91182
90387
  }
91183
90388
  };
91184
90389
  hook('useMountEffect');
91185
90390
  useMountEffect(function () {
90391
+ // Load base and global styles first as they are always needed
91186
90392
  loadBaseStyle();
91187
90393
  loadGlobalStyle();
91188
- loadCommonStyle();
91189
- if (!styled) {
91190
- load();
90394
+
90395
+ // Only load additional styles if component is styled
90396
+ if (!_isUnstyled()) {
90397
+ // Load common styles shared across components
90398
+ loadCommonStyle();
90399
+
90400
+ // Load component-specific styles if not explicitly styled
90401
+ if (!styled) {
90402
+ loadComponentStyle();
90403
+ }
91191
90404
  }
91192
90405
  });
91193
90406
  useUpdateEffect(function () {
@@ -91198,8 +90411,8 @@ var useHandleStyle = function useHandleStyle(styles) {
91198
90411
  });
91199
90412
  };
91200
90413
 
91201
- function _arrayWithHoles(arr) {
91202
- if (Array.isArray(arr)) return arr;
90414
+ function _arrayWithHoles(r) {
90415
+ if (Array.isArray(r)) return r;
91203
90416
  }
91204
90417
 
91205
90418
  function _iterableToArrayLimit(r, l) {
@@ -91227,27 +90440,26 @@ function _iterableToArrayLimit(r, l) {
91227
90440
  }
91228
90441
  }
91229
90442
 
91230
- function _arrayLikeToArray(arr, len) {
91231
- if (len == null || len > arr.length) len = arr.length;
91232
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
91233
- return arr2;
90443
+ function _arrayLikeToArray(r, a) {
90444
+ (null == a || a > r.length) && (a = r.length);
90445
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
90446
+ return n;
91234
90447
  }
91235
90448
 
91236
- function _unsupportedIterableToArray(o, minLen) {
91237
- if (!o) return;
91238
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
91239
- var n = Object.prototype.toString.call(o).slice(8, -1);
91240
- if (n === "Object" && o.constructor) n = o.constructor.name;
91241
- if (n === "Map" || n === "Set") return Array.from(o);
91242
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
90449
+ function _unsupportedIterableToArray(r, a) {
90450
+ if (r) {
90451
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
90452
+ var t = {}.toString.call(r).slice(8, -1);
90453
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
90454
+ }
91243
90455
  }
91244
90456
 
91245
90457
  function _nonIterableRest() {
91246
90458
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
91247
90459
  }
91248
90460
 
91249
- function _slicedToArray(arr, i) {
91250
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
90461
+ function _slicedToArray(r, e) {
90462
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
91251
90463
  }
91252
90464
 
91253
90465
  var KnobBase = ComponentBase.extend({
@@ -91283,10 +90495,10 @@ var KnobBase = ComponentBase.extend({
91283
90495
  var props = _ref.props;
91284
90496
  return classNames('p-knob p-component', {
91285
90497
  'p-disabled': props.disabled
91286
- }, props.className);
90498
+ });
91287
90499
  }
91288
90500
  },
91289
- styles: "\n @keyframes dash-frame {\n 100% {\n stroke-dashoffset: 0;\n }\n }\n @layer primereact {\n .p-knob-range {\n fill: none;\n transition: stroke .1s ease-in;\n }\n .p-knob-value {\n animation-name: dash-frame;\n animation-fill-mode: forwards;\n fill: none;\n }\n .p-knob-text {\n font-size: 1.3rem;\n text-align: center;\n }\n }\n "
90501
+ styles: "\n @keyframes dash-frame {\n 100% {\n stroke-dashoffset: 0;\n }\n }\n @layer primereact {\n .p-knob-range {\n fill: none;\n transition: stroke .1s ease-in;\n cursor: pointer;\n }\n .p-knob-value {\n animation-name: dash-frame;\n animation-fill-mode: forwards;\n fill: none;\n }\n .p-knob-text {\n font-size: 1.3rem;\n text-align: center;\n }\n }\n "
91290
90502
  }
91291
90503
  });
91292
90504
 
@@ -91295,7 +90507,7 @@ var midX = 50;
91295
90507
  var midY = 50;
91296
90508
  var minRadians = 4 * Math.PI / 3;
91297
90509
  var maxRadians = -Math.PI / 3;
91298
- var Knob = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
90510
+ var Knob = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
91299
90511
  var mergeProps = useMergeProps();
91300
90512
  var context = React.useContext(PrimeReactContext);
91301
90513
  var props = KnobBase.getProps(inProps, context);
@@ -91530,7 +90742,7 @@ var Knob = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inPr
91530
90742
  var rootProps = mergeProps({
91531
90743
  ref: elementRef,
91532
90744
  id: props.id,
91533
- className: cx('root'),
90745
+ className: classNames(props.className, cx('root')),
91534
90746
  style: props.style
91535
90747
  }, ptm('root'));
91536
90748
  var svgProps = mergeProps({
@@ -102677,9 +101889,9 @@ class TimeSeriesScale extends TimeScale {
102677
101889
  }
102678
101890
  }
102679
101891
 
102680
- const defaultDatasetIdKey = "label";
101892
+ const defaultDatasetIdKey = 'label';
102681
101893
  function reforwardRef(ref, value) {
102682
- if (typeof ref === "function") {
101894
+ if (typeof ref === 'function') {
102683
101895
  ref(value);
102684
101896
  } else if (ref) {
102685
101897
  ref.current = value;
@@ -102723,9 +101935,9 @@ function cloneData(data) {
102723
101935
  }
102724
101936
 
102725
101937
  function ChartComponent(props, ref) {
102726
- const { height =150 , width =300 , redraw =false , datasetIdKey , type , data , options , plugins =[] , fallbackContent , updateMode , ...canvasProps } = props;
101938
+ const { height = 150, width = 300, redraw = false, datasetIdKey, type, data, options, plugins = [], fallbackContent, updateMode, ...canvasProps } = props;
102727
101939
  const canvasRef = useRef(null);
102728
- const chartRef = useRef();
101940
+ const chartRef = useRef(null);
102729
101941
  const renderChart = ()=>{
102730
101942
  if (!canvasRef.current) return;
102731
101943
  chartRef.current = new Chart$1(canvasRef.current, {
@@ -102795,23 +102007,25 @@ function ChartComponent(props, ref) {
102795
102007
  renderChart();
102796
102008
  return ()=>destroyChart();
102797
102009
  }, []);
102798
- return /*#__PURE__*/ React__default.createElement("canvas", Object.assign({
102010
+ return /*#__PURE__*/ React__default.createElement("canvas", {
102799
102011
  ref: canvasRef,
102800
102012
  role: "img",
102801
102013
  height: height,
102802
- width: width
102803
- }, canvasProps), fallbackContent);
102014
+ width: width,
102015
+ ...canvasProps
102016
+ }, fallbackContent);
102804
102017
  }
102805
102018
  const Chart = /*#__PURE__*/ forwardRef(ChartComponent);
102806
102019
 
102807
102020
  function createTypedChart(type, registerables) {
102808
102021
  Chart$1.register(registerables);
102809
- return /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ React__default.createElement(Chart, Object.assign({}, props, {
102022
+ return /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ React__default.createElement(Chart, {
102023
+ ...props,
102810
102024
  ref: ref,
102811
102025
  type: type
102812
- })));
102026
+ }));
102813
102027
  }
102814
- const Line = /* #__PURE__ */ createTypedChart("line", LineController);
102028
+ const Line = /* #__PURE__ */ createTypedChart('line', LineController);
102815
102029
 
102816
102030
  const styles$2 = {
102817
102031
  bondStatsContainer: {