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