react-dom 16.5.2 → 16.6.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.
- package/cjs/react-dom-server.browser.development.js +124 -82
- package/cjs/react-dom-server.browser.production.min.js +35 -33
- package/cjs/react-dom-server.node.development.js +126 -84
- package/cjs/react-dom-server.node.production.min.js +38 -36
- package/cjs/react-dom-test-utils.development.js +8 -10
- package/cjs/react-dom-test-utils.production.min.js +4 -4
- package/cjs/react-dom-unstable-native-dependencies.development.js +3 -3
- package/cjs/react-dom-unstable-native-dependencies.production.min.js +2 -2
- package/cjs/react-dom.development.js +1468 -837
- package/cjs/react-dom.production.min.js +236 -221
- package/cjs/react-dom.profiling.min.js +240 -229
- package/package.json +2 -2
- package/umd/react-dom-server.browser.development.js +124 -82
- package/umd/react-dom-server.browser.production.min.js +31 -29
- package/umd/react-dom-test-utils.development.js +8 -10
- package/umd/react-dom-test-utils.production.min.js +8 -8
- package/umd/react-dom-unstable-native-dependencies.development.js +3 -3
- package/umd/react-dom-unstable-native-dependencies.production.min.js +2 -2
- package/umd/react-dom.development.js +1463 -832
- package/umd/react-dom.production.min.js +193 -182
- package/umd/react-dom.profiling.min.js +197 -187
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.6.0
|
|
2
2
|
* react-dom-server.node.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -22,7 +22,7 @@ var stream = require('stream');
|
|
|
22
22
|
|
|
23
23
|
// TODO: this is special because it gets imported during build.
|
|
24
24
|
|
|
25
|
-
var ReactVersion = '16.
|
|
25
|
+
var ReactVersion = '16.6.0';
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Use invariant() to assert state which your program assumes to be true.
|
|
@@ -169,17 +169,22 @@ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeac
|
|
|
169
169
|
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
170
170
|
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
171
171
|
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
172
|
-
var
|
|
172
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
173
173
|
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
174
|
-
var
|
|
174
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
175
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
176
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
175
177
|
|
|
176
178
|
var Resolved = 1;
|
|
177
179
|
|
|
178
180
|
|
|
181
|
+
function refineResolvedLazyComponent(lazyComponent) {
|
|
182
|
+
return lazyComponent._status === Resolved ? lazyComponent._result : null;
|
|
183
|
+
}
|
|
179
184
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
return
|
|
185
|
+
function getWrappedName(outerType, innerType, wrapperName) {
|
|
186
|
+
var functionName = innerType.displayName || innerType.name || '';
|
|
187
|
+
return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
|
|
183
188
|
}
|
|
184
189
|
|
|
185
190
|
function getComponentName(type) {
|
|
@@ -199,8 +204,8 @@ function getComponentName(type) {
|
|
|
199
204
|
return type;
|
|
200
205
|
}
|
|
201
206
|
switch (type) {
|
|
202
|
-
case
|
|
203
|
-
return '
|
|
207
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
208
|
+
return 'ConcurrentMode';
|
|
204
209
|
case REACT_FRAGMENT_TYPE:
|
|
205
210
|
return 'Fragment';
|
|
206
211
|
case REACT_PORTAL_TYPE:
|
|
@@ -209,8 +214,8 @@ function getComponentName(type) {
|
|
|
209
214
|
return 'Profiler';
|
|
210
215
|
case REACT_STRICT_MODE_TYPE:
|
|
211
216
|
return 'StrictMode';
|
|
212
|
-
case
|
|
213
|
-
return '
|
|
217
|
+
case REACT_SUSPENSE_TYPE:
|
|
218
|
+
return 'Suspense';
|
|
214
219
|
}
|
|
215
220
|
if (typeof type === 'object') {
|
|
216
221
|
switch (type.$$typeof) {
|
|
@@ -219,16 +224,17 @@ function getComponentName(type) {
|
|
|
219
224
|
case REACT_PROVIDER_TYPE:
|
|
220
225
|
return 'Context.Provider';
|
|
221
226
|
case REACT_FORWARD_REF_TYPE:
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
return type.
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
227
|
+
return getWrappedName(type, type.render, 'ForwardRef');
|
|
228
|
+
case REACT_MEMO_TYPE:
|
|
229
|
+
return getComponentName(type.type);
|
|
230
|
+
case REACT_LAZY_TYPE:
|
|
231
|
+
{
|
|
232
|
+
var thenable = type;
|
|
233
|
+
var resolvedThenable = refineResolvedLazyComponent(thenable);
|
|
234
|
+
if (resolvedThenable) {
|
|
235
|
+
return getComponentName(resolvedThenable);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
232
238
|
}
|
|
233
239
|
}
|
|
234
240
|
return null;
|
|
@@ -345,14 +351,6 @@ var describeComponentFrame = function (name, source, ownerName) {
|
|
|
345
351
|
return '\n in ' + (name || 'Unknown') + sourceInfo;
|
|
346
352
|
};
|
|
347
353
|
|
|
348
|
-
// Exports ReactDOM.createRoot
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
// Experimental error-boundary API that can recover from errors within a single
|
|
352
|
-
// render phase
|
|
353
|
-
|
|
354
|
-
// Suspense
|
|
355
|
-
|
|
356
354
|
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
|
|
357
355
|
|
|
358
356
|
|
|
@@ -369,9 +367,6 @@ var describeComponentFrame = function (name, source, ownerName) {
|
|
|
369
367
|
// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
|
|
370
368
|
var warnAboutDeprecatedLifecycles = false;
|
|
371
369
|
|
|
372
|
-
// Warn about legacy context API
|
|
373
|
-
|
|
374
|
-
|
|
375
370
|
// Gather advanced timing metrics for Profiler subtrees.
|
|
376
371
|
|
|
377
372
|
|
|
@@ -2060,6 +2055,7 @@ var toArray = React.Children.toArray;
|
|
|
2060
2055
|
// Each stack is an array of frames which may contain nested stacks of elements.
|
|
2061
2056
|
var currentDebugStacks = [];
|
|
2062
2057
|
|
|
2058
|
+
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
2063
2059
|
var ReactDebugCurrentFrame = void 0;
|
|
2064
2060
|
var prevGetCurrentStackImpl = null;
|
|
2065
2061
|
var getCurrentServerStackImpl = function () {
|
|
@@ -2074,6 +2070,12 @@ var pushCurrentDebugStack = function (stack) {};
|
|
|
2074
2070
|
var pushElementToDebugStack = function (element) {};
|
|
2075
2071
|
var popCurrentDebugStack = function () {};
|
|
2076
2072
|
|
|
2073
|
+
var Dispatcher = {
|
|
2074
|
+
readContext: function (context, observedBits) {
|
|
2075
|
+
return context._currentValue;
|
|
2076
|
+
}
|
|
2077
|
+
};
|
|
2078
|
+
|
|
2077
2079
|
{
|
|
2078
2080
|
ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2079
2081
|
|
|
@@ -2159,6 +2161,7 @@ var didWarnAboutBadClass = {};
|
|
|
2159
2161
|
var didWarnAboutDeprecatedWillMount = {};
|
|
2160
2162
|
var didWarnAboutUndefinedDerivedState = {};
|
|
2161
2163
|
var didWarnAboutUninitializedState = {};
|
|
2164
|
+
var didWarnAboutInvalidateContextType = {};
|
|
2162
2165
|
var valuePropNames = ['value', 'defaultValue'];
|
|
2163
2166
|
var newlineEatingTags = {
|
|
2164
2167
|
listing: true,
|
|
@@ -2307,13 +2310,27 @@ function checkContextTypes(typeSpecs, values, location) {
|
|
|
2307
2310
|
}
|
|
2308
2311
|
|
|
2309
2312
|
function processContext(type, context) {
|
|
2310
|
-
var
|
|
2311
|
-
{
|
|
2312
|
-
|
|
2313
|
-
|
|
2313
|
+
var contextType = type.contextType;
|
|
2314
|
+
if (typeof contextType === 'object' && contextType !== null) {
|
|
2315
|
+
{
|
|
2316
|
+
if (contextType.$$typeof !== REACT_CONTEXT_TYPE) {
|
|
2317
|
+
var name = getComponentName(type) || 'Component';
|
|
2318
|
+
if (!didWarnAboutInvalidateContextType[name]) {
|
|
2319
|
+
didWarnAboutInvalidateContextType[type] = true;
|
|
2320
|
+
warningWithoutStack$1(false, '%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext(). ' + 'Did you accidentally pass the Context.Provider instead?', name);
|
|
2321
|
+
}
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
return contextType._currentValue;
|
|
2325
|
+
} else {
|
|
2326
|
+
var maskedContext = maskContext(type, context);
|
|
2327
|
+
{
|
|
2328
|
+
if (type.contextTypes) {
|
|
2329
|
+
checkContextTypes(type.contextTypes, maskedContext, 'context');
|
|
2330
|
+
}
|
|
2314
2331
|
}
|
|
2332
|
+
return maskedContext;
|
|
2315
2333
|
}
|
|
2316
|
-
return maskedContext;
|
|
2317
2334
|
}
|
|
2318
2335
|
|
|
2319
2336
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -2648,42 +2665,47 @@ var ReactDOMServerRenderer = function () {
|
|
|
2648
2665
|
return null;
|
|
2649
2666
|
}
|
|
2650
2667
|
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
if (frame.childIndex >= frame.children.length) {
|
|
2659
|
-
var _footer = frame.footer;
|
|
2660
|
-
out += _footer;
|
|
2661
|
-
if (_footer !== '') {
|
|
2662
|
-
this.previousWasTextNode = false;
|
|
2668
|
+
ReactCurrentOwner.currentDispatcher = Dispatcher;
|
|
2669
|
+
try {
|
|
2670
|
+
var out = '';
|
|
2671
|
+
while (out.length < bytes) {
|
|
2672
|
+
if (this.stack.length === 0) {
|
|
2673
|
+
this.exhausted = true;
|
|
2674
|
+
break;
|
|
2663
2675
|
}
|
|
2664
|
-
this.stack.
|
|
2665
|
-
if (frame.
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2676
|
+
var frame = this.stack[this.stack.length - 1];
|
|
2677
|
+
if (frame.childIndex >= frame.children.length) {
|
|
2678
|
+
var _footer = frame.footer;
|
|
2679
|
+
out += _footer;
|
|
2680
|
+
if (_footer !== '') {
|
|
2681
|
+
this.previousWasTextNode = false;
|
|
2682
|
+
}
|
|
2683
|
+
this.stack.pop();
|
|
2684
|
+
if (frame.type === 'select') {
|
|
2685
|
+
this.currentSelectValue = null;
|
|
2686
|
+
} else if (frame.type != null && frame.type.type != null && frame.type.type.$$typeof === REACT_PROVIDER_TYPE) {
|
|
2687
|
+
var provider = frame.type;
|
|
2688
|
+
this.popProvider(provider);
|
|
2689
|
+
}
|
|
2690
|
+
continue;
|
|
2670
2691
|
}
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
popCurrentDebugStack();
|
|
2692
|
+
var child = frame.children[frame.childIndex++];
|
|
2693
|
+
{
|
|
2694
|
+
pushCurrentDebugStack(this.stack);
|
|
2695
|
+
// We're starting work on this frame, so reset its inner stack.
|
|
2696
|
+
frame.debugElementStack.length = 0;
|
|
2697
|
+
try {
|
|
2698
|
+
// Be careful! Make sure this matches the PROD path below.
|
|
2699
|
+
out += this.render(child, frame.context, frame.domNamespace);
|
|
2700
|
+
} finally {
|
|
2701
|
+
popCurrentDebugStack();
|
|
2702
|
+
}
|
|
2683
2703
|
}
|
|
2684
2704
|
}
|
|
2705
|
+
return out;
|
|
2706
|
+
} finally {
|
|
2707
|
+
ReactCurrentOwner.currentDispatcher = null;
|
|
2685
2708
|
}
|
|
2686
|
-
return out;
|
|
2687
2709
|
};
|
|
2688
2710
|
|
|
2689
2711
|
ReactDOMServerRenderer.prototype.render = function render(child, context, parentNamespace) {
|
|
@@ -2743,7 +2765,7 @@ var ReactDOMServerRenderer = function () {
|
|
|
2743
2765
|
|
|
2744
2766
|
switch (elementType) {
|
|
2745
2767
|
case REACT_STRICT_MODE_TYPE:
|
|
2746
|
-
case
|
|
2768
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
2747
2769
|
case REACT_PROFILER_TYPE:
|
|
2748
2770
|
case REACT_FRAGMENT_TYPE:
|
|
2749
2771
|
{
|
|
@@ -2762,7 +2784,7 @@ var ReactDOMServerRenderer = function () {
|
|
|
2762
2784
|
this.stack.push(_frame);
|
|
2763
2785
|
return '';
|
|
2764
2786
|
}
|
|
2765
|
-
case
|
|
2787
|
+
case REACT_SUSPENSE_TYPE:
|
|
2766
2788
|
{
|
|
2767
2789
|
if (enableSuspenseServerRenderer) {
|
|
2768
2790
|
var _nextChildren2 = toArray(
|
|
@@ -2781,6 +2803,8 @@ var ReactDOMServerRenderer = function () {
|
|
|
2781
2803
|
}
|
|
2782
2804
|
this.stack.push(_frame2);
|
|
2783
2805
|
return '';
|
|
2806
|
+
} else {
|
|
2807
|
+
invariant(false, 'ReactDOMServer does not yet support Suspense.');
|
|
2784
2808
|
}
|
|
2785
2809
|
}
|
|
2786
2810
|
// eslint-disable-next-line-no-fallthrough
|
|
@@ -2807,26 +2831,44 @@ var ReactDOMServerRenderer = function () {
|
|
|
2807
2831
|
this.stack.push(_frame3);
|
|
2808
2832
|
return '';
|
|
2809
2833
|
}
|
|
2834
|
+
case REACT_MEMO_TYPE:
|
|
2835
|
+
{
|
|
2836
|
+
var _element = nextChild;
|
|
2837
|
+
var _nextChildren4 = [React.createElement(elementType.type, _assign({ ref: _element.ref }, _element.props))];
|
|
2838
|
+
var _frame4 = {
|
|
2839
|
+
type: null,
|
|
2840
|
+
domNamespace: parentNamespace,
|
|
2841
|
+
children: _nextChildren4,
|
|
2842
|
+
childIndex: 0,
|
|
2843
|
+
context: context,
|
|
2844
|
+
footer: ''
|
|
2845
|
+
};
|
|
2846
|
+
{
|
|
2847
|
+
_frame4.debugElementStack = [];
|
|
2848
|
+
}
|
|
2849
|
+
this.stack.push(_frame4);
|
|
2850
|
+
return '';
|
|
2851
|
+
}
|
|
2810
2852
|
case REACT_PROVIDER_TYPE:
|
|
2811
2853
|
{
|
|
2812
2854
|
var provider = nextChild;
|
|
2813
2855
|
var nextProps = provider.props;
|
|
2814
|
-
var
|
|
2815
|
-
var
|
|
2856
|
+
var _nextChildren5 = toArray(nextProps.children);
|
|
2857
|
+
var _frame5 = {
|
|
2816
2858
|
type: provider,
|
|
2817
2859
|
domNamespace: parentNamespace,
|
|
2818
|
-
children:
|
|
2860
|
+
children: _nextChildren5,
|
|
2819
2861
|
childIndex: 0,
|
|
2820
2862
|
context: context,
|
|
2821
2863
|
footer: ''
|
|
2822
2864
|
};
|
|
2823
2865
|
{
|
|
2824
|
-
|
|
2866
|
+
_frame5.debugElementStack = [];
|
|
2825
2867
|
}
|
|
2826
2868
|
|
|
2827
2869
|
this.pushProvider(provider);
|
|
2828
2870
|
|
|
2829
|
-
this.stack.push(
|
|
2871
|
+
this.stack.push(_frame5);
|
|
2830
2872
|
return '';
|
|
2831
2873
|
}
|
|
2832
2874
|
case REACT_CONTEXT_TYPE:
|
|
@@ -2835,23 +2877,23 @@ var ReactDOMServerRenderer = function () {
|
|
|
2835
2877
|
var _nextProps = consumer.props;
|
|
2836
2878
|
var nextValue = consumer.type._currentValue;
|
|
2837
2879
|
|
|
2838
|
-
var
|
|
2839
|
-
var
|
|
2880
|
+
var _nextChildren6 = toArray(_nextProps.children(nextValue));
|
|
2881
|
+
var _frame6 = {
|
|
2840
2882
|
type: nextChild,
|
|
2841
2883
|
domNamespace: parentNamespace,
|
|
2842
|
-
children:
|
|
2884
|
+
children: _nextChildren6,
|
|
2843
2885
|
childIndex: 0,
|
|
2844
2886
|
context: context,
|
|
2845
2887
|
footer: ''
|
|
2846
2888
|
};
|
|
2847
2889
|
{
|
|
2848
|
-
|
|
2890
|
+
_frame6.debugElementStack = [];
|
|
2849
2891
|
}
|
|
2850
|
-
this.stack.push(
|
|
2892
|
+
this.stack.push(_frame6);
|
|
2851
2893
|
return '';
|
|
2852
2894
|
}
|
|
2853
|
-
|
|
2854
|
-
|
|
2895
|
+
case REACT_LAZY_TYPE:
|
|
2896
|
+
invariant(false, 'ReactDOMServer does not yet support lazy-loaded components.');
|
|
2855
2897
|
}
|
|
2856
2898
|
}
|
|
2857
2899
|
|
|
@@ -3119,7 +3161,7 @@ var ReactMarkupReadableStream = function (_Readable) {
|
|
|
3119
3161
|
/**
|
|
3120
3162
|
* Render a ReactElement to its initial HTML. This should only be used on the
|
|
3121
3163
|
* server.
|
|
3122
|
-
* See https://reactjs.org/docs/react-dom-
|
|
3164
|
+
* See https://reactjs.org/docs/react-dom-server.html#rendertonodestream
|
|
3123
3165
|
*/
|
|
3124
3166
|
|
|
3125
3167
|
|
|
@@ -3130,7 +3172,7 @@ function renderToNodeStream(element) {
|
|
|
3130
3172
|
/**
|
|
3131
3173
|
* Similar to renderToNodeStream, except this doesn't create extra DOM attributes
|
|
3132
3174
|
* such as data-react-id that React uses internally.
|
|
3133
|
-
* See https://reactjs.org/docs/react-dom-
|
|
3175
|
+
* See https://reactjs.org/docs/react-dom-server.html#rendertostaticnodestream
|
|
3134
3176
|
*/
|
|
3135
3177
|
function renderToStaticNodeStream(element) {
|
|
3136
3178
|
return new ReactMarkupReadableStream(element, true);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.6.0
|
|
2
2
|
* react-dom-server.node.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -7,39 +7,41 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';var p=require("object-assign"),q=require("react"),aa=require("stream");function ba(a,b,d,c,
|
|
11
|
-
function
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
["
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
function ta(a
|
|
28
|
-
|
|
29
|
-
d,h),null
|
|
30
|
-
|
|
10
|
+
'use strict';var p=require("object-assign"),q=require("react"),aa=require("stream");function ba(a,b,d,c,k,f,h,l){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var D=[d,c,k,f,h,l],A=0;a=Error(b.replace(/%s/g,function(){return D[A++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}
|
|
11
|
+
function r(a){for(var b=arguments.length-1,d="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=0;c<b;c++)d+="&args[]="+encodeURIComponent(arguments[c+1]);ba(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",d)}
|
|
12
|
+
var w="function"===typeof Symbol&&Symbol.for,x=w?Symbol.for("react.portal"):60106,z=w?Symbol.for("react.fragment"):60107,B=w?Symbol.for("react.strict_mode"):60108,C=w?Symbol.for("react.profiler"):60114,E=w?Symbol.for("react.provider"):60109,F=w?Symbol.for("react.context"):60110,G=w?Symbol.for("react.concurrent_mode"):60111,H=w?Symbol.for("react.forward_ref"):60112,I=w?Symbol.for("react.suspense"):60113,J=w?Symbol.for("react.memo"):60115,K=w?Symbol.for("react.lazy"):60116;
|
|
13
|
+
function L(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case G:return"ConcurrentMode";case z:return"Fragment";case x:return"Portal";case C:return"Profiler";case B:return"StrictMode";case I:return"Suspense"}if("object"===typeof a)switch(a.$$typeof){case F:return"Context.Consumer";case E:return"Context.Provider";case H:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");
|
|
14
|
+
case J:return L(a.type);case K:if(a=1===a._status?a._result:null)return L(a)}return null}
|
|
15
|
+
var ca=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,da=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,M=Object.prototype.hasOwnProperty,N={},O={};
|
|
16
|
+
function P(a){if(M.call(O,a))return!0;if(M.call(N,a))return!1;if(da.test(a))return O[a]=!0;N[a]=!0;return!1}function ea(a,b,d,c){if(null!==d&&0===d.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(c)return!1;if(null!==d)return!d.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}
|
|
17
|
+
function fa(a,b,d,c){if(null===b||"undefined"===typeof b||ea(a,b,d,c))return!0;if(c)return!1;if(null!==d)switch(d.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function Q(a,b,d,c,k){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=k;this.mustUseProperty=d;this.propertyName=a;this.type=b}var R={};
|
|
18
|
+
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){R[a]=new Q(a,0,!1,a,null)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];R[b]=new Q(b,1,!1,a[1],null)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){R[a]=new Q(a,2,!1,a.toLowerCase(),null)});
|
|
19
|
+
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){R[a]=new Q(a,2,!1,a,null)});"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){R[a]=new Q(a,3,!1,a.toLowerCase(),null)});["checked","multiple","muted","selected"].forEach(function(a){R[a]=new Q(a,3,!0,a,null)});
|
|
20
|
+
["capture","download"].forEach(function(a){R[a]=new Q(a,4,!1,a,null)});["cols","rows","size","span"].forEach(function(a){R[a]=new Q(a,6,!1,a,null)});["rowSpan","start"].forEach(function(a){R[a]=new Q(a,5,!1,a.toLowerCase(),null)});var S=/[\-:]([a-z])/g;function T(a){return a[1].toUpperCase()}
|
|
21
|
+
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(S,
|
|
22
|
+
T);R[b]=new Q(b,1,!1,a,null)});"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(S,T);R[b]=new Q(b,1,!1,a,"http://www.w3.org/1999/xlink")});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(S,T);R[b]=new Q(b,1,!1,a,"http://www.w3.org/XML/1998/namespace")});R.tabIndex=new Q("tabIndex",1,!1,"tabindex",null);var ha=/["'&<>]/;
|
|
23
|
+
function U(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=ha.exec(a);if(b){var d="",c,k=0;for(c=b.index;c<a.length;c++){switch(a.charCodeAt(c)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}k!==c&&(d+=a.substring(k,c));k=c+1;d+=b}a=k!==c?d+a.substring(k,c):d}return a}var V={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};
|
|
24
|
+
function ia(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}
|
|
25
|
+
var ja={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ka=p({menuitem:!0},ja),W={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,
|
|
26
|
+
gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},la=["Webkit","ms","Moz","O"];Object.keys(W).forEach(function(a){la.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);W[b]=W[a]})});
|
|
27
|
+
var ma=/([A-Z])/g,na=/^ms-/,X=q.Children.toArray,oa=ca.ReactCurrentOwner,pa={readContext:function(a){return a._currentValue}},qa={listing:!0,pre:!0,textarea:!0},ra=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,sa={},Y={};function ta(a){if(void 0===a||null===a)return a;var b="";q.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}var ua={};function va(a,b){var d=a.contextType;if("object"===typeof d&&null!==d)return d._currentValue;if(a=a.contextTypes){d={};for(var c in a)d[c]=b[c];b=d}else b=ua;return b}
|
|
28
|
+
var wa=Object.prototype.hasOwnProperty,xa={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function ya(a,b){void 0===a&&r("152",L(b)||"Component")}
|
|
29
|
+
function za(a,b){function d(c,d){var k=va(d,b),f=[],h=!1,g={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===f)return null},enqueueReplaceState:function(a,b){h=!0;f=[b]},enqueueSetState:function(a,b){if(null===f)return null;f.push(b)}},e=void 0;if(d.prototype&&d.prototype.isReactComponent){if(e=new d(c.props,k,g),"function"===typeof d.getDerivedStateFromProps){var v=d.getDerivedStateFromProps.call(null,c.props,e.state);null!=v&&(e.state=p({},e.state,v))}}else if(e=d(c.props,
|
|
30
|
+
k,g),null==e||null==e.render){a=e;ya(a,d);return}e.props=c.props;e.context=k;e.updater=g;g=e.state;void 0===g&&(e.state=g=null);if("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount)if("function"===typeof e.componentWillMount&&"function"!==typeof d.getDerivedStateFromProps&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&"function"!==typeof d.getDerivedStateFromProps&&e.UNSAFE_componentWillMount(),f.length){g=f;var t=h;f=null;h=!1;if(t&&
|
|
31
|
+
1===g.length)e.state=g[0];else{v=t?g[0]:e.state;var m=!0;for(t=t?1:0;t<g.length;t++){var n=g[t];n="function"===typeof n?n.call(e,v,c.props,k):n;null!=n&&(m?(m=!1,v=p({},v,n)):p(v,n))}e.state=v}}else f=null;a=e.render();ya(a,d);c=void 0;if("function"===typeof e.getChildContext&&(k=d.childContextTypes,"object"===typeof k)){c=e.getChildContext();for(var y in c)y in k?void 0:r("108",L(d)||"Unknown",y)}c&&(b=p({},b,c))}for(;q.isValidElement(a);){var c=a,k=c.type;if("function"!==typeof k)break;d(c,k)}return{child:a,
|
|
31
32
|
context:b}}
|
|
32
|
-
var Z=function(){function a(b,d){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");q.isValidElement(b)?b.type!==
|
|
33
|
-
++this.contextIndex,c=a.type._context,
|
|
34
|
-
1];if(c.childIndex>=c.children.length){var
|
|
35
|
-
|
|
36
|
-
childIndex:0,context:d,footer:""}),""}if("object"===typeof b&&null!==b)switch(b.$$typeof){case H:return a=
|
|
37
|
-
footer:""}),""}
|
|
38
|
-
(1>=l.length?void 0:
|
|
39
|
-
|
|
40
|
-
n=e[
|
|
41
|
-
|
|
42
|
-
">");a:{l=f.dangerouslySetInnerHTML;if(null!=l){if(null!=l.__html){l=l.__html;break a}}else if(l=f.children,"string"===typeof l||"number"===typeof l){l=
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
33
|
+
var Z=function(){function a(b,d){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");q.isValidElement(b)?b.type!==z?b=[b]:(b=b.props.children,b=q.isValidElement(b)?[b]:X(b)):b=X(b);this.stack=[{type:null,domNamespace:V.html,children:b,childIndex:0,context:ua,footer:""}];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=d;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}a.prototype.pushProvider=function(a){var b=
|
|
34
|
+
++this.contextIndex,c=a.type._context,k=c._currentValue;this.contextStack[b]=c;this.contextValueStack[b]=k;c._currentValue=a.props.value};a.prototype.popProvider=function(){var a=this.contextIndex,d=this.contextStack[a],c=this.contextValueStack[a];this.contextStack[a]=null;this.contextValueStack[a]=null;this.contextIndex--;d._currentValue=c};a.prototype.read=function(a){if(this.exhausted)return null;oa.currentDispatcher=pa;try{for(var b="";b.length<a;){if(0===this.stack.length){this.exhausted=!0;
|
|
35
|
+
break}var c=this.stack[this.stack.length-1];if(c.childIndex>=c.children.length){var k=c.footer;b+=k;""!==k&&(this.previousWasTextNode=!1);this.stack.pop();"select"===c.type?this.currentSelectValue=null:null!=c.type&&null!=c.type.type&&c.type.type.$$typeof===E&&this.popProvider(c.type)}else{var f=c.children[c.childIndex++];b+=this.render(f,c.context,c.domNamespace)}}return b}finally{oa.currentDispatcher=null}};a.prototype.render=function(a,d,c){if("string"===typeof a||"number"===typeof a){c=""+a;if(""===
|
|
36
|
+
c)return"";if(this.makeStaticMarkup)return U(c);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+U(c);this.previousWasTextNode=!0;return U(c)}d=za(a,d);a=d.child;d=d.context;if(null===a||!1===a)return"";if(!q.isValidElement(a)){if(null!=a&&null!=a.$$typeof){var b=a.$$typeof;b===x?r("257"):void 0;r("258",b.toString())}a=X(a);this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""});return""}b=a.type;if("string"===typeof b)return this.renderDOM(a,d,c);switch(b){case B:case G:case C:case z:return a=
|
|
37
|
+
X(a.props.children),this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case I:r("294")}if("object"===typeof b&&null!==b)switch(b.$$typeof){case H:return a=X(b.render(a.props,a.ref)),this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case J:return a=[q.createElement(b.type,p({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case E:return b=X(a.props.children),
|
|
38
|
+
c={type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:""},this.pushProvider(a),this.stack.push(c),"";case F:return b=X(a.props.children(a.type._currentValue)),this.stack.push({type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:""}),"";case K:r("295")}r("130",null==b?b:typeof b,"")};a.prototype.renderDOM=function(a,d,c){var b=a.type.toLowerCase();c===V.html&&ia(b);sa.hasOwnProperty(b)||(ra.test(b)?void 0:r("65",b),sa[b]=!0);var f=a.props;if("input"===b)f=p({type:void 0},f,{defaultChecked:void 0,
|
|
39
|
+
defaultValue:void 0,value:null!=f.value?f.value:f.defaultValue,checked:null!=f.checked?f.checked:f.defaultChecked});else if("textarea"===b){var h=f.value;if(null==h){h=f.defaultValue;var l=f.children;null!=l&&(null!=h?r("92"):void 0,Array.isArray(l)&&(1>=l.length?void 0:r("93"),l=l[0]),h=""+l);null==h&&(h="")}f=p({},f,{value:void 0,children:""+h})}else if("select"===b)this.currentSelectValue=null!=f.value?f.value:f.defaultValue,f=p({},f,{value:void 0});else if("option"===b){l=this.currentSelectValue;
|
|
40
|
+
var D=ta(f.children);if(null!=l){var A=null!=f.value?f.value+"":D;h=!1;if(Array.isArray(l))for(var g=0;g<l.length;g++){if(""+l[g]===A){h=!0;break}}else h=""+l===A;f=p({selected:void 0,children:void 0},f,{selected:h,children:D})}}if(h=f)ka[b]&&(null!=h.children||null!=h.dangerouslySetInnerHTML?r("137",b,""):void 0),null!=h.dangerouslySetInnerHTML&&(null!=h.children?r("60"):void 0,"object"===typeof h.dangerouslySetInnerHTML&&"__html"in h.dangerouslySetInnerHTML?void 0:r("61")),null!=h.style&&"object"!==
|
|
41
|
+
typeof h.style?r("62",""):void 0;h=f;l=this.makeStaticMarkup;D=1===this.stack.length;A="<"+a.type;for(u in h)if(wa.call(h,u)){var e=h[u];if(null!=e){if("style"===u){g=void 0;var v="",t="";for(g in e)if(e.hasOwnProperty(g)){var m=0===g.indexOf("--"),n=e[g];if(null!=n){var y=g;if(Y.hasOwnProperty(y))y=Y[y];else{var Ea=y.replace(ma,"-$1").toLowerCase().replace(na,"-ms-");y=Y[y]=Ea}v+=t+y+":";t=g;m=null==n||"boolean"===typeof n||""===n?"":m||"number"!==typeof n||0===n||W.hasOwnProperty(t)&&W[t]?(""+n).trim():
|
|
42
|
+
n+"px";v+=m;t=";"}}e=v||null}g=null;b:if(m=b,n=h,-1===m.indexOf("-"))m="string"===typeof n.is;else switch(m){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":m=!1;break b;default:m=!0}if(m)xa.hasOwnProperty(u)||(g=u,g=P(g)&&null!=e?g+"="+('"'+U(e)+'"'):"");else{m=u;g=e;e=R.hasOwnProperty(m)?R[m]:null;if(n="style"!==m)n=null!==e?0===e.type:!(2<m.length)||"o"!==m[0]&&"O"!==m[0]||"n"!==
|
|
43
|
+
m[1]&&"N"!==m[1]?!1:!0;n||fa(m,g,e,!1)?g="":null!==e?(m=e.attributeName,e=e.type,g=3===e||4===e&&!0===g?m+'=""':m+"="+('"'+U(g)+'"')):g=P(m)?m+"="+('"'+U(g)+'"'):""}g&&(A+=" "+g)}}l||D&&(A+=' data-reactroot=""');var u=A;h="";ja.hasOwnProperty(b)?u+="/>":(u+=">",h="</"+a.type+">");a:{l=f.dangerouslySetInnerHTML;if(null!=l){if(null!=l.__html){l=l.__html;break a}}else if(l=f.children,"string"===typeof l||"number"===typeof l){l=U(l);break a}l=null}null!=l?(f=[],qa[b]&&"\n"===l.charAt(0)&&(u+="\n"),u+=
|
|
44
|
+
l):f=X(f.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?ia(a):"http://www.w3.org/2000/svg"===c&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":c;this.stack.push({domNamespace:c,type:b,children:f,childIndex:0,context:d,footer:h});this.previousWasTextNode=!1;return u};return a}();
|
|
45
|
+
function Aa(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}
|
|
46
|
+
var Ba=function(a){function b(d,c){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var k=a.call(this,{});if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");k=!k||"object"!==typeof k&&"function"!==typeof k?this:k;k.partialRenderer=new Z(d,c);return k}Aa(b,a);b.prototype._read=function(a){try{this.push(this.partialRenderer.read(a))}catch(c){this.emit("error",c)}};return b}(aa.Readable),Ca={renderToString:function(a){return(new Z(a,
|
|
47
|
+
!1)).read(Infinity)},renderToStaticMarkup:function(a){return(new Z(a,!0)).read(Infinity)},renderToNodeStream:function(a){return new Ba(a,!1)},renderToStaticNodeStream:function(a){return new Ba(a,!0)},version:"16.6.0"},Da={default:Ca},Fa=Da&&Ca||Da;module.exports=Fa.default||Fa;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.6.0
|
|
2
2
|
* react-dom-test-utils.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -179,15 +179,13 @@ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FI
|
|
|
179
179
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
180
180
|
// nor polyfill, then a plain number is used for performance.
|
|
181
181
|
|
|
182
|
-
var
|
|
183
|
-
var
|
|
184
|
-
|
|
185
|
-
var
|
|
186
|
-
// Before we know whether it is functional or class
|
|
187
|
-
var HostRoot = 5; // Root of a host tree. Could be nested inside another node.
|
|
182
|
+
var FunctionComponent = 0;
|
|
183
|
+
var ClassComponent = 1;
|
|
184
|
+
// Before we know whether it is function or class
|
|
185
|
+
var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
|
|
188
186
|
// A subtree. Could be an entry point to a different renderer.
|
|
189
|
-
var HostComponent =
|
|
190
|
-
var HostText =
|
|
187
|
+
var HostComponent = 5;
|
|
188
|
+
var HostText = 6;
|
|
191
189
|
|
|
192
190
|
// Don't change these two values. They're used by React Dev Tools.
|
|
193
191
|
var NoEffect = /* */0;
|
|
@@ -931,7 +929,7 @@ function findAllInRenderedFiberTreeInternal(fiber, test) {
|
|
|
931
929
|
var node = currentParent;
|
|
932
930
|
var ret = [];
|
|
933
931
|
while (true) {
|
|
934
|
-
if (node.tag === HostComponent || node.tag === HostText || node.tag === ClassComponent || node.tag ===
|
|
932
|
+
if (node.tag === HostComponent || node.tag === HostText || node.tag === ClassComponent || node.tag === FunctionComponent) {
|
|
935
933
|
var publicInst = node.stateNode;
|
|
936
934
|
if (test(publicInst)) {
|
|
937
935
|
ret.push(publicInst);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.6.0
|
|
2
2
|
* react-dom-test-utils.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
|
|
10
10
|
'use strict';var g=require("object-assign"),l=require("react"),m=require("react-dom");function n(a,b,c,e,d,k,f,h){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var L=[c,e,d,k,f,h],M=0;a=Error(b.replace(/%s/g,function(){return L[M++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}
|
|
11
11
|
function p(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,e=0;e<b;e++)c+="&args[]="+encodeURIComponent(arguments[e+1]);n(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",c)}
|
|
12
|
-
function q(a){var b=a;if(a.alternate)for(;b.return;)b=b.return;else{if(0!==(b.effectTag&2))return 1;for(;b.return;)if(b=b.return,0!==(b.effectTag&2))return 1}return
|
|
12
|
+
function q(a){var b=a;if(a.alternate)for(;b.return;)b=b.return;else{if(0!==(b.effectTag&2))return 1;for(;b.return;)if(b=b.return,0!==(b.effectTag&2))return 1}return 3===b.tag?2:3}function r(a){2!==q(a)?p("188"):void 0}
|
|
13
13
|
function t(a){var b=a.alternate;if(!b)return b=q(a),3===b?p("188"):void 0,1===b?null:a;for(var c=a,e=b;;){var d=c.return,k=d?d.alternate:null;if(!d||!k)break;if(d.child===k.child){for(var f=d.child;f;){if(f===c)return r(d),a;if(f===e)return r(d),b;f=f.sibling}p("188")}if(c.return!==e.return)c=d,e=k;else{f=!1;for(var h=d.child;h;){if(h===c){f=!0;c=d;e=k;break}if(h===e){f=!0;e=d;c=k;break}h=h.sibling}if(!f){for(h=k.child;h;){if(h===c){f=!0;c=k;e=d;break}if(h===e){f=!0;e=k;c=d;break}h=h.sibling}f?void 0:
|
|
14
|
-
p("189")}}c.alternate!==e?p("190"):void 0}
|
|
14
|
+
p("189")}}c.alternate!==e?p("190"):void 0}3!==c.tag?p("188"):void 0;return c.stateNode.current===c?a:b}function u(){return!0}function v(){return!1}function w(a,b,c,e){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var d in a)a.hasOwnProperty(d)&&((b=a[d])?this[d]=b(c):"target"===d?this.target=e:this[d]=c[d]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?u:v;this.isPropagationStopped=v;return this}
|
|
15
15
|
g(w.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=u)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=u)},persist:function(){this.isPersistent=u},isPersistent:v,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=
|
|
16
16
|
null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=v;this._dispatchInstances=this._dispatchListeners=null}});w.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};
|
|
17
17
|
w.extend=function(a){function b(){}function c(){return e.apply(this,arguments)}var e=this;b.prototype=e.prototype;var d=new b;g(d,c.prototype);c.prototype=d;c.prototype.constructor=c;c.Interface=g({},e.Interface,a);c.extend=e.extend;x(c);return c};x(w);function y(a,b,c,e){if(this.eventPool.length){var d=this.eventPool.pop();this.call(d,a,b,c,e);return d}return new this(a,b,c,e)}function z(a){a instanceof this?void 0:p("279");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}
|
|
18
18
|
function x(a){a.eventPool=[];a.getPooled=y;a.release=z}var A=!("undefined"===typeof window||!window.document||!window.document.createElement);function B(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}var C={animationend:B("Animation","AnimationEnd"),animationiteration:B("Animation","AnimationIteration"),animationstart:B("Animation","AnimationStart"),transitionend:B("Transition","TransitionEnd")},D={},E={};
|
|
19
19
|
A&&(E=document.createElement("div").style,"AnimationEvent"in window||(delete C.animationend.animation,delete C.animationiteration.animation,delete C.animationstart.animation),"TransitionEvent"in window||delete C.transitionend.transition);function F(a){if(D[a])return D[a];if(!C[a])return a;var b=C[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in E)return D[a]=b[c];return a}
|
|
20
20
|
var G=F("animationend"),H=F("animationiteration"),I=F("animationstart"),J=F("transitionend"),K=m.findDOMNode,N=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,O=N[0],P=N[4],Q=N[5],R=N[6],S=N[7],aa=N[8],T=N[9],ba=N[10];function U(){}
|
|
21
|
-
function ca(a,b){if(!a)return[];a=t(a);if(!a)return[];for(var c=a,e=[];;){if(
|
|
21
|
+
function ca(a,b){if(!a)return[];a=t(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||1===c.tag||0===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=c,c=c.child;else{if(c===a)return e;for(;!c.sibling;){if(!c.return||c.return===a)return e;c=c.return}c.sibling.return=c.return;c=c.sibling}}}
|
|
22
22
|
function V(a,b){if(a&&!a._reactInternalFiber){var c=""+a;a=Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;p("286",b,a)}}
|
|
23
23
|
var W={renderIntoDocument:function(a){var b=document.createElement("div");return m.render(a,b)},isElement:function(a){return l.isValidElement(a)},isElementOfType:function(a,b){return l.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&l.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return W.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState},isCompositeComponentWithType:function(a,
|
|
24
24
|
b){return W.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){V(a,"findAllInRenderedTree");return a?ca(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){V(a,"scryRenderedDOMComponentsWithClass");return W.findAllInRenderedTree(a,function(a){if(W.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);Array.isArray(b)||(void 0===b?p("11"):void 0,b=b.split(/\s+/));return b.every(function(a){return-1!==
|