@openbuilder/cli 0.50.19 → 0.50.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/chunks/{Banner-ClJs6QcI.js → Banner-BlktOjfl.js} +6 -3
  2. package/dist/chunks/{Banner-ClJs6QcI.js.map → Banner-BlktOjfl.js.map} +1 -1
  3. package/dist/chunks/{_commonjsHelpers-DcsQGttR.js → _commonjsHelpers-h-Bqc03Z.js} +4 -2
  4. package/dist/chunks/_commonjsHelpers-h-Bqc03Z.js.map +1 -0
  5. package/dist/chunks/devtools-7A3EXJhY.js +75 -0
  6. package/dist/chunks/devtools-7A3EXJhY.js.map +1 -0
  7. package/dist/chunks/index-oFqGtEeF.js +119 -0
  8. package/dist/chunks/index-oFqGtEeF.js.map +1 -0
  9. package/dist/chunks/{init-zX5aX-qn.js → init-DDtrxZ0M.js} +13 -8
  10. package/dist/chunks/{init-zX5aX-qn.js.map → init-DDtrxZ0M.js.map} +1 -1
  11. package/dist/chunks/{init-tui-DDxZYe9B.js → init-tui-tZtLISA4.js} +14 -9
  12. package/dist/chunks/{init-tui-DDxZYe9B.js.map → init-tui-tZtLISA4.js.map} +1 -1
  13. package/dist/chunks/{main-tui-B5GJ49Bp.js → main-tui-BrfgfCDw.js} +15 -10
  14. package/dist/chunks/{main-tui-B5GJ49Bp.js.map → main-tui-BrfgfCDw.js.map} +1 -1
  15. package/dist/chunks/{run-CaSootos.js → run-LjsGm3tI.js} +18 -9
  16. package/dist/chunks/run-LjsGm3tI.js.map +1 -0
  17. package/dist/chunks/{start-B4P27nZ7.js → start-CQKEEma-.js} +14 -8
  18. package/dist/chunks/{start-B4P27nZ7.js.map → start-CQKEEma-.js.map} +1 -1
  19. package/dist/chunks/theme-CktnrDZj.js +40217 -0
  20. package/dist/chunks/theme-CktnrDZj.js.map +1 -0
  21. package/dist/chunks/use-app-Cj2bzWaw.js +10 -0
  22. package/dist/chunks/use-app-Cj2bzWaw.js.map +1 -0
  23. package/dist/chunks/{useBuildState-BZuezCb6.js → useBuildState-pcDGDakI.js} +6 -5
  24. package/dist/chunks/{useBuildState-BZuezCb6.js.map → useBuildState-pcDGDakI.js.map} +1 -1
  25. package/dist/cli/index.js +5 -5
  26. package/dist/instrument.js +4 -4
  27. package/package.json +1 -5
  28. package/scripts/prepare-release.js +10 -7
  29. package/dist/chunks/_commonjsHelpers-DcsQGttR.js.map +0 -1
  30. package/dist/chunks/run-CaSootos.js.map +0 -1
  31. package/dist/chunks/theme-BF4W2Gwm.js +0 -2300
  32. package/dist/chunks/theme-BF4W2Gwm.js.map +0 -1
