react 16.10.0 → 16.12.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/build-info.json +4 -4
- package/cjs/react.development.js +53 -65
- package/cjs/react.production.min.js +16 -16
- package/package.json +1 -1
- package/umd/react.development.js +126 -256
- package/umd/react.production.min.js +25 -26
- package/umd/react.profiling.min.js +31 -31
package/build-info.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"branch": "master",
|
|
3
|
-
"buildNumber": "
|
|
4
|
-
"checksum": "
|
|
5
|
-
"commit": "
|
|
3
|
+
"buildNumber": "59518",
|
|
4
|
+
"checksum": "6f449c4",
|
|
5
|
+
"commit": "b53ea6ca0",
|
|
6
6
|
"environment": "ci",
|
|
7
|
-
"reactVersion": "16.
|
|
7
|
+
"reactVersion": "16.11.0-b53ea6ca0"
|
|
8
8
|
}
|
package/cjs/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.12.0
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -20,7 +20,7 @@ var checkPropTypes = require('prop-types/checkPropTypes');
|
|
|
20
20
|
|
|
21
21
|
// TODO: this is special because it gets imported during build.
|
|
22
22
|
|
|
23
|
-
var ReactVersion = '16.
|
|
23
|
+
var ReactVersion = '16.12.0';
|
|
24
24
|
|
|
25
25
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
26
26
|
// nor polyfill, then a plain number is used for performance.
|
|
@@ -61,16 +61,8 @@ function getIteratorFn(maybeIterable) {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
// Do not require this module directly! Use normal `invariant` calls with
|
|
64
|
-
// template literal strings. The messages will be
|
|
65
|
-
// build
|
|
66
|
-
|
|
67
|
-
// Do not require this module directly! Use normal `invariant` calls with
|
|
68
|
-
// template literal strings. The messages will be converted to ReactError during
|
|
69
|
-
// build, and in production they will be minified.
|
|
70
|
-
function ReactError(error) {
|
|
71
|
-
error.name = 'Invariant Violation';
|
|
72
|
-
return error;
|
|
73
|
-
}
|
|
64
|
+
// template literal strings. The messages will be replaced with error codes
|
|
65
|
+
// during build.
|
|
74
66
|
|
|
75
67
|
/**
|
|
76
68
|
* Use invariant() to assert state which your program assumes to be true.
|
|
@@ -324,13 +316,11 @@ Component.prototype.isReactComponent = {};
|
|
|
324
316
|
*/
|
|
325
317
|
|
|
326
318
|
Component.prototype.setState = function (partialState, callback) {
|
|
327
|
-
(function
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
throw ReactError(Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."));
|
|
331
|
-
}
|
|
319
|
+
if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
|
|
320
|
+
{
|
|
321
|
+
throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
332
322
|
}
|
|
333
|
-
}
|
|
323
|
+
}
|
|
334
324
|
|
|
335
325
|
this.updater.enqueueSetState(this, partialState, callback, 'setState');
|
|
336
326
|
};
|
|
@@ -720,8 +710,8 @@ function defineRefPropWarningGetter(props, displayName) {
|
|
|
720
710
|
}
|
|
721
711
|
/**
|
|
722
712
|
* Factory method to create a new React element. This no longer adheres to
|
|
723
|
-
* the class pattern, so do not use new to call it. Also,
|
|
724
|
-
* will work. Instead test $$typeof field against Symbol.for('react.element') to check
|
|
713
|
+
* the class pattern, so do not use new to call it. Also, instanceof check
|
|
714
|
+
* will not work. Instead test $$typeof field against Symbol.for('react.element') to check
|
|
725
715
|
* if something is a React Element.
|
|
726
716
|
*
|
|
727
717
|
* @param {*} type
|
|
@@ -963,13 +953,11 @@ function cloneAndReplaceKey(oldElement, newKey) {
|
|
|
963
953
|
*/
|
|
964
954
|
|
|
965
955
|
function cloneElement(element, config, children) {
|
|
966
|
-
(
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
throw ReactError(Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + "."));
|
|
970
|
-
}
|
|
956
|
+
if (!!(element === null || element === undefined)) {
|
|
957
|
+
{
|
|
958
|
+
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
|
|
971
959
|
}
|
|
972
|
-
}
|
|
960
|
+
}
|
|
973
961
|
|
|
974
962
|
var propName; // Original props are copied
|
|
975
963
|
|
|
@@ -1202,13 +1190,11 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
1202
1190
|
|
|
1203
1191
|
var childrenString = '' + children;
|
|
1204
1192
|
|
|
1205
|
-
|
|
1193
|
+
{
|
|
1206
1194
|
{
|
|
1207
|
-
{
|
|
1208
|
-
throw ReactError(Error("Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum));
|
|
1209
|
-
}
|
|
1195
|
+
throw Error("Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum);
|
|
1210
1196
|
}
|
|
1211
|
-
}
|
|
1197
|
+
}
|
|
1212
1198
|
}
|
|
1213
1199
|
}
|
|
1214
1200
|
|
|
@@ -1394,13 +1380,11 @@ function toArray(children) {
|
|
|
1394
1380
|
|
|
1395
1381
|
|
|
1396
1382
|
function onlyChild(children) {
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
throw ReactError(Error("React.Children.only expected to receive a single React element child."));
|
|
1401
|
-
}
|
|
1383
|
+
if (!isValidElement(children)) {
|
|
1384
|
+
{
|
|
1385
|
+
throw Error("React.Children.only expected to receive a single React element child.");
|
|
1402
1386
|
}
|
|
1403
|
-
}
|
|
1387
|
+
}
|
|
1404
1388
|
|
|
1405
1389
|
return children;
|
|
1406
1390
|
}
|
|
@@ -1601,13 +1585,11 @@ function memo(type, compare) {
|
|
|
1601
1585
|
function resolveDispatcher() {
|
|
1602
1586
|
var dispatcher = ReactCurrentDispatcher.current;
|
|
1603
1587
|
|
|
1604
|
-
(
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
throw ReactError(Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem."));
|
|
1608
|
-
}
|
|
1588
|
+
if (!(dispatcher !== null)) {
|
|
1589
|
+
{
|
|
1590
|
+
throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");
|
|
1609
1591
|
}
|
|
1610
|
-
}
|
|
1592
|
+
}
|
|
1611
1593
|
|
|
1612
1594
|
return dispatcher;
|
|
1613
1595
|
}
|
|
@@ -1683,6 +1665,14 @@ function useResponder(responder, listenerProps) {
|
|
|
1683
1665
|
|
|
1684
1666
|
return dispatcher.useResponder(responder, listenerProps || emptyObject$1);
|
|
1685
1667
|
}
|
|
1668
|
+
function useTransition(config) {
|
|
1669
|
+
var dispatcher = resolveDispatcher();
|
|
1670
|
+
return dispatcher.useTransition(config);
|
|
1671
|
+
}
|
|
1672
|
+
function useDeferredValue(value, config) {
|
|
1673
|
+
var dispatcher = resolveDispatcher();
|
|
1674
|
+
return dispatcher.useDeferredValue(value, config);
|
|
1675
|
+
}
|
|
1686
1676
|
|
|
1687
1677
|
function withSuspenseConfig(scope, config) {
|
|
1688
1678
|
var previousConfig = ReactCurrentBatchConfig.suspense;
|
|
@@ -2172,10 +2162,9 @@ function createEventResponder(displayName, responderConfig) {
|
|
|
2172
2162
|
return eventResponder;
|
|
2173
2163
|
}
|
|
2174
2164
|
|
|
2175
|
-
function createScope(
|
|
2165
|
+
function createScope() {
|
|
2176
2166
|
var scopeComponent = {
|
|
2177
|
-
$$typeof: REACT_SCOPE_TYPE
|
|
2178
|
-
fn: fn
|
|
2167
|
+
$$typeof: REACT_SCOPE_TYPE
|
|
2179
2168
|
};
|
|
2180
2169
|
|
|
2181
2170
|
{
|
|
@@ -2185,12 +2174,8 @@ function createScope(fn) {
|
|
|
2185
2174
|
return scopeComponent;
|
|
2186
2175
|
}
|
|
2187
2176
|
|
|
2188
|
-
// Helps identify side effects in
|
|
2189
|
-
|
|
2190
|
-
// In some cases, StrictMode should also double-render lifecycles.
|
|
2191
|
-
// This can be confusing for tests though,
|
|
2192
|
-
// And it can be bad for performance in production.
|
|
2193
|
-
// This feature flag can be used to control the behavior:
|
|
2177
|
+
// Helps identify side effects in render-phase lifecycle hooks and setState
|
|
2178
|
+
// reducers by double invoking them in Strict Mode.
|
|
2194
2179
|
|
|
2195
2180
|
// To preserve the "Pause on caught exceptions" behavior of the debugger, we
|
|
2196
2181
|
// replay the begin phase of a failed component inside invokeGuardedCallback.
|
|
@@ -2201,9 +2186,8 @@ function createScope(fn) {
|
|
|
2201
2186
|
|
|
2202
2187
|
// Trace which interactions trigger each commit.
|
|
2203
2188
|
|
|
2204
|
-
//
|
|
2189
|
+
// SSR experiments
|
|
2205
2190
|
|
|
2206
|
-
// TODO: true? Here it might just be false.
|
|
2207
2191
|
|
|
2208
2192
|
// Only used in www builds.
|
|
2209
2193
|
|
|
@@ -2217,10 +2201,7 @@ function createScope(fn) {
|
|
|
2217
2201
|
// These APIs will no longer be "unstable" in the upcoming 16.7 release,
|
|
2218
2202
|
// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
|
|
2219
2203
|
|
|
2220
|
-
|
|
2221
|
-
// See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
|
|
2222
|
-
// This is a flag so we can fix warnings in RN core before turning it on
|
|
2223
|
-
|
|
2204
|
+
var exposeConcurrentModeAPIs = false;
|
|
2224
2205
|
// Experimental React Flare event system and event components support.
|
|
2225
2206
|
|
|
2226
2207
|
var enableFlareAPI = false; // Experimental Host Component support.
|
|
@@ -2230,15 +2211,11 @@ var enableFundamentalAPI = false; // Experimental Scope support.
|
|
|
2230
2211
|
var enableScopeAPI = false; // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
|
|
2231
2212
|
|
|
2232
2213
|
var enableJSXTransformAPI = false; // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
|
|
2233
|
-
// Till then, we warn about the missing mock, but still fallback to a
|
|
2214
|
+
// Till then, we warn about the missing mock, but still fallback to a legacy mode compatible version
|
|
2234
2215
|
|
|
2235
2216
|
// For tests, we flush suspense fallbacks in an act scope;
|
|
2236
2217
|
// *except* in some of our own tests, where we test incremental loading states.
|
|
2237
2218
|
|
|
2238
|
-
// Changes priority of some events like mousemove to user-blocking priority,
|
|
2239
|
-
// but without making them discrete. The flag exists in case it causes
|
|
2240
|
-
// starvation problems.
|
|
2241
|
-
|
|
2242
2219
|
// Add a callback property to suspense to notify which promises are currently
|
|
2243
2220
|
// in the update queue. This allows reporting and tracing of what is causing
|
|
2244
2221
|
// the user to see a loading state.
|
|
@@ -2249,6 +2226,12 @@ var enableJSXTransformAPI = false; // We will enforce mocking scheduler with sch
|
|
|
2249
2226
|
// from React.createElement to React.jsx
|
|
2250
2227
|
// https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
|
|
2251
2228
|
|
|
2229
|
+
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
|
|
2233
|
+
// Flag to turn event.target and event.currentTarget in ReactNative from a reactTag to a component instance
|
|
2234
|
+
|
|
2252
2235
|
var React = {
|
|
2253
2236
|
Children: {
|
|
2254
2237
|
map: mapChildren,
|
|
@@ -2278,16 +2261,21 @@ var React = {
|
|
|
2278
2261
|
Profiler: REACT_PROFILER_TYPE,
|
|
2279
2262
|
StrictMode: REACT_STRICT_MODE_TYPE,
|
|
2280
2263
|
Suspense: REACT_SUSPENSE_TYPE,
|
|
2281
|
-
unstable_SuspenseList: REACT_SUSPENSE_LIST_TYPE,
|
|
2282
2264
|
createElement: createElementWithValidation,
|
|
2283
2265
|
cloneElement: cloneElementWithValidation,
|
|
2284
2266
|
createFactory: createFactoryWithValidation,
|
|
2285
2267
|
isValidElement: isValidElement,
|
|
2286
2268
|
version: ReactVersion,
|
|
2287
|
-
unstable_withSuspenseConfig: withSuspenseConfig,
|
|
2288
2269
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
|
|
2289
2270
|
};
|
|
2290
2271
|
|
|
2272
|
+
if (exposeConcurrentModeAPIs) {
|
|
2273
|
+
React.useTransition = useTransition;
|
|
2274
|
+
React.useDeferredValue = useDeferredValue;
|
|
2275
|
+
React.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
2276
|
+
React.unstable_withSuspenseConfig = withSuspenseConfig;
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2291
2279
|
if (enableFlareAPI) {
|
|
2292
2280
|
React.unstable_useResponder = useResponder;
|
|
2293
2281
|
React.unstable_createResponder = createEventResponder;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.12.0
|
|
2
2
|
* react.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';var h=require("object-assign"),n="function"===typeof Symbol&&Symbol.for,p=n?Symbol.for("react.element"):60103,q=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,t=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,v=n?Symbol.for("react.provider"):60109,w=n?Symbol.for("react.context"):60110,x=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113
|
|
11
|
-
60115,
|
|
12
|
-
function
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
function M(a,b,c){var d
|
|
16
|
-
function
|
|
10
|
+
'use strict';var h=require("object-assign"),n="function"===typeof Symbol&&Symbol.for,p=n?Symbol.for("react.element"):60103,q=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,t=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,v=n?Symbol.for("react.provider"):60109,w=n?Symbol.for("react.context"):60110,x=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113;n&&Symbol.for("react.suspense_list");
|
|
11
|
+
var z=n?Symbol.for("react.memo"):60115,aa=n?Symbol.for("react.lazy"):60116;n&&Symbol.for("react.fundamental");n&&Symbol.for("react.responder");n&&Symbol.for("react.scope");var A="function"===typeof Symbol&&Symbol.iterator;
|
|
12
|
+
function B(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D={};
|
|
13
|
+
function E(a,b,c){this.props=a;this.context=b;this.refs=D;this.updater=c||C}E.prototype.isReactComponent={};E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(B(85));this.updater.enqueueSetState(this,a,b,"setState")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function F(){}F.prototype=E.prototype;function G(a,b,c){this.props=a;this.context=b;this.refs=D;this.updater=c||C}var H=G.prototype=new F;
|
|
14
|
+
H.constructor=G;h(H,E.prototype);H.isPureReactComponent=!0;var I={current:null},J={current:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};
|
|
15
|
+
function M(a,b,c){var e,d={},g=null,l=null;if(null!=b)for(e in void 0!==b.ref&&(l=b.ref),void 0!==b.key&&(g=""+b.key),b)K.call(b,e)&&!L.hasOwnProperty(e)&&(d[e]=b[e]);var f=arguments.length-2;if(1===f)d.children=c;else if(1<f){for(var k=Array(f),m=0;m<f;m++)k[m]=arguments[m+2];d.children=k}if(a&&a.defaultProps)for(e in f=a.defaultProps,f)void 0===d[e]&&(d[e]=f[e]);return{$$typeof:p,type:a,key:g,ref:l,props:d,_owner:J.current}}
|
|
16
|
+
function ba(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function N(a){return"object"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var O=/\/+/g,P=[];function Q(a,b,c,e){if(P.length){var d=P.pop();d.result=a;d.keyPrefix=b;d.func=c;d.context=e;d.count=0;return d}return{result:a,keyPrefix:b,func:c,context:e,count:0}}
|
|
17
17
|
function R(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>P.length&&P.push(a)}
|
|
18
|
-
function S(a,b,c,
|
|
19
|
-
0;!(
|
|
20
|
-
function
|
|
21
|
-
var X={Children:{map:function(a,b,c){if(null==a)return a;var
|
|
22
|
-
_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:x,render:a}},lazy:function(a){return{$$typeof:
|
|
23
|
-
b,c){return W().useImperativeHandle(a,b,c)},useDebugValue:function(){},useLayoutEffect:function(a,b){return W().useLayoutEffect(a,b)},useMemo:function(a,b){return W().useMemo(a,b)},useReducer:function(a,b,c){return W().useReducer(a,b,c)},useRef:function(a){return W().useRef(a)},useState:function(a){return W().useState(a)},Fragment:r,Profiler:u,StrictMode:t,Suspense:y,
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
function S(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return c(e,a,""===b?"."+T(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var l=0;l<a.length;l++){d=a[l];var f=b+T(d,l);g+=S(d,f,c,e)}else if(null===a||"object"!==typeof a?f=null:(f=A&&a[A]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),l=
|
|
19
|
+
0;!(d=a.next()).done;)d=d.value,f=b+T(d,l++),g+=S(d,f,c,e);else if("object"===d)throw c=""+a,Error(B(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return g}function U(a,b,c){return null==a?0:S(a,"",b,c)}function T(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function ca(a,b){a.func.call(a.context,b,a.count++)}
|
|
20
|
+
function da(a,b,c){var e=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?V(a,e,c,function(a){return a}):null!=a&&(N(a)&&(a=ba(a,d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+c)),e.push(a))}function V(a,b,c,e,d){var g="";null!=c&&(g=(""+c).replace(O,"$&/")+"/");b=Q(b,g,e,d);U(a,da,b);R(b)}function W(){var a=I.current;if(null===a)throw Error(B(321));return a}
|
|
21
|
+
var X={Children:{map:function(a,b,c){if(null==a)return a;var e=[];V(a,e,null,b,c);return e},forEach:function(a,b,c){if(null==a)return a;b=Q(null,null,b,c);U(a,ca,b);R(b)},count:function(a){return U(a,function(){return null},null)},toArray:function(a){var b=[];V(a,b,null,function(a){return a});return b},only:function(a){if(!N(a))throw Error(B(143));return a}},createRef:function(){return{current:null}},Component:E,PureComponent:G,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,
|
|
22
|
+
_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:x,render:a}},lazy:function(a){return{$$typeof:aa,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:z,type:a,compare:void 0===b?null:b}},useCallback:function(a,b){return W().useCallback(a,b)},useContext:function(a,b){return W().useContext(a,b)},useEffect:function(a,b){return W().useEffect(a,b)},useImperativeHandle:function(a,
|
|
23
|
+
b,c){return W().useImperativeHandle(a,b,c)},useDebugValue:function(){},useLayoutEffect:function(a,b){return W().useLayoutEffect(a,b)},useMemo:function(a,b){return W().useMemo(a,b)},useReducer:function(a,b,c){return W().useReducer(a,b,c)},useRef:function(a){return W().useRef(a)},useState:function(a){return W().useState(a)},Fragment:r,Profiler:u,StrictMode:t,Suspense:y,createElement:M,cloneElement:function(a,b,c){if(null===a||void 0===a)throw Error(B(267,a));var e=h({},a.props),d=a.key,g=a.ref,l=a._owner;
|
|
24
|
+
if(null!=b){void 0!==b.ref&&(g=b.ref,l=J.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(k in b)K.call(b,k)&&!L.hasOwnProperty(k)&&(e[k]=void 0===b[k]&&void 0!==f?f[k]:b[k])}var k=arguments.length-2;if(1===k)e.children=c;else if(1<k){f=Array(k);for(var m=0;m<k;m++)f[m]=arguments[m+2];e.children=f}return{$$typeof:p,type:a.type,key:d,ref:g,props:e,_owner:l}},createFactory:function(a){var b=M.bind(null,a);b.type=a;return b},isValidElement:N,version:"16.12.0",
|
|
25
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:I,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:J,IsSomeRendererActing:{current:!1},assign:h}},Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;
|
package/package.json
CHANGED
package/umd/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.12.0
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
// TODO: this is special because it gets imported during build.
|
|
19
19
|
|
|
20
|
-
var ReactVersion = '16.
|
|
20
|
+
var ReactVersion = '16.12.0';
|
|
21
21
|
|
|
22
22
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
23
23
|
// nor polyfill, then a plain number is used for performance.
|
|
@@ -149,16 +149,8 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
|
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
// Do not require this module directly! Use normal `invariant` calls with
|
|
152
|
-
// template literal strings. The messages will be
|
|
153
|
-
// build
|
|
154
|
-
|
|
155
|
-
// Do not require this module directly! Use normal `invariant` calls with
|
|
156
|
-
// template literal strings. The messages will be converted to ReactError during
|
|
157
|
-
// build, and in production they will be minified.
|
|
158
|
-
function ReactError(error) {
|
|
159
|
-
error.name = 'Invariant Violation';
|
|
160
|
-
return error;
|
|
161
|
-
}
|
|
152
|
+
// template literal strings. The messages will be replaced with error codes
|
|
153
|
+
// during build.
|
|
162
154
|
|
|
163
155
|
/**
|
|
164
156
|
* Use invariant() to assert state which your program assumes to be true.
|
|
@@ -412,13 +404,11 @@ Component.prototype.isReactComponent = {};
|
|
|
412
404
|
*/
|
|
413
405
|
|
|
414
406
|
Component.prototype.setState = function (partialState, callback) {
|
|
415
|
-
(function
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
throw ReactError(Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."));
|
|
419
|
-
}
|
|
407
|
+
if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
|
|
408
|
+
{
|
|
409
|
+
throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
420
410
|
}
|
|
421
|
-
}
|
|
411
|
+
}
|
|
422
412
|
|
|
423
413
|
this.updater.enqueueSetState(this, partialState, callback, 'setState');
|
|
424
414
|
};
|
|
@@ -808,8 +798,8 @@ function defineRefPropWarningGetter(props, displayName) {
|
|
|
808
798
|
}
|
|
809
799
|
/**
|
|
810
800
|
* Factory method to create a new React element. This no longer adheres to
|
|
811
|
-
* the class pattern, so do not use new to call it. Also,
|
|
812
|
-
* will work. Instead test $$typeof field against Symbol.for('react.element') to check
|
|
801
|
+
* the class pattern, so do not use new to call it. Also, instanceof check
|
|
802
|
+
* will not work. Instead test $$typeof field against Symbol.for('react.element') to check
|
|
813
803
|
* if something is a React Element.
|
|
814
804
|
*
|
|
815
805
|
* @param {*} type
|
|
@@ -1051,13 +1041,11 @@ function cloneAndReplaceKey(oldElement, newKey) {
|
|
|
1051
1041
|
*/
|
|
1052
1042
|
|
|
1053
1043
|
function cloneElement(element, config, children) {
|
|
1054
|
-
(
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
throw ReactError(Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + "."));
|
|
1058
|
-
}
|
|
1044
|
+
if (!!(element === null || element === undefined)) {
|
|
1045
|
+
{
|
|
1046
|
+
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
|
|
1059
1047
|
}
|
|
1060
|
-
}
|
|
1048
|
+
}
|
|
1061
1049
|
|
|
1062
1050
|
var propName; // Original props are copied
|
|
1063
1051
|
|
|
@@ -1290,13 +1278,11 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
1290
1278
|
|
|
1291
1279
|
var childrenString = '' + children;
|
|
1292
1280
|
|
|
1293
|
-
|
|
1281
|
+
{
|
|
1294
1282
|
{
|
|
1295
|
-
{
|
|
1296
|
-
throw ReactError(Error("Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum));
|
|
1297
|
-
}
|
|
1283
|
+
throw Error("Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum);
|
|
1298
1284
|
}
|
|
1299
|
-
}
|
|
1285
|
+
}
|
|
1300
1286
|
}
|
|
1301
1287
|
}
|
|
1302
1288
|
|
|
@@ -1482,13 +1468,11 @@ function toArray(children) {
|
|
|
1482
1468
|
|
|
1483
1469
|
|
|
1484
1470
|
function onlyChild(children) {
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
throw ReactError(Error("React.Children.only expected to receive a single React element child."));
|
|
1489
|
-
}
|
|
1471
|
+
if (!isValidElement(children)) {
|
|
1472
|
+
{
|
|
1473
|
+
throw Error("React.Children.only expected to receive a single React element child.");
|
|
1490
1474
|
}
|
|
1491
|
-
}
|
|
1475
|
+
}
|
|
1492
1476
|
|
|
1493
1477
|
return children;
|
|
1494
1478
|
}
|
|
@@ -1689,13 +1673,11 @@ function memo(type, compare) {
|
|
|
1689
1673
|
function resolveDispatcher() {
|
|
1690
1674
|
var dispatcher = ReactCurrentDispatcher.current;
|
|
1691
1675
|
|
|
1692
|
-
(
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
throw ReactError(Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem."));
|
|
1696
|
-
}
|
|
1676
|
+
if (!(dispatcher !== null)) {
|
|
1677
|
+
{
|
|
1678
|
+
throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");
|
|
1697
1679
|
}
|
|
1698
|
-
}
|
|
1680
|
+
}
|
|
1699
1681
|
|
|
1700
1682
|
return dispatcher;
|
|
1701
1683
|
}
|
|
@@ -1771,6 +1753,14 @@ function useResponder(responder, listenerProps) {
|
|
|
1771
1753
|
|
|
1772
1754
|
return dispatcher.useResponder(responder, listenerProps || emptyObject$1);
|
|
1773
1755
|
}
|
|
1756
|
+
function useTransition(config) {
|
|
1757
|
+
var dispatcher = resolveDispatcher();
|
|
1758
|
+
return dispatcher.useTransition(config);
|
|
1759
|
+
}
|
|
1760
|
+
function useDeferredValue(value, config) {
|
|
1761
|
+
var dispatcher = resolveDispatcher();
|
|
1762
|
+
return dispatcher.useDeferredValue(value, config);
|
|
1763
|
+
}
|
|
1774
1764
|
|
|
1775
1765
|
function withSuspenseConfig(scope, config) {
|
|
1776
1766
|
var previousConfig = ReactCurrentBatchConfig.suspense;
|
|
@@ -2307,16 +2297,8 @@ function cloneElementWithValidation(element, props, children) {
|
|
|
2307
2297
|
|
|
2308
2298
|
var enableSchedulerDebugging = false;
|
|
2309
2299
|
var enableIsInputPending = false;
|
|
2310
|
-
var enableMessageLoopImplementation = true;
|
|
2311
2300
|
var enableProfiling = true;
|
|
2312
2301
|
|
|
2313
|
-
// works by scheduling a requestAnimationFrame, storing the time for the start
|
|
2314
|
-
// of the frame, then scheduling a postMessage which gets scheduled after paint.
|
|
2315
|
-
// Within the postMessage handler do as much work as possible until time + frame
|
|
2316
|
-
// rate. By separating the idle call into a separate event tick we ensure that
|
|
2317
|
-
// layout, paint and other browser work is counted against the available time.
|
|
2318
|
-
// The frame rate is dynamically adjusted.
|
|
2319
|
-
|
|
2320
2302
|
var requestHostCallback;
|
|
2321
2303
|
|
|
2322
2304
|
var requestHostTimeout;
|
|
@@ -2386,11 +2368,14 @@ typeof MessageChannel !== 'function') {
|
|
|
2386
2368
|
var _Date = window.Date;
|
|
2387
2369
|
var _setTimeout = window.setTimeout;
|
|
2388
2370
|
var _clearTimeout = window.clearTimeout;
|
|
2389
|
-
var requestAnimationFrame = window.requestAnimationFrame;
|
|
2390
|
-
var cancelAnimationFrame = window.cancelAnimationFrame;
|
|
2391
2371
|
|
|
2392
2372
|
if (typeof console !== 'undefined') {
|
|
2393
|
-
// TODO:
|
|
2373
|
+
// TODO: Scheduler no longer requires these methods to be polyfilled. But
|
|
2374
|
+
// maybe we want to continue warning if they don't exist, to preserve the
|
|
2375
|
+
// option to rely on it in the future?
|
|
2376
|
+
var requestAnimationFrame = window.requestAnimationFrame;
|
|
2377
|
+
var cancelAnimationFrame = window.cancelAnimationFrame; // TODO: Remove fb.me link
|
|
2378
|
+
|
|
2394
2379
|
if (typeof requestAnimationFrame !== 'function') {
|
|
2395
2380
|
console.error("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
|
|
2396
2381
|
}
|
|
@@ -2412,26 +2397,18 @@ typeof MessageChannel !== 'function') {
|
|
|
2412
2397
|
};
|
|
2413
2398
|
}
|
|
2414
2399
|
|
|
2415
|
-
var isRAFLoopRunning = false;
|
|
2416
2400
|
var isMessageLoopRunning = false;
|
|
2417
2401
|
var scheduledHostCallback = null;
|
|
2418
|
-
var
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
//
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
// heuristic tracking will adjust this value to a faster fps if we get
|
|
2426
|
-
// more frequent animation frames.
|
|
2427
|
-
33.33;
|
|
2428
|
-
var prevRAFTime = -1;
|
|
2429
|
-
var prevRAFInterval = -1;
|
|
2430
|
-
var frameDeadline = 0;
|
|
2431
|
-
var fpsLocked = false; // TODO: Make this configurable
|
|
2402
|
+
var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
|
|
2403
|
+
// thread, like user events. By default, it yields multiple times per frame.
|
|
2404
|
+
// It does not attempt to align with frame boundaries, since most tasks don't
|
|
2405
|
+
// need to be frame aligned; for those that do, use requestAnimationFrame.
|
|
2406
|
+
|
|
2407
|
+
var yieldInterval = 5;
|
|
2408
|
+
var deadline = 0; // TODO: Make this configurable
|
|
2432
2409
|
// TODO: Adjust this based on priority?
|
|
2433
2410
|
|
|
2434
|
-
var
|
|
2411
|
+
var maxYieldInterval = 300;
|
|
2435
2412
|
var needsPaint = false;
|
|
2436
2413
|
|
|
2437
2414
|
if (enableIsInputPending && navigator !== undefined && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined) {
|
|
@@ -2440,23 +2417,23 @@ typeof MessageChannel !== 'function') {
|
|
|
2440
2417
|
shouldYieldToHost = function () {
|
|
2441
2418
|
var currentTime = getCurrentTime();
|
|
2442
2419
|
|
|
2443
|
-
if (currentTime >=
|
|
2444
|
-
// There's no time left
|
|
2445
|
-
//
|
|
2446
|
-
//
|
|
2447
|
-
//
|
|
2448
|
-
//
|
|
2449
|
-
//
|
|
2420
|
+
if (currentTime >= deadline) {
|
|
2421
|
+
// There's no time left. We may want to yield control of the main
|
|
2422
|
+
// thread, so the browser can perform high priority tasks. The main ones
|
|
2423
|
+
// are painting and user input. If there's a pending paint or a pending
|
|
2424
|
+
// input, then we should yield. But if there's neither, then we can
|
|
2425
|
+
// yield less often while remaining responsive. We'll eventually yield
|
|
2426
|
+
// regardless, since there could be a pending paint that wasn't
|
|
2450
2427
|
// accompanied by a call to `requestPaint`, or other main thread tasks
|
|
2451
2428
|
// like network events.
|
|
2452
2429
|
if (needsPaint || scheduling.isInputPending()) {
|
|
2453
2430
|
// There is either a pending paint or a pending input.
|
|
2454
2431
|
return true;
|
|
2455
2432
|
} // There's no pending input. Only yield if we've reached the max
|
|
2456
|
-
//
|
|
2433
|
+
// yield interval.
|
|
2457
2434
|
|
|
2458
2435
|
|
|
2459
|
-
return currentTime >=
|
|
2436
|
+
return currentTime >= maxYieldInterval;
|
|
2460
2437
|
} else {
|
|
2461
2438
|
// There's still time left in the frame.
|
|
2462
2439
|
return false;
|
|
@@ -2470,7 +2447,7 @@ typeof MessageChannel !== 'function') {
|
|
|
2470
2447
|
// `isInputPending` is not available. Since we have no way of knowing if
|
|
2471
2448
|
// there's pending input, always yield at the end of the frame.
|
|
2472
2449
|
shouldYieldToHost = function () {
|
|
2473
|
-
return getCurrentTime() >=
|
|
2450
|
+
return getCurrentTime() >= deadline;
|
|
2474
2451
|
}; // Since we yield every frame regardless, `requestPaint` has no effect.
|
|
2475
2452
|
|
|
2476
2453
|
|
|
@@ -2484,166 +2461,58 @@ typeof MessageChannel !== 'function') {
|
|
|
2484
2461
|
}
|
|
2485
2462
|
|
|
2486
2463
|
if (fps > 0) {
|
|
2487
|
-
|
|
2488
|
-
fpsLocked = true;
|
|
2464
|
+
yieldInterval = Math.floor(1000 / fps);
|
|
2489
2465
|
} else {
|
|
2490
2466
|
// reset the framerate
|
|
2491
|
-
|
|
2492
|
-
fpsLocked = false;
|
|
2467
|
+
yieldInterval = 5;
|
|
2493
2468
|
}
|
|
2494
2469
|
};
|
|
2495
2470
|
|
|
2496
2471
|
var performWorkUntilDeadline = function () {
|
|
2497
|
-
if (
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
// the message event.
|
|
2502
|
-
|
|
2503
|
-
frameDeadline = currentTime + frameLength;
|
|
2504
|
-
var hasTimeRemaining = true;
|
|
2505
|
-
|
|
2506
|
-
try {
|
|
2507
|
-
var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
|
|
2508
|
-
|
|
2509
|
-
if (!hasMoreWork) {
|
|
2510
|
-
isMessageLoopRunning = false;
|
|
2511
|
-
scheduledHostCallback = null;
|
|
2512
|
-
} else {
|
|
2513
|
-
// If there's more work, schedule the next message event at the end
|
|
2514
|
-
// of the preceding one.
|
|
2515
|
-
port.postMessage(null);
|
|
2516
|
-
}
|
|
2517
|
-
} catch (error) {
|
|
2518
|
-
// If a scheduler task throws, exit the current browser task so the
|
|
2519
|
-
// error can be observed.
|
|
2520
|
-
port.postMessage(null);
|
|
2521
|
-
throw error;
|
|
2522
|
-
}
|
|
2523
|
-
} else {
|
|
2524
|
-
isMessageLoopRunning = false;
|
|
2525
|
-
} // Yielding to the browser will give it a chance to paint, so we can
|
|
2526
|
-
// reset this.
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
needsPaint = false;
|
|
2530
|
-
} else {
|
|
2531
|
-
if (scheduledHostCallback !== null) {
|
|
2532
|
-
var _currentTime = getCurrentTime();
|
|
2472
|
+
if (scheduledHostCallback !== null) {
|
|
2473
|
+
var currentTime = getCurrentTime(); // Yield after `yieldInterval` ms, regardless of where we are in the vsync
|
|
2474
|
+
// cycle. This means there's always time remaining at the beginning of
|
|
2475
|
+
// the message event.
|
|
2533
2476
|
|
|
2534
|
-
|
|
2477
|
+
deadline = currentTime + yieldInterval;
|
|
2478
|
+
var hasTimeRemaining = true;
|
|
2535
2479
|
|
|
2536
|
-
|
|
2537
|
-
|
|
2480
|
+
try {
|
|
2481
|
+
var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
|
|
2538
2482
|
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
}
|
|
2543
|
-
// If
|
|
2544
|
-
//
|
|
2545
|
-
// so we can continue where we left off.
|
|
2483
|
+
if (!hasMoreWork) {
|
|
2484
|
+
isMessageLoopRunning = false;
|
|
2485
|
+
scheduledHostCallback = null;
|
|
2486
|
+
} else {
|
|
2487
|
+
// If there's more work, schedule the next message event at the end
|
|
2488
|
+
// of the preceding one.
|
|
2546
2489
|
port.postMessage(null);
|
|
2547
|
-
throw error;
|
|
2548
2490
|
}
|
|
2549
|
-
}
|
|
2550
|
-
|
|
2491
|
+
} catch (error) {
|
|
2492
|
+
// If a scheduler task throws, exit the current browser task so the
|
|
2493
|
+
// error can be observed.
|
|
2494
|
+
port.postMessage(null);
|
|
2495
|
+
throw error;
|
|
2496
|
+
}
|
|
2497
|
+
} else {
|
|
2498
|
+
isMessageLoopRunning = false;
|
|
2499
|
+
} // Yielding to the browser will give it a chance to paint, so we can
|
|
2500
|
+
// reset this.
|
|
2551
2501
|
|
|
2552
2502
|
|
|
2553
|
-
|
|
2554
|
-
}
|
|
2503
|
+
needsPaint = false;
|
|
2555
2504
|
};
|
|
2556
2505
|
|
|
2557
2506
|
var channel = new MessageChannel();
|
|
2558
2507
|
var port = channel.port2;
|
|
2559
2508
|
channel.port1.onmessage = performWorkUntilDeadline;
|
|
2560
2509
|
|
|
2561
|
-
var onAnimationFrame = function (rAFTime) {
|
|
2562
|
-
if (scheduledHostCallback === null) {
|
|
2563
|
-
// No scheduled work. Exit.
|
|
2564
|
-
prevRAFTime = -1;
|
|
2565
|
-
prevRAFInterval = -1;
|
|
2566
|
-
isRAFLoopRunning = false;
|
|
2567
|
-
return;
|
|
2568
|
-
} // Eagerly schedule the next animation callback at the beginning of the
|
|
2569
|
-
// frame. If the scheduler queue is not empty at the end of the frame, it
|
|
2570
|
-
// will continue flushing inside that callback. If the queue *is* empty,
|
|
2571
|
-
// then it will exit immediately. Posting the callback at the start of the
|
|
2572
|
-
// frame ensures it's fired within the earliest possible frame. If we
|
|
2573
|
-
// waited until the end of the frame to post the callback, we risk the
|
|
2574
|
-
// browser skipping a frame and not firing the callback until the frame
|
|
2575
|
-
// after that.
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
isRAFLoopRunning = true;
|
|
2579
|
-
requestAnimationFrame(function (nextRAFTime) {
|
|
2580
|
-
_clearTimeout(rAFTimeoutID);
|
|
2581
|
-
|
|
2582
|
-
onAnimationFrame(nextRAFTime);
|
|
2583
|
-
}); // requestAnimationFrame is throttled when the tab is backgrounded. We
|
|
2584
|
-
// don't want to stop working entirely. So we'll fallback to a timeout loop.
|
|
2585
|
-
// TODO: Need a better heuristic for backgrounded work.
|
|
2586
|
-
|
|
2587
|
-
var onTimeout = function () {
|
|
2588
|
-
frameDeadline = getCurrentTime() + frameLength / 2;
|
|
2589
|
-
performWorkUntilDeadline();
|
|
2590
|
-
rAFTimeoutID = _setTimeout(onTimeout, frameLength * 3);
|
|
2591
|
-
};
|
|
2592
|
-
|
|
2593
|
-
rAFTimeoutID = _setTimeout(onTimeout, frameLength * 3);
|
|
2594
|
-
|
|
2595
|
-
if (prevRAFTime !== -1 && // Make sure this rAF time is different from the previous one. This check
|
|
2596
|
-
// could fail if two rAFs fire in the same frame.
|
|
2597
|
-
rAFTime - prevRAFTime > 0.1) {
|
|
2598
|
-
var rAFInterval = rAFTime - prevRAFTime;
|
|
2599
|
-
|
|
2600
|
-
if (!fpsLocked && prevRAFInterval !== -1) {
|
|
2601
|
-
// We've observed two consecutive frame intervals. We'll use this to
|
|
2602
|
-
// dynamically adjust the frame rate.
|
|
2603
|
-
//
|
|
2604
|
-
// If one frame goes long, then the next one can be short to catch up.
|
|
2605
|
-
// If two frames are short in a row, then that's an indication that we
|
|
2606
|
-
// actually have a higher frame rate than what we're currently
|
|
2607
|
-
// optimizing. For example, if we're running on 120hz display or 90hz VR
|
|
2608
|
-
// display. Take the max of the two in case one of them was an anomaly
|
|
2609
|
-
// due to missed frame deadlines.
|
|
2610
|
-
if (rAFInterval < frameLength && prevRAFInterval < frameLength) {
|
|
2611
|
-
frameLength = rAFInterval < prevRAFInterval ? prevRAFInterval : rAFInterval;
|
|
2612
|
-
|
|
2613
|
-
if (frameLength < 8.33) {
|
|
2614
|
-
// Defensive coding. We don't support higher frame rates than 120hz.
|
|
2615
|
-
// If the calculated frame length gets lower than 8, it is probably
|
|
2616
|
-
// a bug.
|
|
2617
|
-
frameLength = 8.33;
|
|
2618
|
-
}
|
|
2619
|
-
}
|
|
2620
|
-
}
|
|
2621
|
-
|
|
2622
|
-
prevRAFInterval = rAFInterval;
|
|
2623
|
-
}
|
|
2624
|
-
|
|
2625
|
-
prevRAFTime = rAFTime;
|
|
2626
|
-
frameDeadline = rAFTime + frameLength; // We use the postMessage trick to defer idle work until after the repaint.
|
|
2627
|
-
|
|
2628
|
-
port.postMessage(null);
|
|
2629
|
-
};
|
|
2630
|
-
|
|
2631
2510
|
requestHostCallback = function (callback) {
|
|
2632
2511
|
scheduledHostCallback = callback;
|
|
2633
2512
|
|
|
2634
|
-
if (
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
port.postMessage(null);
|
|
2638
|
-
}
|
|
2639
|
-
} else {
|
|
2640
|
-
if (!isRAFLoopRunning) {
|
|
2641
|
-
// Start a rAF loop.
|
|
2642
|
-
isRAFLoopRunning = true;
|
|
2643
|
-
requestAnimationFrame(function (rAFTime) {
|
|
2644
|
-
onAnimationFrame(rAFTime);
|
|
2645
|
-
});
|
|
2646
|
-
}
|
|
2513
|
+
if (!isMessageLoopRunning) {
|
|
2514
|
+
isMessageLoopRunning = true;
|
|
2515
|
+
port.postMessage(null);
|
|
2647
2516
|
}
|
|
2648
2517
|
};
|
|
2649
2518
|
|
|
@@ -2827,47 +2696,50 @@ function stopLoggingProfilingEvents() {
|
|
|
2827
2696
|
eventLogIndex = 0;
|
|
2828
2697
|
return buffer;
|
|
2829
2698
|
}
|
|
2830
|
-
function markTaskStart(task,
|
|
2699
|
+
function markTaskStart(task, ms) {
|
|
2831
2700
|
if (enableProfiling) {
|
|
2832
2701
|
profilingState[QUEUE_SIZE]++;
|
|
2833
2702
|
|
|
2834
2703
|
if (eventLog !== null) {
|
|
2835
|
-
|
|
2704
|
+
// performance.now returns a float, representing milliseconds. When the
|
|
2705
|
+
// event is logged, it's coerced to an int. Convert to microseconds to
|
|
2706
|
+
// maintain extra degrees of precision.
|
|
2707
|
+
logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]);
|
|
2836
2708
|
}
|
|
2837
2709
|
}
|
|
2838
2710
|
}
|
|
2839
|
-
function markTaskCompleted(task,
|
|
2711
|
+
function markTaskCompleted(task, ms) {
|
|
2840
2712
|
if (enableProfiling) {
|
|
2841
2713
|
profilingState[PRIORITY] = NoPriority;
|
|
2842
2714
|
profilingState[CURRENT_TASK_ID] = 0;
|
|
2843
2715
|
profilingState[QUEUE_SIZE]--;
|
|
2844
2716
|
|
|
2845
2717
|
if (eventLog !== null) {
|
|
2846
|
-
logEvent([TaskCompleteEvent,
|
|
2718
|
+
logEvent([TaskCompleteEvent, ms * 1000, task.id]);
|
|
2847
2719
|
}
|
|
2848
2720
|
}
|
|
2849
2721
|
}
|
|
2850
|
-
function markTaskCanceled(task,
|
|
2722
|
+
function markTaskCanceled(task, ms) {
|
|
2851
2723
|
if (enableProfiling) {
|
|
2852
2724
|
profilingState[QUEUE_SIZE]--;
|
|
2853
2725
|
|
|
2854
2726
|
if (eventLog !== null) {
|
|
2855
|
-
logEvent([TaskCancelEvent,
|
|
2727
|
+
logEvent([TaskCancelEvent, ms * 1000, task.id]);
|
|
2856
2728
|
}
|
|
2857
2729
|
}
|
|
2858
2730
|
}
|
|
2859
|
-
function markTaskErrored(task,
|
|
2731
|
+
function markTaskErrored(task, ms) {
|
|
2860
2732
|
if (enableProfiling) {
|
|
2861
2733
|
profilingState[PRIORITY] = NoPriority;
|
|
2862
2734
|
profilingState[CURRENT_TASK_ID] = 0;
|
|
2863
2735
|
profilingState[QUEUE_SIZE]--;
|
|
2864
2736
|
|
|
2865
2737
|
if (eventLog !== null) {
|
|
2866
|
-
logEvent([TaskErrorEvent,
|
|
2738
|
+
logEvent([TaskErrorEvent, ms * 1000, task.id]);
|
|
2867
2739
|
}
|
|
2868
2740
|
}
|
|
2869
2741
|
}
|
|
2870
|
-
function markTaskRun(task,
|
|
2742
|
+
function markTaskRun(task, ms) {
|
|
2871
2743
|
if (enableProfiling) {
|
|
2872
2744
|
runIdCounter++;
|
|
2873
2745
|
profilingState[PRIORITY] = task.priorityLevel;
|
|
@@ -2875,34 +2747,34 @@ function markTaskRun(task, time) {
|
|
|
2875
2747
|
profilingState[CURRENT_RUN_ID] = runIdCounter;
|
|
2876
2748
|
|
|
2877
2749
|
if (eventLog !== null) {
|
|
2878
|
-
logEvent([TaskRunEvent,
|
|
2750
|
+
logEvent([TaskRunEvent, ms * 1000, task.id, runIdCounter]);
|
|
2879
2751
|
}
|
|
2880
2752
|
}
|
|
2881
2753
|
}
|
|
2882
|
-
function markTaskYield(task,
|
|
2754
|
+
function markTaskYield(task, ms) {
|
|
2883
2755
|
if (enableProfiling) {
|
|
2884
2756
|
profilingState[PRIORITY] = NoPriority;
|
|
2885
2757
|
profilingState[CURRENT_TASK_ID] = 0;
|
|
2886
2758
|
profilingState[CURRENT_RUN_ID] = 0;
|
|
2887
2759
|
|
|
2888
2760
|
if (eventLog !== null) {
|
|
2889
|
-
logEvent([TaskYieldEvent,
|
|
2761
|
+
logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]);
|
|
2890
2762
|
}
|
|
2891
2763
|
}
|
|
2892
2764
|
}
|
|
2893
|
-
function markSchedulerSuspended(
|
|
2765
|
+
function markSchedulerSuspended(ms) {
|
|
2894
2766
|
if (enableProfiling) {
|
|
2895
2767
|
mainThreadIdCounter++;
|
|
2896
2768
|
|
|
2897
2769
|
if (eventLog !== null) {
|
|
2898
|
-
logEvent([SchedulerSuspendEvent,
|
|
2770
|
+
logEvent([SchedulerSuspendEvent, ms * 1000, mainThreadIdCounter]);
|
|
2899
2771
|
}
|
|
2900
2772
|
}
|
|
2901
2773
|
}
|
|
2902
|
-
function markSchedulerUnsuspended(
|
|
2774
|
+
function markSchedulerUnsuspended(ms) {
|
|
2903
2775
|
if (enableProfiling) {
|
|
2904
2776
|
if (eventLog !== null) {
|
|
2905
|
-
logEvent([SchedulerResumeEvent,
|
|
2777
|
+
logEvent([SchedulerResumeEvent, ms * 1000, mainThreadIdCounter]);
|
|
2906
2778
|
}
|
|
2907
2779
|
}
|
|
2908
2780
|
}
|
|
@@ -3313,12 +3185,8 @@ var Scheduler = Object.freeze({
|
|
|
3313
3185
|
unstable_Profiling: unstable_Profiling
|
|
3314
3186
|
});
|
|
3315
3187
|
|
|
3316
|
-
// Helps identify side effects in
|
|
3317
|
-
|
|
3318
|
-
// In some cases, StrictMode should also double-render lifecycles.
|
|
3319
|
-
// This can be confusing for tests though,
|
|
3320
|
-
// And it can be bad for performance in production.
|
|
3321
|
-
// This feature flag can be used to control the behavior:
|
|
3188
|
+
// Helps identify side effects in render-phase lifecycle hooks and setState
|
|
3189
|
+
// reducers by double invoking them in Strict Mode.
|
|
3322
3190
|
|
|
3323
3191
|
// To preserve the "Pause on caught exceptions" behavior of the debugger, we
|
|
3324
3192
|
// replay the begin phase of a failed component inside invokeGuardedCallback.
|
|
@@ -3329,9 +3197,8 @@ var Scheduler = Object.freeze({
|
|
|
3329
3197
|
|
|
3330
3198
|
// Trace which interactions trigger each commit.
|
|
3331
3199
|
|
|
3332
|
-
var enableSchedulerTracing = true; //
|
|
3200
|
+
var enableSchedulerTracing = true; // SSR experiments
|
|
3333
3201
|
|
|
3334
|
-
// TODO: true? Here it might just be false.
|
|
3335
3202
|
|
|
3336
3203
|
// Only used in www builds.
|
|
3337
3204
|
|
|
@@ -3345,10 +3212,7 @@ var enableSchedulerTracing = true; // Only used in www builds.
|
|
|
3345
3212
|
// These APIs will no longer be "unstable" in the upcoming 16.7 release,
|
|
3346
3213
|
// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
|
|
3347
3214
|
|
|
3348
|
-
|
|
3349
|
-
// See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
|
|
3350
|
-
// This is a flag so we can fix warnings in RN core before turning it on
|
|
3351
|
-
|
|
3215
|
+
var exposeConcurrentModeAPIs = false;
|
|
3352
3216
|
// Experimental React Flare event system and event components support.
|
|
3353
3217
|
|
|
3354
3218
|
var enableFlareAPI = false; // Experimental Host Component support.
|
|
@@ -3358,15 +3222,11 @@ var enableFundamentalAPI = false; // Experimental Scope support.
|
|
|
3358
3222
|
var enableScopeAPI = false; // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
|
|
3359
3223
|
|
|
3360
3224
|
var enableJSXTransformAPI = false; // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
|
|
3361
|
-
// Till then, we warn about the missing mock, but still fallback to a
|
|
3225
|
+
// Till then, we warn about the missing mock, but still fallback to a legacy mode compatible version
|
|
3362
3226
|
|
|
3363
3227
|
// For tests, we flush suspense fallbacks in an act scope;
|
|
3364
3228
|
// *except* in some of our own tests, where we test incremental loading states.
|
|
3365
3229
|
|
|
3366
|
-
// Changes priority of some events like mousemove to user-blocking priority,
|
|
3367
|
-
// but without making them discrete. The flag exists in case it causes
|
|
3368
|
-
// starvation problems.
|
|
3369
|
-
|
|
3370
3230
|
// Add a callback property to suspense to notify which promises are currently
|
|
3371
3231
|
// in the update queue. This allows reporting and tracing of what is causing
|
|
3372
3232
|
// the user to see a loading state.
|
|
@@ -3377,6 +3237,12 @@ var enableJSXTransformAPI = false; // We will enforce mocking scheduler with sch
|
|
|
3377
3237
|
// from React.createElement to React.jsx
|
|
3378
3238
|
// https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
|
|
3379
3239
|
|
|
3240
|
+
|
|
3241
|
+
|
|
3242
|
+
|
|
3243
|
+
|
|
3244
|
+
// Flag to turn event.target and event.currentTarget in ReactNative from a reactTag to a component instance
|
|
3245
|
+
|
|
3380
3246
|
var DEFAULT_THREAD_ID = 0; // Counters used to generate unique IDs.
|
|
3381
3247
|
|
|
3382
3248
|
var interactionIDCounter = 0;
|
|
@@ -3827,10 +3693,9 @@ function createEventResponder(displayName, responderConfig) {
|
|
|
3827
3693
|
return eventResponder;
|
|
3828
3694
|
}
|
|
3829
3695
|
|
|
3830
|
-
function createScope(
|
|
3696
|
+
function createScope() {
|
|
3831
3697
|
var scopeComponent = {
|
|
3832
|
-
$$typeof: REACT_SCOPE_TYPE
|
|
3833
|
-
fn: fn
|
|
3698
|
+
$$typeof: REACT_SCOPE_TYPE
|
|
3834
3699
|
};
|
|
3835
3700
|
|
|
3836
3701
|
{
|
|
@@ -3869,16 +3734,21 @@ var React = {
|
|
|
3869
3734
|
Profiler: REACT_PROFILER_TYPE,
|
|
3870
3735
|
StrictMode: REACT_STRICT_MODE_TYPE,
|
|
3871
3736
|
Suspense: REACT_SUSPENSE_TYPE,
|
|
3872
|
-
unstable_SuspenseList: REACT_SUSPENSE_LIST_TYPE,
|
|
3873
3737
|
createElement: createElementWithValidation,
|
|
3874
3738
|
cloneElement: cloneElementWithValidation,
|
|
3875
3739
|
createFactory: createFactoryWithValidation,
|
|
3876
3740
|
isValidElement: isValidElement,
|
|
3877
3741
|
version: ReactVersion,
|
|
3878
|
-
unstable_withSuspenseConfig: withSuspenseConfig,
|
|
3879
3742
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals$2
|
|
3880
3743
|
};
|
|
3881
3744
|
|
|
3745
|
+
if (exposeConcurrentModeAPIs) {
|
|
3746
|
+
React.useTransition = useTransition;
|
|
3747
|
+
React.useDeferredValue = useDeferredValue;
|
|
3748
|
+
React.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
3749
|
+
React.unstable_withSuspenseConfig = withSuspenseConfig;
|
|
3750
|
+
}
|
|
3751
|
+
|
|
3882
3752
|
if (enableFlareAPI) {
|
|
3883
3753
|
React.unstable_useResponder = useResponder;
|
|
3884
3754
|
React.unstable_createResponder = createEventResponder;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.12.0
|
|
2
2
|
* react.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -6,28 +6,27 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
'use strict';(function(v,m){"object"===typeof exports&&"undefined"!==typeof module?module.exports=m():"function"===typeof define&&define.amd?define(m):v.React=m()})(this,function(){function v(a){for(var b=
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
b,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
b
|
|
32
|
-
b
|
|
33
|
-
createFactory:function(a){var b=ha.bind(null,a);b.type=a;return b},isValidElement:O,version:"16.10.0",unstable_withSuspenseConfig:function(a,b){a()},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:y};x=(Y={default:x},x)||Y;return x.default||x});
|
|
9
|
+
'use strict';(function(v,m){"object"===typeof exports&&"undefined"!==typeof module?module.exports=m():"function"===typeof define&&define.amd?define(m):v.React=m()})(this,function(){function v(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(a,
|
|
10
|
+
b,c){this.props=a;this.context=b;this.refs=da;this.updater=c||ea}function fa(){}function M(a,b,c){this.props=a;this.context=b;this.refs=da;this.updater=c||ea}function ha(a,b,c){var d,e={},p=null,f=null;if(null!=b)for(d in void 0!==b.ref&&(f=b.ref),void 0!==b.key&&(p=""+b.key),b)ia.call(b,d)&&!ja.hasOwnProperty(d)&&(e[d]=b[d]);var g=arguments.length-2;if(1===g)e.children=c;else if(1<g){for(var k=Array(g),h=0;h<g;h++)k[h]=arguments[h+2];e.children=k}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===
|
|
11
|
+
e[d]&&(e[d]=g[d]);return{$$typeof:y,type:a,key:p,ref:f,props:e,_owner:N.current}}function wa(a,b){return{$$typeof:y,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return"object"===typeof a&&null!==a&&a.$$typeof===y}function xa(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function ka(a,b,c,d){if(D.length){var e=D.pop();e.result=a;e.keyPrefix=b;e.func=c;e.context=d;e.count=0;return e}return{result:a,keyPrefix:b,func:c,context:d,count:0}}
|
|
12
|
+
function la(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>D.length&&D.push(a)}function P(a,b,c,d){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var p=!1;if(null===a)p=!0;else switch(e){case "string":case "number":p=!0;break;case "object":switch(a.$$typeof){case y:case ya:p=!0}}if(p)return c(d,a,""===b?"."+Q(a,0):b),1;p=0;b=""===b?".":b+":";if(Array.isArray(a))for(var f=0;f<a.length;f++){e=a[f];var g=b+Q(e,f);p+=P(e,g,c,d)}else if(null===a||"object"!==typeof a?
|
|
13
|
+
g=null:(g=ma&&a[ma]||a["@@iterator"],g="function"===typeof g?g:null),"function"===typeof g)for(a=g.call(a),f=0;!(e=a.next()).done;)e=e.value,g=b+Q(e,f++),p+=P(e,g,c,d);else if("object"===e)throw c=""+a,Error(v(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return p}function R(a,b,c){return null==a?0:P(a,"",b,c)}function Q(a,b){return"object"===typeof a&&null!==a&&null!=a.key?xa(a.key):b.toString(36)}function za(a,b,c){a.func.call(a.context,b,a.count++)}function Aa(a,
|
|
14
|
+
b,c){var d=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?S(a,d,c,function(a){return a}):null!=a&&(O(a)&&(a=wa(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(na,"$&/")+"/")+c)),d.push(a))}function S(a,b,c,d,e){var f="";null!=c&&(f=(""+c).replace(na,"$&/")+"/");b=ka(b,f,d,e);R(a,Aa,b);la(b)}function t(){var a=oa.current;if(null===a)throw Error(v(321));return a}function T(a,b){var c=a.length;a.push(b);a:for(;;){var d=Math.floor((c-1)/2),e=a[d];if(void 0!==e&&0<E(e,
|
|
15
|
+
b))a[d]=b,a[c]=e,c=d;else break a}}function n(a){a=a[0];return void 0===a?null:a}function F(a){var b=a[0];if(void 0!==b){var c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length;d<e;){var f=2*(d+1)-1,h=a[f],g=f+1,k=a[g];if(void 0!==h&&0>E(h,c))void 0!==k&&0>E(k,h)?(a[d]=k,a[g]=c,d=g):(a[d]=h,a[f]=c,d=f);else if(void 0!==k&&0>E(k,c))a[d]=k,a[g]=c,d=g;else break a}}return b}return null}function E(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function G(a){for(var b=n(u);null!==b;){if(null===
|
|
16
|
+
b.callback)F(u);else if(b.startTime<=a)F(u),b.sortIndex=b.expirationTime,T(q,b);else break;b=n(u)}}function U(a){z=!1;G(a);if(!w)if(null!==n(q))w=!0,A(V);else{var b=n(u);null!==b&&H(U,b.startTime-a)}}function V(a,b){w=!1;z&&(z=!1,W());I=!0;var c=h;try{G(b);for(l=n(q);null!==l&&(!(l.expirationTime>b)||a&&!X());){var d=l.callback;if(null!==d){l.callback=null;h=l.priorityLevel;var e=d(l.expirationTime<=b);b=r();"function"===typeof e?l.callback=e:l===n(q)&&F(q);G(b)}else F(q);l=n(q)}if(null!==l)var f=
|
|
17
|
+
!0;else{var m=n(u);null!==m&&H(U,m.startTime-b);f=!1}return f}finally{l=null,h=c,I=!1}}function pa(a){switch(a){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1E4;default:return 5E3}}var f="function"===typeof Symbol&&Symbol.for,y=f?Symbol.for("react.element"):60103,ya=f?Symbol.for("react.portal"):60106,x=f?Symbol.for("react.fragment"):60107,Y=f?Symbol.for("react.strict_mode"):60108,Ba=f?Symbol.for("react.profiler"):60114,Ca=f?Symbol.for("react.provider"):60109,Da=f?Symbol.for("react.context"):
|
|
18
|
+
60110,Ea=f?Symbol.for("react.forward_ref"):60112,Fa=f?Symbol.for("react.suspense"):60113;f&&Symbol.for("react.suspense_list");var Ga=f?Symbol.for("react.memo"):60115,Ha=f?Symbol.for("react.lazy"):60116;f&&Symbol.for("react.fundamental");f&&Symbol.for("react.responder");f&&Symbol.for("react.scope");var ma="function"===typeof Symbol&&Symbol.iterator,qa=Object.getOwnPropertySymbols,Ia=Object.prototype.hasOwnProperty,Ja=Object.prototype.propertyIsEnumerable,J=function(){try{if(!Object.assign)return!1;
|
|
19
|
+
var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(d){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
20
|
+
var c=Object(a);for(var d,e=1;e<arguments.length;e++){var f=Object(arguments[e]);for(var h in f)Ia.call(f,h)&&(c[h]=f[h]);if(qa){d=qa(f);for(var g=0;g<d.length;g++)Ja.call(f,d[g])&&(c[d[g]]=f[d[g]])}}return c},ea={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},da={};m.prototype.isReactComponent={};m.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(v(85));
|
|
21
|
+
this.updater.enqueueSetState(this,a,b,"setState")};m.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};fa.prototype=m.prototype;f=M.prototype=new fa;f.constructor=M;J(f,m.prototype);f.isPureReactComponent=!0;var oa={current:null},N={current:null},ia=Object.prototype.hasOwnProperty,ja={key:!0,ref:!0,__self:!0,__source:!0},na=/\/+/g,D=[],Z;if("undefined"===typeof window||"function"!==typeof MessageChannel){var B=null,ra=null,sa=function(){if(null!==B)try{var a=
|
|
22
|
+
r();B(!0,a);B=null}catch(b){throw setTimeout(sa,0),b;}},Ka=Date.now();var r=function(){return Date.now()-Ka};var A=function(a){null!==B?setTimeout(A,0,a):(B=a,setTimeout(sa,0))};var H=function(a,b){ra=setTimeout(a,b)};var W=function(){clearTimeout(ra)};var X=function(){return!1};f=Z=function(){}}else{var aa=window.performance,ta=window.Date,La=window.setTimeout,Ma=window.clearTimeout;"undefined"!==typeof console&&(f=window.cancelAnimationFrame,"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),
|
|
23
|
+
"function"!==typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));if("object"===typeof aa&&"function"===typeof aa.now)r=function(){return aa.now()};else{var Na=ta.now();r=function(){return ta.now()-Na}}var K=!1,L=null,ba=-1,ua=5,va=0;X=function(){return r()>=va};f=function(){};Z=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):
|
|
24
|
+
ua=0<a?Math.floor(1E3/a):5};var C=new MessageChannel,ca=C.port2;C.port1.onmessage=function(){if(null!==L){var a=r();va=a+ua;try{L(!0,a)?ca.postMessage(null):(K=!1,L=null)}catch(b){throw ca.postMessage(null),b;}}else K=!1};A=function(a){L=a;K||(K=!0,ca.postMessage(null))};H=function(a,b){ba=La(function(){a(r())},b)};W=function(){Ma(ba);ba=-1}}var q=[],u=[],Oa=1,l=null,h=3,I=!1,w=!1,z=!1,Pa=0;C={ReactCurrentDispatcher:oa,ReactCurrentOwner:N,IsSomeRendererActing:{current:!1},assign:J};J(C,{Scheduler:{unstable_ImmediatePriority:1,
|
|
25
|
+
unstable_UserBlockingPriority:2,unstable_NormalPriority:3,unstable_IdlePriority:5,unstable_LowPriority:4,unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=h;h=a;try{return b()}finally{h=c}},unstable_next:function(a){switch(h){case 1:case 2:case 3:var b=3;break;default:b=h}var c=h;h=b;try{return a()}finally{h=c}},unstable_scheduleCallback:function(a,b,c){var d=r();if("object"===typeof c&&null!==c){var e=c.delay;e="number"===typeof e&&0<e?d+
|
|
26
|
+
e:d;c="number"===typeof c.timeout?c.timeout:pa(a)}else c=pa(a),e=d;c=e+c;a={id:Oa++,callback:b,priorityLevel:a,startTime:e,expirationTime:c,sortIndex:-1};e>d?(a.sortIndex=e,T(u,a),null===n(q)&&a===n(u)&&(z?W():z=!0,H(U,e-d))):(a.sortIndex=c,T(q,a),w||I||(w=!0,A(V)));return a},unstable_cancelCallback:function(a){a.callback=null},unstable_wrapCallback:function(a){var b=h;return function(){var c=h;h=b;try{return a.apply(this,arguments)}finally{h=c}}},unstable_getCurrentPriorityLevel:function(){return h},
|
|
27
|
+
unstable_shouldYield:function(){var a=r();G(a);var b=n(q);return b!==l&&null!==l&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTime<l.expirationTime||X()},unstable_requestPaint:f,unstable_continueExecution:function(){w||I||(w=!0,A(V))},unstable_pauseExecution:function(){},unstable_getFirstCallbackNode:function(){return n(q)},get unstable_now(){return r},get unstable_forceFrameRate(){return Z},unstable_Profiling:null},SchedulerTracing:{get __interactionsRef(){return null},get __subscriberRef(){return null},
|
|
28
|
+
unstable_clear:function(a){return a()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++Pa},unstable_trace:function(a,b,c){return c()},unstable_wrap:function(a){return a},unstable_subscribe:function(a){},unstable_unsubscribe:function(a){}}});x={Children:{map:function(a,b,c){if(null==a)return a;var d=[];S(a,d,null,b,c);return d},forEach:function(a,b,c){if(null==a)return a;b=ka(null,null,b,c);R(a,za,b);la(b)},count:function(a){return R(a,function(){return null},null)},
|
|
29
|
+
toArray:function(a){var b=[];S(a,b,null,function(a){return a});return b},only:function(a){if(!O(a))throw Error(v(143));return a}},createRef:function(){return{current:null}},Component:m,PureComponent:M,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:Da,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:Ca,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:Ea,render:a}},lazy:function(a){return{$$typeof:Ha,
|
|
30
|
+
_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:Ga,type:a,compare:void 0===b?null:b}},useCallback:function(a,b){return t().useCallback(a,b)},useContext:function(a,b){return t().useContext(a,b)},useEffect:function(a,b){return t().useEffect(a,b)},useImperativeHandle:function(a,b,c){return t().useImperativeHandle(a,b,c)},useDebugValue:function(a,b){},useLayoutEffect:function(a,b){return t().useLayoutEffect(a,b)},useMemo:function(a,b){return t().useMemo(a,b)},useReducer:function(a,
|
|
31
|
+
b,c){return t().useReducer(a,b,c)},useRef:function(a){return t().useRef(a)},useState:function(a){return t().useState(a)},Fragment:x,Profiler:Ba,StrictMode:Y,Suspense:Fa,createElement:ha,cloneElement:function(a,b,c){if(null===a||void 0===a)throw Error(v(267,a));var d=J({},a.props),e=a.key,f=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,h=N.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(k in b)ia.call(b,k)&&!ja.hasOwnProperty(k)&&(d[k]=void 0===
|
|
32
|
+
b[k]&&void 0!==g?g[k]:b[k])}var k=arguments.length-2;if(1===k)d.children=c;else if(1<k){g=Array(k);for(var l=0;l<k;l++)g[l]=arguments[l+2];d.children=g}return{$$typeof:y,type:a.type,key:e,ref:f,props:d,_owner:h}},createFactory:function(a){var b=ha.bind(null,a);b.type=a;return b},isValidElement:O,version:"16.12.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:C};x=(Y={default:x},x)||Y;return x.default||x});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.12.0
|
|
2
2
|
* react.profiling.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -6,35 +6,35 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
'use strict';(function(C,x){"object"===typeof exports&&"undefined"!==typeof module?module.exports=x():"function"===typeof define&&define.amd?define(x):C.React=x()})(this,function(){function C(a){for(var b=
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
b,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
b=u(A)}}function da(a){I=!1;O(a);if(!E)if(null!==u(v))E=!0,J(ea);else{var b=u(A);null!==b&&P(da,b.startTime-a)}}function ea(a,b){null!==
|
|
18
|
-
null!==
|
|
19
|
-
function
|
|
20
|
-
}function
|
|
21
|
-
60109,
|
|
9
|
+
'use strict';(function(C,x){"object"===typeof exports&&"undefined"!==typeof module?module.exports=x():"function"===typeof define&&define.amd?define(x):C.React=x()})(this,function(){function C(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function x(a,
|
|
10
|
+
b,c){this.props=a;this.context=b;this.refs=pa;this.updater=c||qa}function ra(){}function V(a,b,c){this.props=a;this.context=b;this.refs=pa;this.updater=c||qa}function sa(a,b,c){var d,e={},f=null,k=null;if(null!=b)for(d in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(f=""+b.key),b)ta.call(b,d)&&!ua.hasOwnProperty(d)&&(e[d]=b[d]);var g=arguments.length-2;if(1===g)e.children=c;else if(1<g){for(var q=Array(g),h=0;h<g;h++)q[h]=arguments[h+2];e.children=q}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===
|
|
11
|
+
e[d]&&(e[d]=g[d]);return{$$typeof:F,type:a,key:f,ref:k,props:e,_owner:W.current}}function Pa(a,b){return{$$typeof:F,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function X(a){return"object"===typeof a&&null!==a&&a.$$typeof===F}function Qa(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function va(a,b,c,d){if(L.length){var e=L.pop();e.result=a;e.keyPrefix=b;e.func=c;e.context=d;e.count=0;return e}return{result:a,keyPrefix:b,func:c,context:d,count:0}}
|
|
12
|
+
function wa(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>L.length&&L.push(a)}function Y(a,b,c,d){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var f=!1;if(null===a)f=!0;else switch(e){case "string":case "number":f=!0;break;case "object":switch(a.$$typeof){case F:case Ra:f=!0}}if(f)return c(d,a,""===b?"."+Z(a,0):b),1;f=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){e=a[k];var g=b+Z(e,k);f+=Y(e,g,c,d)}else if(null===a||"object"!==typeof a?
|
|
13
|
+
g=null:(g=xa&&a[xa]||a["@@iterator"],g="function"===typeof g?g:null),"function"===typeof g)for(a=g.call(a),k=0;!(e=a.next()).done;)e=e.value,g=b+Z(e,k++),f+=Y(e,g,c,d);else if("object"===e)throw c=""+a,Error(C(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return f}function aa(a,b,c){return null==a?0:Y(a,"",b,c)}function Z(a,b){return"object"===typeof a&&null!==a&&null!=a.key?Qa(a.key):b.toString(36)}function Sa(a,b,c){a.func.call(a.context,b,a.count++)}function Ta(a,
|
|
14
|
+
b,c){var d=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?ba(a,d,c,function(a){return a}):null!=a&&(X(a)&&(a=Pa(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(ya,"$&/")+"/")+c)),d.push(a))}function ba(a,b,c,d,e){var f="";null!=c&&(f=(""+c).replace(ya,"$&/")+"/");b=va(b,f,d,e);aa(a,Ta,b);wa(b)}function y(){var a=za.current;if(null===a)throw Error(C(321));return a}function ca(a,b){var c=a.length;a.push(b);a:for(;;){var d=Math.floor((c-1)/2),e=a[d];if(void 0!==e&&0<
|
|
15
|
+
M(e,b))a[d]=b,a[c]=e,c=d;else break a}}function u(a){a=a[0];return void 0===a?null:a}function N(a){var b=a[0];if(void 0!==b){var c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length;d<e;){var f=2*(d+1)-1,k=a[f],g=f+1,q=a[g];if(void 0!==k&&0>M(k,c))void 0!==q&&0>M(q,k)?(a[d]=q,a[g]=c,d=g):(a[d]=k,a[f]=c,d=f);else if(void 0!==q&&0>M(q,c))a[d]=q,a[g]=c,d=g;else break a}}return b}return null}function M(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function z(a){if(null!==r){var b=G;G+=a.length;
|
|
16
|
+
if(G+1>D){D*=2;if(524288<D){console.error("Scheduler Profiling: Event log exceeded maximum size. Don't forget to call `stopLoggingProfilingEvents()`.");Aa();return}var c=new Int32Array(4*D);c.set(r);H=c.buffer;r=c}r.set(a,b)}}function Aa(){var a=H;D=0;r=H=null;G=0;return a}function Ba(a,b){m[3]++;null!==r&&z([1,1E3*b,a.id,a.priorityLevel])}function O(a){for(var b=u(A);null!==b;){if(null===b.callback)N(A);else if(b.startTime<=a)N(A),b.sortIndex=b.expirationTime,ca(v,b),Ba(b,a),b.isQueued=!0;else break;
|
|
17
|
+
b=u(A)}}function da(a){I=!1;O(a);if(!E)if(null!==u(v))E=!0,J(ea);else{var b=u(A);null!==b&&P(da,b.startTime-a)}}function ea(a,b){null!==r&&z([8,1E3*b,fa]);E=!1;I&&(I=!1,ha());Q=!0;var c=n;try{try{O(b);for(h=u(v);null!==h&&(!(h.expirationTime>b)||a&&!ia());){var d=h.callback;if(null!==d){h.callback=null;n=h.priorityLevel;var e=h.expirationTime<=b,f=h,k=b;R++;m[0]=f.priorityLevel;m[1]=f.id;m[2]=R;null!==r&&z([5,1E3*k,f.id,R]);var g=d(e);b=t();"function"===typeof g?(h.callback=g,f=h,k=b,m[0]=0,m[1]=
|
|
18
|
+
0,m[2]=0,null!==r&&z([6,1E3*k,f.id,R])):(f=h,k=b,m[0]=0,m[1]=0,m[3]--,null!==r&&z([2,1E3*k,f.id]),h.isQueued=!1,h===u(v)&&N(v));O(b)}else N(v);h=u(v)}if(null!==h)var q=!0;else{var l=u(A);null!==l&&P(da,l.startTime-b);q=!1}return q}catch(Ua){if(null!==h){var p=t();a=h;m[0]=0;m[1]=0;m[3]--;null!==r&&z([3,1E3*p,a.id]);h.isQueued=!1}throw Ua;}}finally{h=null,n=c,Q=!1,c=t(),fa++,null!==r&&z([7,1E3*c,fa])}}function Ca(a){switch(a){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1E4;
|
|
19
|
+
default:return 5E3}}function Va(a){var b=!1,c=null;w.forEach(function(d){try{d.onInteractionTraced(a)}catch(e){b||(b=!0,c=e)}});if(b)throw c;}function Wa(a){var b=!1,c=null;w.forEach(function(d){try{d.onInteractionScheduledWorkCompleted(a)}catch(e){b||(b=!0,c=e)}});if(b)throw c;}function Xa(a,b){var c=!1,d=null;w.forEach(function(e){try{e.onWorkScheduled(a,b)}catch(f){c||(c=!0,d=f)}});if(c)throw d;}function Ya(a,b){var c=!1,d=null;w.forEach(function(e){try{e.onWorkStarted(a,b)}catch(f){c||(c=!0,d=
|
|
20
|
+
f)}});if(c)throw d;}function Za(a,b){var c=!1,d=null;w.forEach(function(e){try{e.onWorkStopped(a,b)}catch(f){c||(c=!0,d=f)}});if(c)throw d;}function $a(a,b){var c=!1,d=null;w.forEach(function(e){try{e.onWorkCanceled(a,b)}catch(f){c||(c=!0,d=f)}});if(c)throw d;}var l="function"===typeof Symbol&&Symbol.for,F=l?Symbol.for("react.element"):60103,Ra=l?Symbol.for("react.portal"):60106,ab=l?Symbol.for("react.fragment"):60107,bb=l?Symbol.for("react.strict_mode"):60108,cb=l?Symbol.for("react.profiler"):60114,
|
|
21
|
+
db=l?Symbol.for("react.provider"):60109,eb=l?Symbol.for("react.context"):60110,fb=l?Symbol.for("react.forward_ref"):60112,gb=l?Symbol.for("react.suspense"):60113;l&&Symbol.for("react.suspense_list");var hb=l?Symbol.for("react.memo"):60115,ib=l?Symbol.for("react.lazy"):60116;l&&Symbol.for("react.fundamental");l&&Symbol.for("react.responder");l&&Symbol.for("react.scope");var xa="function"===typeof Symbol&&Symbol.iterator,Da=Object.getOwnPropertySymbols,jb=Object.prototype.hasOwnProperty,kb=Object.prototype.propertyIsEnumerable,
|
|
22
22
|
S=function(){try{if(!Object.assign)return!1;var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(d){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===
|
|
23
|
-
a)throw new TypeError("Object.assign cannot be called with null or undefined");var c=Object(a);for(var d,e=1;e<arguments.length;e++){var f=Object(arguments[e]);for(var k in f)jb.call(f,k)&&(c[k]=f[k]);if(
|
|
24
|
-
b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw C(
|
|
25
|
-
typeof MessageChannel){var K=null,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
a)throw new TypeError("Object.assign cannot be called with null or undefined");var c=Object(a);for(var d,e=1;e<arguments.length;e++){var f=Object(arguments[e]);for(var k in f)jb.call(f,k)&&(c[k]=f[k]);if(Da){d=Da(f);for(var g=0;g<d.length;g++)kb.call(f,d[g])&&(c[d[g]]=f[d[g]])}}return c},qa={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},pa={};x.prototype.isReactComponent={};x.prototype.setState=function(a,
|
|
24
|
+
b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(C(85));this.updater.enqueueSetState(this,a,b,"setState")};x.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};ra.prototype=x.prototype;var ja=V.prototype=new ra;ja.constructor=V;S(ja,x.prototype);ja.isPureReactComponent=!0;var za={current:null},W={current:null},ta=Object.prototype.hasOwnProperty,ua={key:!0,ref:!0,__self:!0,__source:!0},ya=/\/+/g,L=[],ka;if("undefined"===typeof window||"function"!==
|
|
25
|
+
typeof MessageChannel){var K=null,Ea=null,Fa=function(){if(null!==K)try{var a=t();K(!0,a);K=null}catch(b){throw setTimeout(Fa,0),b;}},lb=Date.now();var t=function(){return Date.now()-lb};var J=function(a){null!==K?setTimeout(J,0,a):(K=a,setTimeout(Fa,0))};var P=function(a,b){Ea=setTimeout(a,b)};var ha=function(){clearTimeout(Ea)};var ia=function(){return!1};var Ga=ka=function(){}}else{var la=window.performance,Ha=window.Date,mb=window.setTimeout,nb=window.clearTimeout;if("undefined"!==typeof console){var ob=
|
|
26
|
+
window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills");"function"!==typeof ob&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof la&&"function"===typeof la.now)t=function(){return la.now()};else{var pb=
|
|
27
|
+
Ha.now();t=function(){return Ha.now()-pb}}var T=!1,U=null,ma=-1,Ia=5,Ja=0;ia=function(){return t()>=Ja};Ga=function(){};ka=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):Ia=0<a?Math.floor(1E3/a):5};var Ka=new MessageChannel,na=Ka.port2;Ka.port1.onmessage=function(){if(null!==U){var a=t();Ja=a+Ia;try{U(!0,a)?na.postMessage(null):(T=!1,U=null)}catch(b){throw na.postMessage(null),b;}}else T=!1};
|
|
28
|
+
J=function(a){U=a;T||(T=!0,na.postMessage(null))};P=function(a,b){ma=mb(function(){a(t())},b)};ha=function(){nb(ma);ma=-1}}var R=0,fa=0,oa="function"===typeof SharedArrayBuffer?new SharedArrayBuffer(4*Int32Array.BYTES_PER_ELEMENT):"function"===typeof ArrayBuffer?new ArrayBuffer(4*Int32Array.BYTES_PER_ELEMENT):null,m=null!==oa?new Int32Array(oa):[];m[0]=0;m[3]=0;var D=m[1]=0,H=null,r=null,G=0,v=[],A=[],qb=1,h=null,n=3,Q=!1,E=!1,I=!1,rb={unstable_ImmediatePriority:1,unstable_UserBlockingPriority:2,
|
|
29
29
|
unstable_NormalPriority:3,unstable_IdlePriority:5,unstable_LowPriority:4,unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=n;n=a;try{return b()}finally{n=c}},unstable_next:function(a){switch(n){case 1:case 2:case 3:var b=3;break;default:b=n}var c=n;n=b;try{return a()}finally{n=c}},unstable_scheduleCallback:function(a,b,c){var d=t();if("object"===typeof c&&null!==c){var e=c.delay;e="number"===typeof e&&0<e?d+e:d;c="number"===typeof c.timeout?
|
|
30
|
-
c.timeout:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
b
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
c.timeout:Ca(a)}else c=Ca(a),e=d;c=e+c;a={id:qb++,callback:b,priorityLevel:a,startTime:e,expirationTime:c,sortIndex:-1,isQueued:!1};e>d?(a.sortIndex=e,ca(A,a),null===u(v)&&a===u(A)&&(I?ha():I=!0,P(da,e-d))):(a.sortIndex=c,ca(v,a),Ba(a,d),a.isQueued=!0,E||Q||(E=!0,J(ea)));return a},unstable_cancelCallback:function(a){if(a.isQueued){var b=t();m[3]--;null!==r&&z([4,1E3*b,a.id]);a.isQueued=!1}a.callback=null},unstable_wrapCallback:function(a){var b=n;return function(){var c=n;n=b;try{return a.apply(this,
|
|
31
|
+
arguments)}finally{n=c}}},unstable_getCurrentPriorityLevel:function(){return n},unstable_shouldYield:function(){var a=t();O(a);var b=u(v);return b!==h&&null!==h&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTime<h.expirationTime||ia()},unstable_requestPaint:Ga,unstable_continueExecution:function(){E||Q||(E=!0,J(ea))},unstable_pauseExecution:function(){},unstable_getFirstCallbackNode:function(){return u(v)},get unstable_now(){return t},get unstable_forceFrameRate(){return ka},unstable_Profiling:{startLoggingProfilingEvents:function(){D=
|
|
32
|
+
131072;H=new ArrayBuffer(4*D);r=new Int32Array(H);G=0},stopLoggingProfilingEvents:Aa,sharedProfilingBuffer:oa}},sb=0,tb=0,p=null,B=null;p={current:new Set};B={current:null};var w=null;w=new Set;var La={ReactCurrentDispatcher:za,ReactCurrentOwner:W,IsSomeRendererActing:{current:!1},assign:S};S(La,{Scheduler:rb,SchedulerTracing:{get __interactionsRef(){return p},get __subscriberRef(){return B},unstable_clear:function(a){var b=p.current;p.current=new Set;try{return a()}finally{p.current=b}},unstable_getCurrent:function(){return p.current},
|
|
33
|
+
unstable_getThreadID:function(){return++tb},unstable_trace:function(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,e={__count:1,id:sb++,name:a,timestamp:b},f=p.current,k=new Set(f);k.add(e);p.current=k;var g=B.current;try{if(null!==g)g.onInteractionTraced(e)}finally{try{if(null!==g)g.onWorkStarted(k,d)}finally{try{var q=c()}finally{p.current=f;try{if(null!==g)g.onWorkStopped(k,d)}finally{if(e.__count--,null!==g&&0===e.__count)g.onInteractionScheduledWorkCompleted(e)}}}}return q},
|
|
34
|
+
unstable_wrap:function(a){function b(){var b=p.current;p.current=d;e=B.current;try{try{if(null!==e)e.onWorkStarted(d,c)}finally{try{var g=a.apply(void 0,arguments)}finally{if(p.current=b,null!==e)e.onWorkStopped(d,c)}}return g}finally{f||(f=!0,d.forEach(function(a){a.__count--;if(null!==e&&0===a.__count)e.onInteractionScheduledWorkCompleted(a)}))}}var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,d=p.current,e=B.current;if(null!==e)e.onWorkScheduled(d,c);d.forEach(function(a){a.__count++});
|
|
35
|
+
var f=!1;b.cancel=function(){e=B.current;try{if(null!==e)e.onWorkCanceled(d,c)}finally{d.forEach(function(a){a.__count--;if(e&&0===a.__count)e.onInteractionScheduledWorkCompleted(a)})}};return b},unstable_subscribe:function(a){w.add(a);1===w.size&&(B.current={onInteractionScheduledWorkCompleted:Wa,onInteractionTraced:Va,onWorkCanceled:$a,onWorkScheduled:Xa,onWorkStarted:Ya,onWorkStopped:Za})},unstable_unsubscribe:function(a){w.delete(a);0===w.size&&(B.current=null)}}});var Ma={Children:{map:function(a,
|
|
36
|
+
b,c){if(null==a)return a;var d=[];ba(a,d,null,b,c);return d},forEach:function(a,b,c){if(null==a)return a;b=va(null,null,b,c);aa(a,Sa,b);wa(b)},count:function(a){return aa(a,function(){return null},null)},toArray:function(a){var b=[];ba(a,b,null,function(a){return a});return b},only:function(a){if(!X(a))throw Error(C(143));return a}},createRef:function(){return{current:null}},Component:x,PureComponent:V,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:eb,_calculateChangedBits:b,_currentValue:a,
|
|
37
|
+
_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:db,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:fb,render:a}},lazy:function(a){return{$$typeof:ib,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:hb,type:a,compare:void 0===b?null:b}},useCallback:function(a,b){return y().useCallback(a,b)},useContext:function(a,b){return y().useContext(a,b)},useEffect:function(a,b){return y().useEffect(a,b)},useImperativeHandle:function(a,
|
|
38
|
+
b,c){return y().useImperativeHandle(a,b,c)},useDebugValue:function(a,b){},useLayoutEffect:function(a,b){return y().useLayoutEffect(a,b)},useMemo:function(a,b){return y().useMemo(a,b)},useReducer:function(a,b,c){return y().useReducer(a,b,c)},useRef:function(a){return y().useRef(a)},useState:function(a){return y().useState(a)},Fragment:ab,Profiler:cb,StrictMode:bb,Suspense:gb,createElement:sa,cloneElement:function(a,b,c){if(null===a||void 0===a)throw Error(C(267,a));var d=S({},a.props),e=a.key,f=a.ref,
|
|
39
|
+
k=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,k=W.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(h in b)ta.call(b,h)&&!ua.hasOwnProperty(h)&&(d[h]=void 0===b[h]&&void 0!==g?g[h]:b[h])}var h=arguments.length-2;if(1===h)d.children=c;else if(1<h){g=Array(h);for(var l=0;l<h;l++)g[l]=arguments[l+2];d.children=g}return{$$typeof:F,type:a.type,key:e,ref:f,props:d,_owner:k}},createFactory:function(a){var b=sa.bind(null,a);b.type=a;return b},isValidElement:X,
|
|
40
|
+
version:"16.12.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:La},Na={default:Ma},Oa=Na&&Ma||Na;return Oa.default||Oa});
|