@esic-lab/data-core-ui 0.0.8 → 0.0.9

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.
package/dist/index.js CHANGED
@@ -1,13 +1,8 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function __require() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
11
6
  var __export = (target, all) => {
12
7
  for (var name in all)
13
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -20,1721 +15,8 @@ var __copyProps = (to, from, except, desc) => {
20
15
  }
21
16
  return to;
22
17
  };
23
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
- // If the importer is in node compatibility mode or this is not an ESM
25
- // file that has been converted to a CommonJS file using a Babel-
26
- // compatible transform (i.e. "__esModule" has not been set), then set
27
- // "default" to the CommonJS "module.exports" for node compatibility.
28
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
- mod
30
- ));
31
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
19
 
33
- // node_modules/react/cjs/react-jsx-runtime.production.js
34
- var require_react_jsx_runtime_production = __commonJS({
35
- "node_modules/react/cjs/react-jsx-runtime.production.js"(exports2) {
36
- "use strict";
37
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
38
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
39
- function jsxProd(type, config, maybeKey) {
40
- var key = null;
41
- void 0 !== maybeKey && (key = "" + maybeKey);
42
- void 0 !== config.key && (key = "" + config.key);
43
- if ("key" in config) {
44
- maybeKey = {};
45
- for (var propName in config)
46
- "key" !== propName && (maybeKey[propName] = config[propName]);
47
- } else maybeKey = config;
48
- config = maybeKey.ref;
49
- return {
50
- $$typeof: REACT_ELEMENT_TYPE,
51
- type,
52
- key,
53
- ref: void 0 !== config ? config : null,
54
- props: maybeKey
55
- };
56
- }
57
- exports2.Fragment = REACT_FRAGMENT_TYPE;
58
- exports2.jsx = jsxProd;
59
- exports2.jsxs = jsxProd;
60
- }
61
- });
62
-
63
- // node_modules/react/cjs/react.production.js
64
- var require_react_production = __commonJS({
65
- "node_modules/react/cjs/react.production.js"(exports2) {
66
- "use strict";
67
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
68
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
69
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
70
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
71
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
72
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
73
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
74
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
75
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
76
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
77
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
78
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
79
- function getIteratorFn(maybeIterable) {
80
- if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
81
- maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
82
- return "function" === typeof maybeIterable ? maybeIterable : null;
83
- }
84
- var ReactNoopUpdateQueue = {
85
- isMounted: function() {
86
- return false;
87
- },
88
- enqueueForceUpdate: function() {
89
- },
90
- enqueueReplaceState: function() {
91
- },
92
- enqueueSetState: function() {
93
- }
94
- };
95
- var assign = Object.assign;
96
- var emptyObject = {};
97
- function Component(props, context, updater) {
98
- this.props = props;
99
- this.context = context;
100
- this.refs = emptyObject;
101
- this.updater = updater || ReactNoopUpdateQueue;
102
- }
103
- Component.prototype.isReactComponent = {};
104
- Component.prototype.setState = function(partialState, callback) {
105
- if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
106
- throw Error(
107
- "takes an object of state variables to update or a function which returns an object of state variables."
108
- );
109
- this.updater.enqueueSetState(this, partialState, callback, "setState");
110
- };
111
- Component.prototype.forceUpdate = function(callback) {
112
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
113
- };
114
- function ComponentDummy() {
115
- }
116
- ComponentDummy.prototype = Component.prototype;
117
- function PureComponent(props, context, updater) {
118
- this.props = props;
119
- this.context = context;
120
- this.refs = emptyObject;
121
- this.updater = updater || ReactNoopUpdateQueue;
122
- }
123
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
124
- pureComponentPrototype.constructor = PureComponent;
125
- assign(pureComponentPrototype, Component.prototype);
126
- pureComponentPrototype.isPureReactComponent = true;
127
- var isArrayImpl = Array.isArray;
128
- var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
129
- var hasOwnProperty = Object.prototype.hasOwnProperty;
130
- function ReactElement(type, key, self, source, owner, props) {
131
- self = props.ref;
132
- return {
133
- $$typeof: REACT_ELEMENT_TYPE,
134
- type,
135
- key,
136
- ref: void 0 !== self ? self : null,
137
- props
138
- };
139
- }
140
- function cloneAndReplaceKey(oldElement, newKey) {
141
- return ReactElement(
142
- oldElement.type,
143
- newKey,
144
- void 0,
145
- void 0,
146
- void 0,
147
- oldElement.props
148
- );
149
- }
150
- function isValidElement(object) {
151
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
152
- }
153
- function escape(key) {
154
- var escaperLookup = { "=": "=0", ":": "=2" };
155
- return "$" + key.replace(/[=:]/g, function(match) {
156
- return escaperLookup[match];
157
- });
158
- }
159
- var userProvidedKeyEscapeRegex = /\/+/g;
160
- function getElementKey(element, index) {
161
- return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
162
- }
163
- function noop$1() {
164
- }
165
- function resolveThenable(thenable) {
166
- switch (thenable.status) {
167
- case "fulfilled":
168
- return thenable.value;
169
- case "rejected":
170
- throw thenable.reason;
171
- default:
172
- switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
173
- function(fulfilledValue) {
174
- "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
175
- },
176
- function(error) {
177
- "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
178
- }
179
- )), thenable.status) {
180
- case "fulfilled":
181
- return thenable.value;
182
- case "rejected":
183
- throw thenable.reason;
184
- }
185
- }
186
- throw thenable;
187
- }
188
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
189
- var type = typeof children;
190
- if ("undefined" === type || "boolean" === type) children = null;
191
- var invokeCallback = false;
192
- if (null === children) invokeCallback = true;
193
- else
194
- switch (type) {
195
- case "bigint":
196
- case "string":
197
- case "number":
198
- invokeCallback = true;
199
- break;
200
- case "object":
201
- switch (children.$$typeof) {
202
- case REACT_ELEMENT_TYPE:
203
- case REACT_PORTAL_TYPE:
204
- invokeCallback = true;
205
- break;
206
- case REACT_LAZY_TYPE:
207
- return invokeCallback = children._init, mapIntoArray(
208
- invokeCallback(children._payload),
209
- array,
210
- escapedPrefix,
211
- nameSoFar,
212
- callback
213
- );
214
- }
215
- }
216
- if (invokeCallback)
217
- return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
218
- return c;
219
- })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
220
- callback,
221
- escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
222
- userProvidedKeyEscapeRegex,
223
- "$&/"
224
- ) + "/") + invokeCallback
225
- )), array.push(callback)), 1;
226
- invokeCallback = 0;
227
- var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
228
- if (isArrayImpl(children))
229
- for (var i = 0; i < children.length; i++)
230
- nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
231
- nameSoFar,
232
- array,
233
- escapedPrefix,
234
- type,
235
- callback
236
- );
237
- else if (i = getIteratorFn(children), "function" === typeof i)
238
- for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
239
- nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
240
- nameSoFar,
241
- array,
242
- escapedPrefix,
243
- type,
244
- callback
245
- );
246
- else if ("object" === type) {
247
- if ("function" === typeof children.then)
248
- return mapIntoArray(
249
- resolveThenable(children),
250
- array,
251
- escapedPrefix,
252
- nameSoFar,
253
- callback
254
- );
255
- array = String(children);
256
- throw Error(
257
- "Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
258
- );
259
- }
260
- return invokeCallback;
261
- }
262
- function mapChildren(children, func, context) {
263
- if (null == children) return children;
264
- var result = [], count = 0;
265
- mapIntoArray(children, result, "", "", function(child) {
266
- return func.call(context, child, count++);
267
- });
268
- return result;
269
- }
270
- function lazyInitializer(payload) {
271
- if (-1 === payload._status) {
272
- var ctor = payload._result;
273
- ctor = ctor();
274
- ctor.then(
275
- function(moduleObject) {
276
- if (0 === payload._status || -1 === payload._status)
277
- payload._status = 1, payload._result = moduleObject;
278
- },
279
- function(error) {
280
- if (0 === payload._status || -1 === payload._status)
281
- payload._status = 2, payload._result = error;
282
- }
283
- );
284
- -1 === payload._status && (payload._status = 0, payload._result = ctor);
285
- }
286
- if (1 === payload._status) return payload._result.default;
287
- throw payload._result;
288
- }
289
- var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
290
- if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
291
- var event = new window.ErrorEvent("error", {
292
- bubbles: true,
293
- cancelable: true,
294
- message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
295
- error
296
- });
297
- if (!window.dispatchEvent(event)) return;
298
- } else if ("object" === typeof process && "function" === typeof process.emit) {
299
- process.emit("uncaughtException", error);
300
- return;
301
- }
302
- console.error(error);
303
- };
304
- function noop() {
305
- }
306
- exports2.Children = {
307
- map: mapChildren,
308
- forEach: function(children, forEachFunc, forEachContext) {
309
- mapChildren(
310
- children,
311
- function() {
312
- forEachFunc.apply(this, arguments);
313
- },
314
- forEachContext
315
- );
316
- },
317
- count: function(children) {
318
- var n = 0;
319
- mapChildren(children, function() {
320
- n++;
321
- });
322
- return n;
323
- },
324
- toArray: function(children) {
325
- return mapChildren(children, function(child) {
326
- return child;
327
- }) || [];
328
- },
329
- only: function(children) {
330
- if (!isValidElement(children))
331
- throw Error(
332
- "React.Children.only expected to receive a single React element child."
333
- );
334
- return children;
335
- }
336
- };
337
- exports2.Component = Component;
338
- exports2.Fragment = REACT_FRAGMENT_TYPE;
339
- exports2.Profiler = REACT_PROFILER_TYPE;
340
- exports2.PureComponent = PureComponent;
341
- exports2.StrictMode = REACT_STRICT_MODE_TYPE;
342
- exports2.Suspense = REACT_SUSPENSE_TYPE;
343
- exports2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
344
- exports2.__COMPILER_RUNTIME = {
345
- __proto__: null,
346
- c: function(size) {
347
- return ReactSharedInternals.H.useMemoCache(size);
348
- }
349
- };
350
- exports2.cache = function(fn) {
351
- return function() {
352
- return fn.apply(null, arguments);
353
- };
354
- };
355
- exports2.cloneElement = function(element, config, children) {
356
- if (null === element || void 0 === element)
357
- throw Error(
358
- "The argument must be a React element, but you passed " + element + "."
359
- );
360
- var props = assign({}, element.props), key = element.key, owner = void 0;
361
- if (null != config)
362
- for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
363
- !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
364
- var propName = arguments.length - 2;
365
- if (1 === propName) props.children = children;
366
- else if (1 < propName) {
367
- for (var childArray = Array(propName), i = 0; i < propName; i++)
368
- childArray[i] = arguments[i + 2];
369
- props.children = childArray;
370
- }
371
- return ReactElement(element.type, key, void 0, void 0, owner, props);
372
- };
373
- exports2.createContext = function(defaultValue) {
374
- defaultValue = {
375
- $$typeof: REACT_CONTEXT_TYPE,
376
- _currentValue: defaultValue,
377
- _currentValue2: defaultValue,
378
- _threadCount: 0,
379
- Provider: null,
380
- Consumer: null
381
- };
382
- defaultValue.Provider = defaultValue;
383
- defaultValue.Consumer = {
384
- $$typeof: REACT_CONSUMER_TYPE,
385
- _context: defaultValue
386
- };
387
- return defaultValue;
388
- };
389
- exports2.createElement = function(type, config, children) {
390
- var propName, props = {}, key = null;
391
- if (null != config)
392
- for (propName in void 0 !== config.key && (key = "" + config.key), config)
393
- hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
394
- var childrenLength = arguments.length - 2;
395
- if (1 === childrenLength) props.children = children;
396
- else if (1 < childrenLength) {
397
- for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
398
- childArray[i] = arguments[i + 2];
399
- props.children = childArray;
400
- }
401
- if (type && type.defaultProps)
402
- for (propName in childrenLength = type.defaultProps, childrenLength)
403
- void 0 === props[propName] && (props[propName] = childrenLength[propName]);
404
- return ReactElement(type, key, void 0, void 0, null, props);
405
- };
406
- exports2.createRef = function() {
407
- return { current: null };
408
- };
409
- exports2.forwardRef = function(render) {
410
- return { $$typeof: REACT_FORWARD_REF_TYPE, render };
411
- };
412
- exports2.isValidElement = isValidElement;
413
- exports2.lazy = function(ctor) {
414
- return {
415
- $$typeof: REACT_LAZY_TYPE,
416
- _payload: { _status: -1, _result: ctor },
417
- _init: lazyInitializer
418
- };
419
- };
420
- exports2.memo = function(type, compare) {
421
- return {
422
- $$typeof: REACT_MEMO_TYPE,
423
- type,
424
- compare: void 0 === compare ? null : compare
425
- };
426
- };
427
- exports2.startTransition = function(scope) {
428
- var prevTransition = ReactSharedInternals.T, currentTransition = {};
429
- ReactSharedInternals.T = currentTransition;
430
- try {
431
- var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
432
- null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
433
- "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
434
- } catch (error) {
435
- reportGlobalError(error);
436
- } finally {
437
- ReactSharedInternals.T = prevTransition;
438
- }
439
- };
440
- exports2.unstable_useCacheRefresh = function() {
441
- return ReactSharedInternals.H.useCacheRefresh();
442
- };
443
- exports2.use = function(usable) {
444
- return ReactSharedInternals.H.use(usable);
445
- };
446
- exports2.useActionState = function(action, initialState, permalink) {
447
- return ReactSharedInternals.H.useActionState(action, initialState, permalink);
448
- };
449
- exports2.useCallback = function(callback, deps) {
450
- return ReactSharedInternals.H.useCallback(callback, deps);
451
- };
452
- exports2.useContext = function(Context) {
453
- return ReactSharedInternals.H.useContext(Context);
454
- };
455
- exports2.useDebugValue = function() {
456
- };
457
- exports2.useDeferredValue = function(value, initialValue) {
458
- return ReactSharedInternals.H.useDeferredValue(value, initialValue);
459
- };
460
- exports2.useEffect = function(create, createDeps, update) {
461
- var dispatcher = ReactSharedInternals.H;
462
- if ("function" === typeof update)
463
- throw Error(
464
- "useEffect CRUD overload is not enabled in this build of React."
465
- );
466
- return dispatcher.useEffect(create, createDeps);
467
- };
468
- exports2.useId = function() {
469
- return ReactSharedInternals.H.useId();
470
- };
471
- exports2.useImperativeHandle = function(ref, create, deps) {
472
- return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
473
- };
474
- exports2.useInsertionEffect = function(create, deps) {
475
- return ReactSharedInternals.H.useInsertionEffect(create, deps);
476
- };
477
- exports2.useLayoutEffect = function(create, deps) {
478
- return ReactSharedInternals.H.useLayoutEffect(create, deps);
479
- };
480
- exports2.useMemo = function(create, deps) {
481
- return ReactSharedInternals.H.useMemo(create, deps);
482
- };
483
- exports2.useOptimistic = function(passthrough, reducer) {
484
- return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
485
- };
486
- exports2.useReducer = function(reducer, initialArg, init) {
487
- return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
488
- };
489
- exports2.useRef = function(initialValue) {
490
- return ReactSharedInternals.H.useRef(initialValue);
491
- };
492
- exports2.useState = function(initialState) {
493
- return ReactSharedInternals.H.useState(initialState);
494
- };
495
- exports2.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
496
- return ReactSharedInternals.H.useSyncExternalStore(
497
- subscribe,
498
- getSnapshot,
499
- getServerSnapshot
500
- );
501
- };
502
- exports2.useTransition = function() {
503
- return ReactSharedInternals.H.useTransition();
504
- };
505
- exports2.version = "19.1.1";
506
- }
507
- });
508
-
509
- // node_modules/react/cjs/react.development.js
510
- var require_react_development = __commonJS({
511
- "node_modules/react/cjs/react.development.js"(exports2, module2) {
512
- "use strict";
513
- "production" !== process.env.NODE_ENV && (function() {
514
- function defineDeprecationWarning(methodName, info) {
515
- Object.defineProperty(Component.prototype, methodName, {
516
- get: function() {
517
- console.warn(
518
- "%s(...) is deprecated in plain JavaScript React classes. %s",
519
- info[0],
520
- info[1]
521
- );
522
- }
523
- });
524
- }
525
- function getIteratorFn(maybeIterable) {
526
- if (null === maybeIterable || "object" !== typeof maybeIterable)
527
- return null;
528
- maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
529
- return "function" === typeof maybeIterable ? maybeIterable : null;
530
- }
531
- function warnNoop(publicInstance, callerName) {
532
- publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
533
- var warningKey = publicInstance + "." + callerName;
534
- didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
535
- "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
536
- callerName,
537
- publicInstance
538
- ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
539
- }
540
- function Component(props, context, updater) {
541
- this.props = props;
542
- this.context = context;
543
- this.refs = emptyObject;
544
- this.updater = updater || ReactNoopUpdateQueue;
545
- }
546
- function ComponentDummy() {
547
- }
548
- function PureComponent(props, context, updater) {
549
- this.props = props;
550
- this.context = context;
551
- this.refs = emptyObject;
552
- this.updater = updater || ReactNoopUpdateQueue;
553
- }
554
- function testStringCoercion(value) {
555
- return "" + value;
556
- }
557
- function checkKeyStringCoercion(value) {
558
- try {
559
- testStringCoercion(value);
560
- var JSCompiler_inline_result = false;
561
- } catch (e) {
562
- JSCompiler_inline_result = true;
563
- }
564
- if (JSCompiler_inline_result) {
565
- JSCompiler_inline_result = console;
566
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
567
- var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
568
- JSCompiler_temp_const.call(
569
- JSCompiler_inline_result,
570
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
571
- JSCompiler_inline_result$jscomp$0
572
- );
573
- return testStringCoercion(value);
574
- }
575
- }
576
- function getComponentNameFromType(type) {
577
- if (null == type) return null;
578
- if ("function" === typeof type)
579
- return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
580
- if ("string" === typeof type) return type;
581
- switch (type) {
582
- case REACT_FRAGMENT_TYPE:
583
- return "Fragment";
584
- case REACT_PROFILER_TYPE:
585
- return "Profiler";
586
- case REACT_STRICT_MODE_TYPE:
587
- return "StrictMode";
588
- case REACT_SUSPENSE_TYPE:
589
- return "Suspense";
590
- case REACT_SUSPENSE_LIST_TYPE:
591
- return "SuspenseList";
592
- case REACT_ACTIVITY_TYPE:
593
- return "Activity";
594
- }
595
- if ("object" === typeof type)
596
- switch ("number" === typeof type.tag && console.error(
597
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
598
- ), type.$$typeof) {
599
- case REACT_PORTAL_TYPE:
600
- return "Portal";
601
- case REACT_CONTEXT_TYPE:
602
- return (type.displayName || "Context") + ".Provider";
603
- case REACT_CONSUMER_TYPE:
604
- return (type._context.displayName || "Context") + ".Consumer";
605
- case REACT_FORWARD_REF_TYPE:
606
- var innerType = type.render;
607
- type = type.displayName;
608
- type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
609
- return type;
610
- case REACT_MEMO_TYPE:
611
- return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
612
- case REACT_LAZY_TYPE:
613
- innerType = type._payload;
614
- type = type._init;
615
- try {
616
- return getComponentNameFromType(type(innerType));
617
- } catch (x) {
618
- }
619
- }
620
- return null;
621
- }
622
- function getTaskName(type) {
623
- if (type === REACT_FRAGMENT_TYPE) return "<>";
624
- if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
625
- return "<...>";
626
- try {
627
- var name = getComponentNameFromType(type);
628
- return name ? "<" + name + ">" : "<...>";
629
- } catch (x) {
630
- return "<...>";
631
- }
632
- }
633
- function getOwner() {
634
- var dispatcher = ReactSharedInternals.A;
635
- return null === dispatcher ? null : dispatcher.getOwner();
636
- }
637
- function UnknownOwner() {
638
- return Error("react-stack-top-frame");
639
- }
640
- function hasValidKey(config) {
641
- if (hasOwnProperty.call(config, "key")) {
642
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
643
- if (getter && getter.isReactWarning) return false;
644
- }
645
- return void 0 !== config.key;
646
- }
647
- function defineKeyPropWarningGetter(props, displayName) {
648
- function warnAboutAccessingKey() {
649
- specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
650
- "%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)",
651
- displayName
652
- ));
653
- }
654
- warnAboutAccessingKey.isReactWarning = true;
655
- Object.defineProperty(props, "key", {
656
- get: warnAboutAccessingKey,
657
- configurable: true
658
- });
659
- }
660
- function elementRefGetterWithDeprecationWarning() {
661
- var componentName = getComponentNameFromType(this.type);
662
- didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
663
- "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."
664
- ));
665
- componentName = this.props.ref;
666
- return void 0 !== componentName ? componentName : null;
667
- }
668
- function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
669
- self = props.ref;
670
- type = {
671
- $$typeof: REACT_ELEMENT_TYPE,
672
- type,
673
- key,
674
- props,
675
- _owner: owner
676
- };
677
- null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
678
- enumerable: false,
679
- get: elementRefGetterWithDeprecationWarning
680
- }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
681
- type._store = {};
682
- Object.defineProperty(type._store, "validated", {
683
- configurable: false,
684
- enumerable: false,
685
- writable: true,
686
- value: 0
687
- });
688
- Object.defineProperty(type, "_debugInfo", {
689
- configurable: false,
690
- enumerable: false,
691
- writable: true,
692
- value: null
693
- });
694
- Object.defineProperty(type, "_debugStack", {
695
- configurable: false,
696
- enumerable: false,
697
- writable: true,
698
- value: debugStack
699
- });
700
- Object.defineProperty(type, "_debugTask", {
701
- configurable: false,
702
- enumerable: false,
703
- writable: true,
704
- value: debugTask
705
- });
706
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
707
- return type;
708
- }
709
- function cloneAndReplaceKey(oldElement, newKey) {
710
- newKey = ReactElement(
711
- oldElement.type,
712
- newKey,
713
- void 0,
714
- void 0,
715
- oldElement._owner,
716
- oldElement.props,
717
- oldElement._debugStack,
718
- oldElement._debugTask
719
- );
720
- oldElement._store && (newKey._store.validated = oldElement._store.validated);
721
- return newKey;
722
- }
723
- function isValidElement(object) {
724
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
725
- }
726
- function escape(key) {
727
- var escaperLookup = { "=": "=0", ":": "=2" };
728
- return "$" + key.replace(/[=:]/g, function(match) {
729
- return escaperLookup[match];
730
- });
731
- }
732
- function getElementKey(element, index) {
733
- return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
734
- }
735
- function noop$1() {
736
- }
737
- function resolveThenable(thenable) {
738
- switch (thenable.status) {
739
- case "fulfilled":
740
- return thenable.value;
741
- case "rejected":
742
- throw thenable.reason;
743
- default:
744
- switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
745
- function(fulfilledValue) {
746
- "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
747
- },
748
- function(error) {
749
- "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
750
- }
751
- )), thenable.status) {
752
- case "fulfilled":
753
- return thenable.value;
754
- case "rejected":
755
- throw thenable.reason;
756
- }
757
- }
758
- throw thenable;
759
- }
760
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
761
- var type = typeof children;
762
- if ("undefined" === type || "boolean" === type) children = null;
763
- var invokeCallback = false;
764
- if (null === children) invokeCallback = true;
765
- else
766
- switch (type) {
767
- case "bigint":
768
- case "string":
769
- case "number":
770
- invokeCallback = true;
771
- break;
772
- case "object":
773
- switch (children.$$typeof) {
774
- case REACT_ELEMENT_TYPE:
775
- case REACT_PORTAL_TYPE:
776
- invokeCallback = true;
777
- break;
778
- case REACT_LAZY_TYPE:
779
- return invokeCallback = children._init, mapIntoArray(
780
- invokeCallback(children._payload),
781
- array,
782
- escapedPrefix,
783
- nameSoFar,
784
- callback
785
- );
786
- }
787
- }
788
- if (invokeCallback) {
789
- invokeCallback = children;
790
- callback = callback(invokeCallback);
791
- var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
792
- isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
793
- return c;
794
- })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
795
- callback,
796
- escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
797
- userProvidedKeyEscapeRegex,
798
- "$&/"
799
- ) + "/") + childKey
800
- ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
801
- return 1;
802
- }
803
- invokeCallback = 0;
804
- childKey = "" === nameSoFar ? "." : nameSoFar + ":";
805
- if (isArrayImpl(children))
806
- for (var i = 0; i < children.length; i++)
807
- nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
808
- nameSoFar,
809
- array,
810
- escapedPrefix,
811
- type,
812
- callback
813
- );
814
- else if (i = getIteratorFn(children), "function" === typeof i)
815
- for (i === children.entries && (didWarnAboutMaps || console.warn(
816
- "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
817
- ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
818
- nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
819
- nameSoFar,
820
- array,
821
- escapedPrefix,
822
- type,
823
- callback
824
- );
825
- else if ("object" === type) {
826
- if ("function" === typeof children.then)
827
- return mapIntoArray(
828
- resolveThenable(children),
829
- array,
830
- escapedPrefix,
831
- nameSoFar,
832
- callback
833
- );
834
- array = String(children);
835
- throw Error(
836
- "Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
837
- );
838
- }
839
- return invokeCallback;
840
- }
841
- function mapChildren(children, func, context) {
842
- if (null == children) return children;
843
- var result = [], count = 0;
844
- mapIntoArray(children, result, "", "", function(child) {
845
- return func.call(context, child, count++);
846
- });
847
- return result;
848
- }
849
- function lazyInitializer(payload) {
850
- if (-1 === payload._status) {
851
- var ctor = payload._result;
852
- ctor = ctor();
853
- ctor.then(
854
- function(moduleObject) {
855
- if (0 === payload._status || -1 === payload._status)
856
- payload._status = 1, payload._result = moduleObject;
857
- },
858
- function(error) {
859
- if (0 === payload._status || -1 === payload._status)
860
- payload._status = 2, payload._result = error;
861
- }
862
- );
863
- -1 === payload._status && (payload._status = 0, payload._result = ctor);
864
- }
865
- if (1 === payload._status)
866
- return ctor = payload._result, void 0 === ctor && console.error(
867
- "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
868
- ctor
869
- ), "default" in ctor || console.error(
870
- "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
871
- ctor
872
- ), ctor.default;
873
- throw payload._result;
874
- }
875
- function resolveDispatcher() {
876
- var dispatcher = ReactSharedInternals.H;
877
- null === dispatcher && console.error(
878
- "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
879
- );
880
- return dispatcher;
881
- }
882
- function noop() {
883
- }
884
- function enqueueTask(task) {
885
- if (null === enqueueTaskImpl)
886
- try {
887
- var requireString = ("require" + Math.random()).slice(0, 7);
888
- enqueueTaskImpl = (module2 && module2[requireString]).call(
889
- module2,
890
- "timers"
891
- ).setImmediate;
892
- } catch (_err) {
893
- enqueueTaskImpl = function(callback) {
894
- false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
895
- "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
896
- ));
897
- var channel = new MessageChannel();
898
- channel.port1.onmessage = callback;
899
- channel.port2.postMessage(void 0);
900
- };
901
- }
902
- return enqueueTaskImpl(task);
903
- }
904
- function aggregateErrors(errors) {
905
- return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
906
- }
907
- function popActScope(prevActQueue, prevActScopeDepth) {
908
- prevActScopeDepth !== actScopeDepth - 1 && console.error(
909
- "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
910
- );
911
- actScopeDepth = prevActScopeDepth;
912
- }
913
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
914
- var queue = ReactSharedInternals.actQueue;
915
- if (null !== queue)
916
- if (0 !== queue.length)
917
- try {
918
- flushActQueue(queue);
919
- enqueueTask(function() {
920
- return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
921
- });
922
- return;
923
- } catch (error) {
924
- ReactSharedInternals.thrownErrors.push(error);
925
- }
926
- else ReactSharedInternals.actQueue = null;
927
- 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
928
- }
929
- function flushActQueue(queue) {
930
- if (!isFlushing) {
931
- isFlushing = true;
932
- var i = 0;
933
- try {
934
- for (; i < queue.length; i++) {
935
- var callback = queue[i];
936
- do {
937
- ReactSharedInternals.didUsePromise = false;
938
- var continuation = callback(false);
939
- if (null !== continuation) {
940
- if (ReactSharedInternals.didUsePromise) {
941
- queue[i] = callback;
942
- queue.splice(0, i);
943
- return;
944
- }
945
- callback = continuation;
946
- } else break;
947
- } while (1);
948
- }
949
- queue.length = 0;
950
- } catch (error) {
951
- queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
952
- } finally {
953
- isFlushing = false;
954
- }
955
- }
956
- }
957
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
958
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
959
- Symbol.for("react.provider");
960
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
961
- isMounted: function() {
962
- return false;
963
- },
964
- enqueueForceUpdate: function(publicInstance) {
965
- warnNoop(publicInstance, "forceUpdate");
966
- },
967
- enqueueReplaceState: function(publicInstance) {
968
- warnNoop(publicInstance, "replaceState");
969
- },
970
- enqueueSetState: function(publicInstance) {
971
- warnNoop(publicInstance, "setState");
972
- }
973
- }, assign = Object.assign, emptyObject = {};
974
- Object.freeze(emptyObject);
975
- Component.prototype.isReactComponent = {};
976
- Component.prototype.setState = function(partialState, callback) {
977
- if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
978
- throw Error(
979
- "takes an object of state variables to update or a function which returns an object of state variables."
980
- );
981
- this.updater.enqueueSetState(this, partialState, callback, "setState");
982
- };
983
- Component.prototype.forceUpdate = function(callback) {
984
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
985
- };
986
- var deprecatedAPIs = {
987
- isMounted: [
988
- "isMounted",
989
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
990
- ],
991
- replaceState: [
992
- "replaceState",
993
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
994
- ]
995
- }, fnName;
996
- for (fnName in deprecatedAPIs)
997
- deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
998
- ComponentDummy.prototype = Component.prototype;
999
- deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
1000
- deprecatedAPIs.constructor = PureComponent;
1001
- assign(deprecatedAPIs, Component.prototype);
1002
- deprecatedAPIs.isPureReactComponent = true;
1003
- var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
1004
- H: null,
1005
- A: null,
1006
- T: null,
1007
- S: null,
1008
- V: null,
1009
- actQueue: null,
1010
- isBatchingLegacy: false,
1011
- didScheduleLegacyUpdate: false,
1012
- didUsePromise: false,
1013
- thrownErrors: [],
1014
- getCurrentStack: null,
1015
- recentlyCreatedOwnerStacks: 0
1016
- }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
1017
- return null;
1018
- };
1019
- deprecatedAPIs = {
1020
- react_stack_bottom_frame: function(callStackForError) {
1021
- return callStackForError();
1022
- }
1023
- };
1024
- var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1025
- var didWarnAboutElementRef = {};
1026
- var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
1027
- deprecatedAPIs,
1028
- UnknownOwner
1029
- )();
1030
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1031
- var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
1032
- if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
1033
- var event = new window.ErrorEvent("error", {
1034
- bubbles: true,
1035
- cancelable: true,
1036
- message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
1037
- error
1038
- });
1039
- if (!window.dispatchEvent(event)) return;
1040
- } else if ("object" === typeof process && "function" === typeof process.emit) {
1041
- process.emit("uncaughtException", error);
1042
- return;
1043
- }
1044
- console.error(error);
1045
- }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
1046
- queueMicrotask(function() {
1047
- return queueMicrotask(callback);
1048
- });
1049
- } : enqueueTask;
1050
- deprecatedAPIs = Object.freeze({
1051
- __proto__: null,
1052
- c: function(size) {
1053
- return resolveDispatcher().useMemoCache(size);
1054
- }
1055
- });
1056
- exports2.Children = {
1057
- map: mapChildren,
1058
- forEach: function(children, forEachFunc, forEachContext) {
1059
- mapChildren(
1060
- children,
1061
- function() {
1062
- forEachFunc.apply(this, arguments);
1063
- },
1064
- forEachContext
1065
- );
1066
- },
1067
- count: function(children) {
1068
- var n = 0;
1069
- mapChildren(children, function() {
1070
- n++;
1071
- });
1072
- return n;
1073
- },
1074
- toArray: function(children) {
1075
- return mapChildren(children, function(child) {
1076
- return child;
1077
- }) || [];
1078
- },
1079
- only: function(children) {
1080
- if (!isValidElement(children))
1081
- throw Error(
1082
- "React.Children.only expected to receive a single React element child."
1083
- );
1084
- return children;
1085
- }
1086
- };
1087
- exports2.Component = Component;
1088
- exports2.Fragment = REACT_FRAGMENT_TYPE;
1089
- exports2.Profiler = REACT_PROFILER_TYPE;
1090
- exports2.PureComponent = PureComponent;
1091
- exports2.StrictMode = REACT_STRICT_MODE_TYPE;
1092
- exports2.Suspense = REACT_SUSPENSE_TYPE;
1093
- exports2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1094
- exports2.__COMPILER_RUNTIME = deprecatedAPIs;
1095
- exports2.act = function(callback) {
1096
- var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
1097
- actScopeDepth++;
1098
- var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
1099
- try {
1100
- var result = callback();
1101
- } catch (error) {
1102
- ReactSharedInternals.thrownErrors.push(error);
1103
- }
1104
- if (0 < ReactSharedInternals.thrownErrors.length)
1105
- throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1106
- if (null !== result && "object" === typeof result && "function" === typeof result.then) {
1107
- var thenable = result;
1108
- queueSeveralMicrotasks(function() {
1109
- didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1110
- "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
1111
- ));
1112
- });
1113
- return {
1114
- then: function(resolve, reject) {
1115
- didAwaitActCall = true;
1116
- thenable.then(
1117
- function(returnValue) {
1118
- popActScope(prevActQueue, prevActScopeDepth);
1119
- if (0 === prevActScopeDepth) {
1120
- try {
1121
- flushActQueue(queue), enqueueTask(function() {
1122
- return recursivelyFlushAsyncActWork(
1123
- returnValue,
1124
- resolve,
1125
- reject
1126
- );
1127
- });
1128
- } catch (error$0) {
1129
- ReactSharedInternals.thrownErrors.push(error$0);
1130
- }
1131
- if (0 < ReactSharedInternals.thrownErrors.length) {
1132
- var _thrownError = aggregateErrors(
1133
- ReactSharedInternals.thrownErrors
1134
- );
1135
- ReactSharedInternals.thrownErrors.length = 0;
1136
- reject(_thrownError);
1137
- }
1138
- } else resolve(returnValue);
1139
- },
1140
- function(error) {
1141
- popActScope(prevActQueue, prevActScopeDepth);
1142
- 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
1143
- ReactSharedInternals.thrownErrors
1144
- ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
1145
- }
1146
- );
1147
- }
1148
- };
1149
- }
1150
- var returnValue$jscomp$0 = result;
1151
- popActScope(prevActQueue, prevActScopeDepth);
1152
- 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
1153
- didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1154
- "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
1155
- ));
1156
- }), ReactSharedInternals.actQueue = null);
1157
- if (0 < ReactSharedInternals.thrownErrors.length)
1158
- throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1159
- return {
1160
- then: function(resolve, reject) {
1161
- didAwaitActCall = true;
1162
- 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
1163
- return recursivelyFlushAsyncActWork(
1164
- returnValue$jscomp$0,
1165
- resolve,
1166
- reject
1167
- );
1168
- })) : resolve(returnValue$jscomp$0);
1169
- }
1170
- };
1171
- };
1172
- exports2.cache = function(fn) {
1173
- return function() {
1174
- return fn.apply(null, arguments);
1175
- };
1176
- };
1177
- exports2.captureOwnerStack = function() {
1178
- var getCurrentStack = ReactSharedInternals.getCurrentStack;
1179
- return null === getCurrentStack ? null : getCurrentStack();
1180
- };
1181
- exports2.cloneElement = function(element, config, children) {
1182
- if (null === element || void 0 === element)
1183
- throw Error(
1184
- "The argument must be a React element, but you passed " + element + "."
1185
- );
1186
- var props = assign({}, element.props), key = element.key, owner = element._owner;
1187
- if (null != config) {
1188
- var JSCompiler_inline_result;
1189
- a: {
1190
- if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1191
- config,
1192
- "ref"
1193
- ).get) && JSCompiler_inline_result.isReactWarning) {
1194
- JSCompiler_inline_result = false;
1195
- break a;
1196
- }
1197
- JSCompiler_inline_result = void 0 !== config.ref;
1198
- }
1199
- JSCompiler_inline_result && (owner = getOwner());
1200
- hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
1201
- for (propName in config)
1202
- !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
1203
- }
1204
- var propName = arguments.length - 2;
1205
- if (1 === propName) props.children = children;
1206
- else if (1 < propName) {
1207
- JSCompiler_inline_result = Array(propName);
1208
- for (var i = 0; i < propName; i++)
1209
- JSCompiler_inline_result[i] = arguments[i + 2];
1210
- props.children = JSCompiler_inline_result;
1211
- }
1212
- props = ReactElement(
1213
- element.type,
1214
- key,
1215
- void 0,
1216
- void 0,
1217
- owner,
1218
- props,
1219
- element._debugStack,
1220
- element._debugTask
1221
- );
1222
- for (key = 2; key < arguments.length; key++)
1223
- owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
1224
- return props;
1225
- };
1226
- exports2.createContext = function(defaultValue) {
1227
- defaultValue = {
1228
- $$typeof: REACT_CONTEXT_TYPE,
1229
- _currentValue: defaultValue,
1230
- _currentValue2: defaultValue,
1231
- _threadCount: 0,
1232
- Provider: null,
1233
- Consumer: null
1234
- };
1235
- defaultValue.Provider = defaultValue;
1236
- defaultValue.Consumer = {
1237
- $$typeof: REACT_CONSUMER_TYPE,
1238
- _context: defaultValue
1239
- };
1240
- defaultValue._currentRenderer = null;
1241
- defaultValue._currentRenderer2 = null;
1242
- return defaultValue;
1243
- };
1244
- exports2.createElement = function(type, config, children) {
1245
- for (var i = 2; i < arguments.length; i++) {
1246
- var node = arguments[i];
1247
- isValidElement(node) && node._store && (node._store.validated = 1);
1248
- }
1249
- i = {};
1250
- node = null;
1251
- if (null != config)
1252
- for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
1253
- "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1254
- )), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
1255
- hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
1256
- var childrenLength = arguments.length - 2;
1257
- if (1 === childrenLength) i.children = children;
1258
- else if (1 < childrenLength) {
1259
- for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
1260
- childArray[_i] = arguments[_i + 2];
1261
- Object.freeze && Object.freeze(childArray);
1262
- i.children = childArray;
1263
- }
1264
- if (type && type.defaultProps)
1265
- for (propName in childrenLength = type.defaultProps, childrenLength)
1266
- void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1267
- node && defineKeyPropWarningGetter(
1268
- i,
1269
- "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1270
- );
1271
- var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1272
- return ReactElement(
1273
- type,
1274
- node,
1275
- void 0,
1276
- void 0,
1277
- getOwner(),
1278
- i,
1279
- propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1280
- propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1281
- );
1282
- };
1283
- exports2.createRef = function() {
1284
- var refObject = { current: null };
1285
- Object.seal(refObject);
1286
- return refObject;
1287
- };
1288
- exports2.forwardRef = function(render) {
1289
- null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
1290
- "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1291
- ) : "function" !== typeof render ? console.error(
1292
- "forwardRef requires a render function but was given %s.",
1293
- null === render ? "null" : typeof render
1294
- ) : 0 !== render.length && 2 !== render.length && console.error(
1295
- "forwardRef render functions accept exactly two parameters: props and ref. %s",
1296
- 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1297
- );
1298
- null != render && null != render.defaultProps && console.error(
1299
- "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1300
- );
1301
- var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
1302
- Object.defineProperty(elementType, "displayName", {
1303
- enumerable: false,
1304
- configurable: true,
1305
- get: function() {
1306
- return ownName;
1307
- },
1308
- set: function(name) {
1309
- ownName = name;
1310
- render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
1311
- }
1312
- });
1313
- return elementType;
1314
- };
1315
- exports2.isValidElement = isValidElement;
1316
- exports2.lazy = function(ctor) {
1317
- return {
1318
- $$typeof: REACT_LAZY_TYPE,
1319
- _payload: { _status: -1, _result: ctor },
1320
- _init: lazyInitializer
1321
- };
1322
- };
1323
- exports2.memo = function(type, compare) {
1324
- null == type && console.error(
1325
- "memo: The first argument must be a component. Instead received: %s",
1326
- null === type ? "null" : typeof type
1327
- );
1328
- compare = {
1329
- $$typeof: REACT_MEMO_TYPE,
1330
- type,
1331
- compare: void 0 === compare ? null : compare
1332
- };
1333
- var ownName;
1334
- Object.defineProperty(compare, "displayName", {
1335
- enumerable: false,
1336
- configurable: true,
1337
- get: function() {
1338
- return ownName;
1339
- },
1340
- set: function(name) {
1341
- ownName = name;
1342
- type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
1343
- }
1344
- });
1345
- return compare;
1346
- };
1347
- exports2.startTransition = function(scope) {
1348
- var prevTransition = ReactSharedInternals.T, currentTransition = {};
1349
- ReactSharedInternals.T = currentTransition;
1350
- currentTransition._updatedFibers = /* @__PURE__ */ new Set();
1351
- try {
1352
- var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
1353
- null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1354
- "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
1355
- } catch (error) {
1356
- reportGlobalError(error);
1357
- } finally {
1358
- null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
1359
- "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
1360
- )), ReactSharedInternals.T = prevTransition;
1361
- }
1362
- };
1363
- exports2.unstable_useCacheRefresh = function() {
1364
- return resolveDispatcher().useCacheRefresh();
1365
- };
1366
- exports2.use = function(usable) {
1367
- return resolveDispatcher().use(usable);
1368
- };
1369
- exports2.useActionState = function(action, initialState, permalink) {
1370
- return resolveDispatcher().useActionState(
1371
- action,
1372
- initialState,
1373
- permalink
1374
- );
1375
- };
1376
- exports2.useCallback = function(callback, deps) {
1377
- return resolveDispatcher().useCallback(callback, deps);
1378
- };
1379
- exports2.useContext = function(Context) {
1380
- var dispatcher = resolveDispatcher();
1381
- Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
1382
- "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1383
- );
1384
- return dispatcher.useContext(Context);
1385
- };
1386
- exports2.useDebugValue = function(value, formatterFn) {
1387
- return resolveDispatcher().useDebugValue(value, formatterFn);
1388
- };
1389
- exports2.useDeferredValue = function(value, initialValue) {
1390
- return resolveDispatcher().useDeferredValue(value, initialValue);
1391
- };
1392
- exports2.useEffect = function(create, createDeps, update) {
1393
- null == create && console.warn(
1394
- "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1395
- );
1396
- var dispatcher = resolveDispatcher();
1397
- if ("function" === typeof update)
1398
- throw Error(
1399
- "useEffect CRUD overload is not enabled in this build of React."
1400
- );
1401
- return dispatcher.useEffect(create, createDeps);
1402
- };
1403
- exports2.useId = function() {
1404
- return resolveDispatcher().useId();
1405
- };
1406
- exports2.useImperativeHandle = function(ref, create, deps) {
1407
- return resolveDispatcher().useImperativeHandle(ref, create, deps);
1408
- };
1409
- exports2.useInsertionEffect = function(create, deps) {
1410
- null == create && console.warn(
1411
- "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1412
- );
1413
- return resolveDispatcher().useInsertionEffect(create, deps);
1414
- };
1415
- exports2.useLayoutEffect = function(create, deps) {
1416
- null == create && console.warn(
1417
- "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1418
- );
1419
- return resolveDispatcher().useLayoutEffect(create, deps);
1420
- };
1421
- exports2.useMemo = function(create, deps) {
1422
- return resolveDispatcher().useMemo(create, deps);
1423
- };
1424
- exports2.useOptimistic = function(passthrough, reducer) {
1425
- return resolveDispatcher().useOptimistic(passthrough, reducer);
1426
- };
1427
- exports2.useReducer = function(reducer, initialArg, init) {
1428
- return resolveDispatcher().useReducer(reducer, initialArg, init);
1429
- };
1430
- exports2.useRef = function(initialValue) {
1431
- return resolveDispatcher().useRef(initialValue);
1432
- };
1433
- exports2.useState = function(initialState) {
1434
- return resolveDispatcher().useState(initialState);
1435
- };
1436
- exports2.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1437
- return resolveDispatcher().useSyncExternalStore(
1438
- subscribe,
1439
- getSnapshot,
1440
- getServerSnapshot
1441
- );
1442
- };
1443
- exports2.useTransition = function() {
1444
- return resolveDispatcher().useTransition();
1445
- };
1446
- exports2.version = "19.1.1";
1447
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1448
- })();
1449
- }
1450
- });
1451
-
1452
- // node_modules/react/index.js
1453
- var require_react = __commonJS({
1454
- "node_modules/react/index.js"(exports2, module2) {
1455
- "use strict";
1456
- if (process.env.NODE_ENV === "production") {
1457
- module2.exports = require_react_production();
1458
- } else {
1459
- module2.exports = require_react_development();
1460
- }
1461
- }
1462
- });
1463
-
1464
- // node_modules/react/cjs/react-jsx-runtime.development.js
1465
- var require_react_jsx_runtime_development = __commonJS({
1466
- "node_modules/react/cjs/react-jsx-runtime.development.js"(exports2) {
1467
- "use strict";
1468
- "production" !== process.env.NODE_ENV && (function() {
1469
- function getComponentNameFromType(type) {
1470
- if (null == type) return null;
1471
- if ("function" === typeof type)
1472
- return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
1473
- if ("string" === typeof type) return type;
1474
- switch (type) {
1475
- case REACT_FRAGMENT_TYPE:
1476
- return "Fragment";
1477
- case REACT_PROFILER_TYPE:
1478
- return "Profiler";
1479
- case REACT_STRICT_MODE_TYPE:
1480
- return "StrictMode";
1481
- case REACT_SUSPENSE_TYPE:
1482
- return "Suspense";
1483
- case REACT_SUSPENSE_LIST_TYPE:
1484
- return "SuspenseList";
1485
- case REACT_ACTIVITY_TYPE:
1486
- return "Activity";
1487
- }
1488
- if ("object" === typeof type)
1489
- switch ("number" === typeof type.tag && console.error(
1490
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1491
- ), type.$$typeof) {
1492
- case REACT_PORTAL_TYPE:
1493
- return "Portal";
1494
- case REACT_CONTEXT_TYPE:
1495
- return (type.displayName || "Context") + ".Provider";
1496
- case REACT_CONSUMER_TYPE:
1497
- return (type._context.displayName || "Context") + ".Consumer";
1498
- case REACT_FORWARD_REF_TYPE:
1499
- var innerType = type.render;
1500
- type = type.displayName;
1501
- type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
1502
- return type;
1503
- case REACT_MEMO_TYPE:
1504
- return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
1505
- case REACT_LAZY_TYPE:
1506
- innerType = type._payload;
1507
- type = type._init;
1508
- try {
1509
- return getComponentNameFromType(type(innerType));
1510
- } catch (x) {
1511
- }
1512
- }
1513
- return null;
1514
- }
1515
- function testStringCoercion(value) {
1516
- return "" + value;
1517
- }
1518
- function checkKeyStringCoercion(value) {
1519
- try {
1520
- testStringCoercion(value);
1521
- var JSCompiler_inline_result = false;
1522
- } catch (e) {
1523
- JSCompiler_inline_result = true;
1524
- }
1525
- if (JSCompiler_inline_result) {
1526
- JSCompiler_inline_result = console;
1527
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
1528
- var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
1529
- JSCompiler_temp_const.call(
1530
- JSCompiler_inline_result,
1531
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1532
- JSCompiler_inline_result$jscomp$0
1533
- );
1534
- return testStringCoercion(value);
1535
- }
1536
- }
1537
- function getTaskName(type) {
1538
- if (type === REACT_FRAGMENT_TYPE) return "<>";
1539
- if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
1540
- return "<...>";
1541
- try {
1542
- var name = getComponentNameFromType(type);
1543
- return name ? "<" + name + ">" : "<...>";
1544
- } catch (x) {
1545
- return "<...>";
1546
- }
1547
- }
1548
- function getOwner() {
1549
- var dispatcher = ReactSharedInternals.A;
1550
- return null === dispatcher ? null : dispatcher.getOwner();
1551
- }
1552
- function UnknownOwner() {
1553
- return Error("react-stack-top-frame");
1554
- }
1555
- function hasValidKey(config) {
1556
- if (hasOwnProperty.call(config, "key")) {
1557
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
1558
- if (getter && getter.isReactWarning) return false;
1559
- }
1560
- return void 0 !== config.key;
1561
- }
1562
- function defineKeyPropWarningGetter(props, displayName) {
1563
- function warnAboutAccessingKey() {
1564
- specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
1565
- "%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)",
1566
- displayName
1567
- ));
1568
- }
1569
- warnAboutAccessingKey.isReactWarning = true;
1570
- Object.defineProperty(props, "key", {
1571
- get: warnAboutAccessingKey,
1572
- configurable: true
1573
- });
1574
- }
1575
- function elementRefGetterWithDeprecationWarning() {
1576
- var componentName = getComponentNameFromType(this.type);
1577
- didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
1578
- "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."
1579
- ));
1580
- componentName = this.props.ref;
1581
- return void 0 !== componentName ? componentName : null;
1582
- }
1583
- function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
1584
- self = props.ref;
1585
- type = {
1586
- $$typeof: REACT_ELEMENT_TYPE,
1587
- type,
1588
- key,
1589
- props,
1590
- _owner: owner
1591
- };
1592
- null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
1593
- enumerable: false,
1594
- get: elementRefGetterWithDeprecationWarning
1595
- }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
1596
- type._store = {};
1597
- Object.defineProperty(type._store, "validated", {
1598
- configurable: false,
1599
- enumerable: false,
1600
- writable: true,
1601
- value: 0
1602
- });
1603
- Object.defineProperty(type, "_debugInfo", {
1604
- configurable: false,
1605
- enumerable: false,
1606
- writable: true,
1607
- value: null
1608
- });
1609
- Object.defineProperty(type, "_debugStack", {
1610
- configurable: false,
1611
- enumerable: false,
1612
- writable: true,
1613
- value: debugStack
1614
- });
1615
- Object.defineProperty(type, "_debugTask", {
1616
- configurable: false,
1617
- enumerable: false,
1618
- writable: true,
1619
- value: debugTask
1620
- });
1621
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
1622
- return type;
1623
- }
1624
- function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
1625
- var children = config.children;
1626
- if (void 0 !== children)
1627
- if (isStaticChildren)
1628
- if (isArrayImpl(children)) {
1629
- for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
1630
- validateChildKeys(children[isStaticChildren]);
1631
- Object.freeze && Object.freeze(children);
1632
- } else
1633
- console.error(
1634
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
1635
- );
1636
- else validateChildKeys(children);
1637
- if (hasOwnProperty.call(config, "key")) {
1638
- children = getComponentNameFromType(type);
1639
- var keys = Object.keys(config).filter(function(k) {
1640
- return "key" !== k;
1641
- });
1642
- isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
1643
- didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
1644
- '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} />',
1645
- isStaticChildren,
1646
- children,
1647
- keys,
1648
- children
1649
- ), didWarnAboutKeySpread[children + isStaticChildren] = true);
1650
- }
1651
- children = null;
1652
- void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
1653
- hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
1654
- if ("key" in config) {
1655
- maybeKey = {};
1656
- for (var propName in config)
1657
- "key" !== propName && (maybeKey[propName] = config[propName]);
1658
- } else maybeKey = config;
1659
- children && defineKeyPropWarningGetter(
1660
- maybeKey,
1661
- "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1662
- );
1663
- return ReactElement(
1664
- type,
1665
- children,
1666
- self,
1667
- source,
1668
- getOwner(),
1669
- maybeKey,
1670
- debugStack,
1671
- debugTask
1672
- );
1673
- }
1674
- function validateChildKeys(node) {
1675
- "object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
1676
- }
1677
- var React = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
1678
- Symbol.for("react.provider");
1679
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
1680
- return null;
1681
- };
1682
- React = {
1683
- react_stack_bottom_frame: function(callStackForError) {
1684
- return callStackForError();
1685
- }
1686
- };
1687
- var specialPropKeyWarningShown;
1688
- var didWarnAboutElementRef = {};
1689
- var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
1690
- React,
1691
- UnknownOwner
1692
- )();
1693
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1694
- var didWarnAboutKeySpread = {};
1695
- exports2.Fragment = REACT_FRAGMENT_TYPE;
1696
- exports2.jsx = function(type, config, maybeKey, source, self) {
1697
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1698
- return jsxDEVImpl(
1699
- type,
1700
- config,
1701
- maybeKey,
1702
- false,
1703
- source,
1704
- self,
1705
- trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1706
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1707
- );
1708
- };
1709
- exports2.jsxs = function(type, config, maybeKey, source, self) {
1710
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1711
- return jsxDEVImpl(
1712
- type,
1713
- config,
1714
- maybeKey,
1715
- true,
1716
- source,
1717
- self,
1718
- trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1719
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1720
- );
1721
- };
1722
- })();
1723
- }
1724
- });
1725
-
1726
- // node_modules/react/jsx-runtime.js
1727
- var require_jsx_runtime = __commonJS({
1728
- "node_modules/react/jsx-runtime.js"(exports2, module2) {
1729
- "use strict";
1730
- if (process.env.NODE_ENV === "production") {
1731
- module2.exports = require_react_jsx_runtime_production();
1732
- } else {
1733
- module2.exports = require_react_jsx_runtime_development();
1734
- }
1735
- }
1736
- });
1737
-
1738
20
  // src/index.ts