@@ -1,2300 +0,0 @@
1
- // OpenBuilder CLI - Built with Rollup
2
- import { a as getDefaultExportFromCjs } from './_commonjsHelpers-DcsQGttR.js';
3
-
4
- var react = {exports: {}};
5
-
6
- var react_production = {};
7
-
8
- /**
9
- * @license React
10
- * react.production.js
11
- *
12
- * Copyright (c) Meta Platforms, Inc. and affiliates.
13
- *
14
- * This source code is licensed under the MIT license found in the
15
- * LICENSE file in the root directory of this source tree.
16
- */
17
-
18
- var hasRequiredReact_production;
19
-
20
- function requireReact_production () {
21
- if (hasRequiredReact_production) return react_production;
22
- hasRequiredReact_production = 1;
23
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
24
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
25
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
26
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
27
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
28
- REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
29
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
30
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
31
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
32
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
33
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
34
- MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
35
- function getIteratorFn(maybeIterable) {
36
- if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
37
- maybeIterable =
38
- (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
39
- maybeIterable["@@iterator"];
40
- return "function" === typeof maybeIterable ? maybeIterable : null;
41
- }
42
- var ReactNoopUpdateQueue = {
43
- isMounted: function () {
44
- return false;
45
- },
46
- enqueueForceUpdate: function () {},
47
- enqueueReplaceState: function () {},
48
- enqueueSetState: function () {}
49
- },
50
- assign = Object.assign,
51
- emptyObject = {};
52
- function Component(props, context, updater) {
53
- this.props = props;
54
- this.context = context;
55
- this.refs = emptyObject;
56
- this.updater = updater || ReactNoopUpdateQueue;
57
- }
58
- Component.prototype.isReactComponent = {};
59
- Component.prototype.setState = function (partialState, callback) {
60
- if (
61
- "object" !== typeof partialState &&
62
- "function" !== typeof partialState &&
63
- null != partialState
64
- )
65
- throw Error(
66
- "takes an object of state variables to update or a function which returns an object of state variables."
67
- );
68
- this.updater.enqueueSetState(this, partialState, callback, "setState");
69
- };
70
- Component.prototype.forceUpdate = function (callback) {
71
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
72
- };
73
- function ComponentDummy() {}
74
- ComponentDummy.prototype = Component.prototype;
75
- function PureComponent(props, context, updater) {
76
- this.props = props;
77
- this.context = context;
78
- this.refs = emptyObject;
79
- this.updater = updater || ReactNoopUpdateQueue;
80
- }
81
- var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
82
- pureComponentPrototype.constructor = PureComponent;
83
- assign(pureComponentPrototype, Component.prototype);
84
- pureComponentPrototype.isPureReactComponent = true;
85
- var isArrayImpl = Array.isArray,
86
- ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null },
87
- hasOwnProperty = Object.prototype.hasOwnProperty;
88
- function ReactElement(type, key, self, source, owner, props) {
89
- self = props.ref;
90
- return {
91
- $$typeof: REACT_ELEMENT_TYPE,
92
- type: type,
93
- key: key,
94
- ref: void 0 !== self ? self : null,
95
- props: props
96
- };
97
- }
98
- function cloneAndReplaceKey(oldElement, newKey) {
99
- return ReactElement(
100
- oldElement.type,
101
- newKey,
102
- void 0,
103
- void 0,
104
- void 0,
105
- oldElement.props
106
- );
107
- }
108
- function isValidElement(object) {
109
- return (
110
- "object" === typeof object &&
111
- null !== object &&
112
- object.$$typeof === REACT_ELEMENT_TYPE
113
- );
114
- }
115
- function escape(key) {
116
- var escaperLookup = { "=": "=0", ":": "=2" };
117
- return (
118
- "$" +
119
- key.replace(/[=:]/g, function (match) {
120
- return escaperLookup[match];
121
- })
122
- );
123
- }
124
- var userProvidedKeyEscapeRegex = /\/+/g;
125
- function getElementKey(element, index) {
126
- return "object" === typeof element && null !== element && null != element.key
127
- ? escape("" + element.key)
128
- : index.toString(36);
129
- }
130
- function noop$1() {}
131
- function resolveThenable(thenable) {
132
- switch (thenable.status) {
133
- case "fulfilled":
134
- return thenable.value;
135
- case "rejected":
136
- throw thenable.reason;
137
- default:
138
- switch (
139
- ("string" === typeof thenable.status
140
- ? thenable.then(noop$1, noop$1)
141
- : ((thenable.status = "pending"),
142
- thenable.then(
143
- function (fulfilledValue) {
144
- "pending" === thenable.status &&
145
- ((thenable.status = "fulfilled"),
146
- (thenable.value = fulfilledValue));
147
- },
148
- function (error) {
149
- "pending" === thenable.status &&
150
- ((thenable.status = "rejected"), (thenable.reason = error));
151
- }
152
- )),
153
- thenable.status)
154
- ) {
155
- case "fulfilled":
156
- return thenable.value;
157
- case "rejected":
158
- throw thenable.reason;
159
- }
160
- }
161
- throw thenable;
162
- }
163
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
164
- var type = typeof children;
165
- if ("undefined" === type || "boolean" === type) children = null;
166
- var invokeCallback = false;
167
- if (null === children) invokeCallback = true;
168
- else
169
- switch (type) {
170
- case "bigint":
171
- case "string":
172
- case "number":
173
- invokeCallback = true;
174
- break;
175
- case "object":
176
- switch (children.$$typeof) {
177
- case REACT_ELEMENT_TYPE:
178
- case REACT_PORTAL_TYPE:
179
- invokeCallback = true;
180
- break;
181
- case REACT_LAZY_TYPE:
182
- return (
183
- (invokeCallback = children._init),
184
- mapIntoArray(
185
- invokeCallback(children._payload),
186
- array,
187
- escapedPrefix,
188
- nameSoFar,
189
- callback
190
- )
191
- );
192
- }
193
- }
194
- if (invokeCallback)
195
- return (
196
- (callback = callback(children)),
197
- (invokeCallback =
198
- "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
199
- isArrayImpl(callback)
200
- ? ((escapedPrefix = ""),
201
- null != invokeCallback &&
202
- (escapedPrefix =
203
- invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
204
- mapIntoArray(callback, array, escapedPrefix, "", function (c) {
205
- return c;
206
- }))
207
- : null != callback &&
208
- (isValidElement(callback) &&
209
- (callback = cloneAndReplaceKey(
210
- callback,
211
- escapedPrefix +
212
- (null == callback.key ||
213
- (children && children.key === callback.key)
214
- ? ""
215
- : ("" + callback.key).replace(
216
- userProvidedKeyEscapeRegex,
217
- "$&/"
218
- ) + "/") +
219
- invokeCallback
220
- )),
221
- array.push(callback)),
222
- 1
223
- );
224
- invokeCallback = 0;
225
- var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
226
- if (isArrayImpl(children))
227
- for (var i = 0; i < children.length; i++)
228
- (nameSoFar = children[i]),
229
- (type = nextNamePrefix + getElementKey(nameSoFar, i)),
230
- (invokeCallback += mapIntoArray(
231
- nameSoFar,
232
- array,
233
- escapedPrefix,
234
- type,
235
- callback
236
- ));
237
- else if (((i = getIteratorFn(children)), "function" === typeof i))
238
- for (
239
- children = i.call(children), i = 0;
240
- !(nameSoFar = children.next()).done;
241
-
242
- )
243
- (nameSoFar = nameSoFar.value),
244
- (type = nextNamePrefix + getElementKey(nameSoFar, i++)),
245
- (invokeCallback += mapIntoArray(
246
- nameSoFar,
247
- array,
248
- escapedPrefix,
249
- type,
250
- callback
251
- ));
252
- else if ("object" === type) {
253
- if ("function" === typeof children.then)
254
- return mapIntoArray(
255
- resolveThenable(children),
256
- array,
257
- escapedPrefix,
258
- nameSoFar,
259
- callback
260
- );
261
- array = String(children);
262
- throw Error(
263
- "Objects are not valid as a React child (found: " +
264
- ("[object Object]" === array
265
- ? "object with keys {" + Object.keys(children).join(", ") + "}"
266
- : array) +
267
- "). If you meant to render a collection of children, use an array instead."
268
- );
269
- }
270
- return invokeCallback;
271
- }
272
- function mapChildren(children, func, context) {
273
- if (null == children) return children;
274
- var result = [],
275
- count = 0;
276
- mapIntoArray(children, result, "", "", function (child) {
277
- return func.call(context, child, count++);
278
- });
279
- return result;
280
- }
281
- function lazyInitializer(payload) {
282
- if (-1 === payload._status) {
283
- var ctor = payload._result;
284
- ctor = ctor();
285
- ctor.then(
286
- function (moduleObject) {
287
- if (0 === payload._status || -1 === payload._status)
288
- (payload._status = 1), (payload._result = moduleObject);
289
- },
290
- function (error) {
291
- if (0 === payload._status || -1 === payload._status)
292
- (payload._status = 2), (payload._result = error);
293
- }
294
- );
295
- -1 === payload._status && ((payload._status = 0), (payload._result = ctor));
296
- }
297
- if (1 === payload._status) return payload._result.default;
298
- throw payload._result;
299
- }
300
- var reportGlobalError =
301
- "function" === typeof reportError
302
- ? reportError
303
- : function (error) {
304
- if (
305
- "object" === typeof window &&
306
- "function" === typeof window.ErrorEvent
307
- ) {
308
- var event = new window.ErrorEvent("error", {
309
- bubbles: true,
310
- cancelable: true,
311
- message:
312
- "object" === typeof error &&
313
- null !== error &&
314
- "string" === typeof error.message
315
- ? String(error.message)
316
- : String(error),
317
- error: error
318
- });
319
- if (!window.dispatchEvent(event)) return;
320
- } else if (
321
- "object" === typeof process &&
322
- "function" === typeof process.emit
323
- ) {
324
- process.emit("uncaughtException", error);
325
- return;
326
- }
327
- console.error(error);
328
- };
329
- function noop() {}
330
- react_production.Children = {
331
- map: mapChildren,
332
- forEach: function (children, forEachFunc, forEachContext) {
333
- mapChildren(
334
- children,
335
- function () {
336
- forEachFunc.apply(this, arguments);
337
- },
338
- forEachContext
339
- );
340
- },
341
- count: function (children) {
342
- var n = 0;
343
- mapChildren(children, function () {
344
- n++;
345
- });
346
- return n;
347
- },
348
- toArray: function (children) {
349
- return (
350
- mapChildren(children, function (child) {
351
- return child;
352
- }) || []
353
- );
354
- },
355
- only: function (children) {
356
- if (!isValidElement(children))
357
- throw Error(
358
- "React.Children.only expected to receive a single React element child."
359
- );
360
- return children;
361
- }
362
- };
363
- react_production.Component = Component;
364
- react_production.Fragment = REACT_FRAGMENT_TYPE;
365
- react_production.Profiler = REACT_PROFILER_TYPE;
366
- react_production.PureComponent = PureComponent;
367
- react_production.StrictMode = REACT_STRICT_MODE_TYPE;
368
- react_production.Suspense = REACT_SUSPENSE_TYPE;
369
- react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
370
- ReactSharedInternals;
371
- react_production.__COMPILER_RUNTIME = {
372
- __proto__: null,
373
- c: function (size) {
374
- return ReactSharedInternals.H.useMemoCache(size);
375
- }
376
- };
377
- react_production.cache = function (fn) {
378
- return function () {
379
- return fn.apply(null, arguments);
380
- };
381
- };
382
- react_production.cloneElement = function (element, config, children) {
383
- if (null === element || void 0 === element)
384
- throw Error(
385
- "The argument must be a React element, but you passed " + element + "."
386
- );
387
- var props = assign({}, element.props),
388
- key = element.key,
389
- owner = void 0;
390
- if (null != config)
391
- for (propName in (void 0 !== config.ref && (owner = void 0),
392
- void 0 !== config.key && (key = "" + config.key),
393
- config))
394
- !hasOwnProperty.call(config, propName) ||
395
- "key" === propName ||
396
- "__self" === propName ||
397
- "__source" === propName ||
398
- ("ref" === propName && void 0 === config.ref) ||
399
- (props[propName] = config[propName]);
400
- var propName = arguments.length - 2;
401
- if (1 === propName) props.children = children;
402
- else if (1 < propName) {
403
- for (var childArray = Array(propName), i = 0; i < propName; i++)
404
- childArray[i] = arguments[i + 2];
405
- props.children = childArray;
406
- }
407
- return ReactElement(element.type, key, void 0, void 0, owner, props);
408
- };
409
- react_production.createContext = function (defaultValue) {
410
- defaultValue = {
411
- $$typeof: REACT_CONTEXT_TYPE,
412
- _currentValue: defaultValue,
413
- _currentValue2: defaultValue,
414
- _threadCount: 0,
415
- Provider: null,
416
- Consumer: null
417
- };
418
- defaultValue.Provider = defaultValue;
419
- defaultValue.Consumer = {
420
- $$typeof: REACT_CONSUMER_TYPE,
421
- _context: defaultValue
422
- };
423
- return defaultValue;
424
- };
425
- react_production.createElement = function (type, config, children) {
426
- var propName,
427
- props = {},
428
- key = null;
429
- if (null != config)
430
- for (propName in (void 0 !== config.key && (key = "" + config.key), config))
431
- hasOwnProperty.call(config, propName) &&
432
- "key" !== propName &&
433
- "__self" !== propName &&
434
- "__source" !== propName &&
435
- (props[propName] = config[propName]);
436
- var childrenLength = arguments.length - 2;
437
- if (1 === childrenLength) props.children = children;
438
- else if (1 < childrenLength) {
439
- for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
440
- childArray[i] = arguments[i + 2];
441
- props.children = childArray;
442
- }
443
- if (type && type.defaultProps)
444
- for (propName in ((childrenLength = type.defaultProps), childrenLength))
445
- void 0 === props[propName] &&
446
- (props[propName] = childrenLength[propName]);
447
- return ReactElement(type, key, void 0, void 0, null, props);
448
- };
449
- react_production.createRef = function () {
450
- return { current: null };
451
- };
452
- react_production.forwardRef = function (render) {
453
- return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
454
- };
455
- react_production.isValidElement = isValidElement;
456
- react_production.lazy = function (ctor) {
457
- return {
458
- $$typeof: REACT_LAZY_TYPE,
459
- _payload: { _status: -1, _result: ctor },
460
- _init: lazyInitializer
461
- };
462
- };
463
- react_production.memo = function (type, compare) {
464
- return {
465
- $$typeof: REACT_MEMO_TYPE,
466
- type: type,
467
- compare: void 0 === compare ? null : compare
468
- };
469
- };
470
- react_production.startTransition = function (scope) {
471
- var prevTransition = ReactSharedInternals.T,
472
- currentTransition = {};
473
- ReactSharedInternals.T = currentTransition;
474
- try {
475
- var returnValue = scope(),
476
- onStartTransitionFinish = ReactSharedInternals.S;
477
- null !== onStartTransitionFinish &&
478
- onStartTransitionFinish(currentTransition, returnValue);
479
- "object" === typeof returnValue &&
480
- null !== returnValue &&
481
- "function" === typeof returnValue.then &&
482
- returnValue.then(noop, reportGlobalError);
483
- } catch (error) {
484
- reportGlobalError(error);
485
- } finally {
486
- ReactSharedInternals.T = prevTransition;
487
- }
488
- };
489
- react_production.unstable_useCacheRefresh = function () {
490
- return ReactSharedInternals.H.useCacheRefresh();
491
- };
492
- react_production.use = function (usable) {
493
- return ReactSharedInternals.H.use(usable);
494
- };
495
- react_production.useActionState = function (action, initialState, permalink) {
496
- return ReactSharedInternals.H.useActionState(action, initialState, permalink);
497
- };
498
- react_production.useCallback = function (callback, deps) {
499
- return ReactSharedInternals.H.useCallback(callback, deps);
500
- };
501
- react_production.useContext = function (Context) {
502
- return ReactSharedInternals.H.useContext(Context);
503
- };
504
- react_production.useDebugValue = function () {};
505
- react_production.useDeferredValue = function (value, initialValue) {
506
- return ReactSharedInternals.H.useDeferredValue(value, initialValue);
507
- };
508
- react_production.useEffect = function (create, createDeps, update) {
509
- var dispatcher = ReactSharedInternals.H;
510
- if ("function" === typeof update)
511
- throw Error(
512
- "useEffect CRUD overload is not enabled in this build of React."
513
- );
514
- return dispatcher.useEffect(create, createDeps);
515
- };
516
- react_production.useId = function () {
517
- return ReactSharedInternals.H.useId();
518
- };
519
- react_production.useImperativeHandle = function (ref, create, deps) {
520
- return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
521
- };
522
- react_production.useInsertionEffect = function (create, deps) {
523
- return ReactSharedInternals.H.useInsertionEffect(create, deps);
524
- };
525
- react_production.useLayoutEffect = function (create, deps) {
526
- return ReactSharedInternals.H.useLayoutEffect(create, deps);
527
- };
528
- react_production.useMemo = function (create, deps) {
529
- return ReactSharedInternals.H.useMemo(create, deps);
530
- };
531
- react_production.useOptimistic = function (passthrough, reducer) {
532
- return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
533
- };
534
- react_production.useReducer = function (reducer, initialArg, init) {
535
- return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
536
- };
537
- react_production.useRef = function (initialValue) {
538
- return ReactSharedInternals.H.useRef(initialValue);
539
- };
540
- react_production.useState = function (initialState) {
541
- return ReactSharedInternals.H.useState(initialState);
542
- };
543
- react_production.useSyncExternalStore = function (
544
- subscribe,
545
- getSnapshot,
546
- getServerSnapshot
547
- ) {
548
- return ReactSharedInternals.H.useSyncExternalStore(
549
- subscribe,
550
- getSnapshot,
551
- getServerSnapshot
552
- );
553
- };
554
- react_production.useTransition = function () {
555
- return ReactSharedInternals.H.useTransition();
556
- };
557
- react_production.version = "19.1.0";
558
- return react_production;
559
- }
560
-
561
- var react_development = {exports: {}};
562
-
563
- /**
564
- * @license React
565
- * react.development.js
566
- *
567
- * Copyright (c) Meta Platforms, Inc. and affiliates.
568
- *
569
- * This source code is licensed under the MIT license found in the
570
- * LICENSE file in the root directory of this source tree.
571
- */
572
- react_development.exports;
573
-
574
- var hasRequiredReact_development;
575
-
576
- function requireReact_development () {
577
- if (hasRequiredReact_development) return react_development.exports;
578
- hasRequiredReact_development = 1;
579
- (function (module, exports$1) {
580
- "production" !== process.env.NODE_ENV &&
581
- (function () {
582
- function defineDeprecationWarning(methodName, info) {
583
- Object.defineProperty(Component.prototype, methodName, {
584
- get: function () {
585
- console.warn(
586
- "%s(...) is deprecated in plain JavaScript React classes. %s",
587
- info[0],
588
- info[1]
589
- );
590
- }
591
- });
592
- }
593
- function getIteratorFn(maybeIterable) {
594
- if (null === maybeIterable || "object" !== typeof maybeIterable)
595
- return null;
596
- maybeIterable =
597
- (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
598
- maybeIterable["@@iterator"];
599
- return "function" === typeof maybeIterable ? maybeIterable : null;
600
- }
601
- function warnNoop(publicInstance, callerName) {
602
- publicInstance =
603
- ((publicInstance = publicInstance.constructor) &&
604
- (publicInstance.displayName || publicInstance.name)) ||
605
- "ReactClass";
606
- var warningKey = publicInstance + "." + callerName;
607
- didWarnStateUpdateForUnmountedComponent[warningKey] ||
608
- (console.error(
609
- "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.",
610
- callerName,
611
- publicInstance
612
- ),
613
- (didWarnStateUpdateForUnmountedComponent[warningKey] = true));
614
- }
615
- function Component(props, context, updater) {
616
- this.props = props;
617
- this.context = context;
618
- this.refs = emptyObject;
619
- this.updater = updater || ReactNoopUpdateQueue;
620
- }
621
- function ComponentDummy() {}
622
- function PureComponent(props, context, updater) {
623
- this.props = props;
624
- this.context = context;
625
- this.refs = emptyObject;
626
- this.updater = updater || ReactNoopUpdateQueue;
627
- }
628
- function testStringCoercion(value) {
629
- return "" + value;
630
- }
631
- function checkKeyStringCoercion(value) {
632
- try {
633
- testStringCoercion(value);
634
- var JSCompiler_inline_result = !1;
635
- } catch (e) {
636
- JSCompiler_inline_result = true;
637
- }
638
- if (JSCompiler_inline_result) {
639
- JSCompiler_inline_result = console;
640
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
641
- var JSCompiler_inline_result$jscomp$0 =
642
- ("function" === typeof Symbol &&
643
- Symbol.toStringTag &&
644
- value[Symbol.toStringTag]) ||
645
- value.constructor.name ||
646
- "Object";
647
- JSCompiler_temp_const.call(
648
- JSCompiler_inline_result,
649
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
650
- JSCompiler_inline_result$jscomp$0
651
- );
652
- return testStringCoercion(value);
653
- }
654
- }
655
- function getComponentNameFromType(type) {
656
- if (null == type) return null;
657
- if ("function" === typeof type)
658
- return type.$$typeof === REACT_CLIENT_REFERENCE
659
- ? null
660
- : type.displayName || type.name || null;
661
- if ("string" === typeof type) return type;
662
- switch (type) {
663
- case REACT_FRAGMENT_TYPE:
664
- return "Fragment";
665
- case REACT_PROFILER_TYPE:
666
- return "Profiler";
667
- case REACT_STRICT_MODE_TYPE:
668
- return "StrictMode";
669
- case REACT_SUSPENSE_TYPE:
670
- return "Suspense";
671
- case REACT_SUSPENSE_LIST_TYPE:
672
- return "SuspenseList";
673
- case REACT_ACTIVITY_TYPE:
674
- return "Activity";
675
- }
676
- if ("object" === typeof type)
677
- switch (
678
- ("number" === typeof type.tag &&
679
- console.error(
680
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
681
- ),
682
- type.$$typeof)
683
- ) {
684
- case REACT_PORTAL_TYPE:
685
- return "Portal";
686
- case REACT_CONTEXT_TYPE:
687
- return (type.displayName || "Context") + ".Provider";
688
- case REACT_CONSUMER_TYPE:
689
- return (type._context.displayName || "Context") + ".Consumer";
690
- case REACT_FORWARD_REF_TYPE:
691
- var innerType = type.render;
692
- type = type.displayName;
693
- type ||
694
- ((type = innerType.displayName || innerType.name || ""),
695
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
696
- return type;
697
- case REACT_MEMO_TYPE:
698
- return (
699
- (innerType = type.displayName || null),
700
- null !== innerType
701
- ? innerType
702
- : getComponentNameFromType(type.type) || "Memo"
703
- );
704
- case REACT_LAZY_TYPE:
705
- innerType = type._payload;
706
- type = type._init;
707
- try {
708
- return getComponentNameFromType(type(innerType));
709
- } catch (x) {}
710
- }
711
- return null;
712
- }
713
- function getTaskName(type) {
714
- if (type === REACT_FRAGMENT_TYPE) return "<>";
715
- if (
716
- "object" === typeof type &&
717
- null !== type &&
718
- type.$$typeof === REACT_LAZY_TYPE
719
- )
720
- return "<...>";
721
- try {
722
- var name = getComponentNameFromType(type);
723
- return name ? "<" + name + ">" : "<...>";
724
- } catch (x) {
725
- return "<...>";
726
- }
727
- }
728
- function getOwner() {
729
- var dispatcher = ReactSharedInternals.A;
730
- return null === dispatcher ? null : dispatcher.getOwner();
731
- }
732
- function UnknownOwner() {
733
- return Error("react-stack-top-frame");
734
- }
735
- function hasValidKey(config) {
736
- if (hasOwnProperty.call(config, "key")) {
737
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
738
- if (getter && getter.isReactWarning) return false;
739
- }
740
- return void 0 !== config.key;
741
- }
742
- function defineKeyPropWarningGetter(props, displayName) {
743
- function warnAboutAccessingKey() {
744
- specialPropKeyWarningShown ||
745
- ((specialPropKeyWarningShown = true),
746
- console.error(
747
- "%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)",
748
- displayName
749
- ));
750
- }
751
- warnAboutAccessingKey.isReactWarning = true;
752
- Object.defineProperty(props, "key", {
753
- get: warnAboutAccessingKey,
754
- configurable: true
755
- });
756
- }
757
- function elementRefGetterWithDeprecationWarning() {
758
- var componentName = getComponentNameFromType(this.type);
759
- didWarnAboutElementRef[componentName] ||
760
- ((didWarnAboutElementRef[componentName] = true),
761
- console.error(
762
- "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."
763
- ));
764
- componentName = this.props.ref;
765
- return void 0 !== componentName ? componentName : null;
766
- }
767
- function ReactElement(
768
- type,
769
- key,
770
- self,
771
- source,
772
- owner,
773
- props,
774
- debugStack,
775
- debugTask
776
- ) {
777
- self = props.ref;
778
- type = {
779
- $$typeof: REACT_ELEMENT_TYPE,
780
- type: type,
781
- key: key,
782
- props: props,
783
- _owner: owner
784
- };
785
- null !== (void 0 !== self ? self : null)
786
- ? Object.defineProperty(type, "ref", {
787
- enumerable: false,
788
- get: elementRefGetterWithDeprecationWarning
789
- })
790
- : Object.defineProperty(type, "ref", { enumerable: false, value: null });
791
- type._store = {};
792
- Object.defineProperty(type._store, "validated", {
793
- configurable: false,
794
- enumerable: false,
795
- writable: true,
796
- value: 0
797
- });
798
- Object.defineProperty(type, "_debugInfo", {
799
- configurable: false,
800
- enumerable: false,
801
- writable: true,
802
- value: null
803
- });
804
- Object.defineProperty(type, "_debugStack", {
805
- configurable: false,
806
- enumerable: false,
807
- writable: true,
808
- value: debugStack
809
- });
810
- Object.defineProperty(type, "_debugTask", {
811
- configurable: false,
812
- enumerable: false,
813
- writable: true,
814
- value: debugTask
815
- });
816
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
817
- return type;
818
- }
819
- function cloneAndReplaceKey(oldElement, newKey) {
820
- newKey = ReactElement(
821
- oldElement.type,
822
- newKey,
823
- void 0,
824
- void 0,
825
- oldElement._owner,
826
- oldElement.props,
827
- oldElement._debugStack,
828
- oldElement._debugTask
829
- );
830
- oldElement._store &&
831
- (newKey._store.validated = oldElement._store.validated);
832
- return newKey;
833
- }
834
- function isValidElement(object) {
835
- return (
836
- "object" === typeof object &&
837
- null !== object &&
838
- object.$$typeof === REACT_ELEMENT_TYPE
839
- );
840
- }
841
- function escape(key) {
842
- var escaperLookup = { "=": "=0", ":": "=2" };
843
- return (
844
- "$" +
845
- key.replace(/[=:]/g, function (match) {
846
- return escaperLookup[match];
847
- })
848
- );
849
- }
850
- function getElementKey(element, index) {
851
- return "object" === typeof element &&
852
- null !== element &&
853
- null != element.key
854
- ? (checkKeyStringCoercion(element.key), escape("" + element.key))
855
- : index.toString(36);
856
- }
857
- function noop$1() {}
858
- function resolveThenable(thenable) {
859
- switch (thenable.status) {
860
- case "fulfilled":
861
- return thenable.value;
862
- case "rejected":
863
- throw thenable.reason;
864
- default:
865
- switch (
866
- ("string" === typeof thenable.status
867
- ? thenable.then(noop$1, noop$1)
868
- : ((thenable.status = "pending"),
869
- thenable.then(
870
- function (fulfilledValue) {
871
- "pending" === thenable.status &&
872
- ((thenable.status = "fulfilled"),
873
- (thenable.value = fulfilledValue));
874
- },
875
- function (error) {
876
- "pending" === thenable.status &&
877
- ((thenable.status = "rejected"),
878
- (thenable.reason = error));
879
- }
880
- )),
881
- thenable.status)
882
- ) {
883
- case "fulfilled":
884
- return thenable.value;
885
- case "rejected":
886
- throw thenable.reason;
887
- }
888
- }
889
- throw thenable;
890
- }
891
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
892
- var type = typeof children;
893
- if ("undefined" === type || "boolean" === type) children = null;
894
- var invokeCallback = false;
895
- if (null === children) invokeCallback = true;
896
- else
897
- switch (type) {
898
- case "bigint":
899
- case "string":
900
- case "number":
901
- invokeCallback = true;
902
- break;
903
- case "object":
904
- switch (children.$$typeof) {
905
- case REACT_ELEMENT_TYPE:
906
- case REACT_PORTAL_TYPE:
907
- invokeCallback = true;
908
- break;
909
- case REACT_LAZY_TYPE:
910
- return (
911
- (invokeCallback = children._init),
912
- mapIntoArray(
913
- invokeCallback(children._payload),
914
- array,
915
- escapedPrefix,
916
- nameSoFar,
917
- callback
918
- )
919
- );
920
- }
921
- }
922
- if (invokeCallback) {
923
- invokeCallback = children;
924
- callback = callback(invokeCallback);
925
- var childKey =
926
- "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
927
- isArrayImpl(callback)
928
- ? ((escapedPrefix = ""),
929
- null != childKey &&
930
- (escapedPrefix =
931
- childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
932
- mapIntoArray(callback, array, escapedPrefix, "", function (c) {
933
- return c;
934
- }))
935
- : null != callback &&
936
- (isValidElement(callback) &&
937
- (null != callback.key &&
938
- ((invokeCallback && invokeCallback.key === callback.key) ||
939
- checkKeyStringCoercion(callback.key)),
940
- (escapedPrefix = cloneAndReplaceKey(
941
- callback,
942
- escapedPrefix +
943
- (null == callback.key ||
944
- (invokeCallback && invokeCallback.key === callback.key)
945
- ? ""
946
- : ("" + callback.key).replace(
947
- userProvidedKeyEscapeRegex,
948
- "$&/"
949
- ) + "/") +
950
- childKey
951
- )),
952
- "" !== nameSoFar &&
953
- null != invokeCallback &&
954
- isValidElement(invokeCallback) &&
955
- null == invokeCallback.key &&
956
- invokeCallback._store &&
957
- !invokeCallback._store.validated &&
958
- (escapedPrefix._store.validated = 2),
959
- (callback = escapedPrefix)),
960
- array.push(callback));
961
- return 1;
962
- }
963
- invokeCallback = 0;
964
- childKey = "" === nameSoFar ? "." : nameSoFar + ":";
965
- if (isArrayImpl(children))
966
- for (var i = 0; i < children.length; i++)
967
- (nameSoFar = children[i]),
968
- (type = childKey + getElementKey(nameSoFar, i)),
969
- (invokeCallback += mapIntoArray(
970
- nameSoFar,
971
- array,
972
- escapedPrefix,
973
- type,
974
- callback
975
- ));
976
- else if (((i = getIteratorFn(children)), "function" === typeof i))
977
- for (
978
- i === children.entries &&
979
- (didWarnAboutMaps ||
980
- console.warn(
981
- "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
982
- ),
983
- (didWarnAboutMaps = true)),
984
- children = i.call(children),
985
- i = 0;
986
- !(nameSoFar = children.next()).done;
987
-
988
- )
989
- (nameSoFar = nameSoFar.value),
990
- (type = childKey + getElementKey(nameSoFar, i++)),
991
- (invokeCallback += mapIntoArray(
992
- nameSoFar,
993
- array,
994
- escapedPrefix,
995
- type,
996
- callback
997
- ));
998
- else if ("object" === type) {
999
- if ("function" === typeof children.then)
1000
- return mapIntoArray(
1001
- resolveThenable(children),
1002
- array,
1003
- escapedPrefix,
1004
- nameSoFar,
1005
- callback
1006
- );
1007
- array = String(children);
1008
- throw Error(
1009
- "Objects are not valid as a React child (found: " +
1010
- ("[object Object]" === array
1011
- ? "object with keys {" + Object.keys(children).join(", ") + "}"
1012
- : array) +
1013
- "). If you meant to render a collection of children, use an array instead."
1014
- );
1015
- }
1016
- return invokeCallback;
1017
- }
1018
- function mapChildren(children, func, context) {
1019
- if (null == children) return children;
1020
- var result = [],
1021
- count = 0;
1022
- mapIntoArray(children, result, "", "", function (child) {
1023
- return func.call(context, child, count++);
1024
- });
1025
- return result;
1026
- }
1027
- function lazyInitializer(payload) {
1028
- if (-1 === payload._status) {
1029
- var ctor = payload._result;
1030
- ctor = ctor();
1031
- ctor.then(
1032
- function (moduleObject) {
1033
- if (0 === payload._status || -1 === payload._status)
1034
- (payload._status = 1), (payload._result = moduleObject);
1035
- },
1036
- function (error) {
1037
- if (0 === payload._status || -1 === payload._status)
1038
- (payload._status = 2), (payload._result = error);
1039
- }
1040
- );
1041
- -1 === payload._status &&
1042
- ((payload._status = 0), (payload._result = ctor));
1043
- }
1044
- if (1 === payload._status)
1045
- return (
1046
- (ctor = payload._result),
1047
- void 0 === ctor &&
1048
- console.error(
1049
- "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?",
1050
- ctor
1051
- ),
1052
- "default" in ctor ||
1053
- console.error(
1054
- "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
1055
- ctor
1056
- ),
1057
- ctor.default
1058
- );
1059
- throw payload._result;
1060
- }
1061
- function resolveDispatcher() {
1062
- var dispatcher = ReactSharedInternals.H;
1063
- null === dispatcher &&
1064
- console.error(
1065
- "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."
1066
- );
1067
- return dispatcher;
1068
- }
1069
- function noop() {}
1070
- function enqueueTask(task) {
1071
- if (null === enqueueTaskImpl)
1072
- try {
1073
- var requireString = ("require" + Math.random()).slice(0, 7);
1074
- enqueueTaskImpl = (module && module[requireString]).call(
1075
- module,
1076
- "timers"
1077
- ).setImmediate;
1078
- } catch (_err) {
1079
- enqueueTaskImpl = function (callback) {
1080
- false === didWarnAboutMessageChannel &&
1081
- ((didWarnAboutMessageChannel = true),
1082
- "undefined" === typeof MessageChannel &&
1083
- console.error(
1084
- "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."
1085
- ));
1086
- var channel = new MessageChannel();
1087
- channel.port1.onmessage = callback;
1088
- channel.port2.postMessage(void 0);
1089
- };
1090
- }
1091
- return enqueueTaskImpl(task);
1092
- }
1093
- function aggregateErrors(errors) {
1094
- return 1 < errors.length && "function" === typeof AggregateError
1095
- ? new AggregateError(errors)
1096
- : errors[0];
1097
- }
1098
- function popActScope(prevActQueue, prevActScopeDepth) {
1099
- prevActScopeDepth !== actScopeDepth - 1 &&
1100
- console.error(
1101
- "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
1102
- );
1103
- actScopeDepth = prevActScopeDepth;
1104
- }
1105
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
1106
- var queue = ReactSharedInternals.actQueue;
1107
- if (null !== queue)
1108
- if (0 !== queue.length)
1109
- try {
1110
- flushActQueue(queue);
1111
- enqueueTask(function () {
1112
- return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
1113
- });
1114
- return;
1115
- } catch (error) {
1116
- ReactSharedInternals.thrownErrors.push(error);
1117
- }
1118
- else ReactSharedInternals.actQueue = null;
1119
- 0 < ReactSharedInternals.thrownErrors.length
1120
- ? ((queue = aggregateErrors(ReactSharedInternals.thrownErrors)),
1121
- (ReactSharedInternals.thrownErrors.length = 0),
1122
- reject(queue))
1123
- : resolve(returnValue);
1124
- }
1125
- function flushActQueue(queue) {
1126
- if (!isFlushing) {
1127
- isFlushing = true;
1128
- var i = 0;
1129
- try {
1130
- for (; i < queue.length; i++) {
1131
- var callback = queue[i];
1132
- do {
1133
- ReactSharedInternals.didUsePromise = !1;
1134
- var continuation = callback(!1);
1135
- if (null !== continuation) {
1136
- if (ReactSharedInternals.didUsePromise) {
1137
- queue[i] = callback;
1138
- queue.splice(0, i);
1139
- return;
1140
- }
1141
- callback = continuation;
1142
- } else break;
1143
- } while (1);
1144
- }
1145
- queue.length = 0;
1146
- } catch (error) {
1147
- queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
1148
- } finally {
1149
- isFlushing = false;
1150
- }
1151
- }
1152
- }
1153
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1154
- "function" ===
1155
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
1156
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1157
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
1158
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
1159
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
1160
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
1161
- REACT_PROFILER_TYPE = Symbol.for("react.profiler");
1162
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
1163
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
1164
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
1165
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
1166
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
1167
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
1168
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
1169
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
1170
- MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
1171
- didWarnStateUpdateForUnmountedComponent = {},
1172
- ReactNoopUpdateQueue = {
1173
- isMounted: function () {
1174
- return false;
1175
- },
1176
- enqueueForceUpdate: function (publicInstance) {
1177
- warnNoop(publicInstance, "forceUpdate");
1178
- },
1179
- enqueueReplaceState: function (publicInstance) {
1180
- warnNoop(publicInstance, "replaceState");
1181
- },
1182
- enqueueSetState: function (publicInstance) {
1183
- warnNoop(publicInstance, "setState");
1184
- }
1185
- },
1186
- assign = Object.assign,
1187
- emptyObject = {};
1188
- Object.freeze(emptyObject);
1189
- Component.prototype.isReactComponent = {};
1190
- Component.prototype.setState = function (partialState, callback) {
1191
- if (
1192
- "object" !== typeof partialState &&
1193
- "function" !== typeof partialState &&
1194
- null != partialState
1195
- )
1196
- throw Error(
1197
- "takes an object of state variables to update or a function which returns an object of state variables."
1198
- );
1199
- this.updater.enqueueSetState(this, partialState, callback, "setState");
1200
- };
1201
- Component.prototype.forceUpdate = function (callback) {
1202
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
1203
- };
1204
- var deprecatedAPIs = {
1205
- isMounted: [
1206
- "isMounted",
1207
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1208
- ],
1209
- replaceState: [
1210
- "replaceState",
1211
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1212
- ]
1213
- },
1214
- fnName;
1215
- for (fnName in deprecatedAPIs)
1216
- deprecatedAPIs.hasOwnProperty(fnName) &&
1217
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
1218
- ComponentDummy.prototype = Component.prototype;
1219
- deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
1220
- deprecatedAPIs.constructor = PureComponent;
1221
- assign(deprecatedAPIs, Component.prototype);
1222
- deprecatedAPIs.isPureReactComponent = true;
1223
- var isArrayImpl = Array.isArray,
1224
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
1225
- ReactSharedInternals = {
1226
- H: null,
1227
- A: null,
1228
- T: null,
1229
- S: null,
1230
- V: null,
1231
- actQueue: null,
1232
- isBatchingLegacy: false,
1233
- didScheduleLegacyUpdate: false,
1234
- didUsePromise: false,
1235
- thrownErrors: [],
1236
- getCurrentStack: null,
1237
- recentlyCreatedOwnerStacks: 0
1238
- },
1239
- hasOwnProperty = Object.prototype.hasOwnProperty,
1240
- createTask = console.createTask
1241
- ? console.createTask
1242
- : function () {
1243
- return null;
1244
- };
1245
- deprecatedAPIs = {
1246
- "react-stack-bottom-frame": function (callStackForError) {
1247
- return callStackForError();
1248
- }
1249
- };
1250
- var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1251
- var didWarnAboutElementRef = {};
1252
- var unknownOwnerDebugStack = deprecatedAPIs[
1253
- "react-stack-bottom-frame"
1254
- ].bind(deprecatedAPIs, UnknownOwner)();
1255
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1256
- var didWarnAboutMaps = false,
1257
- userProvidedKeyEscapeRegex = /\/+/g,
1258
- reportGlobalError =
1259
- "function" === typeof reportError
1260
- ? reportError
1261
- : function (error) {
1262
- if (
1263
- "object" === typeof window &&
1264
- "function" === typeof window.ErrorEvent
1265
- ) {
1266
- var event = new window.ErrorEvent("error", {
1267
- bubbles: true,
1268
- cancelable: true,
1269
- message:
1270
- "object" === typeof error &&
1271
- null !== error &&
1272
- "string" === typeof error.message
1273
- ? String(error.message)
1274
- : String(error),
1275
- error: error
1276
- });
1277
- if (!window.dispatchEvent(event)) return;
1278
- } else if (
1279
- "object" === typeof process &&
1280
- "function" === typeof process.emit
1281
- ) {
1282
- process.emit("uncaughtException", error);
1283
- return;
1284
- }
1285
- console.error(error);
1286
- },
1287
- didWarnAboutMessageChannel = false,
1288
- enqueueTaskImpl = null,
1289
- actScopeDepth = 0,
1290
- didWarnNoAwaitAct = false,
1291
- isFlushing = false,
1292
- queueSeveralMicrotasks =
1293
- "function" === typeof queueMicrotask
1294
- ? function (callback) {
1295
- queueMicrotask(function () {
1296
- return queueMicrotask(callback);
1297
- });
1298
- }
1299
- : enqueueTask;
1300
- deprecatedAPIs = Object.freeze({
1301
- __proto__: null,
1302
- c: function (size) {
1303
- return resolveDispatcher().useMemoCache(size);
1304
- }
1305
- });
1306
- exports$1.Children = {
1307
- map: mapChildren,
1308
- forEach: function (children, forEachFunc, forEachContext) {
1309
- mapChildren(
1310
- children,
1311
- function () {
1312
- forEachFunc.apply(this, arguments);
1313
- },
1314
- forEachContext
1315
- );
1316
- },
1317
- count: function (children) {
1318
- var n = 0;
1319
- mapChildren(children, function () {
1320
- n++;
1321
- });
1322
- return n;
1323
- },
1324
- toArray: function (children) {
1325
- return (
1326
- mapChildren(children, function (child) {
1327
- return child;
1328
- }) || []
1329
- );
1330
- },
1331
- only: function (children) {
1332
- if (!isValidElement(children))
1333
- throw Error(
1334
- "React.Children.only expected to receive a single React element child."
1335
- );
1336
- return children;
1337
- }
1338
- };
1339
- exports$1.Component = Component;
1340
- exports$1.Fragment = REACT_FRAGMENT_TYPE;
1341
- exports$1.Profiler = REACT_PROFILER_TYPE;
1342
- exports$1.PureComponent = PureComponent;
1343
- exports$1.StrictMode = REACT_STRICT_MODE_TYPE;
1344
- exports$1.Suspense = REACT_SUSPENSE_TYPE;
1345
- exports$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
1346
- ReactSharedInternals;
1347
- exports$1.__COMPILER_RUNTIME = deprecatedAPIs;
1348
- exports$1.act = function (callback) {
1349
- var prevActQueue = ReactSharedInternals.actQueue,
1350
- prevActScopeDepth = actScopeDepth;
1351
- actScopeDepth++;
1352
- var queue = (ReactSharedInternals.actQueue =
1353
- null !== prevActQueue ? prevActQueue : []),
1354
- didAwaitActCall = false;
1355
- try {
1356
- var result = callback();
1357
- } catch (error) {
1358
- ReactSharedInternals.thrownErrors.push(error);
1359
- }
1360
- if (0 < ReactSharedInternals.thrownErrors.length)
1361
- throw (
1362
- (popActScope(prevActQueue, prevActScopeDepth),
1363
- (callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
1364
- (ReactSharedInternals.thrownErrors.length = 0),
1365
- callback)
1366
- );
1367
- if (
1368
- null !== result &&
1369
- "object" === typeof result &&
1370
- "function" === typeof result.then
1371
- ) {
1372
- var thenable = result;
1373
- queueSeveralMicrotasks(function () {
1374
- didAwaitActCall ||
1375
- didWarnNoAwaitAct ||
1376
- ((didWarnNoAwaitAct = true),
1377
- console.error(
1378
- "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 () => ...);"
1379
- ));
1380
- });
1381
- return {
1382
- then: function (resolve, reject) {
1383
- didAwaitActCall = true;
1384
- thenable.then(
1385
- function (returnValue) {
1386
- popActScope(prevActQueue, prevActScopeDepth);
1387
- if (0 === prevActScopeDepth) {
1388
- try {
1389
- flushActQueue(queue),
1390
- enqueueTask(function () {
1391
- return recursivelyFlushAsyncActWork(
1392
- returnValue,
1393
- resolve,
1394
- reject
1395
- );
1396
- });
1397
- } catch (error$0) {
1398
- ReactSharedInternals.thrownErrors.push(error$0);
1399
- }
1400
- if (0 < ReactSharedInternals.thrownErrors.length) {
1401
- var _thrownError = aggregateErrors(
1402
- ReactSharedInternals.thrownErrors
1403
- );
1404
- ReactSharedInternals.thrownErrors.length = 0;
1405
- reject(_thrownError);
1406
- }
1407
- } else resolve(returnValue);
1408
- },
1409
- function (error) {
1410
- popActScope(prevActQueue, prevActScopeDepth);
1411
- 0 < ReactSharedInternals.thrownErrors.length
1412
- ? ((error = aggregateErrors(
1413
- ReactSharedInternals.thrownErrors
1414
- )),
1415
- (ReactSharedInternals.thrownErrors.length = 0),
1416
- reject(error))
1417
- : reject(error);
1418
- }
1419
- );
1420
- }
1421
- };
1422
- }
1423
- var returnValue$jscomp$0 = result;
1424
- popActScope(prevActQueue, prevActScopeDepth);
1425
- 0 === prevActScopeDepth &&
1426
- (flushActQueue(queue),
1427
- 0 !== queue.length &&
1428
- queueSeveralMicrotasks(function () {
1429
- didAwaitActCall ||
1430
- didWarnNoAwaitAct ||
1431
- ((didWarnNoAwaitAct = true),
1432
- console.error(
1433
- "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(() => ...)"
1434
- ));
1435
- }),
1436
- (ReactSharedInternals.actQueue = null));
1437
- if (0 < ReactSharedInternals.thrownErrors.length)
1438
- throw (
1439
- ((callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
1440
- (ReactSharedInternals.thrownErrors.length = 0),
1441
- callback)
1442
- );
1443
- return {
1444
- then: function (resolve, reject) {
1445
- didAwaitActCall = true;
1446
- 0 === prevActScopeDepth
1447
- ? ((ReactSharedInternals.actQueue = queue),
1448
- enqueueTask(function () {
1449
- return recursivelyFlushAsyncActWork(
1450
- returnValue$jscomp$0,
1451
- resolve,
1452
- reject
1453
- );
1454
- }))
1455
- : resolve(returnValue$jscomp$0);
1456
- }
1457
- };
1458
- };
1459
- exports$1.cache = function (fn) {
1460
- return function () {
1461
- return fn.apply(null, arguments);
1462
- };
1463
- };
1464
- exports$1.captureOwnerStack = function () {
1465
- var getCurrentStack = ReactSharedInternals.getCurrentStack;
1466
- return null === getCurrentStack ? null : getCurrentStack();
1467
- };
1468
- exports$1.cloneElement = function (element, config, children) {
1469
- if (null === element || void 0 === element)
1470
- throw Error(
1471
- "The argument must be a React element, but you passed " +
1472
- element +
1473
- "."
1474
- );
1475
- var props = assign({}, element.props),
1476
- key = element.key,
1477
- owner = element._owner;
1478
- if (null != config) {
1479
- var JSCompiler_inline_result;
1480
- a: {
1481
- if (
1482
- hasOwnProperty.call(config, "ref") &&
1483
- (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1484
- config,
1485
- "ref"
1486
- ).get) &&
1487
- JSCompiler_inline_result.isReactWarning
1488
- ) {
1489
- JSCompiler_inline_result = false;
1490
- break a;
1491
- }
1492
- JSCompiler_inline_result = void 0 !== config.ref;
1493
- }
1494
- JSCompiler_inline_result && (owner = getOwner());
1495
- hasValidKey(config) &&
1496
- (checkKeyStringCoercion(config.key), (key = "" + config.key));
1497
- for (propName in config)
1498
- !hasOwnProperty.call(config, propName) ||
1499
- "key" === propName ||
1500
- "__self" === propName ||
1501
- "__source" === propName ||
1502
- ("ref" === propName && void 0 === config.ref) ||
1503
- (props[propName] = config[propName]);
1504
- }
1505
- var propName = arguments.length - 2;
1506
- if (1 === propName) props.children = children;
1507
- else if (1 < propName) {
1508
- JSCompiler_inline_result = Array(propName);
1509
- for (var i = 0; i < propName; i++)
1510
- JSCompiler_inline_result[i] = arguments[i + 2];
1511
- props.children = JSCompiler_inline_result;
1512
- }
1513
- props = ReactElement(
1514
- element.type,
1515
- key,
1516
- void 0,
1517
- void 0,
1518
- owner,
1519
- props,
1520
- element._debugStack,
1521
- element._debugTask
1522
- );
1523
- for (key = 2; key < arguments.length; key++)
1524
- (owner = arguments[key]),
1525
- isValidElement(owner) && owner._store && (owner._store.validated = 1);
1526
- return props;
1527
- };
1528
- exports$1.createContext = function (defaultValue) {
1529
- defaultValue = {
1530
- $$typeof: REACT_CONTEXT_TYPE,
1531
- _currentValue: defaultValue,
1532
- _currentValue2: defaultValue,
1533
- _threadCount: 0,
1534
- Provider: null,
1535
- Consumer: null
1536
- };
1537
- defaultValue.Provider = defaultValue;
1538
- defaultValue.Consumer = {
1539
- $$typeof: REACT_CONSUMER_TYPE,
1540
- _context: defaultValue
1541
- };
1542
- defaultValue._currentRenderer = null;
1543
- defaultValue._currentRenderer2 = null;
1544
- return defaultValue;
1545
- };
1546
- exports$1.createElement = function (type, config, children) {
1547
- for (var i = 2; i < arguments.length; i++) {
1548
- var node = arguments[i];
1549
- isValidElement(node) && node._store && (node._store.validated = 1);
1550
- }
1551
- i = {};
1552
- node = null;
1553
- if (null != config)
1554
- for (propName in (didWarnAboutOldJSXRuntime ||
1555
- !("__self" in config) ||
1556
- "key" in config ||
1557
- ((didWarnAboutOldJSXRuntime = true),
1558
- console.warn(
1559
- "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"
1560
- )),
1561
- hasValidKey(config) &&
1562
- (checkKeyStringCoercion(config.key), (node = "" + config.key)),
1563
- config))
1564
- hasOwnProperty.call(config, propName) &&
1565
- "key" !== propName &&
1566
- "__self" !== propName &&
1567
- "__source" !== propName &&
1568
- (i[propName] = config[propName]);
1569
- var childrenLength = arguments.length - 2;
1570
- if (1 === childrenLength) i.children = children;
1571
- else if (1 < childrenLength) {
1572
- for (
1573
- var childArray = Array(childrenLength), _i = 0;
1574
- _i < childrenLength;
1575
- _i++
1576
- )
1577
- childArray[_i] = arguments[_i + 2];
1578
- Object.freeze && Object.freeze(childArray);
1579
- i.children = childArray;
1580
- }
1581
- if (type && type.defaultProps)
1582
- for (propName in ((childrenLength = type.defaultProps), childrenLength))
1583
- void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1584
- node &&
1585
- defineKeyPropWarningGetter(
1586
- i,
1587
- "function" === typeof type
1588
- ? type.displayName || type.name || "Unknown"
1589
- : type
1590
- );
1591
- var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1592
- return ReactElement(
1593
- type,
1594
- node,
1595
- void 0,
1596
- void 0,
1597
- getOwner(),
1598
- i,
1599
- propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1600
- propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1601
- );
1602
- };
1603
- exports$1.createRef = function () {
1604
- var refObject = { current: null };
1605
- Object.seal(refObject);
1606
- return refObject;
1607
- };
1608
- exports$1.forwardRef = function (render) {
1609
- null != render && render.$$typeof === REACT_MEMO_TYPE
1610
- ? console.error(
1611
- "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1612
- )
1613
- : "function" !== typeof render
1614
- ? console.error(
1615
- "forwardRef requires a render function but was given %s.",
1616
- null === render ? "null" : typeof render
1617
- )
1618
- : 0 !== render.length &&
1619
- 2 !== render.length &&
1620
- console.error(
1621
- "forwardRef render functions accept exactly two parameters: props and ref. %s",
1622
- 1 === render.length
1623
- ? "Did you forget to use the ref parameter?"
1624
- : "Any additional parameter will be undefined."
1625
- );
1626
- null != render &&
1627
- null != render.defaultProps &&
1628
- console.error(
1629
- "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1630
- );
1631
- var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },
1632
- ownName;
1633
- Object.defineProperty(elementType, "displayName", {
1634
- enumerable: false,
1635
- configurable: true,
1636
- get: function () {
1637
- return ownName;
1638
- },
1639
- set: function (name) {
1640
- ownName = name;
1641
- render.name ||
1642
- render.displayName ||
1643
- (Object.defineProperty(render, "name", { value: name }),
1644
- (render.displayName = name));
1645
- }
1646
- });
1647
- return elementType;
1648
- };
1649
- exports$1.isValidElement = isValidElement;
1650
- exports$1.lazy = function (ctor) {
1651
- return {
1652
- $$typeof: REACT_LAZY_TYPE,
1653
- _payload: { _status: -1, _result: ctor },
1654
- _init: lazyInitializer
1655
- };
1656
- };
1657
- exports$1.memo = function (type, compare) {
1658
- null == type &&
1659
- console.error(
1660
- "memo: The first argument must be a component. Instead received: %s",
1661
- null === type ? "null" : typeof type
1662
- );
1663
- compare = {
1664
- $$typeof: REACT_MEMO_TYPE,
1665
- type: type,
1666
- compare: void 0 === compare ? null : compare
1667
- };
1668
- var ownName;
1669
- Object.defineProperty(compare, "displayName", {
1670
- enumerable: false,
1671
- configurable: true,
1672
- get: function () {
1673
- return ownName;
1674
- },
1675
- set: function (name) {
1676
- ownName = name;
1677
- type.name ||
1678
- type.displayName ||
1679
- (Object.defineProperty(type, "name", { value: name }),
1680
- (type.displayName = name));
1681
- }
1682
- });
1683
- return compare;
1684
- };
1685
- exports$1.startTransition = function (scope) {
1686
- var prevTransition = ReactSharedInternals.T,
1687
- currentTransition = {};
1688
- ReactSharedInternals.T = currentTransition;
1689
- currentTransition._updatedFibers = new Set();
1690
- try {
1691
- var returnValue = scope(),
1692
- onStartTransitionFinish = ReactSharedInternals.S;
1693
- null !== onStartTransitionFinish &&
1694
- onStartTransitionFinish(currentTransition, returnValue);
1695
- "object" === typeof returnValue &&
1696
- null !== returnValue &&
1697
- "function" === typeof returnValue.then &&
1698
- returnValue.then(noop, reportGlobalError);
1699
- } catch (error) {
1700
- reportGlobalError(error);
1701
- } finally {
1702
- null === prevTransition &&
1703
- currentTransition._updatedFibers &&
1704
- ((scope = currentTransition._updatedFibers.size),
1705
- currentTransition._updatedFibers.clear(),
1706
- 10 < scope &&
1707
- console.warn(
1708
- "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."
1709
- )),
1710
- (ReactSharedInternals.T = prevTransition);
1711
- }
1712
- };
1713
- exports$1.unstable_useCacheRefresh = function () {
1714
- return resolveDispatcher().useCacheRefresh();
1715
- };
1716
- exports$1.use = function (usable) {
1717
- return resolveDispatcher().use(usable);
1718
- };
1719
- exports$1.useActionState = function (action, initialState, permalink) {
1720
- return resolveDispatcher().useActionState(
1721
- action,
1722
- initialState,
1723
- permalink
1724
- );
1725
- };
1726
- exports$1.useCallback = function (callback, deps) {
1727
- return resolveDispatcher().useCallback(callback, deps);
1728
- };
1729
- exports$1.useContext = function (Context) {
1730
- var dispatcher = resolveDispatcher();
1731
- Context.$$typeof === REACT_CONSUMER_TYPE &&
1732
- console.error(
1733
- "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1734
- );
1735
- return dispatcher.useContext(Context);
1736
- };
1737
- exports$1.useDebugValue = function (value, formatterFn) {
1738
- return resolveDispatcher().useDebugValue(value, formatterFn);
1739
- };
1740
- exports$1.useDeferredValue = function (value, initialValue) {
1741
- return resolveDispatcher().useDeferredValue(value, initialValue);
1742
- };
1743
- exports$1.useEffect = function (create, createDeps, update) {
1744
- null == create &&
1745
- console.warn(
1746
- "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1747
- );
1748
- var dispatcher = resolveDispatcher();
1749
- if ("function" === typeof update)
1750
- throw Error(
1751
- "useEffect CRUD overload is not enabled in this build of React."
1752
- );
1753
- return dispatcher.useEffect(create, createDeps);
1754
- };
1755
- exports$1.useId = function () {
1756
- return resolveDispatcher().useId();
1757
- };
1758
- exports$1.useImperativeHandle = function (ref, create, deps) {
1759
- return resolveDispatcher().useImperativeHandle(ref, create, deps);
1760
- };
1761
- exports$1.useInsertionEffect = function (create, deps) {
1762
- null == create &&
1763
- console.warn(
1764
- "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1765
- );
1766
- return resolveDispatcher().useInsertionEffect(create, deps);
1767
- };
1768
- exports$1.useLayoutEffect = function (create, deps) {
1769
- null == create &&
1770
- console.warn(
1771
- "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1772
- );
1773
- return resolveDispatcher().useLayoutEffect(create, deps);
1774
- };
1775
- exports$1.useMemo = function (create, deps) {
1776
- return resolveDispatcher().useMemo(create, deps);
1777
- };
1778
- exports$1.useOptimistic = function (passthrough, reducer) {
1779
- return resolveDispatcher().useOptimistic(passthrough, reducer);
1780
- };
1781
- exports$1.useReducer = function (reducer, initialArg, init) {
1782
- return resolveDispatcher().useReducer(reducer, initialArg, init);
1783
- };
1784
- exports$1.useRef = function (initialValue) {
1785
- return resolveDispatcher().useRef(initialValue);
1786
- };
1787
- exports$1.useState = function (initialState) {
1788
- return resolveDispatcher().useState(initialState);
1789
- };
1790
- exports$1.useSyncExternalStore = function (
1791
- subscribe,
1792
- getSnapshot,
1793
- getServerSnapshot
1794
- ) {
1795
- return resolveDispatcher().useSyncExternalStore(
1796
- subscribe,
1797
- getSnapshot,
1798
- getServerSnapshot
1799
- );
1800
- };
1801
- exports$1.useTransition = function () {
1802
- return resolveDispatcher().useTransition();
1803
- };
1804
- exports$1.version = "19.1.0";
1805
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1806
- "function" ===
1807
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
1808
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1809
- })();
1810
- } (react_development, react_development.exports));
1811
- return react_development.exports;
1812
- }
1813
-
1814
- var hasRequiredReact;
1815
-
1816
- function requireReact () {
1817
- if (hasRequiredReact) return react.exports;
1818
- hasRequiredReact = 1;
1819
-
1820
- if (process.env.NODE_ENV === 'production') {
1821
- react.exports = requireReact_production();
1822
- } else {
1823
- react.exports = requireReact_development();
1824
- }
1825
- return react.exports;
1826
- }
1827
-
1828
- var reactExports = requireReact();
1829
- var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
1830
-
1831
- var jsxRuntime = {exports: {}};
1832
-
1833
- var reactJsxRuntime_production = {};
1834
-
1835
- /**
1836
- * @license React
1837
- * react-jsx-runtime.production.js
1838
- *
1839
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1840
- *
1841
- * This source code is licensed under the MIT license found in the
1842
- * LICENSE file in the root directory of this source tree.
1843
- */
1844
-
1845
- var hasRequiredReactJsxRuntime_production;
1846
-
1847
- function requireReactJsxRuntime_production () {
1848
- if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
1849
- hasRequiredReactJsxRuntime_production = 1;
1850
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
1851
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
1852
- function jsxProd(type, config, maybeKey) {
1853
- var key = null;
1854
- void 0 !== maybeKey && (key = "" + maybeKey);
1855
- void 0 !== config.key && (key = "" + config.key);
1856
- if ("key" in config) {
1857
- maybeKey = {};
1858
- for (var propName in config)
1859
- "key" !== propName && (maybeKey[propName] = config[propName]);
1860
- } else maybeKey = config;
1861
- config = maybeKey.ref;
1862
- return {
1863
- $$typeof: REACT_ELEMENT_TYPE,
1864
- type: type,
1865
- key: key,
1866
- ref: void 0 !== config ? config : null,
1867
- props: maybeKey
1868
- };
1869
- }
1870
- reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
1871
- reactJsxRuntime_production.jsx = jsxProd;
1872
- reactJsxRuntime_production.jsxs = jsxProd;
1873
- return reactJsxRuntime_production;
1874
- }
1875
-
1876
- var reactJsxRuntime_development = {};
1877
-
1878
- /**
1879
- * @license React
1880
- * react-jsx-runtime.development.js
1881
- *
1882
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1883
- *
1884
- * This source code is licensed under the MIT license found in the
1885
- * LICENSE file in the root directory of this source tree.
1886
- */
1887
-
1888
- var hasRequiredReactJsxRuntime_development;
1889
-
1890
- function requireReactJsxRuntime_development () {
1891
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
1892
- hasRequiredReactJsxRuntime_development = 1;
1893
- "production" !== process.env.NODE_ENV &&
1894
- (function () {
1895
- function getComponentNameFromType(type) {
1896
- if (null == type) return null;
1897
- if ("function" === typeof type)
1898
- return type.$$typeof === REACT_CLIENT_REFERENCE
1899
- ? null
1900
- : type.displayName || type.name || null;
1901
- if ("string" === typeof type) return type;
1902
- switch (type) {
1903
- case REACT_FRAGMENT_TYPE:
1904
- return "Fragment";
1905
- case REACT_PROFILER_TYPE:
1906
- return "Profiler";
1907
- case REACT_STRICT_MODE_TYPE:
1908
- return "StrictMode";
1909
- case REACT_SUSPENSE_TYPE:
1910
- return "Suspense";
1911
- case REACT_SUSPENSE_LIST_TYPE:
1912
- return "SuspenseList";
1913
- case REACT_ACTIVITY_TYPE:
1914
- return "Activity";
1915
- }
1916
- if ("object" === typeof type)
1917
- switch (
1918
- ("number" === typeof type.tag &&
1919
- console.error(
1920
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1921
- ),
1922
- type.$$typeof)
1923
- ) {
1924
- case REACT_PORTAL_TYPE:
1925
- return "Portal";
1926
- case REACT_CONTEXT_TYPE:
1927
- return (type.displayName || "Context") + ".Provider";
1928
- case REACT_CONSUMER_TYPE:
1929
- return (type._context.displayName || "Context") + ".Consumer";
1930
- case REACT_FORWARD_REF_TYPE:
1931
- var innerType = type.render;
1932
- type = type.displayName;
1933
- type ||
1934
- ((type = innerType.displayName || innerType.name || ""),
1935
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
1936
- return type;
1937
- case REACT_MEMO_TYPE:
1938
- return (
1939
- (innerType = type.displayName || null),
1940
- null !== innerType
1941
- ? innerType
1942
- : getComponentNameFromType(type.type) || "Memo"
1943
- );
1944
- case REACT_LAZY_TYPE:
1945
- innerType = type._payload;
1946
- type = type._init;
1947
- try {
1948
- return getComponentNameFromType(type(innerType));
1949
- } catch (x) {}
1950
- }
1951
- return null;
1952
- }
1953
- function testStringCoercion(value) {
1954
- return "" + value;
1955
- }
1956
- function checkKeyStringCoercion(value) {
1957
- try {
1958
- testStringCoercion(value);
1959
- var JSCompiler_inline_result = !1;
1960
- } catch (e) {
1961
- JSCompiler_inline_result = true;
1962
- }
1963
- if (JSCompiler_inline_result) {
1964
- JSCompiler_inline_result = console;
1965
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
1966
- var JSCompiler_inline_result$jscomp$0 =
1967
- ("function" === typeof Symbol &&
1968
- Symbol.toStringTag &&
1969
- value[Symbol.toStringTag]) ||
1970
- value.constructor.name ||
1971
- "Object";
1972
- JSCompiler_temp_const.call(
1973
- JSCompiler_inline_result,
1974
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1975
- JSCompiler_inline_result$jscomp$0
1976
- );
1977
- return testStringCoercion(value);
1978
- }
1979
- }
1980
- function getTaskName(type) {
1981
- if (type === REACT_FRAGMENT_TYPE) return "<>";
1982
- if (
1983
- "object" === typeof type &&
1984
- null !== type &&
1985
- type.$$typeof === REACT_LAZY_TYPE
1986
- )
1987
- return "<...>";
1988
- try {
1989
- var name = getComponentNameFromType(type);
1990
- return name ? "<" + name + ">" : "<...>";
1991
- } catch (x) {
1992
- return "<...>";
1993
- }
1994
- }
1995
- function getOwner() {
1996
- var dispatcher = ReactSharedInternals.A;
1997
- return null === dispatcher ? null : dispatcher.getOwner();
1998
- }
1999
- function UnknownOwner() {
2000
- return Error("react-stack-top-frame");
2001
- }
2002
- function hasValidKey(config) {
2003
- if (hasOwnProperty.call(config, "key")) {
2004
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
2005
- if (getter && getter.isReactWarning) return false;
2006
- }
2007
- return void 0 !== config.key;
2008
- }
2009
- function defineKeyPropWarningGetter(props, displayName) {
2010
- function warnAboutAccessingKey() {
2011
- specialPropKeyWarningShown ||
2012
- ((specialPropKeyWarningShown = true),
2013
- console.error(
2014
- "%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)",
2015
- displayName
2016
- ));
2017
- }
2018
- warnAboutAccessingKey.isReactWarning = true;
2019
- Object.defineProperty(props, "key", {
2020
- get: warnAboutAccessingKey,
2021
- configurable: true
2022
- });
2023
- }
2024
- function elementRefGetterWithDeprecationWarning() {
2025
- var componentName = getComponentNameFromType(this.type);
2026
- didWarnAboutElementRef[componentName] ||
2027
- ((didWarnAboutElementRef[componentName] = true),
2028
- console.error(
2029
- "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."
2030
- ));
2031
- componentName = this.props.ref;
2032
- return void 0 !== componentName ? componentName : null;
2033
- }
2034
- function ReactElement(
2035
- type,
2036
- key,
2037
- self,
2038
- source,
2039
- owner,
2040
- props,
2041
- debugStack,
2042
- debugTask
2043
- ) {
2044
- self = props.ref;
2045
- type = {
2046
- $$typeof: REACT_ELEMENT_TYPE,
2047
- type: type,
2048
- key: key,
2049
- props: props,
2050
- _owner: owner
2051
- };
2052
- null !== (void 0 !== self ? self : null)
2053
- ? Object.defineProperty(type, "ref", {
2054
- enumerable: false,
2055
- get: elementRefGetterWithDeprecationWarning
2056
- })
2057
- : Object.defineProperty(type, "ref", { enumerable: false, value: null });
2058
- type._store = {};
2059
- Object.defineProperty(type._store, "validated", {
2060
- configurable: false,
2061
- enumerable: false,
2062
- writable: true,
2063
- value: 0
2064
- });
2065
- Object.defineProperty(type, "_debugInfo", {
2066
- configurable: false,
2067
- enumerable: false,
2068
- writable: true,
2069
- value: null
2070
- });
2071
- Object.defineProperty(type, "_debugStack", {
2072
- configurable: false,
2073
- enumerable: false,
2074
- writable: true,
2075
- value: debugStack
2076
- });
2077
- Object.defineProperty(type, "_debugTask", {
2078
- configurable: false,
2079
- enumerable: false,
2080
- writable: true,
2081
- value: debugTask
2082
- });
2083
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
2084
- return type;
2085
- }
2086
- function jsxDEVImpl(
2087
- type,
2088
- config,
2089
- maybeKey,
2090
- isStaticChildren,
2091
- source,
2092
- self,
2093
- debugStack,
2094
- debugTask
2095
- ) {
2096
- var children = config.children;
2097
- if (void 0 !== children)
2098
- if (isStaticChildren)
2099
- if (isArrayImpl(children)) {
2100
- for (
2101
- isStaticChildren = 0;
2102
- isStaticChildren < children.length;
2103
- isStaticChildren++
2104
- )
2105
- validateChildKeys(children[isStaticChildren]);
2106
- Object.freeze && Object.freeze(children);
2107
- } else
2108
- console.error(
2109
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
2110
- );
2111
- else validateChildKeys(children);
2112
- if (hasOwnProperty.call(config, "key")) {
2113
- children = getComponentNameFromType(type);
2114
- var keys = Object.keys(config).filter(function (k) {
2115
- return "key" !== k;
2116
- });
2117
- isStaticChildren =
2118
- 0 < keys.length
2119
- ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
2120
- : "{key: someKey}";
2121
- didWarnAboutKeySpread[children + isStaticChildren] ||
2122
- ((keys =
2123
- 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
2124
- console.error(
2125
- '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} />',
2126
- isStaticChildren,
2127
- children,
2128
- keys,
2129
- children
2130
- ),
2131
- (didWarnAboutKeySpread[children + isStaticChildren] = true));
2132
- }
2133
- children = null;
2134
- void 0 !== maybeKey &&
2135
- (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
2136
- hasValidKey(config) &&
2137
- (checkKeyStringCoercion(config.key), (children = "" + config.key));
2138
- if ("key" in config) {
2139
- maybeKey = {};
2140
- for (var propName in config)
2141
- "key" !== propName && (maybeKey[propName] = config[propName]);
2142
- } else maybeKey = config;
2143
- children &&
2144
- defineKeyPropWarningGetter(
2145
- maybeKey,
2146
- "function" === typeof type
2147
- ? type.displayName || type.name || "Unknown"
2148
- : type
2149
- );
2150
- return ReactElement(
2151
- type,
2152
- children,
2153
- self,
2154
- source,
2155
- getOwner(),
2156
- maybeKey,
2157
- debugStack,
2158
- debugTask
2159
- );
2160
- }
2161
- function validateChildKeys(node) {
2162
- "object" === typeof node &&
2163
- null !== node &&
2164
- node.$$typeof === REACT_ELEMENT_TYPE &&
2165
- node._store &&
2166
- (node._store.validated = 1);
2167
- }
2168
- var React = requireReact(),
2169
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
2170
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
2171
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
2172
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
2173
- REACT_PROFILER_TYPE = Symbol.for("react.profiler");
2174
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
2175
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
2176
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
2177
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
2178
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
2179
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
2180
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
2181
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
2182
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
2183
- ReactSharedInternals =
2184
- React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
2185
- hasOwnProperty = Object.prototype.hasOwnProperty,
2186
- isArrayImpl = Array.isArray,
2187
- createTask = console.createTask
2188
- ? console.createTask
2189
- : function () {
2190
- return null;
2191
- };
2192
- React = {
2193
- "react-stack-bottom-frame": function (callStackForError) {
2194
- return callStackForError();
2195
- }
2196
- };
2197
- var specialPropKeyWarningShown;
2198
- var didWarnAboutElementRef = {};
2199
- var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
2200
- React,
2201
- UnknownOwner
2202
- )();
2203
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
2204
- var didWarnAboutKeySpread = {};
2205
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
2206
- reactJsxRuntime_development.jsx = function (type, config, maybeKey, source, self) {
2207
- var trackActualOwner =
2208
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
2209
- return jsxDEVImpl(
2210
- type,
2211
- config,
2212
- maybeKey,
2213
- false,
2214
- source,
2215
- self,
2216
- trackActualOwner
2217
- ? Error("react-stack-top-frame")
2218
- : unknownOwnerDebugStack,
2219
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
2220
- );
2221
- };
2222
- reactJsxRuntime_development.jsxs = function (type, config, maybeKey, source, self) {
2223
- var trackActualOwner =
2224
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
2225
- return jsxDEVImpl(
2226
- type,
2227
- config,
2228
- maybeKey,
2229
- true,
2230
- source,
2231
- self,
2232
- trackActualOwner
2233
- ? Error("react-stack-top-frame")
2234
- : unknownOwnerDebugStack,
2235
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
2236
- );
2237
- };
2238
- })();
2239
- return reactJsxRuntime_development;
2240
- }
2241
-
2242
- var hasRequiredJsxRuntime;
2243
-
2244
- function requireJsxRuntime () {
2245
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
2246
- hasRequiredJsxRuntime = 1;
2247
-
2248
- if (process.env.NODE_ENV === 'production') {
2249
- jsxRuntime.exports = requireReactJsxRuntime_production();
2250
- } else {
2251
- jsxRuntime.exports = requireReactJsxRuntime_development();
2252
- }
2253
- return jsxRuntime.exports;
2254
- }
2255
-
2256
- var jsxRuntimeExports = requireJsxRuntime();
2257
-
2258
- /**
2259
- * Theme and color definitions for the TUI
2260
- */
2261
- const colors = {
2262
- // Primary brand colors
2263
- cyan: '#06b6d4',
2264
- purple: '#a855f7',
2265
- brightPurple: '#c084fc',
2266
- // Status colors
2267
- success: '#22c55e',
2268
- error: '#ef4444',
2269
- warning: '#f59e0b',
2270
- // Neutral colors
2271
- white: '#ffffff',
2272
- gray: '#6b7280',
2273
- dimGray: '#4b5563',
2274
- darkGray: '#374151',
2275
- };
2276
- const symbols = {
2277
- // Progress indicators
2278
- filledDot: '●',
2279
- hollowDot: '○',
2280
- errorDot: '✗',
2281
- // Task states
2282
- check: '✓',
2283
- cross: '✗',
2284
- // Connectors
2285
- horizontalLine: '─',
2286
- // Spinners (will cycle through these)
2287
- spinnerFrames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'],
2288
- };
2289
- const layout = {
2290
- // Animation timing (slower as requested)
2291
- spinnerInterval: 120, // ms between spinner frames
2292
- taskCompletionDelay: 400, // ms to pause after task completion
2293
- stepTransitionDelay: 300, // ms between step transitions
2294
- // Shared width for progress stepper and task list (keeps them aligned)
2295
- // ProgressStepper: 4 cells * 10 chars + 3 connectors * 7 chars = 61 chars
2296
- progressWidth: 61,
2297
- };
2298
-
2299
- export { React as R, colors as c, jsxRuntimeExports as j, layout as l, reactExports as r, symbols as s };
2300
- //# sourceMappingURL=theme-BF4W2Gwm.js.map