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