react 16.11.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 +11 -9
- package/cjs/react.production.min.js +2 -2
- package/package.json +1 -1
- package/umd/react.development.js +65 -184
- package/umd/react.production.min.js +17 -18
- package/umd/react.profiling.min.js +9 -9
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.
|
|
@@ -2174,12 +2174,8 @@ function createScope() {
|
|
|
2174
2174
|
return scopeComponent;
|
|
2175
2175
|
}
|
|
2176
2176
|
|
|
2177
|
-
// Helps identify side effects in
|
|
2178
|
-
|
|
2179
|
-
// In some cases, StrictMode should also double-render lifecycles.
|
|
2180
|
-
// This can be confusing for tests though,
|
|
2181
|
-
// And it can be bad for performance in production.
|
|
2182
|
-
// 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.
|
|
2183
2179
|
|
|
2184
2180
|
// To preserve the "Pause on caught exceptions" behavior of the debugger, we
|
|
2185
2181
|
// replay the begin phase of a failed component inside invokeGuardedCallback.
|
|
@@ -2215,7 +2211,7 @@ var enableFundamentalAPI = false; // Experimental Scope support.
|
|
|
2215
2211
|
var enableScopeAPI = false; // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
|
|
2216
2212
|
|
|
2217
2213
|
var enableJSXTransformAPI = false; // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
|
|
2218
|
-
// 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
|
|
2219
2215
|
|
|
2220
2216
|
// For tests, we flush suspense fallbacks in an act scope;
|
|
2221
2217
|
// *except* in some of our own tests, where we test incremental loading states.
|
|
@@ -2230,6 +2226,12 @@ var enableJSXTransformAPI = false; // We will enforce mocking scheduler with sch
|
|
|
2230
2226
|
// from React.createElement to React.jsx
|
|
2231
2227
|
// https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
|
|
2232
2228
|
|
|
2229
|
+
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
|
|
2233
|
+
// Flag to turn event.target and event.currentTarget in ReactNative from a reactTag to a component instance
|
|
2234
|
+
|
|
2233
2235
|
var React = {
|
|
2234
2236
|
Children: {
|
|
2235
2237
|
map: mapChildren,
|
|
@@ -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.
|
|
@@ -21,5 +21,5 @@ function da(a,b,c){var e=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.coun
|
|
|
21
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
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
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.
|
|
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
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.
|
|
@@ -2297,16 +2297,8 @@ function cloneElementWithValidation(element, props, children) {
|
|
|
2297
2297
|
|
|
2298
2298
|
var enableSchedulerDebugging = false;
|
|
2299
2299
|
var enableIsInputPending = false;
|
|
2300
|
-
var enableMessageLoopImplementation = true;
|
|
2301
2300
|
var enableProfiling = true;
|
|
2302
2301
|
|
|
2303
|
-
// works by scheduling a requestAnimationFrame, storing the time for the start
|
|
2304
|
-
// of the frame, then scheduling a postMessage which gets scheduled after paint.
|
|
2305
|
-
// Within the postMessage handler do as much work as possible until time + frame
|
|
2306
|
-
// rate. By separating the idle call into a separate event tick we ensure that
|
|
2307
|
-
// layout, paint and other browser work is counted against the available time.
|
|
2308
|
-
// The frame rate is dynamically adjusted.
|
|
2309
|
-
|
|
2310
2302
|
var requestHostCallback;
|
|
2311
2303
|
|
|
2312
2304
|
var requestHostTimeout;
|
|
@@ -2376,11 +2368,14 @@ typeof MessageChannel !== 'function') {
|
|
|
2376
2368
|
var _Date = window.Date;
|
|
2377
2369
|
var _setTimeout = window.setTimeout;
|
|
2378
2370
|
var _clearTimeout = window.clearTimeout;
|
|
2379
|
-
var requestAnimationFrame = window.requestAnimationFrame;
|
|
2380
|
-
var cancelAnimationFrame = window.cancelAnimationFrame;
|
|
2381
2371
|
|
|
2382
2372
|
if (typeof console !== 'undefined') {
|
|
2383
|
-
// 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
|
+
|
|
2384
2379
|
if (typeof requestAnimationFrame !== 'function') {
|
|
2385
2380
|
console.error("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
|
|
2386
2381
|
}
|
|
@@ -2402,26 +2397,18 @@ typeof MessageChannel !== 'function') {
|
|
|
2402
2397
|
};
|
|
2403
2398
|
}
|
|
2404
2399
|
|
|
2405
|
-
var isRAFLoopRunning = false;
|
|
2406
2400
|
var isMessageLoopRunning = false;
|
|
2407
2401
|
var scheduledHostCallback = null;
|
|
2408
|
-
var
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
//
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
// heuristic tracking will adjust this value to a faster fps if we get
|
|
2416
|
-
// more frequent animation frames.
|
|
2417
|
-
33.33;
|
|
2418
|
-
var prevRAFTime = -1;
|
|
2419
|
-
var prevRAFInterval = -1;
|
|
2420
|
-
var frameDeadline = 0;
|
|
2421
|
-
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
|
|
2422
2409
|
// TODO: Adjust this based on priority?
|
|
2423
2410
|
|
|
2424
|
-
var
|
|
2411
|
+
var maxYieldInterval = 300;
|
|
2425
2412
|
var needsPaint = false;
|
|
2426
2413
|
|
|
2427
2414
|
if (enableIsInputPending && navigator !== undefined && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined) {
|
|
@@ -2430,23 +2417,23 @@ typeof MessageChannel !== 'function') {
|
|
|
2430
2417
|
shouldYieldToHost = function () {
|
|
2431
2418
|
var currentTime = getCurrentTime();
|
|
2432
2419
|
|
|
2433
|
-
if (currentTime >=
|
|
2434
|
-
// There's no time left
|
|
2435
|
-
//
|
|
2436
|
-
//
|
|
2437
|
-
//
|
|
2438
|
-
//
|
|
2439
|
-
//
|
|
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
|
|
2440
2427
|
// accompanied by a call to `requestPaint`, or other main thread tasks
|
|
2441
2428
|
// like network events.
|
|
2442
2429
|
if (needsPaint || scheduling.isInputPending()) {
|
|
2443
2430
|
// There is either a pending paint or a pending input.
|
|
2444
2431
|
return true;
|
|
2445
2432
|
} // There's no pending input. Only yield if we've reached the max
|
|
2446
|
-
//
|
|
2433
|
+
// yield interval.
|
|
2447
2434
|
|
|
2448
2435
|
|
|
2449
|
-
return currentTime >=
|
|
2436
|
+
return currentTime >= maxYieldInterval;
|
|
2450
2437
|
} else {
|
|
2451
2438
|
// There's still time left in the frame.
|
|
2452
2439
|
return false;
|
|
@@ -2460,7 +2447,7 @@ typeof MessageChannel !== 'function') {
|
|
|
2460
2447
|
// `isInputPending` is not available. Since we have no way of knowing if
|
|
2461
2448
|
// there's pending input, always yield at the end of the frame.
|
|
2462
2449
|
shouldYieldToHost = function () {
|
|
2463
|
-
return getCurrentTime() >=
|
|
2450
|
+
return getCurrentTime() >= deadline;
|
|
2464
2451
|
}; // Since we yield every frame regardless, `requestPaint` has no effect.
|
|
2465
2452
|
|
|
2466
2453
|
|
|
@@ -2474,166 +2461,58 @@ typeof MessageChannel !== 'function') {
|
|
|
2474
2461
|
}
|
|
2475
2462
|
|
|
2476
2463
|
if (fps > 0) {
|
|
2477
|
-
|
|
2478
|
-
fpsLocked = true;
|
|
2464
|
+
yieldInterval = Math.floor(1000 / fps);
|
|
2479
2465
|
} else {
|
|
2480
2466
|
// reset the framerate
|
|
2481
|
-
|
|
2482
|
-
fpsLocked = false;
|
|
2467
|
+
yieldInterval = 5;
|
|
2483
2468
|
}
|
|
2484
2469
|
};
|
|
2485
2470
|
|
|
2486
2471
|
var performWorkUntilDeadline = function () {
|
|
2487
|
-
if (
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
// the message event.
|
|
2492
|
-
|
|
2493
|
-
frameDeadline = currentTime + frameLength;
|
|
2494
|
-
var hasTimeRemaining = true;
|
|
2495
|
-
|
|
2496
|
-
try {
|
|
2497
|
-
var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
|
|
2498
|
-
|
|
2499
|
-
if (!hasMoreWork) {
|
|
2500
|
-
isMessageLoopRunning = false;
|
|
2501
|
-
scheduledHostCallback = null;
|
|
2502
|
-
} else {
|
|
2503
|
-
// If there's more work, schedule the next message event at the end
|
|
2504
|
-
// of the preceding one.
|
|
2505
|
-
port.postMessage(null);
|
|
2506
|
-
}
|
|
2507
|
-
} catch (error) {
|
|
2508
|
-
// If a scheduler task throws, exit the current browser task so the
|
|
2509
|
-
// error can be observed.
|
|
2510
|
-
port.postMessage(null);
|
|
2511
|
-
throw error;
|
|
2512
|
-
}
|
|
2513
|
-
} else {
|
|
2514
|
-
isMessageLoopRunning = false;
|
|
2515
|
-
} // Yielding to the browser will give it a chance to paint, so we can
|
|
2516
|
-
// reset this.
|
|
2517
|
-
|
|
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.
|
|
2518
2476
|
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
if (scheduledHostCallback !== null) {
|
|
2522
|
-
var _currentTime = getCurrentTime();
|
|
2477
|
+
deadline = currentTime + yieldInterval;
|
|
2478
|
+
var hasTimeRemaining = true;
|
|
2523
2479
|
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
try {
|
|
2527
|
-
var _hasMoreWork = scheduledHostCallback(_hasTimeRemaining, _currentTime);
|
|
2480
|
+
try {
|
|
2481
|
+
var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
|
|
2528
2482
|
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
}
|
|
2533
|
-
// If
|
|
2534
|
-
//
|
|
2535
|
-
// 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.
|
|
2536
2489
|
port.postMessage(null);
|
|
2537
|
-
throw error;
|
|
2538
2490
|
}
|
|
2539
|
-
}
|
|
2540
|
-
|
|
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.
|
|
2541
2501
|
|
|
2542
2502
|
|
|
2543
|
-
|
|
2544
|
-
}
|
|
2503
|
+
needsPaint = false;
|
|
2545
2504
|
};
|
|
2546
2505
|
|
|
2547
2506
|
var channel = new MessageChannel();
|
|
2548
2507
|
var port = channel.port2;
|
|
2549
2508
|
channel.port1.onmessage = performWorkUntilDeadline;
|
|
2550
2509
|
|
|
2551
|
-
var onAnimationFrame = function (rAFTime) {
|
|
2552
|
-
if (scheduledHostCallback === null) {
|
|
2553
|
-
// No scheduled work. Exit.
|
|
2554
|
-
prevRAFTime = -1;
|
|
2555
|
-
prevRAFInterval = -1;
|
|
2556
|
-
isRAFLoopRunning = false;
|
|
2557
|
-
return;
|
|
2558
|
-
} // Eagerly schedule the next animation callback at the beginning of the
|
|
2559
|
-
// frame. If the scheduler queue is not empty at the end of the frame, it
|
|
2560
|
-
// will continue flushing inside that callback. If the queue *is* empty,
|
|
2561
|
-
// then it will exit immediately. Posting the callback at the start of the
|
|
2562
|
-
// frame ensures it's fired within the earliest possible frame. If we
|
|
2563
|
-
// waited until the end of the frame to post the callback, we risk the
|
|
2564
|
-
// browser skipping a frame and not firing the callback until the frame
|
|
2565
|
-
// after that.
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
isRAFLoopRunning = true;
|
|
2569
|
-
requestAnimationFrame(function (nextRAFTime) {
|
|
2570
|
-
_clearTimeout(rAFTimeoutID);
|
|
2571
|
-
|
|
2572
|
-
onAnimationFrame(nextRAFTime);
|
|
2573
|
-
}); // requestAnimationFrame is throttled when the tab is backgrounded. We
|
|
2574
|
-
// don't want to stop working entirely. So we'll fallback to a timeout loop.
|
|
2575
|
-
// TODO: Need a better heuristic for backgrounded work.
|
|
2576
|
-
|
|
2577
|
-
var onTimeout = function () {
|
|
2578
|
-
frameDeadline = getCurrentTime() + frameLength / 2;
|
|
2579
|
-
performWorkUntilDeadline();
|
|
2580
|
-
rAFTimeoutID = _setTimeout(onTimeout, frameLength * 3);
|
|
2581
|
-
};
|
|
2582
|
-
|
|
2583
|
-
rAFTimeoutID = _setTimeout(onTimeout, frameLength * 3);
|
|
2584
|
-
|
|
2585
|
-
if (prevRAFTime !== -1 && // Make sure this rAF time is different from the previous one. This check
|
|
2586
|
-
// could fail if two rAFs fire in the same frame.
|
|
2587
|
-
rAFTime - prevRAFTime > 0.1) {
|
|
2588
|
-
var rAFInterval = rAFTime - prevRAFTime;
|
|
2589
|
-
|
|
2590
|
-
if (!fpsLocked && prevRAFInterval !== -1) {
|
|
2591
|
-
// We've observed two consecutive frame intervals. We'll use this to
|
|
2592
|
-
// dynamically adjust the frame rate.
|
|
2593
|
-
//
|
|
2594
|
-
// If one frame goes long, then the next one can be short to catch up.
|
|
2595
|
-
// If two frames are short in a row, then that's an indication that we
|
|
2596
|
-
// actually have a higher frame rate than what we're currently
|
|
2597
|
-
// optimizing. For example, if we're running on 120hz display or 90hz VR
|
|
2598
|
-
// display. Take the max of the two in case one of them was an anomaly
|
|
2599
|
-
// due to missed frame deadlines.
|
|
2600
|
-
if (rAFInterval < frameLength && prevRAFInterval < frameLength) {
|
|
2601
|
-
frameLength = rAFInterval < prevRAFInterval ? prevRAFInterval : rAFInterval;
|
|
2602
|
-
|
|
2603
|
-
if (frameLength < 8.33) {
|
|
2604
|
-
// Defensive coding. We don't support higher frame rates than 120hz.
|
|
2605
|
-
// If the calculated frame length gets lower than 8, it is probably
|
|
2606
|
-
// a bug.
|
|
2607
|
-
frameLength = 8.33;
|
|
2608
|
-
}
|
|
2609
|
-
}
|
|
2610
|
-
}
|
|
2611
|
-
|
|
2612
|
-
prevRAFInterval = rAFInterval;
|
|
2613
|
-
}
|
|
2614
|
-
|
|
2615
|
-
prevRAFTime = rAFTime;
|
|
2616
|
-
frameDeadline = rAFTime + frameLength; // We use the postMessage trick to defer idle work until after the repaint.
|
|
2617
|
-
|
|
2618
|
-
port.postMessage(null);
|
|
2619
|
-
};
|
|
2620
|
-
|
|
2621
2510
|
requestHostCallback = function (callback) {
|
|
2622
2511
|
scheduledHostCallback = callback;
|
|
2623
2512
|
|
|
2624
|
-
if (
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
port.postMessage(null);
|
|
2628
|
-
}
|
|
2629
|
-
} else {
|
|
2630
|
-
if (!isRAFLoopRunning) {
|
|
2631
|
-
// Start a rAF loop.
|
|
2632
|
-
isRAFLoopRunning = true;
|
|
2633
|
-
requestAnimationFrame(function (rAFTime) {
|
|
2634
|
-
onAnimationFrame(rAFTime);
|
|
2635
|
-
});
|
|
2636
|
-
}
|
|
2513
|
+
if (!isMessageLoopRunning) {
|
|
2514
|
+
isMessageLoopRunning = true;
|
|
2515
|
+
port.postMessage(null);
|
|
2637
2516
|
}
|
|
2638
2517
|
};
|
|
2639
2518
|
|
|
@@ -3306,12 +3185,8 @@ var Scheduler = Object.freeze({
|
|
|
3306
3185
|
unstable_Profiling: unstable_Profiling
|
|
3307
3186
|
});
|
|
3308
3187
|
|
|
3309
|
-
// Helps identify side effects in
|
|
3310
|
-
|
|
3311
|
-
// In some cases, StrictMode should also double-render lifecycles.
|
|
3312
|
-
// This can be confusing for tests though,
|
|
3313
|
-
// And it can be bad for performance in production.
|
|
3314
|
-
// 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.
|
|
3315
3190
|
|
|
3316
3191
|
// To preserve the "Pause on caught exceptions" behavior of the debugger, we
|
|
3317
3192
|
// replay the begin phase of a failed component inside invokeGuardedCallback.
|
|
@@ -3347,7 +3222,7 @@ var enableFundamentalAPI = false; // Experimental Scope support.
|
|
|
3347
3222
|
var enableScopeAPI = false; // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
|
|
3348
3223
|
|
|
3349
3224
|
var enableJSXTransformAPI = false; // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
|
|
3350
|
-
// 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
|
|
3351
3226
|
|
|
3352
3227
|
// For tests, we flush suspense fallbacks in an act scope;
|
|
3353
3228
|
// *except* in some of our own tests, where we test incremental loading states.
|
|
@@ -3362,6 +3237,12 @@ var enableJSXTransformAPI = false; // We will enforce mocking scheduler with sch
|
|
|
3362
3237
|
// from React.createElement to React.jsx
|
|
3363
3238
|
// https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
|
|
3364
3239
|
|
|
3240
|
+
|
|
3241
|
+
|
|
3242
|
+
|
|
3243
|
+
|
|
3244
|
+
// Flag to turn event.target and event.currentTarget in ReactNative from a reactTag to a component instance
|
|
3245
|
+
|
|
3365
3246
|
var DEFAULT_THREAD_ID = 0; // Counters used to generate unique IDs.
|
|
3366
3247
|
|
|
3367
3248
|
var interactionIDCounter = 0;
|
|
@@ -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.
|
|
@@ -8,26 +8,25 @@
|
|
|
8
8
|
*/
|
|
9
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
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:
|
|
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
|
|
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
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
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
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){
|
|
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,
|
|
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
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
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
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
|
|
22
|
-
r();
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
b,c)
|
|
32
|
-
|
|
33
|
-
x=(Y={default:x},x)||Y;return x.default||x});
|
|
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.
|
|
@@ -22,19 +22,19 @@ db=l?Symbol.for("react.provider"):60109,eb=l?Symbol.for("react.context"):60110,f
|
|
|
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
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
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
|
|
26
|
-
|
|
27
|
-
Ha.now();t=function(){return Ha.now()-
|
|
28
|
-
|
|
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:Ca(a)}else c=Ca(a),e=d;c=e+c;a={id:
|
|
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
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}},
|
|
33
|
-
unstable_getThreadID:function(){return++
|
|
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
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
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
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
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
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
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.
|
|
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});
|