victory-chart 36.8.5 → 36.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/victory-chart.js +78 -2327
- package/dist/victory-chart.min.js +1 -1
- package/es/victory-chart.js +1 -18
- package/lib/victory-chart.js +0 -19
- package/package.json +5 -6
- package/src/victory-chart.tsx +0 -24
package/dist/victory-chart.js
CHANGED
|
@@ -255,8 +255,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
255
255
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
256
256
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
257
257
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
258
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
259
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_17__);
|
|
260
258
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
261
259
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
262
260
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/background.js");
|
|
@@ -267,8 +265,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
267
265
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
268
266
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/wrapper.js");
|
|
269
267
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/hooks/use-previous-props.js");
|
|
270
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
271
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/prop-types.js");
|
|
272
268
|
/* harmony import */ var victory_shared_events__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! victory-shared-events */ "../../victory-shared-events/es/victory-shared-events.js");
|
|
273
269
|
/* harmony import */ var victory_axis__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-axis */ "../../victory-axis/es/victory-axis.js");
|
|
274
270
|
/* harmony import */ var victory_polar_axis__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-polar-axis */ "../../victory-polar-axis/es/victory-polar-axis.js");
|
|
@@ -291,7 +287,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
291
287
|
|
|
292
288
|
|
|
293
289
|
|
|
294
|
-
|
|
295
290
|
var fallbackProps = {
|
|
296
291
|
width: 450,
|
|
297
292
|
height: 300,
|
|
@@ -425,22 +420,6 @@ var VictoryChartImpl = function (initialProps) {
|
|
|
425
420
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(container, container.props, newChildren);
|
|
426
421
|
};
|
|
427
422
|
|
|
428
|
-
VictoryChartImpl.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_16__.CommonProps.baseProps), {}, {
|
|
429
|
-
backgroundComponent: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().element),
|
|
430
|
-
children: prop_types__WEBPACK_IMPORTED_MODULE_17___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_17___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_17___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_17___default().node)]),
|
|
431
|
-
defaultAxes: prop_types__WEBPACK_IMPORTED_MODULE_17___default().shape({
|
|
432
|
-
independent: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().element),
|
|
433
|
-
dependent: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().element)
|
|
434
|
-
}),
|
|
435
|
-
defaultPolarAxes: prop_types__WEBPACK_IMPORTED_MODULE_17___default().shape({
|
|
436
|
-
independent: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().element),
|
|
437
|
-
dependent: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().element)
|
|
438
|
-
}),
|
|
439
|
-
endAngle: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().number),
|
|
440
|
-
innerRadius: victory_core__WEBPACK_IMPORTED_MODULE_18__.nonNegative,
|
|
441
|
-
prependDefaultAxes: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().bool),
|
|
442
|
-
startAngle: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().number)
|
|
443
|
-
});
|
|
444
423
|
var VictoryChart = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().memo(VictoryChartImpl, (react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
445
424
|
VictoryChart.displayName = "VictoryChart"; // @ts-expect-error FIXME: Does this "expectedComponents" do anything?
|
|
446
425
|
|
|
@@ -1066,40 +1045,6 @@ function baseDifference(array, values, iteratee, comparator) {
|
|
|
1066
1045
|
module.exports = baseDifference;
|
|
1067
1046
|
|
|
1068
1047
|
|
|
1069
|
-
/***/ }),
|
|
1070
|
-
|
|
1071
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js":
|
|
1072
|
-
/*!****************************************************************************************!*\
|
|
1073
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js ***!
|
|
1074
|
-
\****************************************************************************************/
|
|
1075
|
-
/***/ ((module) => {
|
|
1076
|
-
|
|
1077
|
-
/**
|
|
1078
|
-
* The base implementation of `_.findIndex` and `_.findLastIndex` without
|
|
1079
|
-
* support for iteratee shorthands.
|
|
1080
|
-
*
|
|
1081
|
-
* @private
|
|
1082
|
-
* @param {Array} array The array to inspect.
|
|
1083
|
-
* @param {Function} predicate The function invoked per iteration.
|
|
1084
|
-
* @param {number} fromIndex The index to search from.
|
|
1085
|
-
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
1086
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
1087
|
-
*/
|
|
1088
|
-
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
1089
|
-
var length = array.length,
|
|
1090
|
-
index = fromIndex + (fromRight ? 1 : -1);
|
|
1091
|
-
|
|
1092
|
-
while ((fromRight ? index-- : ++index < length)) {
|
|
1093
|
-
if (predicate(array[index], index, array)) {
|
|
1094
|
-
return index;
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
return -1;
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
module.exports = baseFindIndex;
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
1048
|
/***/ }),
|
|
1104
1049
|
|
|
1105
1050
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js":
|
|
@@ -1584,34 +1529,6 @@ function baseIsMatch(object, source, matchData, customizer) {
|
|
|
1584
1529
|
module.exports = baseIsMatch;
|
|
1585
1530
|
|
|
1586
1531
|
|
|
1587
|
-
/***/ }),
|
|
1588
|
-
|
|
1589
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsRegExp.js":
|
|
1590
|
-
/*!***************************************************************************************!*\
|
|
1591
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsRegExp.js ***!
|
|
1592
|
-
\***************************************************************************************/
|
|
1593
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1594
|
-
|
|
1595
|
-
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"),
|
|
1596
|
-
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");
|
|
1597
|
-
|
|
1598
|
-
/** `Object#toString` result references. */
|
|
1599
|
-
var regexpTag = '[object RegExp]';
|
|
1600
|
-
|
|
1601
|
-
/**
|
|
1602
|
-
* The base implementation of `_.isRegExp` without Node.js optimizations.
|
|
1603
|
-
*
|
|
1604
|
-
* @private
|
|
1605
|
-
* @param {*} value The value to check.
|
|
1606
|
-
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
|
|
1607
|
-
*/
|
|
1608
|
-
function baseIsRegExp(value) {
|
|
1609
|
-
return isObjectLike(value) && baseGetTag(value) == regexpTag;
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
module.exports = baseIsRegExp;
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
1532
|
/***/ }),
|
|
1616
1533
|
|
|
1617
1534
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js":
|
|
@@ -2159,35 +2076,6 @@ function baseToString(value) {
|
|
|
2159
2076
|
module.exports = baseToString;
|
|
2160
2077
|
|
|
2161
2078
|
|
|
2162
|
-
/***/ }),
|
|
2163
|
-
|
|
2164
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js":
|
|
2165
|
-
/*!***********************************************************************************!*\
|
|
2166
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js ***!
|
|
2167
|
-
\***********************************************************************************/
|
|
2168
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2169
|
-
|
|
2170
|
-
var trimmedEndIndex = __webpack_require__(/*! ./_trimmedEndIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js");
|
|
2171
|
-
|
|
2172
|
-
/** Used to match leading whitespace. */
|
|
2173
|
-
var reTrimStart = /^\s+/;
|
|
2174
|
-
|
|
2175
|
-
/**
|
|
2176
|
-
* The base implementation of `_.trim`.
|
|
2177
|
-
*
|
|
2178
|
-
* @private
|
|
2179
|
-
* @param {string} string The string to trim.
|
|
2180
|
-
* @returns {string} Returns the trimmed string.
|
|
2181
|
-
*/
|
|
2182
|
-
function baseTrim(string) {
|
|
2183
|
-
return string
|
|
2184
|
-
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
2185
|
-
: string;
|
|
2186
|
-
}
|
|
2187
|
-
|
|
2188
|
-
module.exports = baseTrim;
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
2079
|
/***/ }),
|
|
2192
2080
|
|
|
2193
2081
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js":
|
|
@@ -2554,41 +2442,6 @@ function createBaseFor(fromRight) {
|
|
|
2554
2442
|
module.exports = createBaseFor;
|
|
2555
2443
|
|
|
2556
2444
|
|
|
2557
|
-
/***/ }),
|
|
2558
|
-
|
|
2559
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js":
|
|
2560
|
-
/*!*************************************************************************************!*\
|
|
2561
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js ***!
|
|
2562
|
-
\*************************************************************************************/
|
|
2563
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2564
|
-
|
|
2565
|
-
var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
|
|
2566
|
-
isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"),
|
|
2567
|
-
keys = __webpack_require__(/*! ./keys */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js");
|
|
2568
|
-
|
|
2569
|
-
/**
|
|
2570
|
-
* Creates a `_.find` or `_.findLast` function.
|
|
2571
|
-
*
|
|
2572
|
-
* @private
|
|
2573
|
-
* @param {Function} findIndexFunc The function to find the collection index.
|
|
2574
|
-
* @returns {Function} Returns the new find function.
|
|
2575
|
-
*/
|
|
2576
|
-
function createFind(findIndexFunc) {
|
|
2577
|
-
return function(collection, predicate, fromIndex) {
|
|
2578
|
-
var iterable = Object(collection);
|
|
2579
|
-
if (!isArrayLike(collection)) {
|
|
2580
|
-
var iteratee = baseIteratee(predicate, 3);
|
|
2581
|
-
collection = keys(collection);
|
|
2582
|
-
predicate = function(key) { return iteratee(iterable[key], key, iterable); };
|
|
2583
|
-
}
|
|
2584
|
-
var index = findIndexFunc(collection, predicate, fromIndex);
|
|
2585
|
-
return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
|
|
2586
|
-
};
|
|
2587
|
-
}
|
|
2588
|
-
|
|
2589
|
-
module.exports = createFind;
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
2445
|
/***/ }),
|
|
2593
2446
|
|
|
2594
2447
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createInverter.js":
|
|
@@ -3813,35 +3666,6 @@ function toKey(value) {
|
|
|
3813
3666
|
module.exports = toKey;
|
|
3814
3667
|
|
|
3815
3668
|
|
|
3816
|
-
/***/ }),
|
|
3817
|
-
|
|
3818
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js":
|
|
3819
|
-
/*!******************************************************************************************!*\
|
|
3820
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js ***!
|
|
3821
|
-
\******************************************************************************************/
|
|
3822
|
-
/***/ ((module) => {
|
|
3823
|
-
|
|
3824
|
-
/** Used to match a single whitespace character. */
|
|
3825
|
-
var reWhitespace = /\s/;
|
|
3826
|
-
|
|
3827
|
-
/**
|
|
3828
|
-
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
3829
|
-
* character of `string`.
|
|
3830
|
-
*
|
|
3831
|
-
* @private
|
|
3832
|
-
* @param {string} string The string to inspect.
|
|
3833
|
-
* @returns {number} Returns the index of the last non-whitespace character.
|
|
3834
|
-
*/
|
|
3835
|
-
function trimmedEndIndex(string) {
|
|
3836
|
-
var index = string.length;
|
|
3837
|
-
|
|
3838
|
-
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
3839
|
-
return index;
|
|
3840
|
-
}
|
|
3841
|
-
|
|
3842
|
-
module.exports = trimmedEndIndex;
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
3669
|
/***/ }),
|
|
3846
3670
|
|
|
3847
3671
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js":
|
|
@@ -4042,123 +3866,6 @@ function eq(value, other) {
|
|
|
4042
3866
|
module.exports = eq;
|
|
4043
3867
|
|
|
4044
3868
|
|
|
4045
|
-
/***/ }),
|
|
4046
|
-
|
|
4047
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/find.js":
|
|
4048
|
-
/*!******************************************************************************!*\
|
|
4049
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/find.js ***!
|
|
4050
|
-
\******************************************************************************/
|
|
4051
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4052
|
-
|
|
4053
|
-
var createFind = __webpack_require__(/*! ./_createFind */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js"),
|
|
4054
|
-
findIndex = __webpack_require__(/*! ./findIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js");
|
|
4055
|
-
|
|
4056
|
-
/**
|
|
4057
|
-
* Iterates over elements of `collection`, returning the first element
|
|
4058
|
-
* `predicate` returns truthy for. The predicate is invoked with three
|
|
4059
|
-
* arguments: (value, index|key, collection).
|
|
4060
|
-
*
|
|
4061
|
-
* @static
|
|
4062
|
-
* @memberOf _
|
|
4063
|
-
* @since 0.1.0
|
|
4064
|
-
* @category Collection
|
|
4065
|
-
* @param {Array|Object} collection The collection to inspect.
|
|
4066
|
-
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
4067
|
-
* @param {number} [fromIndex=0] The index to search from.
|
|
4068
|
-
* @returns {*} Returns the matched element, else `undefined`.
|
|
4069
|
-
* @example
|
|
4070
|
-
*
|
|
4071
|
-
* var users = [
|
|
4072
|
-
* { 'user': 'barney', 'age': 36, 'active': true },
|
|
4073
|
-
* { 'user': 'fred', 'age': 40, 'active': false },
|
|
4074
|
-
* { 'user': 'pebbles', 'age': 1, 'active': true }
|
|
4075
|
-
* ];
|
|
4076
|
-
*
|
|
4077
|
-
* _.find(users, function(o) { return o.age < 40; });
|
|
4078
|
-
* // => object for 'barney'
|
|
4079
|
-
*
|
|
4080
|
-
* // The `_.matches` iteratee shorthand.
|
|
4081
|
-
* _.find(users, { 'age': 1, 'active': true });
|
|
4082
|
-
* // => object for 'pebbles'
|
|
4083
|
-
*
|
|
4084
|
-
* // The `_.matchesProperty` iteratee shorthand.
|
|
4085
|
-
* _.find(users, ['active', false]);
|
|
4086
|
-
* // => object for 'fred'
|
|
4087
|
-
*
|
|
4088
|
-
* // The `_.property` iteratee shorthand.
|
|
4089
|
-
* _.find(users, 'active');
|
|
4090
|
-
* // => object for 'barney'
|
|
4091
|
-
*/
|
|
4092
|
-
var find = createFind(findIndex);
|
|
4093
|
-
|
|
4094
|
-
module.exports = find;
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
/***/ }),
|
|
4098
|
-
|
|
4099
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js":
|
|
4100
|
-
/*!***********************************************************************************!*\
|
|
4101
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js ***!
|
|
4102
|
-
\***********************************************************************************/
|
|
4103
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4104
|
-
|
|
4105
|
-
var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js"),
|
|
4106
|
-
baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
|
|
4107
|
-
toInteger = __webpack_require__(/*! ./toInteger */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toInteger.js");
|
|
4108
|
-
|
|
4109
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4110
|
-
var nativeMax = Math.max;
|
|
4111
|
-
|
|
4112
|
-
/**
|
|
4113
|
-
* This method is like `_.find` except that it returns the index of the first
|
|
4114
|
-
* element `predicate` returns truthy for instead of the element itself.
|
|
4115
|
-
*
|
|
4116
|
-
* @static
|
|
4117
|
-
* @memberOf _
|
|
4118
|
-
* @since 1.1.0
|
|
4119
|
-
* @category Array
|
|
4120
|
-
* @param {Array} array The array to inspect.
|
|
4121
|
-
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
4122
|
-
* @param {number} [fromIndex=0] The index to search from.
|
|
4123
|
-
* @returns {number} Returns the index of the found element, else `-1`.
|
|
4124
|
-
* @example
|
|
4125
|
-
*
|
|
4126
|
-
* var users = [
|
|
4127
|
-
* { 'user': 'barney', 'active': false },
|
|
4128
|
-
* { 'user': 'fred', 'active': false },
|
|
4129
|
-
* { 'user': 'pebbles', 'active': true }
|
|
4130
|
-
* ];
|
|
4131
|
-
*
|
|
4132
|
-
* _.findIndex(users, function(o) { return o.user == 'barney'; });
|
|
4133
|
-
* // => 0
|
|
4134
|
-
*
|
|
4135
|
-
* // The `_.matches` iteratee shorthand.
|
|
4136
|
-
* _.findIndex(users, { 'user': 'fred', 'active': false });
|
|
4137
|
-
* // => 1
|
|
4138
|
-
*
|
|
4139
|
-
* // The `_.matchesProperty` iteratee shorthand.
|
|
4140
|
-
* _.findIndex(users, ['active', false]);
|
|
4141
|
-
* // => 0
|
|
4142
|
-
*
|
|
4143
|
-
* // The `_.property` iteratee shorthand.
|
|
4144
|
-
* _.findIndex(users, 'active');
|
|
4145
|
-
* // => 2
|
|
4146
|
-
*/
|
|
4147
|
-
function findIndex(array, predicate, fromIndex) {
|
|
4148
|
-
var length = array == null ? 0 : array.length;
|
|
4149
|
-
if (!length) {
|
|
4150
|
-
return -1;
|
|
4151
|
-
}
|
|
4152
|
-
var index = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
4153
|
-
if (index < 0) {
|
|
4154
|
-
index = nativeMax(length + index, 0);
|
|
4155
|
-
}
|
|
4156
|
-
return baseFindIndex(array, baseIteratee(predicate, 3), index);
|
|
4157
|
-
}
|
|
4158
|
-
|
|
4159
|
-
module.exports = findIndex;
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
3869
|
/***/ }),
|
|
4163
3870
|
|
|
4164
3871
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatten.js":
|
|
@@ -5103,43 +4810,6 @@ function isPlainObject(value) {
|
|
|
5103
4810
|
module.exports = isPlainObject;
|
|
5104
4811
|
|
|
5105
4812
|
|
|
5106
|
-
/***/ }),
|
|
5107
|
-
|
|
5108
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isRegExp.js":
|
|
5109
|
-
/*!**********************************************************************************!*\
|
|
5110
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isRegExp.js ***!
|
|
5111
|
-
\**********************************************************************************/
|
|
5112
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5113
|
-
|
|
5114
|
-
var baseIsRegExp = __webpack_require__(/*! ./_baseIsRegExp */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsRegExp.js"),
|
|
5115
|
-
baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js"),
|
|
5116
|
-
nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js");
|
|
5117
|
-
|
|
5118
|
-
/* Node.js helper references. */
|
|
5119
|
-
var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
|
|
5120
|
-
|
|
5121
|
-
/**
|
|
5122
|
-
* Checks if `value` is classified as a `RegExp` object.
|
|
5123
|
-
*
|
|
5124
|
-
* @static
|
|
5125
|
-
* @memberOf _
|
|
5126
|
-
* @since 0.1.0
|
|
5127
|
-
* @category Lang
|
|
5128
|
-
* @param {*} value The value to check.
|
|
5129
|
-
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
|
|
5130
|
-
* @example
|
|
5131
|
-
*
|
|
5132
|
-
* _.isRegExp(/abc/);
|
|
5133
|
-
* // => true
|
|
5134
|
-
*
|
|
5135
|
-
* _.isRegExp('/abc/');
|
|
5136
|
-
* // => false
|
|
5137
|
-
*/
|
|
5138
|
-
var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
|
|
5139
|
-
|
|
5140
|
-
module.exports = isRegExp;
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
4813
|
/***/ }),
|
|
5144
4814
|
|
|
5145
4815
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js":
|
|
@@ -5726,259 +5396,87 @@ module.exports = sortedUniq;
|
|
|
5726
5396
|
|
|
5727
5397
|
/***/ }),
|
|
5728
5398
|
|
|
5729
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5399
|
+
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js":
|
|
5730
5400
|
/*!**********************************************************************************!*\
|
|
5731
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5401
|
+
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js ***!
|
|
5732
5402
|
\**********************************************************************************/
|
|
5733
5403
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5734
5404
|
|
|
5735
|
-
var
|
|
5736
|
-
|
|
5737
|
-
/** Used as references for various `Number` constants. */
|
|
5738
|
-
var INFINITY = 1 / 0,
|
|
5739
|
-
MAX_INTEGER = 1.7976931348623157e+308;
|
|
5405
|
+
var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js");
|
|
5740
5406
|
|
|
5741
5407
|
/**
|
|
5742
|
-
* Converts `value` to a
|
|
5408
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
5409
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
5743
5410
|
*
|
|
5744
5411
|
* @static
|
|
5745
5412
|
* @memberOf _
|
|
5746
|
-
* @since 4.
|
|
5413
|
+
* @since 4.0.0
|
|
5747
5414
|
* @category Lang
|
|
5748
5415
|
* @param {*} value The value to convert.
|
|
5749
|
-
* @returns {
|
|
5416
|
+
* @returns {string} Returns the converted string.
|
|
5750
5417
|
* @example
|
|
5751
5418
|
*
|
|
5752
|
-
* _.
|
|
5753
|
-
* // =>
|
|
5754
|
-
*
|
|
5755
|
-
* _.toFinite(Number.MIN_VALUE);
|
|
5756
|
-
* // => 5e-324
|
|
5419
|
+
* _.toString(null);
|
|
5420
|
+
* // => ''
|
|
5757
5421
|
*
|
|
5758
|
-
* _.
|
|
5759
|
-
* // =>
|
|
5422
|
+
* _.toString(-0);
|
|
5423
|
+
* // => '-0'
|
|
5760
5424
|
*
|
|
5761
|
-
* _.
|
|
5762
|
-
* // => 3
|
|
5425
|
+
* _.toString([1, 2, 3]);
|
|
5426
|
+
* // => '1,2,3'
|
|
5763
5427
|
*/
|
|
5764
|
-
function
|
|
5765
|
-
|
|
5766
|
-
return value === 0 ? value : 0;
|
|
5767
|
-
}
|
|
5768
|
-
value = toNumber(value);
|
|
5769
|
-
if (value === INFINITY || value === -INFINITY) {
|
|
5770
|
-
var sign = (value < 0 ? -1 : 1);
|
|
5771
|
-
return sign * MAX_INTEGER;
|
|
5772
|
-
}
|
|
5773
|
-
return value === value ? value : 0;
|
|
5428
|
+
function toString(value) {
|
|
5429
|
+
return value == null ? '' : baseToString(value);
|
|
5774
5430
|
}
|
|
5775
5431
|
|
|
5776
|
-
module.exports =
|
|
5432
|
+
module.exports = toString;
|
|
5777
5433
|
|
|
5778
5434
|
|
|
5779
5435
|
/***/ }),
|
|
5780
5436
|
|
|
5781
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5782
|
-
|
|
5783
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5784
|
-
|
|
5437
|
+
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js":
|
|
5438
|
+
/*!******************************************************************************!*\
|
|
5439
|
+
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js ***!
|
|
5440
|
+
\******************************************************************************/
|
|
5785
5441
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5786
5442
|
|
|
5787
|
-
var
|
|
5443
|
+
var baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js");
|
|
5788
5444
|
|
|
5789
5445
|
/**
|
|
5790
|
-
*
|
|
5791
|
-
*
|
|
5792
|
-
*
|
|
5793
|
-
*
|
|
5446
|
+
* Creates a duplicate-free version of an array, using
|
|
5447
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
5448
|
+
* for equality comparisons, in which only the first occurrence of each element
|
|
5449
|
+
* is kept. The order of result values is determined by the order they occur
|
|
5450
|
+
* in the array.
|
|
5794
5451
|
*
|
|
5795
5452
|
* @static
|
|
5796
5453
|
* @memberOf _
|
|
5797
|
-
* @since
|
|
5798
|
-
* @category
|
|
5799
|
-
* @param {
|
|
5800
|
-
* @returns {
|
|
5454
|
+
* @since 0.1.0
|
|
5455
|
+
* @category Array
|
|
5456
|
+
* @param {Array} array The array to inspect.
|
|
5457
|
+
* @returns {Array} Returns the new duplicate free array.
|
|
5801
5458
|
* @example
|
|
5802
5459
|
*
|
|
5803
|
-
* _.
|
|
5804
|
-
* // =>
|
|
5805
|
-
*
|
|
5806
|
-
* _.toInteger(Number.MIN_VALUE);
|
|
5807
|
-
* // => 0
|
|
5808
|
-
*
|
|
5809
|
-
* _.toInteger(Infinity);
|
|
5810
|
-
* // => 1.7976931348623157e+308
|
|
5811
|
-
*
|
|
5812
|
-
* _.toInteger('3.2');
|
|
5813
|
-
* // => 3
|
|
5460
|
+
* _.uniq([2, 1, 2]);
|
|
5461
|
+
* // => [2, 1]
|
|
5814
5462
|
*/
|
|
5815
|
-
function
|
|
5816
|
-
|
|
5817
|
-
remainder = result % 1;
|
|
5818
|
-
|
|
5819
|
-
return result === result ? (remainder ? result - remainder : result) : 0;
|
|
5463
|
+
function uniq(array) {
|
|
5464
|
+
return (array && array.length) ? baseUniq(array) : [];
|
|
5820
5465
|
}
|
|
5821
5466
|
|
|
5822
|
-
module.exports =
|
|
5467
|
+
module.exports = uniq;
|
|
5823
5468
|
|
|
5824
5469
|
|
|
5825
5470
|
/***/ }),
|
|
5826
5471
|
|
|
5827
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5828
|
-
|
|
5829
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
5830
|
-
|
|
5472
|
+
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqBy.js":
|
|
5473
|
+
/*!********************************************************************************!*\
|
|
5474
|
+
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqBy.js ***!
|
|
5475
|
+
\********************************************************************************/
|
|
5831
5476
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5832
5477
|
|
|
5833
|
-
var
|
|
5834
|
-
|
|
5835
|
-
isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js");
|
|
5836
|
-
|
|
5837
|
-
/** Used as references for various `Number` constants. */
|
|
5838
|
-
var NAN = 0 / 0;
|
|
5839
|
-
|
|
5840
|
-
/** Used to detect bad signed hexadecimal string values. */
|
|
5841
|
-
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
5842
|
-
|
|
5843
|
-
/** Used to detect binary string values. */
|
|
5844
|
-
var reIsBinary = /^0b[01]+$/i;
|
|
5845
|
-
|
|
5846
|
-
/** Used to detect octal string values. */
|
|
5847
|
-
var reIsOctal = /^0o[0-7]+$/i;
|
|
5848
|
-
|
|
5849
|
-
/** Built-in method references without a dependency on `root`. */
|
|
5850
|
-
var freeParseInt = parseInt;
|
|
5851
|
-
|
|
5852
|
-
/**
|
|
5853
|
-
* Converts `value` to a number.
|
|
5854
|
-
*
|
|
5855
|
-
* @static
|
|
5856
|
-
* @memberOf _
|
|
5857
|
-
* @since 4.0.0
|
|
5858
|
-
* @category Lang
|
|
5859
|
-
* @param {*} value The value to process.
|
|
5860
|
-
* @returns {number} Returns the number.
|
|
5861
|
-
* @example
|
|
5862
|
-
*
|
|
5863
|
-
* _.toNumber(3.2);
|
|
5864
|
-
* // => 3.2
|
|
5865
|
-
*
|
|
5866
|
-
* _.toNumber(Number.MIN_VALUE);
|
|
5867
|
-
* // => 5e-324
|
|
5868
|
-
*
|
|
5869
|
-
* _.toNumber(Infinity);
|
|
5870
|
-
* // => Infinity
|
|
5871
|
-
*
|
|
5872
|
-
* _.toNumber('3.2');
|
|
5873
|
-
* // => 3.2
|
|
5874
|
-
*/
|
|
5875
|
-
function toNumber(value) {
|
|
5876
|
-
if (typeof value == 'number') {
|
|
5877
|
-
return value;
|
|
5878
|
-
}
|
|
5879
|
-
if (isSymbol(value)) {
|
|
5880
|
-
return NAN;
|
|
5881
|
-
}
|
|
5882
|
-
if (isObject(value)) {
|
|
5883
|
-
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
5884
|
-
value = isObject(other) ? (other + '') : other;
|
|
5885
|
-
}
|
|
5886
|
-
if (typeof value != 'string') {
|
|
5887
|
-
return value === 0 ? value : +value;
|
|
5888
|
-
}
|
|
5889
|
-
value = baseTrim(value);
|
|
5890
|
-
var isBinary = reIsBinary.test(value);
|
|
5891
|
-
return (isBinary || reIsOctal.test(value))
|
|
5892
|
-
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
5893
|
-
: (reIsBadHex.test(value) ? NAN : +value);
|
|
5894
|
-
}
|
|
5895
|
-
|
|
5896
|
-
module.exports = toNumber;
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
/***/ }),
|
|
5900
|
-
|
|
5901
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js":
|
|
5902
|
-
/*!**********************************************************************************!*\
|
|
5903
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js ***!
|
|
5904
|
-
\**********************************************************************************/
|
|
5905
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5906
|
-
|
|
5907
|
-
var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js");
|
|
5908
|
-
|
|
5909
|
-
/**
|
|
5910
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
5911
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
5912
|
-
*
|
|
5913
|
-
* @static
|
|
5914
|
-
* @memberOf _
|
|
5915
|
-
* @since 4.0.0
|
|
5916
|
-
* @category Lang
|
|
5917
|
-
* @param {*} value The value to convert.
|
|
5918
|
-
* @returns {string} Returns the converted string.
|
|
5919
|
-
* @example
|
|
5920
|
-
*
|
|
5921
|
-
* _.toString(null);
|
|
5922
|
-
* // => ''
|
|
5923
|
-
*
|
|
5924
|
-
* _.toString(-0);
|
|
5925
|
-
* // => '-0'
|
|
5926
|
-
*
|
|
5927
|
-
* _.toString([1, 2, 3]);
|
|
5928
|
-
* // => '1,2,3'
|
|
5929
|
-
*/
|
|
5930
|
-
function toString(value) {
|
|
5931
|
-
return value == null ? '' : baseToString(value);
|
|
5932
|
-
}
|
|
5933
|
-
|
|
5934
|
-
module.exports = toString;
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
/***/ }),
|
|
5938
|
-
|
|
5939
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js":
|
|
5940
|
-
/*!******************************************************************************!*\
|
|
5941
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js ***!
|
|
5942
|
-
\******************************************************************************/
|
|
5943
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5944
|
-
|
|
5945
|
-
var baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js");
|
|
5946
|
-
|
|
5947
|
-
/**
|
|
5948
|
-
* Creates a duplicate-free version of an array, using
|
|
5949
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
5950
|
-
* for equality comparisons, in which only the first occurrence of each element
|
|
5951
|
-
* is kept. The order of result values is determined by the order they occur
|
|
5952
|
-
* in the array.
|
|
5953
|
-
*
|
|
5954
|
-
* @static
|
|
5955
|
-
* @memberOf _
|
|
5956
|
-
* @since 0.1.0
|
|
5957
|
-
* @category Array
|
|
5958
|
-
* @param {Array} array The array to inspect.
|
|
5959
|
-
* @returns {Array} Returns the new duplicate free array.
|
|
5960
|
-
* @example
|
|
5961
|
-
*
|
|
5962
|
-
* _.uniq([2, 1, 2]);
|
|
5963
|
-
* // => [2, 1]
|
|
5964
|
-
*/
|
|
5965
|
-
function uniq(array) {
|
|
5966
|
-
return (array && array.length) ? baseUniq(array) : [];
|
|
5967
|
-
}
|
|
5968
|
-
|
|
5969
|
-
module.exports = uniq;
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
/***/ }),
|
|
5973
|
-
|
|
5974
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqBy.js":
|
|
5975
|
-
/*!********************************************************************************!*\
|
|
5976
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqBy.js ***!
|
|
5977
|
-
\********************************************************************************/
|
|
5978
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5979
|
-
|
|
5980
|
-
var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
|
|
5981
|
-
baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js");
|
|
5478
|
+
var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js"),
|
|
5479
|
+
baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js");
|
|
5982
5480
|
|
|
5983
5481
|
/**
|
|
5984
5482
|
* This method is like `_.uniq` except that it accepts `iteratee` which is
|
|
@@ -6120,912 +5618,17 @@ var baseDifference = __webpack_require__(/*! ./_baseDifference */ "../../../node
|
|
|
6120
5618
|
* @returns {Array} Returns the new array of filtered values.
|
|
6121
5619
|
* @see _.difference, _.xor
|
|
6122
5620
|
* @example
|
|
6123
|
-
*
|
|
6124
|
-
* _.without([2, 1, 2, 3], 1, 2);
|
|
6125
|
-
* // => [3]
|
|
6126
|
-
*/
|
|
6127
|
-
var without = baseRest(function(array, values) {
|
|
6128
|
-
return isArrayLikeObject(array)
|
|
6129
|
-
? baseDifference(array, values)
|
|
6130
|
-
: [];
|
|
6131
|
-
});
|
|
6132
|
-
|
|
6133
|
-
module.exports = without;
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
/***/ }),
|
|
6137
|
-
|
|
6138
|
-
/***/ "../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js":
|
|
6139
|
-
/*!*******************************************************************************************!*\
|
|
6140
|
-
!*** ../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js ***!
|
|
6141
|
-
\*******************************************************************************************/
|
|
6142
|
-
/***/ ((module) => {
|
|
6143
|
-
|
|
6144
|
-
"use strict";
|
|
6145
|
-
/*
|
|
6146
|
-
object-assign
|
|
6147
|
-
(c) Sindre Sorhus
|
|
6148
|
-
@license MIT
|
|
6149
|
-
*/
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
/* eslint-disable no-unused-vars */
|
|
6153
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
6154
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
6155
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
6156
|
-
|
|
6157
|
-
function toObject(val) {
|
|
6158
|
-
if (val === null || val === undefined) {
|
|
6159
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
6160
|
-
}
|
|
6161
|
-
|
|
6162
|
-
return Object(val);
|
|
6163
|
-
}
|
|
6164
|
-
|
|
6165
|
-
function shouldUseNative() {
|
|
6166
|
-
try {
|
|
6167
|
-
if (!Object.assign) {
|
|
6168
|
-
return false;
|
|
6169
|
-
}
|
|
6170
|
-
|
|
6171
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
6172
|
-
|
|
6173
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
6174
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
6175
|
-
test1[5] = 'de';
|
|
6176
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
6177
|
-
return false;
|
|
6178
|
-
}
|
|
6179
|
-
|
|
6180
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
6181
|
-
var test2 = {};
|
|
6182
|
-
for (var i = 0; i < 10; i++) {
|
|
6183
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
6184
|
-
}
|
|
6185
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
6186
|
-
return test2[n];
|
|
6187
|
-
});
|
|
6188
|
-
if (order2.join('') !== '0123456789') {
|
|
6189
|
-
return false;
|
|
6190
|
-
}
|
|
6191
|
-
|
|
6192
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
6193
|
-
var test3 = {};
|
|
6194
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
6195
|
-
test3[letter] = letter;
|
|
6196
|
-
});
|
|
6197
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
6198
|
-
'abcdefghijklmnopqrst') {
|
|
6199
|
-
return false;
|
|
6200
|
-
}
|
|
6201
|
-
|
|
6202
|
-
return true;
|
|
6203
|
-
} catch (err) {
|
|
6204
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
6205
|
-
return false;
|
|
6206
|
-
}
|
|
6207
|
-
}
|
|
6208
|
-
|
|
6209
|
-
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
6210
|
-
var from;
|
|
6211
|
-
var to = toObject(target);
|
|
6212
|
-
var symbols;
|
|
6213
|
-
|
|
6214
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
6215
|
-
from = Object(arguments[s]);
|
|
6216
|
-
|
|
6217
|
-
for (var key in from) {
|
|
6218
|
-
if (hasOwnProperty.call(from, key)) {
|
|
6219
|
-
to[key] = from[key];
|
|
6220
|
-
}
|
|
6221
|
-
}
|
|
6222
|
-
|
|
6223
|
-
if (getOwnPropertySymbols) {
|
|
6224
|
-
symbols = getOwnPropertySymbols(from);
|
|
6225
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
6226
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
6227
|
-
to[symbols[i]] = from[symbols[i]];
|
|
6228
|
-
}
|
|
6229
|
-
}
|
|
6230
|
-
}
|
|
6231
|
-
}
|
|
6232
|
-
|
|
6233
|
-
return to;
|
|
6234
|
-
};
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
/***/ }),
|
|
6238
|
-
|
|
6239
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js":
|
|
6240
|
-
/*!***********************************************************************************************!*\
|
|
6241
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js ***!
|
|
6242
|
-
\***********************************************************************************************/
|
|
6243
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6244
|
-
|
|
6245
|
-
"use strict";
|
|
6246
|
-
/**
|
|
6247
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6248
|
-
*
|
|
6249
|
-
* This source code is licensed under the MIT license found in the
|
|
6250
|
-
* LICENSE file in the root directory of this source tree.
|
|
6251
|
-
*/
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
var printWarning = function() {};
|
|
6256
|
-
|
|
6257
|
-
if (true) {
|
|
6258
|
-
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6259
|
-
var loggedTypeFailures = {};
|
|
6260
|
-
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js");
|
|
6261
|
-
|
|
6262
|
-
printWarning = function(text) {
|
|
6263
|
-
var message = 'Warning: ' + text;
|
|
6264
|
-
if (typeof console !== 'undefined') {
|
|
6265
|
-
console.error(message);
|
|
6266
|
-
}
|
|
6267
|
-
try {
|
|
6268
|
-
// --- Welcome to debugging React ---
|
|
6269
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
6270
|
-
// to find the callsite that caused this warning to fire.
|
|
6271
|
-
throw new Error(message);
|
|
6272
|
-
} catch (x) { /**/ }
|
|
6273
|
-
};
|
|
6274
|
-
}
|
|
6275
|
-
|
|
6276
|
-
/**
|
|
6277
|
-
* Assert that the values match with the type specs.
|
|
6278
|
-
* Error messages are memorized and will only be shown once.
|
|
6279
|
-
*
|
|
6280
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
6281
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
6282
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
6283
|
-
* @param {string} componentName Name of the component for error messages.
|
|
6284
|
-
* @param {?Function} getStack Returns the component stack.
|
|
6285
|
-
* @private
|
|
6286
|
-
*/
|
|
6287
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
6288
|
-
if (true) {
|
|
6289
|
-
for (var typeSpecName in typeSpecs) {
|
|
6290
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
6291
|
-
var error;
|
|
6292
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
6293
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
6294
|
-
// After these have been cleaned up, we'll let them throw.
|
|
6295
|
-
try {
|
|
6296
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
6297
|
-
// behavior as without this statement except with a better message.
|
|
6298
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
6299
|
-
var err = Error(
|
|
6300
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
6301
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
6302
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
6303
|
-
);
|
|
6304
|
-
err.name = 'Invariant Violation';
|
|
6305
|
-
throw err;
|
|
6306
|
-
}
|
|
6307
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
6308
|
-
} catch (ex) {
|
|
6309
|
-
error = ex;
|
|
6310
|
-
}
|
|
6311
|
-
if (error && !(error instanceof Error)) {
|
|
6312
|
-
printWarning(
|
|
6313
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
6314
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
6315
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
6316
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
6317
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
6318
|
-
'shape all require an argument).'
|
|
6319
|
-
);
|
|
6320
|
-
}
|
|
6321
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
6322
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
6323
|
-
// same error.
|
|
6324
|
-
loggedTypeFailures[error.message] = true;
|
|
6325
|
-
|
|
6326
|
-
var stack = getStack ? getStack() : '';
|
|
6327
|
-
|
|
6328
|
-
printWarning(
|
|
6329
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
6330
|
-
);
|
|
6331
|
-
}
|
|
6332
|
-
}
|
|
6333
|
-
}
|
|
6334
|
-
}
|
|
6335
|
-
}
|
|
6336
|
-
|
|
6337
|
-
/**
|
|
6338
|
-
* Resets warning cache when testing.
|
|
6339
|
-
*
|
|
6340
|
-
* @private
|
|
6341
|
-
*/
|
|
6342
|
-
checkPropTypes.resetWarningCache = function() {
|
|
6343
|
-
if (true) {
|
|
6344
|
-
loggedTypeFailures = {};
|
|
6345
|
-
}
|
|
6346
|
-
}
|
|
6347
|
-
|
|
6348
|
-
module.exports = checkPropTypes;
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
/***/ }),
|
|
6352
|
-
|
|
6353
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js":
|
|
6354
|
-
/*!********************************************************************************************************!*\
|
|
6355
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js ***!
|
|
6356
|
-
\********************************************************************************************************/
|
|
6357
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6358
|
-
|
|
6359
|
-
"use strict";
|
|
6360
|
-
/**
|
|
6361
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6362
|
-
*
|
|
6363
|
-
* This source code is licensed under the MIT license found in the
|
|
6364
|
-
* LICENSE file in the root directory of this source tree.
|
|
6365
|
-
*/
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js");
|
|
6370
|
-
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js");
|
|
6371
|
-
|
|
6372
|
-
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6373
|
-
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js");
|
|
6374
|
-
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js");
|
|
6375
|
-
|
|
6376
|
-
var printWarning = function() {};
|
|
6377
|
-
|
|
6378
|
-
if (true) {
|
|
6379
|
-
printWarning = function(text) {
|
|
6380
|
-
var message = 'Warning: ' + text;
|
|
6381
|
-
if (typeof console !== 'undefined') {
|
|
6382
|
-
console.error(message);
|
|
6383
|
-
}
|
|
6384
|
-
try {
|
|
6385
|
-
// --- Welcome to debugging React ---
|
|
6386
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
6387
|
-
// to find the callsite that caused this warning to fire.
|
|
6388
|
-
throw new Error(message);
|
|
6389
|
-
} catch (x) {}
|
|
6390
|
-
};
|
|
6391
|
-
}
|
|
6392
|
-
|
|
6393
|
-
function emptyFunctionThatReturnsNull() {
|
|
6394
|
-
return null;
|
|
6395
|
-
}
|
|
6396
|
-
|
|
6397
|
-
module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
6398
|
-
/* global Symbol */
|
|
6399
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
6400
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
6401
|
-
|
|
6402
|
-
/**
|
|
6403
|
-
* Returns the iterator method function contained on the iterable object.
|
|
6404
|
-
*
|
|
6405
|
-
* Be sure to invoke the function with the iterable as context:
|
|
6406
|
-
*
|
|
6407
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
6408
|
-
* if (iteratorFn) {
|
|
6409
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
6410
|
-
* ...
|
|
6411
|
-
* }
|
|
6412
|
-
*
|
|
6413
|
-
* @param {?object} maybeIterable
|
|
6414
|
-
* @return {?function}
|
|
6415
|
-
*/
|
|
6416
|
-
function getIteratorFn(maybeIterable) {
|
|
6417
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
6418
|
-
if (typeof iteratorFn === 'function') {
|
|
6419
|
-
return iteratorFn;
|
|
6420
|
-
}
|
|
6421
|
-
}
|
|
6422
|
-
|
|
6423
|
-
/**
|
|
6424
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
6425
|
-
* supplied to React components. Example usage:
|
|
6426
|
-
*
|
|
6427
|
-
* var Props = require('ReactPropTypes');
|
|
6428
|
-
* var MyArticle = React.createClass({
|
|
6429
|
-
* propTypes: {
|
|
6430
|
-
* // An optional string prop named "description".
|
|
6431
|
-
* description: Props.string,
|
|
6432
|
-
*
|
|
6433
|
-
* // A required enum prop named "category".
|
|
6434
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
6435
|
-
*
|
|
6436
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
6437
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
6438
|
-
* },
|
|
6439
|
-
* render: function() { ... }
|
|
6440
|
-
* });
|
|
6441
|
-
*
|
|
6442
|
-
* A more formal specification of how these methods are used:
|
|
6443
|
-
*
|
|
6444
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
6445
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
6446
|
-
*
|
|
6447
|
-
* Each and every declaration produces a function with the same signature. This
|
|
6448
|
-
* allows the creation of custom validation functions. For example:
|
|
6449
|
-
*
|
|
6450
|
-
* var MyLink = React.createClass({
|
|
6451
|
-
* propTypes: {
|
|
6452
|
-
* // An optional string or URI prop named "href".
|
|
6453
|
-
* href: function(props, propName, componentName) {
|
|
6454
|
-
* var propValue = props[propName];
|
|
6455
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
6456
|
-
* !(propValue instanceof URI)) {
|
|
6457
|
-
* return new Error(
|
|
6458
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
6459
|
-
* componentName
|
|
6460
|
-
* );
|
|
6461
|
-
* }
|
|
6462
|
-
* }
|
|
6463
|
-
* },
|
|
6464
|
-
* render: function() {...}
|
|
6465
|
-
* });
|
|
6466
|
-
*
|
|
6467
|
-
* @internal
|
|
6468
|
-
*/
|
|
6469
|
-
|
|
6470
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
6471
|
-
|
|
6472
|
-
// Important!
|
|
6473
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
6474
|
-
var ReactPropTypes = {
|
|
6475
|
-
array: createPrimitiveTypeChecker('array'),
|
|
6476
|
-
bigint: createPrimitiveTypeChecker('bigint'),
|
|
6477
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
6478
|
-
func: createPrimitiveTypeChecker('function'),
|
|
6479
|
-
number: createPrimitiveTypeChecker('number'),
|
|
6480
|
-
object: createPrimitiveTypeChecker('object'),
|
|
6481
|
-
string: createPrimitiveTypeChecker('string'),
|
|
6482
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
6483
|
-
|
|
6484
|
-
any: createAnyTypeChecker(),
|
|
6485
|
-
arrayOf: createArrayOfTypeChecker,
|
|
6486
|
-
element: createElementTypeChecker(),
|
|
6487
|
-
elementType: createElementTypeTypeChecker(),
|
|
6488
|
-
instanceOf: createInstanceTypeChecker,
|
|
6489
|
-
node: createNodeChecker(),
|
|
6490
|
-
objectOf: createObjectOfTypeChecker,
|
|
6491
|
-
oneOf: createEnumTypeChecker,
|
|
6492
|
-
oneOfType: createUnionTypeChecker,
|
|
6493
|
-
shape: createShapeTypeChecker,
|
|
6494
|
-
exact: createStrictShapeTypeChecker,
|
|
6495
|
-
};
|
|
6496
|
-
|
|
6497
|
-
/**
|
|
6498
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
6499
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
6500
|
-
*/
|
|
6501
|
-
/*eslint-disable no-self-compare*/
|
|
6502
|
-
function is(x, y) {
|
|
6503
|
-
// SameValue algorithm
|
|
6504
|
-
if (x === y) {
|
|
6505
|
-
// Steps 1-5, 7-10
|
|
6506
|
-
// Steps 6.b-6.e: +0 != -0
|
|
6507
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
6508
|
-
} else {
|
|
6509
|
-
// Step 6.a: NaN == NaN
|
|
6510
|
-
return x !== x && y !== y;
|
|
6511
|
-
}
|
|
6512
|
-
}
|
|
6513
|
-
/*eslint-enable no-self-compare*/
|
|
6514
|
-
|
|
6515
|
-
/**
|
|
6516
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
6517
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
6518
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
6519
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
6520
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
6521
|
-
*/
|
|
6522
|
-
function PropTypeError(message, data) {
|
|
6523
|
-
this.message = message;
|
|
6524
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
6525
|
-
this.stack = '';
|
|
6526
|
-
}
|
|
6527
|
-
// Make `instanceof Error` still work for returned errors.
|
|
6528
|
-
PropTypeError.prototype = Error.prototype;
|
|
6529
|
-
|
|
6530
|
-
function createChainableTypeChecker(validate) {
|
|
6531
|
-
if (true) {
|
|
6532
|
-
var manualPropTypeCallCache = {};
|
|
6533
|
-
var manualPropTypeWarningCount = 0;
|
|
6534
|
-
}
|
|
6535
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
6536
|
-
componentName = componentName || ANONYMOUS;
|
|
6537
|
-
propFullName = propFullName || propName;
|
|
6538
|
-
|
|
6539
|
-
if (secret !== ReactPropTypesSecret) {
|
|
6540
|
-
if (throwOnDirectAccess) {
|
|
6541
|
-
// New behavior only for users of `prop-types` package
|
|
6542
|
-
var err = new Error(
|
|
6543
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
6544
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
6545
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
6546
|
-
);
|
|
6547
|
-
err.name = 'Invariant Violation';
|
|
6548
|
-
throw err;
|
|
6549
|
-
} else if ( true && typeof console !== 'undefined') {
|
|
6550
|
-
// Old behavior for people using React.PropTypes
|
|
6551
|
-
var cacheKey = componentName + ':' + propName;
|
|
6552
|
-
if (
|
|
6553
|
-
!manualPropTypeCallCache[cacheKey] &&
|
|
6554
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
6555
|
-
manualPropTypeWarningCount < 3
|
|
6556
|
-
) {
|
|
6557
|
-
printWarning(
|
|
6558
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
6559
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
6560
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
6561
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
6562
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
6563
|
-
);
|
|
6564
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
6565
|
-
manualPropTypeWarningCount++;
|
|
6566
|
-
}
|
|
6567
|
-
}
|
|
6568
|
-
}
|
|
6569
|
-
if (props[propName] == null) {
|
|
6570
|
-
if (isRequired) {
|
|
6571
|
-
if (props[propName] === null) {
|
|
6572
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
6573
|
-
}
|
|
6574
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
6575
|
-
}
|
|
6576
|
-
return null;
|
|
6577
|
-
} else {
|
|
6578
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
6579
|
-
}
|
|
6580
|
-
}
|
|
6581
|
-
|
|
6582
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
6583
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
6584
|
-
|
|
6585
|
-
return chainedCheckType;
|
|
6586
|
-
}
|
|
6587
|
-
|
|
6588
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
6589
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
6590
|
-
var propValue = props[propName];
|
|
6591
|
-
var propType = getPropType(propValue);
|
|
6592
|
-
if (propType !== expectedType) {
|
|
6593
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
6594
|
-
// check, but we can offer a more precise error message here rather than
|
|
6595
|
-
// 'of type `object`'.
|
|
6596
|
-
var preciseType = getPreciseType(propValue);
|
|
6597
|
-
|
|
6598
|
-
return new PropTypeError(
|
|
6599
|
-
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
6600
|
-
{expectedType: expectedType}
|
|
6601
|
-
);
|
|
6602
|
-
}
|
|
6603
|
-
return null;
|
|
6604
|
-
}
|
|
6605
|
-
return createChainableTypeChecker(validate);
|
|
6606
|
-
}
|
|
6607
|
-
|
|
6608
|
-
function createAnyTypeChecker() {
|
|
6609
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
6610
|
-
}
|
|
6611
|
-
|
|
6612
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
6613
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6614
|
-
if (typeof typeChecker !== 'function') {
|
|
6615
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
6616
|
-
}
|
|
6617
|
-
var propValue = props[propName];
|
|
6618
|
-
if (!Array.isArray(propValue)) {
|
|
6619
|
-
var propType = getPropType(propValue);
|
|
6620
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
6621
|
-
}
|
|
6622
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
6623
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
6624
|
-
if (error instanceof Error) {
|
|
6625
|
-
return error;
|
|
6626
|
-
}
|
|
6627
|
-
}
|
|
6628
|
-
return null;
|
|
6629
|
-
}
|
|
6630
|
-
return createChainableTypeChecker(validate);
|
|
6631
|
-
}
|
|
6632
|
-
|
|
6633
|
-
function createElementTypeChecker() {
|
|
6634
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6635
|
-
var propValue = props[propName];
|
|
6636
|
-
if (!isValidElement(propValue)) {
|
|
6637
|
-
var propType = getPropType(propValue);
|
|
6638
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
6639
|
-
}
|
|
6640
|
-
return null;
|
|
6641
|
-
}
|
|
6642
|
-
return createChainableTypeChecker(validate);
|
|
6643
|
-
}
|
|
6644
|
-
|
|
6645
|
-
function createElementTypeTypeChecker() {
|
|
6646
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6647
|
-
var propValue = props[propName];
|
|
6648
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
|
6649
|
-
var propType = getPropType(propValue);
|
|
6650
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
6651
|
-
}
|
|
6652
|
-
return null;
|
|
6653
|
-
}
|
|
6654
|
-
return createChainableTypeChecker(validate);
|
|
6655
|
-
}
|
|
6656
|
-
|
|
6657
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
6658
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6659
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
6660
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
6661
|
-
var actualClassName = getClassName(props[propName]);
|
|
6662
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
6663
|
-
}
|
|
6664
|
-
return null;
|
|
6665
|
-
}
|
|
6666
|
-
return createChainableTypeChecker(validate);
|
|
6667
|
-
}
|
|
6668
|
-
|
|
6669
|
-
function createEnumTypeChecker(expectedValues) {
|
|
6670
|
-
if (!Array.isArray(expectedValues)) {
|
|
6671
|
-
if (true) {
|
|
6672
|
-
if (arguments.length > 1) {
|
|
6673
|
-
printWarning(
|
|
6674
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
6675
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
6676
|
-
);
|
|
6677
|
-
} else {
|
|
6678
|
-
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
6679
|
-
}
|
|
6680
|
-
}
|
|
6681
|
-
return emptyFunctionThatReturnsNull;
|
|
6682
|
-
}
|
|
6683
|
-
|
|
6684
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6685
|
-
var propValue = props[propName];
|
|
6686
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
6687
|
-
if (is(propValue, expectedValues[i])) {
|
|
6688
|
-
return null;
|
|
6689
|
-
}
|
|
6690
|
-
}
|
|
6691
|
-
|
|
6692
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
6693
|
-
var type = getPreciseType(value);
|
|
6694
|
-
if (type === 'symbol') {
|
|
6695
|
-
return String(value);
|
|
6696
|
-
}
|
|
6697
|
-
return value;
|
|
6698
|
-
});
|
|
6699
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
6700
|
-
}
|
|
6701
|
-
return createChainableTypeChecker(validate);
|
|
6702
|
-
}
|
|
6703
|
-
|
|
6704
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
6705
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6706
|
-
if (typeof typeChecker !== 'function') {
|
|
6707
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
6708
|
-
}
|
|
6709
|
-
var propValue = props[propName];
|
|
6710
|
-
var propType = getPropType(propValue);
|
|
6711
|
-
if (propType !== 'object') {
|
|
6712
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
6713
|
-
}
|
|
6714
|
-
for (var key in propValue) {
|
|
6715
|
-
if (has(propValue, key)) {
|
|
6716
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6717
|
-
if (error instanceof Error) {
|
|
6718
|
-
return error;
|
|
6719
|
-
}
|
|
6720
|
-
}
|
|
6721
|
-
}
|
|
6722
|
-
return null;
|
|
6723
|
-
}
|
|
6724
|
-
return createChainableTypeChecker(validate);
|
|
6725
|
-
}
|
|
6726
|
-
|
|
6727
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
6728
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
6729
|
-
true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
|
|
6730
|
-
return emptyFunctionThatReturnsNull;
|
|
6731
|
-
}
|
|
6732
|
-
|
|
6733
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6734
|
-
var checker = arrayOfTypeCheckers[i];
|
|
6735
|
-
if (typeof checker !== 'function') {
|
|
6736
|
-
printWarning(
|
|
6737
|
-
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
6738
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
6739
|
-
);
|
|
6740
|
-
return emptyFunctionThatReturnsNull;
|
|
6741
|
-
}
|
|
6742
|
-
}
|
|
6743
|
-
|
|
6744
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6745
|
-
var expectedTypes = [];
|
|
6746
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6747
|
-
var checker = arrayOfTypeCheckers[i];
|
|
6748
|
-
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
6749
|
-
if (checkerResult == null) {
|
|
6750
|
-
return null;
|
|
6751
|
-
}
|
|
6752
|
-
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
6753
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
6754
|
-
}
|
|
6755
|
-
}
|
|
6756
|
-
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
6757
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
6758
|
-
}
|
|
6759
|
-
return createChainableTypeChecker(validate);
|
|
6760
|
-
}
|
|
6761
|
-
|
|
6762
|
-
function createNodeChecker() {
|
|
6763
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6764
|
-
if (!isNode(props[propName])) {
|
|
6765
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
6766
|
-
}
|
|
6767
|
-
return null;
|
|
6768
|
-
}
|
|
6769
|
-
return createChainableTypeChecker(validate);
|
|
6770
|
-
}
|
|
6771
|
-
|
|
6772
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
6773
|
-
return new PropTypeError(
|
|
6774
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
6775
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
6776
|
-
);
|
|
6777
|
-
}
|
|
6778
|
-
|
|
6779
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
6780
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6781
|
-
var propValue = props[propName];
|
|
6782
|
-
var propType = getPropType(propValue);
|
|
6783
|
-
if (propType !== 'object') {
|
|
6784
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
6785
|
-
}
|
|
6786
|
-
for (var key in shapeTypes) {
|
|
6787
|
-
var checker = shapeTypes[key];
|
|
6788
|
-
if (typeof checker !== 'function') {
|
|
6789
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6790
|
-
}
|
|
6791
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6792
|
-
if (error) {
|
|
6793
|
-
return error;
|
|
6794
|
-
}
|
|
6795
|
-
}
|
|
6796
|
-
return null;
|
|
6797
|
-
}
|
|
6798
|
-
return createChainableTypeChecker(validate);
|
|
6799
|
-
}
|
|
6800
|
-
|
|
6801
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
|
6802
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
6803
|
-
var propValue = props[propName];
|
|
6804
|
-
var propType = getPropType(propValue);
|
|
6805
|
-
if (propType !== 'object') {
|
|
6806
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
6807
|
-
}
|
|
6808
|
-
// We need to check all keys in case some are required but missing from props.
|
|
6809
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
|
6810
|
-
for (var key in allKeys) {
|
|
6811
|
-
var checker = shapeTypes[key];
|
|
6812
|
-
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
6813
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6814
|
-
}
|
|
6815
|
-
if (!checker) {
|
|
6816
|
-
return new PropTypeError(
|
|
6817
|
-
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
6818
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
6819
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
6820
|
-
);
|
|
6821
|
-
}
|
|
6822
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6823
|
-
if (error) {
|
|
6824
|
-
return error;
|
|
6825
|
-
}
|
|
6826
|
-
}
|
|
6827
|
-
return null;
|
|
6828
|
-
}
|
|
6829
|
-
|
|
6830
|
-
return createChainableTypeChecker(validate);
|
|
6831
|
-
}
|
|
6832
|
-
|
|
6833
|
-
function isNode(propValue) {
|
|
6834
|
-
switch (typeof propValue) {
|
|
6835
|
-
case 'number':
|
|
6836
|
-
case 'string':
|
|
6837
|
-
case 'undefined':
|
|
6838
|
-
return true;
|
|
6839
|
-
case 'boolean':
|
|
6840
|
-
return !propValue;
|
|
6841
|
-
case 'object':
|
|
6842
|
-
if (Array.isArray(propValue)) {
|
|
6843
|
-
return propValue.every(isNode);
|
|
6844
|
-
}
|
|
6845
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
6846
|
-
return true;
|
|
6847
|
-
}
|
|
6848
|
-
|
|
6849
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
6850
|
-
if (iteratorFn) {
|
|
6851
|
-
var iterator = iteratorFn.call(propValue);
|
|
6852
|
-
var step;
|
|
6853
|
-
if (iteratorFn !== propValue.entries) {
|
|
6854
|
-
while (!(step = iterator.next()).done) {
|
|
6855
|
-
if (!isNode(step.value)) {
|
|
6856
|
-
return false;
|
|
6857
|
-
}
|
|
6858
|
-
}
|
|
6859
|
-
} else {
|
|
6860
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
6861
|
-
while (!(step = iterator.next()).done) {
|
|
6862
|
-
var entry = step.value;
|
|
6863
|
-
if (entry) {
|
|
6864
|
-
if (!isNode(entry[1])) {
|
|
6865
|
-
return false;
|
|
6866
|
-
}
|
|
6867
|
-
}
|
|
6868
|
-
}
|
|
6869
|
-
}
|
|
6870
|
-
} else {
|
|
6871
|
-
return false;
|
|
6872
|
-
}
|
|
6873
|
-
|
|
6874
|
-
return true;
|
|
6875
|
-
default:
|
|
6876
|
-
return false;
|
|
6877
|
-
}
|
|
6878
|
-
}
|
|
6879
|
-
|
|
6880
|
-
function isSymbol(propType, propValue) {
|
|
6881
|
-
// Native Symbol.
|
|
6882
|
-
if (propType === 'symbol') {
|
|
6883
|
-
return true;
|
|
6884
|
-
}
|
|
6885
|
-
|
|
6886
|
-
// falsy value can't be a Symbol
|
|
6887
|
-
if (!propValue) {
|
|
6888
|
-
return false;
|
|
6889
|
-
}
|
|
6890
|
-
|
|
6891
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
6892
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
6893
|
-
return true;
|
|
6894
|
-
}
|
|
6895
|
-
|
|
6896
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
6897
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
6898
|
-
return true;
|
|
6899
|
-
}
|
|
6900
|
-
|
|
6901
|
-
return false;
|
|
6902
|
-
}
|
|
6903
|
-
|
|
6904
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
6905
|
-
function getPropType(propValue) {
|
|
6906
|
-
var propType = typeof propValue;
|
|
6907
|
-
if (Array.isArray(propValue)) {
|
|
6908
|
-
return 'array';
|
|
6909
|
-
}
|
|
6910
|
-
if (propValue instanceof RegExp) {
|
|
6911
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
6912
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
6913
|
-
// passes PropTypes.object.
|
|
6914
|
-
return 'object';
|
|
6915
|
-
}
|
|
6916
|
-
if (isSymbol(propType, propValue)) {
|
|
6917
|
-
return 'symbol';
|
|
6918
|
-
}
|
|
6919
|
-
return propType;
|
|
6920
|
-
}
|
|
6921
|
-
|
|
6922
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
6923
|
-
// See `createPrimitiveTypeChecker`.
|
|
6924
|
-
function getPreciseType(propValue) {
|
|
6925
|
-
if (typeof propValue === 'undefined' || propValue === null) {
|
|
6926
|
-
return '' + propValue;
|
|
6927
|
-
}
|
|
6928
|
-
var propType = getPropType(propValue);
|
|
6929
|
-
if (propType === 'object') {
|
|
6930
|
-
if (propValue instanceof Date) {
|
|
6931
|
-
return 'date';
|
|
6932
|
-
} else if (propValue instanceof RegExp) {
|
|
6933
|
-
return 'regexp';
|
|
6934
|
-
}
|
|
6935
|
-
}
|
|
6936
|
-
return propType;
|
|
6937
|
-
}
|
|
6938
|
-
|
|
6939
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
6940
|
-
// For example, "undefined" or "of type array"
|
|
6941
|
-
function getPostfixForTypeWarning(value) {
|
|
6942
|
-
var type = getPreciseType(value);
|
|
6943
|
-
switch (type) {
|
|
6944
|
-
case 'array':
|
|
6945
|
-
case 'object':
|
|
6946
|
-
return 'an ' + type;
|
|
6947
|
-
case 'boolean':
|
|
6948
|
-
case 'date':
|
|
6949
|
-
case 'regexp':
|
|
6950
|
-
return 'a ' + type;
|
|
6951
|
-
default:
|
|
6952
|
-
return type;
|
|
6953
|
-
}
|
|
6954
|
-
}
|
|
6955
|
-
|
|
6956
|
-
// Returns class name of the object, if any.
|
|
6957
|
-
function getClassName(propValue) {
|
|
6958
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
6959
|
-
return ANONYMOUS;
|
|
6960
|
-
}
|
|
6961
|
-
return propValue.constructor.name;
|
|
6962
|
-
}
|
|
6963
|
-
|
|
6964
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
6965
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
6966
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
6967
|
-
|
|
6968
|
-
return ReactPropTypes;
|
|
6969
|
-
};
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
/***/ }),
|
|
6973
|
-
|
|
6974
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js":
|
|
6975
|
-
/*!**************************************************************************************!*\
|
|
6976
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js ***!
|
|
6977
|
-
\**************************************************************************************/
|
|
6978
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6979
|
-
|
|
6980
|
-
/**
|
|
6981
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6982
|
-
*
|
|
6983
|
-
* This source code is licensed under the MIT license found in the
|
|
6984
|
-
* LICENSE file in the root directory of this source tree.
|
|
6985
|
-
*/
|
|
6986
|
-
|
|
6987
|
-
if (true) {
|
|
6988
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js");
|
|
6989
|
-
|
|
6990
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
6991
|
-
// http://fb.me/prop-types-in-prod
|
|
6992
|
-
var throwOnDirectAccess = true;
|
|
6993
|
-
module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
|
|
6994
|
-
} else {}
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
/***/ }),
|
|
6998
|
-
|
|
6999
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js":
|
|
7000
|
-
/*!*********************************************************************************************************!*\
|
|
7001
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
|
|
7002
|
-
\*********************************************************************************************************/
|
|
7003
|
-
/***/ ((module) => {
|
|
7004
|
-
|
|
7005
|
-
"use strict";
|
|
7006
|
-
/**
|
|
7007
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
7008
|
-
*
|
|
7009
|
-
* This source code is licensed under the MIT license found in the
|
|
7010
|
-
* LICENSE file in the root directory of this source tree.
|
|
7011
|
-
*/
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
7016
|
-
|
|
7017
|
-
module.exports = ReactPropTypesSecret;
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
/***/ }),
|
|
7021
|
-
|
|
7022
|
-
/***/ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js":
|
|
7023
|
-
/*!****************************************************************************************!*\
|
|
7024
|
-
!*** ../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js ***!
|
|
7025
|
-
\****************************************************************************************/
|
|
7026
|
-
/***/ ((module) => {
|
|
5621
|
+
*
|
|
5622
|
+
* _.without([2, 1, 2, 3], 1, 2);
|
|
5623
|
+
* // => [3]
|
|
5624
|
+
*/
|
|
5625
|
+
var without = baseRest(function(array, values) {
|
|
5626
|
+
return isArrayLikeObject(array)
|
|
5627
|
+
? baseDifference(array, values)
|
|
5628
|
+
: [];
|
|
5629
|
+
});
|
|
7027
5630
|
|
|
7028
|
-
module.exports =
|
|
5631
|
+
module.exports = without;
|
|
7029
5632
|
|
|
7030
5633
|
|
|
7031
5634
|
/***/ }),
|
|
@@ -7172,214 +5775,6 @@ module.exports = function isEqual(a, b) {
|
|
|
7172
5775
|
};
|
|
7173
5776
|
|
|
7174
5777
|
|
|
7175
|
-
/***/ }),
|
|
7176
|
-
|
|
7177
|
-
/***/ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js":
|
|
7178
|
-
/*!******************************************************************************************************!*\
|
|
7179
|
-
!*** ../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js ***!
|
|
7180
|
-
\******************************************************************************************************/
|
|
7181
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
7182
|
-
|
|
7183
|
-
"use strict";
|
|
7184
|
-
/** @license React v16.13.1
|
|
7185
|
-
* react-is.development.js
|
|
7186
|
-
*
|
|
7187
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7188
|
-
*
|
|
7189
|
-
* This source code is licensed under the MIT license found in the
|
|
7190
|
-
* LICENSE file in the root directory of this source tree.
|
|
7191
|
-
*/
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
if (true) {
|
|
7198
|
-
(function() {
|
|
7199
|
-
'use strict';
|
|
7200
|
-
|
|
7201
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
7202
|
-
// nor polyfill, then a plain number is used for performance.
|
|
7203
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
7204
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
7205
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
7206
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
7207
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
7208
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
7209
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
7210
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
7211
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
7212
|
-
|
|
7213
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
7214
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
7215
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
7216
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
7217
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
7218
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
7219
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
7220
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
7221
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
7222
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
7223
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
7224
|
-
|
|
7225
|
-
function isValidElementType(type) {
|
|
7226
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
7227
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
7228
|
-
}
|
|
7229
|
-
|
|
7230
|
-
function typeOf(object) {
|
|
7231
|
-
if (typeof object === 'object' && object !== null) {
|
|
7232
|
-
var $$typeof = object.$$typeof;
|
|
7233
|
-
|
|
7234
|
-
switch ($$typeof) {
|
|
7235
|
-
case REACT_ELEMENT_TYPE:
|
|
7236
|
-
var type = object.type;
|
|
7237
|
-
|
|
7238
|
-
switch (type) {
|
|
7239
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
7240
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
7241
|
-
case REACT_FRAGMENT_TYPE:
|
|
7242
|
-
case REACT_PROFILER_TYPE:
|
|
7243
|
-
case REACT_STRICT_MODE_TYPE:
|
|
7244
|
-
case REACT_SUSPENSE_TYPE:
|
|
7245
|
-
return type;
|
|
7246
|
-
|
|
7247
|
-
default:
|
|
7248
|
-
var $$typeofType = type && type.$$typeof;
|
|
7249
|
-
|
|
7250
|
-
switch ($$typeofType) {
|
|
7251
|
-
case REACT_CONTEXT_TYPE:
|
|
7252
|
-
case REACT_FORWARD_REF_TYPE:
|
|
7253
|
-
case REACT_LAZY_TYPE:
|
|
7254
|
-
case REACT_MEMO_TYPE:
|
|
7255
|
-
case REACT_PROVIDER_TYPE:
|
|
7256
|
-
return $$typeofType;
|
|
7257
|
-
|
|
7258
|
-
default:
|
|
7259
|
-
return $$typeof;
|
|
7260
|
-
}
|
|
7261
|
-
|
|
7262
|
-
}
|
|
7263
|
-
|
|
7264
|
-
case REACT_PORTAL_TYPE:
|
|
7265
|
-
return $$typeof;
|
|
7266
|
-
}
|
|
7267
|
-
}
|
|
7268
|
-
|
|
7269
|
-
return undefined;
|
|
7270
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
7271
|
-
|
|
7272
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
7273
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
7274
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
7275
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
7276
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
7277
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
7278
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
7279
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
7280
|
-
var Memo = REACT_MEMO_TYPE;
|
|
7281
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
7282
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
7283
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
7284
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
7285
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
7286
|
-
|
|
7287
|
-
function isAsyncMode(object) {
|
|
7288
|
-
{
|
|
7289
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
7290
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
7291
|
-
|
|
7292
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
7293
|
-
}
|
|
7294
|
-
}
|
|
7295
|
-
|
|
7296
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
7297
|
-
}
|
|
7298
|
-
function isConcurrentMode(object) {
|
|
7299
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
7300
|
-
}
|
|
7301
|
-
function isContextConsumer(object) {
|
|
7302
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
7303
|
-
}
|
|
7304
|
-
function isContextProvider(object) {
|
|
7305
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
7306
|
-
}
|
|
7307
|
-
function isElement(object) {
|
|
7308
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
7309
|
-
}
|
|
7310
|
-
function isForwardRef(object) {
|
|
7311
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
7312
|
-
}
|
|
7313
|
-
function isFragment(object) {
|
|
7314
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
7315
|
-
}
|
|
7316
|
-
function isLazy(object) {
|
|
7317
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
7318
|
-
}
|
|
7319
|
-
function isMemo(object) {
|
|
7320
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
7321
|
-
}
|
|
7322
|
-
function isPortal(object) {
|
|
7323
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
7324
|
-
}
|
|
7325
|
-
function isProfiler(object) {
|
|
7326
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
7327
|
-
}
|
|
7328
|
-
function isStrictMode(object) {
|
|
7329
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
7330
|
-
}
|
|
7331
|
-
function isSuspense(object) {
|
|
7332
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
7333
|
-
}
|
|
7334
|
-
|
|
7335
|
-
exports.AsyncMode = AsyncMode;
|
|
7336
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
7337
|
-
exports.ContextConsumer = ContextConsumer;
|
|
7338
|
-
exports.ContextProvider = ContextProvider;
|
|
7339
|
-
exports.Element = Element;
|
|
7340
|
-
exports.ForwardRef = ForwardRef;
|
|
7341
|
-
exports.Fragment = Fragment;
|
|
7342
|
-
exports.Lazy = Lazy;
|
|
7343
|
-
exports.Memo = Memo;
|
|
7344
|
-
exports.Portal = Portal;
|
|
7345
|
-
exports.Profiler = Profiler;
|
|
7346
|
-
exports.StrictMode = StrictMode;
|
|
7347
|
-
exports.Suspense = Suspense;
|
|
7348
|
-
exports.isAsyncMode = isAsyncMode;
|
|
7349
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
7350
|
-
exports.isContextConsumer = isContextConsumer;
|
|
7351
|
-
exports.isContextProvider = isContextProvider;
|
|
7352
|
-
exports.isElement = isElement;
|
|
7353
|
-
exports.isForwardRef = isForwardRef;
|
|
7354
|
-
exports.isFragment = isFragment;
|
|
7355
|
-
exports.isLazy = isLazy;
|
|
7356
|
-
exports.isMemo = isMemo;
|
|
7357
|
-
exports.isPortal = isPortal;
|
|
7358
|
-
exports.isProfiler = isProfiler;
|
|
7359
|
-
exports.isStrictMode = isStrictMode;
|
|
7360
|
-
exports.isSuspense = isSuspense;
|
|
7361
|
-
exports.isValidElementType = isValidElementType;
|
|
7362
|
-
exports.typeOf = typeOf;
|
|
7363
|
-
})();
|
|
7364
|
-
}
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
/***/ }),
|
|
7368
|
-
|
|
7369
|
-
/***/ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js":
|
|
7370
|
-
/*!***********************************************************************************!*\
|
|
7371
|
-
!*** ../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js ***!
|
|
7372
|
-
\***********************************************************************************/
|
|
7373
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7374
|
-
|
|
7375
|
-
"use strict";
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
if (false) {} else {
|
|
7379
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js");
|
|
7380
|
-
}
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
5778
|
/***/ }),
|
|
7384
5779
|
|
|
7385
5780
|
/***/ "../../victory-axis/es/helper-methods.js":
|
|
@@ -8037,28 +6432,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8037
6432
|
/* harmony export */ });
|
|
8038
6433
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
|
|
8039
6434
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
8040
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
8041
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
|
|
8042
6435
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
8043
6436
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
8044
6437
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/axis.js");
|
|
8045
6438
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/textsize.js");
|
|
8046
6439
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
8047
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
8048
|
-
/* harmony import */ var
|
|
8049
|
-
/* harmony import */ var
|
|
8050
|
-
/* harmony import */ var
|
|
8051
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
8052
|
-
/* harmony import */ var
|
|
8053
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/add-events.js");
|
|
8054
|
-
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helper-methods */ "../../victory-axis/es/helper-methods.js");
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8058
|
-
|
|
8059
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6440
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/line-segment.js");
|
|
6441
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-label/victory-label.js");
|
|
6442
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-theme/victory-theme.js");
|
|
6443
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
6444
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/add-events.js");
|
|
6445
|
+
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./helper-methods */ "../../victory-axis/es/helper-methods.js");
|
|
8060
6446
|
|
|
8061
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8062
6447
|
|
|
8063
6448
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8064
6449
|
|
|
@@ -8095,7 +6480,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
8095
6480
|
|
|
8096
6481
|
|
|
8097
6482
|
|
|
8098
|
-
|
|
8099
6483
|
var fallbackProps = {
|
|
8100
6484
|
width: 450,
|
|
8101
6485
|
height: 300,
|
|
@@ -8289,57 +6673,15 @@ VictoryAxisBase.defaultTransitions = {
|
|
|
8289
6673
|
duration: 500
|
|
8290
6674
|
}
|
|
8291
6675
|
};
|
|
8292
|
-
VictoryAxisBase.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.CommonProps.baseProps), {}, {
|
|
8293
|
-
axisComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
8294
|
-
axisLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
8295
|
-
axisValue: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object)]),
|
|
8296
|
-
categories: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
8297
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)),
|
|
8298
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_6___default().string))
|
|
8299
|
-
})]),
|
|
8300
|
-
crossAxis: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
8301
|
-
dependentAxis: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
8302
|
-
events: prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
8303
|
-
target: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["axis", "axisLabel", "grid", "ticks", "tickLabels"]),
|
|
8304
|
-
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().array), victory_core__WEBPACK_IMPORTED_MODULE_7__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_7__.integer, victory_core__WEBPACK_IMPORTED_MODULE_7__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)]),
|
|
8305
|
-
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object)
|
|
8306
|
-
})),
|
|
8307
|
-
fixLabelOverlap: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
8308
|
-
gridComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
8309
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
8310
|
-
invertAxis: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
8311
|
-
label: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().any),
|
|
8312
|
-
offsetX: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
8313
|
-
offsetY: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
8314
|
-
orientation: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["top", "bottom", "left", "right"]),
|
|
8315
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
8316
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
8317
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
|
|
8318
|
-
}),
|
|
8319
|
-
stringMap: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
8320
|
-
style: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
8321
|
-
parent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
8322
|
-
axis: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
8323
|
-
axisLabel: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
8324
|
-
grid: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
8325
|
-
ticks: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
8326
|
-
tickLabels: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object)
|
|
8327
|
-
}),
|
|
8328
|
-
tickComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
8329
|
-
tickCount: victory_core__WEBPACK_IMPORTED_MODULE_7__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_7__.integer, victory_core__WEBPACK_IMPORTED_MODULE_7__.greaterThanZero]),
|
|
8330
|
-
tickFormat: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().func), victory_core__WEBPACK_IMPORTED_MODULE_7__.homogeneousArray]),
|
|
8331
|
-
tickLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
8332
|
-
tickValues: victory_core__WEBPACK_IMPORTED_MODULE_7__.homogeneousArray
|
|
8333
|
-
});
|
|
8334
6676
|
VictoryAxisBase.defaultProps = {
|
|
8335
|
-
axisComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
|
8336
|
-
axisLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
|
8337
|
-
tickLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
|
8338
|
-
tickComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
|
8339
|
-
gridComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
|
6677
|
+
axisComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.LineSegment, null),
|
|
6678
|
+
axisLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryLabel, null),
|
|
6679
|
+
tickLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryLabel, null),
|
|
6680
|
+
tickComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.LineSegment, null),
|
|
6681
|
+
gridComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.LineSegment, null),
|
|
8340
6682
|
standalone: true,
|
|
8341
|
-
theme:
|
|
8342
|
-
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
|
6683
|
+
theme: victory_core__WEBPACK_IMPORTED_MODULE_7__.VictoryTheme.grayscale,
|
|
6684
|
+
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.VictoryContainer, null),
|
|
8343
6685
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", {
|
|
8344
6686
|
role: "presentation"
|
|
8345
6687
|
}),
|
|
@@ -8349,15 +6691,15 @@ VictoryAxisBase.getDomain = victory_core__WEBPACK_IMPORTED_MODULE_2__.getDomain;
|
|
|
8349
6691
|
VictoryAxisBase.getAxis = victory_core__WEBPACK_IMPORTED_MODULE_2__.getAxis;
|
|
8350
6692
|
|
|
8351
6693
|
VictoryAxisBase.getStyles = function (props) {
|
|
8352
|
-
return (0,
|
|
6694
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_9__.getStyles)(props);
|
|
8353
6695
|
};
|
|
8354
6696
|
|
|
8355
6697
|
VictoryAxisBase.getBaseProps = function (props) {
|
|
8356
|
-
return (0,
|
|
6698
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_9__.getBaseProps)(props, fallbackProps);
|
|
8357
6699
|
};
|
|
8358
6700
|
|
|
8359
6701
|
VictoryAxisBase.expectedComponents = ["axisComponent", "axisLabelComponent", "groupComponent", "containerComponent", "tickComponent", "tickLabelComponent", "gridComponent"];
|
|
8360
|
-
var VictoryAxis = (0,
|
|
6702
|
+
var VictoryAxis = (0,victory_core__WEBPACK_IMPORTED_MODULE_10__.addEvents)(VictoryAxisBase, options);
|
|
8361
6703
|
|
|
8362
6704
|
/***/ }),
|
|
8363
6705
|
|
|
@@ -8613,11 +6955,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8613
6955
|
/* harmony export */ });
|
|
8614
6956
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8615
6957
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8616
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
8617
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
8618
6958
|
/* harmony import */ var victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-vendor/d3-ease */ "../../victory-vendor/es/d3-ease.js");
|
|
8619
6959
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "../../victory-core/es/victory-animation/util.js");
|
|
8620
|
-
/* harmony import */ var
|
|
6960
|
+
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
8621
6961
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
|
|
8622
6962
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_2__);
|
|
8623
6963
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
@@ -8658,7 +6998,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
8658
6998
|
|
|
8659
6999
|
|
|
8660
7000
|
|
|
8661
|
-
|
|
8662
7001
|
var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
8663
7002
|
_inherits(VictoryAnimation, _React$Component);
|
|
8664
7003
|
|
|
@@ -8844,21 +7183,13 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
8844
7183
|
return VictoryAnimation;
|
|
8845
7184
|
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
|
8846
7185
|
VictoryAnimation.displayName = "VictoryAnimation";
|
|
8847
|
-
VictoryAnimation.propTypes = {
|
|
8848
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),
|
|
8849
|
-
data: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().array)]),
|
|
8850
|
-
delay: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
8851
|
-
duration: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
8852
|
-
easing: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(["back", "backIn", "backOut", "backInOut", "bounce", "bounceIn", "bounceOut", "bounceInOut", "circle", "circleIn", "circleOut", "circleInOut", "linear", "linearIn", "linearOut", "linearInOut", "cubic", "cubicIn", "cubicOut", "cubicInOut", "elastic", "elasticIn", "elasticOut", "elasticInOut", "exp", "expIn", "expOut", "expInOut", "poly", "polyIn", "polyOut", "polyInOut", "quad", "quadIn", "quadOut", "quadInOut", "sin", "sinIn", "sinOut", "sinInOut"]),
|
|
8853
|
-
onEnd: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)
|
|
8854
|
-
};
|
|
8855
7186
|
VictoryAnimation.defaultProps = {
|
|
8856
7187
|
data: {},
|
|
8857
7188
|
delay: 0,
|
|
8858
7189
|
duration: 1000,
|
|
8859
7190
|
easing: "quadInOut"
|
|
8860
7191
|
};
|
|
8861
|
-
VictoryAnimation.contextType =
|
|
7192
|
+
VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__["default"];
|
|
8862
7193
|
|
|
8863
7194
|
/***/ }),
|
|
8864
7195
|
|
|
@@ -8883,12 +7214,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8883
7214
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
|
|
8884
7215
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
|
|
8885
7216
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
8886
|
-
/* harmony import */ var
|
|
8887
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
|
|
8888
|
-
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
8889
|
-
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
7217
|
+
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
8890
7218
|
/* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
8891
|
-
/* harmony import */ var
|
|
7219
|
+
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
8892
7220
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8893
7221
|
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
8894
7222
|
|
|
@@ -8930,8 +7258,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
8930
7258
|
|
|
8931
7259
|
|
|
8932
7260
|
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
7261
|
var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
8936
7262
|
_inherits(VictoryContainer, _React$Component);
|
|
8937
7263
|
|
|
@@ -9124,44 +7450,14 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
9124
7450
|
}((react__WEBPACK_IMPORTED_MODULE_4___default().Component));
|
|
9125
7451
|
VictoryContainer.displayName = "VictoryContainer";
|
|
9126
7452
|
VictoryContainer.role = "container";
|
|
9127
|
-
VictoryContainer.propTypes = {
|
|
9128
|
-
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
9129
|
-
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
9130
|
-
children: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)]),
|
|
9131
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
9132
|
-
containerId: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
|
|
9133
|
-
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func),
|
|
9134
|
-
desc: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
9135
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
9136
|
-
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative,
|
|
9137
|
-
name: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
9138
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({
|
|
9139
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative,
|
|
9140
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative
|
|
9141
|
-
}),
|
|
9142
|
-
ouiaId: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
|
|
9143
|
-
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
9144
|
-
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
9145
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
9146
|
-
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().element),
|
|
9147
|
-
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.integer,
|
|
9148
|
-
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
9149
|
-
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
9150
|
-
role: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
9151
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
9152
|
-
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number),
|
|
9153
|
-
theme: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
9154
|
-
title: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
9155
|
-
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative
|
|
9156
|
-
};
|
|
9157
7453
|
VictoryContainer.defaultProps = {
|
|
9158
7454
|
className: "VictoryContainer",
|
|
9159
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(
|
|
7455
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_8__.Portal, null),
|
|
9160
7456
|
portalZIndex: 99,
|
|
9161
7457
|
responsive: true,
|
|
9162
7458
|
role: "img"
|
|
9163
7459
|
};
|
|
9164
|
-
VictoryContainer.contextType =
|
|
7460
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__["default"];
|
|
9165
7461
|
|
|
9166
7462
|
/***/ }),
|
|
9167
7463
|
|
|
@@ -9180,8 +7476,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9180
7476
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
9181
7477
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
9182
7478
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
9183
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
9184
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
|
|
9185
7479
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
9186
7480
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
9187
7481
|
/* harmony import */ var _victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-portal/victory-portal */ "../../victory-core/es/victory-portal/victory-portal.js");
|
|
@@ -9191,7 +7485,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9191
7485
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9192
7486
|
/* harmony import */ var _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/label-helpers */ "../../victory-core/es/victory-util/label-helpers.js");
|
|
9193
7487
|
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
9194
|
-
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
9195
7488
|
/* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
|
|
9196
7489
|
/* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
|
|
9197
7490
|
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
@@ -9227,8 +7520,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
9227
7520
|
|
|
9228
7521
|
|
|
9229
7522
|
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
7523
|
var defaultStyles = {
|
|
9233
7524
|
fill: "#252525",
|
|
9234
7525
|
fontSize: 14,
|
|
@@ -9747,55 +8038,6 @@ var VictoryLabel = function (initialProps) {
|
|
|
9747
8038
|
VictoryLabel.displayName = "VictoryLabel";
|
|
9748
8039
|
VictoryLabel.role = "label";
|
|
9749
8040
|
VictoryLabel.defaultStyles = defaultStyles;
|
|
9750
|
-
VictoryLabel.propTypes = {
|
|
9751
|
-
active: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
9752
|
-
angle: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
9753
|
-
ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
9754
|
-
backgroundComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
9755
|
-
backgroundPadding: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)]),
|
|
9756
|
-
backgroundStyle: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)]),
|
|
9757
|
-
capHeight: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
9758
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
|
|
9759
|
-
data: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
|
|
9760
|
-
datum: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any),
|
|
9761
|
-
// @ts-expect-error "Function is not assignable to string"
|
|
9762
|
-
desc: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
9763
|
-
direction: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["rtl", "ltr", "inherit"]),
|
|
9764
|
-
dx: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
9765
|
-
dy: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
9766
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object),
|
|
9767
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
9768
|
-
id: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
9769
|
-
index: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)]),
|
|
9770
|
-
inline: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
9771
|
-
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
9772
|
-
lineHeight: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)]),
|
|
9773
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({
|
|
9774
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.nonNegative.isRequired,
|
|
9775
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.nonNegative.isRequired
|
|
9776
|
-
}),
|
|
9777
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
9778
|
-
renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
9779
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({
|
|
9780
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.scale,
|
|
9781
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_14__.scale
|
|
9782
|
-
}),
|
|
9783
|
-
style: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)]),
|
|
9784
|
-
tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
9785
|
-
text: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)]),
|
|
9786
|
-
// @ts-expect-error Function is not assignable to string"
|
|
9787
|
-
textAnchor: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["start", "middle", "end", "inherit"]), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
9788
|
-
textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
9789
|
-
title: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
|
|
9790
|
-
transform: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
9791
|
-
tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
9792
|
-
// @ts-expect-error Function is not assignable to string"
|
|
9793
|
-
verticalAnchor: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["start", "middle", "end"]), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
9794
|
-
// @ts-expect-error Number is not assignable to string
|
|
9795
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)]),
|
|
9796
|
-
// @ts-expect-error Number is not assignable to string
|
|
9797
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)])
|
|
9798
|
-
};
|
|
9799
8041
|
|
|
9800
8042
|
/***/ }),
|
|
9801
8043
|
|
|
@@ -9838,9 +8080,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9838
8080
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
9839
8081
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
9840
8082
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
9841
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
9842
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
|
9843
|
-
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
9844
8083
|
|
|
9845
8084
|
|
|
9846
8085
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -9864,8 +8103,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
9864
8103
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9865
8104
|
|
|
9866
8105
|
|
|
9867
|
-
|
|
9868
|
-
|
|
9869
8106
|
var Portal = /*#__PURE__*/function (_ref) {
|
|
9870
8107
|
_inherits(Portal, _ref);
|
|
9871
8108
|
|
|
@@ -9924,13 +8161,6 @@ var Portal = /*#__PURE__*/function (_ref) {
|
|
|
9924
8161
|
return Portal;
|
|
9925
8162
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
9926
8163
|
Portal.displayName = "Portal";
|
|
9927
|
-
Portal.propTypes = {
|
|
9928
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
9929
|
-
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
9930
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
9931
|
-
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
9932
|
-
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
9933
|
-
};
|
|
9934
8164
|
|
|
9935
8165
|
/***/ }),
|
|
9936
8166
|
|
|
@@ -9949,11 +8179,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9949
8179
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
9950
8180
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
9951
8181
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
9952
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
9953
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
9954
8182
|
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
9955
8183
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9956
|
-
/* harmony import */ var
|
|
8184
|
+
/* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
9957
8185
|
|
|
9958
8186
|
|
|
9959
8187
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -9980,7 +8208,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
9980
8208
|
|
|
9981
8209
|
|
|
9982
8210
|
|
|
9983
|
-
|
|
9984
8211
|
var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
9985
8212
|
_inherits(VictoryPortal, _React$Component);
|
|
9986
8213
|
|
|
@@ -9997,9 +8224,9 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9997
8224
|
|
|
9998
8225
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
9999
8226
|
_this.checkedContext = void 0;
|
|
8227
|
+
_this.portalKey = void 0;
|
|
10000
8228
|
_this.renderInPlace = void 0;
|
|
10001
8229
|
_this.element = void 0;
|
|
10002
|
-
_this.portalKey = void 0;
|
|
10003
8230
|
return _this;
|
|
10004
8231
|
}
|
|
10005
8232
|
|
|
@@ -10066,14 +8293,10 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
10066
8293
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
10067
8294
|
VictoryPortal.displayName = "VictoryPortal";
|
|
10068
8295
|
VictoryPortal.role = "portal";
|
|
10069
|
-
VictoryPortal.propTypes = {
|
|
10070
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
|
|
10071
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
|
|
10072
|
-
};
|
|
10073
8296
|
VictoryPortal.defaultProps = {
|
|
10074
8297
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
10075
8298
|
};
|
|
10076
|
-
VictoryPortal.contextType =
|
|
8299
|
+
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_4__.PortalContext;
|
|
10077
8300
|
|
|
10078
8301
|
/***/ }),
|
|
10079
8302
|
|
|
@@ -10090,10 +8313,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10090
8313
|
/* harmony export */ });
|
|
10091
8314
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
10092
8315
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
10093
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
10094
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
10095
8316
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
10096
|
-
/* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js");
|
|
10097
8317
|
/* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./path */ "../../victory-core/es/victory-primitives/path.js");
|
|
10098
8318
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10099
8319
|
|
|
@@ -10106,8 +8326,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
10106
8326
|
|
|
10107
8327
|
|
|
10108
8328
|
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
8329
|
var getArcPath = function (props) {
|
|
10112
8330
|
var cx = props.cx,
|
|
10113
8331
|
cy = props.cy,
|
|
@@ -10178,16 +8396,6 @@ var Arc = function (initialProps) {
|
|
|
10178
8396
|
clipPath: props.clipPath
|
|
10179
8397
|
}));
|
|
10180
8398
|
};
|
|
10181
|
-
Arc.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
|
|
10182
|
-
closedPath: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool),
|
|
10183
|
-
cx: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
10184
|
-
cy: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
10185
|
-
datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),
|
|
10186
|
-
endAngle: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
10187
|
-
pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
|
|
10188
|
-
r: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
10189
|
-
startAngle: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
|
|
10190
|
-
});
|
|
10191
8399
|
|
|
10192
8400
|
/***/ }),
|
|
10193
8401
|
|
|
@@ -10204,10 +8412,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10204
8412
|
/* harmony export */ });
|
|
10205
8413
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
10206
8414
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
10207
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
10208
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
|
|
10209
8415
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
10210
|
-
/* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js");
|
|
10211
8416
|
/* harmony import */ var _rect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./rect */ "../../victory-core/es/victory-primitives/rect.js");
|
|
10212
8417
|
/* harmony import */ var _circle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./circle */ "../../victory-core/es/victory-primitives/circle.js");
|
|
10213
8418
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -10221,8 +8426,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
10221
8426
|
|
|
10222
8427
|
|
|
10223
8428
|
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
8429
|
var evaluateProps = function (props) {
|
|
10227
8430
|
/**
|
|
10228
8431
|
* Potential evaluated prop is:
|
|
@@ -10263,16 +8466,6 @@ var Background = function (initialProps) {
|
|
|
10263
8466
|
className: props.className
|
|
10264
8467
|
}));
|
|
10265
8468
|
};
|
|
10266
|
-
Background.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_4__.CommonProps.primitiveProps), {}, {
|
|
10267
|
-
circleComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
|
|
10268
|
-
height: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
|
|
10269
|
-
rectComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
|
|
10270
|
-
rx: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
|
|
10271
|
-
ry: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
|
|
10272
|
-
width: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
|
|
10273
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
|
|
10274
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number)
|
|
10275
|
-
});
|
|
10276
8469
|
|
|
10277
8470
|
/***/ }),
|
|
10278
8471
|
|
|
@@ -10346,10 +8539,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10346
8539
|
/* harmony export */ });
|
|
10347
8540
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
10348
8541
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
10349
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
10350
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
10351
8542
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
10352
|
-
/* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js");
|
|
10353
8543
|
/* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js");
|
|
10354
8544
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10355
8545
|
|
|
@@ -10361,8 +8551,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
10361
8551
|
|
|
10362
8552
|
|
|
10363
8553
|
|
|
10364
|
-
|
|
10365
|
-
|
|
10366
8554
|
var evaluateProps = function (props) {
|
|
10367
8555
|
/**
|
|
10368
8556
|
* Potential evaluated props are:
|
|
@@ -10411,14 +8599,6 @@ var LineSegment = function (initialProps) {
|
|
|
10411
8599
|
clipPath: props.clipPath
|
|
10412
8600
|
}));
|
|
10413
8601
|
};
|
|
10414
|
-
LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
|
|
10415
|
-
datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),
|
|
10416
|
-
lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
|
|
10417
|
-
x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
10418
|
-
x2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
10419
|
-
y1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
10420
|
-
y2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
|
|
10421
|
-
});
|
|
10422
8602
|
|
|
10423
8603
|
/***/ }),
|
|
10424
8604
|
|
|
@@ -11303,12 +9483,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11303
9483
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
11304
9484
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
11305
9485
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
11306
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
11307
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
11308
9486
|
/* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js");
|
|
11309
9487
|
/* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
|
|
11310
9488
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
11311
|
-
/* harmony import */ var
|
|
9489
|
+
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
11312
9490
|
/* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
|
|
11313
9491
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
|
|
11314
9492
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
@@ -11345,7 +9523,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
11345
9523
|
|
|
11346
9524
|
|
|
11347
9525
|
|
|
11348
|
-
|
|
11349
9526
|
var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
11350
9527
|
_inherits(VictoryTransition, _React$Component);
|
|
11351
9528
|
|
|
@@ -11543,12 +9720,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
11543
9720
|
return VictoryTransition;
|
|
11544
9721
|
}((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
|
|
11545
9722
|
VictoryTransition.displayName = "VictoryTransition";
|
|
11546
|
-
VictoryTransition.
|
|
11547
|
-
animate: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object)]),
|
|
11548
|
-
animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().array),
|
|
11549
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
|
|
11550
|
-
};
|
|
11551
|
-
VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
|
|
9723
|
+
VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__["default"];
|
|
11552
9724
|
|
|
11553
9725
|
/***/ }),
|
|
11554
9726
|
|
|
@@ -12588,155 +10760,6 @@ function getMinValue(arr) {
|
|
|
12588
10760
|
|
|
12589
10761
|
/***/ }),
|
|
12590
10762
|
|
|
12591
|
-
/***/ "../../victory-core/es/victory-util/common-props.js":
|
|
12592
|
-
/*!**********************************************************!*\
|
|
12593
|
-
!*** ../../victory-core/es/victory-util/common-props.js ***!
|
|
12594
|
-
\**********************************************************/
|
|
12595
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12596
|
-
|
|
12597
|
-
"use strict";
|
|
12598
|
-
__webpack_require__.r(__webpack_exports__);
|
|
12599
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12600
|
-
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
12601
|
-
/* harmony export */ });
|
|
12602
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
12603
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
12604
|
-
/* harmony import */ var _prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
12605
|
-
|
|
12606
|
-
|
|
12607
|
-
var dataProps = {
|
|
12608
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12609
|
-
categories: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12610
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
12611
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
12612
|
-
})]),
|
|
12613
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12614
|
-
data: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
|
12615
|
-
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
12616
|
-
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
12617
|
-
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
12618
|
-
labels: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
|
|
12619
|
-
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
12620
|
-
sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
12621
|
-
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
12622
|
-
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12623
|
-
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
12624
|
-
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
12625
|
-
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
12626
|
-
}),
|
|
12627
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
12628
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
12629
|
-
y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))])
|
|
12630
|
-
};
|
|
12631
|
-
var baseProps = {
|
|
12632
|
-
animate: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
|
12633
|
-
containerComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
12634
|
-
domain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12635
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
12636
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
12637
|
-
})]),
|
|
12638
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12639
|
-
maxDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12640
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
|
|
12641
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
|
|
12642
|
-
})]),
|
|
12643
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12644
|
-
minDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12645
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
|
|
12646
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
|
|
12647
|
-
})]),
|
|
12648
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12649
|
-
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12650
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
|
|
12651
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))])
|
|
12652
|
-
}), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
|
|
12653
|
-
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
12654
|
-
events: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12655
|
-
target: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["data", "labels", "parent"]),
|
|
12656
|
-
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
12657
|
-
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
12658
|
-
})),
|
|
12659
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12660
|
-
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12661
|
-
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
12662
|
-
childName: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
|
|
12663
|
-
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
12664
|
-
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
12665
|
-
target: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)])
|
|
12666
|
-
})),
|
|
12667
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
12668
|
-
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
12669
|
-
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
12670
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12671
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12672
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
12673
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
12674
|
-
}),
|
|
12675
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12676
|
-
padding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12677
|
-
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
12678
|
-
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
12679
|
-
left: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
12680
|
-
right: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
12681
|
-
})]),
|
|
12682
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
12683
|
-
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12684
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
12685
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
12686
|
-
})]),
|
|
12687
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12688
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
12689
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
12690
|
-
})]),
|
|
12691
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12692
|
-
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12693
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
12694
|
-
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
12695
|
-
}),
|
|
12696
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12697
|
-
singleQuadrantDomainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12698
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
12699
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
12700
|
-
})]),
|
|
12701
|
-
standalone: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
12702
|
-
theme: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
12703
|
-
width: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative
|
|
12704
|
-
};
|
|
12705
|
-
var primitiveProps = {
|
|
12706
|
-
active: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
12707
|
-
ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
12708
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
12709
|
-
clipPath: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
12710
|
-
data: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
|
12711
|
-
desc: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
12712
|
-
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
12713
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
12714
|
-
id: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
12715
|
-
index: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
12716
|
-
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12717
|
-
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12718
|
-
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
12719
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
12720
|
-
}),
|
|
12721
|
-
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
12722
|
-
role: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
12723
|
-
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12724
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
12725
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
12726
|
-
})]),
|
|
12727
|
-
shapeRendering: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
12728
|
-
style: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
12729
|
-
tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
12730
|
-
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
12731
|
-
};
|
|
12732
|
-
var CommonProps = {
|
|
12733
|
-
dataProps: dataProps,
|
|
12734
|
-
baseProps: baseProps,
|
|
12735
|
-
primitiveProps: primitiveProps
|
|
12736
|
-
};
|
|
12737
|
-
|
|
12738
|
-
/***/ }),
|
|
12739
|
-
|
|
12740
10763
|
/***/ "../../victory-core/es/victory-util/data.js":
|
|
12741
10764
|
/*!**************************************************!*\
|
|
12742
10765
|
!*** ../../victory-core/es/victory-util/data.js ***!
|
|
@@ -15142,278 +13165,6 @@ function warn(message) {
|
|
|
15142
13165
|
|
|
15143
13166
|
/***/ }),
|
|
15144
13167
|
|
|
15145
|
-
/***/ "../../victory-core/es/victory-util/prop-types.js":
|
|
15146
|
-
/*!********************************************************!*\
|
|
15147
|
-
!*** ../../victory-core/es/victory-util/prop-types.js ***!
|
|
15148
|
-
\********************************************************/
|
|
15149
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15150
|
-
|
|
15151
|
-
"use strict";
|
|
15152
|
-
__webpack_require__.r(__webpack_exports__);
|
|
15153
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15154
|
-
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
15155
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
15156
|
-
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
15157
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
15158
|
-
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
15159
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
15160
|
-
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
15161
|
-
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
15162
|
-
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
15163
|
-
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
15164
|
-
/* harmony export */ });
|
|
15165
|
-
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isRegExp.js");
|
|
15166
|
-
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
15167
|
-
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/find.js");
|
|
15168
|
-
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
15169
|
-
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
15170
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
15171
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
15172
|
-
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
15173
|
-
|
|
15174
|
-
|
|
15175
|
-
|
|
15176
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15177
|
-
|
|
15178
|
-
|
|
15179
|
-
|
|
15180
|
-
|
|
15181
|
-
|
|
15182
|
-
/**
|
|
15183
|
-
* Return a new validator based on `validator` but with the option to chain
|
|
15184
|
-
* `isRequired` onto the validation. This is nearly identical to how React
|
|
15185
|
-
* does it internally, but they don't expose their helper for us to use.
|
|
15186
|
-
* @param {Function} validator Validation function.
|
|
15187
|
-
* @returns {Function} Validator with `isRequired` option.
|
|
15188
|
-
*/
|
|
15189
|
-
var makeChainable = function (validator) {
|
|
15190
|
-
var createChainable = function (isRequired) {
|
|
15191
|
-
return function (props, propName, componentName) {
|
|
15192
|
-
var value = props[propName];
|
|
15193
|
-
|
|
15194
|
-
if (value === undefined || value === null) {
|
|
15195
|
-
if (isRequired) {
|
|
15196
|
-
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
15197
|
-
}
|
|
15198
|
-
|
|
15199
|
-
return null;
|
|
15200
|
-
}
|
|
15201
|
-
|
|
15202
|
-
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
15203
|
-
rest[_key - 3] = arguments[_key];
|
|
15204
|
-
}
|
|
15205
|
-
|
|
15206
|
-
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
15207
|
-
};
|
|
15208
|
-
};
|
|
15209
|
-
|
|
15210
|
-
var chainable = Object.assign(createChainable(false), {
|
|
15211
|
-
isRequired: createChainable(true)
|
|
15212
|
-
});
|
|
15213
|
-
return chainable;
|
|
15214
|
-
};
|
|
15215
|
-
|
|
15216
|
-
var nullConstructor = function () {
|
|
15217
|
-
return null;
|
|
15218
|
-
};
|
|
15219
|
-
|
|
15220
|
-
var undefinedConstructor = function () {
|
|
15221
|
-
return undefined;
|
|
15222
|
-
};
|
|
15223
|
-
/**
|
|
15224
|
-
* Get the constructor of `value`. If `value` is null or undefined, return the
|
|
15225
|
-
* special singletons `nullConstructor` or `undefinedConstructor`, respectively.
|
|
15226
|
-
* @param {*} value Instance to return the constructor of.
|
|
15227
|
-
* @returns {Function} Constructor of `value`.
|
|
15228
|
-
*/
|
|
15229
|
-
|
|
15230
|
-
|
|
15231
|
-
var getConstructor = function (value) {
|
|
15232
|
-
if (value === undefined) {
|
|
15233
|
-
return undefinedConstructor;
|
|
15234
|
-
} else if (value === null) {
|
|
15235
|
-
return nullConstructor;
|
|
15236
|
-
}
|
|
15237
|
-
|
|
15238
|
-
return value.constructor;
|
|
15239
|
-
};
|
|
15240
|
-
/**
|
|
15241
|
-
* Get the name of the constructor used to create `value`, using
|
|
15242
|
-
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
15243
|
-
* "null" or "undefined", respectively.
|
|
15244
|
-
* @param {*} value Instance to return the constructor name of.
|
|
15245
|
-
* @returns {String} Name of the constructor.
|
|
15246
|
-
*/
|
|
15247
|
-
|
|
15248
|
-
|
|
15249
|
-
var getConstructorName = function (value) {
|
|
15250
|
-
if (value === undefined) {
|
|
15251
|
-
return "undefined";
|
|
15252
|
-
} else if (value === null) {
|
|
15253
|
-
return "null";
|
|
15254
|
-
}
|
|
15255
|
-
|
|
15256
|
-
return Object.prototype.toString.call(value).slice(8, -1); // eslint-disable-line no-magic-numbers
|
|
15257
|
-
};
|
|
15258
|
-
/**
|
|
15259
|
-
* Return a new validator based on `propType` but which logs a `console.error`
|
|
15260
|
-
* with `explanation` if used.
|
|
15261
|
-
* @param {Function} propType The old, deprecated propType.
|
|
15262
|
-
* @param {String} explanation The message to provide the user of the deprecated propType.
|
|
15263
|
-
* @returns {Function} Validator which logs usage of this propType
|
|
15264
|
-
*/
|
|
15265
|
-
|
|
15266
|
-
|
|
15267
|
-
function deprecated(propType, explanation) {
|
|
15268
|
-
return function (props, propName, componentName) {
|
|
15269
|
-
var value = props[propName];
|
|
15270
|
-
|
|
15271
|
-
if (value !== null && value !== undefined) {
|
|
15272
|
-
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
15273
|
-
}
|
|
15274
|
-
|
|
15275
|
-
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
15276
|
-
return null;
|
|
15277
|
-
};
|
|
15278
|
-
}
|
|
15279
|
-
/**
|
|
15280
|
-
* Return a new validator which returns true
|
|
15281
|
-
* if and only if all validators passed as arguments return true.
|
|
15282
|
-
* Like React.propTypes.oneOfType, except "all" instead of "any"
|
|
15283
|
-
* @param {Array} validators Validation functions.
|
|
15284
|
-
* @returns {Function} Combined validator function
|
|
15285
|
-
*/
|
|
15286
|
-
|
|
15287
|
-
function allOfType(validators) {
|
|
15288
|
-
return makeChainable(function (props, propName, componentName) {
|
|
15289
|
-
for (var _len2 = arguments.length, rest = new Array(_len2 > 3 ? _len2 - 3 : 0), _key2 = 3; _key2 < _len2; _key2++) {
|
|
15290
|
-
rest[_key2 - 3] = arguments[_key2];
|
|
15291
|
-
}
|
|
15292
|
-
|
|
15293
|
-
return validators.reduce(function (result, validator) {
|
|
15294
|
-
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
15295
|
-
}, null);
|
|
15296
|
-
});
|
|
15297
|
-
}
|
|
15298
|
-
/**
|
|
15299
|
-
* Check that the value is a non-negative number.
|
|
15300
|
-
*/
|
|
15301
|
-
|
|
15302
|
-
var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
15303
|
-
var value = props[propName];
|
|
15304
|
-
|
|
15305
|
-
if (typeof value !== "number" || value < 0) {
|
|
15306
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
15307
|
-
}
|
|
15308
|
-
|
|
15309
|
-
return null;
|
|
15310
|
-
});
|
|
15311
|
-
/**
|
|
15312
|
-
* Check that the value is an integer.
|
|
15313
|
-
*/
|
|
15314
|
-
|
|
15315
|
-
var integer = makeChainable(function (props, propName, componentName) {
|
|
15316
|
-
var value = props[propName];
|
|
15317
|
-
|
|
15318
|
-
if (typeof value !== "number" || value % 1 !== 0) {
|
|
15319
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
15320
|
-
}
|
|
15321
|
-
|
|
15322
|
-
return null;
|
|
15323
|
-
});
|
|
15324
|
-
/**
|
|
15325
|
-
* Check that the value is greater than zero.
|
|
15326
|
-
*/
|
|
15327
|
-
|
|
15328
|
-
var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
15329
|
-
var value = props[propName];
|
|
15330
|
-
|
|
15331
|
-
if (typeof value !== "number" || value <= 0) {
|
|
15332
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
15333
|
-
}
|
|
15334
|
-
|
|
15335
|
-
return null;
|
|
15336
|
-
});
|
|
15337
|
-
/**
|
|
15338
|
-
* Check that the value is an Array of two unique values.
|
|
15339
|
-
*/
|
|
15340
|
-
|
|
15341
|
-
var domain = makeChainable(function (props, propName, componentName) {
|
|
15342
|
-
var value = props[propName];
|
|
15343
|
-
|
|
15344
|
-
if (!Array.isArray(value) || value.length !== 2 || value[1] === value[0]) {
|
|
15345
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
15346
|
-
}
|
|
15347
|
-
|
|
15348
|
-
return null;
|
|
15349
|
-
});
|
|
15350
|
-
/**
|
|
15351
|
-
* Check that the value looks like a d3 `scale` function.
|
|
15352
|
-
*/
|
|
15353
|
-
|
|
15354
|
-
var scale = makeChainable(function (props, propName, componentName) {
|
|
15355
|
-
var value = props[propName];
|
|
15356
|
-
|
|
15357
|
-
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
15358
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
15359
|
-
}
|
|
15360
|
-
|
|
15361
|
-
return null;
|
|
15362
|
-
});
|
|
15363
|
-
/**
|
|
15364
|
-
* Check that an array contains items of the same type.
|
|
15365
|
-
*/
|
|
15366
|
-
|
|
15367
|
-
var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
15368
|
-
var values = props[propName];
|
|
15369
|
-
|
|
15370
|
-
if (!Array.isArray(values)) {
|
|
15371
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array."));
|
|
15372
|
-
}
|
|
15373
|
-
|
|
15374
|
-
if (values.length < 2) {
|
|
15375
|
-
return null;
|
|
15376
|
-
}
|
|
15377
|
-
|
|
15378
|
-
var comparisonConstructor = getConstructor(values[0]);
|
|
15379
|
-
|
|
15380
|
-
var typeMismatchedValue = lodash_find__WEBPACK_IMPORTED_MODULE_1___default()(values, function (value) {
|
|
15381
|
-
return comparisonConstructor !== getConstructor(value);
|
|
15382
|
-
});
|
|
15383
|
-
|
|
15384
|
-
if (typeMismatchedValue) {
|
|
15385
|
-
var constructorName = getConstructorName(values[0]);
|
|
15386
|
-
var otherConstructorName = getConstructorName(typeMismatchedValue);
|
|
15387
|
-
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
15388
|
-
}
|
|
15389
|
-
|
|
15390
|
-
return null;
|
|
15391
|
-
});
|
|
15392
|
-
/**
|
|
15393
|
-
* Check that array prop length matches props.data.length
|
|
15394
|
-
*/
|
|
15395
|
-
|
|
15396
|
-
var matchDataLength = makeChainable(function (props, propName) {
|
|
15397
|
-
if (props[propName] && Array.isArray(props[propName]) && props[propName].length !== props.data.length) {
|
|
15398
|
-
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
15399
|
-
}
|
|
15400
|
-
|
|
15401
|
-
return null;
|
|
15402
|
-
});
|
|
15403
|
-
/**
|
|
15404
|
-
* Check that the value is a regular expression
|
|
15405
|
-
*/
|
|
15406
|
-
|
|
15407
|
-
var regExp = makeChainable(function (props, propName, componentName) {
|
|
15408
|
-
if (props[propName] && !lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default()(props[propName])) {
|
|
15409
|
-
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
15410
|
-
}
|
|
15411
|
-
|
|
15412
|
-
return null;
|
|
15413
|
-
});
|
|
15414
|
-
|
|
15415
|
-
/***/ }),
|
|
15416
|
-
|
|
15417
13168
|
/***/ "../../victory-core/es/victory-util/scale.js":
|
|
15418
13169
|
/*!***************************************************!*\
|
|
15419
13170
|
!*** ../../victory-core/es/victory-util/scale.js ***!
|