minimal-piral 0.15.13 → 1.0.0-beta.5628

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.
@@ -3563,13 +3563,13 @@ function installPiralDebug(options) {
3563
3563
  debug: debugApiVersion,
3564
3564
  instance: {
3565
3565
  name: "minimal-piral",
3566
- version: "0.15.13",
3566
+ version: "1.0.0-beta.5628",
3567
3567
  dependencies: "tslib,react,react-dom,react-router,react-router-dom"
3568
3568
  },
3569
3569
  build: {
3570
- date: "2023-05-31T09:46:51.154Z",
3571
- cli: "0.15.13",
3572
- compat: "0.15"
3570
+ date: "2023-06-11T00:10:38.690Z",
3571
+ cli: "1.0.0-beta.5628",
3572
+ compat: "1"
3573
3573
  }
3574
3574
  };
3575
3575
  var details = {
@@ -6938,7 +6938,7 @@ if (
6938
6938
  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
6939
6939
  }
6940
6940
  var React = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
6941
- var Scheduler = __webpack_require__(/*! scheduler */ "../../../node_modules/react-dom/node_modules/scheduler/index.js");
6941
+ var Scheduler = __webpack_require__(/*! scheduler */ "../../../node_modules/scheduler/index.js");
6942
6942
 
6943
6943
  var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
6944
6944
 
@@ -36856,16 +36856,15 @@ if (false) {} else {
36856
36856
 
36857
36857
  /***/ }),
36858
36858
 
36859
- /***/ "../../../node_modules/react-dom/node_modules/scheduler/cjs/scheduler.development.js":
36860
- /*!*******************************************************************************************!*\
36861
- !*** ../../../node_modules/react-dom/node_modules/scheduler/cjs/scheduler.development.js ***!
36862
- \*******************************************************************************************/
36859
+ /***/ "../../../node_modules/react-is/cjs/react-is.development.js":
36860
+ /*!******************************************************************!*\
36861
+ !*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
36862
+ \******************************************************************/
36863
36863
  /***/ ((__unused_webpack_module, exports) => {
36864
36864
 
36865
36865
  "use strict";
36866
- /**
36867
- * @license React
36868
- * scheduler.development.js
36866
+ /** @license React v16.13.1
36867
+ * react-is.development.js
36869
36868
  *
36870
36869
  * Copyright (c) Facebook, Inc. and its affiliates.
36871
36870
  *
@@ -36875,914 +36874,740 @@ if (false) {} else {
36875
36874
 
36876
36875
 
36877
36876
 
36877
+
36878
+
36878
36879
  if (true) {
36879
36880
  (function() {
36881
+ 'use strict';
36880
36882
 
36881
- 'use strict';
36883
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
36884
+ // nor polyfill, then a plain number is used for performance.
36885
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
36886
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
36887
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
36888
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
36889
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
36890
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
36891
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
36892
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
36893
+ // (unstable) APIs that have been removed. Can we remove the symbols?
36882
36894
 
36883
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
36884
- if (
36885
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
36886
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
36887
- 'function'
36888
- ) {
36889
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
36890
- }
36891
- var enableSchedulerDebugging = false;
36892
- var enableProfiling = false;
36893
- var frameYieldMs = 5;
36895
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
36896
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
36897
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
36898
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
36899
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
36900
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
36901
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
36902
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
36903
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
36904
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
36905
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
36894
36906
 
36895
- function push(heap, node) {
36896
- var index = heap.length;
36897
- heap.push(node);
36898
- siftUp(heap, node, index);
36899
- }
36900
- function peek(heap) {
36901
- return heap.length === 0 ? null : heap[0];
36907
+ function isValidElementType(type) {
36908
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
36909
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
36902
36910
  }
36903
- function pop(heap) {
36904
- if (heap.length === 0) {
36905
- return null;
36906
- }
36907
36911
 
36908
- var first = heap[0];
36909
- var last = heap.pop();
36912
+ function typeOf(object) {
36913
+ if (typeof object === 'object' && object !== null) {
36914
+ var $$typeof = object.$$typeof;
36910
36915
 
36911
- if (last !== first) {
36912
- heap[0] = last;
36913
- siftDown(heap, last, 0);
36914
- }
36916
+ switch ($$typeof) {
36917
+ case REACT_ELEMENT_TYPE:
36918
+ var type = object.type;
36915
36919
 
36916
- return first;
36917
- }
36920
+ switch (type) {
36921
+ case REACT_ASYNC_MODE_TYPE:
36922
+ case REACT_CONCURRENT_MODE_TYPE:
36923
+ case REACT_FRAGMENT_TYPE:
36924
+ case REACT_PROFILER_TYPE:
36925
+ case REACT_STRICT_MODE_TYPE:
36926
+ case REACT_SUSPENSE_TYPE:
36927
+ return type;
36918
36928
 
36919
- function siftUp(heap, node, i) {
36920
- var index = i;
36929
+ default:
36930
+ var $$typeofType = type && type.$$typeof;
36921
36931
 
36922
- while (index > 0) {
36923
- var parentIndex = index - 1 >>> 1;
36924
- var parent = heap[parentIndex];
36932
+ switch ($$typeofType) {
36933
+ case REACT_CONTEXT_TYPE:
36934
+ case REACT_FORWARD_REF_TYPE:
36935
+ case REACT_LAZY_TYPE:
36936
+ case REACT_MEMO_TYPE:
36937
+ case REACT_PROVIDER_TYPE:
36938
+ return $$typeofType;
36925
36939
 
36926
- if (compare(parent, node) > 0) {
36927
- // The parent is larger. Swap positions.
36928
- heap[parentIndex] = node;
36929
- heap[index] = parent;
36930
- index = parentIndex;
36931
- } else {
36932
- // The parent is smaller. Exit.
36933
- return;
36940
+ default:
36941
+ return $$typeof;
36942
+ }
36943
+
36944
+ }
36945
+
36946
+ case REACT_PORTAL_TYPE:
36947
+ return $$typeof;
36934
36948
  }
36935
36949
  }
36936
- }
36937
36950
 
36938
- function siftDown(heap, node, i) {
36939
- var index = i;
36940
- var length = heap.length;
36941
- var halfLength = length >>> 1;
36951
+ return undefined;
36952
+ } // AsyncMode is deprecated along with isAsyncMode
36942
36953
 
36943
- while (index < halfLength) {
36944
- var leftIndex = (index + 1) * 2 - 1;
36945
- var left = heap[leftIndex];
36946
- var rightIndex = leftIndex + 1;
36947
- var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.
36954
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
36955
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
36956
+ var ContextConsumer = REACT_CONTEXT_TYPE;
36957
+ var ContextProvider = REACT_PROVIDER_TYPE;
36958
+ var Element = REACT_ELEMENT_TYPE;
36959
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
36960
+ var Fragment = REACT_FRAGMENT_TYPE;
36961
+ var Lazy = REACT_LAZY_TYPE;
36962
+ var Memo = REACT_MEMO_TYPE;
36963
+ var Portal = REACT_PORTAL_TYPE;
36964
+ var Profiler = REACT_PROFILER_TYPE;
36965
+ var StrictMode = REACT_STRICT_MODE_TYPE;
36966
+ var Suspense = REACT_SUSPENSE_TYPE;
36967
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
36948
36968
 
36949
- if (compare(left, node) < 0) {
36950
- if (rightIndex < length && compare(right, left) < 0) {
36951
- heap[index] = right;
36952
- heap[rightIndex] = node;
36953
- index = rightIndex;
36954
- } else {
36955
- heap[index] = left;
36956
- heap[leftIndex] = node;
36957
- index = leftIndex;
36958
- }
36959
- } else if (rightIndex < length && compare(right, node) < 0) {
36960
- heap[index] = right;
36961
- heap[rightIndex] = node;
36962
- index = rightIndex;
36963
- } else {
36964
- // Neither child is smaller. Exit.
36965
- return;
36969
+ function isAsyncMode(object) {
36970
+ {
36971
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
36972
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
36973
+
36974
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
36966
36975
  }
36967
36976
  }
36977
+
36978
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
36979
+ }
36980
+ function isConcurrentMode(object) {
36981
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
36982
+ }
36983
+ function isContextConsumer(object) {
36984
+ return typeOf(object) === REACT_CONTEXT_TYPE;
36985
+ }
36986
+ function isContextProvider(object) {
36987
+ return typeOf(object) === REACT_PROVIDER_TYPE;
36988
+ }
36989
+ function isElement(object) {
36990
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
36991
+ }
36992
+ function isForwardRef(object) {
36993
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
36994
+ }
36995
+ function isFragment(object) {
36996
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
36997
+ }
36998
+ function isLazy(object) {
36999
+ return typeOf(object) === REACT_LAZY_TYPE;
37000
+ }
37001
+ function isMemo(object) {
37002
+ return typeOf(object) === REACT_MEMO_TYPE;
37003
+ }
37004
+ function isPortal(object) {
37005
+ return typeOf(object) === REACT_PORTAL_TYPE;
37006
+ }
37007
+ function isProfiler(object) {
37008
+ return typeOf(object) === REACT_PROFILER_TYPE;
37009
+ }
37010
+ function isStrictMode(object) {
37011
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
37012
+ }
37013
+ function isSuspense(object) {
37014
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
36968
37015
  }
36969
37016
 
36970
- function compare(a, b) {
36971
- // Compare sort index first, then task id.
36972
- var diff = a.sortIndex - b.sortIndex;
36973
- return diff !== 0 ? diff : a.id - b.id;
37017
+ exports.AsyncMode = AsyncMode;
37018
+ exports.ConcurrentMode = ConcurrentMode;
37019
+ exports.ContextConsumer = ContextConsumer;
37020
+ exports.ContextProvider = ContextProvider;
37021
+ exports.Element = Element;
37022
+ exports.ForwardRef = ForwardRef;
37023
+ exports.Fragment = Fragment;
37024
+ exports.Lazy = Lazy;
37025
+ exports.Memo = Memo;
37026
+ exports.Portal = Portal;
37027
+ exports.Profiler = Profiler;
37028
+ exports.StrictMode = StrictMode;
37029
+ exports.Suspense = Suspense;
37030
+ exports.isAsyncMode = isAsyncMode;
37031
+ exports.isConcurrentMode = isConcurrentMode;
37032
+ exports.isContextConsumer = isContextConsumer;
37033
+ exports.isContextProvider = isContextProvider;
37034
+ exports.isElement = isElement;
37035
+ exports.isForwardRef = isForwardRef;
37036
+ exports.isFragment = isFragment;
37037
+ exports.isLazy = isLazy;
37038
+ exports.isMemo = isMemo;
37039
+ exports.isPortal = isPortal;
37040
+ exports.isProfiler = isProfiler;
37041
+ exports.isStrictMode = isStrictMode;
37042
+ exports.isSuspense = isSuspense;
37043
+ exports.isValidElementType = isValidElementType;
37044
+ exports.typeOf = typeOf;
37045
+ })();
36974
37046
  }
36975
37047
 
36976
- // TODO: Use symbols?
36977
- var ImmediatePriority = 1;
36978
- var UserBlockingPriority = 2;
36979
- var NormalPriority = 3;
36980
- var LowPriority = 4;
36981
- var IdlePriority = 5;
36982
37048
 
36983
- function markTaskErrored(task, ms) {
36984
- }
37049
+ /***/ }),
36985
37050
 
36986
- /* eslint-disable no-var */
37051
+ /***/ "../../../node_modules/react-is/index.js":
37052
+ /*!***********************************************!*\
37053
+ !*** ../../../node_modules/react-is/index.js ***!
37054
+ \***********************************************/
37055
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
36987
37056
 
36988
- var hasPerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';
37057
+ "use strict";
36989
37058
 
36990
- if (hasPerformanceNow) {
36991
- var localPerformance = performance;
36992
37059
 
36993
- exports.unstable_now = function () {
36994
- return localPerformance.now();
36995
- };
36996
- } else {
36997
- var localDate = Date;
36998
- var initialTime = localDate.now();
37060
+ if (false) {} else {
37061
+ module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
37062
+ }
36999
37063
 
37000
- exports.unstable_now = function () {
37001
- return localDate.now() - initialTime;
37002
- };
37003
- } // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
37004
- // Math.pow(2, 30) - 1
37005
- // 0b111111111111111111111111111111
37006
37064
 
37065
+ /***/ }),
37007
37066
 
37008
- var maxSigned31BitInt = 1073741823; // Times out immediately
37067
+ /***/ "../../../node_modules/react-router-dom/esm/react-router-dom.js":
37068
+ /*!**********************************************************************!*\
37069
+ !*** ../../../node_modules/react-router-dom/esm/react-router-dom.js ***!
37070
+ \**********************************************************************/
37071
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
37009
37072
 
37010
- var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out
37073
+ "use strict";
37074
+ __webpack_require__.r(__webpack_exports__);
37075
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
37076
+ /* harmony export */ "BrowserRouter": () => (/* binding */ BrowserRouter),
37077
+ /* harmony export */ "HashRouter": () => (/* binding */ HashRouter),
37078
+ /* harmony export */ "Link": () => (/* binding */ Link),
37079
+ /* harmony export */ "MemoryRouter": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.MemoryRouter),
37080
+ /* harmony export */ "NavLink": () => (/* binding */ NavLink),
37081
+ /* harmony export */ "Prompt": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.Prompt),
37082
+ /* harmony export */ "Redirect": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.Redirect),
37083
+ /* harmony export */ "Route": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.Route),
37084
+ /* harmony export */ "Router": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.Router),
37085
+ /* harmony export */ "StaticRouter": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.StaticRouter),
37086
+ /* harmony export */ "Switch": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.Switch),
37087
+ /* harmony export */ "generatePath": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.generatePath),
37088
+ /* harmony export */ "matchPath": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.matchPath),
37089
+ /* harmony export */ "useHistory": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.useHistory),
37090
+ /* harmony export */ "useLocation": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.useLocation),
37091
+ /* harmony export */ "useParams": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.useParams),
37092
+ /* harmony export */ "useRouteMatch": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.useRouteMatch),
37093
+ /* harmony export */ "withRouter": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.withRouter)
37094
+ /* harmony export */ });
37095
+ /* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
37096
+ /* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
37097
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
37098
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
37099
+ /* harmony import */ var history__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! history */ "../../../node_modules/history/esm/history.js");
37100
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
37101
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
37102
+ /* harmony import */ var tiny_warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! tiny-warning */ "../../../node_modules/tiny-warning/dist/tiny-warning.esm.js");
37103
+ /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../../../node_modules/@babel/runtime/helpers/esm/extends.js");
37104
+ /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
37105
+ /* harmony import */ var tiny_invariant__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! tiny-invariant */ "../../../node_modules/tiny-invariant/dist/tiny-invariant.esm.js");
37011
37106
 
