@symbo.ls/datepicker 0.5.9 → 0.6.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/dist/index.js +347 -0
- package/dist/index.js.map +1 -0
- package/package.json +6 -6
- package/packages/react/dist/index.js +17 -0
- package/packages/react/dist/index.js.map +1 -0
- package/packages/react/package.json +5 -5
- package/packages/react/{index.js → src/index.js} +0 -0
- package/packages/react/node_modules/.yarn-integrity +0 -105
- package/packages/react/node_modules/@domql/cache/LICENSE +0 -21
- package/packages/react/node_modules/@domql/cache/index.js +0 -0
- package/packages/react/node_modules/@domql/cache/package.json +0 -10
- package/packages/react/node_modules/@domql/cookie/LICENSE +0 -21
- package/packages/react/node_modules/@domql/cookie/index.js +0 -22
- package/packages/react/node_modules/@domql/cookie/package.json +0 -10
- package/packages/react/node_modules/@domql/define/LICENSE +0 -21
- package/packages/react/node_modules/@domql/define/index.js +0 -14
- package/packages/react/node_modules/@domql/define/package.json +0 -11
- package/packages/react/node_modules/@domql/domql/LICENSE +0 -21
- package/packages/react/node_modules/@domql/domql/dist/index.js +0 -93
- package/packages/react/node_modules/@domql/domql/dist/index.js.map +0 -1
- package/packages/react/node_modules/@domql/domql/package.json +0 -33
- package/packages/react/node_modules/@domql/element/LICENSE +0 -21
- package/packages/react/node_modules/@domql/element/package.json +0 -20
- package/packages/react/node_modules/@domql/element/src/assign.js +0 -22
- package/packages/react/node_modules/@domql/element/src/create.js +0 -125
- package/packages/react/node_modules/@domql/element/src/index.js +0 -8
- package/packages/react/node_modules/@domql/element/src/iterate.js +0 -80
- package/packages/react/node_modules/@domql/element/src/methods.js +0 -96
- package/packages/react/node_modules/@domql/element/src/set.js +0 -44
- package/packages/react/node_modules/@domql/element/src/update.js +0 -100
- package/packages/react/node_modules/@domql/event/LICENSE +0 -21
- package/packages/react/node_modules/@domql/event/package.json +0 -14
- package/packages/react/node_modules/@domql/event/src/can.js +0 -10
- package/packages/react/node_modules/@domql/event/src/index.js +0 -11
- package/packages/react/node_modules/@domql/event/src/is.js +0 -13
- package/packages/react/node_modules/@domql/event/src/on.js +0 -33
- package/packages/react/node_modules/@domql/event/src/store.js +0 -6
- package/packages/react/node_modules/@domql/event/src/wrappers.js +0 -14
- package/packages/react/node_modules/@domql/event/yarn-error.log +0 -44
- package/packages/react/node_modules/@domql/id/LICENSE +0 -21
- package/packages/react/node_modules/@domql/id/index.js +0 -12
- package/packages/react/node_modules/@domql/id/package.json +0 -10
- package/packages/react/node_modules/@domql/mixins/LICENSE +0 -21
- package/packages/react/node_modules/@domql/mixins/package.json +0 -12
- package/packages/react/node_modules/@domql/mixins/src/attr.js +0 -19
- package/packages/react/node_modules/@domql/mixins/src/classList.js +0 -37
- package/packages/react/node_modules/@domql/mixins/src/content.js +0 -17
- package/packages/react/node_modules/@domql/mixins/src/data.js +0 -21
- package/packages/react/node_modules/@domql/mixins/src/html.js +0 -17
- package/packages/react/node_modules/@domql/mixins/src/index.js +0 -11
- package/packages/react/node_modules/@domql/mixins/src/registry.js +0 -55
- package/packages/react/node_modules/@domql/mixins/src/state.js +0 -16
- package/packages/react/node_modules/@domql/mixins/src/style.js +0 -14
- package/packages/react/node_modules/@domql/mixins/src/text.js +0 -19
- package/packages/react/node_modules/@domql/node/LICENSE +0 -21
- package/packages/react/node_modules/@domql/node/package.json +0 -18
- package/packages/react/node_modules/@domql/node/src/cache.js +0 -53
- package/packages/react/node_modules/@domql/node/src/create.js +0 -86
- package/packages/react/node_modules/@domql/node/src/index.js +0 -5
- package/packages/react/node_modules/@domql/node/src/registry.js +0 -139
- package/packages/react/node_modules/@domql/node/yarn-error.log +0 -166
- package/packages/react/node_modules/@domql/parse/LICENSE +0 -21
- package/packages/react/node_modules/@domql/parse/index.js +0 -16
- package/packages/react/node_modules/@domql/parse/package.json +0 -10
- package/packages/react/node_modules/@domql/props/LICENSE +0 -21
- package/packages/react/node_modules/@domql/props/package.json +0 -10
- package/packages/react/node_modules/@domql/props/src/index.js +0 -62
- package/packages/react/node_modules/@domql/proto/LICENSE +0 -21
- package/packages/react/node_modules/@domql/proto/index.js +0 -66
- package/packages/react/node_modules/@domql/proto/package.json +0 -10
- package/packages/react/node_modules/@domql/react-transformer/LICENSE +0 -21
- package/packages/react/node_modules/@domql/react-transformer/dist/index.js +0 -62
- package/packages/react/node_modules/@domql/react-transformer/dist/index.js.map +0 -1
- package/packages/react/node_modules/@domql/react-transformer/package.json +0 -17
- package/packages/react/node_modules/@domql/report/LICENSE +0 -21
- package/packages/react/node_modules/@domql/report/index.js +0 -62
- package/packages/react/node_modules/@domql/report/package.json +0 -7
- package/packages/react/node_modules/@domql/state/LICENSE +0 -21
- package/packages/react/node_modules/@domql/state/package.json +0 -11
- package/packages/react/node_modules/@domql/state/src/index.js +0 -51
- package/packages/react/node_modules/@domql/tree/LICENSE +0 -21
- package/packages/react/node_modules/@domql/tree/index.js +0 -6
- package/packages/react/node_modules/@domql/tree/package.json +0 -10
- package/packages/react/node_modules/@domql/tree/root.js +0 -8
- package/packages/react/node_modules/@domql/utils/LICENSE +0 -21
- package/packages/react/node_modules/@domql/utils/package.json +0 -13
- package/packages/react/node_modules/@domql/utils/src/index.js +0 -5
- package/packages/react/node_modules/@domql/utils/src/node.js +0 -10
- package/packages/react/node_modules/@domql/utils/src/object.js +0 -193
- package/packages/react/node_modules/@domql/utils/src/protoUtils.js +0 -119
- package/packages/react/node_modules/@symbo.ls/block/package.json +0 -7
- package/packages/react/node_modules/@symbo.ls/block/packages/react/index.js +0 -1
- package/packages/react/node_modules/@symbo.ls/block/packages/react/package.json +0 -7
- package/packages/react/node_modules/@symbo.ls/block/src/index.js +0 -90
- package/packages/react/node_modules/@symbo.ls/block/src/style.js +0 -5
- package/packages/react/node_modules/@symbo.ls/datepicker/package.json +0 -12
- package/packages/react/node_modules/@symbo.ls/datepicker/packages/react/index.js +0 -1
- package/packages/react/node_modules/@symbo.ls/datepicker/packages/react/package.json +0 -7
- package/packages/react/node_modules/@symbo.ls/datepicker/src/index.js +0 -115
- package/packages/react/node_modules/@symbo.ls/datepicker/src/style.js +0 -100
- package/packages/react/node_modules/@symbo.ls/icon/package.json +0 -10
- package/packages/react/node_modules/@symbo.ls/icon/packages/react/index.js +0 -1
- package/packages/react/node_modules/@symbo.ls/icon/packages/react/package.json +0 -7
- package/packages/react/node_modules/@symbo.ls/icon/src/index.js +0 -14
- package/packages/react/node_modules/@symbo.ls/icon/src/style.js +0 -8
- package/packages/react/node_modules/@symbo.ls/shape/package.json +0 -7
- package/packages/react/node_modules/@symbo.ls/shape/packages/react/index.js +0 -1
- package/packages/react/node_modules/@symbo.ls/shape/packages/react/package.json +0 -7
- package/packages/react/node_modules/@symbo.ls/shape/src/index.js +0 -43
- package/packages/react/node_modules/@symbo.ls/shape/src/style.js +0 -102
- package/packages/react/node_modules/@symbo.ls/svg/package.json +0 -7
- package/packages/react/node_modules/@symbo.ls/svg/packages/react/index.js +0 -1
- package/packages/react/node_modules/@symbo.ls/svg/packages/react/package.json +0 -7
- package/packages/react/node_modules/@symbo.ls/svg/src/index.js +0 -14
- package/packages/react/node_modules/js-tokens/CHANGELOG.md +0 -151
- package/packages/react/node_modules/js-tokens/LICENSE +0 -21
- package/packages/react/node_modules/js-tokens/README.md +0 -240
- package/packages/react/node_modules/js-tokens/index.js +0 -23
- package/packages/react/node_modules/js-tokens/package.json +0 -30
- package/packages/react/node_modules/loose-envify/LICENSE +0 -21
- package/packages/react/node_modules/loose-envify/README.md +0 -45
- package/packages/react/node_modules/loose-envify/cli.js +0 -16
- package/packages/react/node_modules/loose-envify/custom.js +0 -4
- package/packages/react/node_modules/loose-envify/index.js +0 -3
- package/packages/react/node_modules/loose-envify/loose-envify.js +0 -36
- package/packages/react/node_modules/loose-envify/package.json +0 -36
- package/packages/react/node_modules/loose-envify/replace.js +0 -65
- package/packages/react/node_modules/object-assign/index.js +0 -90
- package/packages/react/node_modules/object-assign/license +0 -21
- package/packages/react/node_modules/object-assign/package.json +0 -42
- package/packages/react/node_modules/object-assign/readme.md +0 -61
- package/packages/react/node_modules/react/LICENSE +0 -21
- package/packages/react/node_modules/react/README.md +0 -13
- package/packages/react/node_modules/react/build-info.json +0 -8
- package/packages/react/node_modules/react/cjs/react-jsx-dev-runtime.development.js +0 -1203
- package/packages/react/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +0 -9
- package/packages/react/node_modules/react/cjs/react-jsx-dev-runtime.profiling.min.js +0 -9
- package/packages/react/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1221
- package/packages/react/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -10
- package/packages/react/node_modules/react/cjs/react-jsx-runtime.profiling.min.js +0 -10
- package/packages/react/node_modules/react/cjs/react.development.js +0 -2333
- package/packages/react/node_modules/react/cjs/react.production.min.js +0 -23
- package/packages/react/node_modules/react/index.js +0 -7
- package/packages/react/node_modules/react/jsx-dev-runtime.js +0 -7
- package/packages/react/node_modules/react/jsx-runtime.js +0 -7
- package/packages/react/node_modules/react/package.json +0 -39
- package/packages/react/node_modules/react/umd/react.development.js +0 -3357
- package/packages/react/node_modules/react/umd/react.production.min.js +0 -31
- package/packages/react/node_modules/react/umd/react.profiling.min.js +0 -36
- package/packages/react/node_modules/react-dom/LICENSE +0 -21
- package/packages/react/node_modules/react-dom/README.md +0 -54
- package/packages/react/node_modules/react-dom/build-info.json +0 -8
- package/packages/react/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -4342
- package/packages/react/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +0 -51
- package/packages/react/node_modules/react-dom/cjs/react-dom-server.node.development.js +0 -4383
- package/packages/react/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +0 -52
- package/packages/react/node_modules/react-dom/cjs/react-dom-test-utils.development.js +0 -2118
- package/packages/react/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +0 -43
- package/packages/react/node_modules/react-dom/cjs/react-dom.development.js +0 -26262
- package/packages/react/node_modules/react-dom/cjs/react-dom.production.min.js +0 -297
- package/packages/react/node_modules/react-dom/cjs/react-dom.profiling.min.js +0 -310
- package/packages/react/node_modules/react-dom/index.js +0 -38
- package/packages/react/node_modules/react-dom/package.json +0 -49
- package/packages/react/node_modules/react-dom/profiling.js +0 -38
- package/packages/react/node_modules/react-dom/server.browser.js +0 -7
- package/packages/react/node_modules/react-dom/server.js +0 -3
- package/packages/react/node_modules/react-dom/server.node.js +0 -7
- package/packages/react/node_modules/react-dom/test-utils.js +0 -7
- package/packages/react/node_modules/react-dom/umd/react-dom-server.browser.development.js +0 -4341
- package/packages/react/node_modules/react-dom/umd/react-dom-server.browser.production.min.js +0 -46
- package/packages/react/node_modules/react-dom/umd/react-dom-test-utils.development.js +0 -2136
- package/packages/react/node_modules/react-dom/umd/react-dom-test-utils.production.min.js +0 -35
- package/packages/react/node_modules/react-dom/umd/react-dom.development.js +0 -26292
- package/packages/react/node_modules/react-dom/umd/react-dom.production.min.js +0 -245
- package/packages/react/node_modules/react-dom/umd/react-dom.profiling.min.js +0 -252
- package/packages/react/node_modules/regenerator-runtime/LICENSE +0 -21
- package/packages/react/node_modules/regenerator-runtime/README.md +0 -31
- package/packages/react/node_modules/regenerator-runtime/package.json +0 -19
- package/packages/react/node_modules/regenerator-runtime/path.js +0 -11
- package/packages/react/node_modules/regenerator-runtime/runtime.js +0 -754
- package/packages/react/node_modules/scheduler/LICENSE +0 -21
- package/packages/react/node_modules/scheduler/README.md +0 -9
- package/packages/react/node_modules/scheduler/build-info.json +0 -8
- package/packages/react/node_modules/scheduler/cjs/scheduler-tracing.development.js +0 -347
- package/packages/react/node_modules/scheduler/cjs/scheduler-tracing.production.min.js +0 -9
- package/packages/react/node_modules/scheduler/cjs/scheduler-tracing.profiling.min.js +0 -16
- package/packages/react/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +0 -665
- package/packages/react/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +0 -19
- package/packages/react/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +0 -206
- package/packages/react/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.min.js +0 -13
- package/packages/react/node_modules/scheduler/cjs/scheduler.development.js +0 -646
- package/packages/react/node_modules/scheduler/cjs/scheduler.production.min.js +0 -20
- package/packages/react/node_modules/scheduler/index.js +0 -7
- package/packages/react/node_modules/scheduler/package.json +0 -40
- package/packages/react/node_modules/scheduler/tracing-profiling.js +0 -7
- package/packages/react/node_modules/scheduler/tracing.js +0 -7
- package/packages/react/node_modules/scheduler/umd/scheduler-tracing.development.js +0 -80
- package/packages/react/node_modules/scheduler/umd/scheduler-tracing.production.min.js +0 -80
- package/packages/react/node_modules/scheduler/umd/scheduler-tracing.profiling.min.js +0 -80
- package/packages/react/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +0 -664
- package/packages/react/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +0 -18
- package/packages/react/node_modules/scheduler/umd/scheduler.development.js +0 -152
- package/packages/react/node_modules/scheduler/umd/scheduler.production.min.js +0 -146
- package/packages/react/node_modules/scheduler/umd/scheduler.profiling.min.js +0 -146
- package/packages/react/node_modules/scheduler/unstable_mock.js +0 -7
- package/packages/react/node_modules/scheduler/unstable_post_task.js +0 -7
- package/packages/react/yarn.lock +0 -229
|
@@ -1,646 +0,0 @@
|
|
|
1
|
-
/** @license React v0.20.2
|
|
2
|
-
* scheduler.development.js
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
'use strict';
|
|
11
|
-
|
|
12
|
-
if (process.env.NODE_ENV !== "production") {
|
|
13
|
-
(function() {
|
|
14
|
-
'use strict';
|
|
15
|
-
|
|
16
|
-
var enableSchedulerDebugging = false;
|
|
17
|
-
var enableProfiling = false;
|
|
18
|
-
|
|
19
|
-
var requestHostCallback;
|
|
20
|
-
var requestHostTimeout;
|
|
21
|
-
var cancelHostTimeout;
|
|
22
|
-
var requestPaint;
|
|
23
|
-
var hasPerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';
|
|
24
|
-
|
|
25
|
-
if (hasPerformanceNow) {
|
|
26
|
-
var localPerformance = performance;
|
|
27
|
-
|
|
28
|
-
exports.unstable_now = function () {
|
|
29
|
-
return localPerformance.now();
|
|
30
|
-
};
|
|
31
|
-
} else {
|
|
32
|
-
var localDate = Date;
|
|
33
|
-
var initialTime = localDate.now();
|
|
34
|
-
|
|
35
|
-
exports.unstable_now = function () {
|
|
36
|
-
return localDate.now() - initialTime;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
if ( // If Scheduler runs in a non-DOM environment, it falls back to a naive
|
|
41
|
-
// implementation using setTimeout.
|
|
42
|
-
typeof window === 'undefined' || // Check if MessageChannel is supported, too.
|
|
43
|
-
typeof MessageChannel !== 'function') {
|
|
44
|
-
// If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
|
|
45
|
-
// fallback to a naive implementation.
|
|
46
|
-
var _callback = null;
|
|
47
|
-
var _timeoutID = null;
|
|
48
|
-
|
|
49
|
-
var _flushCallback = function () {
|
|
50
|
-
if (_callback !== null) {
|
|
51
|
-
try {
|
|
52
|
-
var currentTime = exports.unstable_now();
|
|
53
|
-
var hasRemainingTime = true;
|
|
54
|
-
|
|
55
|
-
_callback(hasRemainingTime, currentTime);
|
|
56
|
-
|
|
57
|
-
_callback = null;
|
|
58
|
-
} catch (e) {
|
|
59
|
-
setTimeout(_flushCallback, 0);
|
|
60
|
-
throw e;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
requestHostCallback = function (cb) {
|
|
66
|
-
if (_callback !== null) {
|
|
67
|
-
// Protect against re-entrancy.
|
|
68
|
-
setTimeout(requestHostCallback, 0, cb);
|
|
69
|
-
} else {
|
|
70
|
-
_callback = cb;
|
|
71
|
-
setTimeout(_flushCallback, 0);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
requestHostTimeout = function (cb, ms) {
|
|
76
|
-
_timeoutID = setTimeout(cb, ms);
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
cancelHostTimeout = function () {
|
|
80
|
-
clearTimeout(_timeoutID);
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
exports.unstable_shouldYield = function () {
|
|
84
|
-
return false;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
requestPaint = exports.unstable_forceFrameRate = function () {};
|
|
88
|
-
} else {
|
|
89
|
-
// Capture local references to native APIs, in case a polyfill overrides them.
|
|
90
|
-
var _setTimeout = window.setTimeout;
|
|
91
|
-
var _clearTimeout = window.clearTimeout;
|
|
92
|
-
|
|
93
|
-
if (typeof console !== 'undefined') {
|
|
94
|
-
// TODO: Scheduler no longer requires these methods to be polyfilled. But
|
|
95
|
-
// maybe we want to continue warning if they don't exist, to preserve the
|
|
96
|
-
// option to rely on it in the future?
|
|
97
|
-
var requestAnimationFrame = window.requestAnimationFrame;
|
|
98
|
-
var cancelAnimationFrame = window.cancelAnimationFrame;
|
|
99
|
-
|
|
100
|
-
if (typeof requestAnimationFrame !== 'function') {
|
|
101
|
-
// Using console['error'] to evade Babel and ESLint
|
|
102
|
-
console['error']("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://reactjs.org/link/react-polyfills');
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
if (typeof cancelAnimationFrame !== 'function') {
|
|
106
|
-
// Using console['error'] to evade Babel and ESLint
|
|
107
|
-
console['error']("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://reactjs.org/link/react-polyfills');
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
var isMessageLoopRunning = false;
|
|
112
|
-
var scheduledHostCallback = null;
|
|
113
|
-
var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
|
|
114
|
-
// thread, like user events. By default, it yields multiple times per frame.
|
|
115
|
-
// It does not attempt to align with frame boundaries, since most tasks don't
|
|
116
|
-
// need to be frame aligned; for those that do, use requestAnimationFrame.
|
|
117
|
-
|
|
118
|
-
var yieldInterval = 5;
|
|
119
|
-
var deadline = 0; // TODO: Make this configurable
|
|
120
|
-
|
|
121
|
-
{
|
|
122
|
-
// `isInputPending` is not available. Since we have no way of knowing if
|
|
123
|
-
// there's pending input, always yield at the end of the frame.
|
|
124
|
-
exports.unstable_shouldYield = function () {
|
|
125
|
-
return exports.unstable_now() >= deadline;
|
|
126
|
-
}; // Since we yield every frame regardless, `requestPaint` has no effect.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
requestPaint = function () {};
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
exports.unstable_forceFrameRate = function (fps) {
|
|
133
|
-
if (fps < 0 || fps > 125) {
|
|
134
|
-
// Using console['error'] to evade Babel and ESLint
|
|
135
|
-
console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported');
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
if (fps > 0) {
|
|
140
|
-
yieldInterval = Math.floor(1000 / fps);
|
|
141
|
-
} else {
|
|
142
|
-
// reset the framerate
|
|
143
|
-
yieldInterval = 5;
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
var performWorkUntilDeadline = function () {
|
|
148
|
-
if (scheduledHostCallback !== null) {
|
|
149
|
-
var currentTime = exports.unstable_now(); // Yield after `yieldInterval` ms, regardless of where we are in the vsync
|
|
150
|
-
// cycle. This means there's always time remaining at the beginning of
|
|
151
|
-
// the message event.
|
|
152
|
-
|
|
153
|
-
deadline = currentTime + yieldInterval;
|
|
154
|
-
var hasTimeRemaining = true;
|
|
155
|
-
|
|
156
|
-
try {
|
|
157
|
-
var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
|
|
158
|
-
|
|
159
|
-
if (!hasMoreWork) {
|
|
160
|
-
isMessageLoopRunning = false;
|
|
161
|
-
scheduledHostCallback = null;
|
|
162
|
-
} else {
|
|
163
|
-
// If there's more work, schedule the next message event at the end
|
|
164
|
-
// of the preceding one.
|
|
165
|
-
port.postMessage(null);
|
|
166
|
-
}
|
|
167
|
-
} catch (error) {
|
|
168
|
-
// If a scheduler task throws, exit the current browser task so the
|
|
169
|
-
// error can be observed.
|
|
170
|
-
port.postMessage(null);
|
|
171
|
-
throw error;
|
|
172
|
-
}
|
|
173
|
-
} else {
|
|
174
|
-
isMessageLoopRunning = false;
|
|
175
|
-
} // Yielding to the browser will give it a chance to paint, so we can
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
var channel = new MessageChannel();
|
|
179
|
-
var port = channel.port2;
|
|
180
|
-
channel.port1.onmessage = performWorkUntilDeadline;
|
|
181
|
-
|
|
182
|
-
requestHostCallback = function (callback) {
|
|
183
|
-
scheduledHostCallback = callback;
|
|
184
|
-
|
|
185
|
-
if (!isMessageLoopRunning) {
|
|
186
|
-
isMessageLoopRunning = true;
|
|
187
|
-
port.postMessage(null);
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
requestHostTimeout = function (callback, ms) {
|
|
192
|
-
taskTimeoutID = _setTimeout(function () {
|
|
193
|
-
callback(exports.unstable_now());
|
|
194
|
-
}, ms);
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
cancelHostTimeout = function () {
|
|
198
|
-
_clearTimeout(taskTimeoutID);
|
|
199
|
-
|
|
200
|
-
taskTimeoutID = -1;
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
function push(heap, node) {
|
|
205
|
-
var index = heap.length;
|
|
206
|
-
heap.push(node);
|
|
207
|
-
siftUp(heap, node, index);
|
|
208
|
-
}
|
|
209
|
-
function peek(heap) {
|
|
210
|
-
var first = heap[0];
|
|
211
|
-
return first === undefined ? null : first;
|
|
212
|
-
}
|
|
213
|
-
function pop(heap) {
|
|
214
|
-
var first = heap[0];
|
|
215
|
-
|
|
216
|
-
if (first !== undefined) {
|
|
217
|
-
var last = heap.pop();
|
|
218
|
-
|
|
219
|
-
if (last !== first) {
|
|
220
|
-
heap[0] = last;
|
|
221
|
-
siftDown(heap, last, 0);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
return first;
|
|
225
|
-
} else {
|
|
226
|
-
return null;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
function siftUp(heap, node, i) {
|
|
231
|
-
var index = i;
|
|
232
|
-
|
|
233
|
-
while (true) {
|
|
234
|
-
var parentIndex = index - 1 >>> 1;
|
|
235
|
-
var parent = heap[parentIndex];
|
|
236
|
-
|
|
237
|
-
if (parent !== undefined && compare(parent, node) > 0) {
|
|
238
|
-
// The parent is larger. Swap positions.
|
|
239
|
-
heap[parentIndex] = node;
|
|
240
|
-
heap[index] = parent;
|
|
241
|
-
index = parentIndex;
|
|
242
|
-
} else {
|
|
243
|
-
// The parent is smaller. Exit.
|
|
244
|
-
return;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
function siftDown(heap, node, i) {
|
|
250
|
-
var index = i;
|
|
251
|
-
var length = heap.length;
|
|
252
|
-
|
|
253
|
-
while (index < length) {
|
|
254
|
-
var leftIndex = (index + 1) * 2 - 1;
|
|
255
|
-
var left = heap[leftIndex];
|
|
256
|
-
var rightIndex = leftIndex + 1;
|
|
257
|
-
var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.
|
|
258
|
-
|
|
259
|
-
if (left !== undefined && compare(left, node) < 0) {
|
|
260
|
-
if (right !== undefined && compare(right, left) < 0) {
|
|
261
|
-
heap[index] = right;
|
|
262
|
-
heap[rightIndex] = node;
|
|
263
|
-
index = rightIndex;
|
|
264
|
-
} else {
|
|
265
|
-
heap[index] = left;
|
|
266
|
-
heap[leftIndex] = node;
|
|
267
|
-
index = leftIndex;
|
|
268
|
-
}
|
|
269
|
-
} else if (right !== undefined && compare(right, node) < 0) {
|
|
270
|
-
heap[index] = right;
|
|
271
|
-
heap[rightIndex] = node;
|
|
272
|
-
index = rightIndex;
|
|
273
|
-
} else {
|
|
274
|
-
// Neither child is smaller. Exit.
|
|
275
|
-
return;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
function compare(a, b) {
|
|
281
|
-
// Compare sort index first, then task id.
|
|
282
|
-
var diff = a.sortIndex - b.sortIndex;
|
|
283
|
-
return diff !== 0 ? diff : a.id - b.id;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
// TODO: Use symbols?
|
|
287
|
-
var ImmediatePriority = 1;
|
|
288
|
-
var UserBlockingPriority = 2;
|
|
289
|
-
var NormalPriority = 3;
|
|
290
|
-
var LowPriority = 4;
|
|
291
|
-
var IdlePriority = 5;
|
|
292
|
-
|
|
293
|
-
function markTaskErrored(task, ms) {
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/* eslint-disable no-var */
|
|
297
|
-
// Math.pow(2, 30) - 1
|
|
298
|
-
// 0b111111111111111111111111111111
|
|
299
|
-
|
|
300
|
-
var maxSigned31BitInt = 1073741823; // Times out immediately
|
|
301
|
-
|
|
302
|
-
var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out
|
|
303
|
-
|
|
304
|
-
var USER_BLOCKING_PRIORITY_TIMEOUT = 250;
|
|
305
|
-
var NORMAL_PRIORITY_TIMEOUT = 5000;
|
|
306
|
-
var LOW_PRIORITY_TIMEOUT = 10000; // Never times out
|
|
307
|
-
|
|
308
|
-
var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap
|
|
309
|
-
|
|
310
|
-
var taskQueue = [];
|
|
311
|
-
var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.
|
|
312
|
-
|
|
313
|
-
var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
|
|
314
|
-
var currentTask = null;
|
|
315
|
-
var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrancy.
|
|
316
|
-
|
|
317
|
-
var isPerformingWork = false;
|
|
318
|
-
var isHostCallbackScheduled = false;
|
|
319
|
-
var isHostTimeoutScheduled = false;
|
|
320
|
-
|
|
321
|
-
function advanceTimers(currentTime) {
|
|
322
|
-
// Check for tasks that are no longer delayed and add them to the queue.
|
|
323
|
-
var timer = peek(timerQueue);
|
|
324
|
-
|
|
325
|
-
while (timer !== null) {
|
|
326
|
-
if (timer.callback === null) {
|
|
327
|
-
// Timer was cancelled.
|
|
328
|
-
pop(timerQueue);
|
|
329
|
-
} else if (timer.startTime <= currentTime) {
|
|
330
|
-
// Timer fired. Transfer to the task queue.
|
|
331
|
-
pop(timerQueue);
|
|
332
|
-
timer.sortIndex = timer.expirationTime;
|
|
333
|
-
push(taskQueue, timer);
|
|
334
|
-
} else {
|
|
335
|
-
// Remaining timers are pending.
|
|
336
|
-
return;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
timer = peek(timerQueue);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
function handleTimeout(currentTime) {
|
|
344
|
-
isHostTimeoutScheduled = false;
|
|
345
|
-
advanceTimers(currentTime);
|
|
346
|
-
|
|
347
|
-
if (!isHostCallbackScheduled) {
|
|
348
|
-
if (peek(taskQueue) !== null) {
|
|
349
|
-
isHostCallbackScheduled = true;
|
|
350
|
-
requestHostCallback(flushWork);
|
|
351
|
-
} else {
|
|
352
|
-
var firstTimer = peek(timerQueue);
|
|
353
|
-
|
|
354
|
-
if (firstTimer !== null) {
|
|
355
|
-
requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
function flushWork(hasTimeRemaining, initialTime) {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
isHostCallbackScheduled = false;
|
|
365
|
-
|
|
366
|
-
if (isHostTimeoutScheduled) {
|
|
367
|
-
// We scheduled a timeout but it's no longer needed. Cancel it.
|
|
368
|
-
isHostTimeoutScheduled = false;
|
|
369
|
-
cancelHostTimeout();
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
isPerformingWork = true;
|
|
373
|
-
var previousPriorityLevel = currentPriorityLevel;
|
|
374
|
-
|
|
375
|
-
try {
|
|
376
|
-
if (enableProfiling) {
|
|
377
|
-
try {
|
|
378
|
-
return workLoop(hasTimeRemaining, initialTime);
|
|
379
|
-
} catch (error) {
|
|
380
|
-
if (currentTask !== null) {
|
|
381
|
-
var currentTime = exports.unstable_now();
|
|
382
|
-
markTaskErrored(currentTask, currentTime);
|
|
383
|
-
currentTask.isQueued = false;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
throw error;
|
|
387
|
-
}
|
|
388
|
-
} else {
|
|
389
|
-
// No catch in prod code path.
|
|
390
|
-
return workLoop(hasTimeRemaining, initialTime);
|
|
391
|
-
}
|
|
392
|
-
} finally {
|
|
393
|
-
currentTask = null;
|
|
394
|
-
currentPriorityLevel = previousPriorityLevel;
|
|
395
|
-
isPerformingWork = false;
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
function workLoop(hasTimeRemaining, initialTime) {
|
|
400
|
-
var currentTime = initialTime;
|
|
401
|
-
advanceTimers(currentTime);
|
|
402
|
-
currentTask = peek(taskQueue);
|
|
403
|
-
|
|
404
|
-
while (currentTask !== null && !(enableSchedulerDebugging )) {
|
|
405
|
-
if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || exports.unstable_shouldYield())) {
|
|
406
|
-
// This currentTask hasn't expired, and we've reached the deadline.
|
|
407
|
-
break;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
var callback = currentTask.callback;
|
|
411
|
-
|
|
412
|
-
if (typeof callback === 'function') {
|
|
413
|
-
currentTask.callback = null;
|
|
414
|
-
currentPriorityLevel = currentTask.priorityLevel;
|
|
415
|
-
var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
|
|
416
|
-
|
|
417
|
-
var continuationCallback = callback(didUserCallbackTimeout);
|
|
418
|
-
currentTime = exports.unstable_now();
|
|
419
|
-
|
|
420
|
-
if (typeof continuationCallback === 'function') {
|
|
421
|
-
currentTask.callback = continuationCallback;
|
|
422
|
-
} else {
|
|
423
|
-
|
|
424
|
-
if (currentTask === peek(taskQueue)) {
|
|
425
|
-
pop(taskQueue);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
advanceTimers(currentTime);
|
|
430
|
-
} else {
|
|
431
|
-
pop(taskQueue);
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
currentTask = peek(taskQueue);
|
|
435
|
-
} // Return whether there's additional work
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
if (currentTask !== null) {
|
|
439
|
-
return true;
|
|
440
|
-
} else {
|
|
441
|
-
var firstTimer = peek(timerQueue);
|
|
442
|
-
|
|
443
|
-
if (firstTimer !== null) {
|
|
444
|
-
requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
return false;
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
function unstable_runWithPriority(priorityLevel, eventHandler) {
|
|
452
|
-
switch (priorityLevel) {
|
|
453
|
-
case ImmediatePriority:
|
|
454
|
-
case UserBlockingPriority:
|
|
455
|
-
case NormalPriority:
|
|
456
|
-
case LowPriority:
|
|
457
|
-
case IdlePriority:
|
|
458
|
-
break;
|
|
459
|
-
|
|
460
|
-
default:
|
|
461
|
-
priorityLevel = NormalPriority;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
var previousPriorityLevel = currentPriorityLevel;
|
|
465
|
-
currentPriorityLevel = priorityLevel;
|
|
466
|
-
|
|
467
|
-
try {
|
|
468
|
-
return eventHandler();
|
|
469
|
-
} finally {
|
|
470
|
-
currentPriorityLevel = previousPriorityLevel;
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
function unstable_next(eventHandler) {
|
|
475
|
-
var priorityLevel;
|
|
476
|
-
|
|
477
|
-
switch (currentPriorityLevel) {
|
|
478
|
-
case ImmediatePriority:
|
|
479
|
-
case UserBlockingPriority:
|
|
480
|
-
case NormalPriority:
|
|
481
|
-
// Shift down to normal priority
|
|
482
|
-
priorityLevel = NormalPriority;
|
|
483
|
-
break;
|
|
484
|
-
|
|
485
|
-
default:
|
|
486
|
-
// Anything lower than normal priority should remain at the current level.
|
|
487
|
-
priorityLevel = currentPriorityLevel;
|
|
488
|
-
break;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
var previousPriorityLevel = currentPriorityLevel;
|
|
492
|
-
currentPriorityLevel = priorityLevel;
|
|
493
|
-
|
|
494
|
-
try {
|
|
495
|
-
return eventHandler();
|
|
496
|
-
} finally {
|
|
497
|
-
currentPriorityLevel = previousPriorityLevel;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
function unstable_wrapCallback(callback) {
|
|
502
|
-
var parentPriorityLevel = currentPriorityLevel;
|
|
503
|
-
return function () {
|
|
504
|
-
// This is a fork of runWithPriority, inlined for performance.
|
|
505
|
-
var previousPriorityLevel = currentPriorityLevel;
|
|
506
|
-
currentPriorityLevel = parentPriorityLevel;
|
|
507
|
-
|
|
508
|
-
try {
|
|
509
|
-
return callback.apply(this, arguments);
|
|
510
|
-
} finally {
|
|
511
|
-
currentPriorityLevel = previousPriorityLevel;
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
function unstable_scheduleCallback(priorityLevel, callback, options) {
|
|
517
|
-
var currentTime = exports.unstable_now();
|
|
518
|
-
var startTime;
|
|
519
|
-
|
|
520
|
-
if (typeof options === 'object' && options !== null) {
|
|
521
|
-
var delay = options.delay;
|
|
522
|
-
|
|
523
|
-
if (typeof delay === 'number' && delay > 0) {
|
|
524
|
-
startTime = currentTime + delay;
|
|
525
|
-
} else {
|
|
526
|
-
startTime = currentTime;
|
|
527
|
-
}
|
|
528
|
-
} else {
|
|
529
|
-
startTime = currentTime;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
var timeout;
|
|
533
|
-
|
|
534
|
-
switch (priorityLevel) {
|
|
535
|
-
case ImmediatePriority:
|
|
536
|
-
timeout = IMMEDIATE_PRIORITY_TIMEOUT;
|
|
537
|
-
break;
|
|
538
|
-
|
|
539
|
-
case UserBlockingPriority:
|
|
540
|
-
timeout = USER_BLOCKING_PRIORITY_TIMEOUT;
|
|
541
|
-
break;
|
|
542
|
-
|
|
543
|
-
case IdlePriority:
|
|
544
|
-
timeout = IDLE_PRIORITY_TIMEOUT;
|
|
545
|
-
break;
|
|
546
|
-
|
|
547
|
-
case LowPriority:
|
|
548
|
-
timeout = LOW_PRIORITY_TIMEOUT;
|
|
549
|
-
break;
|
|
550
|
-
|
|
551
|
-
case NormalPriority:
|
|
552
|
-
default:
|
|
553
|
-
timeout = NORMAL_PRIORITY_TIMEOUT;
|
|
554
|
-
break;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
var expirationTime = startTime + timeout;
|
|
558
|
-
var newTask = {
|
|
559
|
-
id: taskIdCounter++,
|
|
560
|
-
callback: callback,
|
|
561
|
-
priorityLevel: priorityLevel,
|
|
562
|
-
startTime: startTime,
|
|
563
|
-
expirationTime: expirationTime,
|
|
564
|
-
sortIndex: -1
|
|
565
|
-
};
|
|
566
|
-
|
|
567
|
-
if (startTime > currentTime) {
|
|
568
|
-
// This is a delayed task.
|
|
569
|
-
newTask.sortIndex = startTime;
|
|
570
|
-
push(timerQueue, newTask);
|
|
571
|
-
|
|
572
|
-
if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
|
|
573
|
-
// All tasks are delayed, and this is the task with the earliest delay.
|
|
574
|
-
if (isHostTimeoutScheduled) {
|
|
575
|
-
// Cancel an existing timeout.
|
|
576
|
-
cancelHostTimeout();
|
|
577
|
-
} else {
|
|
578
|
-
isHostTimeoutScheduled = true;
|
|
579
|
-
} // Schedule a timeout.
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
requestHostTimeout(handleTimeout, startTime - currentTime);
|
|
583
|
-
}
|
|
584
|
-
} else {
|
|
585
|
-
newTask.sortIndex = expirationTime;
|
|
586
|
-
push(taskQueue, newTask);
|
|
587
|
-
// wait until the next time we yield.
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
if (!isHostCallbackScheduled && !isPerformingWork) {
|
|
591
|
-
isHostCallbackScheduled = true;
|
|
592
|
-
requestHostCallback(flushWork);
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
return newTask;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
function unstable_pauseExecution() {
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
function unstable_continueExecution() {
|
|
603
|
-
|
|
604
|
-
if (!isHostCallbackScheduled && !isPerformingWork) {
|
|
605
|
-
isHostCallbackScheduled = true;
|
|
606
|
-
requestHostCallback(flushWork);
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
function unstable_getFirstCallbackNode() {
|
|
611
|
-
return peek(taskQueue);
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
function unstable_cancelCallback(task) {
|
|
615
|
-
// remove from the queue because you can't remove arbitrary nodes from an
|
|
616
|
-
// array based heap, only the first one.)
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
task.callback = null;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
function unstable_getCurrentPriorityLevel() {
|
|
623
|
-
return currentPriorityLevel;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
var unstable_requestPaint = requestPaint;
|
|
627
|
-
var unstable_Profiling = null;
|
|
628
|
-
|
|
629
|
-
exports.unstable_IdlePriority = IdlePriority;
|
|
630
|
-
exports.unstable_ImmediatePriority = ImmediatePriority;
|
|
631
|
-
exports.unstable_LowPriority = LowPriority;
|
|
632
|
-
exports.unstable_NormalPriority = NormalPriority;
|
|
633
|
-
exports.unstable_Profiling = unstable_Profiling;
|
|
634
|
-
exports.unstable_UserBlockingPriority = UserBlockingPriority;
|
|
635
|
-
exports.unstable_cancelCallback = unstable_cancelCallback;
|
|
636
|
-
exports.unstable_continueExecution = unstable_continueExecution;
|
|
637
|
-
exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
|
|
638
|
-
exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
|
|
639
|
-
exports.unstable_next = unstable_next;
|
|
640
|
-
exports.unstable_pauseExecution = unstable_pauseExecution;
|
|
641
|
-
exports.unstable_requestPaint = unstable_requestPaint;
|
|
642
|
-
exports.unstable_runWithPriority = unstable_runWithPriority;
|
|
643
|
-
exports.unstable_scheduleCallback = unstable_scheduleCallback;
|
|
644
|
-
exports.unstable_wrapCallback = unstable_wrapCallback;
|
|
645
|
-
})();
|
|
646
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/** @license React v0.20.2
|
|
2
|
-
* scheduler.production.min.js
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
'use strict';var f,g,h,k;if("object"===typeof performance&&"function"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}
|
|
10
|
-
if("undefined"===typeof window||"function"!==typeof MessageChannel){var t=null,u=null,w=function(){if(null!==t)try{var a=exports.unstable_now();t(!0,a);t=null}catch(b){throw setTimeout(w,0),b;}};f=function(a){null!==t?setTimeout(f,0,a):(t=a,setTimeout(w,0))};g=function(a,b){u=setTimeout(a,b)};h=function(){clearTimeout(u)};exports.unstable_shouldYield=function(){return!1};k=exports.unstable_forceFrameRate=function(){}}else{var x=window.setTimeout,y=window.clearTimeout;if("undefined"!==typeof console){var z=
|
|
11
|
-
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");"function"!==typeof z&&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 A=!1,B=null,C=-1,D=5,E=0;exports.unstable_shouldYield=function(){return exports.unstable_now()>=
|
|
12
|
-
E};k=function(){};exports.unstable_forceFrameRate=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"):D=0<a?Math.floor(1E3/a):5};var F=new MessageChannel,G=F.port2;F.port1.onmessage=function(){if(null!==B){var a=exports.unstable_now();E=a+D;try{B(!0,a)?G.postMessage(null):(A=!1,B=null)}catch(b){throw G.postMessage(null),b;}}else A=!1};f=function(a){B=a;A||(A=!0,G.postMessage(null))};g=function(a,b){C=
|
|
13
|
-
x(function(){a(exports.unstable_now())},b)};h=function(){y(C);C=-1}}function H(a,b){var c=a.length;a.push(b);a:for(;;){var d=c-1>>>1,e=a[d];if(void 0!==e&&0<I(e,b))a[d]=b,a[c]=e,c=d;else break a}}function J(a){a=a[0];return void 0===a?null:a}
|
|
14
|
-
function K(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 m=2*(d+1)-1,n=a[m],v=m+1,r=a[v];if(void 0!==n&&0>I(n,c))void 0!==r&&0>I(r,n)?(a[d]=r,a[v]=c,d=v):(a[d]=n,a[m]=c,d=m);else if(void 0!==r&&0>I(r,c))a[d]=r,a[v]=c,d=v;else break a}}return b}return null}function I(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var L=[],M=[],N=1,O=null,P=3,Q=!1,R=!1,S=!1;
|
|
15
|
-
function T(a){for(var b=J(M);null!==b;){if(null===b.callback)K(M);else if(b.startTime<=a)K(M),b.sortIndex=b.expirationTime,H(L,b);else break;b=J(M)}}function U(a){S=!1;T(a);if(!R)if(null!==J(L))R=!0,f(V);else{var b=J(M);null!==b&&g(U,b.startTime-a)}}
|
|
16
|
-
function V(a,b){R=!1;S&&(S=!1,h());Q=!0;var c=P;try{T(b);for(O=J(L);null!==O&&(!(O.expirationTime>b)||a&&!exports.unstable_shouldYield());){var d=O.callback;if("function"===typeof d){O.callback=null;P=O.priorityLevel;var e=d(O.expirationTime<=b);b=exports.unstable_now();"function"===typeof e?O.callback=e:O===J(L)&&K(L);T(b)}else K(L);O=J(L)}if(null!==O)var m=!0;else{var n=J(M);null!==n&&g(U,n.startTime-b);m=!1}return m}finally{O=null,P=c,Q=!1}}var W=k;exports.unstable_IdlePriority=5;
|
|
17
|
-
exports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(a){a.callback=null};exports.unstable_continueExecution=function(){R||Q||(R=!0,f(V))};exports.unstable_getCurrentPriorityLevel=function(){return P};exports.unstable_getFirstCallbackNode=function(){return J(L)};
|
|
18
|
-
exports.unstable_next=function(a){switch(P){case 1:case 2:case 3:var b=3;break;default:b=P}var c=P;P=b;try{return a()}finally{P=c}};exports.unstable_pauseExecution=function(){};exports.unstable_requestPaint=W;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=P;P=a;try{return b()}finally{P=c}};
|
|
19
|
-
exports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:N++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,H(M,a),null===J(L)&&a===J(M)&&(S?h():S=!0,g(U,c-d))):(a.sortIndex=e,H(L,a),R||Q||(R=!0,f(V)));return a};
|
|
20
|
-
exports.unstable_wrapCallback=function(a){var b=P;return function(){var c=P;P=b;try{return a.apply(this,arguments)}finally{P=c}}};
|