@zenyui/tiptap-react-render 0.1.0

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.
@@ -0,0 +1,2839 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = {exports: {}};
4
+
5
+ var reactJsxRuntime_production = {};
6
+
7
+ /**
8
+ * @license React
9
+ * react-jsx-runtime.production.js
10
+ *
11
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+
17
+ var hasRequiredReactJsxRuntime_production;
18
+
19
+ function requireReactJsxRuntime_production () {
20
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
21
+ hasRequiredReactJsxRuntime_production = 1;
22
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
23
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
24
+ function jsxProd(type, config, maybeKey) {
25
+ var key = null;
26
+ void 0 !== maybeKey && (key = "" + maybeKey);
27
+ void 0 !== config.key && (key = "" + config.key);
28
+ if ("key" in config) {
29
+ maybeKey = {};
30
+ for (var propName in config)
31
+ "key" !== propName && (maybeKey[propName] = config[propName]);
32
+ } else maybeKey = config;
33
+ config = maybeKey.ref;
34
+ return {
35
+ $$typeof: REACT_ELEMENT_TYPE,
36
+ type: type,
37
+ key: key,
38
+ ref: void 0 !== config ? config : null,
39
+ props: maybeKey
40
+ };
41
+ }
42
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
43
+ reactJsxRuntime_production.jsx = jsxProd;
44
+ reactJsxRuntime_production.jsxs = jsxProd;
45
+ return reactJsxRuntime_production;
46
+ }
47
+
48
+ var reactJsxRuntime_development = {};
49
+
50
+ var react = {exports: {}};
51
+
52
+ var react_production = {};
53
+
54
+ /**
55
+ * @license React
56
+ * react.production.js
57
+ *
58
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
59
+ *
60
+ * This source code is licensed under the MIT license found in the
61
+ * LICENSE file in the root directory of this source tree.
62
+ */
63
+
64
+ var hasRequiredReact_production;
65
+
66
+ function requireReact_production () {
67
+ if (hasRequiredReact_production) return react_production;
68
+ hasRequiredReact_production = 1;
69
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
70
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
71
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
72
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
73
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
74
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
75
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
76
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
77
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
78
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
79
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
80
+ MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
81
+ function getIteratorFn(maybeIterable) {
82
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
83
+ maybeIterable =
84
+ (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
85
+ maybeIterable["@@iterator"];
86
+ return "function" === typeof maybeIterable ? maybeIterable : null;
87
+ }
88
+ var ReactNoopUpdateQueue = {
89
+ isMounted: function () {
90
+ return false;
91
+ },
92
+ enqueueForceUpdate: function () {},
93
+ enqueueReplaceState: function () {},
94
+ enqueueSetState: function () {}
95
+ },
96
+ assign = Object.assign,
97
+ emptyObject = {};
98
+ function Component(props, context, updater) {
99
+ this.props = props;
100
+ this.context = context;
101
+ this.refs = emptyObject;
102
+ this.updater = updater || ReactNoopUpdateQueue;
103
+ }
104
+ Component.prototype.isReactComponent = {};
105
+ Component.prototype.setState = function (partialState, callback) {
106
+ if (
107
+ "object" !== typeof partialState &&
108
+ "function" !== typeof partialState &&
109
+ null != partialState
110
+ )
111
+ throw Error(
112
+ "takes an object of state variables to update or a function which returns an object of state variables."
113
+ );
114
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
115
+ };
116
+ Component.prototype.forceUpdate = function (callback) {
117
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
118
+ };
119
+ function ComponentDummy() {}
120
+ ComponentDummy.prototype = Component.prototype;
121
+ function PureComponent(props, context, updater) {
122
+ this.props = props;
123
+ this.context = context;
124
+ this.refs = emptyObject;
125
+ this.updater = updater || ReactNoopUpdateQueue;
126
+ }
127
+ var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
128
+ pureComponentPrototype.constructor = PureComponent;
129
+ assign(pureComponentPrototype, Component.prototype);
130
+ pureComponentPrototype.isPureReactComponent = true;
131
+ var isArrayImpl = Array.isArray,
132
+ ReactSharedInternals = { H: null, A: null, T: null, S: null },
133
+ hasOwnProperty = Object.prototype.hasOwnProperty;
134
+ function ReactElement(type, key, self, source, owner, props) {
135
+ self = props.ref;
136
+ return {
137
+ $$typeof: REACT_ELEMENT_TYPE,
138
+ type: type,
139
+ key: key,
140
+ ref: void 0 !== self ? self : null,
141
+ props: props
142
+ };
143
+ }
144
+ function cloneAndReplaceKey(oldElement, newKey) {
145
+ return ReactElement(
146
+ oldElement.type,
147
+ newKey,
148
+ void 0,
149
+ void 0,
150
+ void 0,
151
+ oldElement.props
152
+ );
153
+ }
154
+ function isValidElement(object) {
155
+ return (
156
+ "object" === typeof object &&
157
+ null !== object &&
158
+ object.$$typeof === REACT_ELEMENT_TYPE
159
+ );
160
+ }
161
+ function escape(key) {
162
+ var escaperLookup = { "=": "=0", ":": "=2" };
163
+ return (
164
+ "$" +
165
+ key.replace(/[=:]/g, function (match) {
166
+ return escaperLookup[match];
167
+ })
168
+ );
169
+ }
170
+ var userProvidedKeyEscapeRegex = /\/+/g;
171
+ function getElementKey(element, index) {
172
+ return "object" === typeof element && null !== element && null != element.key
173
+ ? escape("" + element.key)
174
+ : index.toString(36);
175
+ }
176
+ function noop$1() {}
177
+ function resolveThenable(thenable) {
178
+ switch (thenable.status) {
179
+ case "fulfilled":
180
+ return thenable.value;
181
+ case "rejected":
182
+ throw thenable.reason;
183
+ default:
184
+ switch (
185
+ ("string" === typeof thenable.status
186
+ ? thenable.then(noop$1, noop$1)
187
+ : ((thenable.status = "pending"),
188
+ thenable.then(
189
+ function (fulfilledValue) {
190
+ "pending" === thenable.status &&
191
+ ((thenable.status = "fulfilled"),
192
+ (thenable.value = fulfilledValue));
193
+ },
194
+ function (error) {
195
+ "pending" === thenable.status &&
196
+ ((thenable.status = "rejected"), (thenable.reason = error));
197
+ }
198
+ )),
199
+ thenable.status)
200
+ ) {
201
+ case "fulfilled":
202
+ return thenable.value;
203
+ case "rejected":
204
+ throw thenable.reason;
205
+ }
206
+ }
207
+ throw thenable;
208
+ }
209
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
210
+ var type = typeof children;
211
+ if ("undefined" === type || "boolean" === type) children = null;
212
+ var invokeCallback = false;
213
+ if (null === children) invokeCallback = true;
214
+ else
215
+ switch (type) {
216
+ case "bigint":
217
+ case "string":
218
+ case "number":
219
+ invokeCallback = true;
220
+ break;
221
+ case "object":
222
+ switch (children.$$typeof) {
223
+ case REACT_ELEMENT_TYPE:
224
+ case REACT_PORTAL_TYPE:
225
+ invokeCallback = true;
226
+ break;
227
+ case REACT_LAZY_TYPE:
228
+ return (
229
+ (invokeCallback = children._init),
230
+ mapIntoArray(
231
+ invokeCallback(children._payload),
232
+ array,
233
+ escapedPrefix,
234
+ nameSoFar,
235
+ callback
236
+ )
237
+ );
238
+ }
239
+ }
240
+ if (invokeCallback)
241
+ return (
242
+ (callback = callback(children)),
243
+ (invokeCallback =
244
+ "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
245
+ isArrayImpl(callback)
246
+ ? ((escapedPrefix = ""),
247
+ null != invokeCallback &&
248
+ (escapedPrefix =
249
+ invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
250
+ mapIntoArray(callback, array, escapedPrefix, "", function (c) {
251
+ return c;
252
+ }))
253
+ : null != callback &&
254
+ (isValidElement(callback) &&
255
+ (callback = cloneAndReplaceKey(
256
+ callback,
257
+ escapedPrefix +
258
+ (null == callback.key ||
259
+ (children && children.key === callback.key)
260
+ ? ""
261
+ : ("" + callback.key).replace(
262
+ userProvidedKeyEscapeRegex,
263
+ "$&/"
264
+ ) + "/") +
265
+ invokeCallback
266
+ )),
267
+ array.push(callback)),
268
+ 1
269
+ );
270
+ invokeCallback = 0;
271
+ var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
272
+ if (isArrayImpl(children))
273
+ for (var i = 0; i < children.length; i++)
274
+ (nameSoFar = children[i]),
275
+ (type = nextNamePrefix + getElementKey(nameSoFar, i)),
276
+ (invokeCallback += mapIntoArray(
277
+ nameSoFar,
278
+ array,
279
+ escapedPrefix,
280
+ type,
281
+ callback
282
+ ));
283
+ else if (((i = getIteratorFn(children)), "function" === typeof i))
284
+ for (
285
+ children = i.call(children), i = 0;
286
+ !(nameSoFar = children.next()).done;
287
+
288
+ )
289
+ (nameSoFar = nameSoFar.value),
290
+ (type = nextNamePrefix + getElementKey(nameSoFar, i++)),
291
+ (invokeCallback += mapIntoArray(
292
+ nameSoFar,
293
+ array,
294
+ escapedPrefix,
295
+ type,
296
+ callback
297
+ ));
298
+ else if ("object" === type) {
299
+ if ("function" === typeof children.then)
300
+ return mapIntoArray(
301
+ resolveThenable(children),
302
+ array,
303
+ escapedPrefix,
304
+ nameSoFar,
305
+ callback
306
+ );
307
+ array = String(children);
308
+ throw Error(
309
+ "Objects are not valid as a React child (found: " +
310
+ ("[object Object]" === array
311
+ ? "object with keys {" + Object.keys(children).join(", ") + "}"
312
+ : array) +
313
+ "). If you meant to render a collection of children, use an array instead."
314
+ );
315
+ }
316
+ return invokeCallback;
317
+ }
318
+ function mapChildren(children, func, context) {
319
+ if (null == children) return children;
320
+ var result = [],
321
+ count = 0;
322
+ mapIntoArray(children, result, "", "", function (child) {
323
+ return func.call(context, child, count++);
324
+ });
325
+ return result;
326
+ }
327
+ function lazyInitializer(payload) {
328
+ if (-1 === payload._status) {
329
+ var ctor = payload._result;
330
+ ctor = ctor();
331
+ ctor.then(
332
+ function (moduleObject) {
333
+ if (0 === payload._status || -1 === payload._status)
334
+ (payload._status = 1), (payload._result = moduleObject);
335
+ },
336
+ function (error) {
337
+ if (0 === payload._status || -1 === payload._status)
338
+ (payload._status = 2), (payload._result = error);
339
+ }
340
+ );
341
+ -1 === payload._status && ((payload._status = 0), (payload._result = ctor));
342
+ }
343
+ if (1 === payload._status) return payload._result.default;
344
+ throw payload._result;
345
+ }
346
+ var reportGlobalError =
347
+ "function" === typeof reportError
348
+ ? reportError
349
+ : function (error) {
350
+ if (
351
+ "object" === typeof window &&
352
+ "function" === typeof window.ErrorEvent
353
+ ) {
354
+ var event = new window.ErrorEvent("error", {
355
+ bubbles: true,
356
+ cancelable: true,
357
+ message:
358
+ "object" === typeof error &&
359
+ null !== error &&
360
+ "string" === typeof error.message
361
+ ? String(error.message)
362
+ : String(error),
363
+ error: error
364
+ });
365
+ if (!window.dispatchEvent(event)) return;
366
+ } else if (
367
+ "object" === typeof process &&
368
+ "function" === typeof process.emit
369
+ ) {
370
+ process.emit("uncaughtException", error);
371
+ return;
372
+ }
373
+ console.error(error);
374
+ };
375
+ function noop() {}
376
+ react_production.Children = {
377
+ map: mapChildren,
378
+ forEach: function (children, forEachFunc, forEachContext) {
379
+ mapChildren(
380
+ children,
381
+ function () {
382
+ forEachFunc.apply(this, arguments);
383
+ },
384
+ forEachContext
385
+ );
386
+ },
387
+ count: function (children) {
388
+ var n = 0;
389
+ mapChildren(children, function () {
390
+ n++;
391
+ });
392
+ return n;
393
+ },
394
+ toArray: function (children) {
395
+ return (
396
+ mapChildren(children, function (child) {
397
+ return child;
398
+ }) || []
399
+ );
400
+ },
401
+ only: function (children) {
402
+ if (!isValidElement(children))
403
+ throw Error(
404
+ "React.Children.only expected to receive a single React element child."
405
+ );
406
+ return children;
407
+ }
408
+ };
409
+ react_production.Component = Component;
410
+ react_production.Fragment = REACT_FRAGMENT_TYPE;
411
+ react_production.Profiler = REACT_PROFILER_TYPE;
412
+ react_production.PureComponent = PureComponent;
413
+ react_production.StrictMode = REACT_STRICT_MODE_TYPE;
414
+ react_production.Suspense = REACT_SUSPENSE_TYPE;
415
+ react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
416
+ ReactSharedInternals;
417
+ react_production.act = function () {
418
+ throw Error("act(...) is not supported in production builds of React.");
419
+ };
420
+ react_production.cache = function (fn) {
421
+ return function () {
422
+ return fn.apply(null, arguments);
423
+ };
424
+ };
425
+ react_production.cloneElement = function (element, config, children) {
426
+ if (null === element || void 0 === element)
427
+ throw Error(
428
+ "The argument must be a React element, but you passed " + element + "."
429
+ );
430
+ var props = assign({}, element.props),
431
+ key = element.key,
432
+ owner = void 0;
433
+ if (null != config)
434
+ for (propName in (void 0 !== config.ref && (owner = void 0),
435
+ void 0 !== config.key && (key = "" + config.key),
436
+ config))
437
+ !hasOwnProperty.call(config, propName) ||
438
+ "key" === propName ||
439
+ "__self" === propName ||
440
+ "__source" === propName ||
441
+ ("ref" === propName && void 0 === config.ref) ||
442
+ (props[propName] = config[propName]);
443
+ var propName = arguments.length - 2;
444
+ if (1 === propName) props.children = children;
445
+ else if (1 < propName) {
446
+ for (var childArray = Array(propName), i = 0; i < propName; i++)
447
+ childArray[i] = arguments[i + 2];
448
+ props.children = childArray;
449
+ }
450
+ return ReactElement(element.type, key, void 0, void 0, owner, props);
451
+ };
452
+ react_production.createContext = function (defaultValue) {
453
+ defaultValue = {
454
+ $$typeof: REACT_CONTEXT_TYPE,
455
+ _currentValue: defaultValue,
456
+ _currentValue2: defaultValue,
457
+ _threadCount: 0,
458
+ Provider: null,
459
+ Consumer: null
460
+ };
461
+ defaultValue.Provider = defaultValue;
462
+ defaultValue.Consumer = {
463
+ $$typeof: REACT_CONSUMER_TYPE,
464
+ _context: defaultValue
465
+ };
466
+ return defaultValue;
467
+ };
468
+ react_production.createElement = function (type, config, children) {
469
+ var propName,
470
+ props = {},
471
+ key = null;
472
+ if (null != config)
473
+ for (propName in (void 0 !== config.key && (key = "" + config.key), config))
474
+ hasOwnProperty.call(config, propName) &&
475
+ "key" !== propName &&
476
+ "__self" !== propName &&
477
+ "__source" !== propName &&
478
+ (props[propName] = config[propName]);
479
+ var childrenLength = arguments.length - 2;
480
+ if (1 === childrenLength) props.children = children;
481
+ else if (1 < childrenLength) {
482
+ for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
483
+ childArray[i] = arguments[i + 2];
484
+ props.children = childArray;
485
+ }
486
+ if (type && type.defaultProps)
487
+ for (propName in ((childrenLength = type.defaultProps), childrenLength))
488
+ void 0 === props[propName] &&
489
+ (props[propName] = childrenLength[propName]);
490
+ return ReactElement(type, key, void 0, void 0, null, props);
491
+ };
492
+ react_production.createRef = function () {
493
+ return { current: null };
494
+ };
495
+ react_production.forwardRef = function (render) {
496
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
497
+ };
498
+ react_production.isValidElement = isValidElement;
499
+ react_production.lazy = function (ctor) {
500
+ return {
501
+ $$typeof: REACT_LAZY_TYPE,
502
+ _payload: { _status: -1, _result: ctor },
503
+ _init: lazyInitializer
504
+ };
505
+ };
506
+ react_production.memo = function (type, compare) {
507
+ return {
508
+ $$typeof: REACT_MEMO_TYPE,
509
+ type: type,
510
+ compare: void 0 === compare ? null : compare
511
+ };
512
+ };
513
+ react_production.startTransition = function (scope) {
514
+ var prevTransition = ReactSharedInternals.T,
515
+ currentTransition = {};
516
+ ReactSharedInternals.T = currentTransition;
517
+ try {
518
+ var returnValue = scope(),
519
+ onStartTransitionFinish = ReactSharedInternals.S;
520
+ null !== onStartTransitionFinish &&
521
+ onStartTransitionFinish(currentTransition, returnValue);
522
+ "object" === typeof returnValue &&
523
+ null !== returnValue &&
524
+ "function" === typeof returnValue.then &&
525
+ returnValue.then(noop, reportGlobalError);
526
+ } catch (error) {
527
+ reportGlobalError(error);
528
+ } finally {
529
+ ReactSharedInternals.T = prevTransition;
530
+ }
531
+ };
532
+ react_production.unstable_useCacheRefresh = function () {
533
+ return ReactSharedInternals.H.useCacheRefresh();
534
+ };
535
+ react_production.use = function (usable) {
536
+ return ReactSharedInternals.H.use(usable);
537
+ };
538
+ react_production.useActionState = function (action, initialState, permalink) {
539
+ return ReactSharedInternals.H.useActionState(action, initialState, permalink);
540
+ };
541
+ react_production.useCallback = function (callback, deps) {
542
+ return ReactSharedInternals.H.useCallback(callback, deps);
543
+ };
544
+ react_production.useContext = function (Context) {
545
+ return ReactSharedInternals.H.useContext(Context);
546
+ };
547
+ react_production.useDebugValue = function () {};
548
+ react_production.useDeferredValue = function (value, initialValue) {
549
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
550
+ };
551
+ react_production.useEffect = function (create, deps) {
552
+ return ReactSharedInternals.H.useEffect(create, deps);
553
+ };
554
+ react_production.useId = function () {
555
+ return ReactSharedInternals.H.useId();
556
+ };
557
+ react_production.useImperativeHandle = function (ref, create, deps) {
558
+ return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
559
+ };
560
+ react_production.useInsertionEffect = function (create, deps) {
561
+ return ReactSharedInternals.H.useInsertionEffect(create, deps);
562
+ };
563
+ react_production.useLayoutEffect = function (create, deps) {
564
+ return ReactSharedInternals.H.useLayoutEffect(create, deps);
565
+ };
566
+ react_production.useMemo = function (create, deps) {
567
+ return ReactSharedInternals.H.useMemo(create, deps);
568
+ };
569
+ react_production.useOptimistic = function (passthrough, reducer) {
570
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
571
+ };
572
+ react_production.useReducer = function (reducer, initialArg, init) {
573
+ return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
574
+ };
575
+ react_production.useRef = function (initialValue) {
576
+ return ReactSharedInternals.H.useRef(initialValue);
577
+ };
578
+ react_production.useState = function (initialState) {
579
+ return ReactSharedInternals.H.useState(initialState);
580
+ };
581
+ react_production.useSyncExternalStore = function (
582
+ subscribe,
583
+ getSnapshot,
584
+ getServerSnapshot
585
+ ) {
586
+ return ReactSharedInternals.H.useSyncExternalStore(
587
+ subscribe,
588
+ getSnapshot,
589
+ getServerSnapshot
590
+ );
591
+ };
592
+ react_production.useTransition = function () {
593
+ return ReactSharedInternals.H.useTransition();
594
+ };
595
+ react_production.version = "19.0.0";
596
+ return react_production;
597
+ }
598
+
599
+ var react_development = {exports: {}};
600
+
601
+ /**
602
+ * @license React
603
+ * react.development.js
604
+ *
605
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
606
+ *
607
+ * This source code is licensed under the MIT license found in the
608
+ * LICENSE file in the root directory of this source tree.
609
+ */
610
+ react_development.exports;
611
+
612
+ var hasRequiredReact_development;
613
+
614
+ function requireReact_development () {
615
+ if (hasRequiredReact_development) return react_development.exports;
616
+ hasRequiredReact_development = 1;
617
+ (function (module, exports) {
618
+ "production" !== process.env.NODE_ENV &&
619
+ (function () {
620
+ function defineDeprecationWarning(methodName, info) {
621
+ Object.defineProperty(Component.prototype, methodName, {
622
+ get: function () {
623
+ console.warn(
624
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
625
+ info[0],
626
+ info[1]
627
+ );
628
+ }
629
+ });
630
+ }
631
+ function getIteratorFn(maybeIterable) {
632
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
633
+ return null;
634
+ maybeIterable =
635
+ (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
636
+ maybeIterable["@@iterator"];
637
+ return "function" === typeof maybeIterable ? maybeIterable : null;
638
+ }
639
+ function warnNoop(publicInstance, callerName) {
640
+ publicInstance =
641
+ ((publicInstance = publicInstance.constructor) &&
642
+ (publicInstance.displayName || publicInstance.name)) ||
643
+ "ReactClass";
644
+ var warningKey = publicInstance + "." + callerName;
645
+ didWarnStateUpdateForUnmountedComponent[warningKey] ||
646
+ (console.error(
647
+ "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.",
648
+ callerName,
649
+ publicInstance
650
+ ),
651
+ (didWarnStateUpdateForUnmountedComponent[warningKey] = true));
652
+ }
653
+ function Component(props, context, updater) {
654
+ this.props = props;
655
+ this.context = context;
656
+ this.refs = emptyObject;
657
+ this.updater = updater || ReactNoopUpdateQueue;
658
+ }
659
+ function ComponentDummy() {}
660
+ function PureComponent(props, context, updater) {
661
+ this.props = props;
662
+ this.context = context;
663
+ this.refs = emptyObject;
664
+ this.updater = updater || ReactNoopUpdateQueue;
665
+ }
666
+ function testStringCoercion(value) {
667
+ return "" + value;
668
+ }
669
+ function checkKeyStringCoercion(value) {
670
+ try {
671
+ testStringCoercion(value);
672
+ var JSCompiler_inline_result = !1;
673
+ } catch (e) {
674
+ JSCompiler_inline_result = true;
675
+ }
676
+ if (JSCompiler_inline_result) {
677
+ JSCompiler_inline_result = console;
678
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
679
+ var JSCompiler_inline_result$jscomp$0 =
680
+ ("function" === typeof Symbol &&
681
+ Symbol.toStringTag &&
682
+ value[Symbol.toStringTag]) ||
683
+ value.constructor.name ||
684
+ "Object";
685
+ JSCompiler_temp_const.call(
686
+ JSCompiler_inline_result,
687
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
688
+ JSCompiler_inline_result$jscomp$0
689
+ );
690
+ return testStringCoercion(value);
691
+ }
692
+ }
693
+ function getComponentNameFromType(type) {
694
+ if (null == type) return null;
695
+ if ("function" === typeof type)
696
+ return type.$$typeof === REACT_CLIENT_REFERENCE$2
697
+ ? null
698
+ : type.displayName || type.name || null;
699
+ if ("string" === typeof type) return type;
700
+ switch (type) {
701
+ case REACT_FRAGMENT_TYPE:
702
+ return "Fragment";
703
+ case REACT_PORTAL_TYPE:
704
+ return "Portal";
705
+ case REACT_PROFILER_TYPE:
706
+ return "Profiler";
707
+ case REACT_STRICT_MODE_TYPE:
708
+ return "StrictMode";
709
+ case REACT_SUSPENSE_TYPE:
710
+ return "Suspense";
711
+ case REACT_SUSPENSE_LIST_TYPE:
712
+ return "SuspenseList";
713
+ }
714
+ if ("object" === typeof type)
715
+ switch (
716
+ ("number" === typeof type.tag &&
717
+ console.error(
718
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
719
+ ),
720
+ type.$$typeof)
721
+ ) {
722
+ case REACT_CONTEXT_TYPE:
723
+ return (type.displayName || "Context") + ".Provider";
724
+ case REACT_CONSUMER_TYPE:
725
+ return (type._context.displayName || "Context") + ".Consumer";
726
+ case REACT_FORWARD_REF_TYPE:
727
+ var innerType = type.render;
728
+ type = type.displayName;
729
+ type ||
730
+ ((type = innerType.displayName || innerType.name || ""),
731
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
732
+ return type;
733
+ case REACT_MEMO_TYPE:
734
+ return (
735
+ (innerType = type.displayName || null),
736
+ null !== innerType
737
+ ? innerType
738
+ : getComponentNameFromType(type.type) || "Memo"
739
+ );
740
+ case REACT_LAZY_TYPE:
741
+ innerType = type._payload;
742
+ type = type._init;
743
+ try {
744
+ return getComponentNameFromType(type(innerType));
745
+ } catch (x) {}
746
+ }
747
+ return null;
748
+ }
749
+ function isValidElementType(type) {
750
+ return "string" === typeof type ||
751
+ "function" === typeof type ||
752
+ type === REACT_FRAGMENT_TYPE ||
753
+ type === REACT_PROFILER_TYPE ||
754
+ type === REACT_STRICT_MODE_TYPE ||
755
+ type === REACT_SUSPENSE_TYPE ||
756
+ type === REACT_SUSPENSE_LIST_TYPE ||
757
+ type === REACT_OFFSCREEN_TYPE ||
758
+ ("object" === typeof type &&
759
+ null !== type &&
760
+ (type.$$typeof === REACT_LAZY_TYPE ||
761
+ type.$$typeof === REACT_MEMO_TYPE ||
762
+ type.$$typeof === REACT_CONTEXT_TYPE ||
763
+ type.$$typeof === REACT_CONSUMER_TYPE ||
764
+ type.$$typeof === REACT_FORWARD_REF_TYPE ||
765
+ type.$$typeof === REACT_CLIENT_REFERENCE$1 ||
766
+ void 0 !== type.getModuleId))
767
+ ? true
768
+ : false;
769
+ }
770
+ function disabledLog() {}
771
+ function disableLogs() {
772
+ if (0 === disabledDepth) {
773
+ prevLog = console.log;
774
+ prevInfo = console.info;
775
+ prevWarn = console.warn;
776
+ prevError = console.error;
777
+ prevGroup = console.group;
778
+ prevGroupCollapsed = console.groupCollapsed;
779
+ prevGroupEnd = console.groupEnd;
780
+ var props = {
781
+ configurable: true,
782
+ enumerable: true,
783
+ value: disabledLog,
784
+ writable: true
785
+ };
786
+ Object.defineProperties(console, {
787
+ info: props,
788
+ log: props,
789
+ warn: props,
790
+ error: props,
791
+ group: props,
792
+ groupCollapsed: props,
793
+ groupEnd: props
794
+ });
795
+ }
796
+ disabledDepth++;
797
+ }
798
+ function reenableLogs() {
799
+ disabledDepth--;
800
+ if (0 === disabledDepth) {
801
+ var props = { configurable: true, enumerable: true, writable: true };
802
+ Object.defineProperties(console, {
803
+ log: assign({}, props, { value: prevLog }),
804
+ info: assign({}, props, { value: prevInfo }),
805
+ warn: assign({}, props, { value: prevWarn }),
806
+ error: assign({}, props, { value: prevError }),
807
+ group: assign({}, props, { value: prevGroup }),
808
+ groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
809
+ groupEnd: assign({}, props, { value: prevGroupEnd })
810
+ });
811
+ }
812
+ 0 > disabledDepth &&
813
+ console.error(
814
+ "disabledDepth fell below zero. This is a bug in React. Please file an issue."
815
+ );
816
+ }
817
+ function describeBuiltInComponentFrame(name) {
818
+ if (void 0 === prefix)
819
+ try {
820
+ throw Error();
821
+ } catch (x) {
822
+ var match = x.stack.trim().match(/\n( *(at )?)/);
823
+ prefix = (match && match[1]) || "";
824
+ suffix =
825
+ -1 < x.stack.indexOf("\n at")
826
+ ? " (<anonymous>)"
827
+ : -1 < x.stack.indexOf("@")
828
+ ? "@unknown:0:0"
829
+ : "";
830
+ }
831
+ return "\n" + prefix + name + suffix;
832
+ }
833
+ function describeNativeComponentFrame(fn, construct) {
834
+ if (!fn || reentry) return "";
835
+ var frame = componentFrameCache.get(fn);
836
+ if (void 0 !== frame) return frame;
837
+ reentry = true;
838
+ frame = Error.prepareStackTrace;
839
+ Error.prepareStackTrace = void 0;
840
+ var previousDispatcher = null;
841
+ previousDispatcher = ReactSharedInternals.H;
842
+ ReactSharedInternals.H = null;
843
+ disableLogs();
844
+ try {
845
+ var RunInRootFrame = {
846
+ DetermineComponentFrameRoot: function () {
847
+ try {
848
+ if (construct) {
849
+ var Fake = function () {
850
+ throw Error();
851
+ };
852
+ Object.defineProperty(Fake.prototype, "props", {
853
+ set: function () {
854
+ throw Error();
855
+ }
856
+ });
857
+ if ("object" === typeof Reflect && Reflect.construct) {
858
+ try {
859
+ Reflect.construct(Fake, []);
860
+ } catch (x) {
861
+ var control = x;
862
+ }
863
+ Reflect.construct(fn, [], Fake);
864
+ } else {
865
+ try {
866
+ Fake.call();
867
+ } catch (x$0) {
868
+ control = x$0;
869
+ }
870
+ fn.call(Fake.prototype);
871
+ }
872
+ } else {
873
+ try {
874
+ throw Error();
875
+ } catch (x$1) {
876
+ control = x$1;
877
+ }
878
+ (Fake = fn()) &&
879
+ "function" === typeof Fake.catch &&
880
+ Fake.catch(function () {});
881
+ }
882
+ } catch (sample) {
883
+ if (sample && control && "string" === typeof sample.stack)
884
+ return [sample.stack, control.stack];
885
+ }
886
+ return [null, null];
887
+ }
888
+ };
889
+ RunInRootFrame.DetermineComponentFrameRoot.displayName =
890
+ "DetermineComponentFrameRoot";
891
+ var namePropDescriptor = Object.getOwnPropertyDescriptor(
892
+ RunInRootFrame.DetermineComponentFrameRoot,
893
+ "name"
894
+ );
895
+ namePropDescriptor &&
896
+ namePropDescriptor.configurable &&
897
+ Object.defineProperty(
898
+ RunInRootFrame.DetermineComponentFrameRoot,
899
+ "name",
900
+ { value: "DetermineComponentFrameRoot" }
901
+ );
902
+ var _RunInRootFrame$Deter =
903
+ RunInRootFrame.DetermineComponentFrameRoot(),
904
+ sampleStack = _RunInRootFrame$Deter[0],
905
+ controlStack = _RunInRootFrame$Deter[1];
906
+ if (sampleStack && controlStack) {
907
+ var sampleLines = sampleStack.split("\n"),
908
+ controlLines = controlStack.split("\n");
909
+ for (
910
+ _RunInRootFrame$Deter = namePropDescriptor = 0;
911
+ namePropDescriptor < sampleLines.length &&
912
+ !sampleLines[namePropDescriptor].includes(
913
+ "DetermineComponentFrameRoot"
914
+ );
915
+
916
+ )
917
+ namePropDescriptor++;
918
+ for (
919
+ ;
920
+ _RunInRootFrame$Deter < controlLines.length &&
921
+ !controlLines[_RunInRootFrame$Deter].includes(
922
+ "DetermineComponentFrameRoot"
923
+ );
924
+
925
+ )
926
+ _RunInRootFrame$Deter++;
927
+ if (
928
+ namePropDescriptor === sampleLines.length ||
929
+ _RunInRootFrame$Deter === controlLines.length
930
+ )
931
+ for (
932
+ namePropDescriptor = sampleLines.length - 1,
933
+ _RunInRootFrame$Deter = controlLines.length - 1;
934
+ 1 <= namePropDescriptor &&
935
+ 0 <= _RunInRootFrame$Deter &&
936
+ sampleLines[namePropDescriptor] !==
937
+ controlLines[_RunInRootFrame$Deter];
938
+
939
+ )
940
+ _RunInRootFrame$Deter--;
941
+ for (
942
+ ;
943
+ 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
944
+ namePropDescriptor--, _RunInRootFrame$Deter--
945
+ )
946
+ if (
947
+ sampleLines[namePropDescriptor] !==
948
+ controlLines[_RunInRootFrame$Deter]
949
+ ) {
950
+ if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
951
+ do
952
+ if (
953
+ (namePropDescriptor--,
954
+ _RunInRootFrame$Deter--,
955
+ 0 > _RunInRootFrame$Deter ||
956
+ sampleLines[namePropDescriptor] !==
957
+ controlLines[_RunInRootFrame$Deter])
958
+ ) {
959
+ var _frame =
960
+ "\n" +
961
+ sampleLines[namePropDescriptor].replace(
962
+ " at new ",
963
+ " at "
964
+ );
965
+ fn.displayName &&
966
+ _frame.includes("<anonymous>") &&
967
+ (_frame = _frame.replace("<anonymous>", fn.displayName));
968
+ "function" === typeof fn &&
969
+ componentFrameCache.set(fn, _frame);
970
+ return _frame;
971
+ }
972
+ while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
973
+ }
974
+ break;
975
+ }
976
+ }
977
+ } finally {
978
+ (reentry = false),
979
+ (ReactSharedInternals.H = previousDispatcher),
980
+ reenableLogs(),
981
+ (Error.prepareStackTrace = frame);
982
+ }
983
+ sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "")
984
+ ? describeBuiltInComponentFrame(sampleLines)
985
+ : "";
986
+ "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
987
+ return sampleLines;
988
+ }
989
+ function describeUnknownElementTypeFrameInDEV(type) {
990
+ if (null == type) return "";
991
+ if ("function" === typeof type) {
992
+ var prototype = type.prototype;
993
+ return describeNativeComponentFrame(
994
+ type,
995
+ !(!prototype || !prototype.isReactComponent)
996
+ );
997
+ }
998
+ if ("string" === typeof type) return describeBuiltInComponentFrame(type);
999
+ switch (type) {
1000
+ case REACT_SUSPENSE_TYPE:
1001
+ return describeBuiltInComponentFrame("Suspense");
1002
+ case REACT_SUSPENSE_LIST_TYPE:
1003
+ return describeBuiltInComponentFrame("SuspenseList");
1004
+ }
1005
+ if ("object" === typeof type)
1006
+ switch (type.$$typeof) {
1007
+ case REACT_FORWARD_REF_TYPE:
1008
+ return (type = describeNativeComponentFrame(type.render, false)), type;
1009
+ case REACT_MEMO_TYPE:
1010
+ return describeUnknownElementTypeFrameInDEV(type.type);
1011
+ case REACT_LAZY_TYPE:
1012
+ prototype = type._payload;
1013
+ type = type._init;
1014
+ try {
1015
+ return describeUnknownElementTypeFrameInDEV(type(prototype));
1016
+ } catch (x) {}
1017
+ }
1018
+ return "";
1019
+ }
1020
+ function getOwner() {
1021
+ var dispatcher = ReactSharedInternals.A;
1022
+ return null === dispatcher ? null : dispatcher.getOwner();
1023
+ }
1024
+ function hasValidKey(config) {
1025
+ if (hasOwnProperty.call(config, "key")) {
1026
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
1027
+ if (getter && getter.isReactWarning) return false;
1028
+ }
1029
+ return void 0 !== config.key;
1030
+ }
1031
+ function defineKeyPropWarningGetter(props, displayName) {
1032
+ function warnAboutAccessingKey() {
1033
+ specialPropKeyWarningShown ||
1034
+ ((specialPropKeyWarningShown = true),
1035
+ console.error(
1036
+ "%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)",
1037
+ displayName
1038
+ ));
1039
+ }
1040
+ warnAboutAccessingKey.isReactWarning = true;
1041
+ Object.defineProperty(props, "key", {
1042
+ get: warnAboutAccessingKey,
1043
+ configurable: true
1044
+ });
1045
+ }
1046
+ function elementRefGetterWithDeprecationWarning() {
1047
+ var componentName = getComponentNameFromType(this.type);
1048
+ didWarnAboutElementRef[componentName] ||
1049
+ ((didWarnAboutElementRef[componentName] = true),
1050
+ console.error(
1051
+ "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."
1052
+ ));
1053
+ componentName = this.props.ref;
1054
+ return void 0 !== componentName ? componentName : null;
1055
+ }
1056
+ function ReactElement(type, key, self, source, owner, props) {
1057
+ self = props.ref;
1058
+ type = {
1059
+ $$typeof: REACT_ELEMENT_TYPE,
1060
+ type: type,
1061
+ key: key,
1062
+ props: props,
1063
+ _owner: owner
1064
+ };
1065
+ null !== (void 0 !== self ? self : null)
1066
+ ? Object.defineProperty(type, "ref", {
1067
+ enumerable: false,
1068
+ get: elementRefGetterWithDeprecationWarning
1069
+ })
1070
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
1071
+ type._store = {};
1072
+ Object.defineProperty(type._store, "validated", {
1073
+ configurable: false,
1074
+ enumerable: false,
1075
+ writable: true,
1076
+ value: 0
1077
+ });
1078
+ Object.defineProperty(type, "_debugInfo", {
1079
+ configurable: false,
1080
+ enumerable: false,
1081
+ writable: true,
1082
+ value: null
1083
+ });
1084
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
1085
+ return type;
1086
+ }
1087
+ function cloneAndReplaceKey(oldElement, newKey) {
1088
+ newKey = ReactElement(
1089
+ oldElement.type,
1090
+ newKey,
1091
+ void 0,
1092
+ void 0,
1093
+ oldElement._owner,
1094
+ oldElement.props
1095
+ );
1096
+ newKey._store.validated = oldElement._store.validated;
1097
+ return newKey;
1098
+ }
1099
+ function validateChildKeys(node, parentType) {
1100
+ if (
1101
+ "object" === typeof node &&
1102
+ node &&
1103
+ node.$$typeof !== REACT_CLIENT_REFERENCE
1104
+ )
1105
+ if (isArrayImpl(node))
1106
+ for (var i = 0; i < node.length; i++) {
1107
+ var child = node[i];
1108
+ isValidElement(child) && validateExplicitKey(child, parentType);
1109
+ }
1110
+ else if (isValidElement(node))
1111
+ node._store && (node._store.validated = 1);
1112
+ else if (
1113
+ ((i = getIteratorFn(node)),
1114
+ "function" === typeof i &&
1115
+ i !== node.entries &&
1116
+ ((i = i.call(node)), i !== node))
1117
+ )
1118
+ for (; !(node = i.next()).done; )
1119
+ isValidElement(node.value) &&
1120
+ validateExplicitKey(node.value, parentType);
1121
+ }
1122
+ function isValidElement(object) {
1123
+ return (
1124
+ "object" === typeof object &&
1125
+ null !== object &&
1126
+ object.$$typeof === REACT_ELEMENT_TYPE
1127
+ );
1128
+ }
1129
+ function validateExplicitKey(element, parentType) {
1130
+ if (
1131
+ element._store &&
1132
+ !element._store.validated &&
1133
+ null == element.key &&
1134
+ ((element._store.validated = 1),
1135
+ (parentType = getCurrentComponentErrorInfo(parentType)),
1136
+ !ownerHasKeyUseWarning[parentType])
1137
+ ) {
1138
+ ownerHasKeyUseWarning[parentType] = true;
1139
+ var childOwner = "";
1140
+ element &&
1141
+ null != element._owner &&
1142
+ element._owner !== getOwner() &&
1143
+ ((childOwner = null),
1144
+ "number" === typeof element._owner.tag
1145
+ ? (childOwner = getComponentNameFromType(element._owner.type))
1146
+ : "string" === typeof element._owner.name &&
1147
+ (childOwner = element._owner.name),
1148
+ (childOwner = " It was passed a child from " + childOwner + "."));
1149
+ var prevGetCurrentStack = ReactSharedInternals.getCurrentStack;
1150
+ ReactSharedInternals.getCurrentStack = function () {
1151
+ var stack = describeUnknownElementTypeFrameInDEV(element.type);
1152
+ prevGetCurrentStack && (stack += prevGetCurrentStack() || "");
1153
+ return stack;
1154
+ };
1155
+ console.error(
1156
+ 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
1157
+ parentType,
1158
+ childOwner
1159
+ );
1160
+ ReactSharedInternals.getCurrentStack = prevGetCurrentStack;
1161
+ }
1162
+ }
1163
+ function getCurrentComponentErrorInfo(parentType) {
1164
+ var info = "",
1165
+ owner = getOwner();
1166
+ owner &&
1167
+ (owner = getComponentNameFromType(owner.type)) &&
1168
+ (info = "\n\nCheck the render method of `" + owner + "`.");
1169
+ info ||
1170
+ ((parentType = getComponentNameFromType(parentType)) &&
1171
+ (info =
1172
+ "\n\nCheck the top-level render call using <" + parentType + ">."));
1173
+ return info;
1174
+ }
1175
+ function escape(key) {
1176
+ var escaperLookup = { "=": "=0", ":": "=2" };
1177
+ return (
1178
+ "$" +
1179
+ key.replace(/[=:]/g, function (match) {
1180
+ return escaperLookup[match];
1181
+ })
1182
+ );
1183
+ }
1184
+ function getElementKey(element, index) {
1185
+ return "object" === typeof element &&
1186
+ null !== element &&
1187
+ null != element.key
1188
+ ? (checkKeyStringCoercion(element.key), escape("" + element.key))
1189
+ : index.toString(36);
1190
+ }
1191
+ function noop$1() {}
1192
+ function resolveThenable(thenable) {
1193
+ switch (thenable.status) {
1194
+ case "fulfilled":
1195
+ return thenable.value;
1196
+ case "rejected":
1197
+ throw thenable.reason;
1198
+ default:
1199
+ switch (
1200
+ ("string" === typeof thenable.status
1201
+ ? thenable.then(noop$1, noop$1)
1202
+ : ((thenable.status = "pending"),
1203
+ thenable.then(
1204
+ function (fulfilledValue) {
1205
+ "pending" === thenable.status &&
1206
+ ((thenable.status = "fulfilled"),
1207
+ (thenable.value = fulfilledValue));
1208
+ },
1209
+ function (error) {
1210
+ "pending" === thenable.status &&
1211
+ ((thenable.status = "rejected"),
1212
+ (thenable.reason = error));
1213
+ }
1214
+ )),
1215
+ thenable.status)
1216
+ ) {
1217
+ case "fulfilled":
1218
+ return thenable.value;
1219
+ case "rejected":
1220
+ throw thenable.reason;
1221
+ }
1222
+ }
1223
+ throw thenable;
1224
+ }
1225
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
1226
+ var type = typeof children;
1227
+ if ("undefined" === type || "boolean" === type) children = null;
1228
+ var invokeCallback = false;
1229
+ if (null === children) invokeCallback = true;
1230
+ else
1231
+ switch (type) {
1232
+ case "bigint":
1233
+ case "string":
1234
+ case "number":
1235
+ invokeCallback = true;
1236
+ break;
1237
+ case "object":
1238
+ switch (children.$$typeof) {
1239
+ case REACT_ELEMENT_TYPE:
1240
+ case REACT_PORTAL_TYPE:
1241
+ invokeCallback = true;
1242
+ break;
1243
+ case REACT_LAZY_TYPE:
1244
+ return (
1245
+ (invokeCallback = children._init),
1246
+ mapIntoArray(
1247
+ invokeCallback(children._payload),
1248
+ array,
1249
+ escapedPrefix,
1250
+ nameSoFar,
1251
+ callback
1252
+ )
1253
+ );
1254
+ }
1255
+ }
1256
+ if (invokeCallback) {
1257
+ invokeCallback = children;
1258
+ callback = callback(invokeCallback);
1259
+ var childKey =
1260
+ "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
1261
+ isArrayImpl(callback)
1262
+ ? ((escapedPrefix = ""),
1263
+ null != childKey &&
1264
+ (escapedPrefix =
1265
+ childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
1266
+ mapIntoArray(callback, array, escapedPrefix, "", function (c) {
1267
+ return c;
1268
+ }))
1269
+ : null != callback &&
1270
+ (isValidElement(callback) &&
1271
+ (null != callback.key &&
1272
+ ((invokeCallback && invokeCallback.key === callback.key) ||
1273
+ checkKeyStringCoercion(callback.key)),
1274
+ (escapedPrefix = cloneAndReplaceKey(
1275
+ callback,
1276
+ escapedPrefix +
1277
+ (null == callback.key ||
1278
+ (invokeCallback && invokeCallback.key === callback.key)
1279
+ ? ""
1280
+ : ("" + callback.key).replace(
1281
+ userProvidedKeyEscapeRegex,
1282
+ "$&/"
1283
+ ) + "/") +
1284
+ childKey
1285
+ )),
1286
+ "" !== nameSoFar &&
1287
+ null != invokeCallback &&
1288
+ isValidElement(invokeCallback) &&
1289
+ null == invokeCallback.key &&
1290
+ invokeCallback._store &&
1291
+ !invokeCallback._store.validated &&
1292
+ (escapedPrefix._store.validated = 2),
1293
+ (callback = escapedPrefix)),
1294
+ array.push(callback));
1295
+ return 1;
1296
+ }
1297
+ invokeCallback = 0;
1298
+ childKey = "" === nameSoFar ? "." : nameSoFar + ":";
1299
+ if (isArrayImpl(children))
1300
+ for (var i = 0; i < children.length; i++)
1301
+ (nameSoFar = children[i]),
1302
+ (type = childKey + getElementKey(nameSoFar, i)),
1303
+ (invokeCallback += mapIntoArray(
1304
+ nameSoFar,
1305
+ array,
1306
+ escapedPrefix,
1307
+ type,
1308
+ callback
1309
+ ));
1310
+ else if (((i = getIteratorFn(children)), "function" === typeof i))
1311
+ for (
1312
+ i === children.entries &&
1313
+ (didWarnAboutMaps ||
1314
+ console.warn(
1315
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
1316
+ ),
1317
+ (didWarnAboutMaps = true)),
1318
+ children = i.call(children),
1319
+ i = 0;
1320
+ !(nameSoFar = children.next()).done;
1321
+
1322
+ )
1323
+ (nameSoFar = nameSoFar.value),
1324
+ (type = childKey + getElementKey(nameSoFar, i++)),
1325
+ (invokeCallback += mapIntoArray(
1326
+ nameSoFar,
1327
+ array,
1328
+ escapedPrefix,
1329
+ type,
1330
+ callback
1331
+ ));
1332
+ else if ("object" === type) {
1333
+ if ("function" === typeof children.then)
1334
+ return mapIntoArray(
1335
+ resolveThenable(children),
1336
+ array,
1337
+ escapedPrefix,
1338
+ nameSoFar,
1339
+ callback
1340
+ );
1341
+ array = String(children);
1342
+ throw Error(
1343
+ "Objects are not valid as a React child (found: " +
1344
+ ("[object Object]" === array
1345
+ ? "object with keys {" + Object.keys(children).join(", ") + "}"
1346
+ : array) +
1347
+ "). If you meant to render a collection of children, use an array instead."
1348
+ );
1349
+ }
1350
+ return invokeCallback;
1351
+ }
1352
+ function mapChildren(children, func, context) {
1353
+ if (null == children) return children;
1354
+ var result = [],
1355
+ count = 0;
1356
+ mapIntoArray(children, result, "", "", function (child) {
1357
+ return func.call(context, child, count++);
1358
+ });
1359
+ return result;
1360
+ }
1361
+ function lazyInitializer(payload) {
1362
+ if (-1 === payload._status) {
1363
+ var ctor = payload._result;
1364
+ ctor = ctor();
1365
+ ctor.then(
1366
+ function (moduleObject) {
1367
+ if (0 === payload._status || -1 === payload._status)
1368
+ (payload._status = 1), (payload._result = moduleObject);
1369
+ },
1370
+ function (error) {
1371
+ if (0 === payload._status || -1 === payload._status)
1372
+ (payload._status = 2), (payload._result = error);
1373
+ }
1374
+ );
1375
+ -1 === payload._status &&
1376
+ ((payload._status = 0), (payload._result = ctor));
1377
+ }
1378
+ if (1 === payload._status)
1379
+ return (
1380
+ (ctor = payload._result),
1381
+ void 0 === ctor &&
1382
+ console.error(
1383
+ "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?",
1384
+ ctor
1385
+ ),
1386
+ "default" in ctor ||
1387
+ console.error(
1388
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
1389
+ ctor
1390
+ ),
1391
+ ctor.default
1392
+ );
1393
+ throw payload._result;
1394
+ }
1395
+ function resolveDispatcher() {
1396
+ var dispatcher = ReactSharedInternals.H;
1397
+ null === dispatcher &&
1398
+ console.error(
1399
+ "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."
1400
+ );
1401
+ return dispatcher;
1402
+ }
1403
+ function noop() {}
1404
+ function enqueueTask(task) {
1405
+ if (null === enqueueTaskImpl)
1406
+ try {
1407
+ var requireString = ("require" + Math.random()).slice(0, 7);
1408
+ enqueueTaskImpl = (module && module[requireString]).call(
1409
+ module,
1410
+ "timers"
1411
+ ).setImmediate;
1412
+ } catch (_err) {
1413
+ enqueueTaskImpl = function (callback) {
1414
+ false === didWarnAboutMessageChannel &&
1415
+ ((didWarnAboutMessageChannel = true),
1416
+ "undefined" === typeof MessageChannel &&
1417
+ console.error(
1418
+ "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."
1419
+ ));
1420
+ var channel = new MessageChannel();
1421
+ channel.port1.onmessage = callback;
1422
+ channel.port2.postMessage(void 0);
1423
+ };
1424
+ }
1425
+ return enqueueTaskImpl(task);
1426
+ }
1427
+ function aggregateErrors(errors) {
1428
+ return 1 < errors.length && "function" === typeof AggregateError
1429
+ ? new AggregateError(errors)
1430
+ : errors[0];
1431
+ }
1432
+ function popActScope(prevActQueue, prevActScopeDepth) {
1433
+ prevActScopeDepth !== actScopeDepth - 1 &&
1434
+ console.error(
1435
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
1436
+ );
1437
+ actScopeDepth = prevActScopeDepth;
1438
+ }
1439
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
1440
+ var queue = ReactSharedInternals.actQueue;
1441
+ if (null !== queue)
1442
+ if (0 !== queue.length)
1443
+ try {
1444
+ flushActQueue(queue);
1445
+ enqueueTask(function () {
1446
+ return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
1447
+ });
1448
+ return;
1449
+ } catch (error) {
1450
+ ReactSharedInternals.thrownErrors.push(error);
1451
+ }
1452
+ else ReactSharedInternals.actQueue = null;
1453
+ 0 < ReactSharedInternals.thrownErrors.length
1454
+ ? ((queue = aggregateErrors(ReactSharedInternals.thrownErrors)),
1455
+ (ReactSharedInternals.thrownErrors.length = 0),
1456
+ reject(queue))
1457
+ : resolve(returnValue);
1458
+ }
1459
+ function flushActQueue(queue) {
1460
+ if (!isFlushing) {
1461
+ isFlushing = true;
1462
+ var i = 0;
1463
+ try {
1464
+ for (; i < queue.length; i++) {
1465
+ var callback = queue[i];
1466
+ do {
1467
+ ReactSharedInternals.didUsePromise = !1;
1468
+ var continuation = callback(!1);
1469
+ if (null !== continuation) {
1470
+ if (ReactSharedInternals.didUsePromise) {
1471
+ queue[i] = callback;
1472
+ queue.splice(0, i);
1473
+ return;
1474
+ }
1475
+ callback = continuation;
1476
+ } else break;
1477
+ } while (1);
1478
+ }
1479
+ queue.length = 0;
1480
+ } catch (error) {
1481
+ queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
1482
+ } finally {
1483
+ isFlushing = false;
1484
+ }
1485
+ }
1486
+ }
1487
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1488
+ "function" ===
1489
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
1490
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1491
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
1492
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
1493
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
1494
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
1495
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler");
1496
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
1497
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
1498
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
1499
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
1500
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
1501
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
1502
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
1503
+ REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
1504
+ MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
1505
+ didWarnStateUpdateForUnmountedComponent = {},
1506
+ ReactNoopUpdateQueue = {
1507
+ isMounted: function () {
1508
+ return false;
1509
+ },
1510
+ enqueueForceUpdate: function (publicInstance) {
1511
+ warnNoop(publicInstance, "forceUpdate");
1512
+ },
1513
+ enqueueReplaceState: function (publicInstance) {
1514
+ warnNoop(publicInstance, "replaceState");
1515
+ },
1516
+ enqueueSetState: function (publicInstance) {
1517
+ warnNoop(publicInstance, "setState");
1518
+ }
1519
+ },
1520
+ assign = Object.assign,
1521
+ emptyObject = {};
1522
+ Object.freeze(emptyObject);
1523
+ Component.prototype.isReactComponent = {};
1524
+ Component.prototype.setState = function (partialState, callback) {
1525
+ if (
1526
+ "object" !== typeof partialState &&
1527
+ "function" !== typeof partialState &&
1528
+ null != partialState
1529
+ )
1530
+ throw Error(
1531
+ "takes an object of state variables to update or a function which returns an object of state variables."
1532
+ );
1533
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
1534
+ };
1535
+ Component.prototype.forceUpdate = function (callback) {
1536
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
1537
+ };
1538
+ var deprecatedAPIs = {
1539
+ isMounted: [
1540
+ "isMounted",
1541
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1542
+ ],
1543
+ replaceState: [
1544
+ "replaceState",
1545
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1546
+ ]
1547
+ },
1548
+ fnName;
1549
+ for (fnName in deprecatedAPIs)
1550
+ deprecatedAPIs.hasOwnProperty(fnName) &&
1551
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
1552
+ ComponentDummy.prototype = Component.prototype;
1553
+ deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
1554
+ deprecatedAPIs.constructor = PureComponent;
1555
+ assign(deprecatedAPIs, Component.prototype);
1556
+ deprecatedAPIs.isPureReactComponent = true;
1557
+ var isArrayImpl = Array.isArray,
1558
+ REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"),
1559
+ ReactSharedInternals = {
1560
+ H: null,
1561
+ A: null,
1562
+ T: null,
1563
+ S: null,
1564
+ actQueue: null,
1565
+ isBatchingLegacy: false,
1566
+ didScheduleLegacyUpdate: false,
1567
+ didUsePromise: false,
1568
+ thrownErrors: [],
1569
+ getCurrentStack: null
1570
+ },
1571
+ hasOwnProperty = Object.prototype.hasOwnProperty,
1572
+ REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"),
1573
+ disabledDepth = 0,
1574
+ prevLog,
1575
+ prevInfo,
1576
+ prevWarn,
1577
+ prevError,
1578
+ prevGroup,
1579
+ prevGroupCollapsed,
1580
+ prevGroupEnd;
1581
+ disabledLog.__reactDisabledLog = true;
1582
+ var prefix,
1583
+ suffix,
1584
+ reentry = false;
1585
+ var componentFrameCache = new (
1586
+ "function" === typeof WeakMap ? WeakMap : Map
1587
+ )();
1588
+ var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
1589
+ specialPropKeyWarningShown,
1590
+ didWarnAboutOldJSXRuntime;
1591
+ var didWarnAboutElementRef = {};
1592
+ var ownerHasKeyUseWarning = {},
1593
+ didWarnAboutMaps = false,
1594
+ userProvidedKeyEscapeRegex = /\/+/g,
1595
+ reportGlobalError =
1596
+ "function" === typeof reportError
1597
+ ? reportError
1598
+ : function (error) {
1599
+ if (
1600
+ "object" === typeof window &&
1601
+ "function" === typeof window.ErrorEvent
1602
+ ) {
1603
+ var event = new window.ErrorEvent("error", {
1604
+ bubbles: true,
1605
+ cancelable: true,
1606
+ message:
1607
+ "object" === typeof error &&
1608
+ null !== error &&
1609
+ "string" === typeof error.message
1610
+ ? String(error.message)
1611
+ : String(error),
1612
+ error: error
1613
+ });
1614
+ if (!window.dispatchEvent(event)) return;
1615
+ } else if (
1616
+ "object" === typeof process &&
1617
+ "function" === typeof process.emit
1618
+ ) {
1619
+ process.emit("uncaughtException", error);
1620
+ return;
1621
+ }
1622
+ console.error(error);
1623
+ },
1624
+ didWarnAboutMessageChannel = false,
1625
+ enqueueTaskImpl = null,
1626
+ actScopeDepth = 0,
1627
+ didWarnNoAwaitAct = false,
1628
+ isFlushing = false,
1629
+ queueSeveralMicrotasks =
1630
+ "function" === typeof queueMicrotask
1631
+ ? function (callback) {
1632
+ queueMicrotask(function () {
1633
+ return queueMicrotask(callback);
1634
+ });
1635
+ }
1636
+ : enqueueTask;
1637
+ exports.Children = {
1638
+ map: mapChildren,
1639
+ forEach: function (children, forEachFunc, forEachContext) {
1640
+ mapChildren(
1641
+ children,
1642
+ function () {
1643
+ forEachFunc.apply(this, arguments);
1644
+ },
1645
+ forEachContext
1646
+ );
1647
+ },
1648
+ count: function (children) {
1649
+ var n = 0;
1650
+ mapChildren(children, function () {
1651
+ n++;
1652
+ });
1653
+ return n;
1654
+ },
1655
+ toArray: function (children) {
1656
+ return (
1657
+ mapChildren(children, function (child) {
1658
+ return child;
1659
+ }) || []
1660
+ );
1661
+ },
1662
+ only: function (children) {
1663
+ if (!isValidElement(children))
1664
+ throw Error(
1665
+ "React.Children.only expected to receive a single React element child."
1666
+ );
1667
+ return children;
1668
+ }
1669
+ };
1670
+ exports.Component = Component;
1671
+ exports.Fragment = REACT_FRAGMENT_TYPE;
1672
+ exports.Profiler = REACT_PROFILER_TYPE;
1673
+ exports.PureComponent = PureComponent;
1674
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
1675
+ exports.Suspense = REACT_SUSPENSE_TYPE;
1676
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
1677
+ ReactSharedInternals;
1678
+ exports.act = function (callback) {
1679
+ var prevActQueue = ReactSharedInternals.actQueue,
1680
+ prevActScopeDepth = actScopeDepth;
1681
+ actScopeDepth++;
1682
+ var queue = (ReactSharedInternals.actQueue =
1683
+ null !== prevActQueue ? prevActQueue : []),
1684
+ didAwaitActCall = false;
1685
+ try {
1686
+ var result = callback();
1687
+ } catch (error) {
1688
+ ReactSharedInternals.thrownErrors.push(error);
1689
+ }
1690
+ if (0 < ReactSharedInternals.thrownErrors.length)
1691
+ throw (
1692
+ (popActScope(prevActQueue, prevActScopeDepth),
1693
+ (callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
1694
+ (ReactSharedInternals.thrownErrors.length = 0),
1695
+ callback)
1696
+ );
1697
+ if (
1698
+ null !== result &&
1699
+ "object" === typeof result &&
1700
+ "function" === typeof result.then
1701
+ ) {
1702
+ var thenable = result;
1703
+ queueSeveralMicrotasks(function () {
1704
+ didAwaitActCall ||
1705
+ didWarnNoAwaitAct ||
1706
+ ((didWarnNoAwaitAct = true),
1707
+ console.error(
1708
+ "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 () => ...);"
1709
+ ));
1710
+ });
1711
+ return {
1712
+ then: function (resolve, reject) {
1713
+ didAwaitActCall = true;
1714
+ thenable.then(
1715
+ function (returnValue) {
1716
+ popActScope(prevActQueue, prevActScopeDepth);
1717
+ if (0 === prevActScopeDepth) {
1718
+ try {
1719
+ flushActQueue(queue),
1720
+ enqueueTask(function () {
1721
+ return recursivelyFlushAsyncActWork(
1722
+ returnValue,
1723
+ resolve,
1724
+ reject
1725
+ );
1726
+ });
1727
+ } catch (error$2) {
1728
+ ReactSharedInternals.thrownErrors.push(error$2);
1729
+ }
1730
+ if (0 < ReactSharedInternals.thrownErrors.length) {
1731
+ var _thrownError = aggregateErrors(
1732
+ ReactSharedInternals.thrownErrors
1733
+ );
1734
+ ReactSharedInternals.thrownErrors.length = 0;
1735
+ reject(_thrownError);
1736
+ }
1737
+ } else resolve(returnValue);
1738
+ },
1739
+ function (error) {
1740
+ popActScope(prevActQueue, prevActScopeDepth);
1741
+ 0 < ReactSharedInternals.thrownErrors.length
1742
+ ? ((error = aggregateErrors(
1743
+ ReactSharedInternals.thrownErrors
1744
+ )),
1745
+ (ReactSharedInternals.thrownErrors.length = 0),
1746
+ reject(error))
1747
+ : reject(error);
1748
+ }
1749
+ );
1750
+ }
1751
+ };
1752
+ }
1753
+ var returnValue$jscomp$0 = result;
1754
+ popActScope(prevActQueue, prevActScopeDepth);
1755
+ 0 === prevActScopeDepth &&
1756
+ (flushActQueue(queue),
1757
+ 0 !== queue.length &&
1758
+ queueSeveralMicrotasks(function () {
1759
+ didAwaitActCall ||
1760
+ didWarnNoAwaitAct ||
1761
+ ((didWarnNoAwaitAct = true),
1762
+ console.error(
1763
+ "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(() => ...)"
1764
+ ));
1765
+ }),
1766
+ (ReactSharedInternals.actQueue = null));
1767
+ if (0 < ReactSharedInternals.thrownErrors.length)
1768
+ throw (
1769
+ ((callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
1770
+ (ReactSharedInternals.thrownErrors.length = 0),
1771
+ callback)
1772
+ );
1773
+ return {
1774
+ then: function (resolve, reject) {
1775
+ didAwaitActCall = true;
1776
+ 0 === prevActScopeDepth
1777
+ ? ((ReactSharedInternals.actQueue = queue),
1778
+ enqueueTask(function () {
1779
+ return recursivelyFlushAsyncActWork(
1780
+ returnValue$jscomp$0,
1781
+ resolve,
1782
+ reject
1783
+ );
1784
+ }))
1785
+ : resolve(returnValue$jscomp$0);
1786
+ }
1787
+ };
1788
+ };
1789
+ exports.cache = function (fn) {
1790
+ return function () {
1791
+ return fn.apply(null, arguments);
1792
+ };
1793
+ };
1794
+ exports.cloneElement = function (element, config, children) {
1795
+ if (null === element || void 0 === element)
1796
+ throw Error(
1797
+ "The argument must be a React element, but you passed " +
1798
+ element +
1799
+ "."
1800
+ );
1801
+ var props = assign({}, element.props),
1802
+ key = element.key,
1803
+ owner = element._owner;
1804
+ if (null != config) {
1805
+ var JSCompiler_inline_result;
1806
+ a: {
1807
+ if (
1808
+ hasOwnProperty.call(config, "ref") &&
1809
+ (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1810
+ config,
1811
+ "ref"
1812
+ ).get) &&
1813
+ JSCompiler_inline_result.isReactWarning
1814
+ ) {
1815
+ JSCompiler_inline_result = false;
1816
+ break a;
1817
+ }
1818
+ JSCompiler_inline_result = void 0 !== config.ref;
1819
+ }
1820
+ JSCompiler_inline_result && (owner = getOwner());
1821
+ hasValidKey(config) &&
1822
+ (checkKeyStringCoercion(config.key), (key = "" + config.key));
1823
+ for (propName in config)
1824
+ !hasOwnProperty.call(config, propName) ||
1825
+ "key" === propName ||
1826
+ "__self" === propName ||
1827
+ "__source" === propName ||
1828
+ ("ref" === propName && void 0 === config.ref) ||
1829
+ (props[propName] = config[propName]);
1830
+ }
1831
+ var propName = arguments.length - 2;
1832
+ if (1 === propName) props.children = children;
1833
+ else if (1 < propName) {
1834
+ JSCompiler_inline_result = Array(propName);
1835
+ for (var i = 0; i < propName; i++)
1836
+ JSCompiler_inline_result[i] = arguments[i + 2];
1837
+ props.children = JSCompiler_inline_result;
1838
+ }
1839
+ props = ReactElement(element.type, key, void 0, void 0, owner, props);
1840
+ for (key = 2; key < arguments.length; key++)
1841
+ validateChildKeys(arguments[key], props.type);
1842
+ return props;
1843
+ };
1844
+ exports.createContext = function (defaultValue) {
1845
+ defaultValue = {
1846
+ $$typeof: REACT_CONTEXT_TYPE,
1847
+ _currentValue: defaultValue,
1848
+ _currentValue2: defaultValue,
1849
+ _threadCount: 0,
1850
+ Provider: null,
1851
+ Consumer: null
1852
+ };
1853
+ defaultValue.Provider = defaultValue;
1854
+ defaultValue.Consumer = {
1855
+ $$typeof: REACT_CONSUMER_TYPE,
1856
+ _context: defaultValue
1857
+ };
1858
+ defaultValue._currentRenderer = null;
1859
+ defaultValue._currentRenderer2 = null;
1860
+ return defaultValue;
1861
+ };
1862
+ exports.createElement = function (type, config, children) {
1863
+ if (isValidElementType(type))
1864
+ for (var i = 2; i < arguments.length; i++)
1865
+ validateChildKeys(arguments[i], type);
1866
+ else {
1867
+ i = "";
1868
+ if (
1869
+ void 0 === type ||
1870
+ ("object" === typeof type &&
1871
+ null !== type &&
1872
+ 0 === Object.keys(type).length)
1873
+ )
1874
+ i +=
1875
+ " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
1876
+ if (null === type) var typeString = "null";
1877
+ else
1878
+ isArrayImpl(type)
1879
+ ? (typeString = "array")
1880
+ : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
1881
+ ? ((typeString =
1882
+ "<" +
1883
+ (getComponentNameFromType(type.type) || "Unknown") +
1884
+ " />"),
1885
+ (i =
1886
+ " Did you accidentally export a JSX literal instead of a component?"))
1887
+ : (typeString = typeof type);
1888
+ console.error(
1889
+ "React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
1890
+ typeString,
1891
+ i
1892
+ );
1893
+ }
1894
+ var propName;
1895
+ i = {};
1896
+ typeString = null;
1897
+ if (null != config)
1898
+ for (propName in (didWarnAboutOldJSXRuntime ||
1899
+ !("__self" in config) ||
1900
+ "key" in config ||
1901
+ ((didWarnAboutOldJSXRuntime = true),
1902
+ console.warn(
1903
+ "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"
1904
+ )),
1905
+ hasValidKey(config) &&
1906
+ (checkKeyStringCoercion(config.key), (typeString = "" + config.key)),
1907
+ config))
1908
+ hasOwnProperty.call(config, propName) &&
1909
+ "key" !== propName &&
1910
+ "__self" !== propName &&
1911
+ "__source" !== propName &&
1912
+ (i[propName] = config[propName]);
1913
+ var childrenLength = arguments.length - 2;
1914
+ if (1 === childrenLength) i.children = children;
1915
+ else if (1 < childrenLength) {
1916
+ for (
1917
+ var childArray = Array(childrenLength), _i = 0;
1918
+ _i < childrenLength;
1919
+ _i++
1920
+ )
1921
+ childArray[_i] = arguments[_i + 2];
1922
+ Object.freeze && Object.freeze(childArray);
1923
+ i.children = childArray;
1924
+ }
1925
+ if (type && type.defaultProps)
1926
+ for (propName in ((childrenLength = type.defaultProps), childrenLength))
1927
+ void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1928
+ typeString &&
1929
+ defineKeyPropWarningGetter(
1930
+ i,
1931
+ "function" === typeof type
1932
+ ? type.displayName || type.name || "Unknown"
1933
+ : type
1934
+ );
1935
+ return ReactElement(type, typeString, void 0, void 0, getOwner(), i);
1936
+ };
1937
+ exports.createRef = function () {
1938
+ var refObject = { current: null };
1939
+ Object.seal(refObject);
1940
+ return refObject;
1941
+ };
1942
+ exports.forwardRef = function (render) {
1943
+ null != render && render.$$typeof === REACT_MEMO_TYPE
1944
+ ? console.error(
1945
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1946
+ )
1947
+ : "function" !== typeof render
1948
+ ? console.error(
1949
+ "forwardRef requires a render function but was given %s.",
1950
+ null === render ? "null" : typeof render
1951
+ )
1952
+ : 0 !== render.length &&
1953
+ 2 !== render.length &&
1954
+ console.error(
1955
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
1956
+ 1 === render.length
1957
+ ? "Did you forget to use the ref parameter?"
1958
+ : "Any additional parameter will be undefined."
1959
+ );
1960
+ null != render &&
1961
+ null != render.defaultProps &&
1962
+ console.error(
1963
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1964
+ );
1965
+ var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },
1966
+ ownName;
1967
+ Object.defineProperty(elementType, "displayName", {
1968
+ enumerable: false,
1969
+ configurable: true,
1970
+ get: function () {
1971
+ return ownName;
1972
+ },
1973
+ set: function (name) {
1974
+ ownName = name;
1975
+ render.name ||
1976
+ render.displayName ||
1977
+ (Object.defineProperty(render, "name", { value: name }),
1978
+ (render.displayName = name));
1979
+ }
1980
+ });
1981
+ return elementType;
1982
+ };
1983
+ exports.isValidElement = isValidElement;
1984
+ exports.lazy = function (ctor) {
1985
+ return {
1986
+ $$typeof: REACT_LAZY_TYPE,
1987
+ _payload: { _status: -1, _result: ctor },
1988
+ _init: lazyInitializer
1989
+ };
1990
+ };
1991
+ exports.memo = function (type, compare) {
1992
+ isValidElementType(type) ||
1993
+ console.error(
1994
+ "memo: The first argument must be a component. Instead received: %s",
1995
+ null === type ? "null" : typeof type
1996
+ );
1997
+ compare = {
1998
+ $$typeof: REACT_MEMO_TYPE,
1999
+ type: type,
2000
+ compare: void 0 === compare ? null : compare
2001
+ };
2002
+ var ownName;
2003
+ Object.defineProperty(compare, "displayName", {
2004
+ enumerable: false,
2005
+ configurable: true,
2006
+ get: function () {
2007
+ return ownName;
2008
+ },
2009
+ set: function (name) {
2010
+ ownName = name;
2011
+ type.name ||
2012
+ type.displayName ||
2013
+ (Object.defineProperty(type, "name", { value: name }),
2014
+ (type.displayName = name));
2015
+ }
2016
+ });
2017
+ return compare;
2018
+ };
2019
+ exports.startTransition = function (scope) {
2020
+ var prevTransition = ReactSharedInternals.T,
2021
+ currentTransition = {};
2022
+ ReactSharedInternals.T = currentTransition;
2023
+ currentTransition._updatedFibers = new Set();
2024
+ try {
2025
+ var returnValue = scope(),
2026
+ onStartTransitionFinish = ReactSharedInternals.S;
2027
+ null !== onStartTransitionFinish &&
2028
+ onStartTransitionFinish(currentTransition, returnValue);
2029
+ "object" === typeof returnValue &&
2030
+ null !== returnValue &&
2031
+ "function" === typeof returnValue.then &&
2032
+ returnValue.then(noop, reportGlobalError);
2033
+ } catch (error) {
2034
+ reportGlobalError(error);
2035
+ } finally {
2036
+ null === prevTransition &&
2037
+ currentTransition._updatedFibers &&
2038
+ ((scope = currentTransition._updatedFibers.size),
2039
+ currentTransition._updatedFibers.clear(),
2040
+ 10 < scope &&
2041
+ console.warn(
2042
+ "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."
2043
+ )),
2044
+ (ReactSharedInternals.T = prevTransition);
2045
+ }
2046
+ };
2047
+ exports.unstable_useCacheRefresh = function () {
2048
+ return resolveDispatcher().useCacheRefresh();
2049
+ };
2050
+ exports.use = function (usable) {
2051
+ return resolveDispatcher().use(usable);
2052
+ };
2053
+ exports.useActionState = function (action, initialState, permalink) {
2054
+ return resolveDispatcher().useActionState(
2055
+ action,
2056
+ initialState,
2057
+ permalink
2058
+ );
2059
+ };
2060
+ exports.useCallback = function (callback, deps) {
2061
+ return resolveDispatcher().useCallback(callback, deps);
2062
+ };
2063
+ exports.useContext = function (Context) {
2064
+ var dispatcher = resolveDispatcher();
2065
+ Context.$$typeof === REACT_CONSUMER_TYPE &&
2066
+ console.error(
2067
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
2068
+ );
2069
+ return dispatcher.useContext(Context);
2070
+ };
2071
+ exports.useDebugValue = function (value, formatterFn) {
2072
+ return resolveDispatcher().useDebugValue(value, formatterFn);
2073
+ };
2074
+ exports.useDeferredValue = function (value, initialValue) {
2075
+ return resolveDispatcher().useDeferredValue(value, initialValue);
2076
+ };
2077
+ exports.useEffect = function (create, deps) {
2078
+ return resolveDispatcher().useEffect(create, deps);
2079
+ };
2080
+ exports.useId = function () {
2081
+ return resolveDispatcher().useId();
2082
+ };
2083
+ exports.useImperativeHandle = function (ref, create, deps) {
2084
+ return resolveDispatcher().useImperativeHandle(ref, create, deps);
2085
+ };
2086
+ exports.useInsertionEffect = function (create, deps) {
2087
+ return resolveDispatcher().useInsertionEffect(create, deps);
2088
+ };
2089
+ exports.useLayoutEffect = function (create, deps) {
2090
+ return resolveDispatcher().useLayoutEffect(create, deps);
2091
+ };
2092
+ exports.useMemo = function (create, deps) {
2093
+ return resolveDispatcher().useMemo(create, deps);
2094
+ };
2095
+ exports.useOptimistic = function (passthrough, reducer) {
2096
+ return resolveDispatcher().useOptimistic(passthrough, reducer);
2097
+ };
2098
+ exports.useReducer = function (reducer, initialArg, init) {
2099
+ return resolveDispatcher().useReducer(reducer, initialArg, init);
2100
+ };
2101
+ exports.useRef = function (initialValue) {
2102
+ return resolveDispatcher().useRef(initialValue);
2103
+ };
2104
+ exports.useState = function (initialState) {
2105
+ return resolveDispatcher().useState(initialState);
2106
+ };
2107
+ exports.useSyncExternalStore = function (
2108
+ subscribe,
2109
+ getSnapshot,
2110
+ getServerSnapshot
2111
+ ) {
2112
+ return resolveDispatcher().useSyncExternalStore(
2113
+ subscribe,
2114
+ getSnapshot,
2115
+ getServerSnapshot
2116
+ );
2117
+ };
2118
+ exports.useTransition = function () {
2119
+ return resolveDispatcher().useTransition();
2120
+ };
2121
+ exports.version = "19.0.0";
2122
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2123
+ "function" ===
2124
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
2125
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
2126
+ })();
2127
+ } (react_development, react_development.exports));
2128
+ return react_development.exports;
2129
+ }
2130
+
2131
+ var hasRequiredReact;
2132
+
2133
+ function requireReact () {
2134
+ if (hasRequiredReact) return react.exports;
2135
+ hasRequiredReact = 1;
2136
+
2137
+ if (process.env.NODE_ENV === 'production') {
2138
+ react.exports = requireReact_production();
2139
+ } else {
2140
+ react.exports = requireReact_development();
2141
+ }
2142
+ return react.exports;
2143
+ }
2144
+
2145
+ /**
2146
+ * @license React
2147
+ * react-jsx-runtime.development.js
2148
+ *
2149
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2150
+ *
2151
+ * This source code is licensed under the MIT license found in the
2152
+ * LICENSE file in the root directory of this source tree.
2153
+ */
2154
+
2155
+ var hasRequiredReactJsxRuntime_development;
2156
+
2157
+ function requireReactJsxRuntime_development () {
2158
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
2159
+ hasRequiredReactJsxRuntime_development = 1;
2160
+ "production" !== process.env.NODE_ENV &&
2161
+ (function () {
2162
+ function getComponentNameFromType(type) {
2163
+ if (null == type) return null;
2164
+ if ("function" === typeof type)
2165
+ return type.$$typeof === REACT_CLIENT_REFERENCE$2
2166
+ ? null
2167
+ : type.displayName || type.name || null;
2168
+ if ("string" === typeof type) return type;
2169
+ switch (type) {
2170
+ case REACT_FRAGMENT_TYPE:
2171
+ return "Fragment";
2172
+ case REACT_PORTAL_TYPE:
2173
+ return "Portal";
2174
+ case REACT_PROFILER_TYPE:
2175
+ return "Profiler";
2176
+ case REACT_STRICT_MODE_TYPE:
2177
+ return "StrictMode";
2178
+ case REACT_SUSPENSE_TYPE:
2179
+ return "Suspense";
2180
+ case REACT_SUSPENSE_LIST_TYPE:
2181
+ return "SuspenseList";
2182
+ }
2183
+ if ("object" === typeof type)
2184
+ switch (
2185
+ ("number" === typeof type.tag &&
2186
+ console.error(
2187
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
2188
+ ),
2189
+ type.$$typeof)
2190
+ ) {
2191
+ case REACT_CONTEXT_TYPE:
2192
+ return (type.displayName || "Context") + ".Provider";
2193
+ case REACT_CONSUMER_TYPE:
2194
+ return (type._context.displayName || "Context") + ".Consumer";
2195
+ case REACT_FORWARD_REF_TYPE:
2196
+ var innerType = type.render;
2197
+ type = type.displayName;
2198
+ type ||
2199
+ ((type = innerType.displayName || innerType.name || ""),
2200
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
2201
+ return type;
2202
+ case REACT_MEMO_TYPE:
2203
+ return (
2204
+ (innerType = type.displayName || null),
2205
+ null !== innerType
2206
+ ? innerType
2207
+ : getComponentNameFromType(type.type) || "Memo"
2208
+ );
2209
+ case REACT_LAZY_TYPE:
2210
+ innerType = type._payload;
2211
+ type = type._init;
2212
+ try {
2213
+ return getComponentNameFromType(type(innerType));
2214
+ } catch (x) {}
2215
+ }
2216
+ return null;
2217
+ }
2218
+ function testStringCoercion(value) {
2219
+ return "" + value;
2220
+ }
2221
+ function checkKeyStringCoercion(value) {
2222
+ try {
2223
+ testStringCoercion(value);
2224
+ var JSCompiler_inline_result = !1;
2225
+ } catch (e) {
2226
+ JSCompiler_inline_result = true;
2227
+ }
2228
+ if (JSCompiler_inline_result) {
2229
+ JSCompiler_inline_result = console;
2230
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
2231
+ var JSCompiler_inline_result$jscomp$0 =
2232
+ ("function" === typeof Symbol &&
2233
+ Symbol.toStringTag &&
2234
+ value[Symbol.toStringTag]) ||
2235
+ value.constructor.name ||
2236
+ "Object";
2237
+ JSCompiler_temp_const.call(
2238
+ JSCompiler_inline_result,
2239
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
2240
+ JSCompiler_inline_result$jscomp$0
2241
+ );
2242
+ return testStringCoercion(value);
2243
+ }
2244
+ }
2245
+ function disabledLog() {}
2246
+ function disableLogs() {
2247
+ if (0 === disabledDepth) {
2248
+ prevLog = console.log;
2249
+ prevInfo = console.info;
2250
+ prevWarn = console.warn;
2251
+ prevError = console.error;
2252
+ prevGroup = console.group;
2253
+ prevGroupCollapsed = console.groupCollapsed;
2254
+ prevGroupEnd = console.groupEnd;
2255
+ var props = {
2256
+ configurable: true,
2257
+ enumerable: true,
2258
+ value: disabledLog,
2259
+ writable: true
2260
+ };
2261
+ Object.defineProperties(console, {
2262
+ info: props,
2263
+ log: props,
2264
+ warn: props,
2265
+ error: props,
2266
+ group: props,
2267
+ groupCollapsed: props,
2268
+ groupEnd: props
2269
+ });
2270
+ }
2271
+ disabledDepth++;
2272
+ }
2273
+ function reenableLogs() {
2274
+ disabledDepth--;
2275
+ if (0 === disabledDepth) {
2276
+ var props = { configurable: true, enumerable: true, writable: true };
2277
+ Object.defineProperties(console, {
2278
+ log: assign({}, props, { value: prevLog }),
2279
+ info: assign({}, props, { value: prevInfo }),
2280
+ warn: assign({}, props, { value: prevWarn }),
2281
+ error: assign({}, props, { value: prevError }),
2282
+ group: assign({}, props, { value: prevGroup }),
2283
+ groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
2284
+ groupEnd: assign({}, props, { value: prevGroupEnd })
2285
+ });
2286
+ }
2287
+ 0 > disabledDepth &&
2288
+ console.error(
2289
+ "disabledDepth fell below zero. This is a bug in React. Please file an issue."
2290
+ );
2291
+ }
2292
+ function describeBuiltInComponentFrame(name) {
2293
+ if (void 0 === prefix)
2294
+ try {
2295
+ throw Error();
2296
+ } catch (x) {
2297
+ var match = x.stack.trim().match(/\n( *(at )?)/);
2298
+ prefix = (match && match[1]) || "";
2299
+ suffix =
2300
+ -1 < x.stack.indexOf("\n at")
2301
+ ? " (<anonymous>)"
2302
+ : -1 < x.stack.indexOf("@")
2303
+ ? "@unknown:0:0"
2304
+ : "";
2305
+ }
2306
+ return "\n" + prefix + name + suffix;
2307
+ }
2308
+ function describeNativeComponentFrame(fn, construct) {
2309
+ if (!fn || reentry) return "";
2310
+ var frame = componentFrameCache.get(fn);
2311
+ if (void 0 !== frame) return frame;
2312
+ reentry = true;
2313
+ frame = Error.prepareStackTrace;
2314
+ Error.prepareStackTrace = void 0;
2315
+ var previousDispatcher = null;
2316
+ previousDispatcher = ReactSharedInternals.H;
2317
+ ReactSharedInternals.H = null;
2318
+ disableLogs();
2319
+ try {
2320
+ var RunInRootFrame = {
2321
+ DetermineComponentFrameRoot: function () {
2322
+ try {
2323
+ if (construct) {
2324
+ var Fake = function () {
2325
+ throw Error();
2326
+ };
2327
+ Object.defineProperty(Fake.prototype, "props", {
2328
+ set: function () {
2329
+ throw Error();
2330
+ }
2331
+ });
2332
+ if ("object" === typeof Reflect && Reflect.construct) {
2333
+ try {
2334
+ Reflect.construct(Fake, []);
2335
+ } catch (x) {
2336
+ var control = x;
2337
+ }
2338
+ Reflect.construct(fn, [], Fake);
2339
+ } else {
2340
+ try {
2341
+ Fake.call();
2342
+ } catch (x$0) {
2343
+ control = x$0;
2344
+ }
2345
+ fn.call(Fake.prototype);
2346
+ }
2347
+ } else {
2348
+ try {
2349
+ throw Error();
2350
+ } catch (x$1) {
2351
+ control = x$1;
2352
+ }
2353
+ (Fake = fn()) &&
2354
+ "function" === typeof Fake.catch &&
2355
+ Fake.catch(function () {});
2356
+ }
2357
+ } catch (sample) {
2358
+ if (sample && control && "string" === typeof sample.stack)
2359
+ return [sample.stack, control.stack];
2360
+ }
2361
+ return [null, null];
2362
+ }
2363
+ };
2364
+ RunInRootFrame.DetermineComponentFrameRoot.displayName =
2365
+ "DetermineComponentFrameRoot";
2366
+ var namePropDescriptor = Object.getOwnPropertyDescriptor(
2367
+ RunInRootFrame.DetermineComponentFrameRoot,
2368
+ "name"
2369
+ );
2370
+ namePropDescriptor &&
2371
+ namePropDescriptor.configurable &&
2372
+ Object.defineProperty(
2373
+ RunInRootFrame.DetermineComponentFrameRoot,
2374
+ "name",
2375
+ { value: "DetermineComponentFrameRoot" }
2376
+ );
2377
+ var _RunInRootFrame$Deter =
2378
+ RunInRootFrame.DetermineComponentFrameRoot(),
2379
+ sampleStack = _RunInRootFrame$Deter[0],
2380
+ controlStack = _RunInRootFrame$Deter[1];
2381
+ if (sampleStack && controlStack) {
2382
+ var sampleLines = sampleStack.split("\n"),
2383
+ controlLines = controlStack.split("\n");
2384
+ for (
2385
+ _RunInRootFrame$Deter = namePropDescriptor = 0;
2386
+ namePropDescriptor < sampleLines.length &&
2387
+ !sampleLines[namePropDescriptor].includes(
2388
+ "DetermineComponentFrameRoot"
2389
+ );
2390
+
2391
+ )
2392
+ namePropDescriptor++;
2393
+ for (
2394
+ ;
2395
+ _RunInRootFrame$Deter < controlLines.length &&
2396
+ !controlLines[_RunInRootFrame$Deter].includes(
2397
+ "DetermineComponentFrameRoot"
2398
+ );
2399
+
2400
+ )
2401
+ _RunInRootFrame$Deter++;
2402
+ if (
2403
+ namePropDescriptor === sampleLines.length ||
2404
+ _RunInRootFrame$Deter === controlLines.length
2405
+ )
2406
+ for (
2407
+ namePropDescriptor = sampleLines.length - 1,
2408
+ _RunInRootFrame$Deter = controlLines.length - 1;
2409
+ 1 <= namePropDescriptor &&
2410
+ 0 <= _RunInRootFrame$Deter &&
2411
+ sampleLines[namePropDescriptor] !==
2412
+ controlLines[_RunInRootFrame$Deter];
2413
+
2414
+ )
2415
+ _RunInRootFrame$Deter--;
2416
+ for (
2417
+ ;
2418
+ 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
2419
+ namePropDescriptor--, _RunInRootFrame$Deter--
2420
+ )
2421
+ if (
2422
+ sampleLines[namePropDescriptor] !==
2423
+ controlLines[_RunInRootFrame$Deter]
2424
+ ) {
2425
+ if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
2426
+ do
2427
+ if (
2428
+ (namePropDescriptor--,
2429
+ _RunInRootFrame$Deter--,
2430
+ 0 > _RunInRootFrame$Deter ||
2431
+ sampleLines[namePropDescriptor] !==
2432
+ controlLines[_RunInRootFrame$Deter])
2433
+ ) {
2434
+ var _frame =
2435
+ "\n" +
2436
+ sampleLines[namePropDescriptor].replace(
2437
+ " at new ",
2438
+ " at "
2439
+ );
2440
+ fn.displayName &&
2441
+ _frame.includes("<anonymous>") &&
2442
+ (_frame = _frame.replace("<anonymous>", fn.displayName));
2443
+ "function" === typeof fn &&
2444
+ componentFrameCache.set(fn, _frame);
2445
+ return _frame;
2446
+ }
2447
+ while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
2448
+ }
2449
+ break;
2450
+ }
2451
+ }
2452
+ } finally {
2453
+ (reentry = false),
2454
+ (ReactSharedInternals.H = previousDispatcher),
2455
+ reenableLogs(),
2456
+ (Error.prepareStackTrace = frame);
2457
+ }
2458
+ sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "")
2459
+ ? describeBuiltInComponentFrame(sampleLines)
2460
+ : "";
2461
+ "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
2462
+ return sampleLines;
2463
+ }
2464
+ function describeUnknownElementTypeFrameInDEV(type) {
2465
+ if (null == type) return "";
2466
+ if ("function" === typeof type) {
2467
+ var prototype = type.prototype;
2468
+ return describeNativeComponentFrame(
2469
+ type,
2470
+ !(!prototype || !prototype.isReactComponent)
2471
+ );
2472
+ }
2473
+ if ("string" === typeof type) return describeBuiltInComponentFrame(type);
2474
+ switch (type) {
2475
+ case REACT_SUSPENSE_TYPE:
2476
+ return describeBuiltInComponentFrame("Suspense");
2477
+ case REACT_SUSPENSE_LIST_TYPE:
2478
+ return describeBuiltInComponentFrame("SuspenseList");
2479
+ }
2480
+ if ("object" === typeof type)
2481
+ switch (type.$$typeof) {
2482
+ case REACT_FORWARD_REF_TYPE:
2483
+ return (type = describeNativeComponentFrame(type.render, false)), type;
2484
+ case REACT_MEMO_TYPE:
2485
+ return describeUnknownElementTypeFrameInDEV(type.type);
2486
+ case REACT_LAZY_TYPE:
2487
+ prototype = type._payload;
2488
+ type = type._init;
2489
+ try {
2490
+ return describeUnknownElementTypeFrameInDEV(type(prototype));
2491
+ } catch (x) {}
2492
+ }
2493
+ return "";
2494
+ }
2495
+ function getOwner() {
2496
+ var dispatcher = ReactSharedInternals.A;
2497
+ return null === dispatcher ? null : dispatcher.getOwner();
2498
+ }
2499
+ function hasValidKey(config) {
2500
+ if (hasOwnProperty.call(config, "key")) {
2501
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
2502
+ if (getter && getter.isReactWarning) return false;
2503
+ }
2504
+ return void 0 !== config.key;
2505
+ }
2506
+ function defineKeyPropWarningGetter(props, displayName) {
2507
+ function warnAboutAccessingKey() {
2508
+ specialPropKeyWarningShown ||
2509
+ ((specialPropKeyWarningShown = true),
2510
+ console.error(
2511
+ "%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)",
2512
+ displayName
2513
+ ));
2514
+ }
2515
+ warnAboutAccessingKey.isReactWarning = true;
2516
+ Object.defineProperty(props, "key", {
2517
+ get: warnAboutAccessingKey,
2518
+ configurable: true
2519
+ });
2520
+ }
2521
+ function elementRefGetterWithDeprecationWarning() {
2522
+ var componentName = getComponentNameFromType(this.type);
2523
+ didWarnAboutElementRef[componentName] ||
2524
+ ((didWarnAboutElementRef[componentName] = true),
2525
+ console.error(
2526
+ "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."
2527
+ ));
2528
+ componentName = this.props.ref;
2529
+ return void 0 !== componentName ? componentName : null;
2530
+ }
2531
+ function ReactElement(type, key, self, source, owner, props) {
2532
+ self = props.ref;
2533
+ type = {
2534
+ $$typeof: REACT_ELEMENT_TYPE,
2535
+ type: type,
2536
+ key: key,
2537
+ props: props,
2538
+ _owner: owner
2539
+ };
2540
+ null !== (void 0 !== self ? self : null)
2541
+ ? Object.defineProperty(type, "ref", {
2542
+ enumerable: false,
2543
+ get: elementRefGetterWithDeprecationWarning
2544
+ })
2545
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
2546
+ type._store = {};
2547
+ Object.defineProperty(type._store, "validated", {
2548
+ configurable: false,
2549
+ enumerable: false,
2550
+ writable: true,
2551
+ value: 0
2552
+ });
2553
+ Object.defineProperty(type, "_debugInfo", {
2554
+ configurable: false,
2555
+ enumerable: false,
2556
+ writable: true,
2557
+ value: null
2558
+ });
2559
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
2560
+ return type;
2561
+ }
2562
+ function jsxDEVImpl(
2563
+ type,
2564
+ config,
2565
+ maybeKey,
2566
+ isStaticChildren,
2567
+ source,
2568
+ self
2569
+ ) {
2570
+ if (
2571
+ "string" === typeof type ||
2572
+ "function" === typeof type ||
2573
+ type === REACT_FRAGMENT_TYPE ||
2574
+ type === REACT_PROFILER_TYPE ||
2575
+ type === REACT_STRICT_MODE_TYPE ||
2576
+ type === REACT_SUSPENSE_TYPE ||
2577
+ type === REACT_SUSPENSE_LIST_TYPE ||
2578
+ type === REACT_OFFSCREEN_TYPE ||
2579
+ ("object" === typeof type &&
2580
+ null !== type &&
2581
+ (type.$$typeof === REACT_LAZY_TYPE ||
2582
+ type.$$typeof === REACT_MEMO_TYPE ||
2583
+ type.$$typeof === REACT_CONTEXT_TYPE ||
2584
+ type.$$typeof === REACT_CONSUMER_TYPE ||
2585
+ type.$$typeof === REACT_FORWARD_REF_TYPE ||
2586
+ type.$$typeof === REACT_CLIENT_REFERENCE$1 ||
2587
+ void 0 !== type.getModuleId))
2588
+ ) {
2589
+ var children = config.children;
2590
+ if (void 0 !== children)
2591
+ if (isStaticChildren)
2592
+ if (isArrayImpl(children)) {
2593
+ for (
2594
+ isStaticChildren = 0;
2595
+ isStaticChildren < children.length;
2596
+ isStaticChildren++
2597
+ )
2598
+ validateChildKeys(children[isStaticChildren], type);
2599
+ Object.freeze && Object.freeze(children);
2600
+ } else
2601
+ console.error(
2602
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
2603
+ );
2604
+ else validateChildKeys(children, type);
2605
+ } else {
2606
+ children = "";
2607
+ if (
2608
+ void 0 === type ||
2609
+ ("object" === typeof type &&
2610
+ null !== type &&
2611
+ 0 === Object.keys(type).length)
2612
+ )
2613
+ children +=
2614
+ " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
2615
+ null === type
2616
+ ? (isStaticChildren = "null")
2617
+ : isArrayImpl(type)
2618
+ ? (isStaticChildren = "array")
2619
+ : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
2620
+ ? ((isStaticChildren =
2621
+ "<" +
2622
+ (getComponentNameFromType(type.type) || "Unknown") +
2623
+ " />"),
2624
+ (children =
2625
+ " Did you accidentally export a JSX literal instead of a component?"))
2626
+ : (isStaticChildren = typeof type);
2627
+ console.error(
2628
+ "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
2629
+ isStaticChildren,
2630
+ children
2631
+ );
2632
+ }
2633
+ if (hasOwnProperty.call(config, "key")) {
2634
+ children = getComponentNameFromType(type);
2635
+ var keys = Object.keys(config).filter(function (k) {
2636
+ return "key" !== k;
2637
+ });
2638
+ isStaticChildren =
2639
+ 0 < keys.length
2640
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
2641
+ : "{key: someKey}";
2642
+ didWarnAboutKeySpread[children + isStaticChildren] ||
2643
+ ((keys =
2644
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
2645
+ console.error(
2646
+ '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} />',
2647
+ isStaticChildren,
2648
+ children,
2649
+ keys,
2650
+ children
2651
+ ),
2652
+ (didWarnAboutKeySpread[children + isStaticChildren] = true));
2653
+ }
2654
+ children = null;
2655
+ void 0 !== maybeKey &&
2656
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
2657
+ hasValidKey(config) &&
2658
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
2659
+ if ("key" in config) {
2660
+ maybeKey = {};
2661
+ for (var propName in config)
2662
+ "key" !== propName && (maybeKey[propName] = config[propName]);
2663
+ } else maybeKey = config;
2664
+ children &&
2665
+ defineKeyPropWarningGetter(
2666
+ maybeKey,
2667
+ "function" === typeof type
2668
+ ? type.displayName || type.name || "Unknown"
2669
+ : type
2670
+ );
2671
+ return ReactElement(type, children, self, source, getOwner(), maybeKey);
2672
+ }
2673
+ function validateChildKeys(node, parentType) {
2674
+ if (
2675
+ "object" === typeof node &&
2676
+ node &&
2677
+ node.$$typeof !== REACT_CLIENT_REFERENCE
2678
+ )
2679
+ if (isArrayImpl(node))
2680
+ for (var i = 0; i < node.length; i++) {
2681
+ var child = node[i];
2682
+ isValidElement(child) && validateExplicitKey(child, parentType);
2683
+ }
2684
+ else if (isValidElement(node))
2685
+ node._store && (node._store.validated = 1);
2686
+ else if (
2687
+ (null === node || "object" !== typeof node
2688
+ ? (i = null)
2689
+ : ((i =
2690
+ (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
2691
+ node["@@iterator"]),
2692
+ (i = "function" === typeof i ? i : null)),
2693
+ "function" === typeof i &&
2694
+ i !== node.entries &&
2695
+ ((i = i.call(node)), i !== node))
2696
+ )
2697
+ for (; !(node = i.next()).done; )
2698
+ isValidElement(node.value) &&
2699
+ validateExplicitKey(node.value, parentType);
2700
+ }
2701
+ function isValidElement(object) {
2702
+ return (
2703
+ "object" === typeof object &&
2704
+ null !== object &&
2705
+ object.$$typeof === REACT_ELEMENT_TYPE
2706
+ );
2707
+ }
2708
+ function validateExplicitKey(element, parentType) {
2709
+ if (
2710
+ element._store &&
2711
+ !element._store.validated &&
2712
+ null == element.key &&
2713
+ ((element._store.validated = 1),
2714
+ (parentType = getCurrentComponentErrorInfo(parentType)),
2715
+ !ownerHasKeyUseWarning[parentType])
2716
+ ) {
2717
+ ownerHasKeyUseWarning[parentType] = true;
2718
+ var childOwner = "";
2719
+ element &&
2720
+ null != element._owner &&
2721
+ element._owner !== getOwner() &&
2722
+ ((childOwner = null),
2723
+ "number" === typeof element._owner.tag
2724
+ ? (childOwner = getComponentNameFromType(element._owner.type))
2725
+ : "string" === typeof element._owner.name &&
2726
+ (childOwner = element._owner.name),
2727
+ (childOwner = " It was passed a child from " + childOwner + "."));
2728
+ var prevGetCurrentStack = ReactSharedInternals.getCurrentStack;
2729
+ ReactSharedInternals.getCurrentStack = function () {
2730
+ var stack = describeUnknownElementTypeFrameInDEV(element.type);
2731
+ prevGetCurrentStack && (stack += prevGetCurrentStack() || "");
2732
+ return stack;
2733
+ };
2734
+ console.error(
2735
+ 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
2736
+ parentType,
2737
+ childOwner
2738
+ );
2739
+ ReactSharedInternals.getCurrentStack = prevGetCurrentStack;
2740
+ }
2741
+ }
2742
+ function getCurrentComponentErrorInfo(parentType) {
2743
+ var info = "",
2744
+ owner = getOwner();
2745
+ owner &&
2746
+ (owner = getComponentNameFromType(owner.type)) &&
2747
+ (info = "\n\nCheck the render method of `" + owner + "`.");
2748
+ info ||
2749
+ ((parentType = getComponentNameFromType(parentType)) &&
2750
+ (info =
2751
+ "\n\nCheck the top-level render call using <" + parentType + ">."));
2752
+ return info;
2753
+ }
2754
+ var React = requireReact(),
2755
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
2756
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
2757
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
2758
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
2759
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler");
2760
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
2761
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
2762
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
2763
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
2764
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
2765
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
2766
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
2767
+ REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
2768
+ MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
2769
+ REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"),
2770
+ ReactSharedInternals =
2771
+ React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
2772
+ hasOwnProperty = Object.prototype.hasOwnProperty,
2773
+ assign = Object.assign,
2774
+ REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"),
2775
+ isArrayImpl = Array.isArray,
2776
+ disabledDepth = 0,
2777
+ prevLog,
2778
+ prevInfo,
2779
+ prevWarn,
2780
+ prevError,
2781
+ prevGroup,
2782
+ prevGroupCollapsed,
2783
+ prevGroupEnd;
2784
+ disabledLog.__reactDisabledLog = true;
2785
+ var prefix,
2786
+ suffix,
2787
+ reentry = false;
2788
+ var componentFrameCache = new (
2789
+ "function" === typeof WeakMap ? WeakMap : Map
2790
+ )();
2791
+ var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
2792
+ specialPropKeyWarningShown;
2793
+ var didWarnAboutElementRef = {};
2794
+ var didWarnAboutKeySpread = {},
2795
+ ownerHasKeyUseWarning = {};
2796
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
2797
+ reactJsxRuntime_development.jsx = function (type, config, maybeKey, source, self) {
2798
+ return jsxDEVImpl(type, config, maybeKey, false, source, self);
2799
+ };
2800
+ reactJsxRuntime_development.jsxs = function (type, config, maybeKey, source, self) {
2801
+ return jsxDEVImpl(type, config, maybeKey, true, source, self);
2802
+ };
2803
+ })();
2804
+ return reactJsxRuntime_development;
2805
+ }
2806
+
2807
+ if (process.env.NODE_ENV === 'production') {
2808
+ jsxRuntime.exports = requireReactJsxRuntime_production();
2809
+ } else {
2810
+ jsxRuntime.exports = requireReactJsxRuntime_development();
2811
+ }
2812
+
2813
+ var jsxRuntimeExports = jsxRuntime.exports;
2814
+
2815
+ /**
2816
+ * Render a tip tap JSON node and all its children
2817
+ * @param {TipTapNode} node JSON node to render
2818
+ * @param {NodeHandlers} handlers a handler for each node type
2819
+ * @returns tree of components as react elements
2820
+ */
2821
+ function TipTapRender(props) {
2822
+ var node = props.node, mapping = props.handlers;
2823
+ // recursively render child content
2824
+ var children = [];
2825
+ node.content && node.content.forEach(function (child, ix) {
2826
+ children.push(jsxRuntimeExports.jsx(TipTapRender, { node: child, handlers: mapping }, "".concat(child.type, "-").concat(ix)));
2827
+ });
2828
+ // return empty if we are missing a handler for this type
2829
+ if (!(node.type in props.handlers)) {
2830
+ console.warn("missing type", node);
2831
+ return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
2832
+ }
2833
+ // render the handler for this type
2834
+ var Handler = mapping[node.type];
2835
+ return jsxRuntimeExports.jsx(Handler, { node: node, children: children });
2836
+ }
2837
+
2838
+ exports.TipTapRender = TipTapRender;
2839
+ //# sourceMappingURL=index.js.map