37012
- var USER_BLOCKING_PRIORITY_TIMEOUT = 250;
37013
- var NORMAL_PRIORITY_TIMEOUT = 5000;
37014
- var LOW_PRIORITY_TIMEOUT = 10000; // Never times out
37015
37107
 
37016
- var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap
37017
37108
 
37018
- var taskQueue = [];
37019
- var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.
37020
37109
 
37021
- var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
37022
- var currentTask = null;
37023
- var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrance.
37024
37110
 
37025
- var isPerformingWork = false;
37026
- var isHostCallbackScheduled = false;
37027
- var isHostTimeoutScheduled = false; // Capture local references to native APIs, in case a polyfill overrides them.
37028
37111
 
37029
- var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : null;
37030
- var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : null;
37031
- var localSetImmediate = typeof setImmediate !== 'undefined' ? setImmediate : null; // IE and Node.js + jsdom
37032
37112
 
37033
- var isInputPending = typeof navigator !== 'undefined' && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null;
37034
37113
 
37035
- function advanceTimers(currentTime) {
37036
- // Check for tasks that are no longer delayed and add them to the queue.
37037
- var timer = peek(timerQueue);
37038
37114
 
37039
- while (timer !== null) {
37040
- if (timer.callback === null) {
37041
- // Timer was cancelled.
37042
- pop(timerQueue);
37043
- } else if (timer.startTime <= currentTime) {
37044
- // Timer fired. Transfer to the task queue.
37045
- pop(timerQueue);
37046
- timer.sortIndex = timer.expirationTime;
37047
- push(taskQueue, timer);
37048
- } else {
37049
- // Remaining timers are pending.
37050
- return;
37051
- }
37052
37115
 
37053
- timer = peek(timerQueue);
37054
- }
37055
- }
37056
37116
 
37057
- function handleTimeout(currentTime) {
37058
- isHostTimeoutScheduled = false;
37059
- advanceTimers(currentTime);
37117
+ /**
37118
+ * The public API for a <Router> that uses HTML5 history.
37119
+ */
37060
37120
 
37061
- if (!isHostCallbackScheduled) {
37062
- if (peek(taskQueue) !== null) {
37063
- isHostCallbackScheduled = true;
37064
- requestHostCallback(flushWork);
37065
- } else {
37066
- var firstTimer = peek(timerQueue);
37121
+ var BrowserRouter = /*#__PURE__*/function (_React$Component) {
37122
+ (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(BrowserRouter, _React$Component);
37067
37123
 
37068
- if (firstTimer !== null) {
37069
- requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
37070
- }
37124
+ function BrowserRouter() {
37125
+ var _this;
37126
+
37127
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
37128
+ args[_key] = arguments[_key];
37071
37129
  }
37130
+
37131
+ _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
37132
+ _this.history = (0,history__WEBPACK_IMPORTED_MODULE_5__.createBrowserHistory)(_this.props);
37133
+ return _this;
37072
37134
  }
37073
- }
37074
37135
 
37075
- function flushWork(hasTimeRemaining, initialTime) {
37136
+ var _proto = BrowserRouter.prototype;
37076
37137
 
37138
+ _proto.render = function render() {
37139
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(react_router__WEBPACK_IMPORTED_MODULE_0__.Router, {
37140
+ history: this.history,
37141
+ children: this.props.children
37142
+ });
37143
+ };
37077
37144
 
37078
- isHostCallbackScheduled = false;
37145
+ return BrowserRouter;
37146
+ }((react__WEBPACK_IMPORTED_MODULE_2___default().Component));
37079
37147
 
37080
- if (isHostTimeoutScheduled) {
37081
- // We scheduled a timeout but it's no longer needed. Cancel it.
37082
- isHostTimeoutScheduled = false;
37083
- cancelHostTimeout();
37084
- }
37148
+ if (true) {
37149
+ BrowserRouter.propTypes = {
37150
+ basename: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
37151
+ children: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node),
37152
+ forceRefresh: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
37153
+ getUserConfirmation: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
37154
+ keyLength: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
37155
+ };
37085
37156
 
37086
- isPerformingWork = true;
37087
- var previousPriorityLevel = currentPriorityLevel;
37157
+ BrowserRouter.prototype.componentDidMount = function () {
37158
+ true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(!this.props.history, "<BrowserRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { BrowserRouter as Router }`.") : 0;
37159
+ };
37160
+ }
37088
37161
 
37089
- try {
37090
- if (enableProfiling) {
37091
- try {
37092
- return workLoop(hasTimeRemaining, initialTime);
37093
- } catch (error) {
37094
- if (currentTask !== null) {
37095
- var currentTime = exports.unstable_now();
37096
- markTaskErrored(currentTask, currentTime);
37097
- currentTask.isQueued = false;
37098
- }
37162
+ /**
37163
+ * The public API for a <Router> that uses window.location.hash.
37164
+ */
37099
37165
 
37100
- throw error;
37101
- }
37102
- } else {
37103
- // No catch in prod code path.
37104
- return workLoop(hasTimeRemaining, initialTime);
37105
- }
37106
- } finally {
37107
- currentTask = null;
37108
- currentPriorityLevel = previousPriorityLevel;
37109
- isPerformingWork = false;
37110
- }
37111
- }
37166
+ var HashRouter = /*#__PURE__*/function (_React$Component) {
37167
+ (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(HashRouter, _React$Component);
37112
37168
 
37113
- function workLoop(hasTimeRemaining, initialTime) {
37114
- var currentTime = initialTime;
37115
- advanceTimers(currentTime);
37116
- currentTask = peek(taskQueue);
37169
+ function HashRouter() {
37170
+ var _this;
37117
37171
 
37118
- while (currentTask !== null && !(enableSchedulerDebugging )) {
37119
- if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {
37120
- // This currentTask hasn't expired, and we've reached the deadline.
37121
- break;
37172
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
37173
+ args[_key] = arguments[_key];
37122
37174
  }
37123
37175
 
37124
- var callback = currentTask.callback;
37176
+ _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
37177
+ _this.history = (0,history__WEBPACK_IMPORTED_MODULE_5__.createHashHistory)(_this.props);
37178
+ return _this;
37179
+ }
37125
37180
 
37126
- if (typeof callback === 'function') {
37127
- currentTask.callback = null;
37128
- currentPriorityLevel = currentTask.priorityLevel;
37129
- var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
37181
+ var _proto = HashRouter.prototype;
37130
37182
 
37131
- var continuationCallback = callback(didUserCallbackTimeout);
37132
- currentTime = exports.unstable_now();
37183
+ _proto.render = function render() {
37184
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(react_router__WEBPACK_IMPORTED_MODULE_0__.Router, {
37185
+ history: this.history,
37186
+ children: this.props.children
37187
+ });
37188
+ };
37133
37189
 
37134
- if (typeof continuationCallback === 'function') {
37135
- currentTask.callback = continuationCallback;
37136
- } else {
37190
+ return HashRouter;
37191
+ }((react__WEBPACK_IMPORTED_MODULE_2___default().Component));
37137
37192
 
37138
- if (currentTask === peek(taskQueue)) {
37139
- pop(taskQueue);
37140
- }
37141
- }
37193
+ if (true) {
37194
+ HashRouter.propTypes = {
37195
+ basename: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
37196
+ children: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node),
37197
+ getUserConfirmation: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
37198
+ hashType: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["hashbang", "noslash", "slash"])
37199
+ };
37142
37200
 
37143
- advanceTimers(currentTime);
37144
- } else {
37145
- pop(taskQueue);
37146
- }
37201
+ HashRouter.prototype.componentDidMount = function () {
37202
+ true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(!this.props.history, "<HashRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { HashRouter as Router }`.") : 0;
37203
+ };
37204
+ }
37147
37205
 
37148
- currentTask = peek(taskQueue);
37149
- } // Return whether there's additional work
37206
+ var resolveToLocation = function resolveToLocation(to, currentLocation) {
37207
+ return typeof to === "function" ? to(currentLocation) : to;
37208
+ };
37209
+ var normalizeToLocation = function normalizeToLocation(to, currentLocation) {
37210
+ return typeof to === "string" ? (0,history__WEBPACK_IMPORTED_MODULE_5__.createLocation)(to, null, null, currentLocation) : to;
37211
+ };
37150
37212
 
37213
+ var forwardRefShim = function forwardRefShim(C) {
37214
+ return C;
37215
+ };
37151
37216
 
37152
- if (currentTask !== null) {
37153
- return true;
37154
- } else {
37155
- var firstTimer = peek(timerQueue);
37217
+ var forwardRef = (react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef);
37156
37218
 
37157
- if (firstTimer !== null) {
37158
- requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
37159
- }
37219
+ if (typeof forwardRef === "undefined") {
37220
+ forwardRef = forwardRefShim;
37221
+ }
37160
37222
 
37161
- return false;
37162
- }
37223
+ function isModifiedEvent(event) {
37224
+ return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
37163
37225
  }
37164
37226
 
37165
- function unstable_runWithPriority(priorityLevel, eventHandler) {
37166
- switch (priorityLevel) {
37167
- case ImmediatePriority:
37168
- case UserBlockingPriority:
37169
- case NormalPriority:
37170
- case LowPriority:
37171
- case IdlePriority:
37172
- break;
37173
-
37174
- default:
37175
- priorityLevel = NormalPriority;
37176
- }
37227
+ var LinkAnchor = forwardRef(function (_ref, forwardedRef) {
37228
+ var innerRef = _ref.innerRef,
37229
+ navigate = _ref.navigate,
37230
+ _onClick = _ref.onClick,
37231
+ rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_4__["default"])(_ref, ["innerRef", "navigate", "onClick"]);
37177
37232
 
37178
- var previousPriorityLevel = currentPriorityLevel;
37179
- currentPriorityLevel = priorityLevel;
37233
+ var target = rest.target;
37180
37234
 
37181
- try {
37182
- return eventHandler();
37183
- } finally {
37184
- currentPriorityLevel = previousPriorityLevel;
37185
- }
37186
- }
37235
+ var props = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, rest, {
37236
+ onClick: function onClick(event) {
37237
+ try {
37238
+ if (_onClick) _onClick(event);
37239
+ } catch (ex) {
37240
+ event.preventDefault();
37241
+ throw ex;
37242
+ }
37187
37243
 
37188
- function unstable_next(eventHandler) {
37189
- var priorityLevel;
37244
+ if (!event.defaultPrevented && // onClick prevented default
37245
+ event.button === 0 && ( // ignore everything but left clicks
37246
+ !target || target === "_self") && // let browser handle "target=_blank" etc.
37247
+ !isModifiedEvent(event) // ignore clicks with modifier keys
37248
+ ) {
37249
+ event.preventDefault();
37250
+ navigate();
37251
+ }
37252
+ }
37253
+ }); // React 15 compat
37190
37254
 
37191
- switch (currentPriorityLevel) {
37192
- case ImmediatePriority:
37193
- case UserBlockingPriority:
37194
- case NormalPriority:
37195
- // Shift down to normal priority
37196
- priorityLevel = NormalPriority;
37197
- break;
37198
37255
 
37199
- default:
37200
- // Anything lower than normal priority should remain at the current level.
37201
- priorityLevel = currentPriorityLevel;
37202
- break;
37256
+ if (forwardRefShim !== forwardRef) {
37257
+ props.ref = forwardedRef || innerRef;
37258
+ } else {
37259
+ props.ref = innerRef;
37203
37260
  }
37261
+ /* eslint-disable-next-line jsx-a11y/anchor-has-content */
37204
37262
 
37205
- var previousPriorityLevel = currentPriorityLevel;
37206
- currentPriorityLevel = priorityLevel;
37207
37263
 
37208
- try {
37209
- return eventHandler();
37210
- } finally {
37211
- currentPriorityLevel = previousPriorityLevel;
37212
- }
37264
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("a", props);
37265
+ });
37266
+
37267
+ if (true) {
37268
+ LinkAnchor.displayName = "LinkAnchor";
37213
37269
  }
37270
+ /**
37271
+ * The public API for rendering a history-aware <a>.
37272
+ */
37214
37273
 
37215
- function unstable_wrapCallback(callback) {
37216
- var parentPriorityLevel = currentPriorityLevel;
37217
- return function () {
37218
- // This is a fork of runWithPriority, inlined for performance.
37219
- var previousPriorityLevel = currentPriorityLevel;
37220
- currentPriorityLevel = parentPriorityLevel;
37221
37274
 
37222
- try {
37223
- return callback.apply(this, arguments);
37224
- } finally {
37225
- currentPriorityLevel = previousPriorityLevel;
37226
- }
37227
- };
37228
- }
37275
+ var Link = forwardRef(function (_ref2, forwardedRef) {
37276
+ var _ref2$component = _ref2.component,
37277
+ component = _ref2$component === void 0 ? LinkAnchor : _ref2$component,
37278
+ replace = _ref2.replace,
37279
+ to = _ref2.to,
37280
+ innerRef = _ref2.innerRef,
37281
+ rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_4__["default"])(_ref2, ["component", "replace", "to", "innerRef"]);
37229
37282
 
37230
- function unstable_scheduleCallback(priorityLevel, callback, options) {
37231
- var currentTime = exports.unstable_now();
37232
- var startTime;
37283
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(react_router__WEBPACK_IMPORTED_MODULE_0__.__RouterContext.Consumer, null, function (context) {
37284
+ !context ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_8__["default"])(false, "You should not use <Link> outside a <Router>") : 0 : void 0;
37285
+ var history = context.history;
37286
+ var location = normalizeToLocation(resolveToLocation(to, context.location), context.location);
37287
+ var href = location ? history.createHref(location) : "";
37233
37288
 
37234
- if (typeof options === 'object' && options !== null) {
37235
- var delay = options.delay;
37289
+ var props = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, rest, {
37290
+ href: href,
37291
+ navigate: function navigate() {
37292
+ var location = resolveToLocation(to, context.location);
37293
+ var isDuplicateNavigation = (0,history__WEBPACK_IMPORTED_MODULE_5__.createPath)(context.location) === (0,history__WEBPACK_IMPORTED_MODULE_5__.createPath)(normalizeToLocation(location));
37294
+ var method = replace || isDuplicateNavigation ? history.replace : history.push;
37295
+ method(location);
37296
+ }
37297
+ }); // React 15 compat
37236
37298
 
37237
- if (typeof delay === 'number' && delay > 0) {
37238
- startTime = currentTime + delay;
37299
+
37300
+ if (forwardRefShim !== forwardRef) {
37301
+ props.ref = forwardedRef || innerRef;
37239
37302
  } else {
37240
- startTime = currentTime;
37303
+ props.innerRef = innerRef;
37241
37304
  }
37242
- } else {
37243
- startTime = currentTime;
37244
- }
37245
37305
 
37246
- var timeout;
37306
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(component, props);
37307
+ });
37308
+ });
37247
37309
 
