react 17.0.0-rc.2 → 17.0.2
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 +5 -5
- package/cjs/react-jsx-dev-runtime.development.js +1 -1
- package/cjs/react-jsx-dev-runtime.production.min.js +1 -1
- package/cjs/react-jsx-dev-runtime.profiling.min.js +1 -1
- package/cjs/react-jsx-runtime.development.js +1 -1
- package/cjs/react-jsx-runtime.production.min.js +1 -1
- package/cjs/react-jsx-runtime.profiling.min.js +1 -1
- package/cjs/react.development.js +2 -2
- package/cjs/react.production.min.js +2 -2
- package/package.json +1 -1
- package/umd/react.development.js +5 -203
- package/umd/react.production.min.js +2 -2
- package/umd/react.profiling.min.js +28 -30
package/build-info.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"branch": "pull/
|
|
3
|
-
"buildNumber": "
|
|
4
|
-
"checksum": "
|
|
5
|
-
"commit": "
|
|
2
|
+
"branch": "pull/21051",
|
|
3
|
+
"buildNumber": "287151",
|
|
4
|
+
"checksum": "94f5c65",
|
|
5
|
+
"commit": "12adaffef",
|
|
6
6
|
"environment": "ci",
|
|
7
|
-
"reactVersion": "17.0.0-
|
|
7
|
+
"reactVersion": "17.0.0-12adaffef"
|
|
8
8
|
}
|
package/cjs/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v17.0.
|
|
1
|
+
/** @license React v17.0.2
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -16,7 +16,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
16
16
|
var _assign = require('object-assign');
|
|
17
17
|
|
|
18
18
|
// TODO: this is special because it gets imported during build.
|
|
19
|
-
var ReactVersion = '17.0.
|
|
19
|
+
var ReactVersion = '17.0.2';
|
|
20
20
|
|
|
21
21
|
// ATTENTION
|
|
22
22
|
// When adding new symbols to this file,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v17.0.
|
|
1
|
+
/** @license React v17.0.2
|
|
2
2
|
* react.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -20,4 +20,4 @@ exports.Children={map:P,forEach:function(a,b,c){P(a,function(){b.apply(this,argu
|
|
|
20
20
|
exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(z(267,a));var e=l({},a.props),d=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=G.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)H.call(b,f)&&!I.hasOwnProperty(f)&&(e[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)e.children=c;else if(1<f){g=Array(f);for(var m=0;m<f;m++)g[m]=arguments[m+2];e.children=g}return{$$typeof:n,type:a.type,
|
|
21
21
|
key:d,ref:k,props:e,_owner:h}};exports.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:r,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:q,_context:a};return a.Consumer=a};exports.createElement=J;exports.createFactory=function(a){var b=J.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};exports.forwardRef=function(a){return{$$typeof:t,render:a}};exports.isValidElement=L;
|
|
22
22
|
exports.lazy=function(a){return{$$typeof:v,_payload:{_status:-1,_result:a},_init:Q}};exports.memo=function(a,b){return{$$typeof:u,type:a,compare:void 0===b?null:b}};exports.useCallback=function(a,b){return S().useCallback(a,b)};exports.useContext=function(a,b){return S().useContext(a,b)};exports.useDebugValue=function(){};exports.useEffect=function(a,b){return S().useEffect(a,b)};exports.useImperativeHandle=function(a,b,c){return S().useImperativeHandle(a,b,c)};
|
|
23
|
-
exports.useLayoutEffect=function(a,b){return S().useLayoutEffect(a,b)};exports.useMemo=function(a,b){return S().useMemo(a,b)};exports.useReducer=function(a,b,c){return S().useReducer(a,b,c)};exports.useRef=function(a){return S().useRef(a)};exports.useState=function(a){return S().useState(a)};exports.version="17.0.
|
|
23
|
+
exports.useLayoutEffect=function(a,b){return S().useLayoutEffect(a,b)};exports.useMemo=function(a,b){return S().useMemo(a,b)};exports.useReducer=function(a,b,c){return S().useReducer(a,b,c)};exports.useRef=function(a){return S().useRef(a)};exports.useState=function(a){return S().useState(a)};exports.version="17.0.2";
|
package/package.json
CHANGED
package/umd/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v17.0.
|
|
1
|
+
/** @license React v17.0.2
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}(this, (function (exports) { 'use strict';
|
|
14
14
|
|
|
15
15
|
// TODO: this is special because it gets imported during build.
|
|
16
|
-
var ReactVersion = '17.0.
|
|
16
|
+
var ReactVersion = '17.0.2';
|
|
17
17
|
|
|
18
18
|
// ATTENTION
|
|
19
19
|
// When adding new symbols to this file,
|
|
@@ -2307,7 +2307,7 @@
|
|
|
2307
2307
|
}
|
|
2308
2308
|
|
|
2309
2309
|
var enableSchedulerDebugging = false;
|
|
2310
|
-
var enableProfiling =
|
|
2310
|
+
var enableProfiling = false;
|
|
2311
2311
|
|
|
2312
2312
|
var requestHostCallback;
|
|
2313
2313
|
var requestHostTimeout;
|
|
@@ -2580,172 +2580,13 @@
|
|
|
2580
2580
|
}
|
|
2581
2581
|
|
|
2582
2582
|
// TODO: Use symbols?
|
|
2583
|
-
var NoPriority = 0;
|
|
2584
2583
|
var ImmediatePriority = 1;
|
|
2585
2584
|
var UserBlockingPriority = 2;
|
|
2586
2585
|
var NormalPriority = 3;
|
|
2587
2586
|
var LowPriority = 4;
|
|
2588
2587
|
var IdlePriority = 5;
|
|
2589
2588
|
|
|
2590
|
-
var runIdCounter = 0;
|
|
2591
|
-
var mainThreadIdCounter = 0;
|
|
2592
|
-
var profilingStateSize = 4;
|
|
2593
|
-
var sharedProfilingBuffer = // $FlowFixMe Flow doesn't know about SharedArrayBuffer
|
|
2594
|
-
typeof SharedArrayBuffer === 'function' ? new SharedArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : // $FlowFixMe Flow doesn't know about ArrayBuffer
|
|
2595
|
-
typeof ArrayBuffer === 'function' ? new ArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : null // Don't crash the init path on IE9
|
|
2596
|
-
;
|
|
2597
|
-
var profilingState = sharedProfilingBuffer !== null ? new Int32Array(sharedProfilingBuffer) : []; // We can't read this but it helps save bytes for null checks
|
|
2598
|
-
|
|
2599
|
-
var PRIORITY = 0;
|
|
2600
|
-
var CURRENT_TASK_ID = 1;
|
|
2601
|
-
var CURRENT_RUN_ID = 2;
|
|
2602
|
-
var QUEUE_SIZE = 3;
|
|
2603
|
-
|
|
2604
|
-
{
|
|
2605
|
-
profilingState[PRIORITY] = NoPriority; // This is maintained with a counter, because the size of the priority queue
|
|
2606
|
-
// array might include canceled tasks.
|
|
2607
|
-
|
|
2608
|
-
profilingState[QUEUE_SIZE] = 0;
|
|
2609
|
-
profilingState[CURRENT_TASK_ID] = 0;
|
|
2610
|
-
} // Bytes per element is 4
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
var INITIAL_EVENT_LOG_SIZE = 131072;
|
|
2614
|
-
var MAX_EVENT_LOG_SIZE = 524288; // Equivalent to 2 megabytes
|
|
2615
|
-
|
|
2616
|
-
var eventLogSize = 0;
|
|
2617
|
-
var eventLogBuffer = null;
|
|
2618
|
-
var eventLog = null;
|
|
2619
|
-
var eventLogIndex = 0;
|
|
2620
|
-
var TaskStartEvent = 1;
|
|
2621
|
-
var TaskCompleteEvent = 2;
|
|
2622
|
-
var TaskErrorEvent = 3;
|
|
2623
|
-
var TaskCancelEvent = 4;
|
|
2624
|
-
var TaskRunEvent = 5;
|
|
2625
|
-
var TaskYieldEvent = 6;
|
|
2626
|
-
var SchedulerSuspendEvent = 7;
|
|
2627
|
-
var SchedulerResumeEvent = 8;
|
|
2628
|
-
|
|
2629
|
-
function logEvent(entries) {
|
|
2630
|
-
if (eventLog !== null) {
|
|
2631
|
-
var offset = eventLogIndex;
|
|
2632
|
-
eventLogIndex += entries.length;
|
|
2633
|
-
|
|
2634
|
-
if (eventLogIndex + 1 > eventLogSize) {
|
|
2635
|
-
eventLogSize *= 2;
|
|
2636
|
-
|
|
2637
|
-
if (eventLogSize > MAX_EVENT_LOG_SIZE) {
|
|
2638
|
-
// Using console['error'] to evade Babel and ESLint
|
|
2639
|
-
console['error']("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.');
|
|
2640
|
-
stopLoggingProfilingEvents();
|
|
2641
|
-
return;
|
|
2642
|
-
}
|
|
2643
|
-
|
|
2644
|
-
var newEventLog = new Int32Array(eventLogSize * 4);
|
|
2645
|
-
newEventLog.set(eventLog);
|
|
2646
|
-
eventLogBuffer = newEventLog.buffer;
|
|
2647
|
-
eventLog = newEventLog;
|
|
2648
|
-
}
|
|
2649
|
-
|
|
2650
|
-
eventLog.set(entries, offset);
|
|
2651
|
-
}
|
|
2652
|
-
}
|
|
2653
|
-
|
|
2654
|
-
function startLoggingProfilingEvents() {
|
|
2655
|
-
eventLogSize = INITIAL_EVENT_LOG_SIZE;
|
|
2656
|
-
eventLogBuffer = new ArrayBuffer(eventLogSize * 4);
|
|
2657
|
-
eventLog = new Int32Array(eventLogBuffer);
|
|
2658
|
-
eventLogIndex = 0;
|
|
2659
|
-
}
|
|
2660
|
-
function stopLoggingProfilingEvents() {
|
|
2661
|
-
var buffer = eventLogBuffer;
|
|
2662
|
-
eventLogSize = 0;
|
|
2663
|
-
eventLogBuffer = null;
|
|
2664
|
-
eventLog = null;
|
|
2665
|
-
eventLogIndex = 0;
|
|
2666
|
-
return buffer;
|
|
2667
|
-
}
|
|
2668
|
-
function markTaskStart(task, ms) {
|
|
2669
|
-
{
|
|
2670
|
-
profilingState[QUEUE_SIZE]++;
|
|
2671
|
-
|
|
2672
|
-
if (eventLog !== null) {
|
|
2673
|
-
// performance.now returns a float, representing milliseconds. When the
|
|
2674
|
-
// event is logged, it's coerced to an int. Convert to microseconds to
|
|
2675
|
-
// maintain extra degrees of precision.
|
|
2676
|
-
logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]);
|
|
2677
|
-
}
|
|
2678
|
-
}
|
|
2679
|
-
}
|
|
2680
|
-
function markTaskCompleted(task, ms) {
|
|
2681
|
-
{
|
|
2682
|
-
profilingState[PRIORITY] = NoPriority;
|
|
2683
|
-
profilingState[CURRENT_TASK_ID] = 0;
|
|
2684
|
-
profilingState[QUEUE_SIZE]--;
|
|
2685
|
-
|
|
2686
|
-
if (eventLog !== null) {
|
|
2687
|
-
logEvent([TaskCompleteEvent, ms * 1000, task.id]);
|
|
2688
|
-
}
|
|
2689
|
-
}
|
|
2690
|
-
}
|
|
2691
|
-
function markTaskCanceled(task, ms) {
|
|
2692
|
-
{
|
|
2693
|
-
profilingState[QUEUE_SIZE]--;
|
|
2694
|
-
|
|
2695
|
-
if (eventLog !== null) {
|
|
2696
|
-
logEvent([TaskCancelEvent, ms * 1000, task.id]);
|
|
2697
|
-
}
|
|
2698
|
-
}
|
|
2699
|
-
}
|
|
2700
2589
|
function markTaskErrored(task, ms) {
|
|
2701
|
-
{
|
|
2702
|
-
profilingState[PRIORITY] = NoPriority;
|
|
2703
|
-
profilingState[CURRENT_TASK_ID] = 0;
|
|
2704
|
-
profilingState[QUEUE_SIZE]--;
|
|
2705
|
-
|
|
2706
|
-
if (eventLog !== null) {
|
|
2707
|
-
logEvent([TaskErrorEvent, ms * 1000, task.id]);
|
|
2708
|
-
}
|
|
2709
|
-
}
|
|
2710
|
-
}
|
|
2711
|
-
function markTaskRun(task, ms) {
|
|
2712
|
-
{
|
|
2713
|
-
runIdCounter++;
|
|
2714
|
-
profilingState[PRIORITY] = task.priorityLevel;
|
|
2715
|
-
profilingState[CURRENT_TASK_ID] = task.id;
|
|
2716
|
-
profilingState[CURRENT_RUN_ID] = runIdCounter;
|
|
2717
|
-
|
|
2718
|
-
if (eventLog !== null) {
|
|
2719
|
-
logEvent([TaskRunEvent, ms * 1000, task.id, runIdCounter]);
|
|
2720
|
-
}
|
|
2721
|
-
}
|
|
2722
|
-
}
|
|
2723
|
-
function markTaskYield(task, ms) {
|
|
2724
|
-
{
|
|
2725
|
-
profilingState[PRIORITY] = NoPriority;
|
|
2726
|
-
profilingState[CURRENT_TASK_ID] = 0;
|
|
2727
|
-
profilingState[CURRENT_RUN_ID] = 0;
|
|
2728
|
-
|
|
2729
|
-
if (eventLog !== null) {
|
|
2730
|
-
logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]);
|
|
2731
|
-
}
|
|
2732
|
-
}
|
|
2733
|
-
}
|
|
2734
|
-
function markSchedulerSuspended(ms) {
|
|
2735
|
-
{
|
|
2736
|
-
mainThreadIdCounter++;
|
|
2737
|
-
|
|
2738
|
-
if (eventLog !== null) {
|
|
2739
|
-
logEvent([SchedulerSuspendEvent, ms * 1000, mainThreadIdCounter]);
|
|
2740
|
-
}
|
|
2741
|
-
}
|
|
2742
|
-
}
|
|
2743
|
-
function markSchedulerUnsuspended(ms) {
|
|
2744
|
-
{
|
|
2745
|
-
if (eventLog !== null) {
|
|
2746
|
-
logEvent([SchedulerResumeEvent, ms * 1000, mainThreadIdCounter]);
|
|
2747
|
-
}
|
|
2748
|
-
}
|
|
2749
2590
|
}
|
|
2750
2591
|
|
|
2751
2592
|
/* eslint-disable no-var */
|
|
@@ -2786,11 +2627,6 @@
|
|
|
2786
2627
|
pop(timerQueue);
|
|
2787
2628
|
timer.sortIndex = timer.expirationTime;
|
|
2788
2629
|
push(taskQueue, timer);
|
|
2789
|
-
|
|
2790
|
-
{
|
|
2791
|
-
markTaskStart(timer, currentTime);
|
|
2792
|
-
timer.isQueued = true;
|
|
2793
|
-
}
|
|
2794
2630
|
} else {
|
|
2795
2631
|
// Remaining timers are pending.
|
|
2796
2632
|
return;
|
|
@@ -2819,9 +2655,6 @@
|
|
|
2819
2655
|
}
|
|
2820
2656
|
|
|
2821
2657
|
function flushWork(hasTimeRemaining, initialTime) {
|
|
2822
|
-
{
|
|
2823
|
-
markSchedulerUnsuspended(initialTime);
|
|
2824
|
-
} // We'll need a host callback the next time work is scheduled.
|
|
2825
2658
|
|
|
2826
2659
|
|
|
2827
2660
|
isHostCallbackScheduled = false;
|
|
@@ -2856,12 +2689,6 @@
|
|
|
2856
2689
|
currentTask = null;
|
|
2857
2690
|
currentPriorityLevel = previousPriorityLevel;
|
|
2858
2691
|
isPerformingWork = false;
|
|
2859
|
-
|
|
2860
|
-
{
|
|
2861
|
-
var _currentTime = getCurrentTime();
|
|
2862
|
-
|
|
2863
|
-
markSchedulerSuspended(_currentTime);
|
|
2864
|
-
}
|
|
2865
2692
|
}
|
|
2866
2693
|
}
|
|
2867
2694
|
|
|
@@ -2882,18 +2709,13 @@
|
|
|
2882
2709
|
currentTask.callback = null;
|
|
2883
2710
|
currentPriorityLevel = currentTask.priorityLevel;
|
|
2884
2711
|
var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
|
|
2885
|
-
|
|
2712
|
+
|
|
2886
2713
|
var continuationCallback = callback(didUserCallbackTimeout);
|
|
2887
2714
|
currentTime = getCurrentTime();
|
|
2888
2715
|
|
|
2889
2716
|
if (typeof continuationCallback === 'function') {
|
|
2890
2717
|
currentTask.callback = continuationCallback;
|
|
2891
|
-
markTaskYield(currentTask, currentTime);
|
|
2892
2718
|
} else {
|
|
2893
|
-
{
|
|
2894
|
-
markTaskCompleted(currentTask, currentTime);
|
|
2895
|
-
currentTask.isQueued = false;
|
|
2896
|
-
}
|
|
2897
2719
|
|
|
2898
2720
|
if (currentTask === peek(taskQueue)) {
|
|
2899
2721
|
pop(taskQueue);
|
|
@@ -3038,10 +2860,6 @@
|
|
|
3038
2860
|
sortIndex: -1
|
|
3039
2861
|
};
|
|
3040
2862
|
|
|
3041
|
-
{
|
|
3042
|
-
newTask.isQueued = false;
|
|
3043
|
-
}
|
|
3044
|
-
|
|
3045
2863
|
if (startTime > currentTime) {
|
|
3046
2864
|
// This is a delayed task.
|
|
3047
2865
|
newTask.sortIndex = startTime;
|
|
@@ -3062,11 +2880,6 @@
|
|
|
3062
2880
|
} else {
|
|
3063
2881
|
newTask.sortIndex = expirationTime;
|
|
3064
2882
|
push(taskQueue, newTask);
|
|
3065
|
-
|
|
3066
|
-
{
|
|
3067
|
-
markTaskStart(newTask, currentTime);
|
|
3068
|
-
newTask.isQueued = true;
|
|
3069
|
-
} // Schedule a host callback, if needed. If we're already performing work,
|
|
3070
2883
|
// wait until the next time we yield.
|
|
3071
2884
|
|
|
3072
2885
|
|
|
@@ -3095,13 +2908,6 @@
|
|
|
3095
2908
|
}
|
|
3096
2909
|
|
|
3097
2910
|
function unstable_cancelCallback(task) {
|
|
3098
|
-
{
|
|
3099
|
-
if (task.isQueued) {
|
|
3100
|
-
var currentTime = getCurrentTime();
|
|
3101
|
-
markTaskCanceled(task, currentTime);
|
|
3102
|
-
task.isQueued = false;
|
|
3103
|
-
}
|
|
3104
|
-
} // Null out the callback to indicate the task has been canceled. (Can't
|
|
3105
2911
|
// remove from the queue because you can't remove arbitrary nodes from an
|
|
3106
2912
|
// array based heap, only the first one.)
|
|
3107
2913
|
|
|
@@ -3114,11 +2920,7 @@
|
|
|
3114
2920
|
}
|
|
3115
2921
|
|
|
3116
2922
|
var unstable_requestPaint = requestPaint;
|
|
3117
|
-
var unstable_Profiling =
|
|
3118
|
-
startLoggingProfilingEvents: startLoggingProfilingEvents,
|
|
3119
|
-
stopLoggingProfilingEvents: stopLoggingProfilingEvents,
|
|
3120
|
-
sharedProfilingBuffer: sharedProfilingBuffer
|
|
3121
|
-
} ;
|
|
2923
|
+
var unstable_Profiling = null;
|
|
3122
2924
|
|
|
3123
2925
|
|
|
3124
2926
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v17.0.
|
|
1
|
+
/** @license React v17.0.2
|
|
2
2
|
* react.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -27,5 +27,5 @@ get unstable_now(){return t},get unstable_forceFrameRate(){return V},unstable_Pr
|
|
|
27
27
|
arguments)},c)},count:function(a){var b=0;D(a,function(){b++});return b},toArray:function(a){return D(a,function(a){return a})||[]},only:function(a){if(!M(a))throw Error(y(143));return a}};c.Component=v;c.PureComponent=K;c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d;c.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(y(267,a));var d=U({},a.props),e=a.key,g=a.ref,n=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,n=L.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var k=
|
|
28
28
|
a.type.defaultProps;for(h in b)ea.call(b,h)&&!fa.hasOwnProperty(h)&&(d[h]=void 0===b[h]&&void 0!==k?k[h]:b[h])}var h=arguments.length-2;if(1===h)d.children=c;else if(1<h){k=Array(h);for(var m=0;m<h;m++)k[m]=arguments[m+2];d.children=k}return{$$typeof:w,type:a.type,key:e,ref:g,props:d,_owner:n}};c.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:la,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:ka,_context:a};return a.Consumer=
|
|
29
29
|
a};c.createElement=ca;c.createFactory=function(a){var b=ca.bind(null,a);b.type=a;return b};c.createRef=function(){return{current:null}};c.forwardRef=function(a){return{$$typeof:ma,render:a}};c.isValidElement=M;c.lazy=function(a){return{$$typeof:oa,_payload:{_status:-1,_result:a},_init:xa}};c.memo=function(a,b){return{$$typeof:na,type:a,compare:void 0===b?null:b}};c.useCallback=function(a,b){return n().useCallback(a,b)};c.useContext=function(a,b){return n().useContext(a,b)};c.useDebugValue=function(a,
|
|
30
|
-
b){};c.useEffect=function(a,b){return n().useEffect(a,b)};c.useImperativeHandle=function(a,b,c){return n().useImperativeHandle(a,b,c)};c.useLayoutEffect=function(a,b){return n().useLayoutEffect(a,b)};c.useMemo=function(a,b){return n().useMemo(a,b)};c.useReducer=function(a,b,c){return n().useReducer(a,b,c)};c.useRef=function(a){return n().useRef(a)};c.useState=function(a){return n().useState(a)};c.version="17.0.
|
|
30
|
+
b){};c.useEffect=function(a,b){return n().useEffect(a,b)};c.useImperativeHandle=function(a,b,c){return n().useImperativeHandle(a,b,c)};c.useLayoutEffect=function(a,b){return n().useLayoutEffect(a,b)};c.useMemo=function(a,b){return n().useMemo(a,b)};c.useReducer=function(a,b,c){return n().useReducer(a,b,c)};c.useRef=function(a){return n().useRef(a)};c.useState=function(a){return n().useState(a)};c.version="17.0.2"});
|
|
31
31
|
})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v17.0.
|
|
1
|
+
/** @license React v17.0.2
|
|
2
2
|
* react.profiling.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -6,33 +6,31 @@
|
|
|
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
|
-
(function(){'use strict';(function(f,
|
|
10
|
-
a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function
|
|
11
|
-
|
|
12
|
-
typeof a&&null!==a&&null!=a.key?
|
|
13
|
-
a)),b.push(d)),1;
|
|
14
|
-
a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}if(1===a._status)return a._result;throw a._result;}function
|
|
15
|
-
a[0];if(void 0!==b){var c=a.pop();if(c!==b){a[0]=c;a:for(var e=0,d=a.length;e<d;){var
|
|
16
|
-
|
|
17
|
-
b
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{
|
|
23
|
-
|
|
24
|
-
function(){
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
a};f.createElement=ra;f.createFactory=function(a){var b=ra.bind(null,a);b.type=a;return b};f.createRef=function(){return{current:null}};f.forwardRef=function(a){return{$$typeof:Ba,render:a}};f.isValidElement=Z;f.lazy=function(a){return{$$typeof:Da,_payload:{_status:-1,_result:a},_init:La}};f.memo=function(a,b){return{$$typeof:Ca,type:a,compare:void 0===b?null:b}};f.useCallback=function(a,b){return y().useCallback(a,b)};f.useContext=function(a,b){return y().useContext(a,b)};f.useDebugValue=function(a,
|
|
37
|
-
b){};f.useEffect=function(a,b){return y().useEffect(a,b)};f.useImperativeHandle=function(a,b,c){return y().useImperativeHandle(a,b,c)};f.useLayoutEffect=function(a,b){return y().useLayoutEffect(a,b)};f.useMemo=function(a,b){return y().useMemo(a,b)};f.useReducer=function(a,b,c){return y().useReducer(a,b,c)};f.useRef=function(a){return y().useRef(a)};f.useState=function(a){return y().useState(a)};f.version="17.0.0-rc.2"});
|
|
9
|
+
(function(){'use strict';(function(f,C){"object"===typeof exports&&"undefined"!==typeof module?C(exports):"function"===typeof define&&define.amd?define(["exports"],C):(f=f||self,C(f.React={}))})(this,function(f){function C(a){if(null===a||"object"!==typeof a)return null;a=da&&a[da]||a["@@iterator"];return"function"===typeof a?a:null}function D(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 #"+
|
|
10
|
+
a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function A(a,b,c){this.props=a;this.context=b;this.refs=ea;this.updater=c||fa}function ha(){}function P(a,b,c){this.props=a;this.context=b;this.refs=ea;this.updater=c||fa}function ia(a,b,c){var e,d={},l=null,h=null;if(null!=b)for(e in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(l=""+b.key),b)ja.call(b,e)&&!ka.hasOwnProperty(e)&&(d[e]=b[e]);var k=arguments.length-2;if(1===
|
|
11
|
+
k)d.children=c;else if(1<k){for(var f=Array(k),g=0;g<k;g++)f[g]=arguments[g+2];d.children=f}if(a&&a.defaultProps)for(e in k=a.defaultProps,k)void 0===d[e]&&(d[e]=k[e]);return{$$typeof:B,type:a,key:l,ref:h,props:d,_owner:Q.current}}function za(a,b){return{$$typeof:B,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function R(a){return"object"===typeof a&&null!==a&&a.$$typeof===B}function Aa(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}function S(a,b){return"object"===
|
|
12
|
+
typeof a&&null!==a&&null!=a.key?Aa(""+a.key):b.toString(36)}function H(a,b,c,e,d){var l=typeof a;if("undefined"===l||"boolean"===l)a=null;var h=!1;if(null===a)h=!0;else switch(l){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case B:case la:h=!0}}if(h)return h=a,d=d(h),a=""===e?"."+S(h,0):e,Array.isArray(d)?(c="",null!=a&&(c=a.replace(ma,"$&/")+"/"),H(d,b,c,"",function(a){return a})):null!=d&&(R(d)&&(d=za(d,c+(!d.key||h&&h.key===d.key?"":(""+d.key).replace(ma,"$&/")+"/")+
|
|
13
|
+
a)),b.push(d)),1;h=0;e=""===e?".":e+":";if(Array.isArray(a))for(var f=0;f<a.length;f++){l=a[f];var n=e+S(l,f);h+=H(l,b,c,n,d)}else if(n=C(a),"function"===typeof n)for(a=n.call(a),f=0;!(l=a.next()).done;)l=l.value,n=e+S(l,f++),h+=H(l,b,c,n,d);else if("object"===l)throw b=""+a,Error(D(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));return h}function I(a,b,c){if(null==a)return a;var e=[],d=0;H(a,e,"","",function(a){return b.call(c,a,d++)});return e}function Ba(a){if(-1===
|
|
14
|
+
a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}if(1===a._status)return a._result;throw a._result;}function v(){var a=na.current;if(null===a)throw Error(D(321));return a}function T(a,b){var c=a.length;a.push(b);a:for(;;){var e=c-1>>>1,d=a[e];if(void 0!==d&&0<J(d,b))a[e]=b,a[c]=d,c=e;else break a}}function r(a){a=a[0];return void 0===a?null:a}function K(a){var b=
|
|
15
|
+
a[0];if(void 0!==b){var c=a.pop();if(c!==b){a[0]=c;a:for(var e=0,d=a.length;e<d;){var f=2*(e+1)-1,h=a[f],k=f+1,n=a[k];if(void 0!==h&&0>J(h,c))void 0!==n&&0>J(n,h)?(a[e]=n,a[k]=c,e=k):(a[e]=h,a[f]=c,e=f);else if(void 0!==n&&0>J(n,c))a[e]=n,a[k]=c,e=k;else break a}}return b}return null}function J(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function U(a){for(var b=r(w);null!==b;){if(null===b.callback)K(w);else if(b.startTime<=a)K(w),b.sortIndex=b.expirationTime,T(u,b);else break;b=r(w)}}
|
|
16
|
+
function V(a){E=!1;U(a);if(!z)if(null!==r(u))z=!0,F(W);else{var b=r(w);null!==b&&L(V,b.startTime-a)}}function W(a,b){z=!1;E&&(E=!1,X());M=!0;var c=m;try{U(b);for(q=r(u);null!==q&&(!(q.expirationTime>b)||a&&!Y());){var e=q.callback;if("function"===typeof e){q.callback=null;m=q.priorityLevel;var d=e(q.expirationTime<=b);b=x();"function"===typeof d?q.callback=d:q===r(u)&&K(u);U(b)}else K(u);q=r(u)}if(null!==q)var f=!0;else{var h=r(w);null!==h&&L(V,h.startTime-b);f=!1}return f}finally{q=null,m=c,M=!1}}
|
|
17
|
+
function Ca(a){var b=!1,c=null;t.forEach(function(e){try{e.onInteractionTraced(a)}catch(d){b||(b=!0,c=d)}});if(b)throw c;}function Da(a){var b=!1,c=null;t.forEach(function(e){try{e.onInteractionScheduledWorkCompleted(a)}catch(d){b||(b=!0,c=d)}});if(b)throw c;}function Ea(a,b){var c=!1,e=null;t.forEach(function(d){try{d.onWorkScheduled(a,b)}catch(l){c||(c=!0,e=l)}});if(c)throw e;}function Fa(a,b){var c=!1,e=null;t.forEach(function(d){try{d.onWorkStarted(a,b)}catch(l){c||(c=!0,e=l)}});if(c)throw e;
|
|
18
|
+
}function Ga(a,b){var c=!1,e=null;t.forEach(function(d){try{d.onWorkStopped(a,b)}catch(l){c||(c=!0,e=l)}});if(c)throw e;}function Ha(a,b){var c=!1,e=null;t.forEach(function(d){try{d.onWorkCanceled(a,b)}catch(l){c||(c=!0,e=l)}});if(c)throw e;}var B=60103,la=60106;f.Fragment=60107;f.StrictMode=60108;f.Profiler=60114;var oa=60109,pa=60110,qa=60112;f.Suspense=60113;var ra=60115,sa=60116;if("function"===typeof Symbol&&Symbol.for){var g=Symbol.for;B=g("react.element");la=g("react.portal");f.Fragment=g("react.fragment");
|
|
19
|
+
f.StrictMode=g("react.strict_mode");f.Profiler=g("react.profiler");oa=g("react.provider");pa=g("react.context");qa=g("react.forward_ref");f.Suspense=g("react.suspense");ra=g("react.memo");sa=g("react.lazy")}var da="function"===typeof Symbol&&Symbol.iterator,Ia=Object.prototype.hasOwnProperty,Z=Object.assign||function(a,b){if(null==a)throw new TypeError("Object.assign target cannot be null or undefined");for(var c=Object(a),e=1;e<arguments.length;e++){var d=arguments[e];if(null!=d){var f=void 0;d=
|
|
20
|
+
Object(d);for(f in d)Ia.call(d,f)&&(c[f]=d[f])}}return c},fa={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,e){},enqueueSetState:function(a,b,c,e){}},ea={};A.prototype.isReactComponent={};A.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(D(85));this.updater.enqueueSetState(this,a,b,"setState")};A.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};ha.prototype=
|
|
21
|
+
A.prototype;g=P.prototype=new ha;g.constructor=P;Z(g,A.prototype);g.isPureReactComponent=!0;var Q={current:null},ja=Object.prototype.hasOwnProperty,ka={key:!0,ref:!0,__self:!0,__source:!0},ma=/\/+/g,na={current:null},aa;if("object"===typeof performance&&"function"===typeof performance.now){var Ja=performance;var x=function(){return Ja.now()}}else{var ta=Date,Ka=ta.now();x=function(){return ta.now()-Ka}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var G=null,ua=null,va=function(){if(null!==
|
|
22
|
+
G)try{var a=x();G(!0,a);G=null}catch(b){throw setTimeout(va,0),b;}};var F=function(a){null!==G?setTimeout(F,0,a):(G=a,setTimeout(va,0))};var L=function(a,b){ua=setTimeout(a,b)};var X=function(){clearTimeout(ua)};var Y=function(){return!1};g=aa=function(){}}else{var La=window.setTimeout,Ma=window.clearTimeout;"undefined"!==typeof console&&(g=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://reactjs.org/link/react-polyfills"),
|
|
23
|
+
"function"!==typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"));var N=!1,O=null,ba=-1,wa=5,xa=0;Y=function(){return x()>=xa};g=function(){};aa=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):wa=0<a?Math.floor(1E3/a):5};var ya=new MessageChannel,ca=ya.port2;ya.port1.onmessage=
|
|
24
|
+
function(){if(null!==O){var a=x();xa=a+wa;try{O(!0,a)?ca.postMessage(null):(N=!1,O=null)}catch(b){throw ca.postMessage(null),b;}}else N=!1};F=function(a){O=a;N||(N=!0,ca.postMessage(null))};L=function(a,b){ba=La(function(){a(x())},b)};X=function(){Ma(ba);ba=-1}}var u=[],w=[],Na=1,q=null,m=3,M=!1,z=!1,E=!1;g={__proto__:null,unstable_ImmediatePriority:1,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;
|
|
25
|
+
default:a=3}var c=m;m=a;try{return b()}finally{m=c}},unstable_next:function(a){switch(m){case 1:case 2:case 3:var b=3;break;default:b=m}var c=m;m=b;try{return a()}finally{m=c}},unstable_scheduleCallback:function(a,b,c){var e=x();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?e+c:e):c=e;switch(a){case 1:var d=-1;break;case 2:d=250;break;case 5:d=1073741823;break;case 4:d=1E4;break;default:d=5E3}d=c+d;a={id:Na++,callback:b,priorityLevel:a,startTime:c,expirationTime:d,sortIndex:-1};
|
|
26
|
+
c>e?(a.sortIndex=c,T(w,a),null===r(u)&&a===r(w)&&(E?X():E=!0,L(V,c-e))):(a.sortIndex=d,T(u,a),z||M||(z=!0,F(W)));return a},unstable_cancelCallback:function(a){a.callback=null},unstable_wrapCallback:function(a){var b=m;return function(){var c=m;m=b;try{return a.apply(this,arguments)}finally{m=c}}},unstable_getCurrentPriorityLevel:function(){return m},get unstable_shouldYield(){return Y},unstable_requestPaint:g,unstable_continueExecution:function(){z||M||(z=!0,F(W))},unstable_pauseExecution:function(){},
|
|
27
|
+
unstable_getFirstCallbackNode:function(){return r(u)},get unstable_now(){return x},get unstable_forceFrameRate(){return aa},unstable_Profiling:null};var Oa=0,Pa=0,p=null,y=null;p={current:new Set};y={current:null};var t=null;t=new Set;g={ReactCurrentDispatcher:na,ReactCurrentOwner:Q,IsSomeRendererActing:{current:!1},ReactCurrentBatchConfig:{transition:0},assign:Z,Scheduler:g,SchedulerTracing:{__proto__:null,get __interactionsRef(){return p},get __subscriberRef(){return y},unstable_clear:function(a){var b=
|
|
28
|
+
p.current;p.current=new Set;try{return a()}finally{p.current=b}},unstable_getCurrent:function(){return p.current},unstable_getThreadID:function(){return++Pa},unstable_trace:function(a,b,c){var e=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,d={__count:1,id:Oa++,name:a,timestamp:b},f=p.current,h=new Set(f);h.add(d);p.current=h;var k=y.current;try{if(null!==k)k.onInteractionTraced(d)}finally{try{if(null!==k)k.onWorkStarted(h,e)}finally{try{var n=c()}finally{p.current=f;try{if(null!==k)k.onWorkStopped(h,
|
|
29
|
+
e)}finally{if(d.__count--,null!==k&&0===d.__count)k.onInteractionScheduledWorkCompleted(d)}}}}return n},unstable_wrap:function(a){function b(){var b=p.current;p.current=e;d=y.current;try{try{if(null!==d)d.onWorkStarted(e,c)}finally{try{var k=a.apply(void 0,arguments)}finally{if(p.current=b,null!==d)d.onWorkStopped(e,c)}}return k}finally{f||(f=!0,e.forEach(function(a){a.__count--;if(null!==d&&0===a.__count)d.onInteractionScheduledWorkCompleted(a)}))}}var c=1<arguments.length&&void 0!==arguments[1]?
|
|
30
|
+
arguments[1]:0,e=p.current,d=y.current;if(null!==d)d.onWorkScheduled(e,c);e.forEach(function(a){a.__count++});var f=!1;b.cancel=function(){d=y.current;try{if(null!==d)d.onWorkCanceled(e,c)}finally{e.forEach(function(a){a.__count--;if(d&&0===a.__count)d.onInteractionScheduledWorkCompleted(a)})}};return b},unstable_subscribe:function(a){t.add(a);1===t.size&&(y.current={onInteractionScheduledWorkCompleted:Da,onInteractionTraced:Ca,onWorkCanceled:Ha,onWorkScheduled:Ea,onWorkStarted:Fa,onWorkStopped:Ga})},
|
|
31
|
+
unstable_unsubscribe:function(a){t.delete(a);0===t.size&&(y.current=null)}}};f.Children={map:I,forEach:function(a,b,c){I(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;I(a,function(){b++});return b},toArray:function(a){return I(a,function(a){return a})||[]},only:function(a){if(!R(a))throw Error(D(143));return a}};f.Component=A;f.PureComponent=P;f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=g;f.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(D(267,a));var e=
|
|
32
|
+
Z({},a.props),d=a.key,f=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,h=Q.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var k=a.type.defaultProps;for(g in b)ja.call(b,g)&&!ka.hasOwnProperty(g)&&(e[g]=void 0===b[g]&&void 0!==k?k[g]:b[g])}var g=arguments.length-2;if(1===g)e.children=c;else if(1<g){k=Array(g);for(var m=0;m<g;m++)k[m]=arguments[m+2];e.children=k}return{$$typeof:B,type:a.type,key:d,ref:f,props:e,_owner:h}};f.createContext=function(a,b){void 0===b&&(b=null);
|
|
33
|
+
a={$$typeof:pa,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:oa,_context:a};return a.Consumer=a};f.createElement=ia;f.createFactory=function(a){var b=ia.bind(null,a);b.type=a;return b};f.createRef=function(){return{current:null}};f.forwardRef=function(a){return{$$typeof:qa,render:a}};f.isValidElement=R;f.lazy=function(a){return{$$typeof:sa,_payload:{_status:-1,_result:a},_init:Ba}};f.memo=function(a,b){return{$$typeof:ra,
|
|
34
|
+
type:a,compare:void 0===b?null:b}};f.useCallback=function(a,b){return v().useCallback(a,b)};f.useContext=function(a,b){return v().useContext(a,b)};f.useDebugValue=function(a,b){};f.useEffect=function(a,b){return v().useEffect(a,b)};f.useImperativeHandle=function(a,b,c){return v().useImperativeHandle(a,b,c)};f.useLayoutEffect=function(a,b){return v().useLayoutEffect(a,b)};f.useMemo=function(a,b){return v().useMemo(a,b)};f.useReducer=function(a,b,c){return v().useReducer(a,b,c)};f.useRef=function(a){return v().useRef(a)};
|
|
35
|
+
f.useState=function(a){return v().useState(a)};f.version="17.0.2"});
|
|
38
36
|
})();
|