@teamix/pro 1.4.19 → 1.4.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pro.css +1 -1
- package/dist/pro.js +16 -2575
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/dist/pro.js
CHANGED
@@ -1546,7 +1546,8 @@ if (typeof window !== 'undefined' && window.addEventListener && !eventsBinded) {
|
|
1546
1546
|
/* harmony import */ var query_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36322);
|
1547
1547
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59787);
|
1548
1548
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
1549
|
-
/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
1549
|
+
/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18944);
|
1550
|
+
/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_router__WEBPACK_IMPORTED_MODULE_2__);
|
1550
1551
|
var __assign = undefined && undefined.__assign || function () {
|
1551
1552
|
__assign = Object.assign || function (t) {
|
1552
1553
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -45052,956 +45053,6 @@ module.exports = function (obj, predicate) {
|
|
45052
45053
|
return ret;
|
45053
45054
|
};
|
45054
45055
|
|
45055
|
-
/***/ }),
|
45056
|
-
|
45057
|
-
/***/ 71912:
|
45058
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
45059
|
-
|
45060
|
-
"use strict";
|
45061
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
45062
|
-
/* harmony export */ "Ep": () => (/* binding */ createPath),
|
45063
|
-
/* harmony export */ "Hp": () => (/* binding */ locationsAreEqual),
|
45064
|
-
/* harmony export */ "PP": () => (/* binding */ createMemoryHistory),
|
45065
|
-
/* harmony export */ "ob": () => (/* binding */ createLocation)
|
45066
|
-
/* harmony export */ });
|
45067
|
-
/* unused harmony exports createBrowserHistory, createHashHistory, parsePath */
|
45068
|
-
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1968);
|
45069
|
-
/* harmony import */ var resolve_pathname__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52222);
|
45070
|
-
/* harmony import */ var value_equal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5799);
|
45071
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
45072
|
-
|
45073
|
-
|
45074
|
-
|
45075
|
-
|
45076
|
-
|
45077
|
-
|
45078
|
-
|
45079
|
-
function addLeadingSlash(path) {
|
45080
|
-
return path.charAt(0) === '/' ? path : '/' + path;
|
45081
|
-
}
|
45082
|
-
|
45083
|
-
function stripLeadingSlash(path) {
|
45084
|
-
return path.charAt(0) === '/' ? path.substr(1) : path;
|
45085
|
-
}
|
45086
|
-
|
45087
|
-
function hasBasename(path, prefix) {
|
45088
|
-
return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;
|
45089
|
-
}
|
45090
|
-
|
45091
|
-
function stripBasename(path, prefix) {
|
45092
|
-
return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
|
45093
|
-
}
|
45094
|
-
|
45095
|
-
function stripTrailingSlash(path) {
|
45096
|
-
return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
|
45097
|
-
}
|
45098
|
-
|
45099
|
-
function parsePath(path) {
|
45100
|
-
var pathname = path || '/';
|
45101
|
-
var search = '';
|
45102
|
-
var hash = '';
|
45103
|
-
var hashIndex = pathname.indexOf('#');
|
45104
|
-
|
45105
|
-
if (hashIndex !== -1) {
|
45106
|
-
hash = pathname.substr(hashIndex);
|
45107
|
-
pathname = pathname.substr(0, hashIndex);
|
45108
|
-
}
|
45109
|
-
|
45110
|
-
var searchIndex = pathname.indexOf('?');
|
45111
|
-
|
45112
|
-
if (searchIndex !== -1) {
|
45113
|
-
search = pathname.substr(searchIndex);
|
45114
|
-
pathname = pathname.substr(0, searchIndex);
|
45115
|
-
}
|
45116
|
-
|
45117
|
-
return {
|
45118
|
-
pathname: pathname,
|
45119
|
-
search: search === '?' ? '' : search,
|
45120
|
-
hash: hash === '#' ? '' : hash
|
45121
|
-
};
|
45122
|
-
}
|
45123
|
-
|
45124
|
-
function createPath(location) {
|
45125
|
-
var pathname = location.pathname,
|
45126
|
-
search = location.search,
|
45127
|
-
hash = location.hash;
|
45128
|
-
var path = pathname || '/';
|
45129
|
-
if (search && search !== '?') path += search.charAt(0) === '?' ? search : "?" + search;
|
45130
|
-
if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : "#" + hash;
|
45131
|
-
return path;
|
45132
|
-
}
|
45133
|
-
|
45134
|
-
function createLocation(path, state, key, currentLocation) {
|
45135
|
-
var location;
|
45136
|
-
|
45137
|
-
if (typeof path === 'string') {
|
45138
|
-
// Two-arg form: push(path, state)
|
45139
|
-
location = parsePath(path);
|
45140
|
-
location.state = state;
|
45141
|
-
} else {
|
45142
|
-
// One-arg form: push(location)
|
45143
|
-
location = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, path);
|
45144
|
-
if (location.pathname === undefined) location.pathname = '';
|
45145
|
-
|
45146
|
-
if (location.search) {
|
45147
|
-
if (location.search.charAt(0) !== '?') location.search = '?' + location.search;
|
45148
|
-
} else {
|
45149
|
-
location.search = '';
|
45150
|
-
}
|
45151
|
-
|
45152
|
-
if (location.hash) {
|
45153
|
-
if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;
|
45154
|
-
} else {
|
45155
|
-
location.hash = '';
|
45156
|
-
}
|
45157
|
-
|
45158
|
-
if (state !== undefined && location.state === undefined) location.state = state;
|
45159
|
-
}
|
45160
|
-
|
45161
|
-
try {
|
45162
|
-
location.pathname = decodeURI(location.pathname);
|
45163
|
-
} catch (e) {
|
45164
|
-
if (e instanceof URIError) {
|
45165
|
-
throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');
|
45166
|
-
} else {
|
45167
|
-
throw e;
|
45168
|
-
}
|
45169
|
-
}
|
45170
|
-
|
45171
|
-
if (key) location.key = key;
|
45172
|
-
|
45173
|
-
if (currentLocation) {
|
45174
|
-
// Resolve incomplete/relative pathname relative to current location.
|
45175
|
-
if (!location.pathname) {
|
45176
|
-
location.pathname = currentLocation.pathname;
|
45177
|
-
} else if (location.pathname.charAt(0) !== '/') {
|
45178
|
-
location.pathname = (0,resolve_pathname__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(location.pathname, currentLocation.pathname);
|
45179
|
-
}
|
45180
|
-
} else {
|
45181
|
-
// When there is no prior location and pathname is empty, set it to /
|
45182
|
-
if (!location.pathname) {
|
45183
|
-
location.pathname = '/';
|
45184
|
-
}
|
45185
|
-
}
|
45186
|
-
|
45187
|
-
return location;
|
45188
|
-
}
|
45189
|
-
|
45190
|
-
function locationsAreEqual(a, b) {
|
45191
|
-
return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && (0,value_equal__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(a.state, b.state);
|
45192
|
-
}
|
45193
|
-
|
45194
|
-
function createTransitionManager() {
|
45195
|
-
var prompt = null;
|
45196
|
-
|
45197
|
-
function setPrompt(nextPrompt) {
|
45198
|
-
false ? 0 : void 0;
|
45199
|
-
prompt = nextPrompt;
|
45200
|
-
return function () {
|
45201
|
-
if (prompt === nextPrompt) prompt = null;
|
45202
|
-
};
|
45203
|
-
}
|
45204
|
-
|
45205
|
-
function confirmTransitionTo(location, action, getUserConfirmation, callback) {
|
45206
|
-
// TODO: If another transition starts while we're still confirming
|
45207
|
-
// the previous one, we may end up in a weird state. Figure out the
|
45208
|
-
// best way to handle this.
|
45209
|
-
if (prompt != null) {
|
45210
|
-
var result = typeof prompt === 'function' ? prompt(location, action) : prompt;
|
45211
|
-
|
45212
|
-
if (typeof result === 'string') {
|
45213
|
-
if (typeof getUserConfirmation === 'function') {
|
45214
|
-
getUserConfirmation(result, callback);
|
45215
|
-
} else {
|
45216
|
-
false ? 0 : void 0;
|
45217
|
-
callback(true);
|
45218
|
-
}
|
45219
|
-
} else {
|
45220
|
-
// Return false from a transition hook to cancel the transition.
|
45221
|
-
callback(result !== false);
|
45222
|
-
}
|
45223
|
-
} else {
|
45224
|
-
callback(true);
|
45225
|
-
}
|
45226
|
-
}
|
45227
|
-
|
45228
|
-
var listeners = [];
|
45229
|
-
|
45230
|
-
function appendListener(fn) {
|
45231
|
-
var isActive = true;
|
45232
|
-
|
45233
|
-
function listener() {
|
45234
|
-
if (isActive) fn.apply(void 0, arguments);
|
45235
|
-
}
|
45236
|
-
|
45237
|
-
listeners.push(listener);
|
45238
|
-
return function () {
|
45239
|
-
isActive = false;
|
45240
|
-
listeners = listeners.filter(function (item) {
|
45241
|
-
return item !== listener;
|
45242
|
-
});
|
45243
|
-
};
|
45244
|
-
}
|
45245
|
-
|
45246
|
-
function notifyListeners() {
|
45247
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
45248
|
-
args[_key] = arguments[_key];
|
45249
|
-
}
|
45250
|
-
|
45251
|
-
listeners.forEach(function (listener) {
|
45252
|
-
return listener.apply(void 0, args);
|
45253
|
-
});
|
45254
|
-
}
|
45255
|
-
|
45256
|
-
return {
|
45257
|
-
setPrompt: setPrompt,
|
45258
|
-
confirmTransitionTo: confirmTransitionTo,
|
45259
|
-
appendListener: appendListener,
|
45260
|
-
notifyListeners: notifyListeners
|
45261
|
-
};
|
45262
|
-
}
|
45263
|
-
|
45264
|
-
var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
45265
|
-
|
45266
|
-
function getConfirmation(message, callback) {
|
45267
|
-
callback(window.confirm(message)); // eslint-disable-line no-alert
|
45268
|
-
}
|
45269
|
-
/**
|
45270
|
-
* Returns true if the HTML5 history API is supported. Taken from Modernizr.
|
45271
|
-
*
|
45272
|
-
* https://github.com/Modernizr/Modernizr/blob/master/LICENSE
|
45273
|
-
* https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
|
45274
|
-
* changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
|
45275
|
-
*/
|
45276
|
-
|
45277
|
-
|
45278
|
-
function supportsHistory() {
|
45279
|
-
var ua = window.navigator.userAgent;
|
45280
|
-
if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;
|
45281
|
-
return window.history && 'pushState' in window.history;
|
45282
|
-
}
|
45283
|
-
/**
|
45284
|
-
* Returns true if browser fires popstate on hash change.
|
45285
|
-
* IE10 and IE11 do not.
|
45286
|
-
*/
|
45287
|
-
|
45288
|
-
|
45289
|
-
function supportsPopStateOnHashChange() {
|
45290
|
-
return window.navigator.userAgent.indexOf('Trident') === -1;
|
45291
|
-
}
|
45292
|
-
/**
|
45293
|
-
* Returns false if using go(n) with hash history causes a full page reload.
|
45294
|
-
*/
|
45295
|
-
|
45296
|
-
|
45297
|
-
function supportsGoWithoutReloadUsingHash() {
|
45298
|
-
return window.navigator.userAgent.indexOf('Firefox') === -1;
|
45299
|
-
}
|
45300
|
-
/**
|
45301
|
-
* Returns true if a given popstate event is an extraneous WebKit event.
|
45302
|
-
* Accounts for the fact that Chrome on iOS fires real popstate events
|
45303
|
-
* containing undefined state when pressing the back button.
|
45304
|
-
*/
|
45305
|
-
|
45306
|
-
|
45307
|
-
function isExtraneousPopstateEvent(event) {
|
45308
|
-
return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;
|
45309
|
-
}
|
45310
|
-
|
45311
|
-
var PopStateEvent = 'popstate';
|
45312
|
-
var HashChangeEvent = 'hashchange';
|
45313
|
-
|
45314
|
-
function getHistoryState() {
|
45315
|
-
try {
|
45316
|
-
return window.history.state || {};
|
45317
|
-
} catch (e) {
|
45318
|
-
// IE 11 sometimes throws when accessing window.history.state
|
45319
|
-
// See https://github.com/ReactTraining/history/pull/289
|
45320
|
-
return {};
|
45321
|
-
}
|
45322
|
-
}
|
45323
|
-
/**
|
45324
|
-
* Creates a history object that uses the HTML5 history API including
|
45325
|
-
* pushState, replaceState, and the popstate event.
|
45326
|
-
*/
|
45327
|
-
|
45328
|
-
|
45329
|
-
function createBrowserHistory(props) {
|
45330
|
-
if (props === void 0) {
|
45331
|
-
props = {};
|
45332
|
-
}
|
45333
|
-
|
45334
|
-
!canUseDOM ? false ? 0 : invariant(false) : void 0;
|
45335
|
-
var globalHistory = window.history;
|
45336
|
-
var canUseHistory = supportsHistory();
|
45337
|
-
var needsHashChangeListener = !supportsPopStateOnHashChange();
|
45338
|
-
var _props = props,
|
45339
|
-
_props$forceRefresh = _props.forceRefresh,
|
45340
|
-
forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,
|
45341
|
-
_props$getUserConfirm = _props.getUserConfirmation,
|
45342
|
-
getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
|
45343
|
-
_props$keyLength = _props.keyLength,
|
45344
|
-
keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
|
45345
|
-
var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
|
45346
|
-
|
45347
|
-
function getDOMLocation(historyState) {
|
45348
|
-
var _ref = historyState || {},
|
45349
|
-
key = _ref.key,
|
45350
|
-
state = _ref.state;
|
45351
|
-
|
45352
|
-
var _window$location = window.location,
|
45353
|
-
pathname = _window$location.pathname,
|
45354
|
-
search = _window$location.search,
|
45355
|
-
hash = _window$location.hash;
|
45356
|
-
var path = pathname + search + hash;
|
45357
|
-
false ? 0 : void 0;
|
45358
|
-
if (basename) path = stripBasename(path, basename);
|
45359
|
-
return createLocation(path, state, key);
|
45360
|
-
}
|
45361
|
-
|
45362
|
-
function createKey() {
|
45363
|
-
return Math.random().toString(36).substr(2, keyLength);
|
45364
|
-
}
|
45365
|
-
|
45366
|
-
var transitionManager = createTransitionManager();
|
45367
|
-
|
45368
|
-
function setState(nextState) {
|
45369
|
-
_extends(history, nextState);
|
45370
|
-
|
45371
|
-
history.length = globalHistory.length;
|
45372
|
-
transitionManager.notifyListeners(history.location, history.action);
|
45373
|
-
}
|
45374
|
-
|
45375
|
-
function handlePopState(event) {
|
45376
|
-
// Ignore extraneous popstate events in WebKit.
|
45377
|
-
if (isExtraneousPopstateEvent(event)) return;
|
45378
|
-
handlePop(getDOMLocation(event.state));
|
45379
|
-
}
|
45380
|
-
|
45381
|
-
function handleHashChange() {
|
45382
|
-
handlePop(getDOMLocation(getHistoryState()));
|
45383
|
-
}
|
45384
|
-
|
45385
|
-
var forceNextPop = false;
|
45386
|
-
|
45387
|
-
function handlePop(location) {
|
45388
|
-
if (forceNextPop) {
|
45389
|
-
forceNextPop = false;
|
45390
|
-
setState();
|
45391
|
-
} else {
|
45392
|
-
var action = 'POP';
|
45393
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
45394
|
-
if (ok) {
|
45395
|
-
setState({
|
45396
|
-
action: action,
|
45397
|
-
location: location
|
45398
|
-
});
|
45399
|
-
} else {
|
45400
|
-
revertPop(location);
|
45401
|
-
}
|
45402
|
-
});
|
45403
|
-
}
|
45404
|
-
}
|
45405
|
-
|
45406
|
-
function revertPop(fromLocation) {
|
45407
|
-
var toLocation = history.location; // TODO: We could probably make this more reliable by
|
45408
|
-
// keeping a list of keys we've seen in sessionStorage.
|
45409
|
-
// Instead, we just default to 0 for keys we don't know.
|
45410
|
-
|
45411
|
-
var toIndex = allKeys.indexOf(toLocation.key);
|
45412
|
-
if (toIndex === -1) toIndex = 0;
|
45413
|
-
var fromIndex = allKeys.indexOf(fromLocation.key);
|
45414
|
-
if (fromIndex === -1) fromIndex = 0;
|
45415
|
-
var delta = toIndex - fromIndex;
|
45416
|
-
|
45417
|
-
if (delta) {
|
45418
|
-
forceNextPop = true;
|
45419
|
-
go(delta);
|
45420
|
-
}
|
45421
|
-
}
|
45422
|
-
|
45423
|
-
var initialLocation = getDOMLocation(getHistoryState());
|
45424
|
-
var allKeys = [initialLocation.key]; // Public interface
|
45425
|
-
|
45426
|
-
function createHref(location) {
|
45427
|
-
return basename + createPath(location);
|
45428
|
-
}
|
45429
|
-
|
45430
|
-
function push(path, state) {
|
45431
|
-
false ? 0 : void 0;
|
45432
|
-
var action = 'PUSH';
|
45433
|
-
var location = createLocation(path, state, createKey(), history.location);
|
45434
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
45435
|
-
if (!ok) return;
|
45436
|
-
var href = createHref(location);
|
45437
|
-
var key = location.key,
|
45438
|
-
state = location.state;
|
45439
|
-
|
45440
|
-
if (canUseHistory) {
|
45441
|
-
globalHistory.pushState({
|
45442
|
-
key: key,
|
45443
|
-
state: state
|
45444
|
-
}, null, href);
|
45445
|
-
|
45446
|
-
if (forceRefresh) {
|
45447
|
-
window.location.href = href;
|
45448
|
-
} else {
|
45449
|
-
var prevIndex = allKeys.indexOf(history.location.key);
|
45450
|
-
var nextKeys = allKeys.slice(0, prevIndex + 1);
|
45451
|
-
nextKeys.push(location.key);
|
45452
|
-
allKeys = nextKeys;
|
45453
|
-
setState({
|
45454
|
-
action: action,
|
45455
|
-
location: location
|
45456
|
-
});
|
45457
|
-
}
|
45458
|
-
} else {
|
45459
|
-
false ? 0 : void 0;
|
45460
|
-
window.location.href = href;
|
45461
|
-
}
|
45462
|
-
});
|
45463
|
-
}
|
45464
|
-
|
45465
|
-
function replace(path, state) {
|
45466
|
-
false ? 0 : void 0;
|
45467
|
-
var action = 'REPLACE';
|
45468
|
-
var location = createLocation(path, state, createKey(), history.location);
|
45469
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
45470
|
-
if (!ok) return;
|
45471
|
-
var href = createHref(location);
|
45472
|
-
var key = location.key,
|
45473
|
-
state = location.state;
|
45474
|
-
|
45475
|
-
if (canUseHistory) {
|
45476
|
-
globalHistory.replaceState({
|
45477
|
-
key: key,
|
45478
|
-
state: state
|
45479
|
-
}, null, href);
|
45480
|
-
|
45481
|
-
if (forceRefresh) {
|
45482
|
-
window.location.replace(href);
|
45483
|
-
} else {
|
45484
|
-
var prevIndex = allKeys.indexOf(history.location.key);
|
45485
|
-
if (prevIndex !== -1) allKeys[prevIndex] = location.key;
|
45486
|
-
setState({
|
45487
|
-
action: action,
|
45488
|
-
location: location
|
45489
|
-
});
|
45490
|
-
}
|
45491
|
-
} else {
|
45492
|
-
false ? 0 : void 0;
|
45493
|
-
window.location.replace(href);
|
45494
|
-
}
|
45495
|
-
});
|
45496
|
-
}
|
45497
|
-
|
45498
|
-
function go(n) {
|
45499
|
-
globalHistory.go(n);
|
45500
|
-
}
|
45501
|
-
|
45502
|
-
function goBack() {
|
45503
|
-
go(-1);
|
45504
|
-
}
|
45505
|
-
|
45506
|
-
function goForward() {
|
45507
|
-
go(1);
|
45508
|
-
}
|
45509
|
-
|
45510
|
-
var listenerCount = 0;
|
45511
|
-
|
45512
|
-
function checkDOMListeners(delta) {
|
45513
|
-
listenerCount += delta;
|
45514
|
-
|
45515
|
-
if (listenerCount === 1 && delta === 1) {
|
45516
|
-
window.addEventListener(PopStateEvent, handlePopState);
|
45517
|
-
if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);
|
45518
|
-
} else if (listenerCount === 0) {
|
45519
|
-
window.removeEventListener(PopStateEvent, handlePopState);
|
45520
|
-
if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);
|
45521
|
-
}
|
45522
|
-
}
|
45523
|
-
|
45524
|
-
var isBlocked = false;
|
45525
|
-
|
45526
|
-
function block(prompt) {
|
45527
|
-
if (prompt === void 0) {
|
45528
|
-
prompt = false;
|
45529
|
-
}
|
45530
|
-
|
45531
|
-
var unblock = transitionManager.setPrompt(prompt);
|
45532
|
-
|
45533
|
-
if (!isBlocked) {
|
45534
|
-
checkDOMListeners(1);
|
45535
|
-
isBlocked = true;
|
45536
|
-
}
|
45537
|
-
|
45538
|
-
return function () {
|
45539
|
-
if (isBlocked) {
|
45540
|
-
isBlocked = false;
|
45541
|
-
checkDOMListeners(-1);
|
45542
|
-
}
|
45543
|
-
|
45544
|
-
return unblock();
|
45545
|
-
};
|
45546
|
-
}
|
45547
|
-
|
45548
|
-
function listen(listener) {
|
45549
|
-
var unlisten = transitionManager.appendListener(listener);
|
45550
|
-
checkDOMListeners(1);
|
45551
|
-
return function () {
|
45552
|
-
checkDOMListeners(-1);
|
45553
|
-
unlisten();
|
45554
|
-
};
|
45555
|
-
}
|
45556
|
-
|
45557
|
-
var history = {
|
45558
|
-
length: globalHistory.length,
|
45559
|
-
action: 'POP',
|
45560
|
-
location: initialLocation,
|
45561
|
-
createHref: createHref,
|
45562
|
-
push: push,
|
45563
|
-
replace: replace,
|
45564
|
-
go: go,
|
45565
|
-
goBack: goBack,
|
45566
|
-
goForward: goForward,
|
45567
|
-
block: block,
|
45568
|
-
listen: listen
|
45569
|
-
};
|
45570
|
-
return history;
|
45571
|
-
}
|
45572
|
-
|
45573
|
-
var HashChangeEvent$1 = 'hashchange';
|
45574
|
-
var HashPathCoders = {
|
45575
|
-
hashbang: {
|
45576
|
-
encodePath: function encodePath(path) {
|
45577
|
-
return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);
|
45578
|
-
},
|
45579
|
-
decodePath: function decodePath(path) {
|
45580
|
-
return path.charAt(0) === '!' ? path.substr(1) : path;
|
45581
|
-
}
|
45582
|
-
},
|
45583
|
-
noslash: {
|
45584
|
-
encodePath: stripLeadingSlash,
|
45585
|
-
decodePath: addLeadingSlash
|
45586
|
-
},
|
45587
|
-
slash: {
|
45588
|
-
encodePath: addLeadingSlash,
|
45589
|
-
decodePath: addLeadingSlash
|
45590
|
-
}
|
45591
|
-
};
|
45592
|
-
|
45593
|
-
function stripHash(url) {
|
45594
|
-
var hashIndex = url.indexOf('#');
|
45595
|
-
return hashIndex === -1 ? url : url.slice(0, hashIndex);
|
45596
|
-
}
|
45597
|
-
|
45598
|
-
function getHashPath() {
|
45599
|
-
// We can't use window.location.hash here because it's not
|
45600
|
-
// consistent across browsers - Firefox will pre-decode it!
|
45601
|
-
var href = window.location.href;
|
45602
|
-
var hashIndex = href.indexOf('#');
|
45603
|
-
return hashIndex === -1 ? '' : href.substring(hashIndex + 1);
|
45604
|
-
}
|
45605
|
-
|
45606
|
-
function pushHashPath(path) {
|
45607
|
-
window.location.hash = path;
|
45608
|
-
}
|
45609
|
-
|
45610
|
-
function replaceHashPath(path) {
|
45611
|
-
window.location.replace(stripHash(window.location.href) + '#' + path);
|
45612
|
-
}
|
45613
|
-
|
45614
|
-
function createHashHistory(props) {
|
45615
|
-
if (props === void 0) {
|
45616
|
-
props = {};
|
45617
|
-
}
|
45618
|
-
|
45619
|
-
!canUseDOM ? false ? 0 : invariant(false) : void 0;
|
45620
|
-
var globalHistory = window.history;
|
45621
|
-
var canGoWithoutReload = supportsGoWithoutReloadUsingHash();
|
45622
|
-
var _props = props,
|
45623
|
-
_props$getUserConfirm = _props.getUserConfirmation,
|
45624
|
-
getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
|
45625
|
-
_props$hashType = _props.hashType,
|
45626
|
-
hashType = _props$hashType === void 0 ? 'slash' : _props$hashType;
|
45627
|
-
var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
|
45628
|
-
var _HashPathCoders$hashT = HashPathCoders[hashType],
|
45629
|
-
encodePath = _HashPathCoders$hashT.encodePath,
|
45630
|
-
decodePath = _HashPathCoders$hashT.decodePath;
|
45631
|
-
|
45632
|
-
function getDOMLocation() {
|
45633
|
-
var path = decodePath(getHashPath());
|
45634
|
-
false ? 0 : void 0;
|
45635
|
-
if (basename) path = stripBasename(path, basename);
|
45636
|
-
return createLocation(path);
|
45637
|
-
}
|
45638
|
-
|
45639
|
-
var transitionManager = createTransitionManager();
|
45640
|
-
|
45641
|
-
function setState(nextState) {
|
45642
|
-
_extends(history, nextState);
|
45643
|
-
|
45644
|
-
history.length = globalHistory.length;
|
45645
|
-
transitionManager.notifyListeners(history.location, history.action);
|
45646
|
-
}
|
45647
|
-
|
45648
|
-
var forceNextPop = false;
|
45649
|
-
var ignorePath = null;
|
45650
|
-
|
45651
|
-
function locationsAreEqual$$1(a, b) {
|
45652
|
-
return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash;
|
45653
|
-
}
|
45654
|
-
|
45655
|
-
function handleHashChange() {
|
45656
|
-
var path = getHashPath();
|
45657
|
-
var encodedPath = encodePath(path);
|
45658
|
-
|
45659
|
-
if (path !== encodedPath) {
|
45660
|
-
// Ensure we always have a properly-encoded hash.
|
45661
|
-
replaceHashPath(encodedPath);
|
45662
|
-
} else {
|
45663
|
-
var location = getDOMLocation();
|
45664
|
-
var prevLocation = history.location;
|
45665
|
-
if (!forceNextPop && locationsAreEqual$$1(prevLocation, location)) return; // A hashchange doesn't always == location change.
|
45666
|
-
|
45667
|
-
if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.
|
45668
|
-
|
45669
|
-
ignorePath = null;
|
45670
|
-
handlePop(location);
|
45671
|
-
}
|
45672
|
-
}
|
45673
|
-
|
45674
|
-
function handlePop(location) {
|
45675
|
-
if (forceNextPop) {
|
45676
|
-
forceNextPop = false;
|
45677
|
-
setState();
|
45678
|
-
} else {
|
45679
|
-
var action = 'POP';
|
45680
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
45681
|
-
if (ok) {
|
45682
|
-
setState({
|
45683
|
-
action: action,
|
45684
|
-
location: location
|
45685
|
-
});
|
45686
|
-
} else {
|
45687
|
-
revertPop(location);
|
45688
|
-
}
|
45689
|
-
});
|
45690
|
-
}
|
45691
|
-
}
|
45692
|
-
|
45693
|
-
function revertPop(fromLocation) {
|
45694
|
-
var toLocation = history.location; // TODO: We could probably make this more reliable by
|
45695
|
-
// keeping a list of paths we've seen in sessionStorage.
|
45696
|
-
// Instead, we just default to 0 for paths we don't know.
|
45697
|
-
|
45698
|
-
var toIndex = allPaths.lastIndexOf(createPath(toLocation));
|
45699
|
-
if (toIndex === -1) toIndex = 0;
|
45700
|
-
var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));
|
45701
|
-
if (fromIndex === -1) fromIndex = 0;
|
45702
|
-
var delta = toIndex - fromIndex;
|
45703
|
-
|
45704
|
-
if (delta) {
|
45705
|
-
forceNextPop = true;
|
45706
|
-
go(delta);
|
45707
|
-
}
|
45708
|
-
} // Ensure the hash is encoded properly before doing anything else.
|
45709
|
-
|
45710
|
-
|
45711
|
-
var path = getHashPath();
|
45712
|
-
var encodedPath = encodePath(path);
|
45713
|
-
if (path !== encodedPath) replaceHashPath(encodedPath);
|
45714
|
-
var initialLocation = getDOMLocation();
|
45715
|
-
var allPaths = [createPath(initialLocation)]; // Public interface
|
45716
|
-
|
45717
|
-
function createHref(location) {
|
45718
|
-
var baseTag = document.querySelector('base');
|
45719
|
-
var href = '';
|
45720
|
-
|
45721
|
-
if (baseTag && baseTag.getAttribute('href')) {
|
45722
|
-
href = stripHash(window.location.href);
|
45723
|
-
}
|
45724
|
-
|
45725
|
-
return href + '#' + encodePath(basename + createPath(location));
|
45726
|
-
}
|
45727
|
-
|
45728
|
-
function push(path, state) {
|
45729
|
-
false ? 0 : void 0;
|
45730
|
-
var action = 'PUSH';
|
45731
|
-
var location = createLocation(path, undefined, undefined, history.location);
|
45732
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
45733
|
-
if (!ok) return;
|
45734
|
-
var path = createPath(location);
|
45735
|
-
var encodedPath = encodePath(basename + path);
|
45736
|
-
var hashChanged = getHashPath() !== encodedPath;
|
45737
|
-
|
45738
|
-
if (hashChanged) {
|
45739
|
-
// We cannot tell if a hashchange was caused by a PUSH, so we'd
|
45740
|
-
// rather setState here and ignore the hashchange. The caveat here
|
45741
|
-
// is that other hash histories in the page will consider it a POP.
|
45742
|
-
ignorePath = path;
|
45743
|
-
pushHashPath(encodedPath);
|
45744
|
-
var prevIndex = allPaths.lastIndexOf(createPath(history.location));
|
45745
|
-
var nextPaths = allPaths.slice(0, prevIndex + 1);
|
45746
|
-
nextPaths.push(path);
|
45747
|
-
allPaths = nextPaths;
|
45748
|
-
setState({
|
45749
|
-
action: action,
|
45750
|
-
location: location
|
45751
|
-
});
|
45752
|
-
} else {
|
45753
|
-
false ? 0 : void 0;
|
45754
|
-
setState();
|
45755
|
-
}
|
45756
|
-
});
|
45757
|
-
}
|
45758
|
-
|
45759
|
-
function replace(path, state) {
|
45760
|
-
false ? 0 : void 0;
|
45761
|
-
var action = 'REPLACE';
|
45762
|
-
var location = createLocation(path, undefined, undefined, history.location);
|
45763
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
45764
|
-
if (!ok) return;
|
45765
|
-
var path = createPath(location);
|
45766
|
-
var encodedPath = encodePath(basename + path);
|
45767
|
-
var hashChanged = getHashPath() !== encodedPath;
|
45768
|
-
|
45769
|
-
if (hashChanged) {
|
45770
|
-
// We cannot tell if a hashchange was caused by a REPLACE, so we'd
|
45771
|
-
// rather setState here and ignore the hashchange. The caveat here
|
45772
|
-
// is that other hash histories in the page will consider it a POP.
|
45773
|
-
ignorePath = path;
|
45774
|
-
replaceHashPath(encodedPath);
|
45775
|
-
}
|
45776
|
-
|
45777
|
-
var prevIndex = allPaths.indexOf(createPath(history.location));
|
45778
|
-
if (prevIndex !== -1) allPaths[prevIndex] = path;
|
45779
|
-
setState({
|
45780
|
-
action: action,
|
45781
|
-
location: location
|
45782
|
-
});
|
45783
|
-
});
|
45784
|
-
}
|
45785
|
-
|
45786
|
-
function go(n) {
|
45787
|
-
false ? 0 : void 0;
|
45788
|
-
globalHistory.go(n);
|
45789
|
-
}
|
45790
|
-
|
45791
|
-
function goBack() {
|
45792
|
-
go(-1);
|
45793
|
-
}
|
45794
|
-
|
45795
|
-
function goForward() {
|
45796
|
-
go(1);
|
45797
|
-
}
|
45798
|
-
|
45799
|
-
var listenerCount = 0;
|
45800
|
-
|
45801
|
-
function checkDOMListeners(delta) {
|
45802
|
-
listenerCount += delta;
|
45803
|
-
|
45804
|
-
if (listenerCount === 1 && delta === 1) {
|
45805
|
-
window.addEventListener(HashChangeEvent$1, handleHashChange);
|
45806
|
-
} else if (listenerCount === 0) {
|
45807
|
-
window.removeEventListener(HashChangeEvent$1, handleHashChange);
|
45808
|
-
}
|
45809
|
-
}
|
45810
|
-
|
45811
|
-
var isBlocked = false;
|
45812
|
-
|
45813
|
-
function block(prompt) {
|
45814
|
-
if (prompt === void 0) {
|
45815
|
-
prompt = false;
|
45816
|
-
}
|
45817
|
-
|
45818
|
-
var unblock = transitionManager.setPrompt(prompt);
|
45819
|
-
|
45820
|
-
if (!isBlocked) {
|
45821
|
-
checkDOMListeners(1);
|
45822
|
-
isBlocked = true;
|
45823
|
-
}
|
45824
|
-
|
45825
|
-
return function () {
|
45826
|
-
if (isBlocked) {
|
45827
|
-
isBlocked = false;
|
45828
|
-
checkDOMListeners(-1);
|
45829
|
-
}
|
45830
|
-
|
45831
|
-
return unblock();
|
45832
|
-
};
|
45833
|
-
}
|
45834
|
-
|
45835
|
-
function listen(listener) {
|
45836
|
-
var unlisten = transitionManager.appendListener(listener);
|
45837
|
-
checkDOMListeners(1);
|
45838
|
-
return function () {
|
45839
|
-
checkDOMListeners(-1);
|
45840
|
-
unlisten();
|
45841
|
-
};
|
45842
|
-
}
|
45843
|
-
|
45844
|
-
var history = {
|
45845
|
-
length: globalHistory.length,
|
45846
|
-
action: 'POP',
|
45847
|
-
location: initialLocation,
|
45848
|
-
createHref: createHref,
|
45849
|
-
push: push,
|
45850
|
-
replace: replace,
|
45851
|
-
go: go,
|
45852
|
-
goBack: goBack,
|
45853
|
-
goForward: goForward,
|
45854
|
-
block: block,
|
45855
|
-
listen: listen
|
45856
|
-
};
|
45857
|
-
return history;
|
45858
|
-
}
|
45859
|
-
|
45860
|
-
function clamp(n, lowerBound, upperBound) {
|
45861
|
-
return Math.min(Math.max(n, lowerBound), upperBound);
|
45862
|
-
}
|
45863
|
-
/**
|
45864
|
-
* Creates a history object that stores locations in memory.
|
45865
|
-
*/
|
45866
|
-
|
45867
|
-
|
45868
|
-
function createMemoryHistory(props) {
|
45869
|
-
if (props === void 0) {
|
45870
|
-
props = {};
|
45871
|
-
}
|
45872
|
-
|
45873
|
-
var _props = props,
|
45874
|
-
getUserConfirmation = _props.getUserConfirmation,
|
45875
|
-
_props$initialEntries = _props.initialEntries,
|
45876
|
-
initialEntries = _props$initialEntries === void 0 ? ['/'] : _props$initialEntries,
|
45877
|
-
_props$initialIndex = _props.initialIndex,
|
45878
|
-
initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex,
|
45879
|
-
_props$keyLength = _props.keyLength,
|
45880
|
-
keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
|
45881
|
-
var transitionManager = createTransitionManager();
|
45882
|
-
|
45883
|
-
function setState(nextState) {
|
45884
|
-
(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(history, nextState);
|
45885
|
-
|
45886
|
-
history.length = history.entries.length;
|
45887
|
-
transitionManager.notifyListeners(history.location, history.action);
|
45888
|
-
}
|
45889
|
-
|
45890
|
-
function createKey() {
|
45891
|
-
return Math.random().toString(36).substr(2, keyLength);
|
45892
|
-
}
|
45893
|
-
|
45894
|
-
var index = clamp(initialIndex, 0, initialEntries.length - 1);
|
45895
|
-
var entries = initialEntries.map(function (entry) {
|
45896
|
-
return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());
|
45897
|
-
}); // Public interface
|
45898
|
-
|
45899
|
-
var createHref = createPath;
|
45900
|
-
|
45901
|
-
function push(path, state) {
|
45902
|
-
false ? 0 : void 0;
|
45903
|
-
var action = 'PUSH';
|
45904
|
-
var location = createLocation(path, state, createKey(), history.location);
|
45905
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
45906
|
-
if (!ok) return;
|
45907
|
-
var prevIndex = history.index;
|
45908
|
-
var nextIndex = prevIndex + 1;
|
45909
|
-
var nextEntries = history.entries.slice(0);
|
45910
|
-
|
45911
|
-
if (nextEntries.length > nextIndex) {
|
45912
|
-
nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);
|
45913
|
-
} else {
|
45914
|
-
nextEntries.push(location);
|
45915
|
-
}
|
45916
|
-
|
45917
|
-
setState({
|
45918
|
-
action: action,
|
45919
|
-
location: location,
|
45920
|
-
index: nextIndex,
|
45921
|
-
entries: nextEntries
|
45922
|
-
});
|
45923
|
-
});
|
45924
|
-
}
|
45925
|
-
|
45926
|
-
function replace(path, state) {
|
45927
|
-
false ? 0 : void 0;
|
45928
|
-
var action = 'REPLACE';
|
45929
|
-
var location = createLocation(path, state, createKey(), history.location);
|
45930
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
45931
|
-
if (!ok) return;
|
45932
|
-
history.entries[history.index] = location;
|
45933
|
-
setState({
|
45934
|
-
action: action,
|
45935
|
-
location: location
|
45936
|
-
});
|
45937
|
-
});
|
45938
|
-
}
|
45939
|
-
|
45940
|
-
function go(n) {
|
45941
|
-
var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);
|
45942
|
-
var action = 'POP';
|
45943
|
-
var location = history.entries[nextIndex];
|
45944
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
45945
|
-
if (ok) {
|
45946
|
-
setState({
|
45947
|
-
action: action,
|
45948
|
-
location: location,
|
45949
|
-
index: nextIndex
|
45950
|
-
});
|
45951
|
-
} else {
|
45952
|
-
// Mimic the behavior of DOM histories by
|
45953
|
-
// causing a render after a cancelled POP.
|
45954
|
-
setState();
|
45955
|
-
}
|
45956
|
-
});
|
45957
|
-
}
|
45958
|
-
|
45959
|
-
function goBack() {
|
45960
|
-
go(-1);
|
45961
|
-
}
|
45962
|
-
|
45963
|
-
function goForward() {
|
45964
|
-
go(1);
|
45965
|
-
}
|
45966
|
-
|
45967
|
-
function canGo(n) {
|
45968
|
-
var nextIndex = history.index + n;
|
45969
|
-
return nextIndex >= 0 && nextIndex < history.entries.length;
|
45970
|
-
}
|
45971
|
-
|
45972
|
-
function block(prompt) {
|
45973
|
-
if (prompt === void 0) {
|
45974
|
-
prompt = false;
|
45975
|
-
}
|
45976
|
-
|
45977
|
-
return transitionManager.setPrompt(prompt);
|
45978
|
-
}
|
45979
|
-
|
45980
|
-
function listen(listener) {
|
45981
|
-
return transitionManager.appendListener(listener);
|
45982
|
-
}
|
45983
|
-
|
45984
|
-
var history = {
|
45985
|
-
length: entries.length,
|
45986
|
-
action: 'POP',
|
45987
|
-
location: entries[index],
|
45988
|
-
index: index,
|
45989
|
-
entries: entries,
|
45990
|
-
createHref: createHref,
|
45991
|
-
push: push,
|
45992
|
-
replace: replace,
|
45993
|
-
go: go,
|
45994
|
-
goBack: goBack,
|
45995
|
-
goForward: goForward,
|
45996
|
-
canGo: canGo,
|
45997
|
-
block: block,
|
45998
|
-
listen: listen
|
45999
|
-
};
|
46000
|
-
return history;
|
46001
|
-
}
|
46002
|
-
|
46003
|
-
|
46004
|
-
|
46005
45056
|
/***/ }),
|
46006
45057
|
|
46007
45058
|
/***/ 45682:
|
@@ -47196,15 +46247,6 @@ module.exports = invariant;
|
|
47196
46247
|
|
47197
46248
|
/***/ }),
|
47198
46249
|
|
47199
|
-
/***/ 18362:
|
47200
|
-
/***/ ((module) => {
|
47201
|
-
|
47202
|
-
module.exports = Array.isArray || function (arr) {
|
47203
|
-
return Object.prototype.toString.call(arr) == '[object Array]';
|
47204
|
-
};
|
47205
|
-
|
47206
|
-
/***/ }),
|
47207
|
-
|
47208
46250
|
/***/ 79724:
|
47209
46251
|
/***/ ((module, exports, __webpack_require__) => {
|
47210
46252
|
|
@@ -55452,193 +54494,6 @@ function lowerCase(str) {
|
|
55452
54494
|
|
55453
54495
|
/***/ }),
|
55454
54496
|
|
55455
|
-
/***/ 94490:
|
55456
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
55457
|
-
|
55458
|
-
"use strict";
|
55459
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
55460
|
-
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
55461
|
-
/* harmony export */ });
|
55462
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
|
55463
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
55464
|
-
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6165);
|
55465
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98691);
|
55466
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
55467
|
-
|
55468
|
-
|
55469
|
-
|
55470
|
-
|
55471
|
-
var MAX_SIGNED_31_BIT_INT = 1073741823;
|
55472
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g : {};
|
55473
|
-
|
55474
|
-
function getUniqueId() {
|
55475
|
-
var key = '__global_unique_id__';
|
55476
|
-
return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;
|
55477
|
-
}
|
55478
|
-
|
55479
|
-
function objectIs(x, y) {
|
55480
|
-
if (x === y) {
|
55481
|
-
return x !== 0 || 1 / x === 1 / y;
|
55482
|
-
} else {
|
55483
|
-
return x !== x && y !== y;
|
55484
|
-
}
|
55485
|
-
}
|
55486
|
-
|
55487
|
-
function createEventEmitter(value) {
|
55488
|
-
var handlers = [];
|
55489
|
-
return {
|
55490
|
-
on: function on(handler) {
|
55491
|
-
handlers.push(handler);
|
55492
|
-
},
|
55493
|
-
off: function off(handler) {
|
55494
|
-
handlers = handlers.filter(function (h) {
|
55495
|
-
return h !== handler;
|
55496
|
-
});
|
55497
|
-
},
|
55498
|
-
get: function get() {
|
55499
|
-
return value;
|
55500
|
-
},
|
55501
|
-
set: function set(newValue, changedBits) {
|
55502
|
-
value = newValue;
|
55503
|
-
handlers.forEach(function (handler) {
|
55504
|
-
return handler(value, changedBits);
|
55505
|
-
});
|
55506
|
-
}
|
55507
|
-
};
|
55508
|
-
}
|
55509
|
-
|
55510
|
-
function onlyChild(children) {
|
55511
|
-
return Array.isArray(children) ? children[0] : children;
|
55512
|
-
}
|
55513
|
-
|
55514
|
-
function createReactContext(defaultValue, calculateChangedBits) {
|
55515
|
-
var _Provider$childContex, _Consumer$contextType;
|
55516
|
-
|
55517
|
-
var contextProp = '__create-react-context-' + getUniqueId() + '__';
|
55518
|
-
|
55519
|
-
var Provider = /*#__PURE__*/function (_Component) {
|
55520
|
-
(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(Provider, _Component);
|
55521
|
-
|
55522
|
-
function Provider() {
|
55523
|
-
var _this;
|
55524
|
-
|
55525
|
-
_this = _Component.apply(this, arguments) || this;
|
55526
|
-
_this.emitter = createEventEmitter(_this.props.value);
|
55527
|
-
return _this;
|
55528
|
-
}
|
55529
|
-
|
55530
|
-
var _proto = Provider.prototype;
|
55531
|
-
|
55532
|
-
_proto.getChildContext = function getChildContext() {
|
55533
|
-
var _ref;
|
55534
|
-
|
55535
|
-
return _ref = {}, _ref[contextProp] = this.emitter, _ref;
|
55536
|
-
};
|
55537
|
-
|
55538
|
-
_proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
55539
|
-
if (this.props.value !== nextProps.value) {
|
55540
|
-
var oldValue = this.props.value;
|
55541
|
-
var newValue = nextProps.value;
|
55542
|
-
var changedBits;
|
55543
|
-
|
55544
|
-
if (objectIs(oldValue, newValue)) {
|
55545
|
-
changedBits = 0;
|
55546
|
-
} else {
|
55547
|
-
changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
|
55548
|
-
|
55549
|
-
if (false) {}
|
55550
|
-
|
55551
|
-
changedBits |= 0;
|
55552
|
-
|
55553
|
-
if (changedBits !== 0) {
|
55554
|
-
this.emitter.set(nextProps.value, changedBits);
|
55555
|
-
}
|
55556
|
-
}
|
55557
|
-
}
|
55558
|
-
};
|
55559
|
-
|
55560
|
-
_proto.render = function render() {
|
55561
|
-
return this.props.children;
|
55562
|
-
};
|
55563
|
-
|
55564
|
-
return Provider;
|
55565
|
-
}(react__WEBPACK_IMPORTED_MODULE_0__.Component);
|
55566
|
-
|
55567
|
-
Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object.isRequired), _Provider$childContex);
|
55568
|
-
|
55569
|
-
var Consumer = /*#__PURE__*/function (_Component2) {
|
55570
|
-
(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(Consumer, _Component2);
|
55571
|
-
|
55572
|
-
function Consumer() {
|
55573
|
-
var _this2;
|
55574
|
-
|
55575
|
-
_this2 = _Component2.apply(this, arguments) || this;
|
55576
|
-
_this2.state = {
|
55577
|
-
value: _this2.getValue()
|
55578
|
-
};
|
55579
|
-
|
55580
|
-
_this2.onUpdate = function (newValue, changedBits) {
|
55581
|
-
var observedBits = _this2.observedBits | 0;
|
55582
|
-
|
55583
|
-
if ((observedBits & changedBits) !== 0) {
|
55584
|
-
_this2.setState({
|
55585
|
-
value: _this2.getValue()
|
55586
|
-
});
|
55587
|
-
}
|
55588
|
-
};
|
55589
|
-
|
55590
|
-
return _this2;
|
55591
|
-
}
|
55592
|
-
|
55593
|
-
var _proto2 = Consumer.prototype;
|
55594
|
-
|
55595
|
-
_proto2.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
55596
|
-
var observedBits = nextProps.observedBits;
|
55597
|
-
this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
|
55598
|
-
};
|
55599
|
-
|
55600
|
-
_proto2.componentDidMount = function componentDidMount() {
|
55601
|
-
if (this.context[contextProp]) {
|
55602
|
-
this.context[contextProp].on(this.onUpdate);
|
55603
|
-
}
|
55604
|
-
|
55605
|
-
var observedBits = this.props.observedBits;
|
55606
|
-
this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
|
55607
|
-
};
|
55608
|
-
|
55609
|
-
_proto2.componentWillUnmount = function componentWillUnmount() {
|
55610
|
-
if (this.context[contextProp]) {
|
55611
|
-
this.context[contextProp].off(this.onUpdate);
|
55612
|
-
}
|
55613
|
-
};
|
55614
|
-
|
55615
|
-
_proto2.getValue = function getValue() {
|
55616
|
-
if (this.context[contextProp]) {
|
55617
|
-
return this.context[contextProp].get();
|
55618
|
-
} else {
|
55619
|
-
return defaultValue;
|
55620
|
-
}
|
55621
|
-
};
|
55622
|
-
|
55623
|
-
_proto2.render = function render() {
|
55624
|
-
return onlyChild(this.props.children)(this.state.value);
|
55625
|
-
};
|
55626
|
-
|
55627
|
-
return Consumer;
|
55628
|
-
}(react__WEBPACK_IMPORTED_MODULE_0__.Component);
|
55629
|
-
|
55630
|
-
Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object), _Consumer$contextType);
|
55631
|
-
return {
|
55632
|
-
Provider: Provider,
|
55633
|
-
Consumer: Consumer
|
55634
|
-
};
|
55635
|
-
}
|
55636
|
-
|
55637
|
-
var index = (react__WEBPACK_IMPORTED_MODULE_0___default().createContext) || createReactContext;
|
55638
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (index);
|
55639
|
-
|
55640
|
-
/***/ }),
|
55641
|
-
|
55642
54497
|
/***/ 62901:
|
55643
54498
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
55644
54499
|
|
@@ -55837,455 +54692,6 @@ function pascalCase(input, options) {
|
|
55837
54692
|
|
55838
54693
|
/***/ }),
|
55839
54694
|
|
55840
|
-
/***/ 2125:
|
55841
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
55842
|
-
|
55843
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
55844
|
-
|
55845
|
-
var isarray = __webpack_require__(18362);
|
55846
|
-
/**
|
55847
|
-
* Expose `pathToRegexp`.
|
55848
|
-
*/
|
55849
|
-
|
55850
|
-
|
55851
|
-
module.exports = pathToRegexp;
|
55852
|
-
module.exports.parse = parse;
|
55853
|
-
module.exports.compile = compile;
|
55854
|
-
module.exports.tokensToFunction = tokensToFunction;
|
55855
|
-
module.exports.tokensToRegExp = tokensToRegExp;
|
55856
|
-
/**
|
55857
|
-
* The main path matching regexp utility.
|
55858
|
-
*
|
55859
|
-
* @type {RegExp}
|
55860
|
-
*/
|
55861
|
-
|
55862
|
-
var PATH_REGEXP = new RegExp([// Match escaped characters that would otherwise appear in future matches.
|
55863
|
-
// This allows the user to escape special characters that won't transform.
|
55864
|
-
'(\\\\.)', // Match Express-style parameters and un-named parameters with a prefix
|
55865
|
-
// and optional suffixes. Matches appear as:
|
55866
|
-
//
|
55867
|
-
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
|
55868
|
-
// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
|
55869
|
-
// "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
|
55870
|
-
'([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'].join('|'), 'g');
|
55871
|
-
/**
|
55872
|
-
* Parse a string for the raw tokens.
|
55873
|
-
*
|
55874
|
-
* @param {string} str
|
55875
|
-
* @param {Object=} options
|
55876
|
-
* @return {!Array}
|
55877
|
-
*/
|
55878
|
-
|
55879
|
-
function parse(str, options) {
|
55880
|
-
var tokens = [];
|
55881
|
-
var key = 0;
|
55882
|
-
var index = 0;
|
55883
|
-
var path = '';
|
55884
|
-
var defaultDelimiter = options && options.delimiter || '/';
|
55885
|
-
var res;
|
55886
|
-
|
55887
|
-
while ((res = PATH_REGEXP.exec(str)) != null) {
|
55888
|
-
var m = res[0];
|
55889
|
-
var escaped = res[1];
|
55890
|
-
var offset = res.index;
|
55891
|
-
path += str.slice(index, offset);
|
55892
|
-
index = offset + m.length; // Ignore already escaped sequences.
|
55893
|
-
|
55894
|
-
if (escaped) {
|
55895
|
-
path += escaped[1];
|
55896
|
-
continue;
|
55897
|
-
}
|
55898
|
-
|
55899
|
-
var next = str[index];
|
55900
|
-
var prefix = res[2];
|
55901
|
-
var name = res[3];
|
55902
|
-
var capture = res[4];
|
55903
|
-
var group = res[5];
|
55904
|
-
var modifier = res[6];
|
55905
|
-
var asterisk = res[7]; // Push the current path onto the tokens.
|
55906
|
-
|
55907
|
-
if (path) {
|
55908
|
-
tokens.push(path);
|
55909
|
-
path = '';
|
55910
|
-
}
|
55911
|
-
|
55912
|
-
var partial = prefix != null && next != null && next !== prefix;
|
55913
|
-
var repeat = modifier === '+' || modifier === '*';
|
55914
|
-
var optional = modifier === '?' || modifier === '*';
|
55915
|
-
var delimiter = res[2] || defaultDelimiter;
|
55916
|
-
var pattern = capture || group;
|
55917
|
-
tokens.push({
|
55918
|
-
name: name || key++,
|
55919
|
-
prefix: prefix || '',
|
55920
|
-
delimiter: delimiter,
|
55921
|
-
optional: optional,
|
55922
|
-
repeat: repeat,
|
55923
|
-
partial: partial,
|
55924
|
-
asterisk: !!asterisk,
|
55925
|
-
pattern: pattern ? escapeGroup(pattern) : asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?'
|
55926
|
-
});
|
55927
|
-
} // Match any characters still remaining.
|
55928
|
-
|
55929
|
-
|
55930
|
-
if (index < str.length) {
|
55931
|
-
path += str.substr(index);
|
55932
|
-
} // If the path exists, push it onto the end.
|
55933
|
-
|
55934
|
-
|
55935
|
-
if (path) {
|
55936
|
-
tokens.push(path);
|
55937
|
-
}
|
55938
|
-
|
55939
|
-
return tokens;
|
55940
|
-
}
|
55941
|
-
/**
|
55942
|
-
* Compile a string to a template function for the path.
|
55943
|
-
*
|
55944
|
-
* @param {string} str
|
55945
|
-
* @param {Object=} options
|
55946
|
-
* @return {!function(Object=, Object=)}
|
55947
|
-
*/
|
55948
|
-
|
55949
|
-
|
55950
|
-
function compile(str, options) {
|
55951
|
-
return tokensToFunction(parse(str, options), options);
|
55952
|
-
}
|
55953
|
-
/**
|
55954
|
-
* Prettier encoding of URI path segments.
|
55955
|
-
*
|
55956
|
-
* @param {string}
|
55957
|
-
* @return {string}
|
55958
|
-
*/
|
55959
|
-
|
55960
|
-
|
55961
|
-
function encodeURIComponentPretty(str) {
|
55962
|
-
return encodeURI(str).replace(/[\/?#]/g, function (c) {
|
55963
|
-
return '%' + c.charCodeAt(0).toString(16).toUpperCase();
|
55964
|
-
});
|
55965
|
-
}
|
55966
|
-
/**
|
55967
|
-
* Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
|
55968
|
-
*
|
55969
|
-
* @param {string}
|
55970
|
-
* @return {string}
|
55971
|
-
*/
|
55972
|
-
|
55973
|
-
|
55974
|
-
function encodeAsterisk(str) {
|
55975
|
-
return encodeURI(str).replace(/[?#]/g, function (c) {
|
55976
|
-
return '%' + c.charCodeAt(0).toString(16).toUpperCase();
|
55977
|
-
});
|
55978
|
-
}
|
55979
|
-
/**
|
55980
|
-
* Expose a method for transforming tokens into the path function.
|
55981
|
-
*/
|
55982
|
-
|
55983
|
-
|
55984
|
-
function tokensToFunction(tokens, options) {
|
55985
|
-
// Compile all the tokens into regexps.
|
55986
|
-
var matches = new Array(tokens.length); // Compile all the patterns before compilation.
|
55987
|
-
|
55988
|
-
for (var i = 0; i < tokens.length; i++) {
|
55989
|
-
if (_typeof(tokens[i]) === 'object') {
|
55990
|
-
matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options));
|
55991
|
-
}
|
55992
|
-
}
|
55993
|
-
|
55994
|
-
return function (obj, opts) {
|
55995
|
-
var path = '';
|
55996
|
-
var data = obj || {};
|
55997
|
-
var options = opts || {};
|
55998
|
-
var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent;
|
55999
|
-
|
56000
|
-
for (var i = 0; i < tokens.length; i++) {
|
56001
|
-
var token = tokens[i];
|
56002
|
-
|
56003
|
-
if (typeof token === 'string') {
|
56004
|
-
path += token;
|
56005
|
-
continue;
|
56006
|
-
}
|
56007
|
-
|
56008
|
-
var value = data[token.name];
|
56009
|
-
var segment;
|
56010
|
-
|
56011
|
-
if (value == null) {
|
56012
|
-
if (token.optional) {
|
56013
|
-
// Prepend partial segment prefixes.
|
56014
|
-
if (token.partial) {
|
56015
|
-
path += token.prefix;
|
56016
|
-
}
|
56017
|
-
|
56018
|
-
continue;
|
56019
|
-
} else {
|
56020
|
-
throw new TypeError('Expected "' + token.name + '" to be defined');
|
56021
|
-
}
|
56022
|
-
}
|
56023
|
-
|
56024
|
-
if (isarray(value)) {
|
56025
|
-
if (!token.repeat) {
|
56026
|
-
throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`');
|
56027
|
-
}
|
56028
|
-
|
56029
|
-
if (value.length === 0) {
|
56030
|
-
if (token.optional) {
|
56031
|
-
continue;
|
56032
|
-
} else {
|
56033
|
-
throw new TypeError('Expected "' + token.name + '" to not be empty');
|
56034
|
-
}
|
56035
|
-
}
|
56036
|
-
|
56037
|
-
for (var j = 0; j < value.length; j++) {
|
56038
|
-
segment = encode(value[j]);
|
56039
|
-
|
56040
|
-
if (!matches[i].test(segment)) {
|
56041
|
-
throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`');
|
56042
|
-
}
|
56043
|
-
|
56044
|
-
path += (j === 0 ? token.prefix : token.delimiter) + segment;
|
56045
|
-
}
|
56046
|
-
|
56047
|
-
continue;
|
56048
|
-
}
|
56049
|
-
|
56050
|
-
segment = token.asterisk ? encodeAsterisk(value) : encode(value);
|
56051
|
-
|
56052
|
-
if (!matches[i].test(segment)) {
|
56053
|
-
throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"');
|
56054
|
-
}
|
56055
|
-
|
56056
|
-
path += token.prefix + segment;
|
56057
|
-
}
|
56058
|
-
|
56059
|
-
return path;
|
56060
|
-
};
|
56061
|
-
}
|
56062
|
-
/**
|
56063
|
-
* Escape a regular expression string.
|
56064
|
-
*
|
56065
|
-
* @param {string} str
|
56066
|
-
* @return {string}
|
56067
|
-
*/
|
56068
|
-
|
56069
|
-
|
56070
|
-
function escapeString(str) {
|
56071
|
-
return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1');
|
56072
|
-
}
|
56073
|
-
/**
|
56074
|
-
* Escape the capturing group by escaping special characters and meaning.
|
56075
|
-
*
|
56076
|
-
* @param {string} group
|
56077
|
-
* @return {string}
|
56078
|
-
*/
|
56079
|
-
|
56080
|
-
|
56081
|
-
function escapeGroup(group) {
|
56082
|
-
return group.replace(/([=!:$\/()])/g, '\\$1');
|
56083
|
-
}
|
56084
|
-
/**
|
56085
|
-
* Attach the keys as a property of the regexp.
|
56086
|
-
*
|
56087
|
-
* @param {!RegExp} re
|
56088
|
-
* @param {Array} keys
|
56089
|
-
* @return {!RegExp}
|
56090
|
-
*/
|
56091
|
-
|
56092
|
-
|
56093
|
-
function attachKeys(re, keys) {
|
56094
|
-
re.keys = keys;
|
56095
|
-
return re;
|
56096
|
-
}
|
56097
|
-
/**
|
56098
|
-
* Get the flags for a regexp from the options.
|
56099
|
-
*
|
56100
|
-
* @param {Object} options
|
56101
|
-
* @return {string}
|
56102
|
-
*/
|
56103
|
-
|
56104
|
-
|
56105
|
-
function flags(options) {
|
56106
|
-
return options && options.sensitive ? '' : 'i';
|
56107
|
-
}
|
56108
|
-
/**
|
56109
|
-
* Pull out keys from a regexp.
|
56110
|
-
*
|
56111
|
-
* @param {!RegExp} path
|
56112
|
-
* @param {!Array} keys
|
56113
|
-
* @return {!RegExp}
|
56114
|
-
*/
|
56115
|
-
|
56116
|
-
|
56117
|
-
function regexpToRegexp(path, keys) {
|
56118
|
-
// Use a negative lookahead to match only capturing groups.
|
56119
|
-
var groups = path.source.match(/\((?!\?)/g);
|
56120
|
-
|
56121
|
-
if (groups) {
|
56122
|
-
for (var i = 0; i < groups.length; i++) {
|
56123
|
-
keys.push({
|
56124
|
-
name: i,
|
56125
|
-
prefix: null,
|
56126
|
-
delimiter: null,
|
56127
|
-
optional: false,
|
56128
|
-
repeat: false,
|
56129
|
-
partial: false,
|
56130
|
-
asterisk: false,
|
56131
|
-
pattern: null
|
56132
|
-
});
|
56133
|
-
}
|
56134
|
-
}
|
56135
|
-
|
56136
|
-
return attachKeys(path, keys);
|
56137
|
-
}
|
56138
|
-
/**
|
56139
|
-
* Transform an array into a regexp.
|
56140
|
-
*
|
56141
|
-
* @param {!Array} path
|
56142
|
-
* @param {Array} keys
|
56143
|
-
* @param {!Object} options
|
56144
|
-
* @return {!RegExp}
|
56145
|
-
*/
|
56146
|
-
|
56147
|
-
|
56148
|
-
function arrayToRegexp(path, keys, options) {
|
56149
|
-
var parts = [];
|
56150
|
-
|
56151
|
-
for (var i = 0; i < path.length; i++) {
|
56152
|
-
parts.push(pathToRegexp(path[i], keys, options).source);
|
56153
|
-
}
|
56154
|
-
|
56155
|
-
var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options));
|
56156
|
-
return attachKeys(regexp, keys);
|
56157
|
-
}
|
56158
|
-
/**
|
56159
|
-
* Create a path regexp from string input.
|
56160
|
-
*
|
56161
|
-
* @param {string} path
|
56162
|
-
* @param {!Array} keys
|
56163
|
-
* @param {!Object} options
|
56164
|
-
* @return {!RegExp}
|
56165
|
-
*/
|
56166
|
-
|
56167
|
-
|
56168
|
-
function stringToRegexp(path, keys, options) {
|
56169
|
-
return tokensToRegExp(parse(path, options), keys, options);
|
56170
|
-
}
|
56171
|
-
/**
|
56172
|
-
* Expose a function for taking tokens and returning a RegExp.
|
56173
|
-
*
|
56174
|
-
* @param {!Array} tokens
|
56175
|
-
* @param {(Array|Object)=} keys
|
56176
|
-
* @param {Object=} options
|
56177
|
-
* @return {!RegExp}
|
56178
|
-
*/
|
56179
|
-
|
56180
|
-
|
56181
|
-
function tokensToRegExp(tokens, keys, options) {
|
56182
|
-
if (!isarray(keys)) {
|
56183
|
-
options =
|
56184
|
-
/** @type {!Object} */
|
56185
|
-
keys || options;
|
56186
|
-
keys = [];
|
56187
|
-
}
|
56188
|
-
|
56189
|
-
options = options || {};
|
56190
|
-
var strict = options.strict;
|
56191
|
-
var end = options.end !== false;
|
56192
|
-
var route = ''; // Iterate over the tokens and create our regexp string.
|
56193
|
-
|
56194
|
-
for (var i = 0; i < tokens.length; i++) {
|
56195
|
-
var token = tokens[i];
|
56196
|
-
|
56197
|
-
if (typeof token === 'string') {
|
56198
|
-
route += escapeString(token);
|
56199
|
-
} else {
|
56200
|
-
var prefix = escapeString(token.prefix);
|
56201
|
-
var capture = '(?:' + token.pattern + ')';
|
56202
|
-
keys.push(token);
|
56203
|
-
|
56204
|
-
if (token.repeat) {
|
56205
|
-
capture += '(?:' + prefix + capture + ')*';
|
56206
|
-
}
|
56207
|
-
|
56208
|
-
if (token.optional) {
|
56209
|
-
if (!token.partial) {
|
56210
|
-
capture = '(?:' + prefix + '(' + capture + '))?';
|
56211
|
-
} else {
|
56212
|
-
capture = prefix + '(' + capture + ')?';
|
56213
|
-
}
|
56214
|
-
} else {
|
56215
|
-
capture = prefix + '(' + capture + ')';
|
56216
|
-
}
|
56217
|
-
|
56218
|
-
route += capture;
|
56219
|
-
}
|
56220
|
-
}
|
56221
|
-
|
56222
|
-
var delimiter = escapeString(options.delimiter || '/');
|
56223
|
-
var endsWithDelimiter = route.slice(-delimiter.length) === delimiter; // In non-strict mode we allow a slash at the end of match. If the path to
|
56224
|
-
// match already ends with a slash, we remove it for consistency. The slash
|
56225
|
-
// is valid at the end of a path match, not in the middle. This is important
|
56226
|
-
// in non-ending mode, where "/test/" shouldn't match "/test//route".
|
56227
|
-
|
56228
|
-
if (!strict) {
|
56229
|
-
route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?';
|
56230
|
-
}
|
56231
|
-
|
56232
|
-
if (end) {
|
56233
|
-
route += '$';
|
56234
|
-
} else {
|
56235
|
-
// In non-ending mode, we need the capturing groups to match as much as
|
56236
|
-
// possible by using a positive lookahead to the end or next path segment.
|
56237
|
-
route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)';
|
56238
|
-
}
|
56239
|
-
|
56240
|
-
return attachKeys(new RegExp('^' + route, flags(options)), keys);
|
56241
|
-
}
|
56242
|
-
/**
|
56243
|
-
* Normalize the given path string, returning a regular expression.
|
56244
|
-
*
|
56245
|
-
* An empty array can be passed in for the keys, which will hold the
|
56246
|
-
* placeholder key descriptions. For example, using `/user/:id`, `keys` will
|
56247
|
-
* contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
|
56248
|
-
*
|
56249
|
-
* @param {(string|RegExp|Array)} path
|
56250
|
-
* @param {(Array|Object)=} keys
|
56251
|
-
* @param {Object=} options
|
56252
|
-
* @return {!RegExp}
|
56253
|
-
*/
|
56254
|
-
|
56255
|
-
|
56256
|
-
function pathToRegexp(path, keys, options) {
|
56257
|
-
if (!isarray(keys)) {
|
56258
|
-
options =
|
56259
|
-
/** @type {!Object} */
|
56260
|
-
keys || options;
|
56261
|
-
keys = [];
|
56262
|
-
}
|
56263
|
-
|
56264
|
-
options = options || {};
|
56265
|
-
|
56266
|
-
if (path instanceof RegExp) {
|
56267
|
-
return regexpToRegexp(path,
|
56268
|
-
/** @type {!Array} */
|
56269
|
-
keys);
|
56270
|
-
}
|
56271
|
-
|
56272
|
-
if (isarray(path)) {
|
56273
|
-
return arrayToRegexp(
|
56274
|
-
/** @type {!Array} */
|
56275
|
-
path,
|
56276
|
-
/** @type {!Array} */
|
56277
|
-
keys, options);
|
56278
|
-
}
|
56279
|
-
|
56280
|
-
return stringToRegexp(
|
56281
|
-
/** @type {string} */
|
56282
|
-
path,
|
56283
|
-
/** @type {!Array} */
|
56284
|
-
keys, options);
|
56285
|
-
}
|
56286
|
-
|
56287
|
-
/***/ }),
|
56288
|
-
|
56289
54695
|
/***/ 89112:
|
56290
54696
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
56291
54697
|
|
@@ -58061,685 +56467,6 @@ if (true) {
|
|
58061
56467
|
module.exports = __webpack_require__(8081);
|
58062
56468
|
} else {}
|
58063
56469
|
|
58064
|
-
/***/ }),
|
58065
|
-
|
58066
|
-
/***/ 39285:
|
58067
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
58068
|
-
|
58069
|
-
"use strict";
|
58070
|
-
__webpack_require__.r(__webpack_exports__);
|
58071
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
58072
|
-
/* harmony export */ "MemoryRouter": () => (/* binding */ MemoryRouter),
|
58073
|
-
/* harmony export */ "Prompt": () => (/* binding */ Prompt),
|
58074
|
-
/* harmony export */ "Redirect": () => (/* binding */ Redirect),
|
58075
|
-
/* harmony export */ "Route": () => (/* binding */ Route),
|
58076
|
-
/* harmony export */ "Router": () => (/* binding */ Router),
|
58077
|
-
/* harmony export */ "StaticRouter": () => (/* binding */ StaticRouter),
|
58078
|
-
/* harmony export */ "Switch": () => (/* binding */ Switch),
|
58079
|
-
/* harmony export */ "__HistoryContext": () => (/* binding */ historyContext),
|
58080
|
-
/* harmony export */ "__RouterContext": () => (/* binding */ context),
|
58081
|
-
/* harmony export */ "generatePath": () => (/* binding */ generatePath),
|
58082
|
-
/* harmony export */ "matchPath": () => (/* binding */ matchPath),
|
58083
|
-
/* harmony export */ "useHistory": () => (/* binding */ useHistory),
|
58084
|
-
/* harmony export */ "useLocation": () => (/* binding */ useLocation),
|
58085
|
-
/* harmony export */ "useParams": () => (/* binding */ useParams),
|
58086
|
-
/* harmony export */ "useRouteMatch": () => (/* binding */ useRouteMatch),
|
58087
|
-
/* harmony export */ "withRouter": () => (/* binding */ withRouter)
|
58088
|
-
/* harmony export */ });
|
58089
|
-
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17822);
|
58090
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
|
58091
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
58092
|
-
/* harmony import */ var history__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(71912);
|
58093
|
-
/* harmony import */ var mini_create_react_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94490);
|
58094
|
-
/* harmony import */ var tiny_invariant__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(42976);
|
58095
|
-
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(13456);
|
58096
|
-
/* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2125);
|
58097
|
-
/* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(path_to_regexp__WEBPACK_IMPORTED_MODULE_2__);
|
58098
|
-
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(42918);
|
58099
|
-
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(42098);
|
58100
|
-
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(45682);
|
58101
|
-
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_4__);
|
58102
|
-
|
58103
|
-
|
58104
|
-
|
58105
|
-
|
58106
|
-
|
58107
|
-
|
58108
|
-
|
58109
|
-
|
58110
|
-
|
58111
|
-
|
58112
|
-
|
58113
|
-
// TODO: Replace with React.createContext once we can assume React 16+
|
58114
|
-
|
58115
|
-
var createNamedContext = function createNamedContext(name) {
|
58116
|
-
var context = (0,mini_create_react_context__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)();
|
58117
|
-
context.displayName = name;
|
58118
|
-
return context;
|
58119
|
-
};
|
58120
|
-
|
58121
|
-
var historyContext = /*#__PURE__*/createNamedContext("Router-History"); // TODO: Replace with React.createContext once we can assume React 16+
|
58122
|
-
|
58123
|
-
var createNamedContext$1 = function createNamedContext(name) {
|
58124
|
-
var context = (0,mini_create_react_context__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)();
|
58125
|
-
context.displayName = name;
|
58126
|
-
return context;
|
58127
|
-
};
|
58128
|
-
|
58129
|
-
var context = /*#__PURE__*/createNamedContext$1("Router");
|
58130
|
-
/**
|
58131
|
-
* The public API for putting history on context.
|
58132
|
-
*/
|
58133
|
-
|
58134
|
-
var Router = /*#__PURE__*/function (_React$Component) {
|
58135
|
-
(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(Router, _React$Component);
|
58136
|
-
|
58137
|
-
Router.computeRootMatch = function computeRootMatch(pathname) {
|
58138
|
-
return {
|
58139
|
-
path: "/",
|
58140
|
-
url: "/",
|
58141
|
-
params: {},
|
58142
|
-
isExact: pathname === "/"
|
58143
|
-
};
|
58144
|
-
};
|
58145
|
-
|
58146
|
-
function Router(props) {
|
58147
|
-
var _this;
|
58148
|
-
|
58149
|
-
_this = _React$Component.call(this, props) || this;
|
58150
|
-
_this.state = {
|
58151
|
-
location: props.history.location
|
58152
|
-
}; // This is a bit of a hack. We have to start listening for location
|
58153
|
-
// changes here in the constructor in case there are any <Redirect>s
|
58154
|
-
// on the initial render. If there are, they will replace/push when
|
58155
|
-
// they mount and since cDM fires in children before parents, we may
|
58156
|
-
// get a new location before the <Router> is mounted.
|
58157
|
-
|
58158
|
-
_this._isMounted = false;
|
58159
|
-
_this._pendingLocation = null;
|
58160
|
-
|
58161
|
-
if (!props.staticContext) {
|
58162
|
-
_this.unlisten = props.history.listen(function (location) {
|
58163
|
-
if (_this._isMounted) {
|
58164
|
-
_this.setState({
|
58165
|
-
location: location
|
58166
|
-
});
|
58167
|
-
} else {
|
58168
|
-
_this._pendingLocation = location;
|
58169
|
-
}
|
58170
|
-
});
|
58171
|
-
}
|
58172
|
-
|
58173
|
-
return _this;
|
58174
|
-
}
|
58175
|
-
|
58176
|
-
var _proto = Router.prototype;
|
58177
|
-
|
58178
|
-
_proto.componentDidMount = function componentDidMount() {
|
58179
|
-
this._isMounted = true;
|
58180
|
-
|
58181
|
-
if (this._pendingLocation) {
|
58182
|
-
this.setState({
|
58183
|
-
location: this._pendingLocation
|
58184
|
-
});
|
58185
|
-
}
|
58186
|
-
};
|
58187
|
-
|
58188
|
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
58189
|
-
if (this.unlisten) this.unlisten();
|
58190
|
-
};
|
58191
|
-
|
58192
|
-
_proto.render = function render() {
|
58193
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(context.Provider, {
|
58194
|
-
value: {
|
58195
|
-
history: this.props.history,
|
58196
|
-
location: this.state.location,
|
58197
|
-
match: Router.computeRootMatch(this.state.location.pathname),
|
58198
|
-
staticContext: this.props.staticContext
|
58199
|
-
}
|
58200
|
-
}, react__WEBPACK_IMPORTED_MODULE_0___default().createElement(historyContext.Provider, {
|
58201
|
-
children: this.props.children || null,
|
58202
|
-
value: this.props.history
|
58203
|
-
}));
|
58204
|
-
};
|
58205
|
-
|
58206
|
-
return Router;
|
58207
|
-
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
58208
|
-
|
58209
|
-
if (false) {}
|
58210
|
-
/**
|
58211
|
-
* The public API for a <Router> that stores location in memory.
|
58212
|
-
*/
|
58213
|
-
|
58214
|
-
|
58215
|
-
var MemoryRouter = /*#__PURE__*/function (_React$Component) {
|
58216
|
-
(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(MemoryRouter, _React$Component);
|
58217
|
-
|
58218
|
-
function MemoryRouter() {
|
58219
|
-
var _this;
|
58220
|
-
|
58221
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
58222
|
-
args[_key] = arguments[_key];
|
58223
|
-
}
|
58224
|
-
|
58225
|
-
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
58226
|
-
_this.history = (0,history__WEBPACK_IMPORTED_MODULE_6__/* .createMemoryHistory */ .PP)(_this.props);
|
58227
|
-
return _this;
|
58228
|
-
}
|
58229
|
-
|
58230
|
-
var _proto = MemoryRouter.prototype;
|
58231
|
-
|
58232
|
-
_proto.render = function render() {
|
58233
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Router, {
|
58234
|
-
history: this.history,
|
58235
|
-
children: this.props.children
|
58236
|
-
});
|
58237
|
-
};
|
58238
|
-
|
58239
|
-
return MemoryRouter;
|
58240
|
-
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
58241
|
-
|
58242
|
-
if (false) {}
|
58243
|
-
|
58244
|
-
var Lifecycle = /*#__PURE__*/function (_React$Component) {
|
58245
|
-
(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(Lifecycle, _React$Component);
|
58246
|
-
|
58247
|
-
function Lifecycle() {
|
58248
|
-
return _React$Component.apply(this, arguments) || this;
|
58249
|
-
}
|
58250
|
-
|
58251
|
-
var _proto = Lifecycle.prototype;
|
58252
|
-
|
58253
|
-
_proto.componentDidMount = function componentDidMount() {
|
58254
|
-
if (this.props.onMount) this.props.onMount.call(this, this);
|
58255
|
-
};
|
58256
|
-
|
58257
|
-
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
58258
|
-
if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps);
|
58259
|
-
};
|
58260
|
-
|
58261
|
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
58262
|
-
if (this.props.onUnmount) this.props.onUnmount.call(this, this);
|
58263
|
-
};
|
58264
|
-
|
58265
|
-
_proto.render = function render() {
|
58266
|
-
return null;
|
58267
|
-
};
|
58268
|
-
|
58269
|
-
return Lifecycle;
|
58270
|
-
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
58271
|
-
/**
|
58272
|
-
* The public API for prompting the user before navigating away from a screen.
|
58273
|
-
*/
|
58274
|
-
|
58275
|
-
|
58276
|
-
function Prompt(_ref) {
|
58277
|
-
var message = _ref.message,
|
58278
|
-
_ref$when = _ref.when,
|
58279
|
-
when = _ref$when === void 0 ? true : _ref$when;
|
58280
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(context.Consumer, null, function (context) {
|
58281
|
-
!context ? false ? 0 : (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(false) : void 0;
|
58282
|
-
if (!when || context.staticContext) return null;
|
58283
|
-
var method = context.history.block;
|
58284
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Lifecycle, {
|
58285
|
-
onMount: function onMount(self) {
|
58286
|
-
self.release = method(message);
|
58287
|
-
},
|
58288
|
-
onUpdate: function onUpdate(self, prevProps) {
|
58289
|
-
if (prevProps.message !== message) {
|
58290
|
-
self.release();
|
58291
|
-
self.release = method(message);
|
58292
|
-
}
|
58293
|
-
},
|
58294
|
-
onUnmount: function onUnmount(self) {
|
58295
|
-
self.release();
|
58296
|
-
},
|
58297
|
-
message: message
|
58298
|
-
});
|
58299
|
-
});
|
58300
|
-
}
|
58301
|
-
|
58302
|
-
if (false) { var messageType; }
|
58303
|
-
|
58304
|
-
var cache = {};
|
58305
|
-
var cacheLimit = 10000;
|
58306
|
-
var cacheCount = 0;
|
58307
|
-
|
58308
|
-
function compilePath(path) {
|
58309
|
-
if (cache[path]) return cache[path];
|
58310
|
-
var generator = path_to_regexp__WEBPACK_IMPORTED_MODULE_2___default().compile(path);
|
58311
|
-
|
58312
|
-
if (cacheCount < cacheLimit) {
|
58313
|
-
cache[path] = generator;
|
58314
|
-
cacheCount++;
|
58315
|
-
}
|
58316
|
-
|
58317
|
-
return generator;
|
58318
|
-
}
|
58319
|
-
/**
|
58320
|
-
* Public API for generating a URL pathname from a path and parameters.
|
58321
|
-
*/
|
58322
|
-
|
58323
|
-
|
58324
|
-
function generatePath(path, params) {
|
58325
|
-
if (path === void 0) {
|
58326
|
-
path = "/";
|
58327
|
-
}
|
58328
|
-
|
58329
|
-
if (params === void 0) {
|
58330
|
-
params = {};
|
58331
|
-
}
|
58332
|
-
|
58333
|
-
return path === "/" ? path : compilePath(path)(params, {
|
58334
|
-
pretty: true
|
58335
|
-
});
|
58336
|
-
}
|
58337
|
-
/**
|
58338
|
-
* The public API for navigating programmatically with a component.
|
58339
|
-
*/
|
58340
|
-
|
58341
|
-
|
58342
|
-
function Redirect(_ref) {
|
58343
|
-
var computedMatch = _ref.computedMatch,
|
58344
|
-
to = _ref.to,
|
58345
|
-
_ref$push = _ref.push,
|
58346
|
-
push = _ref$push === void 0 ? false : _ref$push;
|
58347
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(context.Consumer, null, function (context) {
|
58348
|
-
!context ? false ? 0 : (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(false) : void 0;
|
58349
|
-
var history = context.history,
|
58350
|
-
staticContext = context.staticContext;
|
58351
|
-
var method = push ? history.push : history.replace;
|
58352
|
-
var location = (0,history__WEBPACK_IMPORTED_MODULE_6__/* .createLocation */ .ob)(computedMatch ? typeof to === "string" ? generatePath(to, computedMatch.params) : (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)({}, to, {
|
58353
|
-
pathname: generatePath(to.pathname, computedMatch.params)
|
58354
|
-
}) : to); // When rendering in a static context,
|
58355
|
-
// set the new location immediately.
|
58356
|
-
|
58357
|
-
if (staticContext) {
|
58358
|
-
method(location);
|
58359
|
-
return null;
|
58360
|
-
}
|
58361
|
-
|
58362
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Lifecycle, {
|
58363
|
-
onMount: function onMount() {
|
58364
|
-
method(location);
|
58365
|
-
},
|
58366
|
-
onUpdate: function onUpdate(self, prevProps) {
|
58367
|
-
var prevLocation = (0,history__WEBPACK_IMPORTED_MODULE_6__/* .createLocation */ .ob)(prevProps.to);
|
58368
|
-
|
58369
|
-
if (!(0,history__WEBPACK_IMPORTED_MODULE_6__/* .locationsAreEqual */ .Hp)(prevLocation, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)({}, location, {
|
58370
|
-
key: prevLocation.key
|
58371
|
-
}))) {
|
58372
|
-
method(location);
|
58373
|
-
}
|
58374
|
-
},
|
58375
|
-
to: to
|
58376
|
-
});
|
58377
|
-
});
|
58378
|
-
}
|
58379
|
-
|
58380
|
-
if (false) {}
|
58381
|
-
|
58382
|
-
var cache$1 = {};
|
58383
|
-
var cacheLimit$1 = 10000;
|
58384
|
-
var cacheCount$1 = 0;
|
58385
|
-
|
58386
|
-
function compilePath$1(path, options) {
|
58387
|
-
var cacheKey = "" + options.end + options.strict + options.sensitive;
|
58388
|
-
var pathCache = cache$1[cacheKey] || (cache$1[cacheKey] = {});
|
58389
|
-
if (pathCache[path]) return pathCache[path];
|
58390
|
-
var keys = [];
|
58391
|
-
var regexp = path_to_regexp__WEBPACK_IMPORTED_MODULE_2___default()(path, keys, options);
|
58392
|
-
var result = {
|
58393
|
-
regexp: regexp,
|
58394
|
-
keys: keys
|
58395
|
-
};
|
58396
|
-
|
58397
|
-
if (cacheCount$1 < cacheLimit$1) {
|
58398
|
-
pathCache[path] = result;
|
58399
|
-
cacheCount$1++;
|
58400
|
-
}
|
58401
|
-
|
58402
|
-
return result;
|
58403
|
-
}
|
58404
|
-
/**
|
58405
|
-
* Public API for matching a URL pathname to a path.
|
58406
|
-
*/
|
58407
|
-
|
58408
|
-
|
58409
|
-
function matchPath(pathname, options) {
|
58410
|
-
if (options === void 0) {
|
58411
|
-
options = {};
|
58412
|
-
}
|
58413
|
-
|
58414
|
-
if (typeof options === "string" || Array.isArray(options)) {
|
58415
|
-
options = {
|
58416
|
-
path: options
|
58417
|
-
};
|
58418
|
-
}
|
58419
|
-
|
58420
|
-
var _options = options,
|
58421
|
-
path = _options.path,
|
58422
|
-
_options$exact = _options.exact,
|
58423
|
-
exact = _options$exact === void 0 ? false : _options$exact,
|
58424
|
-
_options$strict = _options.strict,
|
58425
|
-
strict = _options$strict === void 0 ? false : _options$strict,
|
58426
|
-
_options$sensitive = _options.sensitive,
|
58427
|
-
sensitive = _options$sensitive === void 0 ? false : _options$sensitive;
|
58428
|
-
var paths = [].concat(path);
|
58429
|
-
return paths.reduce(function (matched, path) {
|
58430
|
-
if (!path && path !== "") return null;
|
58431
|
-
if (matched) return matched;
|
58432
|
-
|
58433
|
-
var _compilePath = compilePath$1(path, {
|
58434
|
-
end: exact,
|
58435
|
-
strict: strict,
|
58436
|
-
sensitive: sensitive
|
58437
|
-
}),
|
58438
|
-
regexp = _compilePath.regexp,
|
58439
|
-
keys = _compilePath.keys;
|
58440
|
-
|
58441
|
-
var match = regexp.exec(pathname);
|
58442
|
-
if (!match) return null;
|
58443
|
-
var url = match[0],
|
58444
|
-
values = match.slice(1);
|
58445
|
-
var isExact = pathname === url;
|
58446
|
-
if (exact && !isExact) return null;
|
58447
|
-
return {
|
58448
|
-
path: path,
|
58449
|
-
// the path used to match
|
58450
|
-
url: path === "/" && url === "" ? "/" : url,
|
58451
|
-
// the matched portion of the URL
|
58452
|
-
isExact: isExact,
|
58453
|
-
// whether or not we matched exactly
|
58454
|
-
params: keys.reduce(function (memo, key, index) {
|
58455
|
-
memo[key.name] = values[index];
|
58456
|
-
return memo;
|
58457
|
-
}, {})
|
58458
|
-
};
|
58459
|
-
}, null);
|
58460
|
-
}
|
58461
|
-
|
58462
|
-
function isEmptyChildren(children) {
|
58463
|
-
return React.Children.count(children) === 0;
|
58464
|
-
}
|
58465
|
-
|
58466
|
-
function evalChildrenDev(children, props, path) {
|
58467
|
-
var value = children(props);
|
58468
|
-
false ? 0 : void 0;
|
58469
|
-
return value || null;
|
58470
|
-
}
|
58471
|
-
/**
|
58472
|
-
* The public API for matching a single path and rendering.
|
58473
|
-
*/
|
58474
|
-
|
58475
|
-
|
58476
|
-
var Route = /*#__PURE__*/function (_React$Component) {
|
58477
|
-
(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(Route, _React$Component);
|
58478
|
-
|
58479
|
-
function Route() {
|
58480
|
-
return _React$Component.apply(this, arguments) || this;
|
58481
|
-
}
|
58482
|
-
|
58483
|
-
var _proto = Route.prototype;
|
58484
|
-
|
58485
|
-
_proto.render = function render() {
|
58486
|
-
var _this = this;
|
58487
|
-
|
58488
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(context.Consumer, null, function (context$1) {
|
58489
|
-
!context$1 ? false ? 0 : (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(false) : void 0;
|
58490
|
-
var location = _this.props.location || context$1.location;
|
58491
|
-
var match = _this.props.computedMatch ? _this.props.computedMatch // <Switch> already computed the match for us
|
58492
|
-
: _this.props.path ? matchPath(location.pathname, _this.props) : context$1.match;
|
58493
|
-
|
58494
|
-
var props = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)({}, context$1, {
|
58495
|
-
location: location,
|
58496
|
-
match: match
|
58497
|
-
});
|
58498
|
-
|
58499
|
-
var _this$props = _this.props,
|
58500
|
-
children = _this$props.children,
|
58501
|
-
component = _this$props.component,
|
58502
|
-
render = _this$props.render; // Preact uses an empty array as children by
|
58503
|
-
// default, so use null if that's the case.
|
58504
|
-
|
58505
|
-
if (Array.isArray(children) && children.length === 0) {
|
58506
|
-
children = null;
|
58507
|
-
}
|
58508
|
-
|
58509
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(context.Provider, {
|
58510
|
-
value: props
|
58511
|
-
}, props.match ? children ? typeof children === "function" ? false ? 0 : children(props) : children : component ? react__WEBPACK_IMPORTED_MODULE_0___default().createElement(component, props) : render ? render(props) : null : typeof children === "function" ? false ? 0 : children(props) : null);
|
58512
|
-
});
|
58513
|
-
};
|
58514
|
-
|
58515
|
-
return Route;
|
58516
|
-
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
58517
|
-
|
58518
|
-
if (false) {}
|
58519
|
-
|
58520
|
-
function addLeadingSlash(path) {
|
58521
|
-
return path.charAt(0) === "/" ? path : "/" + path;
|
58522
|
-
}
|
58523
|
-
|
58524
|
-
function addBasename(basename, location) {
|
58525
|
-
if (!basename) return location;
|
58526
|
-
return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)({}, location, {
|
58527
|
-
pathname: addLeadingSlash(basename) + location.pathname
|
58528
|
-
});
|
58529
|
-
}
|
58530
|
-
|
58531
|
-
function stripBasename(basename, location) {
|
58532
|
-
if (!basename) return location;
|
58533
|
-
var base = addLeadingSlash(basename);
|
58534
|
-
if (location.pathname.indexOf(base) !== 0) return location;
|
58535
|
-
return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)({}, location, {
|
58536
|
-
pathname: location.pathname.substr(base.length)
|
58537
|
-
});
|
58538
|
-
}
|
58539
|
-
|
58540
|
-
function createURL(location) {
|
58541
|
-
return typeof location === "string" ? location : (0,history__WEBPACK_IMPORTED_MODULE_6__/* .createPath */ .Ep)(location);
|
58542
|
-
}
|
58543
|
-
|
58544
|
-
function staticHandler(methodName) {
|
58545
|
-
return function () {
|
58546
|
-
false ? 0 : (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(false);
|
58547
|
-
};
|
58548
|
-
}
|
58549
|
-
|
58550
|
-
function noop() {}
|
58551
|
-
/**
|
58552
|
-
* The public top-level API for a "static" <Router>, so-called because it
|
58553
|
-
* can't actually change the current location. Instead, it just records
|
58554
|
-
* location changes in a context object. Useful mainly in testing and
|
58555
|
-
* server-rendering scenarios.
|
58556
|
-
*/
|
58557
|
-
|
58558
|
-
|
58559
|
-
var StaticRouter = /*#__PURE__*/function (_React$Component) {
|
58560
|
-
(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(StaticRouter, _React$Component);
|
58561
|
-
|
58562
|
-
function StaticRouter() {
|
58563
|
-
var _this;
|
58564
|
-
|
58565
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
58566
|
-
args[_key] = arguments[_key];
|
58567
|
-
}
|
58568
|
-
|
58569
|
-
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
58570
|
-
|
58571
|
-
_this.handlePush = function (location) {
|
58572
|
-
return _this.navigateTo(location, "PUSH");
|
58573
|
-
};
|
58574
|
-
|
58575
|
-
_this.handleReplace = function (location) {
|
58576
|
-
return _this.navigateTo(location, "REPLACE");
|
58577
|
-
};
|
58578
|
-
|
58579
|
-
_this.handleListen = function () {
|
58580
|
-
return noop;
|
58581
|
-
};
|
58582
|
-
|
58583
|
-
_this.handleBlock = function () {
|
58584
|
-
return noop;
|
58585
|
-
};
|
58586
|
-
|
58587
|
-
return _this;
|
58588
|
-
}
|
58589
|
-
|
58590
|
-
var _proto = StaticRouter.prototype;
|
58591
|
-
|
58592
|
-
_proto.navigateTo = function navigateTo(location, action) {
|
58593
|
-
var _this$props = this.props,
|
58594
|
-
_this$props$basename = _this$props.basename,
|
58595
|
-
basename = _this$props$basename === void 0 ? "" : _this$props$basename,
|
58596
|
-
_this$props$context = _this$props.context,
|
58597
|
-
context = _this$props$context === void 0 ? {} : _this$props$context;
|
58598
|
-
context.action = action;
|
58599
|
-
context.location = addBasename(basename, (0,history__WEBPACK_IMPORTED_MODULE_6__/* .createLocation */ .ob)(location));
|
58600
|
-
context.url = createURL(context.location);
|
58601
|
-
};
|
58602
|
-
|
58603
|
-
_proto.render = function render() {
|
58604
|
-
var _this$props2 = this.props,
|
58605
|
-
_this$props2$basename = _this$props2.basename,
|
58606
|
-
basename = _this$props2$basename === void 0 ? "" : _this$props2$basename,
|
58607
|
-
_this$props2$context = _this$props2.context,
|
58608
|
-
context = _this$props2$context === void 0 ? {} : _this$props2$context,
|
58609
|
-
_this$props2$location = _this$props2.location,
|
58610
|
-
location = _this$props2$location === void 0 ? "/" : _this$props2$location,
|
58611
|
-
rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)(_this$props2, ["basename", "context", "location"]);
|
58612
|
-
|
58613
|
-
var history = {
|
58614
|
-
createHref: function createHref(path) {
|
58615
|
-
return addLeadingSlash(basename + createURL(path));
|
58616
|
-
},
|
58617
|
-
action: "POP",
|
58618
|
-
location: stripBasename(basename, (0,history__WEBPACK_IMPORTED_MODULE_6__/* .createLocation */ .ob)(location)),
|
58619
|
-
push: this.handlePush,
|
58620
|
-
replace: this.handleReplace,
|
58621
|
-
go: staticHandler("go"),
|
58622
|
-
goBack: staticHandler("goBack"),
|
58623
|
-
goForward: staticHandler("goForward"),
|
58624
|
-
listen: this.handleListen,
|
58625
|
-
block: this.handleBlock
|
58626
|
-
};
|
58627
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Router, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)({}, rest, {
|
58628
|
-
history: history,
|
58629
|
-
staticContext: context
|
58630
|
-
}));
|
58631
|
-
};
|
58632
|
-
|
58633
|
-
return StaticRouter;
|
58634
|
-
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
58635
|
-
|
58636
|
-
if (false) {}
|
58637
|
-
/**
|
58638
|
-
* The public API for rendering the first <Route> that matches.
|
58639
|
-
*/
|
58640
|
-
|
58641
|
-
|
58642
|
-
var Switch = /*#__PURE__*/function (_React$Component) {
|
58643
|
-
(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(Switch, _React$Component);
|
58644
|
-
|
58645
|
-
function Switch() {
|
58646
|
-
return _React$Component.apply(this, arguments) || this;
|
58647
|
-
}
|
58648
|
-
|
58649
|
-
var _proto = Switch.prototype;
|
58650
|
-
|
58651
|
-
_proto.render = function render() {
|
58652
|
-
var _this = this;
|
58653
|
-
|
58654
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(context.Consumer, null, function (context) {
|
58655
|
-
!context ? false ? 0 : (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(false) : void 0;
|
58656
|
-
var location = _this.props.location || context.location;
|
58657
|
-
var element, match; // We use React.Children.forEach instead of React.Children.toArray().find()
|
58658
|
-
// here because toArray adds keys to all child elements and we do not want
|
58659
|
-
// to trigger an unmount/remount for two <Route>s that render the same
|
58660
|
-
// component at different URLs.
|
58661
|
-
|
58662
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().Children.forEach(_this.props.children, function (child) {
|
58663
|
-
if (match == null && react__WEBPACK_IMPORTED_MODULE_0___default().isValidElement(child)) {
|
58664
|
-
element = child;
|
58665
|
-
var path = child.props.path || child.props.from;
|
58666
|
-
match = path ? matchPath(location.pathname, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)({}, child.props, {
|
58667
|
-
path: path
|
58668
|
-
})) : context.match;
|
58669
|
-
}
|
58670
|
-
});
|
58671
|
-
return match ? react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(element, {
|
58672
|
-
location: location,
|
58673
|
-
computedMatch: match
|
58674
|
-
}) : null;
|
58675
|
-
});
|
58676
|
-
};
|
58677
|
-
|
58678
|
-
return Switch;
|
58679
|
-
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
58680
|
-
|
58681
|
-
if (false) {}
|
58682
|
-
/**
|
58683
|
-
* A public higher-order component to access the imperative API
|
58684
|
-
*/
|
58685
|
-
|
58686
|
-
|
58687
|
-
function withRouter(Component) {
|
58688
|
-
var displayName = "withRouter(" + (Component.displayName || Component.name) + ")";
|
58689
|
-
|
58690
|
-
var C = function C(props) {
|
58691
|
-
var wrappedComponentRef = props.wrappedComponentRef,
|
58692
|
-
remainingProps = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)(props, ["wrappedComponentRef"]);
|
58693
|
-
|
58694
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(context.Consumer, null, function (context) {
|
58695
|
-
!context ? false ? 0 : (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(false) : void 0;
|
58696
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)({}, remainingProps, context, {
|
58697
|
-
ref: wrappedComponentRef
|
58698
|
-
}));
|
58699
|
-
});
|
58700
|
-
};
|
58701
|
-
|
58702
|
-
C.displayName = displayName;
|
58703
|
-
C.WrappedComponent = Component;
|
58704
|
-
|
58705
|
-
if (false) {}
|
58706
|
-
|
58707
|
-
return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_4___default()(C, Component);
|
58708
|
-
}
|
58709
|
-
|
58710
|
-
var useContext = (react__WEBPACK_IMPORTED_MODULE_0___default().useContext);
|
58711
|
-
|
58712
|
-
function useHistory() {
|
58713
|
-
if (false) {}
|
58714
|
-
|
58715
|
-
return useContext(historyContext);
|
58716
|
-
}
|
58717
|
-
|
58718
|
-
function useLocation() {
|
58719
|
-
if (false) {}
|
58720
|
-
|
58721
|
-
return useContext(context).location;
|
58722
|
-
}
|
58723
|
-
|
58724
|
-
function useParams() {
|
58725
|
-
if (false) {}
|
58726
|
-
|
58727
|
-
var match = useContext(context).match;
|
58728
|
-
return match ? match.params : {};
|
58729
|
-
}
|
58730
|
-
|
58731
|
-
function useRouteMatch(path) {
|
58732
|
-
if (false) {}
|
58733
|
-
|
58734
|
-
var location = useLocation();
|
58735
|
-
var match = useContext(context).match;
|
58736
|
-
return path ? matchPath(location.pathname, path) : match;
|
58737
|
-
}
|
58738
|
-
|
58739
|
-
if (false) { var secondaryBuildName, initialBuildName, buildNames, key, global; }
|
58740
|
-
|
58741
|
-
|
58742
|
-
|
58743
56470
|
/***/ }),
|
58744
56471
|
|
58745
56472
|
/***/ 82863:
|
@@ -60000,83 +57727,6 @@ var index = function () {
|
|
60000
57727
|
|
60001
57728
|
/***/ }),
|
60002
57729
|
|
60003
|
-
/***/ 52222:
|
60004
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
60005
|
-
|
60006
|
-
"use strict";
|
60007
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
60008
|
-
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
60009
|
-
/* harmony export */ });
|
60010
|
-
function isAbsolute(pathname) {
|
60011
|
-
return pathname.charAt(0) === '/';
|
60012
|
-
} // About 1.5x faster than the two-arg version of Array#splice()
|
60013
|
-
|
60014
|
-
|
60015
|
-
function spliceOne(list, index) {
|
60016
|
-
for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {
|
60017
|
-
list[i] = list[k];
|
60018
|
-
}
|
60019
|
-
|
60020
|
-
list.pop();
|
60021
|
-
} // This implementation is based heavily on node's url.parse
|
60022
|
-
|
60023
|
-
|
60024
|
-
function resolvePathname(to, from) {
|
60025
|
-
if (from === undefined) from = '';
|
60026
|
-
var toParts = to && to.split('/') || [];
|
60027
|
-
var fromParts = from && from.split('/') || [];
|
60028
|
-
var isToAbs = to && isAbsolute(to);
|
60029
|
-
var isFromAbs = from && isAbsolute(from);
|
60030
|
-
var mustEndAbs = isToAbs || isFromAbs;
|
60031
|
-
|
60032
|
-
if (to && isAbsolute(to)) {
|
60033
|
-
// to is absolute
|
60034
|
-
fromParts = toParts;
|
60035
|
-
} else if (toParts.length) {
|
60036
|
-
// to is relative, drop the filename
|
60037
|
-
fromParts.pop();
|
60038
|
-
fromParts = fromParts.concat(toParts);
|
60039
|
-
}
|
60040
|
-
|
60041
|
-
if (!fromParts.length) return '/';
|
60042
|
-
var hasTrailingSlash;
|
60043
|
-
|
60044
|
-
if (fromParts.length) {
|
60045
|
-
var last = fromParts[fromParts.length - 1];
|
60046
|
-
hasTrailingSlash = last === '.' || last === '..' || last === '';
|
60047
|
-
} else {
|
60048
|
-
hasTrailingSlash = false;
|
60049
|
-
}
|
60050
|
-
|
60051
|
-
var up = 0;
|
60052
|
-
|
60053
|
-
for (var i = fromParts.length; i >= 0; i--) {
|
60054
|
-
var part = fromParts[i];
|
60055
|
-
|
60056
|
-
if (part === '.') {
|
60057
|
-
spliceOne(fromParts, i);
|
60058
|
-
} else if (part === '..') {
|
60059
|
-
spliceOne(fromParts, i);
|
60060
|
-
up++;
|
60061
|
-
} else if (up) {
|
60062
|
-
spliceOne(fromParts, i);
|
60063
|
-
up--;
|
60064
|
-
}
|
60065
|
-
}
|
60066
|
-
|
60067
|
-
if (!mustEndAbs) for (; up--; up) {
|
60068
|
-
fromParts.unshift('..');
|
60069
|
-
}
|
60070
|
-
if (mustEndAbs && fromParts[0] !== '' && (!fromParts[0] || !isAbsolute(fromParts[0]))) fromParts.unshift('');
|
60071
|
-
var result = fromParts.join('/');
|
60072
|
-
if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';
|
60073
|
-
return result;
|
60074
|
-
}
|
60075
|
-
|
60076
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (resolvePathname);
|
60077
|
-
|
60078
|
-
/***/ }),
|
60079
|
-
|
60080
57730
|
/***/ 36625:
|
60081
57731
|
/***/ ((module) => {
|
60082
57732
|
|
@@ -60264,34 +57914,6 @@ module.exports = function (str) {
|
|
60264
57914
|
});
|
60265
57915
|
};
|
60266
57916
|
|
60267
|
-
/***/ }),
|
60268
|
-
|
60269
|
-
/***/ 42976:
|
60270
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
60271
|
-
|
60272
|
-
"use strict";
|
60273
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
60274
|
-
/* harmony export */ "Z": () => (/* binding */ invariant)
|
60275
|
-
/* harmony export */ });
|
60276
|
-
var isProduction = "production" === 'production';
|
60277
|
-
var prefix = 'Invariant failed';
|
60278
|
-
|
60279
|
-
function invariant(condition, message) {
|
60280
|
-
if (condition) {
|
60281
|
-
return;
|
60282
|
-
}
|
60283
|
-
|
60284
|
-
if (isProduction) {
|
60285
|
-
throw new Error(prefix);
|
60286
|
-
}
|
60287
|
-
|
60288
|
-
var provided = typeof message === 'function' ? message() : message;
|
60289
|
-
var value = provided ? prefix + ": " + provided : prefix;
|
60290
|
-
throw new Error(value);
|
60291
|
-
}
|
60292
|
-
|
60293
|
-
|
60294
|
-
|
60295
57917
|
/***/ }),
|
60296
57918
|
|
60297
57919
|
/***/ 11082:
|
@@ -60872,47 +58494,6 @@ function useDeepCompareEffectNoCheck(callback, dependencies) {
|
|
60872
58494
|
|
60873
58495
|
|
60874
58496
|
|
60875
|
-
/***/ }),
|
60876
|
-
|
60877
|
-
/***/ 5799:
|
60878
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
60879
|
-
|
60880
|
-
"use strict";
|
60881
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
60882
|
-
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
60883
|
-
/* harmony export */ });
|
60884
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
60885
|
-
|
60886
|
-
function valueOf(obj) {
|
60887
|
-
return obj.valueOf ? obj.valueOf() : Object.prototype.valueOf.call(obj);
|
60888
|
-
}
|
60889
|
-
|
60890
|
-
function valueEqual(a, b) {
|
60891
|
-
// Test for strict equality first.
|
60892
|
-
if (a === b) return true; // Otherwise, if either of them == null they are not equal.
|
60893
|
-
|
60894
|
-
if (a == null || b == null) return false;
|
60895
|
-
|
60896
|
-
if (Array.isArray(a)) {
|
60897
|
-
return Array.isArray(b) && a.length === b.length && a.every(function (item, index) {
|
60898
|
-
return valueEqual(item, b[index]);
|
60899
|
-
});
|
60900
|
-
}
|
60901
|
-
|
60902
|
-
if (_typeof(a) === 'object' || _typeof(b) === 'object') {
|
60903
|
-
var aValue = valueOf(a);
|
60904
|
-
var bValue = valueOf(b);
|
60905
|
-
if (aValue !== a || bValue !== b) return valueEqual(aValue, bValue);
|
60906
|
-
return Object.keys(Object.assign({}, a, b)).every(function (key) {
|
60907
|
-
return valueEqual(a[key], b[key]);
|
60908
|
-
});
|
60909
|
-
}
|
60910
|
-
|
60911
|
-
return false;
|
60912
|
-
}
|
60913
|
-
|
60914
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (valueEqual);
|
60915
|
-
|
60916
58497
|
/***/ }),
|
60917
58498
|
|
60918
58499
|
/***/ 50870:
|
@@ -61416,7 +58997,8 @@ CapsuleTab.Item = _CapsuleTabItem_index__WEBPACK_IMPORTED_MODULE_1__/* ["default
|
|
61416
58997
|
/* harmony import */ var _teamix_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(42341);
|
61417
58998
|
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(39339);
|
61418
58999
|
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_4__);
|
61419
|
-
var _excluded = ["children", "className", "ellipsisPosition", "endCharCount", "tooltipProps", "rows", "tooltip", "style"]
|
59000
|
+
var _excluded = ["children", "className", "ellipsisPosition", "endCharCount", "tooltipProps", "rows", "tooltip", "style"],
|
59001
|
+
_excluded2 = ["className"];
|
61420
59002
|
|
61421
59003
|
function ownKeys(object, enumerableOnly) {
|
61422
59004
|
var keys = Object.keys(object);
|
@@ -61569,13 +59151,17 @@ var Ellipsis = function Ellipsis(props) {
|
|
61569
59151
|
className = props.className,
|
61570
59152
|
ellipsisPosition = props.ellipsisPosition,
|
61571
59153
|
endCharCount = props.endCharCount,
|
61572
|
-
tooltipProps = props.tooltipProps,
|
59154
|
+
_props$tooltipProps = props.tooltipProps,
|
59155
|
+
tooltipProps = _props$tooltipProps === void 0 ? {} : _props$tooltipProps,
|
61573
59156
|
_props$rows = props.rows,
|
61574
59157
|
rows = _props$rows === void 0 ? 1 : _props$rows,
|
61575
59158
|
tooltip = props.tooltip,
|
61576
59159
|
style = props.style,
|
61577
59160
|
otherProps = _objectWithoutProperties(props, _excluded);
|
61578
59161
|
|
59162
|
+
var tooltipClassName = tooltipProps.className,
|
59163
|
+
otherTooltipProps = _objectWithoutProperties(tooltipProps, _excluded2);
|
59164
|
+
|
61579
59165
|
var textRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
|
61580
59166
|
var contentRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
|
61581
59167
|
|
@@ -61620,13 +59206,11 @@ var Ellipsis = function Ellipsis(props) {
|
|
61620
59206
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", {
|
61621
59207
|
className: "teamix-pro-ellipsis-content",
|
61622
59208
|
ref: contentRef
|
61623
|
-
}, tooltipVisible && tooltip !== false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Tooltip, {
|
59209
|
+
}, tooltipVisible && tooltip !== false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Tooltip, _objectSpread({
|
61624
59210
|
trigger: renderContent,
|
61625
59211
|
align: "t",
|
61626
|
-
|
61627
|
-
|
61628
|
-
}
|
61629
|
-
}, tooltip), (!tooltipVisible || tooltip === false) && renderContent);
|
59212
|
+
className: "teamix-pro-ellipsis-tooltip-content ".concat(tooltipClassName)
|
59213
|
+
}, otherTooltipProps), tooltip), (!tooltipVisible || tooltip === false) && renderContent);
|
61630
59214
|
};
|
61631
59215
|
|
61632
59216
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Ellipsis);
|
@@ -69983,12 +67567,13 @@ function individualization(dom, render, value, fieldValue) {
|
|
69983
67567
|
}
|
69984
67568
|
|
69985
67569
|
if ((render === null || render === void 0 ? void 0 : render.type) !== 'statusTag' && (render === null || render === void 0 ? void 0 : render.type) !== 'statusIconTag') {
|
69986
|
-
var _render$rows;
|
67570
|
+
var _render$rows, _render$overlayProps;
|
69987
67571
|
|
69988
67572
|
result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_commonComponents__WEBPACK_IMPORTED_MODULE_15__/* .Ellipsis */ .mH, {
|
69989
67573
|
className: "teamix-pro-field-output-tooltip",
|
69990
67574
|
tooltip: tooltip,
|
69991
|
-
rows: (_render$rows = render === null || render === void 0 ? void 0 : render.rows) !== null && _render$rows !== void 0 ? _render$rows : 1
|
67575
|
+
rows: (_render$rows = render === null || render === void 0 ? void 0 : render.rows) !== null && _render$rows !== void 0 ? _render$rows : 1,
|
67576
|
+
tooltipProps: (_render$overlayProps = render === null || render === void 0 ? void 0 : render.overlayProps) !== null && _render$overlayProps !== void 0 ? _render$overlayProps : {}
|
69992
67577
|
}, result);
|
69993
67578
|
}
|
69994
67579
|
} // 后缀图标
|
@@ -82761,7 +80346,7 @@ if (!((_window = window) != null && _window.TEAMIXPRO_WITHOUT_ICON)) {
|
|
82761
80346
|
|
82762
80347
|
|
82763
80348
|
|
82764
|
-
var version = '1.4.
|
80349
|
+
var version = '1.4.21';
|
82765
80350
|
|
82766
80351
|
|
82767
80352
|
/***/ }),
|
@@ -95681,150 +93266,6 @@ function _extends() {
|
|
95681
93266
|
|
95682
93267
|
/***/ }),
|
95683
93268
|
|
95684
|
-
/***/ 1968:
|
95685
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
95686
|
-
|
95687
|
-
"use strict";
|
95688
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
95689
|
-
/* harmony export */ "Z": () => (/* binding */ _extends)
|
95690
|
-
/* harmony export */ });
|
95691
|
-
function _extends() {
|
95692
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
95693
|
-
for (var i = 1; i < arguments.length; i++) {
|
95694
|
-
var source = arguments[i];
|
95695
|
-
|
95696
|
-
for (var key in source) {
|
95697
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
95698
|
-
target[key] = source[key];
|
95699
|
-
}
|
95700
|
-
}
|
95701
|
-
}
|
95702
|
-
|
95703
|
-
return target;
|
95704
|
-
};
|
95705
|
-
return _extends.apply(this, arguments);
|
95706
|
-
}
|
95707
|
-
|
95708
|
-
/***/ }),
|
95709
|
-
|
95710
|
-
/***/ 6165:
|
95711
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
95712
|
-
|
95713
|
-
"use strict";
|
95714
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
95715
|
-
/* harmony export */ "Z": () => (/* binding */ _inheritsLoose)
|
95716
|
-
/* harmony export */ });
|
95717
|
-
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91087);
|
95718
|
-
|
95719
|
-
function _inheritsLoose(subClass, superClass) {
|
95720
|
-
subClass.prototype = Object.create(superClass.prototype);
|
95721
|
-
subClass.prototype.constructor = subClass;
|
95722
|
-
(0,_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(subClass, superClass);
|
95723
|
-
}
|
95724
|
-
|
95725
|
-
/***/ }),
|
95726
|
-
|
95727
|
-
/***/ 91087:
|
95728
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
95729
|
-
|
95730
|
-
"use strict";
|
95731
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
95732
|
-
/* harmony export */ "Z": () => (/* binding */ _setPrototypeOf)
|
95733
|
-
/* harmony export */ });
|
95734
|
-
function _setPrototypeOf(o, p) {
|
95735
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
95736
|
-
o.__proto__ = p;
|
95737
|
-
return o;
|
95738
|
-
};
|
95739
|
-
return _setPrototypeOf(o, p);
|
95740
|
-
}
|
95741
|
-
|
95742
|
-
/***/ }),
|
95743
|
-
|
95744
|
-
/***/ 13456:
|
95745
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
95746
|
-
|
95747
|
-
"use strict";
|
95748
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
95749
|
-
/* harmony export */ "Z": () => (/* binding */ _extends)
|
95750
|
-
/* harmony export */ });
|
95751
|
-
function _extends() {
|
95752
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
95753
|
-
for (var i = 1; i < arguments.length; i++) {
|
95754
|
-
var source = arguments[i];
|
95755
|
-
|
95756
|
-
for (var key in source) {
|
95757
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
95758
|
-
target[key] = source[key];
|
95759
|
-
}
|
95760
|
-
}
|
95761
|
-
}
|
95762
|
-
|
95763
|
-
return target;
|
95764
|
-
};
|
95765
|
-
return _extends.apply(this, arguments);
|
95766
|
-
}
|
95767
|
-
|
95768
|
-
/***/ }),
|
95769
|
-
|
95770
|
-
/***/ 17822:
|
95771
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
95772
|
-
|
95773
|
-
"use strict";
|
95774
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
95775
|
-
/* harmony export */ "Z": () => (/* binding */ _inheritsLoose)
|
95776
|
-
/* harmony export */ });
|
95777
|
-
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(87392);
|
95778
|
-
|
95779
|
-
function _inheritsLoose(subClass, superClass) {
|
95780
|
-
subClass.prototype = Object.create(superClass.prototype);
|
95781
|
-
subClass.prototype.constructor = subClass;
|
95782
|
-
(0,_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(subClass, superClass);
|
95783
|
-
}
|
95784
|
-
|
95785
|
-
/***/ }),
|
95786
|
-
|
95787
|
-
/***/ 42098:
|
95788
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
95789
|
-
|
95790
|
-
"use strict";
|
95791
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
95792
|
-
/* harmony export */ "Z": () => (/* binding */ _objectWithoutPropertiesLoose)
|
95793
|
-
/* harmony export */ });
|
95794
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
95795
|
-
if (source == null) return {};
|
95796
|
-
var target = {};
|
95797
|
-
var sourceKeys = Object.keys(source);
|
95798
|
-
var key, i;
|
95799
|
-
|
95800
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
95801
|
-
key = sourceKeys[i];
|
95802
|
-
if (excluded.indexOf(key) >= 0) continue;
|
95803
|
-
target[key] = source[key];
|
95804
|
-
}
|
95805
|
-
|
95806
|
-
return target;
|
95807
|
-
}
|
95808
|
-
|
95809
|
-
/***/ }),
|
95810
|
-
|
95811
|
-
/***/ 87392:
|
95812
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
95813
|
-
|
95814
|
-
"use strict";
|
95815
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
95816
|
-
/* harmony export */ "Z": () => (/* binding */ _setPrototypeOf)
|
95817
|
-
/* harmony export */ });
|
95818
|
-
function _setPrototypeOf(o, p) {
|
95819
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
95820
|
-
o.__proto__ = p;
|
95821
|
-
return o;
|
95822
|
-
};
|
95823
|
-
return _setPrototypeOf(o, p);
|
95824
|
-
}
|
95825
|
-
|
95826
|
-
/***/ }),
|
95827
|
-
|
95828
93269
|
/***/ 17129:
|
95829
93270
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
95830
93271
|
|