37248
- switch (priorityLevel) {
37249
- case ImmediatePriority:
37250
- timeout = IMMEDIATE_PRIORITY_TIMEOUT;
37251
- break;
37310
+ if (true) {
37311
+ var toType = prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]);
37312
+ var refType = prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func), prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
37313
+ current: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().any)
37314
+ })]);
37315
+ Link.displayName = "Link";
37316
+ Link.propTypes = {
37317
+ innerRef: refType,
37318
+ onClick: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
37319
+ replace: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
37320
+ target: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
37321
+ to: toType.isRequired
37322
+ };
37323
+ }
37252
37324
 
37253
- case UserBlockingPriority:
37254
- timeout = USER_BLOCKING_PRIORITY_TIMEOUT;
37255
- break;
37325
+ var forwardRefShim$1 = function forwardRefShim(C) {
37326
+ return C;
37327
+ };
37256
37328
 
37257
- case IdlePriority:
37258
- timeout = IDLE_PRIORITY_TIMEOUT;
37259
- break;
37329
+ var forwardRef$1 = (react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef);
37260
37330
 
37261
- case LowPriority:
37262
- timeout = LOW_PRIORITY_TIMEOUT;
37263
- break;
37331
+ if (typeof forwardRef$1 === "undefined") {
37332
+ forwardRef$1 = forwardRefShim$1;
37333
+ }
37264
37334
 
37265
- case NormalPriority:
37266
- default:
37267
- timeout = NORMAL_PRIORITY_TIMEOUT;
37268
- break;
37335
+ function joinClassnames() {
37336
+ for (var _len = arguments.length, classnames = new Array(_len), _key = 0; _key < _len; _key++) {
37337
+ classnames[_key] = arguments[_key];
37269
37338
  }
37270
37339
 
37271
- var expirationTime = startTime + timeout;
37272
- var newTask = {
37273
- id: taskIdCounter++,
37274
- callback: callback,
37275
- priorityLevel: priorityLevel,
37276
- startTime: startTime,
37277
- expirationTime: expirationTime,
37278
- sortIndex: -1
37279
- };
37340
+ return classnames.filter(function (i) {
37341
+ return i;
37342
+ }).join(" ");
37343
+ }
37344
+ /**
37345
+ * A <Link> wrapper that knows if it's "active" or not.
37346
+ */
37280
37347
 
37281
- if (startTime > currentTime) {
37282
- // This is a delayed task.
37283
- newTask.sortIndex = startTime;
37284
- push(timerQueue, newTask);
37285
37348
 
37286
- if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
37287
- // All tasks are delayed, and this is the task with the earliest delay.
37288
- if (isHostTimeoutScheduled) {
37289
- // Cancel an existing timeout.
37290
- cancelHostTimeout();
37291
- } else {
37292
- isHostTimeoutScheduled = true;
37293
- } // Schedule a timeout.
37349
+ var NavLink = forwardRef$1(function (_ref, forwardedRef) {
37350
+ var _ref$ariaCurrent = _ref["aria-current"],
37351
+ ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent,
37352
+ _ref$activeClassName = _ref.activeClassName,
37353
+ activeClassName = _ref$activeClassName === void 0 ? "active" : _ref$activeClassName,
37354
+ activeStyle = _ref.activeStyle,
37355
+ classNameProp = _ref.className,
37356
+ exact = _ref.exact,
37357
+ isActiveProp = _ref.isActive,
37358
+ locationProp = _ref.location,
37359
+ sensitive = _ref.sensitive,
37360
+ strict = _ref.strict,
37361
+ styleProp = _ref.style,
37362
+ to = _ref.to,
37363
+ innerRef = _ref.innerRef,
37364
+ rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_4__["default"])(_ref, ["aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "sensitive", "strict", "style", "to", "innerRef"]);
37294
37365
 
37366
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(react_router__WEBPACK_IMPORTED_MODULE_0__.__RouterContext.Consumer, null, function (context) {
37367
+ !context ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_8__["default"])(false, "You should not use <NavLink> outside a <Router>") : 0 : void 0;
37368
+ var currentLocation = locationProp || context.location;
37369
+ var toLocation = normalizeToLocation(resolveToLocation(to, currentLocation), currentLocation);
37370
+ var path = toLocation.pathname; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
37295
37371
 
37296
- requestHostTimeout(handleTimeout, startTime - currentTime);
37372
+ var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
37373
+ var match = escapedPath ? (0,react_router__WEBPACK_IMPORTED_MODULE_0__.matchPath)(currentLocation.pathname, {
37374
+ path: escapedPath,
37375
+ exact: exact,
37376
+ sensitive: sensitive,
37377
+ strict: strict
37378
+ }) : null;
37379
+ var isActive = !!(isActiveProp ? isActiveProp(match, currentLocation) : match);
37380
+ var className = typeof classNameProp === "function" ? classNameProp(isActive) : classNameProp;
37381
+ var style = typeof styleProp === "function" ? styleProp(isActive) : styleProp;
37382
+
37383
+ if (isActive) {
37384
+ className = joinClassnames(className, activeClassName);
37385
+ style = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, style, activeStyle);
37297
37386
  }
37298
- } else {
37299
- newTask.sortIndex = expirationTime;
37300
- push(taskQueue, newTask);
37301
- // wait until the next time we yield.
37302
37387
 
37388
+ var props = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({
37389
+ "aria-current": isActive && ariaCurrent || null,
37390
+ className: className,
37391
+ style: style,
37392
+ to: toLocation
37393
+ }, rest); // React 15 compat
37303
37394
 
37304
- if (!isHostCallbackScheduled && !isPerformingWork) {
37305
- isHostCallbackScheduled = true;
37306
- requestHostCallback(flushWork);
37395
+
37396
+ if (forwardRefShim$1 !== forwardRef$1) {
37397
+ props.ref = forwardedRef || innerRef;
37398
+ } else {
37399
+ props.innerRef = innerRef;
37307
37400
  }
37308
- }
37309
37401
 
37310
- return newTask;
37311
- }
37402
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(Link, props);
37403
+ });
37404
+ });
37312
37405
 
37313
- function unstable_pauseExecution() {
37406
+ if (true) {
37407
+ NavLink.displayName = "NavLink";
37408
+ var ariaCurrentType = prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["page", "step", "location", "date", "time", "true", "false"]);
37409
+ NavLink.propTypes = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, Link.propTypes, {
37410
+ "aria-current": ariaCurrentType,
37411
+ activeClassName: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
37412
+ activeStyle: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
37413
+ className: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
37414
+ exact: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
37415
+ isActive: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
37416
+ location: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
37417
+ sensitive: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
37418
+ strict: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
37419
+ style: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)])
37420
+ });
37314
37421
  }
37315
37422
 
37316
- function unstable_continueExecution() {
37317
-
37318
- if (!isHostCallbackScheduled && !isPerformingWork) {
37319
- isHostCallbackScheduled = true;
37320
- requestHostCallback(flushWork);
37321
- }
37322
- }
37323
37423
 
37324
- function unstable_getFirstCallbackNode() {
37325
- return peek(taskQueue);
37326
- }
37424
+ //# sourceMappingURL=react-router-dom.js.map
37327
37425
 
37328
- function unstable_cancelCallback(task) {
37329
- // remove from the queue because you can't remove arbitrary nodes from an
37330
- // array based heap, only the first one.)
37331
37426
 
37427
+ /***/ }),
37332
37428
 
37333
- task.callback = null;
37334
- }
37429
+ /***/ "../../../node_modules/react-router/esm/react-router.js":
37430
+ /*!**************************************************************!*\
37431
+ !*** ../../../node_modules/react-router/esm/react-router.js ***!
37432
+ \**************************************************************/
37433
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
37335
37434
 
37336
- function unstable_getCurrentPriorityLevel() {
37337
- return currentPriorityLevel;
37338
- }
37435
+ "use strict";
37436
+ __webpack_require__.r(__webpack_exports__);
37437
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
37438
+ /* harmony export */ "MemoryRouter": () => (/* binding */ MemoryRouter),
37439
+ /* harmony export */ "Prompt": () => (/* binding */ Prompt),
37440
+ /* harmony export */ "Redirect": () => (/* binding */ Redirect),
37441
+ /* harmony export */ "Route": () => (/* binding */ Route),
37442
+ /* harmony export */ "Router": () => (/* binding */ Router),
37443
+ /* harmony export */ "StaticRouter": () => (/* binding */ StaticRouter),
37444
+ /* harmony export */ "Switch": () => (/* binding */ Switch),
37445
+ /* harmony export */ "__HistoryContext": () => (/* binding */ historyContext),
37446
+ /* harmony export */ "__RouterContext": () => (/* binding */ context),
37447
+ /* harmony export */ "generatePath": () => (/* binding */ generatePath),
37448
+ /* harmony export */ "matchPath": () => (/* binding */ matchPath),
37449
+ /* harmony export */ "useHistory": () => (/* binding */ useHistory),
37450
+ /* harmony export */ "useLocation": () => (/* binding */ useLocation),
37451
+ /* harmony export */ "useParams": () => (/* binding */ useParams),
37452
+ /* harmony export */ "useRouteMatch": () => (/* binding */ useRouteMatch),
37453
+ /* harmony export */ "withRouter": () => (/* binding */ withRouter)
37454
+ /* harmony export */ });
37455
+ /* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
37456
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
37457
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
37458
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
37459
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
37460
+ /* harmony import */ var history__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! history */ "../../../node_modules/history/esm/history.js");
37461
+ /* harmony import */ var tiny_warning__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tiny-warning */ "../../../node_modules/tiny-warning/dist/tiny-warning.esm.js");
37462
+ /* harmony import */ var mini_create_react_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mini-create-react-context */ "../../../node_modules/mini-create-react-context/dist/esm/index.js");
37463
+ /* harmony import */ var tiny_invariant__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! tiny-invariant */ "../../../node_modules/tiny-invariant/dist/tiny-invariant.esm.js");
37464
+ /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../../../node_modules/@babel/runtime/helpers/esm/extends.js");
37465
+ /* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! path-to-regexp */ "../../../node_modules/path-to-regexp/index.js");
37466
+ /* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(path_to_regexp__WEBPACK_IMPORTED_MODULE_4__);
37467
+ /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
37468
+ /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
37469
+ /* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! hoist-non-react-statics */ "../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
37470
+ /* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_7__);
37339
37471
 
37340
- var isMessageLoopRunning = false;
37341
- var scheduledHostCallback = null;
37342
- var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
37343
- // thread, like user events. By default, it yields multiple times per frame.
37344
- // It does not attempt to align with frame boundaries, since most tasks don't
37345
- // need to be frame aligned; for those that do, use requestAnimationFrame.
37346
37472
 
37347
- var frameInterval = frameYieldMs;
37348
- var startTime = -1;
37349
37473
 
37350
- function shouldYieldToHost() {
37351
- var timeElapsed = exports.unstable_now() - startTime;
37352
37474
 
37353
- if (timeElapsed < frameInterval) {
37354
- // The main thread has only been blocked for a really short amount of time;
37355
- // smaller than a single frame. Don't yield yet.
37356
- return false;
37357
- } // The main thread has been blocked for a non-negligible amount of time. We
37358
37475
 
37359
37476
 
37360
- return true;
37361
- }
37362
37477
 
37363
- function requestPaint() {
37364
37478
 
37365
- }
37366
37479
 
37367
- function forceFrameRate(fps) {
37368
- if (fps < 0 || fps > 125) {
37369
- // Using console['error'] to evade Babel and ESLint
37370
- console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported');
37371
- return;
37372
- }
37373
37480
 
37374
- if (fps > 0) {
37375
- frameInterval = Math.floor(1000 / fps);
37376
- } else {
37377
- // reset the framerate
37378
- frameInterval = frameYieldMs;
37379
- }
37380
- }
37381
37481
 
37382
- var performWorkUntilDeadline = function () {
37383
- if (scheduledHostCallback !== null) {
37384
- var currentTime = exports.unstable_now(); // Keep track of the start time so we can measure how long the main thread
37385
- // has been blocked.
37386
37482
 
37387
- startTime = currentTime;
37388
- var hasTimeRemaining = true; // If a scheduler task throws, exit the current browser task so the
37389
- // error can be observed.
37390
- //
37391
- // Intentionally not using a try-catch, since that makes some debugging
37392
- // techniques harder. Instead, if `scheduledHostCallback` errors, then
37393
- // `hasMoreWork` will remain true, and we'll continue the work loop.
37394
37483
 
37395
- var hasMoreWork = true;
37484
+ // TODO: Replace with React.createContext once we can assume React 16+
37396
37485
 
37397
- try {
37398
- hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
37399
- } finally {
37400
- if (hasMoreWork) {
37401
- // If there's more work, schedule the next message event at the end
37402
- // of the preceding one.
37403
- schedulePerformWorkUntilDeadline();
37404
- } else {
37405
- isMessageLoopRunning = false;
37406
- scheduledHostCallback = null;
37407
- }
37408
- }
37409
- } else {
37410
- isMessageLoopRunning = false;
37411
- } // Yielding to the browser will give it a chance to paint, so we can
37486
+ var createNamedContext = function createNamedContext(name) {
37487
+ var context = (0,mini_create_react_context__WEBPACK_IMPORTED_MODULE_2__["default"])();
37488
+ context.displayName = name;
37489
+ return context;
37412
37490
  };
37413
37491
 
37414
- var schedulePerformWorkUntilDeadline;
37492
+ var historyContext = /*#__PURE__*/createNamedContext("Router-History");
37415
37493
 
