react 16.7.0-alpha.1 → 16.8.0-alpha.1
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 +8 -0
- package/cjs/react.development.js +91 -29
- package/cjs/react.production.min.js +17 -16
- package/package.json +3 -2
- package/umd/react.development.js +154 -64
- package/umd/react.production.min.js +26 -24
- package/umd/react.profiling.min.js +30 -28
package/build-info.json
ADDED
package/cjs/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.8.0-alpha.1
|
|
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.8.0-alpha.1';
|
|
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.
|
|
@@ -54,7 +54,7 @@ function getIteratorFn(maybeIterable) {
|
|
|
54
54
|
return null;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
var enableHooks =
|
|
57
|
+
var enableHooks = true;
|
|
58
58
|
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
|
|
59
59
|
|
|
60
60
|
|
|
@@ -77,6 +77,9 @@ var enableHooks = false;
|
|
|
77
77
|
// Trace which interactions trigger each commit.
|
|
78
78
|
|
|
79
79
|
|
|
80
|
+
// Only used in www builds.
|
|
81
|
+
// TODO: true? Here it might just be false.
|
|
82
|
+
|
|
80
83
|
// Only used in www builds.
|
|
81
84
|
|
|
82
85
|
|
|
@@ -89,7 +92,7 @@ var enableHooks = false;
|
|
|
89
92
|
|
|
90
93
|
// These APIs will no longer be "unstable" in the upcoming 16.7 release,
|
|
91
94
|
// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
|
|
92
|
-
var enableStableConcurrentModeAPIs =
|
|
95
|
+
var enableStableConcurrentModeAPIs = true;
|
|
93
96
|
|
|
94
97
|
/**
|
|
95
98
|
* Use invariant() to assert state which your program assumes to be true.
|
|
@@ -446,6 +449,17 @@ function createRef() {
|
|
|
446
449
|
return refObject;
|
|
447
450
|
}
|
|
448
451
|
|
|
452
|
+
/**
|
|
453
|
+
* Keeps track of the current dispatcher.
|
|
454
|
+
*/
|
|
455
|
+
var ReactCurrentDispatcher = {
|
|
456
|
+
/**
|
|
457
|
+
* @internal
|
|
458
|
+
* @type {ReactComponent}
|
|
459
|
+
*/
|
|
460
|
+
current: null
|
|
461
|
+
};
|
|
462
|
+
|
|
449
463
|
/**
|
|
450
464
|
* Keeps track of the current owner.
|
|
451
465
|
*
|
|
@@ -457,8 +471,7 @@ var ReactCurrentOwner = {
|
|
|
457
471
|
* @internal
|
|
458
472
|
* @type {ReactComponent}
|
|
459
473
|
*/
|
|
460
|
-
current: null
|
|
461
|
-
currentDispatcher: null
|
|
474
|
+
current: null
|
|
462
475
|
};
|
|
463
476
|
|
|
464
477
|
var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
|
|
@@ -589,6 +602,7 @@ function setCurrentlyValidatingElement(element) {
|
|
|
589
602
|
}
|
|
590
603
|
|
|
591
604
|
var ReactSharedInternals = {
|
|
605
|
+
ReactCurrentDispatcher: ReactCurrentDispatcher,
|
|
592
606
|
ReactCurrentOwner: ReactCurrentOwner,
|
|
593
607
|
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
|
|
594
608
|
assign: _assign
|
|
@@ -1368,13 +1382,51 @@ function createContext(defaultValue, calculateChangedBits) {
|
|
|
1368
1382
|
}
|
|
1369
1383
|
|
|
1370
1384
|
function lazy(ctor) {
|
|
1371
|
-
|
|
1385
|
+
var lazyType = {
|
|
1372
1386
|
$$typeof: REACT_LAZY_TYPE,
|
|
1373
1387
|
_ctor: ctor,
|
|
1374
1388
|
// React uses these fields to store the result.
|
|
1375
1389
|
_status: -1,
|
|
1376
1390
|
_result: null
|
|
1377
1391
|
};
|
|
1392
|
+
|
|
1393
|
+
{
|
|
1394
|
+
// In production, this would just set it on the object.
|
|
1395
|
+
var defaultProps = void 0;
|
|
1396
|
+
var propTypes = void 0;
|
|
1397
|
+
Object.defineProperties(lazyType, {
|
|
1398
|
+
defaultProps: {
|
|
1399
|
+
configurable: true,
|
|
1400
|
+
get: function () {
|
|
1401
|
+
return defaultProps;
|
|
1402
|
+
},
|
|
1403
|
+
set: function (newDefaultProps) {
|
|
1404
|
+
warning$1(false, 'React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
|
|
1405
|
+
defaultProps = newDefaultProps;
|
|
1406
|
+
// Match production behavior more closely:
|
|
1407
|
+
Object.defineProperty(lazyType, 'defaultProps', {
|
|
1408
|
+
enumerable: true
|
|
1409
|
+
});
|
|
1410
|
+
}
|
|
1411
|
+
},
|
|
1412
|
+
propTypes: {
|
|
1413
|
+
configurable: true,
|
|
1414
|
+
get: function () {
|
|
1415
|
+
return propTypes;
|
|
1416
|
+
},
|
|
1417
|
+
set: function (newPropTypes) {
|
|
1418
|
+
warning$1(false, 'React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
|
|
1419
|
+
propTypes = newPropTypes;
|
|
1420
|
+
// Match production behavior more closely:
|
|
1421
|
+
Object.defineProperty(lazyType, 'propTypes', {
|
|
1422
|
+
enumerable: true
|
|
1423
|
+
});
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
});
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
return lazyType;
|
|
1378
1430
|
}
|
|
1379
1431
|
|
|
1380
1432
|
function forwardRef(render) {
|
|
@@ -1420,7 +1472,7 @@ function memo(type, compare) {
|
|
|
1420
1472
|
}
|
|
1421
1473
|
|
|
1422
1474
|
function resolveDispatcher() {
|
|
1423
|
-
var dispatcher =
|
|
1475
|
+
var dispatcher = ReactCurrentDispatcher.current;
|
|
1424
1476
|
!(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
|
|
1425
1477
|
return dispatcher;
|
|
1426
1478
|
}
|
|
@@ -1463,11 +1515,6 @@ function useEffect(create, inputs) {
|
|
|
1463
1515
|
return dispatcher.useEffect(create, inputs);
|
|
1464
1516
|
}
|
|
1465
1517
|
|
|
1466
|
-
function useMutationEffect(create, inputs) {
|
|
1467
|
-
var dispatcher = resolveDispatcher();
|
|
1468
|
-
return dispatcher.useMutationEffect(create, inputs);
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
1518
|
function useLayoutEffect(create, inputs) {
|
|
1472
1519
|
var dispatcher = resolveDispatcher();
|
|
1473
1520
|
return dispatcher.useLayoutEffect(create, inputs);
|
|
@@ -1483,9 +1530,16 @@ function useMemo(create, inputs) {
|
|
|
1483
1530
|
return dispatcher.useMemo(create, inputs);
|
|
1484
1531
|
}
|
|
1485
1532
|
|
|
1486
|
-
function
|
|
1533
|
+
function useImperativeHandle(ref, create, inputs) {
|
|
1487
1534
|
var dispatcher = resolveDispatcher();
|
|
1488
|
-
return dispatcher.
|
|
1535
|
+
return dispatcher.useImperativeHandle(ref, create, inputs);
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
function useDebugValue(value, formatterFn) {
|
|
1539
|
+
{
|
|
1540
|
+
var dispatcher = resolveDispatcher();
|
|
1541
|
+
return dispatcher.useDebugValue(value, formatterFn);
|
|
1542
|
+
}
|
|
1489
1543
|
}
|
|
1490
1544
|
|
|
1491
1545
|
/**
|
|
@@ -1574,7 +1628,7 @@ function validateExplicitKey(element, parentType) {
|
|
|
1574
1628
|
|
|
1575
1629
|
setCurrentlyValidatingElement(element);
|
|
1576
1630
|
{
|
|
1577
|
-
warning$1(false, 'Each child in
|
|
1631
|
+
warning$1(false, 'Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
1578
1632
|
}
|
|
1579
1633
|
setCurrentlyValidatingElement(null);
|
|
1580
1634
|
}
|
|
@@ -1630,16 +1684,17 @@ function validateChildKeys(node, parentType) {
|
|
|
1630
1684
|
*/
|
|
1631
1685
|
function validatePropTypes(element) {
|
|
1632
1686
|
var type = element.type;
|
|
1633
|
-
|
|
1634
|
-
|
|
1687
|
+
if (type === null || type === undefined || typeof type === 'string') {
|
|
1688
|
+
return;
|
|
1689
|
+
}
|
|
1690
|
+
var name = getComponentName(type);
|
|
1691
|
+
var propTypes = void 0;
|
|
1635
1692
|
if (typeof type === 'function') {
|
|
1636
|
-
// Class or function component
|
|
1637
|
-
name = type.displayName || type.name;
|
|
1638
1693
|
propTypes = type.propTypes;
|
|
1639
|
-
} else if (typeof type === 'object' && type
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1694
|
+
} else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||
|
|
1695
|
+
// Note: Memo only checks outer props here.
|
|
1696
|
+
// Inner props are checked in the reconciler.
|
|
1697
|
+
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
1643
1698
|
propTypes = type.propTypes;
|
|
1644
1699
|
} else {
|
|
1645
1700
|
return;
|
|
@@ -1799,25 +1854,32 @@ var React = {
|
|
|
1799
1854
|
|
|
1800
1855
|
version: ReactVersion,
|
|
1801
1856
|
|
|
1857
|
+
unstable_ConcurrentMode: REACT_CONCURRENT_MODE_TYPE,
|
|
1858
|
+
unstable_Profiler: REACT_PROFILER_TYPE,
|
|
1859
|
+
|
|
1802
1860
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
|
|
1803
1861
|
};
|
|
1804
1862
|
|
|
1863
|
+
// Note: some APIs are added with feature flags.
|
|
1864
|
+
// Make sure that stable builds for open source
|
|
1865
|
+
// don't modify the React object to avoid deopts.
|
|
1866
|
+
// Also let's not expose their names in stable builds.
|
|
1867
|
+
|
|
1805
1868
|
if (enableStableConcurrentModeAPIs) {
|
|
1806
1869
|
React.ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
1807
1870
|
React.Profiler = REACT_PROFILER_TYPE;
|
|
1808
|
-
|
|
1809
|
-
React.
|
|
1810
|
-
React.unstable_Profiler = REACT_PROFILER_TYPE;
|
|
1871
|
+
React.unstable_ConcurrentMode = undefined;
|
|
1872
|
+
React.unstable_Profiler = undefined;
|
|
1811
1873
|
}
|
|
1812
1874
|
|
|
1813
1875
|
if (enableHooks) {
|
|
1814
1876
|
React.useCallback = useCallback;
|
|
1815
1877
|
React.useContext = useContext;
|
|
1816
1878
|
React.useEffect = useEffect;
|
|
1817
|
-
React.
|
|
1879
|
+
React.useImperativeHandle = useImperativeHandle;
|
|
1880
|
+
React.useDebugValue = useDebugValue;
|
|
1818
1881
|
React.useLayoutEffect = useLayoutEffect;
|
|
1819
1882
|
React.useMemo = useMemo;
|
|
1820
|
-
React.useMutationEffect = useMutationEffect;
|
|
1821
1883
|
React.useReducer = useReducer;
|
|
1822
1884
|
React.useRef = useRef;
|
|
1823
1885
|
React.useState = useState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.8.0-alpha.1
|
|
2
2
|
* react.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -7,18 +7,19 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';var
|
|
11
|
-
60115,
|
|
12
|
-
function
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
function
|
|
16
|
-
function
|
|
17
|
-
function
|
|
18
|
-
function
|
|
19
|
-
0;!(
|
|
20
|
-
function
|
|
21
|
-
var X={Children:{map:function(a,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:y,render:a}},lazy:function(a){return{$$typeof:
|
|
23
|
-
if(null!=b){void 0!==b.ref&&(
|
|
24
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:
|
|
10
|
+
'use strict';var h=require("object-assign"),l="function"===typeof Symbol&&Symbol.for,p=l?Symbol.for("react.element"):60103,q=l?Symbol.for("react.portal"):60106,r=l?Symbol.for("react.fragment"):60107,t=l?Symbol.for("react.strict_mode"):60108,u=l?Symbol.for("react.profiler"):60114,v=l?Symbol.for("react.provider"):60109,w=l?Symbol.for("react.context"):60110,x=l?Symbol.for("react.concurrent_mode"):60111,y=l?Symbol.for("react.forward_ref"):60112,z=l?Symbol.for("react.suspense"):60113,aa=l?Symbol.for("react.memo"):
|
|
11
|
+
60115,ba=l?Symbol.for("react.lazy"):60116,A="function"===typeof Symbol&&Symbol.iterator;function ca(a,b,d,c,e,g,k,f){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 m=[d,c,e,g,k,f],n=0;a=Error(b.replace(/%s/g,function(){return m[n++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}
|
|
12
|
+
function B(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]);ca(!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)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D={};
|
|
13
|
+
function E(a,b,d){this.props=a;this.context=b;this.refs=D;this.updater=d||C}E.prototype.isReactComponent={};E.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?B("85"):void 0;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,d){this.props=a;this.context=b;this.refs=D;this.updater=d||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,d){var c=void 0,e={},g=null,k=null;if(null!=b)for(c in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),b)K.call(b,c)&&!L.hasOwnProperty(c)&&(e[c]=b[c]);var f=arguments.length-2;if(1===f)e.children=d;else if(1<f){for(var m=Array(f),n=0;n<f;n++)m[n]=arguments[n+2];e.children=m}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===e[c]&&(e[c]=f[c]);return{$$typeof:p,type:a,key:g,ref:k,props:e,_owner:J.current}}
|
|
16
|
+
function da(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,d,c){if(P.length){var e=P.pop();e.result=a;e.keyPrefix=b;e.func=d;e.context=c;e.count=0;return e}return{result:a,keyPrefix:b,func:d,context:c,count:0}}
|
|
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,d,c){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var g=!1;if(null===a)g=!0;else switch(e){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return d(c,a,""===b?"."+T(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){e=a[k];var f=b+T(e,k);g+=S(e,f,d,c)}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),k=
|
|
19
|
+
0;!(e=a.next()).done;)e=e.value,f=b+T(e,k++),g+=S(e,f,d,c);else"object"===e&&(d=""+a,B("31","[object Object]"===d?"object with keys {"+Object.keys(a).join(", ")+"}":d,""));return g}function U(a,b,d){return null==a?0:S(a,"",b,d)}function T(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function ea(a,b){a.func.call(a.context,b,a.count++)}
|
|
20
|
+
function fa(a,b,d){var c=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?V(a,c,d,function(a){return a}):null!=a&&(N(a)&&(a=da(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+d)),c.push(a))}function V(a,b,d,c,e){var g="";null!=d&&(g=(""+d).replace(O,"$&/")+"/");b=Q(b,g,c,e);U(a,fa,b);R(b)}function W(){var a=I.current;null===a?B("298"):void 0;return a}
|
|
21
|
+
var X={Children:{map:function(a,b,d){if(null==a)return a;var c=[];V(a,c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=Q(null,null,b,d);U(a,ea,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){N(a)?void 0: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:y,render:a}},lazy:function(a){return{$$typeof:ba,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:aa,type:a,compare:void 0===b?null:b}},Fragment:r,StrictMode:t,Suspense:z,createElement:M,cloneElement:function(a,b,d){null===a||void 0===a?B("267",a):void 0;var c=void 0,e=h({},a.props),g=a.key,k=a.ref,f=a._owner;
|
|
23
|
+
if(null!=b){void 0!==b.ref&&(k=b.ref,f=J.current);void 0!==b.key&&(g=""+b.key);var m=void 0;a.type&&a.type.defaultProps&&(m=a.type.defaultProps);for(c in b)K.call(b,c)&&!L.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==m?m[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1<c){m=Array(c);for(var n=0;n<c;n++)m[n]=arguments[n+2];e.children=m}return{$$typeof:p,type:a.type,key:g,ref:k,props:e,_owner:f}},createFactory:function(a){var b=M.bind(null,a);b.type=a;return b},isValidElement:N,version:"16.8.0-alpha.1",
|
|
24
|
+
unstable_ConcurrentMode:x,unstable_Profiler:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:I,ReactCurrentOwner:J,assign:h}};X.ConcurrentMode=x;X.Profiler=u;X.unstable_ConcurrentMode=void 0;X.unstable_Profiler=void 0;X.useCallback=function(a,b){return W().useCallback(a,b)};X.useContext=function(a,b){return W().useContext(a,b)};X.useEffect=function(a,b){return W().useEffect(a,b)};X.useImperativeHandle=function(a,b,d){return W().useImperativeHandle(a,b,d)};
|
|
25
|
+
X.useDebugValue=function(){};X.useLayoutEffect=function(a,b){return W().useLayoutEffect(a,b)};X.useMemo=function(a,b){return W().useMemo(a,b)};X.useReducer=function(a,b,d){return W().useReducer(a,b,d)};X.useRef=function(a){return W().useRef(a)};X.useState=function(a){return W().useState(a)};var Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;
|
package/package.json
CHANGED
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
"keywords": [
|
|
5
5
|
"react"
|
|
6
6
|
],
|
|
7
|
-
"version": "16.
|
|
7
|
+
"version": "16.8.0-alpha.1",
|
|
8
8
|
"homepage": "https://reactjs.org/",
|
|
9
9
|
"bugs": "https://github.com/facebook/react/issues",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"files": [
|
|
12
12
|
"LICENSE",
|
|
13
13
|
"README.md",
|
|
14
|
+
"build-info.json",
|
|
14
15
|
"index.js",
|
|
15
16
|
"cjs/",
|
|
16
17
|
"umd/"
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
"loose-envify": "^1.1.0",
|
|
25
26
|
"object-assign": "^4.1.1",
|
|
26
27
|
"prop-types": "^15.6.2",
|
|
27
|
-
"scheduler": "^0.
|
|
28
|
+
"scheduler": "^0.13.0-alpha.1"
|
|
28
29
|
},
|
|
29
30
|
"browserify": {
|
|
30
31
|
"transform": [
|
package/umd/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.8.0-alpha.1
|
|
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.8.0-alpha.1';
|
|
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.
|
|
@@ -51,7 +51,7 @@ function getIteratorFn(maybeIterable) {
|
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
var enableHooks =
|
|
54
|
+
var enableHooks = true;
|
|
55
55
|
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
|
|
56
56
|
|
|
57
57
|
|
|
@@ -74,6 +74,9 @@ var enableHooks = false;
|
|
|
74
74
|
// Trace which interactions trigger each commit.
|
|
75
75
|
var enableSchedulerTracing = true;
|
|
76
76
|
|
|
77
|
+
// Only used in www builds.
|
|
78
|
+
// TODO: true? Here it might just be false.
|
|
79
|
+
|
|
77
80
|
// Only used in www builds.
|
|
78
81
|
|
|
79
82
|
|
|
@@ -86,7 +89,7 @@ var enableSchedulerTracing = true;
|
|
|
86
89
|
|
|
87
90
|
// These APIs will no longer be "unstable" in the upcoming 16.7 release,
|
|
88
91
|
// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
|
|
89
|
-
var enableStableConcurrentModeAPIs =
|
|
92
|
+
var enableStableConcurrentModeAPIs = true;
|
|
90
93
|
|
|
91
94
|
/*
|
|
92
95
|
object-assign
|
|
@@ -534,6 +537,8 @@ function createRef() {
|
|
|
534
537
|
return refObject;
|
|
535
538
|
}
|
|
536
539
|
|
|
540
|
+
var enableSchedulerDebugging$1 = false;
|
|
541
|
+
|
|
537
542
|
/* eslint-disable no-var */
|
|
538
543
|
|
|
539
544
|
// TODO: Use symbols?
|
|
@@ -561,6 +566,9 @@ var IDLE_PRIORITY = maxSigned31BitInt;
|
|
|
561
566
|
var firstCallbackNode = null;
|
|
562
567
|
|
|
563
568
|
var currentDidTimeout = false;
|
|
569
|
+
// Pausing the scheduler is useful for debugging.
|
|
570
|
+
var isSchedulerPaused = false;
|
|
571
|
+
|
|
564
572
|
var currentPriorityLevel = NormalPriority;
|
|
565
573
|
var currentEventStartTime = -1;
|
|
566
574
|
var currentExpirationTime = -1;
|
|
@@ -695,13 +703,20 @@ function flushImmediateWork() {
|
|
|
695
703
|
}
|
|
696
704
|
|
|
697
705
|
function flushWork(didTimeout) {
|
|
706
|
+
// Exit right away if we're currently paused
|
|
707
|
+
|
|
708
|
+
if (enableSchedulerDebugging$1 && isSchedulerPaused) {
|
|
709
|
+
return;
|
|
710
|
+
}
|
|
711
|
+
|
|
698
712
|
isExecutingCallback = true;
|
|
699
713
|
var previousDidTimeout = currentDidTimeout;
|
|
700
714
|
currentDidTimeout = didTimeout;
|
|
701
715
|
try {
|
|
702
716
|
if (didTimeout) {
|
|
703
717
|
// Flush all the expired callbacks without yielding.
|
|
704
|
-
while (firstCallbackNode !== null) {
|
|
718
|
+
while (firstCallbackNode !== null && !(enableSchedulerDebugging$1 && isSchedulerPaused)) {
|
|
719
|
+
// TODO Wrap in feature flag
|
|
705
720
|
// Read the current time. Flush all the callbacks that expire at or
|
|
706
721
|
// earlier than that time. Then read the current time again and repeat.
|
|
707
722
|
// This optimizes for as few performance.now calls as possible.
|
|
@@ -709,7 +724,7 @@ function flushWork(didTimeout) {
|
|
|
709
724
|
if (firstCallbackNode.expirationTime <= currentTime) {
|
|
710
725
|
do {
|
|
711
726
|
flushFirstCallback();
|
|
712
|
-
} while (firstCallbackNode !== null && firstCallbackNode.expirationTime <= currentTime);
|
|
727
|
+
} while (firstCallbackNode !== null && firstCallbackNode.expirationTime <= currentTime && !(enableSchedulerDebugging$1 && isSchedulerPaused));
|
|
713
728
|
continue;
|
|
714
729
|
}
|
|
715
730
|
break;
|
|
@@ -718,6 +733,9 @@ function flushWork(didTimeout) {
|
|
|
718
733
|
// Keep flushing callbacks until we run out of time in the frame.
|
|
719
734
|
if (firstCallbackNode !== null) {
|
|
720
735
|
do {
|
|
736
|
+
if (enableSchedulerDebugging$1 && isSchedulerPaused) {
|
|
737
|
+
break;
|
|
738
|
+
}
|
|
721
739
|
flushFirstCallback();
|
|
722
740
|
} while (firstCallbackNode !== null && !shouldYieldToHost());
|
|
723
741
|
}
|
|
@@ -856,6 +874,21 @@ function unstable_scheduleCallback(callback, deprecated_options) {
|
|
|
856
874
|
return newNode;
|
|
857
875
|
}
|
|
858
876
|
|
|
877
|
+
function unstable_pauseExecution() {
|
|
878
|
+
isSchedulerPaused = true;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
function unstable_continueExecution() {
|
|
882
|
+
isSchedulerPaused = false;
|
|
883
|
+
if (firstCallbackNode !== null) {
|
|
884
|
+
ensureHostCallbackIsScheduled();
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
function unstable_getFirstCallbackNode() {
|
|
889
|
+
return firstCallbackNode;
|
|
890
|
+
}
|
|
891
|
+
|
|
859
892
|
function unstable_cancelCallback(callbackNode) {
|
|
860
893
|
var next = callbackNode.next;
|
|
861
894
|
if (next === null) {
|
|
@@ -951,41 +984,45 @@ var requestHostCallback;
|
|
|
951
984
|
var cancelHostCallback;
|
|
952
985
|
var shouldYieldToHost;
|
|
953
986
|
|
|
954
|
-
|
|
987
|
+
var globalValue = null;
|
|
988
|
+
if (typeof window !== 'undefined') {
|
|
989
|
+
globalValue = window;
|
|
990
|
+
} else if (typeof global !== 'undefined') {
|
|
991
|
+
globalValue = global;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
if (globalValue && globalValue._schedMock) {
|
|
955
995
|
// Dynamic injection, only for testing purposes.
|
|
956
|
-
var
|
|
957
|
-
requestHostCallback =
|
|
958
|
-
cancelHostCallback =
|
|
959
|
-
shouldYieldToHost =
|
|
996
|
+
var globalImpl = globalValue._schedMock;
|
|
997
|
+
requestHostCallback = globalImpl[0];
|
|
998
|
+
cancelHostCallback = globalImpl[1];
|
|
999
|
+
shouldYieldToHost = globalImpl[2];
|
|
1000
|
+
getCurrentTime = globalImpl[3];
|
|
960
1001
|
} else if (
|
|
961
1002
|
// If Scheduler runs in a non-DOM environment, it falls back to a naive
|
|
962
1003
|
// implementation using setTimeout.
|
|
963
1004
|
typeof window === 'undefined' ||
|
|
964
|
-
//
|
|
965
|
-
|
|
966
|
-
|
|
1005
|
+
// Check if MessageChannel is supported, too.
|
|
1006
|
+
typeof MessageChannel !== 'function') {
|
|
1007
|
+
// If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
|
|
1008
|
+
// fallback to a naive implementation.
|
|
967
1009
|
var _callback = null;
|
|
968
|
-
var
|
|
969
|
-
var _flushCallback = function (didTimeout, ms) {
|
|
1010
|
+
var _flushCallback = function (didTimeout) {
|
|
970
1011
|
if (_callback !== null) {
|
|
971
|
-
var cb = _callback;
|
|
972
|
-
_callback = null;
|
|
973
1012
|
try {
|
|
974
|
-
|
|
975
|
-
cb(didTimeout);
|
|
1013
|
+
_callback(didTimeout);
|
|
976
1014
|
} finally {
|
|
977
|
-
|
|
1015
|
+
_callback = null;
|
|
978
1016
|
}
|
|
979
1017
|
}
|
|
980
1018
|
};
|
|
981
1019
|
requestHostCallback = function (cb, ms) {
|
|
982
|
-
if (
|
|
1020
|
+
if (_callback !== null) {
|
|
983
1021
|
// Protect against re-entrancy.
|
|
984
|
-
setTimeout(requestHostCallback, 0, cb
|
|
1022
|
+
setTimeout(requestHostCallback, 0, cb);
|
|
985
1023
|
} else {
|
|
986
1024
|
_callback = cb;
|
|
987
|
-
setTimeout(_flushCallback,
|
|
988
|
-
setTimeout(_flushCallback, maxSigned31BitInt, false, maxSigned31BitInt);
|
|
1025
|
+
setTimeout(_flushCallback, 0, false);
|
|
989
1026
|
}
|
|
990
1027
|
};
|
|
991
1028
|
cancelHostCallback = function () {
|
|
@@ -994,9 +1031,6 @@ typeof window.addEventListener !== 'function') {
|
|
|
994
1031
|
shouldYieldToHost = function () {
|
|
995
1032
|
return false;
|
|
996
1033
|
};
|
|
997
|
-
getCurrentTime = function () {
|
|
998
|
-
return _currentTime === -1 ? 0 : _currentTime;
|
|
999
|
-
};
|
|
1000
1034
|
} else {
|
|
1001
1035
|
if (typeof console !== 'undefined') {
|
|
1002
1036
|
// TODO: Remove fb.me link
|
|
@@ -1028,12 +1062,9 @@ typeof window.addEventListener !== 'function') {
|
|
|
1028
1062
|
};
|
|
1029
1063
|
|
|
1030
1064
|
// We use the postMessage trick to defer idle work until after the repaint.
|
|
1031
|
-
var
|
|
1032
|
-
var
|
|
1033
|
-
|
|
1034
|
-
return;
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1065
|
+
var channel = new MessageChannel();
|
|
1066
|
+
var port = channel.port2;
|
|
1067
|
+
channel.port1.onmessage = function (event) {
|
|
1037
1068
|
isMessageEventScheduled = false;
|
|
1038
1069
|
|
|
1039
1070
|
var prevScheduledCallback = scheduledHostCallback;
|
|
@@ -1074,9 +1105,6 @@ typeof window.addEventListener !== 'function') {
|
|
|
1074
1105
|
}
|
|
1075
1106
|
}
|
|
1076
1107
|
};
|
|
1077
|
-
// Assumes that we have addEventListener in this environment. Might need
|
|
1078
|
-
// something better for old IE.
|
|
1079
|
-
window.addEventListener('message', idleTick, false);
|
|
1080
1108
|
|
|
1081
1109
|
var animationTick = function (rafTime) {
|
|
1082
1110
|
if (scheduledHostCallback !== null) {
|
|
@@ -1116,7 +1144,7 @@ typeof window.addEventListener !== 'function') {
|
|
|
1116
1144
|
frameDeadline = rafTime + activeFrameTime;
|
|
1117
1145
|
if (!isMessageEventScheduled) {
|
|
1118
1146
|
isMessageEventScheduled = true;
|
|
1119
|
-
|
|
1147
|
+
port.postMessage(undefined);
|
|
1120
1148
|
}
|
|
1121
1149
|
};
|
|
1122
1150
|
|
|
@@ -1125,7 +1153,7 @@ typeof window.addEventListener !== 'function') {
|
|
|
1125
1153
|
timeoutTime = absoluteTimeout;
|
|
1126
1154
|
if (isFlushingHostCallback || absoluteTimeout < 0) {
|
|
1127
1155
|
// Don't wait for the next frame. Continue working ASAP, in a new event.
|
|
1128
|
-
|
|
1156
|
+
port.postMessage(undefined);
|
|
1129
1157
|
} else if (!isAnimationFrameScheduled) {
|
|
1130
1158
|
// If rAF didn't already schedule one, we need to schedule a frame.
|
|
1131
1159
|
// TODO: If this rAF doesn't materialize because the browser throttles, we
|
|
@@ -1500,6 +1528,17 @@ function onWorkCanceled(interactions, threadID) {
|
|
|
1500
1528
|
}
|
|
1501
1529
|
}
|
|
1502
1530
|
|
|
1531
|
+
/**
|
|
1532
|
+
* Keeps track of the current dispatcher.
|
|
1533
|
+
*/
|
|
1534
|
+
var ReactCurrentDispatcher = {
|
|
1535
|
+
/**
|
|
1536
|
+
* @internal
|
|
1537
|
+
* @type {ReactComponent}
|
|
1538
|
+
*/
|
|
1539
|
+
current: null
|
|
1540
|
+
};
|
|
1541
|
+
|
|
1503
1542
|
/**
|
|
1504
1543
|
* Keeps track of the current owner.
|
|
1505
1544
|
*
|
|
@@ -1511,8 +1550,7 @@ var ReactCurrentOwner = {
|
|
|
1511
1550
|
* @internal
|
|
1512
1551
|
* @type {ReactComponent}
|
|
1513
1552
|
*/
|
|
1514
|
-
current: null
|
|
1515
|
-
currentDispatcher: null
|
|
1553
|
+
current: null
|
|
1516
1554
|
};
|
|
1517
1555
|
|
|
1518
1556
|
var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
|
|
@@ -1643,6 +1681,7 @@ function setCurrentlyValidatingElement(element) {
|
|
|
1643
1681
|
}
|
|
1644
1682
|
|
|
1645
1683
|
var ReactSharedInternals = {
|
|
1684
|
+
ReactCurrentDispatcher: ReactCurrentDispatcher,
|
|
1646
1685
|
ReactCurrentOwner: ReactCurrentOwner,
|
|
1647
1686
|
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
|
|
1648
1687
|
assign: objectAssign
|
|
@@ -1662,6 +1701,9 @@ var ReactSharedInternals = {
|
|
|
1662
1701
|
unstable_scheduleCallback: unstable_scheduleCallback,
|
|
1663
1702
|
unstable_runWithPriority: unstable_runWithPriority,
|
|
1664
1703
|
unstable_wrapCallback: unstable_wrapCallback,
|
|
1704
|
+
unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
|
|
1705
|
+
unstable_pauseExecution: unstable_pauseExecution,
|
|
1706
|
+
unstable_continueExecution: unstable_continueExecution,
|
|
1665
1707
|
unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel
|
|
1666
1708
|
},
|
|
1667
1709
|
SchedulerTracing: {
|
|
@@ -2452,13 +2494,51 @@ function createContext(defaultValue, calculateChangedBits) {
|
|
|
2452
2494
|
}
|
|
2453
2495
|
|
|
2454
2496
|
function lazy(ctor) {
|
|
2455
|
-
|
|
2497
|
+
var lazyType = {
|
|
2456
2498
|
$$typeof: REACT_LAZY_TYPE,
|
|
2457
2499
|
_ctor: ctor,
|
|
2458
2500
|
// React uses these fields to store the result.
|
|
2459
2501
|
_status: -1,
|
|
2460
2502
|
_result: null
|
|
2461
2503
|
};
|
|
2504
|
+
|
|
2505
|
+
{
|
|
2506
|
+
// In production, this would just set it on the object.
|
|
2507
|
+
var defaultProps = void 0;
|
|
2508
|
+
var propTypes = void 0;
|
|
2509
|
+
Object.defineProperties(lazyType, {
|
|
2510
|
+
defaultProps: {
|
|
2511
|
+
configurable: true,
|
|
2512
|
+
get: function () {
|
|
2513
|
+
return defaultProps;
|
|
2514
|
+
},
|
|
2515
|
+
set: function (newDefaultProps) {
|
|
2516
|
+
warning$1(false, 'React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
|
|
2517
|
+
defaultProps = newDefaultProps;
|
|
2518
|
+
// Match production behavior more closely:
|
|
2519
|
+
Object.defineProperty(lazyType, 'defaultProps', {
|
|
2520
|
+
enumerable: true
|
|
2521
|
+
});
|
|
2522
|
+
}
|
|
2523
|
+
},
|
|
2524
|
+
propTypes: {
|
|
2525
|
+
configurable: true,
|
|
2526
|
+
get: function () {
|
|
2527
|
+
return propTypes;
|
|
2528
|
+
},
|
|
2529
|
+
set: function (newPropTypes) {
|
|
2530
|
+
warning$1(false, 'React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
|
|
2531
|
+
propTypes = newPropTypes;
|
|
2532
|
+
// Match production behavior more closely:
|
|
2533
|
+
Object.defineProperty(lazyType, 'propTypes', {
|
|
2534
|
+
enumerable: true
|
|
2535
|
+
});
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
});
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
return lazyType;
|
|
2462
2542
|
}
|
|
2463
2543
|
|
|
2464
2544
|
function forwardRef(render) {
|
|
@@ -2504,7 +2584,7 @@ function memo(type, compare) {
|
|
|
2504
2584
|
}
|
|
2505
2585
|
|
|
2506
2586
|
function resolveDispatcher() {
|
|
2507
|
-
var dispatcher =
|
|
2587
|
+
var dispatcher = ReactCurrentDispatcher.current;
|
|
2508
2588
|
!(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
|
|
2509
2589
|
return dispatcher;
|
|
2510
2590
|
}
|
|
@@ -2547,11 +2627,6 @@ function useEffect(create, inputs) {
|
|
|
2547
2627
|
return dispatcher.useEffect(create, inputs);
|
|
2548
2628
|
}
|
|
2549
2629
|
|
|
2550
|
-
function useMutationEffect(create, inputs) {
|
|
2551
|
-
var dispatcher = resolveDispatcher();
|
|
2552
|
-
return dispatcher.useMutationEffect(create, inputs);
|
|
2553
|
-
}
|
|
2554
|
-
|
|
2555
2630
|
function useLayoutEffect(create, inputs) {
|
|
2556
2631
|
var dispatcher = resolveDispatcher();
|
|
2557
2632
|
return dispatcher.useLayoutEffect(create, inputs);
|
|
@@ -2567,9 +2642,16 @@ function useMemo(create, inputs) {
|
|
|
2567
2642
|
return dispatcher.useMemo(create, inputs);
|
|
2568
2643
|
}
|
|
2569
2644
|
|
|
2570
|
-
function
|
|
2645
|
+
function useImperativeHandle(ref, create, inputs) {
|
|
2571
2646
|
var dispatcher = resolveDispatcher();
|
|
2572
|
-
return dispatcher.
|
|
2647
|
+
return dispatcher.useImperativeHandle(ref, create, inputs);
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
function useDebugValue(value, formatterFn) {
|
|
2651
|
+
{
|
|
2652
|
+
var dispatcher = resolveDispatcher();
|
|
2653
|
+
return dispatcher.useDebugValue(value, formatterFn);
|
|
2654
|
+
}
|
|
2573
2655
|
}
|
|
2574
2656
|
|
|
2575
2657
|
/**
|
|
@@ -2763,7 +2845,7 @@ function validateExplicitKey(element, parentType) {
|
|
|
2763
2845
|
|
|
2764
2846
|
setCurrentlyValidatingElement(element);
|
|
2765
2847
|
{
|
|
2766
|
-
warning$1(false, 'Each child in
|
|
2848
|
+
warning$1(false, 'Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
2767
2849
|
}
|
|
2768
2850
|
setCurrentlyValidatingElement(null);
|
|
2769
2851
|
}
|
|
@@ -2819,16 +2901,17 @@ function validateChildKeys(node, parentType) {
|
|
|
2819
2901
|
*/
|
|
2820
2902
|
function validatePropTypes(element) {
|
|
2821
2903
|
var type = element.type;
|
|
2822
|
-
|
|
2823
|
-
|
|
2904
|
+
if (type === null || type === undefined || typeof type === 'string') {
|
|
2905
|
+
return;
|
|
2906
|
+
}
|
|
2907
|
+
var name = getComponentName(type);
|
|
2908
|
+
var propTypes = void 0;
|
|
2824
2909
|
if (typeof type === 'function') {
|
|
2825
|
-
// Class or function component
|
|
2826
|
-
name = type.displayName || type.name;
|
|
2827
2910
|
propTypes = type.propTypes;
|
|
2828
|
-
} else if (typeof type === 'object' && type
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2911
|
+
} else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||
|
|
2912
|
+
// Note: Memo only checks outer props here.
|
|
2913
|
+
// Inner props are checked in the reconciler.
|
|
2914
|
+
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
2832
2915
|
propTypes = type.propTypes;
|
|
2833
2916
|
} else {
|
|
2834
2917
|
return;
|
|
@@ -2988,25 +3071,32 @@ var React = {
|
|
|
2988
3071
|
|
|
2989
3072
|
version: ReactVersion,
|
|
2990
3073
|
|
|
3074
|
+
unstable_ConcurrentMode: REACT_CONCURRENT_MODE_TYPE,
|
|
3075
|
+
unstable_Profiler: REACT_PROFILER_TYPE,
|
|
3076
|
+
|
|
2991
3077
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
|
|
2992
3078
|
};
|
|
2993
3079
|
|
|
3080
|
+
// Note: some APIs are added with feature flags.
|
|
3081
|
+
// Make sure that stable builds for open source
|
|
3082
|
+
// don't modify the React object to avoid deopts.
|
|
3083
|
+
// Also let's not expose their names in stable builds.
|
|
3084
|
+
|
|
2994
3085
|
if (enableStableConcurrentModeAPIs) {
|
|
2995
3086
|
React.ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
2996
3087
|
React.Profiler = REACT_PROFILER_TYPE;
|
|
2997
|
-
|
|
2998
|
-
React.
|
|
2999
|
-
React.unstable_Profiler = REACT_PROFILER_TYPE;
|
|
3088
|
+
React.unstable_ConcurrentMode = undefined;
|
|
3089
|
+
React.unstable_Profiler = undefined;
|
|
3000
3090
|
}
|
|
3001
3091
|
|
|
3002
3092
|
if (enableHooks) {
|
|
3003
3093
|
React.useCallback = useCallback;
|
|
3004
3094
|
React.useContext = useContext;
|
|
3005
3095
|
React.useEffect = useEffect;
|
|
3006
|
-
React.
|
|
3096
|
+
React.useImperativeHandle = useImperativeHandle;
|
|
3097
|
+
React.useDebugValue = useDebugValue;
|
|
3007
3098
|
React.useLayoutEffect = useLayoutEffect;
|
|
3008
3099
|
React.useMemo = useMemo;
|
|
3009
|
-
React.useMutationEffect = useMutationEffect;
|
|
3010
3100
|
React.useReducer = useReducer;
|
|
3011
3101
|
React.useRef = useRef;
|
|
3012
3102
|
React.useState = useState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.8.0-alpha.1
|
|
2
2
|
* react.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -6,26 +6,28 @@
|
|
|
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(N,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
c
|
|
13
|
-
|
|
14
|
-
typeof a&&null!==a&&a.$$typeof===
|
|
15
|
-
a)
|
|
16
|
-
"[object Object]"===d?"object with keys {"+Object.keys(a).join(", ")+"}":d,""));return
|
|
17
|
-
d)),
|
|
18
|
-
60112,
|
|
19
|
-
var d={};"abcdefghijklmnopqrst".split("").forEach(function(a){d[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},d)).join("")?!1:!0}catch(
|
|
20
|
-
|
|
21
|
-
e.isPureReactComponent=!0;var c=null,G=!1,k=3,m=-1,F=-1,
|
|
22
|
-
var l=function(){return
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
b,d){return d()},unstable_unsubscribe:function(a){},unstable_wrap:function(a){return a}}});var
|
|
29
|
-
void 0:
|
|
30
|
-
b?null:b}},Fragment:
|
|
31
|
-
0;m<c;m++)l[m]=arguments[m+2];e.children=l}return{$$typeof:
|
|
9
|
+
'use strict';(function(N,q){"object"===typeof exports&&"undefined"!==typeof module?module.exports=q():"function"===typeof define&&define.amd?define(q):N.React=q()})(this,function(){function N(a,b,d,g,p,c,e,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 n=[d,g,p,c,e,h],f=0;a=Error(b.replace(/%s/g,function(){return n[f++]}));a.name="Invariant Violation"}a.framesToPop=1;
|
|
10
|
+
throw a;}}function q(a){for(var b=arguments.length-1,d="https://reactjs.org/docs/error-decoder.html?invariant="+a,g=0;g<b;g++)d+="&args[]="+encodeURIComponent(arguments[g+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. ",d)}function u(a,b,d){this.props=a;this.context=b;this.refs=ba;this.updater=d||ca}function da(){}function O(a,b,d){this.props=a;this.context=b;this.refs=ba;this.updater=d||
|
|
11
|
+
ca}function v(){if(!y){var a=c.expirationTime;D?P():D=!0;E(ua,a)}}function Q(){var a=c,b=c.next;if(c===b)c=null;else{var d=c.previous;c=d.next=b;b.previous=d}a.next=a.previous=null;d=a.callback;b=a.expirationTime;a=a.priorityLevel;var g=k,p=F;k=a;F=b;try{var n=d()}finally{k=g,F=p}if("function"===typeof n)if(n={callback:n,priorityLevel:a,expirationTime:b,next:null,previous:null},null===c)c=n.next=n.previous=n;else{d=null;a=c;do{if(a.expirationTime>=b){d=a;break}a=a.next}while(a!==c);null===d?d=c:d===
|
|
12
|
+
c&&(c=n,v());b=d.previous;b.next=d.previous=n;n.next=d;n.previous=b}}function R(){if(-1===m&&null!==c&&1===c.priorityLevel){y=!0;try{do Q();while(null!==c&&1===c.priorityLevel)}finally{y=!1,null!==c?v():D=!1}}}function ua(a){y=!0;var b=G;G=a;try{if(a)for(;null!==c;){var d=l();if(c.expirationTime<=d){do Q();while(null!==c&&c.expirationTime<=d)}else break}else if(null!==c){do Q();while(null!==c&&!H())}}finally{y=!1,G=b,null!==c?v():D=!1,R()}}function ea(a,b,d){var g=void 0,p={},c=null,e=null;if(null!=
|
|
13
|
+
b)for(g in void 0!==b.ref&&(e=b.ref),void 0!==b.key&&(c=""+b.key),b)fa.call(b,g)&&!ha.hasOwnProperty(g)&&(p[g]=b[g]);var h=arguments.length-2;if(1===h)p.children=d;else if(1<h){for(var f=Array(h),k=0;k<h;k++)f[k]=arguments[k+2];p.children=f}if(a&&a.defaultProps)for(g in h=a.defaultProps,h)void 0===p[g]&&(p[g]=h[g]);return{$$typeof:z,type:a,key:c,ref:e,props:p,_owner:S.current}}function va(a,b){return{$$typeof:z,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function T(a){return"object"===
|
|
14
|
+
typeof a&&null!==a&&a.$$typeof===z}function wa(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function ia(a,b,d,g){if(I.length){var c=I.pop();c.result=a;c.keyPrefix=b;c.func=d;c.context=g;c.count=0;return c}return{result:a,keyPrefix:b,func:d,context:g,count:0}}function ja(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>I.length&&I.push(a)}function U(a,b,d,g){var c=typeof a;if("undefined"===c||"boolean"===c)a=null;var e=!1;if(null===
|
|
15
|
+
a)e=!0;else switch(c){case "string":case "number":e=!0;break;case "object":switch(a.$$typeof){case z:case xa:e=!0}}if(e)return d(g,a,""===b?"."+V(a,0):b),1;e=0;b=""===b?".":b+":";if(Array.isArray(a))for(var f=0;f<a.length;f++){c=a[f];var h=b+V(c,f);e+=U(c,h,d,g)}else if(null===a||"object"!==typeof a?h=null:(h=ka&&a[ka]||a["@@iterator"],h="function"===typeof h?h:null),"function"===typeof h)for(a=h.call(a),f=0;!(c=a.next()).done;)c=c.value,h=b+V(c,f++),e+=U(c,h,d,g);else"object"===c&&(d=""+a,q("31",
|
|
16
|
+
"[object Object]"===d?"object with keys {"+Object.keys(a).join(", ")+"}":d,""));return e}function W(a,b,d){return null==a?0:U(a,"",b,d)}function V(a,b){return"object"===typeof a&&null!==a&&null!=a.key?wa(a.key):b.toString(36)}function ya(a,b,d){a.func.call(a.context,b,a.count++)}function za(a,b,d){var g=a.result,c=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?X(a,g,d,function(a){return a}):null!=a&&(T(a)&&(a=va(a,c+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(la,"$&/")+"/")+
|
|
17
|
+
d)),g.push(a))}function X(a,b,d,g,c){var e="";null!=d&&(e=(""+d).replace(la,"$&/")+"/");b=ia(b,e,g,c);W(a,za,b);ja(b)}function r(){var a=ma.current;null===a?q("298"):void 0;return a}var e="function"===typeof Symbol&&Symbol.for,z=e?Symbol.for("react.element"):60103,xa=e?Symbol.for("react.portal"):60106,f=e?Symbol.for("react.fragment"):60107,Aa=e?Symbol.for("react.strict_mode"):60108,t=e?Symbol.for("react.profiler"):60114,Ba=e?Symbol.for("react.provider"):60109,Ca=e?Symbol.for("react.context"):60110,
|
|
18
|
+
na=e?Symbol.for("react.concurrent_mode"):60111,Da=e?Symbol.for("react.forward_ref"):60112,Ea=e?Symbol.for("react.suspense"):60113,Fa=e?Symbol.for("react.memo"):60115,Ga=e?Symbol.for("react.lazy"):60116,ka="function"===typeof Symbol&&Symbol.iterator,oa=Object.getOwnPropertySymbols,Ha=Object.prototype.hasOwnProperty,Ia=Object.prototype.propertyIsEnumerable,J=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=
|
|
19
|
+
0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var d={};"abcdefghijklmnopqrst".split("").forEach(function(a){d[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},d)).join("")?!1:!0}catch(g){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");var d=Object(a);for(var c,e=1;e<arguments.length;e++){var f=Object(arguments[e]);
|
|
20
|
+
for(var k in f)Ha.call(f,k)&&(d[k]=f[k]);if(oa){c=oa(f);for(var h=0;h<c.length;h++)Ia.call(f,c[h])&&(d[c[h]]=f[c[h]])}}return d},ca={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,d){},enqueueReplaceState:function(a,b,d,c){},enqueueSetState:function(a,b,d,c){}},ba={};u.prototype.isReactComponent={};u.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?q("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};u.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,
|
|
21
|
+
a,"forceUpdate")};da.prototype=u.prototype;e=O.prototype=new da;e.constructor=O;J(e,u.prototype);e.isPureReactComponent=!0;var c=null,G=!1,k=3,m=-1,F=-1,y=!1,D=!1,Ja=Date,Ka="function"===typeof setTimeout?setTimeout:void 0,La="function"===typeof clearTimeout?clearTimeout:void 0,pa="function"===typeof requestAnimationFrame?requestAnimationFrame:void 0,qa="function"===typeof cancelAnimationFrame?cancelAnimationFrame:void 0,ra,sa,Y=function(a){ra=pa(function(b){La(sa);a(b)});sa=Ka(function(){qa(ra);
|
|
22
|
+
a(l())},100)};if("object"===typeof performance&&"function"===typeof performance.now){var Ma=performance;var l=function(){return Ma.now()}}else l=function(){return Ja.now()};e=null;"undefined"!==typeof window?e=window:"undefined"!==typeof global&&(e=global);if(e&&e._schedMock){e=e._schedMock;var E=e[0];var P=e[1];var H=e[2];l=e[3]}else if("undefined"===typeof window||"function"!==typeof MessageChannel){var w=null,Na=function(a){if(null!==w)try{w(a)}finally{w=null}};E=function(a,b){null!==w?setTimeout(E,
|
|
23
|
+
0,a):(w=a,setTimeout(Na,0,!1))};P=function(){w=null};H=function(){return!1}}else{"undefined"!==typeof console&&("function"!==typeof pa&&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 qa&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var x=null,K=!1,A=-1,B=!1,Z=!1,L=0,
|
|
24
|
+
M=33,C=33;H=function(){return L<=l()};e=new MessageChannel;var ta=e.port2;e.port1.onmessage=function(a){K=!1;a=x;var b=A;x=null;A=-1;var d=l(),c=!1;if(0>=L-d)if(-1!==b&&b<=d)c=!0;else{B||(B=!0,Y(aa));x=a;A=b;return}if(null!==a){Z=!0;try{a(c)}finally{Z=!1}}};var aa=function(a){if(null!==x){Y(aa);var b=a-L+C;b<C&&M<C?(8>b&&(b=8),C=b<M?M:b):M=b;L=a+C;K||(K=!0,ta.postMessage(void 0))}else B=!1};E=function(a,b){x=a;A=b;Z||0>b?ta.postMessage(void 0):B||(B=!0,Y(aa))};P=function(){x=null;K=!1;A=-1}}var Oa=
|
|
25
|
+
0,ma={current:null},S={current:null};e={ReactCurrentDispatcher:ma,ReactCurrentOwner:S,assign:J};J(e,{Scheduler:{unstable_cancelCallback:function(a){var b=a.next;if(null!==b){if(b===a)c=null;else{a===c&&(c=b);var d=a.previous;d.next=b;b.previous=d}a.next=a.previous=null}},unstable_shouldYield:function(){return!G&&(null!==c&&c.expirationTime<F||H())},unstable_now:l,unstable_scheduleCallback:function(a,b){var d=-1!==m?m:l();if("object"===typeof b&&null!==b&&"number"===typeof b.timeout)b=d+b.timeout;
|
|
26
|
+
else switch(k){case 1:b=d+-1;break;case 2:b=d+250;break;case 5:b=d+1073741823;break;case 4:b=d+1E4;break;default:b=d+5E3}a={callback:a,priorityLevel:k,expirationTime:b,next:null,previous:null};if(null===c)c=a.next=a.previous=a,v();else{d=null;var g=c;do{if(g.expirationTime>b){d=g;break}g=g.next}while(g!==c);null===d?d=c:d===c&&(c=a,v());b=d.previous;b.next=d.previous=a;a.next=d;a.previous=b}return a},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=
|
|
27
|
+
3}var d=k,c=m;k=a;m=l();try{return b()}finally{k=d,m=c,R()}},unstable_wrapCallback:function(a){var b=k;return function(){var d=k,c=m;k=b;m=l();try{return a.apply(this,arguments)}finally{k=d,m=c,R()}}},unstable_getFirstCallbackNode:function(){return c},unstable_pauseExecution:function(){},unstable_continueExecution:function(){null!==c&&v()},unstable_getCurrentPriorityLevel:function(){return k}},SchedulerTracing:{__interactionsRef:null,__subscriberRef:null,unstable_clear:function(a){return a()},unstable_getCurrent:function(){return null},
|
|
28
|
+
unstable_getThreadID:function(){return++Oa},unstable_subscribe:function(a){},unstable_trace:function(a,b,d){return d()},unstable_unsubscribe:function(a){},unstable_wrap:function(a){return a}}});var fa=Object.prototype.hasOwnProperty,ha={key:!0,ref:!0,__self:!0,__source:!0},la=/\/+/g,I=[];f={Children:{map:function(a,b,d){if(null==a)return a;var c=[];X(a,c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=ia(null,null,b,d);W(a,ya,b);ja(b)},count:function(a){return W(a,function(){return null},
|
|
29
|
+
null)},toArray:function(a){var b=[];X(a,b,null,function(a){return a});return b},only:function(a){T(a)?void 0:q("143");return a}},createRef:function(){return{current:null}},Component:u,PureComponent:O,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:Ca,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:Ba,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:Da,render:a}},lazy:function(a){return{$$typeof:Ga,
|
|
30
|
+
_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:Fa,type:a,compare:void 0===b?null:b}},Fragment:f,StrictMode:Aa,Suspense:Ea,createElement:ea,cloneElement:function(a,b,d){null===a||void 0===a?q("267",a):void 0;var c=void 0,e=J({},a.props),f=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=S.current);void 0!==b.key&&(f=""+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)fa.call(b,c)&&!ha.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==
|
|
31
|
+
l?l[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1<c){l=Array(c);for(var m=0;m<c;m++)l[m]=arguments[m+2];e.children=l}return{$$typeof:z,type:a.type,key:f,ref:k,props:e,_owner:h}},createFactory:function(a){var b=ea.bind(null,a);b.type=a;return b},isValidElement:T,version:"16.8.0-alpha.1",unstable_ConcurrentMode:na,unstable_Profiler:t,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:e};f.ConcurrentMode=na;f.Profiler=t;f.unstable_ConcurrentMode=void 0;f.unstable_Profiler=void 0;
|
|
32
|
+
f.useCallback=function(a,b){return r().useCallback(a,b)};f.useContext=function(a,b){return r().useContext(a,b)};f.useEffect=function(a,b){return r().useEffect(a,b)};f.useImperativeHandle=function(a,b,c){return r().useImperativeHandle(a,b,c)};f.useDebugValue=function(a,b){};f.useLayoutEffect=function(a,b){return r().useLayoutEffect(a,b)};f.useMemo=function(a,b){return r().useMemo(a,b)};f.useReducer=function(a,b,c){return r().useReducer(a,b,c)};f.useRef=function(a){return r().useRef(a)};f.useState=
|
|
33
|
+
function(a){return r().useState(a)};t=(t={default:f},f)||t;return t.default||t});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.8.0-alpha.1
|
|
2
2
|
* react.profiling.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -6,30 +6,32 @@
|
|
|
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(Q,r){"object"===typeof exports&&"undefined"!==typeof module?module.exports=r():"function"===typeof define&&define.amd?define(r):Q.React=r()})(this,function(){function Q(a,b,c,d,e,
|
|
10
|
-
1;throw a;}}function r(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=0;d<b;d++)c+="&args[]="+encodeURIComponent(arguments[d+1]);Q(!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)}function
|
|
11
|
-
c||
|
|
12
|
-
f:c===f&&(f=
|
|
13
|
-
(b=!0,c=e)}});if(b)throw c;}function
|
|
14
|
-
!0,d=
|
|
15
|
-
e[d]&&(e[d]=h[d]);return{$$typeof:
|
|
16
|
-
function
|
|
17
|
-
h=null:(h=
|
|
18
|
-
a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?aa(a,d,c,function(a){return a}):null!=a&&(W(a)&&(a=
|
|
19
|
-
60108,w=
|
|
20
|
-
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:
|
|
21
|
-
var c=Object(a);for(var d,e=1;e<arguments.length;e++){var
|
|
22
|
-
a,b,"setState")};
|
|
23
|
-
void 0,ta,ua,ba=function(a){
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
(null!==f&&f.expirationTime<I||K())},unstable_now:
|
|
28
|
-
c?c=f:c===f&&(f=a,y());b=c.previous;b.next=c.previous=a;a.next=c;a.previous=b}return a},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=
|
|
29
|
-
m.current;
|
|
30
|
-
|
|
31
|
-
e)e.onWorkStarted(d,c)}finally{try{g=a.apply(void 0,arguments)}finally{if(
|
|
32
|
-
if(e&&0===a.__count)e.onInteractionScheduledWorkCompleted(a)})}};return b}}});var
|
|
33
|
-
|
|
34
|
-
b}},Fragment:
|
|
35
|
-
arguments[m+2];e.children=
|
|
9
|
+
'use strict';(function(Q,r){"object"===typeof exports&&"undefined"!==typeof module?module.exports=r():"function"===typeof define&&define.amd?define(r):Q.React=r()})(this,function(){function Q(a,b,c,d,e,l,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 g=[c,d,e,l,f,h],xa=0;a=Error(b.replace(/%s/g,function(){return g[xa++]}));a.name="Invariant Violation"}a.framesToPop=
|
|
10
|
+
1;throw a;}}function r(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=0;d<b;d++)c+="&args[]="+encodeURIComponent(arguments[d+1]);Q(!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)}function x(a,b,c){this.props=a;this.context=b;this.refs=ea;this.updater=c||fa}function ha(){}function R(a,b,c){this.props=a;this.context=b;this.refs=ea;this.updater=
|
|
11
|
+
c||fa}function y(){if(!B){var a=f.expirationTime;G?S():G=!0;H(ya,a)}}function T(){var a=f,b=f.next;if(f===b)f=null;else{var c=f.previous;f=c.next=b;b.previous=c}a.next=a.previous=null;c=a.callback;b=a.expirationTime;a=a.priorityLevel;var d=m,e=I;m=a;I=b;try{var l=c()}finally{m=d,I=e}if("function"===typeof l)if(l={callback:l,priorityLevel:a,expirationTime:b,next:null,previous:null},null===f)f=l.next=l.previous=l;else{c=null;a=f;do{if(a.expirationTime>=b){c=a;break}a=a.next}while(a!==f);null===c?c=
|
|
12
|
+
f:c===f&&(f=l,y());b=c.previous;b.next=c.previous=l;l.next=c;l.previous=b}}function U(){if(-1===t&&null!==f&&1===f.priorityLevel){B=!0;try{do T();while(null!==f&&1===f.priorityLevel)}finally{B=!1,null!==f?y():G=!1}}}function ya(a){B=!0;var b=J;J=a;try{if(a)for(;null!==f;){var c=q();if(f.expirationTime<=c){do T();while(null!==f&&f.expirationTime<=c)}else break}else if(null!==f){do T();while(null!==f&&!K())}}finally{B=!1,J=b,null!==f?y():G=!1,U()}}function za(a){var b=!1,c=null;p.forEach(function(d){try{d.onInteractionTraced(a)}catch(e){b||
|
|
13
|
+
(b=!0,c=e)}});if(b)throw c;}function Aa(a){var b=!1,c=null;p.forEach(function(d){try{d.onInteractionScheduledWorkCompleted(a)}catch(e){b||(b=!0,c=e)}});if(b)throw c;}function Ba(a,b){var c=!1,d=null;p.forEach(function(e){try{e.onWorkScheduled(a,b)}catch(l){c||(c=!0,d=l)}});if(c)throw d;}function Ca(a,b){var c=!1,d=null;p.forEach(function(e){try{e.onWorkStarted(a,b)}catch(l){c||(c=!0,d=l)}});if(c)throw d;}function Da(a,b){var c=!1,d=null;p.forEach(function(e){try{e.onWorkStopped(a,b)}catch(l){c||(c=
|
|
14
|
+
!0,d=l)}});if(c)throw d;}function Ea(a,b){var c=!1,d=null;p.forEach(function(e){try{e.onWorkCanceled(a,b)}catch(l){c||(c=!0,d=l)}});if(c)throw d;}function ia(a,b,c){var d=void 0,e={},l=null,f=null;if(null!=b)for(d in void 0!==b.ref&&(f=b.ref),void 0!==b.key&&(l=""+b.key),b)ja.call(b,d)&&!ka.hasOwnProperty(d)&&(e[d]=b[d]);var h=arguments.length-2;if(1===h)e.children=c;else if(1<h){for(var g=Array(h),k=0;k<h;k++)g[k]=arguments[k+2];e.children=g}if(a&&a.defaultProps)for(d in h=a.defaultProps,h)void 0===
|
|
15
|
+
e[d]&&(e[d]=h[d]);return{$$typeof:C,type:a,key:l,ref:f,props:e,_owner:V.current}}function Fa(a,b){return{$$typeof:C,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function W(a){return"object"===typeof a&&null!==a&&a.$$typeof===C}function Ga(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function la(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}}
|
|
16
|
+
function ma(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>L.length&&L.push(a)}function X(a,b,c,d){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var l=!1;if(null===a)l=!0;else switch(e){case "string":case "number":l=!0;break;case "object":switch(a.$$typeof){case C:case Ha:l=!0}}if(l)return c(d,a,""===b?"."+Y(a,0):b),1;l=0;b=""===b?".":b+":";if(Array.isArray(a))for(var f=0;f<a.length;f++){e=a[f];var h=b+Y(e,f);l+=X(e,h,c,d)}else if(null===a||"object"!==typeof a?
|
|
17
|
+
h=null:(h=na&&a[na]||a["@@iterator"],h="function"===typeof h?h:null),"function"===typeof h)for(a=h.call(a),f=0;!(e=a.next()).done;)e=e.value,h=b+Y(e,f++),l+=X(e,h,c,d);else"object"===e&&(c=""+a,r("31","[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return l}function Z(a,b,c){return null==a?0:X(a,"",b,c)}function Y(a,b){return"object"===typeof a&&null!==a&&null!=a.key?Ga(a.key):b.toString(36)}function Ia(a,b,c){a.func.call(a.context,b,a.count++)}function Ja(a,b,c){var d=
|
|
18
|
+
a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?aa(a,d,c,function(a){return a}):null!=a&&(W(a)&&(a=Fa(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(oa,"$&/")+"/")+c)),d.push(a))}function aa(a,b,c,d,e){var f="";null!=c&&(f=(""+c).replace(oa,"$&/")+"/");b=la(b,f,d,e);Z(a,Ja,b);ma(b)}function u(){var a=pa.current;null===a?r("298"):void 0;return a}var g="function"===typeof Symbol&&Symbol.for,C=g?Symbol.for("react.element"):60103,Ha=g?Symbol.for("react.portal"):60106,
|
|
19
|
+
k=g?Symbol.for("react.fragment"):60107,Ka=g?Symbol.for("react.strict_mode"):60108,w=g?Symbol.for("react.profiler"):60114,La=g?Symbol.for("react.provider"):60109,Ma=g?Symbol.for("react.context"):60110,qa=g?Symbol.for("react.concurrent_mode"):60111,Na=g?Symbol.for("react.forward_ref"):60112,Oa=g?Symbol.for("react.suspense"):60113,Pa=g?Symbol.for("react.memo"):60115,Qa=g?Symbol.for("react.lazy"):60116,na="function"===typeof Symbol&&Symbol.iterator,ra=Object.getOwnPropertySymbols,Ra=Object.prototype.hasOwnProperty,
|
|
20
|
+
Sa=Object.prototype.propertyIsEnumerable,M=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:
|
|
21
|
+
function(a,b){if(null===a||void 0===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 g in f)Ra.call(f,g)&&(c[g]=f[g]);if(ra){d=ra(f);for(var h=0;h<d.length;h++)Sa.call(f,d[h])&&(c[d[h]]=f[d[h]])}}return c},fa={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},ea={};x.prototype.isReactComponent=
|
|
22
|
+
{};x.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?r("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};x.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};ha.prototype=x.prototype;g=R.prototype=new ha;g.constructor=R;M(g,x.prototype);g.isPureReactComponent=!0;var f=null,J=!1,m=3,t=-1,I=-1,B=!1,G=!1,Ta=Date,Ua="function"===typeof setTimeout?setTimeout:void 0,Va="function"===typeof clearTimeout?clearTimeout:
|
|
23
|
+
void 0,sa="function"===typeof requestAnimationFrame?requestAnimationFrame:void 0,ta="function"===typeof cancelAnimationFrame?cancelAnimationFrame:void 0,ua,va,ba=function(a){ua=sa(function(b){Va(va);a(b)});va=Ua(function(){ta(ua);a(q())},100)};if("object"===typeof performance&&"function"===typeof performance.now){var Wa=performance;var q=function(){return Wa.now()}}else q=function(){return Ta.now()};g=null;"undefined"!==typeof window?g=window:"undefined"!==typeof global&&(g=global);if(g&&g._schedMock){g=
|
|
24
|
+
g._schedMock;var H=g[0];var S=g[1];var K=g[2];q=g[3]}else if("undefined"===typeof window||"function"!==typeof MessageChannel){var z=null,Xa=function(a){if(null!==z)try{z(a)}finally{z=null}};H=function(a,b){null!==z?setTimeout(H,0,a):(z=a,setTimeout(Xa,0,!1))};S=function(){z=null};K=function(){return!1}}else{"undefined"!==typeof console&&("function"!==typeof sa&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),
|
|
25
|
+
"function"!==typeof ta&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var A=null,N=!1,D=-1,E=!1,ca=!1,O=0,P=33,F=33;K=function(){return O<=q()};g=new MessageChannel;var wa=g.port2;g.port1.onmessage=function(a){N=!1;a=A;var b=D;A=null;D=-1;var c=q(),d=!1;if(0>=O-c)if(-1!==b&&b<=c)d=!0;else{E||(E=!0,ba(da));A=a;D=b;return}if(null!==a){ca=!0;try{a(d)}finally{ca=!1}}};var da=function(a){if(null!==
|
|
26
|
+
A){ba(da);var b=a-O+F;b<F&&P<F?(8>b&&(b=8),F=b<P?P:b):P=b;O=a+F;N||(N=!0,wa.postMessage(void 0))}else E=!1};H=function(a,b){A=a;D=b;ca||0>b?wa.postMessage(void 0):E||(E=!0,ba(da))};S=function(){A=null;N=!1;D=-1}}var Ya=0,Za=0,n=null,v=null;n={current:new Set};v={current:null};var p=null;p=new Set;var pa={current:null},V={current:null};g={ReactCurrentDispatcher:pa,ReactCurrentOwner:V,assign:M};M(g,{Scheduler:{unstable_cancelCallback:function(a){var b=a.next;if(null!==b){if(b===a)f=null;else{a===f&&
|
|
27
|
+
(f=b);var c=a.previous;c.next=b;b.previous=c}a.next=a.previous=null}},unstable_shouldYield:function(){return!J&&(null!==f&&f.expirationTime<I||K())},unstable_now:q,unstable_scheduleCallback:function(a,b){var c=-1!==t?t:q();if("object"===typeof b&&null!==b&&"number"===typeof b.timeout)b=c+b.timeout;else switch(m){case 1:b=c+-1;break;case 2:b=c+250;break;case 5:b=c+1073741823;break;case 4:b=c+1E4;break;default:b=c+5E3}a={callback:a,priorityLevel:m,expirationTime:b,next:null,previous:null};if(null===
|
|
28
|
+
f)f=a.next=a.previous=a,y();else{c=null;var d=f;do{if(d.expirationTime>b){c=d;break}d=d.next}while(d!==f);null===c?c=f:c===f&&(f=a,y());b=c.previous;b.next=c.previous=a;a.next=c;a.previous=b}return a},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=m,d=t;m=a;t=q();try{return b()}finally{m=c,t=d,U()}},unstable_wrapCallback:function(a){var b=m;return function(){var c=m,d=t;m=b;t=q();try{return a.apply(this,arguments)}finally{m=c,t=d,U()}}},
|
|
29
|
+
unstable_getFirstCallbackNode:function(){return f},unstable_pauseExecution:function(){},unstable_continueExecution:function(){null!==f&&y()},unstable_getCurrentPriorityLevel:function(){return m}},SchedulerTracing:{__interactionsRef:n,__subscriberRef:v,unstable_clear:function(a){var b=n.current;n.current=new Set;try{return a()}finally{n.current=b}},unstable_getCurrent:function(){return n.current},unstable_getThreadID:function(){return++Za},unstable_subscribe:function(a){p.add(a);1===p.size&&(v.current=
|
|
30
|
+
{onInteractionScheduledWorkCompleted:Aa,onInteractionTraced:za,onWorkCanceled:Ea,onWorkScheduled:Ba,onWorkStarted:Ca,onWorkStopped:Da})},unstable_trace:function(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,e={__count:1,id:Ya++,name:a,timestamp:b},f=n.current,g=new Set(f);g.add(e);n.current=g;var h=v.current,k=void 0;try{if(null!==h)h.onInteractionTraced(e)}finally{try{if(null!==h)h.onWorkStarted(g,d)}finally{try{k=c()}finally{n.current=f;try{if(null!==h)h.onWorkStopped(g,
|
|
31
|
+
d)}finally{if(e.__count--,null!==h&&0===e.__count)h.onInteractionScheduledWorkCompleted(e)}}}}return k},unstable_unsubscribe:function(a){p.delete(a);0===p.size&&(v.current=null)},unstable_wrap:function(a){function b(){var b=n.current;n.current=d;e=v.current;try{var g=void 0;try{if(null!==e)e.onWorkStarted(d,c)}finally{try{g=a.apply(void 0,arguments)}finally{if(n.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)}))}}
|
|
32
|
+
var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,d=n.current,e=v.current;if(null!==e)e.onWorkScheduled(d,c);d.forEach(function(a){a.__count++});var f=!1;b.cancel=function(){e=v.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}}});var ja=Object.prototype.hasOwnProperty,ka={key:!0,ref:!0,__self:!0,__source:!0},oa=/\/+/g,L=[];k={Children:{map:function(a,b,c){if(null==a)return a;
|
|
33
|
+
var d=[];aa(a,d,null,b,c);return d},forEach:function(a,b,c){if(null==a)return a;b=la(null,null,b,c);Z(a,Ia,b);ma(b)},count:function(a){return Z(a,function(){return null},null)},toArray:function(a){var b=[];aa(a,b,null,function(a){return a});return b},only:function(a){W(a)?void 0:r("143");return a}},createRef:function(){return{current:null}},Component:x,PureComponent:R,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:Ma,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,
|
|
34
|
+
Provider:null,Consumer:null};a.Provider={$$typeof:La,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:Na,render:a}},lazy:function(a){return{$$typeof:Qa,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:Pa,type:a,compare:void 0===b?null:b}},Fragment:k,StrictMode:Ka,Suspense:Oa,createElement:ia,cloneElement:function(a,b,c){null===a||void 0===a?r("267",a):void 0;var d=void 0,e=M({},a.props),f=a.key,g=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,h=V.current);
|
|
35
|
+
void 0!==b.key&&(f=""+b.key);var k=void 0;a.type&&a.type.defaultProps&&(k=a.type.defaultProps);for(d in b)ja.call(b,d)&&!ka.hasOwnProperty(d)&&(e[d]=void 0===b[d]&&void 0!==k?k[d]:b[d])}d=arguments.length-2;if(1===d)e.children=c;else if(1<d){k=Array(d);for(var m=0;m<d;m++)k[m]=arguments[m+2];e.children=k}return{$$typeof:C,type:a.type,key:f,ref:g,props:e,_owner:h}},createFactory:function(a){var b=ia.bind(null,a);b.type=a;return b},isValidElement:W,version:"16.8.0-alpha.1",unstable_ConcurrentMode:qa,
|
|
36
|
+
unstable_Profiler:w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:g};k.ConcurrentMode=qa;k.Profiler=w;k.unstable_ConcurrentMode=void 0;k.unstable_Profiler=void 0;k.useCallback=function(a,b){return u().useCallback(a,b)};k.useContext=function(a,b){return u().useContext(a,b)};k.useEffect=function(a,b){return u().useEffect(a,b)};k.useImperativeHandle=function(a,b,c){return u().useImperativeHandle(a,b,c)};k.useDebugValue=function(a,b){};k.useLayoutEffect=function(a,b){return u().useLayoutEffect(a,
|
|
37
|
+
b)};k.useMemo=function(a,b){return u().useMemo(a,b)};k.useReducer=function(a,b,c){return u().useReducer(a,b,c)};k.useRef=function(a){return u().useRef(a)};k.useState=function(a){return u().useState(a)};w=(w={default:k},k)||w;return w.default||w});
|