1739
21
  var index_exports = {};
1740
22
  __export(index_exports, {
@@ -1753,7 +35,7 @@ __export(index_exports, {
1753
35
  module.exports = __toCommonJS(index_exports);
1754
36
 
1755
37
  // src/Button/PrimaryButton/PrimaryButton.tsx
1756
- var import_jsx_runtime = __toESM(require_jsx_runtime());
38
+ var import_jsx_runtime = require("react/jsx-runtime");
1757
39
  function PrimaryButton({
1758
40
  title,
1759
41
  onClick,
@@ -1777,7 +59,7 @@ function PrimaryButton({
1777
59
  }
1778
60
 
1779
61
  // src/Button/SecondaryButton/SecondaryButton.tsx
1780
- var import_jsx_runtime2 = __toESM(require_jsx_runtime());
62
+ var import_jsx_runtime2 = require("react/jsx-runtime");
1781
63
  function SecondaryButton({ title, onClick, iconLeft, iconRight }) {
1782
64
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1783
65
  "button",
@@ -1794,7 +76,7 @@ function SecondaryButton({ title, onClick, iconLeft, iconRight }) {
1794
76
  }
1795
77
 
1796
78
  // src/Button/GhostButton/GhostButton.tsx
1797
- var import_jsx_runtime3 = __toESM(require_jsx_runtime());
79
+ var import_jsx_runtime3 = require("react/jsx-runtime");
1798
80
  function GhostButton({ title, onClick, iconLeft, iconRight }) {
1799
81
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1800
82
  "button",
@@ -1811,7 +93,7 @@ function GhostButton({ title, onClick, iconLeft, iconRight }) {
1811
93
  }
1812
94
 
1813
95
  // src/Loader/Loader/Loader.tsx
1814
- var import_jsx_runtime4 = __toESM(require_jsx_runtime());
96
+ var import_jsx_runtime4 = require("react/jsx-runtime");
1815
97
  function Loader({ size = 25 }) {
1816
98
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1817
99
  "div",
@@ -1824,7 +106,7 @@ function Loader({ size = 25 }) {
1824
106
 
1825
107
  // src/Checkbox/Checkbox/Checkbox.tsx
1826
108
  var import_icons_react = require("@tabler/icons-react");
1827
- var import_jsx_runtime5 = __toESM(require_jsx_runtime());
109
+ var import_jsx_runtime5 = require("react/jsx-runtime");
1828
110
  function Checkbox({ label, checked, onChange }) {
1829
111
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex gap-[10px]", children: [
1830
112
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
@@ -1848,13 +130,13 @@ function Checkbox({ label, checked, onChange }) {
1848
130
  }
1849
131
 
1850
132
  // src/Checkbox/CheckboxGroup/CheckboxGroup.tsx
1851
- var import_jsx_runtime6 = __toESM(require_jsx_runtime());
133
+ var import_jsx_runtime6 = require("react/jsx-runtime");
1852
134
  function CheckboxGroup({ options, onChange, alignment = "vertical" }) {
1853
135
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: `flex gap-4 ${alignment === "vertical" ? "flex-col" : ""}`, children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Checkbox, { checked: opt.checked, label: opt.label, onChange: () => onChange(opt.label) }, opt.label)) });
1854
136
  }
1855
137
 
1856
138
  // src/Radio/Radio/Radio.tsx
1857
- var import_jsx_runtime7 = __toESM(require_jsx_runtime());
139
+ var import_jsx_runtime7 = require("react/jsx-runtime");
1858
140
  function Radio({ selected, onChange }) {
1859
141
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1860
142
  "div",
@@ -1867,7 +149,7 @@ function Radio({ selected, onChange }) {
1867
149
  }
1868
150
 
1869
151
  // src/Radio/RadioGroup/RadioGroup.tsx
1870
- var import_jsx_runtime8 = __toESM(require_jsx_runtime());
152
+ var import_jsx_runtime8 = require("react/jsx-runtime");
1871
153
  function RadioGroup({ options, value, onChange, alignment = "horizontal" }) {
1872
154
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: `flex gap-2 ${alignment === "vertical" ? "flex-col" : ""}`, children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { className: "flex items-center gap-2 cursor-pointer", children: [
1873
155
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Radio, { selected: value === opt.value, onChange: () => onChange(opt.value) }),
@@ -1876,7 +158,7 @@ function RadioGroup({ options, value, onChange, alignment = "horizontal" }) {
1876
158
  }
1877
159
 
1878
160
  // src/Switch/Switch/Switch.tsx
1879
- var import_jsx_runtime9 = __toESM(require_jsx_runtime());
161
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1880
162
  function Switch({ label, checked, onChange }) {
1881
163
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center gap-[10px]", children: [
1882
164
  label && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { children: label }),
@@ -1900,7 +182,7 @@ function Switch({ label, checked, onChange }) {
1900
182
  }
1901
183
 
1902
184
  // src/NavBar/MenuNavBar/MenuNavBar.tsx
1903
- var import_jsx_runtime10 = __toESM(require_jsx_runtime());
185
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1904
186
  function MenuNavBar({ menus, onClick }) {
1905
187
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "w-full h-full p-[10px]", children: menus?.map((menu, index) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: `p-[10px] ${index !== 0 ? "mt-[10px]" : ""}`, children: [
1906
188
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { className: "p-[10px] w-[202px] h-[47px] subtitle-1", children: menu.title }),
@@ -1928,7 +210,7 @@ var STO_logo_default = "./STO-logo-ADYYAPS3.svg";
1928
210
 
1929
211
  // src/NavBar/TopNavBar/TopNavBar.tsx
1930
212
  var import_icons_react2 = require("@tabler/icons-react");
1931
- var import_jsx_runtime11 = __toESM(require_jsx_runtime());
213
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1932
214
  function TopNavBar({ onClickNoti }) {
1933
215
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "w-full h-full flex", children: [
1934
216
  /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex items-center gap-[20px] p-[10px]", children: [
@@ -1956,49 +238,3 @@ function TopNavBar({ onClickNoti }) {
1956
238
  Switch,
1957
239
  TopNavBar
1958
240
  });
1959
- /*! Bundled license information:
1960
-
1961
- react/cjs/react-jsx-runtime.production.js:
1962
- (**
1963
- * @license React
1964
- * react-jsx-runtime.production.js
1965
- *
1966
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1967
- *
1968
- * This source code is licensed under the MIT license found in the
1969
- * LICENSE file in the root directory of this source tree.
1970
- *)
1971
-
1972
- react/cjs/react.production.js:
1973
- (**
1974
- * @license React
1975
- * react.production.js
1976
- *
1977
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1978
- *
1979
- * This source code is licensed under the MIT license found in the
1980
- * LICENSE file in the root directory of this source tree.
1981
- *)
1982
-
1983
- react/cjs/react.development.js:
1984
- (**
1985
- * @license React
1986
- * react.development.js
1987
- *
1988
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1989
- *
1990
- * This source code is licensed under the MIT license found in the
1991
- * LICENSE file in the root directory of this source tree.
1992
- *)
1993
-
1994
- react/cjs/react-jsx-runtime.development.js:
1995
- (**
1996
- * @license React
1997
- * react-jsx-runtime.development.js
1998
- *
1999
- * Copyright (c) Meta Platforms, Inc. and affiliates.
2000
- *
2001
- * This source code is licensed under the MIT license found in the
2002
- * LICENSE file in the root directory of this source tree.
2003
- *)
2004
- */