37416
- if (typeof localSetImmediate === 'function') {
37417
- // Node.js and old IE.
37418
- // There's a few reasons for why we prefer setImmediate.
37419
- //
37420
- // Unlike MessageChannel, it doesn't prevent a Node.js process from exiting.
37421
- // (Even though this is a DOM fork of the Scheduler, you could get here
37422
- // with a mix of Node.js 15+, which has a MessageChannel, and jsdom.)
37423
- // https://github.com/facebook/react/issues/20756
37424
- //
37425
- // But also, it runs earlier which is the semantic we want.
37426
- // If other browsers ever implement it, it's better to use it.
37427
- // Although both of these would be inferior to native scheduling.
37428
- schedulePerformWorkUntilDeadline = function () {
37429
- localSetImmediate(performWorkUntilDeadline);
37430
- };
37431
- } else if (typeof MessageChannel !== 'undefined') {
37432
- // DOM and Worker environments.
37433
- // We prefer MessageChannel because of the 4ms setTimeout clamping.
37434
- var channel = new MessageChannel();
37435
- var port = channel.port2;
37436
- channel.port1.onmessage = performWorkUntilDeadline;
37494
+ var context = /*#__PURE__*/createNamedContext("Router");
37437
37495
 
37438
- schedulePerformWorkUntilDeadline = function () {
37439
- port.postMessage(null);
37440
- };
37441
- } else {
37442
- // We should only fallback here in non-browser environments.
37443
- schedulePerformWorkUntilDeadline = function () {
37444
- localSetTimeout(performWorkUntilDeadline, 0);
37496
+ /**
37497
+ * The public API for putting history on context.
37498
+ */
37499
+
37500
+ var Router = /*#__PURE__*/function (_React$Component) {
37501
+ (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(Router, _React$Component);
37502
+
37503
+ Router.computeRootMatch = function computeRootMatch(pathname) {
37504
+ return {
37505
+ path: "/",
37506
+ url: "/",
37507
+ params: {},
37508
+ isExact: pathname === "/"
37509
+ };
37445
37510
  };
37446
- }
37447
37511
 
37448
- function requestHostCallback(callback) {
37449
- scheduledHostCallback = callback;
37512
+ function Router(props) {
37513
+ var _this;
37450
37514
 
37451
- if (!isMessageLoopRunning) {
37452
- isMessageLoopRunning = true;
37453
- schedulePerformWorkUntilDeadline();
37454
- }
37455
- }
37515
+ _this = _React$Component.call(this, props) || this;
37516
+ _this.state = {
37517
+ location: props.history.location
37518
+ }; // This is a bit of a hack. We have to start listening for location
37519
+ // changes here in the constructor in case there are any <Redirect>s
37520
+ // on the initial render. If there are, they will replace/push when
37521
+ // they mount and since cDM fires in children before parents, we may
37522
+ // get a new location before the <Router> is mounted.
37456
37523
 
37457
- function requestHostTimeout(callback, ms) {
37458
- taskTimeoutID = localSetTimeout(function () {
37459
- callback(exports.unstable_now());
37460
- }, ms);
37461
- }
37524
+ _this._isMounted = false;
37525
+ _this._pendingLocation = null;
37462
37526
 
37463
- function cancelHostTimeout() {
37464
- localClearTimeout(taskTimeoutID);
37465
- taskTimeoutID = -1;
37466
- }
37527
+ if (!props.staticContext) {
37528
+ _this.unlisten = props.history.listen(function (location) {
37529
+ _this._pendingLocation = location;
37530
+ });
37531
+ }
37467
37532
 
37468
- var unstable_requestPaint = requestPaint;
37469
- var unstable_Profiling = null;
37533
+ return _this;
37534
+ }
37470
37535
 
37471
- exports.unstable_IdlePriority = IdlePriority;
37472
- exports.unstable_ImmediatePriority = ImmediatePriority;
37473
- exports.unstable_LowPriority = LowPriority;
37474
- exports.unstable_NormalPriority = NormalPriority;
37475
- exports.unstable_Profiling = unstable_Profiling;
37476
- exports.unstable_UserBlockingPriority = UserBlockingPriority;
37477
- exports.unstable_cancelCallback = unstable_cancelCallback;
37478
- exports.unstable_continueExecution = unstable_continueExecution;
37479
- exports.unstable_forceFrameRate = forceFrameRate;
37480
- exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
37481
- exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
37482
- exports.unstable_next = unstable_next;
37483
- exports.unstable_pauseExecution = unstable_pauseExecution;
37484
- exports.unstable_requestPaint = unstable_requestPaint;
37485
- exports.unstable_runWithPriority = unstable_runWithPriority;
37486
- exports.unstable_scheduleCallback = unstable_scheduleCallback;
37487
- exports.unstable_shouldYield = shouldYieldToHost;
37488
- exports.unstable_wrapCallback = unstable_wrapCallback;
37489
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
37490
- if (
37491
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
37492
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
37493
- 'function'
37494
- ) {
37495
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
37496
- }
37497
-
37498
- })();
37499
- }
37536
+ var _proto = Router.prototype;
37500
37537
 
37538
+ _proto.componentDidMount = function componentDidMount() {
37539
+ var _this2 = this;
37501
37540
 
37502
- /***/ }),
37541
+ this._isMounted = true;
37503
37542
 
37504
- /***/ "../../../node_modules/react-dom/node_modules/scheduler/index.js":
37505
- /*!***********************************************************************!*\
37506
- !*** ../../../node_modules/react-dom/node_modules/scheduler/index.js ***!
37507
- \***********************************************************************/
37508
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
37509
-
37510
- "use strict";
37511
-
37512
-
37513
- if (false) {} else {
37514
- module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "../../../node_modules/react-dom/node_modules/scheduler/cjs/scheduler.development.js");
37515
- }
37516
-
37517
-
37518
- /***/ }),
37519
-
37520
- /***/ "../../../node_modules/react-is/cjs/react-is.development.js":
37521
- /*!******************************************************************!*\
37522
- !*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
37523
- \******************************************************************/
37524
- /***/ ((__unused_webpack_module, exports) => {
37525
-
37526
- "use strict";
37527
- /** @license React v16.13.1
37528
- * react-is.development.js
37529
- *
37530
- * Copyright (c) Facebook, Inc. and its affiliates.
37531
- *
37532
- * This source code is licensed under the MIT license found in the
37533
- * LICENSE file in the root directory of this source tree.
37534
- */
37535
-
37536
-
37537
-
37538
-
37539
-
37540
- if (true) {
37541
- (function() {
37542
- 'use strict';
37543
-
37544
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
37545
- // nor polyfill, then a plain number is used for performance.
37546
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
37547
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
37548
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
37549
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
37550
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
37551
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
37552
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
37553
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
37554
- // (unstable) APIs that have been removed. Can we remove the symbols?
37555
-
37556
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
37557
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
37558
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
37559
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
37560
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
37561
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
37562
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
37563
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
37564
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
37565
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
37566
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
37567
-
37568
- function isValidElementType(type) {
37569
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
37570
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
37571
- }
37572
-
37573
- function typeOf(object) {
37574
- if (typeof object === 'object' && object !== null) {
37575
- var $$typeof = object.$$typeof;
37576
-
37577
- switch ($$typeof) {
37578
- case REACT_ELEMENT_TYPE:
37579
- var type = object.type;
37580
-
37581
- switch (type) {
37582
- case REACT_ASYNC_MODE_TYPE:
37583
- case REACT_CONCURRENT_MODE_TYPE:
37584
- case REACT_FRAGMENT_TYPE:
37585
- case REACT_PROFILER_TYPE:
37586
- case REACT_STRICT_MODE_TYPE:
37587
- case REACT_SUSPENSE_TYPE:
37588
- return type;
37589
-
37590
- default:
37591
- var $$typeofType = type && type.$$typeof;
37592
-
37593
- switch ($$typeofType) {
37594
- case REACT_CONTEXT_TYPE:
37595
- case REACT_FORWARD_REF_TYPE:
37596
- case REACT_LAZY_TYPE:
37597
- case REACT_MEMO_TYPE:
37598
- case REACT_PROVIDER_TYPE:
37599
- return $$typeofType;
37600
-
37601
- default:
37602
- return $$typeof;
37603
- }
37543
+ if (this.unlisten) {
37544
+ // Any pre-mount location changes have been captured at
37545
+ // this point, so unregister the listener.
37546
+ this.unlisten();
37547
+ }
37604
37548
 
37549
+ if (!this.props.staticContext) {
37550
+ this.unlisten = this.props.history.listen(function (location) {
37551
+ if (_this2._isMounted) {
37552
+ _this2.setState({
37553
+ location: location
37554
+ });
37605
37555
  }
37606
-
37607
- case REACT_PORTAL_TYPE:
37608
- return $$typeof;
37556
+ });
37609
37557
  }
37610
- }
37611
-
37612
- return undefined;
37613
- } // AsyncMode is deprecated along with isAsyncMode
37614
-
37615
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
37616
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
37617
- var ContextConsumer = REACT_CONTEXT_TYPE;
37618
- var ContextProvider = REACT_PROVIDER_TYPE;
37619
- var Element = REACT_ELEMENT_TYPE;
37620
- var ForwardRef = REACT_FORWARD_REF_TYPE;
37621
- var Fragment = REACT_FRAGMENT_TYPE;
37622
- var Lazy = REACT_LAZY_TYPE;
37623
- var Memo = REACT_MEMO_TYPE;
37624
- var Portal = REACT_PORTAL_TYPE;
37625
- var Profiler = REACT_PROFILER_TYPE;
37626
- var StrictMode = REACT_STRICT_MODE_TYPE;
37627
- var Suspense = REACT_SUSPENSE_TYPE;
37628
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
37629
-
37630
- function isAsyncMode(object) {
37631
- {
37632
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
37633
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
37634
37558
 
37635
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
37559
+ if (this._pendingLocation) {
37560
+ this.setState({
37561
+ location: this._pendingLocation
37562
+ });
37636
37563
  }
37637
- }
37638
-
37639
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
37640
- }
37641
- function isConcurrentMode(object) {
37642
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
37643
- }
37644
- function isContextConsumer(object) {
37645
- return typeOf(object) === REACT_CONTEXT_TYPE;
37646
- }
37647
- function isContextProvider(object) {
37648
- return typeOf(object) === REACT_PROVIDER_TYPE;
37649
- }
37650
- function isElement(object) {
37651
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
37652
- }
37653
- function isForwardRef(object) {
37654
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
37655
- }
37656
- function isFragment(object) {
37657
- return typeOf(object) === REACT_FRAGMENT_TYPE;
37658
- }
37659
- function isLazy(object) {
37660
- return typeOf(object) === REACT_LAZY_TYPE;
37661
- }
37662
- function isMemo(object) {
37663
- return typeOf(object) === REACT_MEMO_TYPE;
37664
- }
37665
- function isPortal(object) {
37666
- return typeOf(object) === REACT_PORTAL_TYPE;
37667
- }
37668
- function isProfiler(object) {
37669
- return typeOf(object) === REACT_PROFILER_TYPE;
37670
- }
37671
- function isStrictMode(object) {
37672
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
37673
- }
37674
- function isSuspense(object) {
37675
- return typeOf(object) === REACT_SUSPENSE_TYPE;
37676
- }
37677
-
37678
- exports.AsyncMode = AsyncMode;
37679
- exports.ConcurrentMode = ConcurrentMode;
37680
- exports.ContextConsumer = ContextConsumer;
37681
- exports.ContextProvider = ContextProvider;
37682
- exports.Element = Element;
37683
- exports.ForwardRef = ForwardRef;
37684
- exports.Fragment = Fragment;
37685
- exports.Lazy = Lazy;
37686
- exports.Memo = Memo;
37687
- exports.Portal = Portal;
37688
- exports.Profiler = Profiler;
37689
- exports.StrictMode = StrictMode;
37690
- exports.Suspense = Suspense;
37691
- exports.isAsyncMode = isAsyncMode;
37692
- exports.isConcurrentMode = isConcurrentMode;
37693
- exports.isContextConsumer = isContextConsumer;
37694
- exports.isContextProvider = isContextProvider;
37695
- exports.isElement = isElement;
37696
- exports.isForwardRef = isForwardRef;
37697
- exports.isFragment = isFragment;
37698
- exports.isLazy = isLazy;
37699
- exports.isMemo = isMemo;
37700
- exports.isPortal = isPortal;
37701
- exports.isProfiler = isProfiler;
37702
- exports.isStrictMode = isStrictMode;
37703
- exports.isSuspense = isSuspense;
37704
- exports.isValidElementType = isValidElementType;
37705
- exports.typeOf = typeOf;
37706
- })();
37707
- }
37708
-
37564
+ };
37709
37565
 
37710
- /***/ }),
37566
+ _proto.componentWillUnmount = function componentWillUnmount() {
37567
+ if (this.unlisten) {
37568
+ this.unlisten();
37569
+ this._isMounted = false;
37570
+ this._pendingLocation = null;
37571
+ }
37572
+ };
37711
37573
 
37712
- /***/ "../../../node_modules/react-is/index.js":
37713
- /*!***********************************************!*\
37714
- !*** ../../../node_modules/react-is/index.js ***!
37715
- \***********************************************/
37716
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
37574
+ _proto.render = function render() {
37575
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(context.Provider, {
37576
+ value: {
37577
+ history: this.props.history,
37578
+ location: this.state.location,
37579
+ match: Router.computeRootMatch(this.state.location.pathname),
37580
+ staticContext: this.props.staticContext
37581
+ }
37582
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(historyContext.Provider, {
37583
+ children: this.props.children || null,
37584
+ value: this.props.history
37585
+ }));
37586
+ };
37717
37587
 
37718
- "use strict";
37588
+ return Router;
37589
+ }((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
37719
37590
 
37591
+ if (true) {
37592
+ Router.propTypes = {
37593
+ children: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node),
37594
+ history: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object.isRequired),
37595
+ staticContext: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object)
37596
+ };
37720
37597
 
37721
- if (false) {} else {
37722
- module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
37598
+ Router.prototype.componentDidUpdate = function (prevProps) {
37599
+ true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_9__["default"])(prevProps.history === this.props.history, "You cannot change <Router history>") : 0;
37600
+ };
37723
37601
  }
