@trycourier/courier-react 8.0.8-beta → 8.0.11-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +290 -855
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -3
- package/dist/renderer/legacy.d.ts +0 -4
- package/dist/renderer/modern.d.ts +0 -4
- package/dist/renderer/renderer.d.ts +0 -5
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { useRef, useEffect } from "react";
|
|
2
|
-
import require$$1 from "object-assign";
|
|
1
|
+
import React, { version, useRef, useEffect } from "react";
|
|
3
2
|
import ReactDOM, { flushSync } from "react-dom";
|
|
3
|
+
import { createRoot } from "react-dom/client";
|
|
4
4
|
var __defProp$1 = Object.defineProperty;
|
|
5
5
|
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
6
|
var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -5559,45 +5559,50 @@ const useCourier = () => {
|
|
|
5559
5559
|
};
|
|
5560
5560
|
};
|
|
5561
5561
|
var jsxRuntime = { exports: {} };
|
|
5562
|
-
var
|
|
5563
|
-
/**
|
|
5564
|
-
*
|
|
5562
|
+
var reactJsxRuntime_production = {};
|
|
5563
|
+
/**
|
|
5564
|
+
* @license React
|
|
5565
|
+
* react-jsx-runtime.production.js
|
|
5565
5566
|
*
|
|
5566
|
-
* Copyright (c)
|
|
5567
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
5567
5568
|
*
|
|
5568
5569
|
* This source code is licensed under the MIT license found in the
|
|
5569
5570
|
* LICENSE file in the root directory of this source tree.
|
|
5570
5571
|
*/
|
|
5571
|
-
var
|
|
5572
|
-
function
|
|
5573
|
-
if (
|
|
5574
|
-
|
|
5575
|
-
var
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5572
|
+
var hasRequiredReactJsxRuntime_production;
|
|
5573
|
+
function requireReactJsxRuntime_production() {
|
|
5574
|
+
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
5575
|
+
hasRequiredReactJsxRuntime_production = 1;
|
|
5576
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
5577
|
+
function jsxProd(type, config, maybeKey) {
|
|
5578
|
+
var key = null;
|
|
5579
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
5580
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
5581
|
+
if ("key" in config) {
|
|
5582
|
+
maybeKey = {};
|
|
5583
|
+
for (var propName in config)
|
|
5584
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
5585
|
+
} else maybeKey = config;
|
|
5586
|
+
config = maybeKey.ref;
|
|
5587
|
+
return {
|
|
5588
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
5589
|
+
type,
|
|
5590
|
+
key,
|
|
5591
|
+
ref: void 0 !== config ? config : null,
|
|
5592
|
+
props: maybeKey
|
|
5593
|
+
};
|
|
5594
|
+
}
|
|
5595
|
+
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
5596
|
+
reactJsxRuntime_production.jsx = jsxProd;
|
|
5597
|
+
reactJsxRuntime_production.jsxs = jsxProd;
|
|
5598
|
+
return reactJsxRuntime_production;
|
|
5595
5599
|
}
|
|
5596
5600
|
var reactJsxRuntime_development = {};
|
|
5597
|
-
/**
|
|
5601
|
+
/**
|
|
5602
|
+
* @license React
|
|
5598
5603
|
* react-jsx-runtime.development.js
|
|
5599
5604
|
*
|
|
5600
|
-
* Copyright (c)
|
|
5605
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
5601
5606
|
*
|
|
5602
5607
|
* This source code is licensed under the MIT license found in the
|
|
5603
5608
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -5606,830 +5611,260 @@ var hasRequiredReactJsxRuntime_development;
|
|
|
5606
5611
|
function requireReactJsxRuntime_development() {
|
|
5607
5612
|
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
5608
5613
|
hasRequiredReactJsxRuntime_development = 1;
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
(
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
REACT_MEMO_TYPE = symbolFor("react.memo");
|
|
5644
|
-
REACT_LAZY_TYPE = symbolFor("react.lazy");
|
|
5645
|
-
REACT_BLOCK_TYPE = symbolFor("react.block");
|
|
5646
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block");
|
|
5647
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental");
|
|
5648
|
-
symbolFor("react.scope");
|
|
5649
|
-
symbolFor("react.opaque.id");
|
|
5650
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode");
|
|
5651
|
-
symbolFor("react.offscreen");
|
|
5652
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
|
|
5653
|
-
}
|
|
5654
|
-
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
5655
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
5656
|
-
function getIteratorFn(maybeIterable) {
|
|
5657
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
5658
|
-
return null;
|
|
5659
|
-
}
|
|
5660
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
5661
|
-
if (typeof maybeIterator === "function") {
|
|
5662
|
-
return maybeIterator;
|
|
5663
|
-
}
|
|
5664
|
-
return null;
|
|
5665
|
-
}
|
|
5666
|
-
var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
5667
|
-
function error(format) {
|
|
5668
|
-
{
|
|
5669
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
5670
|
-
args[_key2 - 1] = arguments[_key2];
|
|
5671
|
-
}
|
|
5672
|
-
printWarning("error", format, args);
|
|
5673
|
-
}
|
|
5674
|
-
}
|
|
5675
|
-
function printWarning(level, format, args) {
|
|
5676
|
-
{
|
|
5677
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
5678
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
5679
|
-
if (stack !== "") {
|
|
5680
|
-
format += "%s";
|
|
5681
|
-
args = args.concat([stack]);
|
|
5682
|
-
}
|
|
5683
|
-
var argsWithFormat = args.map(function(item) {
|
|
5684
|
-
return "" + item;
|
|
5685
|
-
});
|
|
5686
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
5687
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
5688
|
-
}
|
|
5689
|
-
}
|
|
5690
|
-
var enableScopeAPI = false;
|
|
5691
|
-
function isValidElementType(type) {
|
|
5692
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
5693
|
-
return true;
|
|
5694
|
-
}
|
|
5695
|
-
if (type === exports.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
|
|
5696
|
-
return true;
|
|
5697
|
-
}
|
|
5698
|
-
if (typeof type === "object" && type !== null) {
|
|
5699
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
|
|
5700
|
-
return true;
|
|
5701
|
-
}
|
|
5702
|
-
}
|
|
5703
|
-
return false;
|
|
5704
|
-
}
|
|
5705
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
5706
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
5707
|
-
return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
|
|
5708
|
-
}
|
|
5709
|
-
function getContextName(type) {
|
|
5710
|
-
return type.displayName || "Context";
|
|
5711
|
-
}
|
|
5712
|
-
function getComponentName(type) {
|
|
5713
|
-
if (type == null) {
|
|
5714
|
-
return null;
|
|
5715
|
-
}
|
|
5716
|
-
{
|
|
5717
|
-
if (typeof type.tag === "number") {
|
|
5718
|
-
error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.");
|
|
5719
|
-
}
|
|
5720
|
-
}
|
|
5721
|
-
if (typeof type === "function") {
|
|
5722
|
-
return type.displayName || type.name || null;
|
|
5723
|
-
}
|
|
5724
|
-
if (typeof type === "string") {
|
|
5614
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
5615
|
+
function getComponentNameFromType(type) {
|
|
5616
|
+
if (null == type) return null;
|
|
5617
|
+
if ("function" === typeof type)
|
|
5618
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
5619
|
+
if ("string" === typeof type) return type;
|
|
5620
|
+
switch (type) {
|
|
5621
|
+
case REACT_FRAGMENT_TYPE:
|
|
5622
|
+
return "Fragment";
|
|
5623
|
+
case REACT_PROFILER_TYPE:
|
|
5624
|
+
return "Profiler";
|
|
5625
|
+
case REACT_STRICT_MODE_TYPE:
|
|
5626
|
+
return "StrictMode";
|
|
5627
|
+
case REACT_SUSPENSE_TYPE:
|
|
5628
|
+
return "Suspense";
|
|
5629
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
5630
|
+
return "SuspenseList";
|
|
5631
|
+
case REACT_ACTIVITY_TYPE:
|
|
5632
|
+
return "Activity";
|
|
5633
|
+
}
|
|
5634
|
+
if ("object" === typeof type)
|
|
5635
|
+
switch ("number" === typeof type.tag && console.error(
|
|
5636
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
5637
|
+
), type.$$typeof) {
|
|
5638
|
+
case REACT_PORTAL_TYPE:
|
|
5639
|
+
return "Portal";
|
|
5640
|
+
case REACT_CONTEXT_TYPE:
|
|
5641
|
+
return (type.displayName || "Context") + ".Provider";
|
|
5642
|
+
case REACT_CONSUMER_TYPE:
|
|
5643
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
5644
|
+
case REACT_FORWARD_REF_TYPE:
|
|
5645
|
+
var innerType = type.render;
|
|
5646
|
+
type = type.displayName;
|
|
5647
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
5725
5648
|
return type;
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
case REACT_STRICT_MODE_TYPE:
|
|
5735
|
-
return "StrictMode";
|
|
5736
|
-
case REACT_SUSPENSE_TYPE:
|
|
5737
|
-
return "Suspense";
|
|
5738
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
5739
|
-
return "SuspenseList";
|
|
5740
|
-
}
|
|
5741
|
-
if (typeof type === "object") {
|
|
5742
|
-
switch (type.$$typeof) {
|
|
5743
|
-
case REACT_CONTEXT_TYPE:
|
|
5744
|
-
var context = type;
|
|
5745
|
-
return getContextName(context) + ".Consumer";
|
|
5746
|
-
case REACT_PROVIDER_TYPE:
|
|
5747
|
-
var provider = type;
|
|
5748
|
-
return getContextName(provider._context) + ".Provider";
|
|
5749
|
-
case REACT_FORWARD_REF_TYPE:
|
|
5750
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
5751
|
-
case REACT_MEMO_TYPE:
|
|
5752
|
-
return getComponentName(type.type);
|
|
5753
|
-
case REACT_BLOCK_TYPE:
|
|
5754
|
-
return getComponentName(type._render);
|
|
5755
|
-
case REACT_LAZY_TYPE: {
|
|
5756
|
-
var lazyComponent = type;
|
|
5757
|
-
var payload = lazyComponent._payload;
|
|
5758
|
-
var init = lazyComponent._init;
|
|
5759
|
-
try {
|
|
5760
|
-
return getComponentName(init(payload));
|
|
5761
|
-
} catch (x) {
|
|
5762
|
-
return null;
|
|
5763
|
-
}
|
|
5764
|
-
}
|
|
5765
|
-
}
|
|
5766
|
-
}
|
|
5767
|
-
return null;
|
|
5768
|
-
}
|
|
5769
|
-
var disabledDepth = 0;
|
|
5770
|
-
var prevLog;
|
|
5771
|
-
var prevInfo;
|
|
5772
|
-
var prevWarn;
|
|
5773
|
-
var prevError;
|
|
5774
|
-
var prevGroup;
|
|
5775
|
-
var prevGroupCollapsed;
|
|
5776
|
-
var prevGroupEnd;
|
|
5777
|
-
function disabledLog() {
|
|
5778
|
-
}
|
|
5779
|
-
disabledLog.__reactDisabledLog = true;
|
|
5780
|
-
function disableLogs() {
|
|
5781
|
-
{
|
|
5782
|
-
if (disabledDepth === 0) {
|
|
5783
|
-
prevLog = console.log;
|
|
5784
|
-
prevInfo = console.info;
|
|
5785
|
-
prevWarn = console.warn;
|
|
5786
|
-
prevError = console.error;
|
|
5787
|
-
prevGroup = console.group;
|
|
5788
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
5789
|
-
prevGroupEnd = console.groupEnd;
|
|
5790
|
-
var props = {
|
|
5791
|
-
configurable: true,
|
|
5792
|
-
enumerable: true,
|
|
5793
|
-
value: disabledLog,
|
|
5794
|
-
writable: true
|
|
5795
|
-
};
|
|
5796
|
-
Object.defineProperties(console, {
|
|
5797
|
-
info: props,
|
|
5798
|
-
log: props,
|
|
5799
|
-
warn: props,
|
|
5800
|
-
error: props,
|
|
5801
|
-
group: props,
|
|
5802
|
-
groupCollapsed: props,
|
|
5803
|
-
groupEnd: props
|
|
5804
|
-
});
|
|
5805
|
-
}
|
|
5806
|
-
disabledDepth++;
|
|
5807
|
-
}
|
|
5808
|
-
}
|
|
5809
|
-
function reenableLogs() {
|
|
5810
|
-
{
|
|
5811
|
-
disabledDepth--;
|
|
5812
|
-
if (disabledDepth === 0) {
|
|
5813
|
-
var props = {
|
|
5814
|
-
configurable: true,
|
|
5815
|
-
enumerable: true,
|
|
5816
|
-
writable: true
|
|
5817
|
-
};
|
|
5818
|
-
Object.defineProperties(console, {
|
|
5819
|
-
log: _assign({}, props, {
|
|
5820
|
-
value: prevLog
|
|
5821
|
-
}),
|
|
5822
|
-
info: _assign({}, props, {
|
|
5823
|
-
value: prevInfo
|
|
5824
|
-
}),
|
|
5825
|
-
warn: _assign({}, props, {
|
|
5826
|
-
value: prevWarn
|
|
5827
|
-
}),
|
|
5828
|
-
error: _assign({}, props, {
|
|
5829
|
-
value: prevError
|
|
5830
|
-
}),
|
|
5831
|
-
group: _assign({}, props, {
|
|
5832
|
-
value: prevGroup
|
|
5833
|
-
}),
|
|
5834
|
-
groupCollapsed: _assign({}, props, {
|
|
5835
|
-
value: prevGroupCollapsed
|
|
5836
|
-
}),
|
|
5837
|
-
groupEnd: _assign({}, props, {
|
|
5838
|
-
value: prevGroupEnd
|
|
5839
|
-
})
|
|
5840
|
-
});
|
|
5841
|
-
}
|
|
5842
|
-
if (disabledDepth < 0) {
|
|
5843
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
5649
|
+
case REACT_MEMO_TYPE:
|
|
5650
|
+
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
5651
|
+
case REACT_LAZY_TYPE:
|
|
5652
|
+
innerType = type._payload;
|
|
5653
|
+
type = type._init;
|
|
5654
|
+
try {
|
|
5655
|
+
return getComponentNameFromType(type(innerType));
|
|
5656
|
+
} catch (x) {
|
|
5844
5657
|
}
|
|
5845
|
-
}
|
|
5846
5658
|
}
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
if (prefix === void 0) {
|
|
5852
|
-
try {
|
|
5853
|
-
throw Error();
|
|
5854
|
-
} catch (x) {
|
|
5855
|
-
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
5856
|
-
prefix = match && match[1] || "";
|
|
5857
|
-
}
|
|
5858
|
-
}
|
|
5859
|
-
return "\n" + prefix + name;
|
|
5860
|
-
}
|
|
5861
|
-
}
|
|
5862
|
-
var reentry = false;
|
|
5863
|
-
var componentFrameCache;
|
|
5864
|
-
{
|
|
5865
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
5866
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
5867
|
-
}
|
|
5868
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
5869
|
-
if (!fn || reentry) {
|
|
5870
|
-
return "";
|
|
5871
|
-
}
|
|
5872
|
-
{
|
|
5873
|
-
var frame = componentFrameCache.get(fn);
|
|
5874
|
-
if (frame !== void 0) {
|
|
5875
|
-
return frame;
|
|
5876
|
-
}
|
|
5877
|
-
}
|
|
5878
|
-
var control;
|
|
5879
|
-
reentry = true;
|
|
5880
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
5881
|
-
Error.prepareStackTrace = void 0;
|
|
5882
|
-
var previousDispatcher;
|
|
5883
|
-
{
|
|
5884
|
-
previousDispatcher = ReactCurrentDispatcher.current;
|
|
5885
|
-
ReactCurrentDispatcher.current = null;
|
|
5886
|
-
disableLogs();
|
|
5887
|
-
}
|
|
5888
|
-
try {
|
|
5889
|
-
if (construct) {
|
|
5890
|
-
var Fake = function() {
|
|
5891
|
-
throw Error();
|
|
5892
|
-
};
|
|
5893
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
5894
|
-
set: function() {
|
|
5895
|
-
throw Error();
|
|
5896
|
-
}
|
|
5897
|
-
});
|
|
5898
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
5899
|
-
try {
|
|
5900
|
-
Reflect.construct(Fake, []);
|
|
5901
|
-
} catch (x) {
|
|
5902
|
-
control = x;
|
|
5903
|
-
}
|
|
5904
|
-
Reflect.construct(fn, [], Fake);
|
|
5905
|
-
} else {
|
|
5906
|
-
try {
|
|
5907
|
-
Fake.call();
|
|
5908
|
-
} catch (x) {
|
|
5909
|
-
control = x;
|
|
5910
|
-
}
|
|
5911
|
-
fn.call(Fake.prototype);
|
|
5912
|
-
}
|
|
5913
|
-
} else {
|
|
5914
|
-
try {
|
|
5915
|
-
throw Error();
|
|
5916
|
-
} catch (x) {
|
|
5917
|
-
control = x;
|
|
5918
|
-
}
|
|
5919
|
-
fn();
|
|
5920
|
-
}
|
|
5921
|
-
} catch (sample) {
|
|
5922
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
5923
|
-
var sampleLines = sample.stack.split("\n");
|
|
5924
|
-
var controlLines = control.stack.split("\n");
|
|
5925
|
-
var s = sampleLines.length - 1;
|
|
5926
|
-
var c = controlLines.length - 1;
|
|
5927
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
5928
|
-
c--;
|
|
5929
|
-
}
|
|
5930
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
5931
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
5932
|
-
if (s !== 1 || c !== 1) {
|
|
5933
|
-
do {
|
|
5934
|
-
s--;
|
|
5935
|
-
c--;
|
|
5936
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
5937
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
5938
|
-
{
|
|
5939
|
-
if (typeof fn === "function") {
|
|
5940
|
-
componentFrameCache.set(fn, _frame);
|
|
5941
|
-
}
|
|
5942
|
-
}
|
|
5943
|
-
return _frame;
|
|
5944
|
-
}
|
|
5945
|
-
} while (s >= 1 && c >= 0);
|
|
5946
|
-
}
|
|
5947
|
-
break;
|
|
5948
|
-
}
|
|
5949
|
-
}
|
|
5950
|
-
}
|
|
5951
|
-
} finally {
|
|
5952
|
-
reentry = false;
|
|
5953
|
-
{
|
|
5954
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
5955
|
-
reenableLogs();
|
|
5956
|
-
}
|
|
5957
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
5958
|
-
}
|
|
5959
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
5960
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
5961
|
-
{
|
|
5962
|
-
if (typeof fn === "function") {
|
|
5963
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
5964
|
-
}
|
|
5965
|
-
}
|
|
5966
|
-
return syntheticFrame;
|
|
5967
|
-
}
|
|
5968
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
5969
|
-
{
|
|
5970
|
-
return describeNativeComponentFrame(fn, false);
|
|
5971
|
-
}
|
|
5972
|
-
}
|
|
5973
|
-
function shouldConstruct(Component) {
|
|
5974
|
-
var prototype = Component.prototype;
|
|
5975
|
-
return !!(prototype && prototype.isReactComponent);
|
|
5976
|
-
}
|
|
5977
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
5978
|
-
if (type == null) {
|
|
5979
|
-
return "";
|
|
5980
|
-
}
|
|
5981
|
-
if (typeof type === "function") {
|
|
5982
|
-
{
|
|
5983
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
5984
|
-
}
|
|
5985
|
-
}
|
|
5986
|
-
if (typeof type === "string") {
|
|
5987
|
-
return describeBuiltInComponentFrame(type);
|
|
5988
|
-
}
|
|
5989
|
-
switch (type) {
|
|
5990
|
-
case REACT_SUSPENSE_TYPE:
|
|
5991
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
5992
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
5993
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
5994
|
-
}
|
|
5995
|
-
if (typeof type === "object") {
|
|
5996
|
-
switch (type.$$typeof) {
|
|
5997
|
-
case REACT_FORWARD_REF_TYPE:
|
|
5998
|
-
return describeFunctionComponentFrame(type.render);
|
|
5999
|
-
case REACT_MEMO_TYPE:
|
|
6000
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
6001
|
-
case REACT_BLOCK_TYPE:
|
|
6002
|
-
return describeFunctionComponentFrame(type._render);
|
|
6003
|
-
case REACT_LAZY_TYPE: {
|
|
6004
|
-
var lazyComponent = type;
|
|
6005
|
-
var payload = lazyComponent._payload;
|
|
6006
|
-
var init = lazyComponent._init;
|
|
6007
|
-
try {
|
|
6008
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
6009
|
-
} catch (x) {
|
|
6010
|
-
}
|
|
6011
|
-
}
|
|
6012
|
-
}
|
|
6013
|
-
}
|
|
6014
|
-
return "";
|
|
6015
|
-
}
|
|
6016
|
-
var loggedTypeFailures = {};
|
|
6017
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
6018
|
-
function setCurrentlyValidatingElement(element) {
|
|
6019
|
-
{
|
|
6020
|
-
if (element) {
|
|
6021
|
-
var owner = element._owner;
|
|
6022
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
6023
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
6024
|
-
} else {
|
|
6025
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
6026
|
-
}
|
|
6027
|
-
}
|
|
6028
|
-
}
|
|
6029
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
6030
|
-
{
|
|
6031
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
6032
|
-
for (var typeSpecName in typeSpecs) {
|
|
6033
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
6034
|
-
var error$1 = void 0;
|
|
6035
|
-
try {
|
|
6036
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
6037
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
6038
|
-
err.name = "Invariant Violation";
|
|
6039
|
-
throw err;
|
|
6040
|
-
}
|
|
6041
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
6042
|
-
} catch (ex) {
|
|
6043
|
-
error$1 = ex;
|
|
6044
|
-
}
|
|
6045
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
6046
|
-
setCurrentlyValidatingElement(element);
|
|
6047
|
-
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
6048
|
-
setCurrentlyValidatingElement(null);
|
|
6049
|
-
}
|
|
6050
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
6051
|
-
loggedTypeFailures[error$1.message] = true;
|
|
6052
|
-
setCurrentlyValidatingElement(element);
|
|
6053
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
6054
|
-
setCurrentlyValidatingElement(null);
|
|
6055
|
-
}
|
|
6056
|
-
}
|
|
6057
|
-
}
|
|
6058
|
-
}
|
|
6059
|
-
}
|
|
6060
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
6061
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
6062
|
-
var RESERVED_PROPS = {
|
|
6063
|
-
key: true,
|
|
6064
|
-
ref: true,
|
|
6065
|
-
__self: true,
|
|
6066
|
-
__source: true
|
|
6067
|
-
};
|
|
6068
|
-
var specialPropKeyWarningShown;
|
|
6069
|
-
var specialPropRefWarningShown;
|
|
6070
|
-
function hasValidRef(config) {
|
|
6071
|
-
{
|
|
6072
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
6073
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
6074
|
-
if (getter && getter.isReactWarning) {
|
|
6075
|
-
return false;
|
|
6076
|
-
}
|
|
6077
|
-
}
|
|
6078
|
-
}
|
|
6079
|
-
return config.ref !== void 0;
|
|
6080
|
-
}
|
|
6081
|
-
function hasValidKey(config) {
|
|
6082
|
-
{
|
|
6083
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
6084
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
6085
|
-
if (getter && getter.isReactWarning) {
|
|
6086
|
-
return false;
|
|
6087
|
-
}
|
|
6088
|
-
}
|
|
6089
|
-
}
|
|
6090
|
-
return config.key !== void 0;
|
|
6091
|
-
}
|
|
6092
|
-
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
6093
|
-
{
|
|
6094
|
-
if (typeof config.ref === "string" && ReactCurrentOwner.current && self) ;
|
|
6095
|
-
}
|
|
6096
|
-
}
|
|
6097
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
6098
|
-
{
|
|
6099
|
-
var warnAboutAccessingKey = function() {
|
|
6100
|
-
if (!specialPropKeyWarningShown) {
|
|
6101
|
-
specialPropKeyWarningShown = true;
|
|
6102
|
-
error("%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://reactjs.org/link/special-props)", displayName);
|
|
6103
|
-
}
|
|
6104
|
-
};
|
|
6105
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
6106
|
-
Object.defineProperty(props, "key", {
|
|
6107
|
-
get: warnAboutAccessingKey,
|
|
6108
|
-
configurable: true
|
|
6109
|
-
});
|
|
6110
|
-
}
|
|
6111
|
-
}
|
|
6112
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
6113
|
-
{
|
|
6114
|
-
var warnAboutAccessingRef = function() {
|
|
6115
|
-
if (!specialPropRefWarningShown) {
|
|
6116
|
-
specialPropRefWarningShown = true;
|
|
6117
|
-
error("%s: `ref` 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://reactjs.org/link/special-props)", displayName);
|
|
6118
|
-
}
|
|
6119
|
-
};
|
|
6120
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
6121
|
-
Object.defineProperty(props, "ref", {
|
|
6122
|
-
get: warnAboutAccessingRef,
|
|
6123
|
-
configurable: true
|
|
6124
|
-
});
|
|
6125
|
-
}
|
|
6126
|
-
}
|
|
6127
|
-
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
6128
|
-
var element = {
|
|
6129
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
6130
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
6131
|
-
// Built-in properties that belong on the element
|
|
6132
|
-
type,
|
|
6133
|
-
key,
|
|
6134
|
-
ref,
|
|
6135
|
-
props,
|
|
6136
|
-
// Record the component responsible for creating this element.
|
|
6137
|
-
_owner: owner
|
|
6138
|
-
};
|
|
6139
|
-
{
|
|
6140
|
-
element._store = {};
|
|
6141
|
-
Object.defineProperty(element._store, "validated", {
|
|
6142
|
-
configurable: false,
|
|
6143
|
-
enumerable: false,
|
|
6144
|
-
writable: true,
|
|
6145
|
-
value: false
|
|
6146
|
-
});
|
|
6147
|
-
Object.defineProperty(element, "_self", {
|
|
6148
|
-
configurable: false,
|
|
6149
|
-
enumerable: false,
|
|
6150
|
-
writable: false,
|
|
6151
|
-
value: self
|
|
6152
|
-
});
|
|
6153
|
-
Object.defineProperty(element, "_source", {
|
|
6154
|
-
configurable: false,
|
|
6155
|
-
enumerable: false,
|
|
6156
|
-
writable: false,
|
|
6157
|
-
value: source
|
|
6158
|
-
});
|
|
6159
|
-
if (Object.freeze) {
|
|
6160
|
-
Object.freeze(element.props);
|
|
6161
|
-
Object.freeze(element);
|
|
6162
|
-
}
|
|
6163
|
-
}
|
|
6164
|
-
return element;
|
|
6165
|
-
};
|
|
6166
|
-
function jsxDEV(type, config, maybeKey, source, self) {
|
|
6167
|
-
{
|
|
6168
|
-
var propName;
|
|
6169
|
-
var props = {};
|
|
6170
|
-
var key = null;
|
|
6171
|
-
var ref = null;
|
|
6172
|
-
if (maybeKey !== void 0) {
|
|
6173
|
-
key = "" + maybeKey;
|
|
6174
|
-
}
|
|
6175
|
-
if (hasValidKey(config)) {
|
|
6176
|
-
key = "" + config.key;
|
|
6177
|
-
}
|
|
6178
|
-
if (hasValidRef(config)) {
|
|
6179
|
-
ref = config.ref;
|
|
6180
|
-
warnIfStringRefCannotBeAutoConverted(config, self);
|
|
6181
|
-
}
|
|
6182
|
-
for (propName in config) {
|
|
6183
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
6184
|
-
props[propName] = config[propName];
|
|
6185
|
-
}
|
|
6186
|
-
}
|
|
6187
|
-
if (type && type.defaultProps) {
|
|
6188
|
-
var defaultProps = type.defaultProps;
|
|
6189
|
-
for (propName in defaultProps) {
|
|
6190
|
-
if (props[propName] === void 0) {
|
|
6191
|
-
props[propName] = defaultProps[propName];
|
|
6192
|
-
}
|
|
6193
|
-
}
|
|
6194
|
-
}
|
|
6195
|
-
if (key || ref) {
|
|
6196
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
6197
|
-
if (key) {
|
|
6198
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
6199
|
-
}
|
|
6200
|
-
if (ref) {
|
|
6201
|
-
defineRefPropWarningGetter(props, displayName);
|
|
6202
|
-
}
|
|
6203
|
-
}
|
|
6204
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
6205
|
-
}
|
|
6206
|
-
}
|
|
6207
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
6208
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
6209
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
6210
|
-
{
|
|
6211
|
-
if (element) {
|
|
6212
|
-
var owner = element._owner;
|
|
6213
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
6214
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
6215
|
-
} else {
|
|
6216
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
6217
|
-
}
|
|
6218
|
-
}
|
|
6219
|
-
}
|
|
6220
|
-
var propTypesMisspellWarningShown;
|
|
6221
|
-
{
|
|
6222
|
-
propTypesMisspellWarningShown = false;
|
|
6223
|
-
}
|
|
6224
|
-
function isValidElement(object) {
|
|
6225
|
-
{
|
|
6226
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
6227
|
-
}
|
|
6228
|
-
}
|
|
6229
|
-
function getDeclarationErrorAddendum() {
|
|
6230
|
-
{
|
|
6231
|
-
if (ReactCurrentOwner$1.current) {
|
|
6232
|
-
var name = getComponentName(ReactCurrentOwner$1.current.type);
|
|
6233
|
-
if (name) {
|
|
6234
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
6235
|
-
}
|
|
6236
|
-
}
|
|
6237
|
-
return "";
|
|
6238
|
-
}
|
|
6239
|
-
}
|
|
6240
|
-
function getSourceInfoErrorAddendum(source) {
|
|
6241
|
-
{
|
|
6242
|
-
return "";
|
|
6243
|
-
}
|
|
6244
|
-
}
|
|
6245
|
-
var ownerHasKeyUseWarning = {};
|
|
6246
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
6247
|
-
{
|
|
6248
|
-
var info = getDeclarationErrorAddendum();
|
|
6249
|
-
if (!info) {
|
|
6250
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
6251
|
-
if (parentName) {
|
|
6252
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
6253
|
-
}
|
|
6254
|
-
}
|
|
6255
|
-
return info;
|
|
6256
|
-
}
|
|
6257
|
-
}
|
|
6258
|
-
function validateExplicitKey(element, parentType) {
|
|
6259
|
-
{
|
|
6260
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
6261
|
-
return;
|
|
6262
|
-
}
|
|
6263
|
-
element._store.validated = true;
|
|
6264
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
6265
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
6266
|
-
return;
|
|
6267
|
-
}
|
|
6268
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
6269
|
-
var childOwner = "";
|
|
6270
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
6271
|
-
childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
|
|
6272
|
-
}
|
|
6273
|
-
setCurrentlyValidatingElement$1(element);
|
|
6274
|
-
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
6275
|
-
setCurrentlyValidatingElement$1(null);
|
|
6276
|
-
}
|
|
6277
|
-
}
|
|
6278
|
-
function validateChildKeys(node, parentType) {
|
|
6279
|
-
{
|
|
6280
|
-
if (typeof node !== "object") {
|
|
6281
|
-
return;
|
|
6282
|
-
}
|
|
6283
|
-
if (Array.isArray(node)) {
|
|
6284
|
-
for (var i = 0; i < node.length; i++) {
|
|
6285
|
-
var child = node[i];
|
|
6286
|
-
if (isValidElement(child)) {
|
|
6287
|
-
validateExplicitKey(child, parentType);
|
|
6288
|
-
}
|
|
6289
|
-
}
|
|
6290
|
-
} else if (isValidElement(node)) {
|
|
6291
|
-
if (node._store) {
|
|
6292
|
-
node._store.validated = true;
|
|
6293
|
-
}
|
|
6294
|
-
} else if (node) {
|
|
6295
|
-
var iteratorFn = getIteratorFn(node);
|
|
6296
|
-
if (typeof iteratorFn === "function") {
|
|
6297
|
-
if (iteratorFn !== node.entries) {
|
|
6298
|
-
var iterator = iteratorFn.call(node);
|
|
6299
|
-
var step;
|
|
6300
|
-
while (!(step = iterator.next()).done) {
|
|
6301
|
-
if (isValidElement(step.value)) {
|
|
6302
|
-
validateExplicitKey(step.value, parentType);
|
|
6303
|
-
}
|
|
6304
|
-
}
|
|
6305
|
-
}
|
|
6306
|
-
}
|
|
6307
|
-
}
|
|
6308
|
-
}
|
|
6309
|
-
}
|
|
6310
|
-
function validatePropTypes(element) {
|
|
6311
|
-
{
|
|
6312
|
-
var type = element.type;
|
|
6313
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
6314
|
-
return;
|
|
6315
|
-
}
|
|
6316
|
-
var propTypes;
|
|
6317
|
-
if (typeof type === "function") {
|
|
6318
|
-
propTypes = type.propTypes;
|
|
6319
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
6320
|
-
// Inner props are checked in the reconciler.
|
|
6321
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
6322
|
-
propTypes = type.propTypes;
|
|
6323
|
-
} else {
|
|
6324
|
-
return;
|
|
6325
|
-
}
|
|
6326
|
-
if (propTypes) {
|
|
6327
|
-
var name = getComponentName(type);
|
|
6328
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
6329
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
6330
|
-
propTypesMisspellWarningShown = true;
|
|
6331
|
-
var _name = getComponentName(type);
|
|
6332
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
6333
|
-
}
|
|
6334
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
6335
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
6336
|
-
}
|
|
6337
|
-
}
|
|
6338
|
-
}
|
|
6339
|
-
function validateFragmentProps(fragment) {
|
|
6340
|
-
{
|
|
6341
|
-
var keys = Object.keys(fragment.props);
|
|
6342
|
-
for (var i = 0; i < keys.length; i++) {
|
|
6343
|
-
var key = keys[i];
|
|
6344
|
-
if (key !== "children" && key !== "key") {
|
|
6345
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
6346
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
6347
|
-
setCurrentlyValidatingElement$1(null);
|
|
6348
|
-
break;
|
|
6349
|
-
}
|
|
6350
|
-
}
|
|
6351
|
-
if (fragment.ref !== null) {
|
|
6352
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
6353
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
6354
|
-
setCurrentlyValidatingElement$1(null);
|
|
6355
|
-
}
|
|
6356
|
-
}
|
|
6357
|
-
}
|
|
6358
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
6359
|
-
{
|
|
6360
|
-
var validType = isValidElementType(type);
|
|
6361
|
-
if (!validType) {
|
|
6362
|
-
var info = "";
|
|
6363
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
6364
|
-
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
6365
|
-
}
|
|
6366
|
-
var sourceInfo = getSourceInfoErrorAddendum();
|
|
6367
|
-
if (sourceInfo) {
|
|
6368
|
-
info += sourceInfo;
|
|
6369
|
-
} else {
|
|
6370
|
-
info += getDeclarationErrorAddendum();
|
|
6371
|
-
}
|
|
6372
|
-
var typeString;
|
|
6373
|
-
if (type === null) {
|
|
6374
|
-
typeString = "null";
|
|
6375
|
-
} else if (Array.isArray(type)) {
|
|
6376
|
-
typeString = "array";
|
|
6377
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
6378
|
-
typeString = "<" + (getComponentName(type.type) || "Unknown") + " />";
|
|
6379
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
6380
|
-
} else {
|
|
6381
|
-
typeString = typeof type;
|
|
6382
|
-
}
|
|
6383
|
-
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
6384
|
-
}
|
|
6385
|
-
var element = jsxDEV(type, props, key, source, self);
|
|
6386
|
-
if (element == null) {
|
|
6387
|
-
return element;
|
|
6388
|
-
}
|
|
6389
|
-
if (validType) {
|
|
6390
|
-
var children = props.children;
|
|
6391
|
-
if (children !== void 0) {
|
|
6392
|
-
if (isStaticChildren) {
|
|
6393
|
-
if (Array.isArray(children)) {
|
|
6394
|
-
for (var i = 0; i < children.length; i++) {
|
|
6395
|
-
validateChildKeys(children[i], type);
|
|
6396
|
-
}
|
|
6397
|
-
if (Object.freeze) {
|
|
6398
|
-
Object.freeze(children);
|
|
6399
|
-
}
|
|
6400
|
-
} else {
|
|
6401
|
-
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
6402
|
-
}
|
|
6403
|
-
} else {
|
|
6404
|
-
validateChildKeys(children, type);
|
|
6405
|
-
}
|
|
6406
|
-
}
|
|
6407
|
-
}
|
|
6408
|
-
if (type === exports.Fragment) {
|
|
6409
|
-
validateFragmentProps(element);
|
|
6410
|
-
} else {
|
|
6411
|
-
validatePropTypes(element);
|
|
6412
|
-
}
|
|
6413
|
-
return element;
|
|
6414
|
-
}
|
|
6415
|
-
}
|
|
6416
|
-
function jsxWithValidationStatic(type, props, key) {
|
|
6417
|
-
{
|
|
6418
|
-
return jsxWithValidation(type, props, key, true);
|
|
6419
|
-
}
|
|
6420
|
-
}
|
|
6421
|
-
function jsxWithValidationDynamic(type, props, key) {
|
|
6422
|
-
{
|
|
6423
|
-
return jsxWithValidation(type, props, key, false);
|
|
6424
|
-
}
|
|
6425
|
-
}
|
|
6426
|
-
var jsx = jsxWithValidationDynamic;
|
|
6427
|
-
var jsxs = jsxWithValidationStatic;
|
|
6428
|
-
exports.jsx = jsx;
|
|
6429
|
-
exports.jsxs = jsxs;
|
|
6430
|
-
})();
|
|
5659
|
+
return null;
|
|
5660
|
+
}
|
|
5661
|
+
function testStringCoercion(value) {
|
|
5662
|
+
return "" + value;
|
|
6431
5663
|
}
|
|
6432
|
-
|
|
5664
|
+
function checkKeyStringCoercion(value) {
|
|
5665
|
+
try {
|
|
5666
|
+
testStringCoercion(value);
|
|
5667
|
+
var JSCompiler_inline_result = false;
|
|
5668
|
+
} catch (e) {
|
|
5669
|
+
JSCompiler_inline_result = true;
|
|
5670
|
+
}
|
|
5671
|
+
if (JSCompiler_inline_result) {
|
|
5672
|
+
JSCompiler_inline_result = console;
|
|
5673
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
5674
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
5675
|
+
JSCompiler_temp_const.call(
|
|
5676
|
+
JSCompiler_inline_result,
|
|
5677
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
5678
|
+
JSCompiler_inline_result$jscomp$0
|
|
5679
|
+
);
|
|
5680
|
+
return testStringCoercion(value);
|
|
5681
|
+
}
|
|
5682
|
+
}
|
|
5683
|
+
function getTaskName(type) {
|
|
5684
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
5685
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
5686
|
+
return "<...>";
|
|
5687
|
+
try {
|
|
5688
|
+
var name = getComponentNameFromType(type);
|
|
5689
|
+
return name ? "<" + name + ">" : "<...>";
|
|
5690
|
+
} catch (x) {
|
|
5691
|
+
return "<...>";
|
|
5692
|
+
}
|
|
5693
|
+
}
|
|
5694
|
+
function getOwner() {
|
|
5695
|
+
var dispatcher = ReactSharedInternals.A;
|
|
5696
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
5697
|
+
}
|
|
5698
|
+
function UnknownOwner() {
|
|
5699
|
+
return Error("react-stack-top-frame");
|
|
5700
|
+
}
|
|
5701
|
+
function hasValidKey(config) {
|
|
5702
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
5703
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
5704
|
+
if (getter && getter.isReactWarning) return false;
|
|
5705
|
+
}
|
|
5706
|
+
return void 0 !== config.key;
|
|
5707
|
+
}
|
|
5708
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
5709
|
+
function warnAboutAccessingKey() {
|
|
5710
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
5711
|
+
"%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)",
|
|
5712
|
+
displayName
|
|
5713
|
+
));
|
|
5714
|
+
}
|
|
5715
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
5716
|
+
Object.defineProperty(props, "key", {
|
|
5717
|
+
get: warnAboutAccessingKey,
|
|
5718
|
+
configurable: true
|
|
5719
|
+
});
|
|
5720
|
+
}
|
|
5721
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
5722
|
+
var componentName = getComponentNameFromType(this.type);
|
|
5723
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
5724
|
+
"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."
|
|
5725
|
+
));
|
|
5726
|
+
componentName = this.props.ref;
|
|
5727
|
+
return void 0 !== componentName ? componentName : null;
|
|
5728
|
+
}
|
|
5729
|
+
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
5730
|
+
self = props.ref;
|
|
5731
|
+
type = {
|
|
5732
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
5733
|
+
type,
|
|
5734
|
+
key,
|
|
5735
|
+
props,
|
|
5736
|
+
_owner: owner
|
|
5737
|
+
};
|
|
5738
|
+
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
|
5739
|
+
enumerable: false,
|
|
5740
|
+
get: elementRefGetterWithDeprecationWarning
|
|
5741
|
+
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
5742
|
+
type._store = {};
|
|
5743
|
+
Object.defineProperty(type._store, "validated", {
|
|
5744
|
+
configurable: false,
|
|
5745
|
+
enumerable: false,
|
|
5746
|
+
writable: true,
|
|
5747
|
+
value: 0
|
|
5748
|
+
});
|
|
5749
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
5750
|
+
configurable: false,
|
|
5751
|
+
enumerable: false,
|
|
5752
|
+
writable: true,
|
|
5753
|
+
value: null
|
|
5754
|
+
});
|
|
5755
|
+
Object.defineProperty(type, "_debugStack", {
|
|
5756
|
+
configurable: false,
|
|
5757
|
+
enumerable: false,
|
|
5758
|
+
writable: true,
|
|
5759
|
+
value: debugStack
|
|
5760
|
+
});
|
|
5761
|
+
Object.defineProperty(type, "_debugTask", {
|
|
5762
|
+
configurable: false,
|
|
5763
|
+
enumerable: false,
|
|
5764
|
+
writable: true,
|
|
5765
|
+
value: debugTask
|
|
5766
|
+
});
|
|
5767
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
5768
|
+
return type;
|
|
5769
|
+
}
|
|
5770
|
+
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
|
|
5771
|
+
var children = config.children;
|
|
5772
|
+
if (void 0 !== children)
|
|
5773
|
+
if (isStaticChildren)
|
|
5774
|
+
if (isArrayImpl(children)) {
|
|
5775
|
+
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
5776
|
+
validateChildKeys(children[isStaticChildren]);
|
|
5777
|
+
Object.freeze && Object.freeze(children);
|
|
5778
|
+
} else
|
|
5779
|
+
console.error(
|
|
5780
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
5781
|
+
);
|
|
5782
|
+
else validateChildKeys(children);
|
|
5783
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
5784
|
+
children = getComponentNameFromType(type);
|
|
5785
|
+
var keys = Object.keys(config).filter(function(k) {
|
|
5786
|
+
return "key" !== k;
|
|
5787
|
+
});
|
|
5788
|
+
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
5789
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
5790
|
+
'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} />',
|
|
5791
|
+
isStaticChildren,
|
|
5792
|
+
children,
|
|
5793
|
+
keys,
|
|
5794
|
+
children
|
|
5795
|
+
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
5796
|
+
}
|
|
5797
|
+
children = null;
|
|
5798
|
+
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
5799
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
5800
|
+
if ("key" in config) {
|
|
5801
|
+
maybeKey = {};
|
|
5802
|
+
for (var propName in config)
|
|
5803
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
5804
|
+
} else maybeKey = config;
|
|
5805
|
+
children && defineKeyPropWarningGetter(
|
|
5806
|
+
maybeKey,
|
|
5807
|
+
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
5808
|
+
);
|
|
5809
|
+
return ReactElement(
|
|
5810
|
+
type,
|
|
5811
|
+
children,
|
|
5812
|
+
self,
|
|
5813
|
+
source,
|
|
5814
|
+
getOwner(),
|
|
5815
|
+
maybeKey,
|
|
5816
|
+
debugStack,
|
|
5817
|
+
debugTask
|
|
5818
|
+
);
|
|
5819
|
+
}
|
|
5820
|
+
function validateChildKeys(node) {
|
|
5821
|
+
"object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
|
|
5822
|
+
}
|
|
5823
|
+
var React$1 = React, REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
5824
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
5825
|
+
return null;
|
|
5826
|
+
};
|
|
5827
|
+
React$1 = {
|
|
5828
|
+
"react-stack-bottom-frame": function(callStackForError) {
|
|
5829
|
+
return callStackForError();
|
|
5830
|
+
}
|
|
5831
|
+
};
|
|
5832
|
+
var specialPropKeyWarningShown;
|
|
5833
|
+
var didWarnAboutElementRef = {};
|
|
5834
|
+
var unknownOwnerDebugStack = React$1["react-stack-bottom-frame"].bind(
|
|
5835
|
+
React$1,
|
|
5836
|
+
UnknownOwner
|
|
5837
|
+
)();
|
|
5838
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
5839
|
+
var didWarnAboutKeySpread = {};
|
|
5840
|
+
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
5841
|
+
reactJsxRuntime_development.jsx = function(type, config, maybeKey, source, self) {
|
|
5842
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
5843
|
+
return jsxDEVImpl(
|
|
5844
|
+
type,
|
|
5845
|
+
config,
|
|
5846
|
+
maybeKey,
|
|
5847
|
+
false,
|
|
5848
|
+
source,
|
|
5849
|
+
self,
|
|
5850
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
5851
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
5852
|
+
);
|
|
5853
|
+
};
|
|
5854
|
+
reactJsxRuntime_development.jsxs = function(type, config, maybeKey, source, self) {
|
|
5855
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
5856
|
+
return jsxDEVImpl(
|
|
5857
|
+
type,
|
|
5858
|
+
config,
|
|
5859
|
+
maybeKey,
|
|
5860
|
+
true,
|
|
5861
|
+
source,
|
|
5862
|
+
self,
|
|
5863
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
5864
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
5865
|
+
);
|
|
5866
|
+
};
|
|
5867
|
+
}();
|
|
6433
5868
|
return reactJsxRuntime_development;
|
|
6434
5869
|
}
|
|
6435
5870
|
var hasRequiredJsxRuntime;
|
|
@@ -6437,13 +5872,14 @@ function requireJsxRuntime() {
|
|
|
6437
5872
|
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
6438
5873
|
hasRequiredJsxRuntime = 1;
|
|
6439
5874
|
if (process.env.NODE_ENV === "production") {
|
|
6440
|
-
jsxRuntime.exports =
|
|
5875
|
+
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
6441
5876
|
} else {
|
|
6442
5877
|
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
6443
5878
|
}
|
|
6444
5879
|
return jsxRuntime.exports;
|
|
6445
5880
|
}
|
|
6446
5881
|
var jsxRuntimeExports = requireJsxRuntime();
|
|
5882
|
+
const reactVersion = parseInt(version.split(".")[0]);
|
|
6447
5883
|
function reactNodeToHTMLElement(node) {
|
|
6448
5884
|
const container = document.createElement("div");
|
|
6449
5885
|
flushSync(() => {
|
|
@@ -6452,8 +5888,7 @@ function reactNodeToHTMLElement(node) {
|
|
|
6452
5888
|
return container;
|
|
6453
5889
|
}
|
|
6454
5890
|
function render(node, container) {
|
|
6455
|
-
|
|
6456
|
-
if (createRoot instanceof Function) {
|
|
5891
|
+
if (reactVersion >= 18) {
|
|
6457
5892
|
const root = createRoot(container);
|
|
6458
5893
|
return root.render(node);
|
|
6459
5894
|
}
|