37724
37602
 
37725
-
37726
- /***/ }),
37727
-
37728
- /***/ "../../../node_modules/react-router-dom/esm/react-router-dom.js":
37729
- /*!**********************************************************************!*\
37730
- !*** ../../../node_modules/react-router-dom/esm/react-router-dom.js ***!
37731
- \**********************************************************************/
37732
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
37733
-
37734
- "use strict";
37735
- __webpack_require__.r(__webpack_exports__);
37736
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
37737
- /* harmony export */ "BrowserRouter": () => (/* binding */ BrowserRouter),
37738
- /* harmony export */ "HashRouter": () => (/* binding */ HashRouter),
37739
- /* harmony export */ "Link": () => (/* binding */ Link),
37740
- /* harmony export */ "MemoryRouter": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.MemoryRouter),
37741
- /* harmony export */ "NavLink": () => (/* binding */ NavLink),
37742
- /* harmony export */ "Prompt": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.Prompt),
37743
- /* harmony export */ "Redirect": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.Redirect),
37744
- /* harmony export */ "Route": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.Route),
37745
- /* harmony export */ "Router": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.Router),
37746
- /* harmony export */ "StaticRouter": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.StaticRouter),
37747
- /* harmony export */ "Switch": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.Switch),
37748
- /* harmony export */ "generatePath": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.generatePath),
37749
- /* harmony export */ "matchPath": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.matchPath),
37750
- /* harmony export */ "useHistory": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.useHistory),
37751
- /* harmony export */ "useLocation": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.useLocation),
37752
- /* harmony export */ "useParams": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.useParams),
37753
- /* harmony export */ "useRouteMatch": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.useRouteMatch),
37754
- /* harmony export */ "withRouter": () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_0__.withRouter)
37755
- /* harmony export */ });
37756
- /* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
37757
- /* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
37758
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
37759
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
37760
- /* harmony import */ var history__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! history */ "../../../node_modules/history/esm/history.js");
37761
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
37762
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
37763
- /* harmony import */ var tiny_warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! tiny-warning */ "../../../node_modules/tiny-warning/dist/tiny-warning.esm.js");
37764
- /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../../../node_modules/@babel/runtime/helpers/esm/extends.js");
37765
- /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
37766
- /* harmony import */ var tiny_invariant__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! tiny-invariant */ "../../../node_modules/tiny-invariant/dist/tiny-invariant.esm.js");
37767
-
37768
-
37769
-
37770
-
37771
-
37772
-
37773
-
37774
-
37775
-
37776
-
37777
-
37778
37603
  /**
37779
- * The public API for a <Router> that uses HTML5 history.
37604
+ * The public API for a <Router> that stores location in memory.
37780
37605
  */
37781
37606
 
37782
- var BrowserRouter = /*#__PURE__*/function (_React$Component) {
37783
- (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(BrowserRouter, _React$Component);
37607
+ var MemoryRouter = /*#__PURE__*/function (_React$Component) {
37608
+ (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(MemoryRouter, _React$Component);
37784
37609
 
37785
- function BrowserRouter() {
37610
+ function MemoryRouter() {
37786
37611
  var _this;
37787
37612
 
37788
37613
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -37790,640 +37615,154 @@ var BrowserRouter = /*#__PURE__*/function (_React$Component) {
37790
37615
  }
37791
37616
 
37792
37617
  _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
37793
- _this.history = (0,history__WEBPACK_IMPORTED_MODULE_5__.createBrowserHistory)(_this.props);
37618
+ _this.history = (0,history__WEBPACK_IMPORTED_MODULE_10__.createMemoryHistory)(_this.props);
37794
37619
  return _this;
37795
37620
  }
37796
37621
 
37797
- var _proto = BrowserRouter.prototype;
37622
+ var _proto = MemoryRouter.prototype;
37798
37623
 
37799
37624
  _proto.render = function render() {
37800
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(react_router__WEBPACK_IMPORTED_MODULE_0__.Router, {
37625
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Router, {
37801
37626
  history: this.history,
37802
37627
  children: this.props.children
37803
37628
  });
37804
37629
  };
37805
37630
 
37806
- return BrowserRouter;
37807
- }((react__WEBPACK_IMPORTED_MODULE_2___default().Component));
37631
+ return MemoryRouter;
37632
+ }((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
37808
37633
 
37809
37634
  if (true) {
37810
- BrowserRouter.propTypes = {
37811
- basename: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
37812
- children: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node),
37813
- forceRefresh: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
37814
- getUserConfirmation: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
37815
- keyLength: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
37635
+ MemoryRouter.propTypes = {
37636
+ initialEntries: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().array),
37637
+ initialIndex: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number),
37638
+ getUserConfirmation: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func),
37639
+ keyLength: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number),
37640
+ children: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)
37816
37641
  };
37817
37642
 
37818
- BrowserRouter.prototype.componentDidMount = function () {
37819
- true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(!this.props.history, "<BrowserRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { BrowserRouter as Router }`.") : 0;
37643
+ MemoryRouter.prototype.componentDidMount = function () {
37644
+ true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_9__["default"])(!this.props.history, "<MemoryRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { MemoryRouter as Router }`.") : 0;
37820
37645
  };
37821
37646
  }
37822
37647
 
37823
- /**
37824
- * The public API for a <Router> that uses window.location.hash.
37825
- */
37826
-
37827
- var HashRouter = /*#__PURE__*/function (_React$Component) {
37828
- (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(HashRouter, _React$Component);
37829
-
37830
- function HashRouter() {
37831
- var _this;
37832
-
37833
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
37834
- args[_key] = arguments[_key];
37835
- }
37648
+ var Lifecycle = /*#__PURE__*/function (_React$Component) {
37649
+ (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(Lifecycle, _React$Component);
37836
37650
 
37837
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
37838
- _this.history = (0,history__WEBPACK_IMPORTED_MODULE_5__.createHashHistory)(_this.props);
37839
- return _this;
37651
+ function Lifecycle() {
37652
+ return _React$Component.apply(this, arguments) || this;
37840
37653
  }
37841
37654
 
37842
- var _proto = HashRouter.prototype;
37655
+ var _proto = Lifecycle.prototype;
37843
37656
 
37844
- _proto.render = function render() {
37845
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(react_router__WEBPACK_IMPORTED_MODULE_0__.Router, {
37846
- history: this.history,
37847
- children: this.props.children
37848
- });
37657
+ _proto.componentDidMount = function componentDidMount() {
37658
+ if (this.props.onMount) this.props.onMount.call(this, this);
37849
37659
  };
37850
37660
 
37851
- return HashRouter;
37852
- }((react__WEBPACK_IMPORTED_MODULE_2___default().Component));
37853
-
37854
- if (true) {
37855
- HashRouter.propTypes = {
37856
- basename: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
37857
- children: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node),
37858
- getUserConfirmation: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
37859
- hashType: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["hashbang", "noslash", "slash"])
37661
+ _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
37662
+ if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps);
37860
37663
  };
37861
37664
 
37862
- HashRouter.prototype.componentDidMount = function () {
37863
- true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(!this.props.history, "<HashRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { HashRouter as Router }`.") : 0;
37665
+ _proto.componentWillUnmount = function componentWillUnmount() {
37666
+ if (this.props.onUnmount) this.props.onUnmount.call(this, this);
37864
37667
  };
37865
- }
37866
37668
 
37867
- var resolveToLocation = function resolveToLocation(to, currentLocation) {
37868
- return typeof to === "function" ? to(currentLocation) : to;
37869
- };
37870
- var normalizeToLocation = function normalizeToLocation(to, currentLocation) {
37871
- return typeof to === "string" ? (0,history__WEBPACK_IMPORTED_MODULE_5__.createLocation)(to, null, null, currentLocation) : to;
37872
- };
37669
+ _proto.render = function render() {
37670
+ return null;
37671
+ };
37873
37672
 
37874
- var forwardRefShim = function forwardRefShim(C) {
37875
- return C;
37876
- };
37673
+ return Lifecycle;
37674
+ }((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
37877
37675
 
37878
- var forwardRef = (react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef);
37676
+ /**
37677
+ * The public API for prompting the user before navigating away from a screen.
37678
+ */
37879
37679
 
37880
- if (typeof forwardRef === "undefined") {
37881
- forwardRef = forwardRefShim;
37680
+ function Prompt(_ref) {
37681
+ var message = _ref.message,
37682
+ _ref$when = _ref.when,
37683
+ when = _ref$when === void 0 ? true : _ref$when;
37684
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(context.Consumer, null, function (context) {
37685
+ !context ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_11__["default"])(false, "You should not use <Prompt> outside a <Router>") : 0 : void 0;
37686
+ if (!when || context.staticContext) return null;
37687
+ var method = context.history.block;
37688
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Lifecycle, {
37689
+ onMount: function onMount(self) {
37690
+ self.release = method(message);
37691
+ },
37692
+ onUpdate: function onUpdate(self, prevProps) {
37693
+ if (prevProps.message !== message) {
37694
+ self.release();
37695
+ self.release = method(message);
37696
+ }
37697
+ },
37698
+ onUnmount: function onUnmount(self) {
37699
+ self.release();
37700
+ },
37701
+ message: message
37702
+ });
37703
+ });
37882
37704
  }
37883
37705
 
37884
- function isModifiedEvent(event) {
37885
- return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
37706
+ if (true) {
37707
+ var messageType = prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]);
37708
+ Prompt.propTypes = {
37709
+ when: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
37710
+ message: messageType.isRequired
37711
+ };
37886
37712
  }
37887
37713
 
37888
- var LinkAnchor = forwardRef(function (_ref, forwardedRef) {
37889
- var innerRef = _ref.innerRef,
37890
- navigate = _ref.navigate,
37891
- _onClick = _ref.onClick,
37892
- rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_4__["default"])(_ref, ["innerRef", "navigate", "onClick"]);
37714
+ var cache = {};
37715
+ var cacheLimit = 10000;
37716
+ var cacheCount = 0;
37893
37717
 
37894
- var target = rest.target;
37718
+ function compilePath(path) {
37719
+ if (cache[path]) return cache[path];
37720
+ var generator = path_to_regexp__WEBPACK_IMPORTED_MODULE_4___default().compile(path);
37895
37721
 
37896
- var props = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, rest, {
37897
- onClick: function onClick(event) {
37898
- try {
37899
- if (_onClick) _onClick(event);
37900
- } catch (ex) {
37901
- event.preventDefault();
37902
- throw ex;
37903
- }
37722
+ if (cacheCount < cacheLimit) {
37723
+ cache[path] = generator;
37724
+ cacheCount++;
37725
+ }
37904
37726
 
37905
- if (!event.defaultPrevented && // onClick prevented default
37906
- event.button === 0 && ( // ignore everything but left clicks
37907
- !target || target === "_self") && // let browser handle "target=_blank" etc.
37908
- !isModifiedEvent(event) // ignore clicks with modifier keys
37909
- ) {
37910
- event.preventDefault();
37911
- navigate();
37912
- }
37913
- }
37914
- }); // React 15 compat
37727
+ return generator;
37728
+ }
37729
+ /**
37730
+ * Public API for generating a URL pathname from a path and parameters.
37731
+ */
37915
37732
 
37916
37733
 
37917
- if (forwardRefShim !== forwardRef) {
37918
- props.ref = forwardedRef || innerRef;
37919
- } else {
37920
- props.ref = innerRef;
37734
+ function generatePath(path, params) {
37735
+ if (path === void 0) {
37736
+ path = "/";
37921
37737
  }
37922
- /* eslint-disable-next-line jsx-a11y/anchor-has-content */
37923
37738
 
37739
+ if (params === void 0) {
37740
+ params = {};
37741
+ }
37924
37742
 
37925
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("a", props);
37926
- });
37927
-
37928
- if (true) {
37929
- LinkAnchor.displayName = "LinkAnchor";
37743
+ return path === "/" ? path : compilePath(path)(params, {
37744
+ pretty: true
37745
+ });
37930
37746
  }
37747
+
37931
37748
  /**
37932
- * The public API for rendering a history-aware <a>.
37749
+ * The public API for navigating programmatically with a component.
37933
37750
  */
37934
37751
 
37935
-
37936
- var Link = forwardRef(function (_ref2, forwardedRef) {
37937
- var _ref2$component = _ref2.component,
37938
- component = _ref2$component === void 0 ? LinkAnchor : _ref2$component,
37939
- replace = _ref2.replace,
37940
- to = _ref2.to,
37941
- innerRef = _ref2.innerRef,
37942
- rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_4__["default"])(_ref2, ["component", "replace", "to", "innerRef"]);
37943
-
37944
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(react_router__WEBPACK_IMPORTED_MODULE_0__.__RouterContext.Consumer, null, function (context) {
37945
- !context ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_8__["default"])(false, "You should not use <Link> outside a <Router>") : 0 : void 0;
37946
- var history = context.history;
37947
- var location = normalizeToLocation(resolveToLocation(to, context.location), context.location);
37948
- var href = location ? history.createHref(location) : "";
37949
-
37950
- var props = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, rest, {
37951
- href: href,
37952
- navigate: function navigate() {
37953
- var location = resolveToLocation(to, context.location);
37954
- var isDuplicateNavigation = (0,history__WEBPACK_IMPORTED_MODULE_5__.createPath)(context.location) === (0,history__WEBPACK_IMPORTED_MODULE_5__.createPath)(normalizeToLocation(location));
37955
- var method = replace || isDuplicateNavigation ? history.replace : history.push;
37956
- method(location);
37957
- }
37958
- }); // React 15 compat
37959
-
37960
-
37961
- if (forwardRefShim !== forwardRef) {
37962
- props.ref = forwardedRef || innerRef;
37963
- } else {
37964
- props.innerRef = innerRef;
37965
- }
37966
-
37967
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(component, props);
37968
- });
37969
- });
37970
-
37971
- if (true) {
37972
- var toType = prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]);
37973
- var refType = prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func), prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
37974
- current: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().any)
37975
- })]);
37976
- Link.displayName = "Link";
37977
- Link.propTypes = {
37978
- innerRef: refType,
37979
- onClick: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
37980
- replace: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
37981
- target: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
37982
- to: toType.isRequired
37983
- };
37984
- }
37985
-
37986
- var forwardRefShim$1 = function forwardRefShim(C) {
37987
- return C;
37988
- };
37989
-
37990
- var forwardRef$1 = (react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef);
37991
-
37992
- if (typeof forwardRef$1 === "undefined") {
37993
- forwardRef$1 = forwardRefShim$1;
37994
- }
37995
-
37996
- function joinClassnames() {
37997
- for (var _len = arguments.length, classnames = new Array(_len), _key = 0; _key < _len; _key++) {
37998
- classnames[_key] = arguments[_key];
37999
- }
38000
-
38001
- return classnames.filter(function (i) {
38002
- return i;
38003
- }).join(" ");
38004
- }
38005
- /**
38006
- * A <Link> wrapper that knows if it's "active" or not.
38007
- */
38008
-
38009
-
38010
- var NavLink = forwardRef$1(function (_ref, forwardedRef) {
38011
- var _ref$ariaCurrent = _ref["aria-current"],
38012
- ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent,
38013
- _ref$activeClassName = _ref.activeClassName,
38014
- activeClassName = _ref$activeClassName === void 0 ? "active" : _ref$activeClassName,
38015
- activeStyle = _ref.activeStyle,
38016
- classNameProp = _ref.className,
38017
- exact = _ref.exact,
38018
- isActiveProp = _ref.isActive,
38019
- locationProp = _ref.location,
38020
- sensitive = _ref.sensitive,
38021
- strict = _ref.strict,
38022
- styleProp = _ref.style,
38023
- to = _ref.to,
38024
- innerRef = _ref.innerRef,
38025
- rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_4__["default"])(_ref, ["aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "sensitive", "strict", "style", "to", "innerRef"]);
38026
-
38027
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(react_router__WEBPACK_IMPORTED_MODULE_0__.__RouterContext.Consumer, null, function (context) {
38028
- !context ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_8__["default"])(false, "You should not use <NavLink> outside a <Router>") : 0 : void 0;
38029
- var currentLocation = locationProp || context.location;
38030
- var toLocation = normalizeToLocation(resolveToLocation(to, currentLocation), currentLocation);
38031
- var path = toLocation.pathname; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
38032
-
38033
- var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
38034
- var match = escapedPath ? (0,react_router__WEBPACK_IMPORTED_MODULE_0__.matchPath)(currentLocation.pathname, {
38035
- path: escapedPath,
38036
- exact: exact,
38037
- sensitive: sensitive,
38038
- strict: strict
38039
- }) : null;
38040
- var isActive = !!(isActiveProp ? isActiveProp(match, currentLocation) : match);
38041
- var className = typeof classNameProp === "function" ? classNameProp(isActive) : classNameProp;
38042
- var style = typeof styleProp === "function" ? styleProp(isActive) : styleProp;
38043
-
38044
- if (isActive) {
38045
- className = joinClassnames(className, activeClassName);
38046
- style = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, style, activeStyle);
38047
- }
38048
-
38049
- var props = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({
38050
- "aria-current": isActive && ariaCurrent || null,
38051
- className: className,
38052
- style: style,
38053
- to: toLocation
38054
- }, rest); // React 15 compat
38055
-
38056
-
38057
- if (forwardRefShim$1 !== forwardRef$1) {
38058
- props.ref = forwardedRef || innerRef;
38059
- } else {
38060
- props.innerRef = innerRef;
38061
- }
38062
-
38063
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(Link, props);
38064
- });
38065
- });
38066
-
38067
- if (true) {
38068
- NavLink.displayName = "NavLink";
38069
- var ariaCurrentType = prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["page", "step", "location", "date", "time", "true", "false"]);
38070
- NavLink.propTypes = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, Link.propTypes, {
38071
- "aria-current": ariaCurrentType,
38072
- activeClassName: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
38073
- activeStyle: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
38074
- className: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
38075
- exact: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
38076
- isActive: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
38077
- location: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
38078
- sensitive: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
38079
- strict: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
38080
- style: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)])
38081
- });
38082
- }
38083
-
38084
-
38085
- //# sourceMappingURL=react-router-dom.js.map
38086
-
38087
-
38088
- /***/ }),
38089
-
38090
- /***/ "../../../node_modules/react-router/esm/react-router.js":
38091
- /*!**************************************************************!*\
38092
- !*** ../../../node_modules/react-router/esm/react-router.js ***!
38093
- \**************************************************************/
38094
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
38095
-
38096
- "use strict";
38097
- __webpack_require__.r(__webpack_exports__);
38098
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
38099
- /* harmony export */ "MemoryRouter": () => (/* binding */ MemoryRouter),
38100
- /* harmony export */ "Prompt": () => (/* binding */ Prompt),
38101
- /* harmony export */ "Redirect": () => (/* binding */ Redirect),
38102
- /* harmony export */ "Route": () => (/* binding */ Route),
38103
- /* harmony export */ "Router": () => (/* binding */ Router),
38104
- /* harmony export */ "StaticRouter": () => (/* binding */ StaticRouter),
38105
- /* harmony export */ "Switch": () => (/* binding */ Switch),
38106
- /* harmony export */ "__HistoryContext": () => (/* binding */ historyContext),
38107
- /* harmony export */ "__RouterContext": () => (/* binding */ context),
38108
- /* harmony export */ "generatePath": () => (/* binding */ generatePath),
38109
- /* harmony export */ "matchPath": () => (/* binding */ matchPath),
38110
- /* harmony export */ "useHistory": () => (/* binding */ useHistory),
38111
- /* harmony export */ "useLocation": () => (/* binding */ useLocation),
38112
- /* harmony export */ "useParams": () => (/* binding */ useParams),
38113
- /* harmony export */ "useRouteMatch": () => (/* binding */ useRouteMatch),
38114
- /* harmony export */ "withRouter": () => (/* binding */ withRouter)
38115
- /* harmony export */ });
38116
- /* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
38117
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
38118
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
38119
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
38120
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
38121
- /* harmony import */ var history__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! history */ "../../../node_modules/history/esm/history.js");
38122
- /* harmony import */ var tiny_warning__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tiny-warning */ "../../../node_modules/tiny-warning/dist/tiny-warning.esm.js");
38123
- /* harmony import */ var mini_create_react_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mini-create-react-context */ "../../../node_modules/mini-create-react-context/dist/esm/index.js");
38124
- /* harmony import */ var tiny_invariant__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! tiny-invariant */ "../../../node_modules/tiny-invariant/dist/tiny-invariant.esm.js");
38125
- /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../../../node_modules/@babel/runtime/helpers/esm/extends.js");
38126
- /* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! path-to-regexp */ "../../../node_modules/path-to-regexp/index.js");
38127
- /* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(path_to_regexp__WEBPACK_IMPORTED_MODULE_4__);
38128
- /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
38129
- /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
38130
- /* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! hoist-non-react-statics */ "../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
38131
- /* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_7__);
38132
-
38133
-
38134
-
38135
-
38136
-
38137
-
38138
-
38139
-
38140
-
38141
-
38142
-
38143
-
38144
-
38145
- // TODO: Replace with React.createContext once we can assume React 16+
38146
-
38147
- var createNamedContext = function createNamedContext(name) {
38148
- var context = (0,mini_create_react_context__WEBPACK_IMPORTED_MODULE_2__["default"])();
38149
- context.displayName = name;
38150
- return context;
38151
- };
38152
-
38153
- var historyContext = /*#__PURE__*/createNamedContext("Router-History");
38154
-
38155
- var context = /*#__PURE__*/createNamedContext("Router");
38156
-
38157
- /**
38158
- * The public API for putting history on context.
38159
- */
38160
-
38161
- var Router = /*#__PURE__*/function (_React$Component) {
38162
- (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(Router, _React$Component);
38163
-
38164
- Router.computeRootMatch = function computeRootMatch(pathname) {
38165
- return {
38166
- path: "/",
38167
- url: "/",
38168
- params: {},
38169
- isExact: pathname === "/"
38170
- };
38171
- };
38172
-
38173
- function Router(props) {
38174
- var _this;
38175
-
38176
- _this = _React$Component.call(this, props) || this;
38177
- _this.state = {
38178
- location: props.history.location
38179
- }; // This is a bit of a hack. We have to start listening for location
38180
- // changes here in the constructor in case there are any <Redirect>s
38181
- // on the initial render. If there are, they will replace/push when
38182
- // they mount and since cDM fires in children before parents, we may
38183
- // get a new location before the <Router> is mounted.
38184
-
38185
- _this._isMounted = false;
38186
- _this._pendingLocation = null;
38187
-
38188
- if (!props.staticContext) {
38189
- _this.unlisten = props.history.listen(function (location) {
38190
- _this._pendingLocation = location;
38191
- });
38192
- }
38193
-
38194
- return _this;
38195
- }
38196
-
38197
- var _proto = Router.prototype;
38198
-
38199
- _proto.componentDidMount = function componentDidMount() {
38200
- var _this2 = this;
38201
-
38202
- this._isMounted = true;
38203
-
38204
- if (this.unlisten) {
38205
- // Any pre-mount location changes have been captured at
38206
- // this point, so unregister the listener.
38207
- this.unlisten();
38208
- }
38209
-
38210
- if (!this.props.staticContext) {
38211
- this.unlisten = this.props.history.listen(function (location) {
38212
- if (_this2._isMounted) {
38213
- _this2.setState({
38214
- location: location
38215
- });
38216
- }
38217
- });
38218
- }
38219
-
38220
- if (this._pendingLocation) {
38221
- this.setState({
38222
- location: this._pendingLocation
38223
- });
38224
- }
38225
- };
38226
-
38227
- _proto.componentWillUnmount = function componentWillUnmount() {
38228
- if (this.unlisten) {
38229
- this.unlisten();
38230
- this._isMounted = false;
38231
- this._pendingLocation = null;
38232
- }
38233
- };
38234
-
38235
- _proto.render = function render() {
38236
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(context.Provider, {
38237
- value: {
38238
- history: this.props.history,
38239
- location: this.state.location,
38240
- match: Router.computeRootMatch(this.state.location.pathname),
38241
- staticContext: this.props.staticContext
38242
- }
38243
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(historyContext.Provider, {
38244
- children: this.props.children || null,
38245
- value: this.props.history
38246
- }));
38247
- };
38248
-
38249
- return Router;
38250
- }((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
38251
-
38252
- if (true) {
38253
- Router.propTypes = {
38254
- children: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node),
38255
- history: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object.isRequired),
38256
- staticContext: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object)
38257
- };
38258
-
38259
- Router.prototype.componentDidUpdate = function (prevProps) {
38260
- true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_9__["default"])(prevProps.history === this.props.history, "You cannot change <Router history>") : 0;
38261
- };
38262
- }
38263
-
38264
- /**
38265
- * The public API for a <Router> that stores location in memory.
38266
- */
38267
-
38268
- var MemoryRouter = /*#__PURE__*/function (_React$Component) {
38269
- (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(MemoryRouter, _React$Component);
38270
-
38271
- function MemoryRouter() {
38272
- var _this;
38273
-
38274
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
38275
- args[_key] = arguments[_key];
38276
- }
38277
-
38278
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
38279
- _this.history = (0,history__WEBPACK_IMPORTED_MODULE_10__.createMemoryHistory)(_this.props);
38280
- return _this;
38281
- }
38282
-
38283
- var _proto = MemoryRouter.prototype;
38284
-
38285
- _proto.render = function render() {
38286
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Router, {
38287
- history: this.history,
38288
- children: this.props.children
38289
- });
38290
- };
38291
-
38292
- return MemoryRouter;
38293
- }((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
38294
-
38295
- if (true) {
38296
- MemoryRouter.propTypes = {
38297
- initialEntries: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().array),
38298
- initialIndex: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number),
38299
- getUserConfirmation: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func),
38300
- keyLength: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number),
38301
- children: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)
38302
- };
38303
-
38304
- MemoryRouter.prototype.componentDidMount = function () {
38305
- true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_9__["default"])(!this.props.history, "<MemoryRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { MemoryRouter as Router }`.") : 0;
38306
- };
38307
- }
38308
-
38309
- var Lifecycle = /*#__PURE__*/function (_React$Component) {
38310
- (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(Lifecycle, _React$Component);
38311
-
38312
- function Lifecycle() {
38313
- return _React$Component.apply(this, arguments) || this;
38314
- }
38315
-
38316
- var _proto = Lifecycle.prototype;
38317
-
38318
- _proto.componentDidMount = function componentDidMount() {
38319
- if (this.props.onMount) this.props.onMount.call(this, this);
38320
- };
38321
-
38322
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
38323
- if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps);
38324
- };
38325
-
38326
- _proto.componentWillUnmount = function componentWillUnmount() {
38327
- if (this.props.onUnmount) this.props.onUnmount.call(this, this);
38328
- };
38329
-
38330
- _proto.render = function render() {
38331
- return null;
38332
- };
38333
-
38334
- return Lifecycle;
38335
- }((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
38336
-
38337
- /**
38338
- * The public API for prompting the user before navigating away from a screen.
38339
- */
38340
-
38341
- function Prompt(_ref) {
38342
- var message = _ref.message,
38343
- _ref$when = _ref.when,
38344
- when = _ref$when === void 0 ? true : _ref$when;
38345
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(context.Consumer, null, function (context) {
38346
- !context ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_11__["default"])(false, "You should not use <Prompt> outside a <Router>") : 0 : void 0;
38347
- if (!when || context.staticContext) return null;
38348
- var method = context.history.block;
38349
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Lifecycle, {
38350
- onMount: function onMount(self) {
38351
- self.release = method(message);
38352
- },
38353
- onUpdate: function onUpdate(self, prevProps) {
38354
- if (prevProps.message !== message) {
38355
- self.release();
38356
- self.release = method(message);
38357
- }
38358
- },
38359
- onUnmount: function onUnmount(self) {
38360
- self.release();
38361
- },
38362
- message: message
38363
- });
38364
- });
38365
- }
38366
-
38367
- if (true) {
38368
- var messageType = prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]);
38369
- Prompt.propTypes = {
38370
- when: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
38371
- message: messageType.isRequired
38372
- };
38373
- }
38374
-
38375
- var cache = {};
38376
- var cacheLimit = 10000;
38377
- var cacheCount = 0;
38378
-
38379
- function compilePath(path) {
38380
- if (cache[path]) return cache[path];
38381
- var generator = path_to_regexp__WEBPACK_IMPORTED_MODULE_4___default().compile(path);
38382
-
38383
- if (cacheCount < cacheLimit) {
38384
- cache[path] = generator;
38385
- cacheCount++;
38386
- }
38387
-
38388
- return generator;
38389
- }
38390
- /**
38391
- * Public API for generating a URL pathname from a path and parameters.
38392
- */
38393
-
38394
-
38395
- function generatePath(path, params) {
38396
- if (path === void 0) {
38397
- path = "/";
38398
- }
38399
-
38400
- if (params === void 0) {
38401
- params = {};
38402
- }
38403
-
38404
- return path === "/" ? path : compilePath(path)(params, {
38405
- pretty: true
38406
- });
38407
- }
38408
-
38409
- /**
38410
- * The public API for navigating programmatically with a component.
38411
- */
38412
-
38413
- function Redirect(_ref) {
38414
- var computedMatch = _ref.computedMatch,
38415
- to = _ref.to,
38416
- _ref$push = _ref.push,
38417
- push = _ref$push === void 0 ? false : _ref$push;
38418
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(context.Consumer, null, function (context) {
38419
- !context ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_11__["default"])(false, "You should not use <Redirect> outside a <Router>") : 0 : void 0;
38420
- var history = context.history,
38421
- staticContext = context.staticContext;
38422
- var method = push ? history.push : history.replace;
38423
- var location = (0,history__WEBPACK_IMPORTED_MODULE_10__.createLocation)(computedMatch ? typeof to === "string" ? generatePath(to, computedMatch.params) : (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, to, {
38424
- pathname: generatePath(to.pathname, computedMatch.params)
38425
- }) : to); // When rendering in a static context,
38426
- // set the new location immediately.
37752
+ function Redirect(_ref) {
37753
+ var computedMatch = _ref.computedMatch,
37754
+ to = _ref.to,
37755
+ _ref$push = _ref.push,
37756
+ push = _ref$push === void 0 ? false : _ref$push;
37757
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(context.Consumer, null, function (context) {
37758
+ !context ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_11__["default"])(false, "You should not use <Redirect> outside a <Router>") : 0 : void 0;
37759
+ var history = context.history,
37760
+ staticContext = context.staticContext;
37761
+ var method = push ? history.push : history.replace;
37762
+ var location = (0,history__WEBPACK_IMPORTED_MODULE_10__.createLocation)(computedMatch ? typeof to === "string" ? generatePath(to, computedMatch.params) : (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, to, {
37763
+ pathname: generatePath(to.pathname, computedMatch.params)
37764
+ }) : to); // When rendering in a static context,
37765
+ // set the new location immediately.
38427
37766
 
38428
37767
  if (staticContext) {
38429
37768
  method(location);
@@ -41750,6 +41089,667 @@ function resolvePathname(to, from) {
41750
41089
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (resolvePathname);
41751
41090
 
41752
41091
 
41092
+ /***/ }),
41093
+
41094
+ /***/ "../../../node_modules/scheduler/cjs/scheduler.development.js":
41095
+ /*!********************************************************************!*\
41096
+ !*** ../../../node_modules/scheduler/cjs/scheduler.development.js ***!
41097
+ \********************************************************************/
41098
+ /***/ ((__unused_webpack_module, exports) => {
41099
+
41100
+ "use strict";
41101
+ /**
41102
+ * @license React
41103
+ * scheduler.development.js
41104
+ *
41105
+ * Copyright (c) Facebook, Inc. and its affiliates.
41106
+ *
41107
+ * This source code is licensed under the MIT license found in the
41108
+ * LICENSE file in the root directory of this source tree.
41109
+ */
41110
+
41111
+
41112
+
41113
+ if (true) {
41114
+ (function() {
41115
+
41116
+ 'use strict';
41117
+
41118
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
41119
+ if (
41120
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
41121
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
41122
+ 'function'
41123
+ ) {
41124
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
41125
+ }
41126
+ var enableSchedulerDebugging = false;
41127
+ var enableProfiling = false;
41128
+ var frameYieldMs = 5;
41129
+
41130
+ function push(heap, node) {
41131
+ var index = heap.length;
41132
+ heap.push(node);
41133
+ siftUp(heap, node, index);
41134
+ }
41135
+ function peek(heap) {
41136
+ return heap.length === 0 ? null : heap[0];
41137
+ }
41138
+ function pop(heap) {
41139
+ if (heap.length === 0) {
41140
+ return null;
41141
+ }
41142
+
41143
+ var first = heap[0];
41144
+ var last = heap.pop();
41145
+
41146
+ if (last !== first) {
41147
+ heap[0] = last;
41148
+ siftDown(heap, last, 0);
41149
+ }
41150
+
41151
+ return first;
41152
+ }
41153
+
41154
+ function siftUp(heap, node, i) {
41155
+ var index = i;
41156
+
41157
+ while (index > 0) {
41158
+ var parentIndex = index - 1 >>> 1;
41159
+ var parent = heap[parentIndex];
41160
+
41161
+ if (compare(parent, node) > 0) {
41162
+ // The parent is larger. Swap positions.
41163
+ heap[parentIndex] = node;
41164
+ heap[index] = parent;
41165
+ index = parentIndex;
41166
+ } else {
41167
+ // The parent is smaller. Exit.
41168
+ return;
41169
+ }
41170
+ }
41171
+ }
41172
+
41173
+ function siftDown(heap, node, i) {
41174
+ var index = i;
41175
+ var length = heap.length;
41176
+ var halfLength = length >>> 1;
41177
+
41178
+ while (index < halfLength) {
41179
+ var leftIndex = (index + 1) * 2 - 1;
41180
+ var left = heap[leftIndex];
41181
+ var rightIndex = leftIndex + 1;
41182
+ var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.
41183
+
41184
+ if (compare(left, node) < 0) {
41185
+ if (rightIndex < length && compare(right, left) < 0) {
41186
+ heap[index] = right;
41187
+ heap[rightIndex] = node;
41188
+ index = rightIndex;
41189
+ } else {
41190
+ heap[index] = left;
41191
+ heap[leftIndex] = node;
41192
+ index = leftIndex;
41193
+ }
41194
+ } else if (rightIndex < length && compare(right, node) < 0) {
41195
+ heap[index] = right;
41196
+ heap[rightIndex] = node;
41197
+ index = rightIndex;
41198
+ } else {
41199
+ // Neither child is smaller. Exit.
41200
+ return;
41201
+ }
41202
+ }
41203
+ }
41204
+
41205
+ function compare(a, b) {
41206
+ // Compare sort index first, then task id.
41207
+ var diff = a.sortIndex - b.sortIndex;
41208
+ return diff !== 0 ? diff : a.id - b.id;
41209
+ }
41210
+
41211
+ // TODO: Use symbols?
41212
+ var ImmediatePriority = 1;
41213
+ var UserBlockingPriority = 2;
41214
+ var NormalPriority = 3;
41215
+ var LowPriority = 4;
41216
+ var IdlePriority = 5;
41217
+
41218
+ function markTaskErrored(task, ms) {
41219
+ }
41220
+
41221
+ /* eslint-disable no-var */
41222
+
41223
+ var hasPerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';
41224
+
41225
+ if (hasPerformanceNow) {
41226
+ var localPerformance = performance;
41227
+
41228
+ exports.unstable_now = function () {
41229
+ return localPerformance.now();
41230
+ };
41231
+ } else {
41232
+ var localDate = Date;
41233
+ var initialTime = localDate.now();
41234
+
41235
+ exports.unstable_now = function () {
41236
+ return localDate.now() - initialTime;
41237
+ };
41238
+ } // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
41239
+ // Math.pow(2, 30) - 1
41240
+ // 0b111111111111111111111111111111
41241
+
41242
+
41243
+ var maxSigned31BitInt = 1073741823; // Times out immediately
41244
+
41245
+ var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out
41246
+
41247
+ var USER_BLOCKING_PRIORITY_TIMEOUT = 250;
41248
+ var NORMAL_PRIORITY_TIMEOUT = 5000;
41249
+ var LOW_PRIORITY_TIMEOUT = 10000; // Never times out
41250
+
41251
+ var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap
41252
+
41253
+ var taskQueue = [];
41254
+ var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.
41255
+
41256
+ var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
41257
+ var currentTask = null;
41258
+ var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrance.
41259
+
41260
+ var isPerformingWork = false;
41261
+ var isHostCallbackScheduled = false;
41262
+ var isHostTimeoutScheduled = false; // Capture local references to native APIs, in case a polyfill overrides them.
41263
+
41264
+ var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : null;
41265
+ var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : null;
41266
+ var localSetImmediate = typeof setImmediate !== 'undefined' ? setImmediate : null; // IE and Node.js + jsdom
41267
+
41268
+ var isInputPending = typeof navigator !== 'undefined' && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null;
41269
+
41270
+ function advanceTimers(currentTime) {
41271
+ // Check for tasks that are no longer delayed and add them to the queue.
41272
+ var timer = peek(timerQueue);
41273
+
41274
+ while (timer !== null) {
41275
+ if (timer.callback === null) {
41276
+ // Timer was cancelled.
41277
+ pop(timerQueue);
41278
+ } else if (timer.startTime <= currentTime) {
41279
+ // Timer fired. Transfer to the task queue.
41280
+ pop(timerQueue);
41281
+ timer.sortIndex = timer.expirationTime;
41282
+ push(taskQueue, timer);
41283
+ } else {
41284
+ // Remaining timers are pending.
41285
+ return;
41286
+ }
41287
+
41288
+ timer = peek(timerQueue);
41289
+ }
41290
+ }
41291
+
41292
+ function handleTimeout(currentTime) {
41293
+ isHostTimeoutScheduled = false;
41294
+ advanceTimers(currentTime);
41295
+
41296
+ if (!isHostCallbackScheduled) {
41297
+ if (peek(taskQueue) !== null) {
41298
+ isHostCallbackScheduled = true;
41299
+ requestHostCallback(flushWork);
41300
+ } else {
41301
+ var firstTimer = peek(timerQueue);
41302
+
41303
+ if (firstTimer !== null) {
41304
+ requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
41305
+ }
41306
+ }
41307
+ }
41308
+ }
41309
+
41310
+ function flushWork(hasTimeRemaining, initialTime) {
41311
+
41312
+
41313
+ isHostCallbackScheduled = false;
41314
+
41315
+ if (isHostTimeoutScheduled) {
41316
+ // We scheduled a timeout but it's no longer needed. Cancel it.
41317
+ isHostTimeoutScheduled = false;
41318
+ cancelHostTimeout();
41319
+ }
41320
+
41321
+ isPerformingWork = true;
41322
+ var previousPriorityLevel = currentPriorityLevel;
41323
+
41324
+ try {
41325
+ if (enableProfiling) {
41326
+ try {
41327
+ return workLoop(hasTimeRemaining, initialTime);
41328
+ } catch (error) {
41329
+ if (currentTask !== null) {
41330
+ var currentTime = exports.unstable_now();
41331
+ markTaskErrored(currentTask, currentTime);
41332
+ currentTask.isQueued = false;
41333
+ }
41334
+
41335
+ throw error;
41336
+ }
41337
+ } else {
41338
+ // No catch in prod code path.
41339
+ return workLoop(hasTimeRemaining, initialTime);
41340
+ }
41341
+ } finally {
41342
+ currentTask = null;
41343
+ currentPriorityLevel = previousPriorityLevel;
41344
+ isPerformingWork = false;
41345
+ }
41346
+ }
41347
+
41348
+ function workLoop(hasTimeRemaining, initialTime) {
41349
+ var currentTime = initialTime;
41350
+ advanceTimers(currentTime);
41351
+ currentTask = peek(taskQueue);
41352
+
41353
+ while (currentTask !== null && !(enableSchedulerDebugging )) {
41354
+ if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {
41355
+ // This currentTask hasn't expired, and we've reached the deadline.
41356
+ break;
41357
+ }
41358
+
41359
+ var callback = currentTask.callback;
41360
+
41361
+ if (typeof callback === 'function') {
41362
+ currentTask.callback = null;
41363
+ currentPriorityLevel = currentTask.priorityLevel;
41364
+ var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
41365
+
41366
+ var continuationCallback = callback(didUserCallbackTimeout);
41367
+ currentTime = exports.unstable_now();
41368
+
41369
+ if (typeof continuationCallback === 'function') {
41370
+ currentTask.callback = continuationCallback;
41371
+ } else {
41372
+
41373
+ if (currentTask === peek(taskQueue)) {
41374
+ pop(taskQueue);
41375
+ }
41376
+ }
41377
+
41378
+ advanceTimers(currentTime);
41379
+ } else {
41380
+ pop(taskQueue);
41381
+ }
41382
+
41383
+ currentTask = peek(taskQueue);
41384
+ } // Return whether there's additional work
41385
+
41386
+
41387
+ if (currentTask !== null) {
41388
+ return true;
41389
+ } else {
41390
+ var firstTimer = peek(timerQueue);
41391
+
41392
+ if (firstTimer !== null) {
41393
+ requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
41394
+ }
41395
+
41396
+ return false;
41397
+ }
41398
+ }
41399
+
41400
+ function unstable_runWithPriority(priorityLevel, eventHandler) {
41401
+ switch (priorityLevel) {
41402
+ case ImmediatePriority:
41403
+ case UserBlockingPriority:
41404
+ case NormalPriority:
41405
+ case LowPriority:
41406
+ case IdlePriority:
41407
+ break;
41408
+
41409
+ default:
41410
+ priorityLevel = NormalPriority;
41411
+ }
41412
+
41413
+ var previousPriorityLevel = currentPriorityLevel;
41414
+ currentPriorityLevel = priorityLevel;
41415
+
41416
+ try {
41417
+ return eventHandler();
41418
+ } finally {
41419
+ currentPriorityLevel = previousPriorityLevel;
41420
+ }
41421
+ }
41422
+
41423
+ function unstable_next(eventHandler) {
41424
+ var priorityLevel;
41425
+
41426
+ switch (currentPriorityLevel) {
41427
+ case ImmediatePriority:
41428
+ case UserBlockingPriority:
41429
+ case NormalPriority:
41430
+ // Shift down to normal priority
41431
+ priorityLevel = NormalPriority;
41432
+ break;
41433
+
41434
+ default:
41435
+ // Anything lower than normal priority should remain at the current level.
41436
+ priorityLevel = currentPriorityLevel;
41437
+ break;
41438
+ }
41439
+
41440
+ var previousPriorityLevel = currentPriorityLevel;
41441
+ currentPriorityLevel = priorityLevel;
41442
+
41443
+ try {
41444
+ return eventHandler();
41445
+ } finally {
41446
+ currentPriorityLevel = previousPriorityLevel;
41447
+ }
41448
+ }
41449
+
41450
+ function unstable_wrapCallback(callback) {
41451
+ var parentPriorityLevel = currentPriorityLevel;
41452
+ return function () {
41453
+ // This is a fork of runWithPriority, inlined for performance.
41454
+ var previousPriorityLevel = currentPriorityLevel;
41455
+ currentPriorityLevel = parentPriorityLevel;
41456
+
41457
+ try {
41458
+ return callback.apply(this, arguments);
41459
+ } finally {
41460
+ currentPriorityLevel = previousPriorityLevel;
41461
+ }
41462
+ };
41463
+ }
41464
+
41465
+ function unstable_scheduleCallback(priorityLevel, callback, options) {
41466
+ var currentTime = exports.unstable_now();
41467
+ var startTime;
41468
+
41469
+ if (typeof options === 'object' && options !== null) {
41470
+ var delay = options.delay;
41471
+
41472
+ if (typeof delay === 'number' && delay > 0) {
41473
+ startTime = currentTime + delay;
41474
+ } else {
41475
+ startTime = currentTime;
41476
+ }
41477
+ } else {
41478
+ startTime = currentTime;
41479
+ }
41480
+
41481
+ var timeout;
41482
+
41483
+ switch (priorityLevel) {
41484
+ case ImmediatePriority:
41485
+ timeout = IMMEDIATE_PRIORITY_TIMEOUT;
41486
+ break;
41487
+
41488
+ case UserBlockingPriority:
41489
+ timeout = USER_BLOCKING_PRIORITY_TIMEOUT;
41490
+ break;
41491
+
41492
+ case IdlePriority:
41493
+ timeout = IDLE_PRIORITY_TIMEOUT;
41494
+ break;
41495
+
41496
+ case LowPriority:
41497
+ timeout = LOW_PRIORITY_TIMEOUT;
41498
+ break;
41499
+
41500
+ case NormalPriority:
41501
+ default:
41502
+ timeout = NORMAL_PRIORITY_TIMEOUT;
41503
+ break;
41504
+ }
41505
+
41506
+ var expirationTime = startTime + timeout;
41507
+ var newTask = {
41508
+ id: taskIdCounter++,
41509
+ callback: callback,
41510
+ priorityLevel: priorityLevel,
41511
+ startTime: startTime,
41512
+ expirationTime: expirationTime,
41513
+ sortIndex: -1
41514
+ };
41515
+
41516
+ if (startTime > currentTime) {
41517
+ // This is a delayed task.
41518
+ newTask.sortIndex = startTime;
41519
+ push(timerQueue, newTask);
41520
+
41521
+ if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
41522
+ // All tasks are delayed, and this is the task with the earliest delay.
41523
+ if (isHostTimeoutScheduled) {
41524
+ // Cancel an existing timeout.
41525
+ cancelHostTimeout();
41526
+ } else {
41527
+ isHostTimeoutScheduled = true;
41528
+ } // Schedule a timeout.
41529
+
41530
+
41531
+ requestHostTimeout(handleTimeout, startTime - currentTime);
41532
+ }
41533
+ } else {
41534
+ newTask.sortIndex = expirationTime;
41535
+ push(taskQueue, newTask);
41536
+ // wait until the next time we yield.
41537
+
41538
+
41539
+ if (!isHostCallbackScheduled && !isPerformingWork) {
41540
+ isHostCallbackScheduled = true;
41541
+ requestHostCallback(flushWork);
41542
+ }
41543
+ }
41544
+
41545
+ return newTask;
41546
+ }
41547
+
41548
+ function unstable_pauseExecution() {
41549
+ }
41550
+
41551
+ function unstable_continueExecution() {
41552
+
41553
+ if (!isHostCallbackScheduled && !isPerformingWork) {
41554
+ isHostCallbackScheduled = true;
41555
+ requestHostCallback(flushWork);
41556
+ }
41557
+ }
41558
+
41559
+ function unstable_getFirstCallbackNode() {
41560
+ return peek(taskQueue);
41561
+ }
41562
+
41563
+ function unstable_cancelCallback(task) {
41564
+ // remove from the queue because you can't remove arbitrary nodes from an
41565
+ // array based heap, only the first one.)
41566
+
41567
+
41568
+ task.callback = null;
41569
+ }
41570
+
41571
+ function unstable_getCurrentPriorityLevel() {
41572
+ return currentPriorityLevel;
41573
+ }
41574
+
41575
+ var isMessageLoopRunning = false;
41576
+ var scheduledHostCallback = null;
41577
+ var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
41578
+ // thread, like user events. By default, it yields multiple times per frame.
41579
+ // It does not attempt to align with frame boundaries, since most tasks don't
41580
+ // need to be frame aligned; for those that do, use requestAnimationFrame.
41581
+
41582
+ var frameInterval = frameYieldMs;
41583
+ var startTime = -1;
41584
+
41585
+ function shouldYieldToHost() {
41586
+ var timeElapsed = exports.unstable_now() - startTime;
41587
+
41588
+ if (timeElapsed < frameInterval) {
41589
+ // The main thread has only been blocked for a really short amount of time;
41590
+ // smaller than a single frame. Don't yield yet.
41591
+ return false;
41592
+ } // The main thread has been blocked for a non-negligible amount of time. We
41593
+
41594
+
41595
+ return true;
41596
+ }
41597
+
41598
+ function requestPaint() {
41599
+
41600
+ }
41601
+
41602
+ function forceFrameRate(fps) {
41603
+ if (fps < 0 || fps > 125) {
41604
+ // Using console['error'] to evade Babel and ESLint
41605
+ console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported');
41606
+ return;
41607
+ }
41608
+
41609
+ if (fps > 0) {
41610
+ frameInterval = Math.floor(1000 / fps);
41611
+ } else {
41612
+ // reset the framerate
41613
+ frameInterval = frameYieldMs;
41614
+ }
41615
+ }
41616
+
41617
+ var performWorkUntilDeadline = function () {
41618
+ if (scheduledHostCallback !== null) {
41619
+ var currentTime = exports.unstable_now(); // Keep track of the start time so we can measure how long the main thread
41620
+ // has been blocked.
41621
+
41622
+ startTime = currentTime;
41623
+ var hasTimeRemaining = true; // If a scheduler task throws, exit the current browser task so the
41624
+ // error can be observed.
41625
+ //
41626
+ // Intentionally not using a try-catch, since that makes some debugging
41627
+ // techniques harder. Instead, if `scheduledHostCallback` errors, then
41628
+ // `hasMoreWork` will remain true, and we'll continue the work loop.
41629
+
41630
+ var hasMoreWork = true;
41631
+
41632
+ try {
41633
+ hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
41634
+ } finally {
41635
+ if (hasMoreWork) {
41636
+ // If there's more work, schedule the next message event at the end
41637
+ // of the preceding one.
41638
+ schedulePerformWorkUntilDeadline();
41639
+ } else {
41640
+ isMessageLoopRunning = false;
41641
+ scheduledHostCallback = null;
41642
+ }
41643
+ }
41644
+ } else {
41645
+ isMessageLoopRunning = false;
41646
+ } // Yielding to the browser will give it a chance to paint, so we can
41647
+ };
41648
+
41649
+ var schedulePerformWorkUntilDeadline;
41650
+
41651
+ if (typeof localSetImmediate === 'function') {
41652
+ // Node.js and old IE.
41653
+ // There's a few reasons for why we prefer setImmediate.
41654
+ //
41655
+ // Unlike MessageChannel, it doesn't prevent a Node.js process from exiting.
41656
+ // (Even though this is a DOM fork of the Scheduler, you could get here
41657
+ // with a mix of Node.js 15+, which has a MessageChannel, and jsdom.)
41658
+ // https://github.com/facebook/react/issues/20756
41659
+ //
41660
+ // But also, it runs earlier which is the semantic we want.
41661
+ // If other browsers ever implement it, it's better to use it.
41662
+ // Although both of these would be inferior to native scheduling.
41663
+ schedulePerformWorkUntilDeadline = function () {
41664
+ localSetImmediate(performWorkUntilDeadline);
41665
+ };
41666
+ } else if (typeof MessageChannel !== 'undefined') {
41667
+ // DOM and Worker environments.
41668
+ // We prefer MessageChannel because of the 4ms setTimeout clamping.
41669
+ var channel = new MessageChannel();
41670
+ var port = channel.port2;
41671
+ channel.port1.onmessage = performWorkUntilDeadline;
41672
+
41673
+ schedulePerformWorkUntilDeadline = function () {
41674
+ port.postMessage(null);
41675
+ };
41676
+ } else {
41677
+ // We should only fallback here in non-browser environments.
41678
+ schedulePerformWorkUntilDeadline = function () {
41679
+ localSetTimeout(performWorkUntilDeadline, 0);
41680
+ };
41681
+ }
41682
+
41683
+ function requestHostCallback(callback) {
41684
+ scheduledHostCallback = callback;
41685
+
41686
+ if (!isMessageLoopRunning) {
41687
+ isMessageLoopRunning = true;
41688
+ schedulePerformWorkUntilDeadline();
41689
+ }
41690
+ }
41691
+
41692
+ function requestHostTimeout(callback, ms) {
41693
+ taskTimeoutID = localSetTimeout(function () {
41694
+ callback(exports.unstable_now());
41695
+ }, ms);
41696
+ }
41697
+
41698
+ function cancelHostTimeout() {
41699
+ localClearTimeout(taskTimeoutID);
41700
+ taskTimeoutID = -1;
41701
+ }
41702
+
41703
+ var unstable_requestPaint = requestPaint;
41704
+ var unstable_Profiling = null;
41705
+
41706
+ exports.unstable_IdlePriority = IdlePriority;
41707
+ exports.unstable_ImmediatePriority = ImmediatePriority;
41708
+ exports.unstable_LowPriority = LowPriority;
41709
+ exports.unstable_NormalPriority = NormalPriority;
41710
+ exports.unstable_Profiling = unstable_Profiling;
41711
+ exports.unstable_UserBlockingPriority = UserBlockingPriority;
41712
+ exports.unstable_cancelCallback = unstable_cancelCallback;
41713
+ exports.unstable_continueExecution = unstable_continueExecution;
41714
+ exports.unstable_forceFrameRate = forceFrameRate;
41715
+ exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
41716
+ exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
41717
+ exports.unstable_next = unstable_next;
41718
+ exports.unstable_pauseExecution = unstable_pauseExecution;
41719
+ exports.unstable_requestPaint = unstable_requestPaint;
41720
+ exports.unstable_runWithPriority = unstable_runWithPriority;
41721
+ exports.unstable_scheduleCallback = unstable_scheduleCallback;
41722
+ exports.unstable_shouldYield = shouldYieldToHost;
41723
+ exports.unstable_wrapCallback = unstable_wrapCallback;
41724
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
41725
+ if (
41726
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
41727
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
41728
+ 'function'
41729
+ ) {
41730
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
41731
+ }
41732
+
41733
+ })();
41734
+ }
41735
+
41736
+
41737
+ /***/ }),
41738
+
41739
+ /***/ "../../../node_modules/scheduler/index.js":
41740
+ /*!************************************************!*\
41741
+ !*** ../../../node_modules/scheduler/index.js ***!
41742
+ \************************************************/
41743
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
41744
+
41745
+ "use strict";
41746
+
41747
+
41748
+ if (false) {} else {
41749
+ module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "../../../node_modules/scheduler/cjs/scheduler.development.js");
41750
+ }
41751
+
41752
+
41753
41753
  /***/ }),
41754
41754
 
41755
41755
  /***/ "../../../node_modules/tiny-invariant/dist/tiny-invariant.esm.js":
@@ -44456,4 +44456,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
44456
44456
 
44457
44457
  /******/ })()
44458
44458
  ;
44459
- //# sourceMappingURL=index.ff4071.js.map
44459
+ //# sourceMappingURL=index.28cec6.js.map