victory-brush-container 36.4.1 → 36.5.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.
@@ -602,6 +602,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
602
602
 
603
603
  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; }
604
604
 
605
+ 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; }
606
+
605
607
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
606
608
 
607
609
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -622,7 +624,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
622
624
 
623
625
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
624
626
 
625
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
627
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
626
628
 
627
629
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
628
630
 
@@ -632,9 +634,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
632
634
 
633
635
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
634
636
 
635
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
636
-
637
- 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; }
637
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
638
638
 
639
639
 
640
640
 
@@ -779,7 +779,7 @@ var brushContainerMixin = function (base) {
779
779
  }]);
780
780
 
781
781
  return VictoryBrushContainer;
782
- }(base), _defineProperty(_class, "displayName", "VictoryBrushContainer"), _defineProperty(_class, "propTypes", _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__["default"].propTypes), {}, {
782
+ }(base), _class.displayName = "VictoryBrushContainer", _class.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryContainer.propTypes), {}, {
783
783
  allowDrag: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool),
784
784
  allowDraw: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool),
785
785
  allowResize: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool),
@@ -798,24 +798,24 @@ var brushContainerMixin = function (base) {
798
798
  onBrushCleared: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func),
799
799
  onBrushDomainChange: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func),
800
800
  onBrushDomainChangeEnd: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)
801
- })), _defineProperty(_class, "defaultProps", _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__["default"].defaultProps), {}, {
801
+ }), _class.defaultProps = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryContainer.defaultProps), {}, {
802
802
  allowDrag: true,
803
803
  allowDraw: true,
804
804
  allowResize: true,
805
- brushComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__["default"], null),
805
+ brushComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.Rect, null),
806
806
  brushStyle: {
807
807
  stroke: "transparent",
808
808
  fill: "black",
809
809
  fillOpacity: 0.1
810
810
  },
811
- handleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__["default"], null),
811
+ handleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.Rect, null),
812
812
  handleStyle: {
813
813
  stroke: "transparent",
814
814
  fill: "transparent"
815
815
  },
816
816
  handleWidth: 8,
817
817
  mouseMoveThreshold: 0
818
- })), _defineProperty(_class, "defaultEvents", function (props) {
818
+ }), _class.defaultEvents = function (props) {
819
819
  return [{
820
820
  target: "parent",
821
821
  eventHandlers: {
@@ -842,9 +842,9 @@ var brushContainerMixin = function (base) {
842
842
  }
843
843
  }
844
844
  }];
845
- }), _class;
845
+ }, _class;
846
846
  };
847
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (brushContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_6__["default"]));
847
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (brushContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryContainer));
848
848
 
849
849
  /***/ }),
850
850
 
@@ -5167,7 +5167,7 @@ module.exports = checkPropTypes;
5167
5167
 
5168
5168
 
5169
5169
 
5170
- var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
5170
+ var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
5171
5171
  var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
5172
5172
 
5173
5173
  var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
@@ -5786,7 +5786,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
5786
5786
  */
5787
5787
 
5788
5788
  if (true) {
5789
- var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
5789
+ var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
5790
5790
 
5791
5791
  // By explicitly using `prop-types` you are opting into new development behavior.
5792
5792
  // http://fb.me/prop-types-in-prod
@@ -5831,154 +5831,10 @@ module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
5831
5831
 
5832
5832
  /***/ }),
5833
5833
 
5834
- /***/ "../../../node_modules/react-fast-compare/index.js":
5835
- /*!*********************************************************!*\
5836
- !*** ../../../node_modules/react-fast-compare/index.js ***!
5837
- \*********************************************************/
5838
- /***/ ((module) => {
5839
-
5840
- /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
5841
-
5842
- var hasElementType = typeof Element !== 'undefined';
5843
- var hasMap = typeof Map === 'function';
5844
- var hasSet = typeof Set === 'function';
5845
- var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
5846
-
5847
- // Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
5848
-
5849
- function equal(a, b) {
5850
- // START: fast-deep-equal es6/index.js 3.1.1
5851
- if (a === b) return true;
5852
-
5853
- if (a && b && typeof a == 'object' && typeof b == 'object') {
5854
- if (a.constructor !== b.constructor) return false;
5855
-
5856
- var length, i, keys;
5857
- if (Array.isArray(a)) {
5858
- length = a.length;
5859
- if (length != b.length) return false;
5860
- for (i = length; i-- !== 0;)
5861
- if (!equal(a[i], b[i])) return false;
5862
- return true;
5863
- }
5864
-
5865
- // START: Modifications:
5866
- // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
5867
- // to co-exist with es5.
5868
- // 2. Replace `for of` with es5 compliant iteration using `for`.
5869
- // Basically, take:
5870
- //
5871
- // ```js
5872
- // for (i of a.entries())
5873
- // if (!b.has(i[0])) return false;
5874
- // ```
5875
- //
5876
- // ... and convert to:
5877
- //
5878
- // ```js
5879
- // it = a.entries();
5880
- // while (!(i = it.next()).done)
5881
- // if (!b.has(i.value[0])) return false;
5882
- // ```
5883
- //
5884
- // **Note**: `i` access switches to `i.value`.
5885
- var it;
5886
- if (hasMap && (a instanceof Map) && (b instanceof Map)) {
5887
- if (a.size !== b.size) return false;
5888
- it = a.entries();
5889
- while (!(i = it.next()).done)
5890
- if (!b.has(i.value[0])) return false;
5891
- it = a.entries();
5892
- while (!(i = it.next()).done)
5893
- if (!equal(i.value[1], b.get(i.value[0]))) return false;
5894
- return true;
5895
- }
5896
-
5897
- if (hasSet && (a instanceof Set) && (b instanceof Set)) {
5898
- if (a.size !== b.size) return false;
5899
- it = a.entries();
5900
- while (!(i = it.next()).done)
5901
- if (!b.has(i.value[0])) return false;
5902
- return true;
5903
- }
5904
- // END: Modifications
5905
-
5906
- if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
5907
- length = a.length;
5908
- if (length != b.length) return false;
5909
- for (i = length; i-- !== 0;)
5910
- if (a[i] !== b[i]) return false;
5911
- return true;
5912
- }
5913
-
5914
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
5915
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
5916
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
5917
-
5918
- keys = Object.keys(a);
5919
- length = keys.length;
5920
- if (length !== Object.keys(b).length) return false;
5921
-
5922
- for (i = length; i-- !== 0;)
5923
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
5924
- // END: fast-deep-equal
5925
-
5926
- // START: react-fast-compare
5927
- // custom handling for DOM elements
5928
- if (hasElementType && a instanceof Element) return false;
5929
-
5930
- // custom handling for React/Preact
5931
- for (i = length; i-- !== 0;) {
5932
- if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
5933
- // React-specific: avoid traversing React elements' _owner
5934
- // Preact-specific: avoid traversing Preact elements' __v and __o
5935
- // __v = $_original / $_vnode
5936
- // __o = $_owner
5937
- // These properties contain circular references and are not needed when
5938
- // comparing the actual elements (and not their owners)
5939
- // .$$typeof and ._store on just reasonable markers of elements
5940
-
5941
- continue;
5942
- }
5943
-
5944
- // all other properties should be traversed as usual
5945
- if (!equal(a[keys[i]], b[keys[i]])) return false;
5946
- }
5947
- // END: react-fast-compare
5948
-
5949
- // START: fast-deep-equal
5950
- return true;
5951
- }
5952
-
5953
- return a !== a && b !== b;
5954
- }
5955
- // end fast-deep-equal
5956
-
5957
- module.exports = function isEqual(a, b) {
5958
- try {
5959
- return equal(a, b);
5960
- } catch (error) {
5961
- if (((error.message || '').match(/stack|recursion/i))) {
5962
- // warn on circular references, don't crash
5963
- // browsers give this different errors name and messages:
5964
- // chrome/safari: "RangeError", "Maximum call stack size exceeded"
5965
- // firefox: "InternalError", too much recursion"
5966
- // edge: "Error", "Out of stack space"
5967
- console.warn('react-fast-compare cannot handle circular refs');
5968
- return false;
5969
- }
5970
- // some other error. we should definitely know about these
5971
- throw error;
5972
- }
5973
- };
5974
-
5975
-
5976
- /***/ }),
5977
-
5978
- /***/ "../../../node_modules/react-is/cjs/react-is.development.js":
5979
- /*!******************************************************************!*\
5980
- !*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
5981
- \******************************************************************/
5834
+ /***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
5835
+ /*!******************************************************************************************!*\
5836
+ !*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
5837
+ \******************************************************************************************/
5982
5838
  /***/ ((__unused_webpack_module, exports) => {
5983
5839
 
5984
5840
  "use strict";
@@ -6167,20 +6023,164 @@ exports.typeOf = typeOf;
6167
6023
 
6168
6024
  /***/ }),
6169
6025
 
6170
- /***/ "../../../node_modules/react-is/index.js":
6171
- /*!***********************************************!*\
6172
- !*** ../../../node_modules/react-is/index.js ***!
6173
- \***********************************************/
6026
+ /***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
6027
+ /*!***********************************************************************!*\
6028
+ !*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
6029
+ \***********************************************************************/
6174
6030
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6175
6031
 
6176
6032
  "use strict";
6177
6033
 
6178
6034
 
6179
6035
  if (false) {} else {
6180
- module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
6036
+ module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
6181
6037
  }
6182
6038
 
6183
6039
 
6040
+ /***/ }),
6041
+
6042
+ /***/ "../../../node_modules/react-fast-compare/index.js":
6043
+ /*!*********************************************************!*\
6044
+ !*** ../../../node_modules/react-fast-compare/index.js ***!
6045
+ \*********************************************************/
6046
+ /***/ ((module) => {
6047
+
6048
+ /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
6049
+
6050
+ var hasElementType = typeof Element !== 'undefined';
6051
+ var hasMap = typeof Map === 'function';
6052
+ var hasSet = typeof Set === 'function';
6053
+ var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
6054
+
6055
+ // Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
6056
+
6057
+ function equal(a, b) {
6058
+ // START: fast-deep-equal es6/index.js 3.1.1
6059
+ if (a === b) return true;
6060
+
6061
+ if (a && b && typeof a == 'object' && typeof b == 'object') {
6062
+ if (a.constructor !== b.constructor) return false;
6063
+
6064
+ var length, i, keys;
6065
+ if (Array.isArray(a)) {
6066
+ length = a.length;
6067
+ if (length != b.length) return false;
6068
+ for (i = length; i-- !== 0;)
6069
+ if (!equal(a[i], b[i])) return false;
6070
+ return true;
6071
+ }
6072
+
6073
+ // START: Modifications:
6074
+ // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
6075
+ // to co-exist with es5.
6076
+ // 2. Replace `for of` with es5 compliant iteration using `for`.
6077
+ // Basically, take:
6078
+ //
6079
+ // ```js
6080
+ // for (i of a.entries())
6081
+ // if (!b.has(i[0])) return false;
6082
+ // ```
6083
+ //
6084
+ // ... and convert to:
6085
+ //
6086
+ // ```js
6087
+ // it = a.entries();
6088
+ // while (!(i = it.next()).done)
6089
+ // if (!b.has(i.value[0])) return false;
6090
+ // ```
6091
+ //
6092
+ // **Note**: `i` access switches to `i.value`.
6093
+ var it;
6094
+ if (hasMap && (a instanceof Map) && (b instanceof Map)) {
6095
+ if (a.size !== b.size) return false;
6096
+ it = a.entries();
6097
+ while (!(i = it.next()).done)
6098
+ if (!b.has(i.value[0])) return false;
6099
+ it = a.entries();
6100
+ while (!(i = it.next()).done)
6101
+ if (!equal(i.value[1], b.get(i.value[0]))) return false;
6102
+ return true;
6103
+ }
6104
+
6105
+ if (hasSet && (a instanceof Set) && (b instanceof Set)) {
6106
+ if (a.size !== b.size) return false;
6107
+ it = a.entries();
6108
+ while (!(i = it.next()).done)
6109
+ if (!b.has(i.value[0])) return false;
6110
+ return true;
6111
+ }
6112
+ // END: Modifications
6113
+
6114
+ if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
6115
+ length = a.length;
6116
+ if (length != b.length) return false;
6117
+ for (i = length; i-- !== 0;)
6118
+ if (a[i] !== b[i]) return false;
6119
+ return true;
6120
+ }
6121
+
6122
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
6123
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
6124
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
6125
+
6126
+ keys = Object.keys(a);
6127
+ length = keys.length;
6128
+ if (length !== Object.keys(b).length) return false;
6129
+
6130
+ for (i = length; i-- !== 0;)
6131
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
6132
+ // END: fast-deep-equal
6133
+
6134
+ // START: react-fast-compare
6135
+ // custom handling for DOM elements
6136
+ if (hasElementType && a instanceof Element) return false;
6137
+
6138
+ // custom handling for React/Preact
6139
+ for (i = length; i-- !== 0;) {
6140
+ if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
6141
+ // React-specific: avoid traversing React elements' _owner
6142
+ // Preact-specific: avoid traversing Preact elements' __v and __o
6143
+ // __v = $_original / $_vnode
6144
+ // __o = $_owner
6145
+ // These properties contain circular references and are not needed when
6146
+ // comparing the actual elements (and not their owners)
6147
+ // .$$typeof and ._store on just reasonable markers of elements
6148
+
6149
+ continue;
6150
+ }
6151
+
6152
+ // all other properties should be traversed as usual
6153
+ if (!equal(a[keys[i]], b[keys[i]])) return false;
6154
+ }
6155
+ // END: react-fast-compare
6156
+
6157
+ // START: fast-deep-equal
6158
+ return true;
6159
+ }
6160
+
6161
+ return a !== a && b !== b;
6162
+ }
6163
+ // end fast-deep-equal
6164
+
6165
+ module.exports = function isEqual(a, b) {
6166
+ try {
6167
+ return equal(a, b);
6168
+ } catch (error) {
6169
+ if (((error.message || '').match(/stack|recursion/i))) {
6170
+ // warn on circular references, don't crash
6171
+ // browsers give this different errors name and messages:
6172
+ // chrome/safari: "RangeError", "Maximum call stack size exceeded"
6173
+ // firefox: "InternalError", too much recursion"
6174
+ // edge: "Error", "Out of stack space"
6175
+ console.warn('react-fast-compare cannot handle circular refs');
6176
+ return false;
6177
+ }
6178
+ // some other error. we should definitely know about these
6179
+ throw error;
6180
+ }
6181
+ };
6182
+
6183
+
6184
6184
  /***/ }),
6185
6185
 
6186
6186
  /***/ "../../victory-core/es/victory-container/victory-container.js":
@@ -6192,7 +6192,7 @@ if (false) {} else {
6192
6192
  "use strict";
6193
6193
  __webpack_require__.r(__webpack_exports__);
6194
6194
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6195
- /* harmony export */ "default": () => (/* binding */ VictoryContainer)
6195
+ /* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
6196
6196
  /* harmony export */ });
6197
6197
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
6198
6198
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
@@ -6220,12 +6220,14 @@ __webpack_require__.r(__webpack_exports__);
6220
6220
 
6221
6221
 
6222
6222
 
6223
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6223
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6224
6224
 
6225
6225
  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; }
6226
6226
 
6227
6227
  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; }
6228
6228
 
6229
+ 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; }
6230
+
6229
6231
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6230
6232
 
6231
6233
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -6234,7 +6236,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
6234
6236
 
6235
6237
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
6236
6238
 
6237
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
6239
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
6238
6240
 
6239
6241
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6240
6242
 
@@ -6244,10 +6246,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
6244
6246
 
6245
6247
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
6246
6248
 
6247
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6248
-
6249
- 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; }
6250
-
6249
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6251
6250
 
6252
6251
 
6253
6252
 
@@ -6262,13 +6261,18 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
6262
6261
 
6263
6262
  var _super = _createSuper(VictoryContainer);
6264
6263
 
6264
+ // @ts-expect-error Ref will be initialized on mount
6265
+ // @ts-expect-error Ref will be initialized on mount
6265
6266
  function VictoryContainer(props) {
6266
6267
  var _this;
6267
6268
 
6268
6269
  _classCallCheck(this, VictoryContainer);
6269
6270
 
6270
6271
  _this = _super.call(this, props);
6271
- _this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
6272
+ _this.containerId = void 0;
6273
+ _this.portalRef = void 0;
6274
+ _this.containerRef = void 0;
6275
+ _this.shouldHandleWheel = void 0;
6272
6276
 
6273
6277
  _this.savePortalRef = function (portal) {
6274
6278
  _this.portalRef = portal;
@@ -6287,18 +6291,21 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
6287
6291
  return _this.portalRef.portalDeregister(key);
6288
6292
  };
6289
6293
 
6290
- _this.saveContainerRef = props && lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(props.containerRef) ? props.containerRef : function (container) {
6294
+ _this.saveContainerRef = function (container) {
6295
+ if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(_this.props.containerRef)) {
6296
+ _this.props.containerRef(container);
6297
+ }
6298
+
6291
6299
  _this.containerRef = container;
6292
6300
  return container;
6293
6301
  };
6294
- _this.shouldHandleWheel = props && props.events && props.events.onWheel;
6295
6302
 
6296
- if (_this.shouldHandleWheel) {
6297
- _this.handleWheel = function (e) {
6298
- return e.preventDefault();
6299
- };
6300
- }
6303
+ _this.handleWheel = function (e) {
6304
+ return e.preventDefault();
6305
+ };
6301
6306
 
6307
+ _this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
6308
+ _this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
6302
6309
  return _this;
6303
6310
  }
6304
6311
 
@@ -6391,7 +6398,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
6391
6398
  preserveAspectRatio: svgProps.preserveAspectRatio,
6392
6399
  style: portalSvgStyle
6393
6400
  };
6394
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__["default"].Provider, {
6401
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__.PortalContext.Provider, {
6395
6402
  value: {
6396
6403
  portalUpdate: this.portalUpdate,
6397
6404
  portalRegister: this.portalRegister,
@@ -6446,12 +6453,9 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
6446
6453
 
6447
6454
  return VictoryContainer;
6448
6455
  }((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
6449
-
6450
- _defineProperty(VictoryContainer, "displayName", "VictoryContainer");
6451
-
6452
- _defineProperty(VictoryContainer, "role", "container");
6453
-
6454
- _defineProperty(VictoryContainer, "propTypes", {
6456
+ VictoryContainer.displayName = "VictoryContainer";
6457
+ VictoryContainer.role = "container";
6458
+ VictoryContainer.propTypes = {
6455
6459
  "aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
6456
6460
  "aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
6457
6461
  children: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_9___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)]),
@@ -6480,19 +6484,15 @@ _defineProperty(VictoryContainer, "propTypes", {
6480
6484
  theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
6481
6485
  title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
6482
6486
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
6483
- });
6484
-
6485
- _defineProperty(VictoryContainer, "defaultProps", {
6487
+ };
6488
+ VictoryContainer.defaultProps = {
6486
6489
  className: "VictoryContainer",
6487
- portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__["default"], null),
6490
+ portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__.Portal, null),
6488
6491
  portalZIndex: 99,
6489
6492
  responsive: true,
6490
6493
  role: "img"
6491
- });
6492
-
6493
- _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"]);
6494
-
6495
-
6494
+ };
6495
+ VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
6496
6496
 
6497
6497
  /***/ }),
6498
6498
 
@@ -6505,19 +6505,18 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
6505
6505
  "use strict";
6506
6506
  __webpack_require__.r(__webpack_exports__);
6507
6507
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6508
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
6508
+ /* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
6509
6509
  /* harmony export */ });
6510
6510
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6511
6511
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6512
6512
 
6513
+
6513
6514
  /**
6514
6515
  * The React context object consumers may use to access the context of the
6515
6516
  * portal.
6516
6517
  */
6517
-
6518
6518
  var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
6519
6519
  PortalContext.displayName = "PortalContext";
6520
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PortalContext);
6521
6520
 
6522
6521
  /***/ }),
6523
6522
 
@@ -6530,7 +6529,7 @@ PortalContext.displayName = "PortalContext";
6530
6529
  "use strict";
6531
6530
  __webpack_require__.r(__webpack_exports__);
6532
6531
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6533
- /* harmony export */ "default": () => (/* binding */ Portal)
6532
+ /* harmony export */ "Portal": () => (/* binding */ Portal)
6534
6533
  /* harmony export */ });
6535
6534
  /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
6536
6535
  /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
@@ -6549,7 +6548,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
6549
6548
 
6550
6549
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
6551
6550
 
6552
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
6551
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
6553
6552
 
6554
6553
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6555
6554
 
@@ -6559,10 +6558,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
6559
6558
 
6560
6559
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
6561
6560
 
6562
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6563
-
6564
- 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; }
6565
-
6561
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6566
6562
 
6567
6563
 
6568
6564
 
@@ -6578,32 +6574,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
6578
6574
  _classCallCheck(this, Portal);
6579
6575
 
6580
6576
  _this = _super.call(this, props);
6577
+ _this.map = void 0;
6578
+ _this.index = void 0;
6579
+
6580
+ _this.portalRegister = function () {
6581
+ return ++_this.index;
6582
+ };
6583
+
6584
+ _this.portalUpdate = function (key, element) {
6585
+ _this.map[key] = element;
6586
+
6587
+ _this.forceUpdate();
6588
+ };
6589
+
6590
+ _this.portalDeregister = function (key) {
6591
+ delete _this.map[key];
6592
+
6593
+ _this.forceUpdate();
6594
+ };
6595
+
6581
6596
  _this.map = {};
6582
6597
  _this.index = 1;
6583
- _this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
6584
- _this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
6585
- _this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
6586
6598
  return _this;
6587
6599
  }
6588
6600
 
6589
6601
  _createClass(Portal, [{
6590
- key: "portalRegister",
6591
- value: function portalRegister() {
6592
- return ++this.index;
6593
- }
6594
- }, {
6595
- key: "portalUpdate",
6596
- value: function portalUpdate(key, element) {
6597
- this.map[key] = element;
6598
- this.forceUpdate();
6599
- }
6600
- }, {
6601
- key: "portalDeregister",
6602
- value: function portalDeregister(key) {
6603
- delete this.map[key];
6604
- this.forceUpdate();
6605
- }
6606
- }, {
6607
6602
  key: "getChildren",
6608
6603
  value: function getChildren() {
6609
6604
  var _this2 = this;
@@ -6625,18 +6620,14 @@ var Portal = /*#__PURE__*/function (_React$Component) {
6625
6620
 
6626
6621
  return Portal;
6627
6622
  }((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
6628
-
6629
- _defineProperty(Portal, "displayName", "Portal");
6630
-
6631
- _defineProperty(Portal, "propTypes", {
6623
+ Portal.displayName = "Portal";
6624
+ Portal.propTypes = {
6632
6625
  className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
6633
6626
  height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
6634
6627
  style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
6635
6628
  viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
6636
6629
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
6637
- });
6638
-
6639
-
6630
+ };
6640
6631
 
6641
6632
  /***/ }),
6642
6633
 
@@ -6649,34 +6640,37 @@ _defineProperty(Portal, "propTypes", {
6649
6640
  "use strict";
6650
6641
  __webpack_require__.r(__webpack_exports__);
6651
6642
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6652
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
6643
+ /* harmony export */ "Rect": () => (/* binding */ Rect)
6653
6644
  /* harmony export */ });
6654
6645
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6655
6646
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6656
6647
  var _excluded = ["desc"];
6657
6648
 
6658
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6649
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6659
6650
 
6660
6651
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6661
6652
 
6662
6653
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6663
6654
 
6664
6655
 
6665
-
6666
6656
  var Rect = function (props) {
6667
6657
  // eslint-disable-next-line react/prop-types
6668
6658
  var desc = props.desc,
6669
6659
  rest = _objectWithoutProperties(props, _excluded);
6670
6660
 
6671
- return desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
6661
+ return desc ?
6662
+ /*#__PURE__*/
6663
+ // @ts-expect-error FIXME: "id cannot be a number"
6664
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
6672
6665
  vectorEffect: "non-scaling-stroke"
6673
- }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
6666
+ }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
6667
+ /*#__PURE__*/
6668
+ // @ts-expect-error FIXME: "id cannot be a number"
6669
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
6674
6670
  vectorEffect: "non-scaling-stroke"
6675
6671
  }, rest));
6676
6672
  };
6677
6673
 
6678
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rect);
6679
-
6680
6674
  /***/ }),
6681
6675
 
6682
6676
  /***/ "../../victory-core/es/victory-util/collection.js":
@@ -6709,8 +6703,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
6709
6703
 
6710
6704
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
6711
6705
 
6712
- /* eslint-disable func-style */
6713
-
6714
6706
  /* eslint-disable no-use-before-define */
6715
6707
  function isNonEmptyArray(collection) {
6716
6708
  return Array.isArray(collection) && collection.length > 0;
@@ -6813,8 +6805,6 @@ __webpack_require__.r(__webpack_exports__);
6813
6805
 
6814
6806
 
6815
6807
 
6816
- /* eslint-disable func-style */
6817
-
6818
6808
  /* eslint-disable no-use-before-define */
6819
6809
 
6820
6810
 
@@ -7173,7 +7163,6 @@ __webpack_require__.r(__webpack_exports__);
7173
7163
 
7174
7164
  /* eslint-disable no-console */
7175
7165
  // TODO: Use "warning" npm module like React is switching to.
7176
- // eslint-disable-next-line func-style
7177
7166
  function warn(message) {
7178
7167
  if (true) {
7179
7168
  if (console && console.warn) {
@@ -7483,8 +7472,6 @@ __webpack_require__.r(__webpack_exports__);
7483
7472
  /* harmony export */ "getSVGEventCoordinates": () => (/* binding */ getSVGEventCoordinates)
7484
7473
  /* harmony export */ });
7485
7474
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
7486
- /* eslint-disable func-style */
7487
-
7488
7475
  /* eslint-disable no-use-before-define */
7489
7476
  // Private Functions
7490
7477
 
@@ -7644,11 +7631,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
7644
7631
 
7645
7632
  var Timer = /*#__PURE__*/function () {
7646
7633
  function Timer() {
7634
+ var _this = this;
7635
+
7647
7636
  _classCallCheck(this, Timer);
7648
7637
 
7638
+ this.shouldAnimate = void 0;
7639
+ this.subscribers = void 0;
7640
+ this.activeSubscriptions = void 0;
7641
+ this.timer = void 0;
7642
+
7643
+ this.loop = function () {
7644
+ _this.subscribers.forEach(function (s) {
7645
+ s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
7646
+ });
7647
+ };
7648
+
7649
7649
  this.shouldAnimate = true;
7650
7650
  this.subscribers = [];
7651
- this.loop = this.loop.bind(this);
7652
7651
  this.timer = null;
7653
7652
  this.activeSubscriptions = 0;
7654
7653
  }
@@ -7663,13 +7662,6 @@ var Timer = /*#__PURE__*/function () {
7663
7662
  value: function resumeAnimation() {
7664
7663
  this.shouldAnimate = true;
7665
7664
  }
7666
- }, {
7667
- key: "loop",
7668
- value: function loop() {
7669
- this.subscribers.forEach(function (s) {
7670
- s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
7671
- });
7672
- }
7673
7665
  }, {
7674
7666
  key: "start",
7675
7667
  value: function start() {
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryBrushContainer=e(require("react")):t.VictoryBrushContainer=e(t.React)}(self,(t=>(()=>{var e={1124:(t,e,r)=>{var n=r(7236);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return n(t)?t:[t]}},4281:(t,e,r)=>{var n=r(7168),o=r(6582),i=r(3867),a=r(9557),u=r(2726);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},4690:(t,e,r)=>{var n=r(441).Symbol;t.exports=n},5198:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},6460:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},3848:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},4793:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},7596:(t,e,r)=>{var n=r(999),o=r(6530),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},3833:(t,e,r)=>{var n=r(6530);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},999:(t,e,r)=>{var n=r(9346);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},528:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},314:(t,e,r)=>{var n=r(3848),o=r(1754);t.exports=function t(e,r,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c<l;){var s=e[c];r>0&&i(s)?r>1?t(s,r-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},641:(t,e,r)=>{var n=r(2630)();t.exports=n},5897:(t,e,r)=>{var n=r(641),o=r(2635);t.exports=function(t,e){return t&&n(t,e,o)}},166:(t,e,r)=>{var n=r(8422),o=r(8780);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},4318:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},7650:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},1071:(t,e,r)=>{var n=r(7229),o=r(3387);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},7229:(t,e,r)=>{var n=r(4281),o=r(2503),i=r(6001),a=r(8784),u=r(6686),c=r(7236),l=r(8752),s=r(4812),f="[object Arguments]",p="[object Array]",y="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,d,b){var m=c(t),x=c(e),g=m?p:u(t),w=x?p:u(e),O=(g=g==f?y:g)==y,j=(w=w==f?y:w)==y,M=g==w;if(M&&l(t)){if(!l(e))return!1;m=!0,O=!1}if(M&&!O)return b||(b=new n),m||s(t)?o(t,e,r,v,d,b):i(t,e,g,r,v,d,b);if(!(1&r)){var P=O&&h.call(t,"__wrapped__"),D=j&&h.call(e,"__wrapped__");if(P||D){var _=P?t.value():t,E=D?e.value():e;return b||(b=new n),d(_,E,r,v,b)}}return!!M&&(b||(b=new n),a(t,e,r,v,d,b))}},9157:(t,e,r)=>{var n=r(4281),o=r(1071);t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=r[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=r[a])[0],f=t[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in t))return!1}else{var y=new n;if(i)var h=i(f,p,s,t,e,y);if(!(void 0===h?o(p,f,3,i,y):h))return!1}}return!0}},1131:(t,e,r)=>{var n=r(4318),o=r(3387);t.exports=function(t){return o(t)&&"[object RegExp]"==n(t)}},8904:(t,e,r)=>{var n=r(8418),o=r(4555),i=r(5362),a=r(7236),u=r(1651);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},8418:(t,e,r)=>{var n=r(9157),o=r(9182),i=r(7375);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},4555:(t,e,r)=>{var n=r(1071),o=r(3795),i=r(3646),a=r(3266),u=r(1457),c=r(7375),l=r(8780);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},7410:(t,e,r)=>{var n=r(6621),o=r(3646);t.exports=function(t,e){return n(t,e,(function(e,r){return o(t,r)}))}},6621:(t,e,r)=>{var n=r(166),o=r(8116),i=r(8422);t.exports=function(t,e,r){for(var a=-1,u=e.length,c={};++a<u;){var l=e[a],s=n(t,l);r(s,l)&&o(c,i(l,t),s)}return c}},1712:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},4815:(t,e,r)=>{var n=r(166);t.exports=function(t){return function(e){return n(e,t)}}},4569:(t,e,r)=>{var n=r(5362),o=r(4468),i=r(8756);t.exports=function(t,e){return i(o(t,e,n),t+"")}},8116:(t,e,r)=>{var n=r(7596),o=r(8422),i=r(4363),a=r(5973),u=r(8780);t.exports=function(t,e,r,c){if(!a(t))return t;for(var l=-1,s=(e=o(e,t)).length,f=s-1,p=t;null!=p&&++l<s;){var y=u(e[l]),h=r;if("__proto__"===y||"constructor"===y||"prototype"===y)return t;if(l!=f){var v=p[y];void 0===(h=c?c(v,y,p):void 0)&&(h=a(v)?v:i(e[l+1])?[]:{})}n(p,y,h),p=p[y]}return t}},454:(t,e,r)=>{var n=r(4690),o=r(6460),i=r(7236),a=r(2945),u=n?n.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},6535:t=>{t.exports=function(t){return function(e){return t(e)}}},555:(t,e,r)=>{var n=r(7650);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},8422:(t,e,r)=>{var n=r(7236),o=r(3266),i=r(3879),a=r(1119);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},6051:(t,e,r)=>{var n=r(7596),o=r(999);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var u=-1,c=e.length;++u<c;){var l=e[u],s=i?i(r[l],t[l],l,r,t):void 0;void 0===s&&(s=t[l]),a?o(r,l,s):n(r,l,s)}return r}},2544:(t,e,r)=>{var n=r(4569),o=r(3108);t.exports=function(t){return n((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(r[0],r[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var c=r[n];c&&t(e,c,n,a)}return e}))}},2630:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}},3086:(t,e,r)=>{var n=r(8904),o=r(1580),i=r(2635);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var c=n(r,3);e=i(e),r=function(t){return c(u[t],t,u)}}var l=t(e,r,a);return l>-1?u[c?e[l]:l]:void 0}}},9346:(t,e,r)=>{var n=r(4457),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},2503:(t,e,r)=>{var n=r(1124),o=r(4793),i=r(555);t.exports=function(t,e,r,a,u,c){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),y=c.get(e);if(p&&y)return p==e&&y==t;var h=-1,v=!0,d=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++h<s;){var b=t[h],m=e[h];if(a)var x=l?a(m,b,h,e,t,c):a(b,m,h,t,e,c);if(void 0!==x){if(x)continue;v=!1;break}if(d){if(!o(e,(function(t,e){if(!i(d,e)&&(b===t||u(b,t,r,a,c)))return d.push(e)}))){v=!1;break}}else if(b!==m&&!u(b,m,r,a,c)){v=!1;break}}return c.delete(t),c.delete(e),v}},6001:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},8784:(t,e,r)=>{var n=r(6094),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var y=u.get(t),h=u.get(e);if(y&&h)return y==e&&h==t;var v=!0;u.set(t,e),u.set(e,t);for(var d=c;++f<s;){var b=t[p=l[f]],m=e[p];if(i)var x=c?i(m,b,p,e,t,u):i(b,m,p,t,e,u);if(!(void 0===x?b===m||a(b,m,r,i,u):x)){v=!1;break}d||(d="constructor"==p)}if(v&&!d){var g=t.constructor,w=e.constructor;g==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(v=!1)}return u.delete(t),u.delete(e),v}},3368:(t,e,r)=>{var n=r(5453),o=r(4468),i=r(8756);t.exports=function(t){return i(o(t,void 0,n),t+"")}},4414:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},6094:(t,e,r)=>{var n=r(3717)(Object.keys,Object);t.exports=n},9182:(t,e,r)=>{var n=r(1457),o=r(2635);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},4457:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},6686:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7383:(t,e,r)=>{var n=r(8422),o=r(6981),i=r(7236),a=r(4363),u=r(9216),c=r(8780);t.exports=function(t,e,r){for(var l=-1,s=(e=n(e,t)).length,f=!1;++l<s;){var p=c(e[l]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&u(s)&&a(p,s)&&(i(t)||o(t))}},1754:(t,e,r)=>{var n=r(4690),o=r(6981),i=r(7236),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},4363:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},3108:t=>{t.exports=function(){return!1}},3266:(t,e,r)=>{var n=r(7236),o=r(2945),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},5003:t=>{t.exports=function(){return!1}},1457:(t,e,r)=>{var n=r(5973);t.exports=function(t){return t==t&&!n(t)}},7168:t=>{t.exports=function(){this.__data__=[],this.size=0}},6582:(t,e,r)=>{var n=r(3833),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},3867:(t,e,r)=>{var n=r(3833);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},9557:(t,e,r)=>{var n=r(3833);t.exports=function(t){return n(this.__data__,t)>-1}},2726:(t,e,r)=>{var n=r(3833);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},7375:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},7085:t=>{t.exports=function(t){return t}},1782:(t,e,r)=>{t=r.nmd(t);var n=r(4414),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},3717:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},4468:(t,e,r)=>{var n=r(5198),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=r(c),n(t,this,l)}}},441:(t,e,r)=>{var n=r(4414),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},8756:t=>{t.exports=function(t){return t}},3879:(t,e,r)=>{var n=r(7085),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},8780:t=>{t.exports=function(t){return t}},6782:(t,e,r)=>{var n=r(7596),o=r(6051),i=r(2544),a=r(1580),u=r(5003),c=r(2635),l=Object.prototype.hasOwnProperty,s=i((function(t,e){if(u(e)||a(e))o(e,c(e),t);else for(var r in e)l.call(e,r)&&n(t,r,e[r])}));t.exports=s},5750:(t,e,r)=>{var n=r(5973),o=r(8148),i=r(8746),a=Math.max,u=Math.min;t.exports=function(t,e,r){var c,l,s,f,p,y,h=0,v=!1,d=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var r=c,n=l;return c=l=void 0,h=e,f=t.apply(n,r)}function x(t){return h=t,p=setTimeout(w,e),v?m(t):f}function g(t){var r=t-y;return void 0===y||r>=e||r<0||d&&t-h>=s}function w(){var t=o();if(g(t))return O(t);p=setTimeout(w,function(t){var r=e-(t-y);return d?u(r,s-(t-h)):r}(t))}function O(t){return p=void 0,b&&c?m(t):(c=l=void 0,f)}function j(){var t=o(),r=g(t);if(c=arguments,l=this,y=t,r){if(void 0===p)return x(y);if(d)return clearTimeout(p),p=setTimeout(w,e),m(y)}return void 0===p&&(p=setTimeout(w,e)),f}return e=i(e)||0,n(r)&&(v=!!r.leading,s=(d="maxWait"in r)?a(i(r.maxWait)||0,e):s,b="trailing"in r?!!r.trailing:b),j.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=y=l=p=void 0},j.flush=function(){return void 0===p?f:O(o())},j}},7901:(t,e,r)=>{var n=r(4569),o=r(6530),i=r(3108),a=r(5850),u=Object.prototype,c=u.hasOwnProperty,l=n((function(t,e){t=Object(t);var r=-1,n=e.length,l=n>2?e[2]:void 0;for(l&&i(e[0],e[1],l)&&(n=1);++r<n;)for(var s=e[r],f=a(s),p=-1,y=f.length;++p<y;){var h=f[p],v=t[h];(void 0===v||o(v,u[h])&&!c.call(t,h))&&(t[h]=s[h])}return t}));t.exports=l},6530:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},6786:(t,e,r)=>{var n=r(3086)(r(8611));t.exports=n},8611:(t,e,r)=>{var n=r(528),o=r(8904),i=r(5225),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return-1;var c=null==r?0:i(r);return c<0&&(c=a(u+c,0)),n(t,o(e,3),c)}},5453:(t,e,r)=>{var n=r(314);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},3795:(t,e,r)=>{var n=r(166);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},3646:(t,e,r)=>{var n=r(7),o=r(7383);t.exports=function(t,e){return null!=t&&o(t,e,n)}},5362:t=>{t.exports=function(t){return t}},6981:t=>{t.exports=function(){return!1}},7236:t=>{var e=Array.isArray;t.exports=e},1580:(t,e,r)=>{var n=r(3839),o=r(9216);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},8752:t=>{t.exports=function(){return!1}},3839:(t,e,r)=>{var n=r(4318),o=r(5973);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},9216:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5973:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3387:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},2654:(t,e,r)=>{var n=r(1131),o=r(6535),i=r(1782),a=i&&i.isRegExp,u=a?o(a):n;t.exports=u},2945:t=>{t.exports=function(){return!1}},4812:t=>{t.exports=function(){return!1}},2635:(t,e,r)=>{var n=r(3717)(Object.keys,Object);t.exports=n},5850:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},3792:(t,e,r)=>{var n=r(999),o=r(5897),i=r(8904);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},8148:(t,e,r)=>{var n=r(441);t.exports=function(){return n.Date.now()}},8423:(t,e,r)=>{var n=r(7410),o=r(3368)((function(t,e){return null==t?{}:n(t,e)}));t.exports=o},1651:(t,e,r)=>{var n=r(1712),o=r(4815),i=r(3266),a=r(8780);t.exports=function(t){return i(t)?n(a(t)):o(t)}},3259:(t,e,r)=>{var n=r(5750),o=r(5973);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},992:(t,e,r)=>{var n=r(8746);t.exports=function(t){return t?Infinity===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5225:(t,e,r)=>{var n=r(992);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},8746:t=>{t.exports=function(t){return t}},1119:(t,e,r)=>{var n=r(454);t.exports=function(t){return null==t?"":n(t)}},556:(t,e,r)=>{var n=r(1119),o=0;t.exports=function(t){var e=++o;return n(t)+e}},459:(t,e,r)=>{"use strict";var n=r(5704);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},216:(t,e,r)=>{t.exports=r(459)()},5704:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8266:t=>{var e="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var u,c,l,s;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(r&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;for(s=t.entries();!(c=s.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(e&&t instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!t.$$typeof)&&!i(t[l[c]],a[l[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:e=>{"use strict";e.exports=t}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={id:t,loaded:!1,exports:{}};return e[t](i,i.exports,n),i.loaded=!0,i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var o={};return(()=>{"use strict";n.r(o),n.d(o,{BrushHelpers:()=>Xt,VictoryBrushContainer:()=>ie,brushContainerMixin:()=>oe});var t=n(7901),e=n.n(t),r=n(6782),i=n.n(r),a=n(216),u=n.n(a),c=n(9787),l=n.n(c);function s(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function y(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return p(o)?new Date(Math.max.apply(Math,s(o))):Math.max.apply(Math,s(o))}function h(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return p(o)?new Date(Math.min.apply(Math,s(o))):Math.min.apply(Math,s(o))}function v(t,e,r){var n=e.a,o=e.d,i=e.e,a=e.f;return"y"===r?o*t+a:n*t+i}function d(t){if(!t.nativeEvent||void 0===t.nativeEvent.identifier){var e=function(t){return"svg"===t.nodeName?t:t.parentNode?e(t.parentNode):t};return e(t.target)}}function b(t,e){if(t.nativeEvent&&void 0!==t.nativeEvent.identifier)return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};t=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;var r=function(t){return t.getScreenCTM().inverse()}(e=e||d(t));return{x:v(t.clientX,r,"x"),y:v(t.clientY,r,"y")}}function m(t,e){var r=t.scale,n=t.horizontal;return e=e||{x:r.x.domain(),y:r.y.domain()},{x:n?[r.y(e.y[0]),r.y(e.y[1])]:[r.x(e.x[0]),r.x(e.x[1])],y:n?[r.x(e.x[0]),r.x(e.x[1])]:[r.y(e.y[0]),r.y(e.y[1])]}}function x(t,e,r,n){var o=t.polar,i=t.horizontal;if(o){var a=t.origin||{x:0,y:0},u=r-a.x,c=n-a.y,l=Math.abs(u*Math.sqrt(1+Math.pow(-c/u,2))),s=(-Math.atan2(c,u)+2*Math.PI)%(2*Math.PI);return{x:e.x.invert(s),y:e.y.invert(l)}}return{x:i?e.x.invert(n):e.x.invert(r),y:i?e.y.invert(r):e.y.invert(n)}}function g(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.scale,a=x(t,i,e,n),u=x(t,i,r,o),c=function(t,e){return[h([t,e]),y([t,e])]};return{x:c(a.x,u.x),y:c(a.y,u.y)}}var w=n(3839),O=n.n(w),j=n(5973),M=n.n(j),P=n(556),D=n.n(P),_=n(2654),E=n.n(_),S=n(6786),A=n.n(S),R=function(t){var e=function(e,r,n,o){var i=r[n];if(null==i)return e?new Error("Required `".concat(n,"` was not specified in `").concat(o,"`.")):null;for(var a=arguments.length,u=new Array(a>4?a-4:0),c=4;c<a;c++)u[c-4]=arguments[c];return t.apply(void 0,[r,n,o].concat(u))},r=e.bind(null,!1);return r.isRequired=e.bind(null,!0),r},B=function(){return null},T=function(){},k=function(t){return void 0===t?T:null===t?B:t.constructor},C=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)},I=R((function(t,e,r){var n=t[e];if("number"!=typeof n||n<0)return new Error("`".concat(e,"` in `").concat(r,"` must be a non-negative number."))})),z=R((function(t,e,r){var n=t[e];if("number"!=typeof n||n%1!=0)return new Error("`".concat(e,"` in `").concat(r,"` must be an integer."))})),G=(R((function(t,e,r){var n=t[e];if("number"!=typeof n||n<=0)return new Error("`".concat(e,"` in `").concat(r,"` must be a number greater than zero."))})),R((function(t,e,r){var n=t[e];if(!Array.isArray(n)||2!==n.length||n[1]===n[0])return new Error("`".concat(e,"` in `").concat(r,"` must be an array of two unique numeric values."))})),R((function(t,e,r){var n;if(n=t[e],!(O()(n)?O()(n.copy)&&O()(n.domain)&&O()(n.range):"string"==typeof n&&-1!==["linear","time","log","sqrt"].indexOf(n)))return new Error("`".concat(e,"` in `").concat(r,"` must be a d3 scale."))})),R((function(t,e,r){var n=t[e];if(!Array.isArray(n))return new Error("`".concat(e,"` in `").concat(r,"` must be an array."));if(!(n.length<2)){var o=k(n[0]),i=A()(n,(function(t){return o!==k(t)}));if(i){var a=C(n[0]),u=C(i);return new Error("Expected `".concat(e,"` in `").concat(r,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(u,"`."))}}})),R((function(t,e){if(t[e]&&Array.isArray(t[e])&&t[e].length!==t.data.length)return new Error("Length of data and ".concat(e," arrays must match."))})),R((function(t,e,r){if(t[e]&&!E()(t[e]))return new Error("`".concat(e,"` in `").concat(r,"` must be a regular expression."))})),n(2635)),U=n.n(G);function N(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function W(t,e){return W=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},W(t,e)}function V(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return F(t)}function F(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function H(t){return H=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},H(t)}function q(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&W(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=H(n);if(o){var r=H(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return V(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).map={},e.index=1,e.portalUpdate=e.portalUpdate.bind(F(e)),e.portalRegister=e.portalRegister.bind(F(e)),e.portalDeregister=e.portalDeregister.bind(F(e)),e}return e=a,(r=[{key:"portalRegister",value:function(){return++this.index}},{key:"portalUpdate",value:function(t,e){this.map[t]=e,this.forceUpdate()}},{key:"portalDeregister",value:function(t){delete this.map[t],this.forceUpdate()}},{key:"getChildren",value:function(){var t=this;return U()(this.map).map((function(e){var r=t.map[e];return r?l().cloneElement(r,{key:e}):r}))}},{key:"render",value:function(){return l().createElement("svg",this.props,this.getChildren())}}])&&N(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(l().Component);q($,"displayName","Portal"),q($,"propTypes",{className:u().string,height:I,style:u().object,viewBox:u().string,width:I});var X=l().createContext({});X.displayName="PortalContext";const Y=X;var L,Z,J=0,K=0,Q=0,tt=0,et=0,rt=0,nt="object"==typeof performance&&performance.now?performance:Date,ot="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function it(){return et||(ot(at),et=nt.now()+rt)}function at(){et=0}function ut(){this._call=this._time=this._next=null}function ct(t,e,r){var n=new ut;return n.restart(t,e,r),n}function lt(){et=(tt=nt.now())+rt,J=K=0;try{!function(){it(),++J;for(var t,e=L;e;)(t=et-e._time)>=0&&e._call.call(void 0,t),e=e._next;--J}()}finally{J=0,function(){for(var t,e,r=L,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:L=e);Z=t,ft(n)}(),et=0}}function st(){var t=nt.now(),e=t-tt;e>1e3&&(rt-=e,tt=t)}function ft(t){J||(K&&(K=clearTimeout(K)),t-et>24?(t<1/0&&(K=setTimeout(lt,t-nt.now()-rt)),Q&&(Q=clearInterval(Q))):(Q||(tt=nt.now(),Q=setInterval(st,1e3)),J=1,ot(lt)))}function pt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}ut.prototype=ct.prototype={constructor:ut,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?it():+r)+(null==e?0:+e),this._next||Z===this||(Z?Z._next=this:L=this,Z=this),this._call=t,this._time=r,ft()},stop:function(){this._call&&(this._call=null,this._time=1/0,ft())}};var yt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=!0,this.subscribers=[],this.loop=this.loop.bind(this),this.timer=null,this.activeSubscriptions=0}var e,r;return e=t,(r=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"loop",value:function(){this.subscribers.forEach((function(t){t.callback(it()-t.startTime,t.duration)}))}},{key:"start",value:function(){this.timer||(this.timer=ct(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,e){e=this.shouldAnimate?e:0;var r=this.subscribers.push({startTime:it(),callback:t,duration:e});return this.activeSubscriptions++,this.start(),r}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&pt(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),ht=l().createContext({transitionTimer:new yt,animationTimer:new yt});ht.displayName="TimerContext";const vt=ht;function dt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return bt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}n(8423),n(1651);var gt={startsWith:["data-","aria-"],exactMatch:[]},wt=function(t,e){return"function"==typeof t?t(e):t},Ot=function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mt(Object(r),!0).forEach((function(e){xt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return Object.fromEntries(Object.entries(e).filter((function(t){return function(t){return!(!function(t){var e=!1;return gt.startsWith.forEach((function(r){new RegExp("\\b(".concat(r,")(\\w|-)+"),"g").test(t)&&(e=!0)})),e}(t)&&!function(t){return gt.exactMatch.includes(t)}(t))}(dt(t,1)[0])})).map((function(e){var r=dt(e,2),n=r[0],o=r[1];return[n,wt(o,t)]})))};function jt(){return jt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jt.apply(this,arguments)}function Mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Pt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mt(Object(r),!0).forEach((function(e){At(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Dt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _t(t,e){return _t=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_t(t,e)}function Et(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function St(t){return St=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},St(t)}function At(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Rt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_t(t,e)}(c,t);var r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=St(o);if(a){var r=St(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return Et(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this,t)).containerId=M()(t)&&void 0!==t.containerId?t.containerId:D()("victory-container-"),e.savePortalRef=function(t){return e.portalRef=t,t},e.portalUpdate=function(t,r){return e.portalRef.portalUpdate(t,r)},e.portalRegister=function(){return e.portalRef.portalRegister()},e.portalDeregister=function(t){return e.portalRef.portalDeregister(t)},e.saveContainerRef=t&&O()(t.containerRef)?t.containerRef:function(t){return e.containerRef=t,t},e.shouldHandleWheel=t&&t.events&&t.events.onWheel,e.shouldHandleWheel&&(e.handleWheel=function(t){return t.preventDefault()}),e}return r=c,(n=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(t){return"".concat(this.containerId,"-").concat(t)}},{key:"getChildren",value:function(t){return t.children}},{key:"getOUIAProps",value:function(t){var e=t.ouiaId,r=t.ouiaSafe,n=t.ouiaType;return Pt(Pt(Pt({},e&&{"data-ouia-component-id":e}),n&&{"data-ouia-component-type":n}),void 0!==r&&{"data-ouia-safe":r})}},{key:"renderContainer",value:function(t,r,n){var o=t.title,a=t.desc,u=t.portalComponent,c=t.className,s=t.width,f=t.height,p=t.portalZIndex,y=t.responsive,h=this.getChildren(t),v=y?{width:"100%",height:"100%"}:{width:s,height:f},d=i()({pointerEvents:"none",touchAction:"none",position:"relative"},v),b=i()({zIndex:p,position:"absolute",top:0,left:0},v),m=i()({pointerEvents:"all"},v),x=i()({overflow:"visible"},v),g={width:s,height:f,viewBox:r.viewBox,preserveAspectRatio:r.preserveAspectRatio,style:x};return l().createElement(Y.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},l().createElement("div",jt({style:e()({},n,d),className:c,ref:this.saveContainerRef},this.getOUIAProps(t)),l().createElement("svg",jt({},r,{style:m}),o?l().createElement("title",{id:this.getIdForElement("title")},o):null,a?l().createElement("desc",{id:this.getIdForElement("desc")},a):null,h),l().createElement("div",{style:b},l().cloneElement(u,Pt(Pt({},g),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,e=t.width,r=t.height,n=t.responsive,o=t.events,a=t.title,u=t.desc,c=t.tabIndex,l=t.preserveAspectRatio,s=t.role,f=n?this.props.style:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}(this.props.style,["height","width"]),p=Ot(this.props),y=i()(Pt({width:e,height:r,tabIndex:c,role:s,"aria-labelledby":[a&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[u&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:n?"0 0 ".concat(e," ").concat(r):void 0,preserveAspectRatio:n?l:void 0},p),o);return this.renderContainer(this.props,y,f)}}])&&Dt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(l().Component);At(Rt,"displayName","VictoryContainer"),At(Rt,"role","container"),At(Rt,"propTypes",{"aria-describedby":u().string,"aria-labelledby":u().string,children:u().oneOfType([u().arrayOf(u().node),u().node]),className:u().string,containerId:u().oneOfType([u().number,u().string]),containerRef:u().func,desc:u().string,events:u().object,height:I,name:u().string,origin:u().shape({x:I,y:I}),ouiaId:u().oneOfType([u().number,u().string]),ouiaSafe:u().bool,ouiaType:u().string,polar:u().bool,portalComponent:u().element,portalZIndex:z,preserveAspectRatio:u().string,responsive:u().bool,role:u().string,style:u().object,tabIndex:u().number,theme:u().object,title:u().string,width:I}),At(Rt,"defaultProps",{className:"VictoryContainer",portalComponent:l().createElement($,null),portalZIndex:99,responsive:!0,role:"img"}),At(Rt,"contextType",vt);var Bt=["desc"];function Tt(){return Tt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Tt.apply(this,arguments)}const kt=function(t){var e=t.desc,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Bt);return e?l().createElement("rect",Tt({vectorEffect:"non-scaling-stroke"},r),l().createElement("desc",null,e)):l().createElement("rect",Tt({vectorEffect:"non-scaling-stroke"},r))};var Ct=n(3792),It=n.n(Ct),zt=n(3259),Gt=n.n(zt),Ut=n(8266),Nt=n.n(Ut);function Wt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wt(Object(r),!0).forEach((function(e){Ft(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ft(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ht(t){return function(t){if(Array.isArray(t))return qt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return qt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var $t={getDimension:function(t){var e=t.horizontal,r=t.brushDimension;return e&&r?"x"===r?"y":"x":r},withinBounds:function(t,e,r){var n=It()(e,Number),o=n.x1,i=n.x2,a=n.y1,u=n.y2,c=It()(t,Number),l=c.x,s=c.y;return l+(r=r?r/2:0)>=Math.min(o,i)&&l-r<=Math.max(o,i)&&s+r>=Math.min(a,u)&&s-r<=Math.max(a,u)},getDomainBox:function(t,r,n){var o=this.getDimension(t);r=e()({},r,t.domain),n=e()({},n,r);var i=m(t,r),a=m(t,n);return{x1:"y"!==o?Math.min.apply(Math,Ht(a.x)):Math.min.apply(Math,Ht(i.x)),x2:"y"!==o?Math.max.apply(Math,Ht(a.x)):Math.max.apply(Math,Ht(i.x)),y1:"x"!==o?Math.min.apply(Math,Ht(a.y)):Math.min.apply(Math,Ht(i.y)),y2:"x"!==o?Math.max.apply(Math,Ht(a.y)):Math.max.apply(Math,Ht(i.y))}},getHandles:function(t,e){var r=this.getDimension(t),n=e.x1,o=e.x2,i=e.y1,a=e.y2,u=Math.min(n,o),c=Math.max(n,o),l=Math.min(i,a),s=Math.max(i,a),f=t.handleWidth/2;return{left:"y"!==r&&{x1:u-f,x2:u+f,y1:i,y2:a},right:"y"!==r&&{x1:c-f,x2:c+f,y1:i,y2:a},top:"x"!==r&&{x1:n,x2:o,y1:l-f,y2:l+f},bottom:"x"!==r&&{x1:n,x2:o,y1:s-f,y2:s+f}}},getActiveHandles:function(t,e,r){var n=this,o=this.getHandles(e,r),i=["top","bottom","left","right"].reduce((function(e,r){return o[r]&&n.withinBounds(t,o[r])?e.concat(r):e}),[]);return i.length&&i},getResizeMutation:function(t,e){var r=t.x1,n=t.y1,o=t.x2,a=t.y2,u={left:{x1:Math.max(r,o),x2:Math.min(r,o),y1:n,y2:a},right:{x1:Math.min(r,o),x2:Math.max(r,o),y1:n,y2:a},top:{y1:Math.max(n,a),y2:Math.min(n,a),x1:r,x2:o},bottom:{y1:Math.min(n,a),y2:Math.max(n,a),x1:r,x2:o}};return e.reduce((function(t,e){return i()(t,u[e])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(t,e,r){var n=t.domain,o=t.fullDomain,i=t.scale,a=t.horizontal,u=t.allowResize||t.defaultBrushArea?t.defaultBrushArea:"move";if("none"===u)return this.getMinimumDomain();if("disable"===u)return e;if("move"===u){var c=this.getDomainBox(t,o,e),l=t.parentSVG||d(r),s=this.panBox(Vt(Vt(Vt({},t),c),{},{brushDomain:e,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),b(r,l)),f=t.fullDomainBox||this.getDomainBox(t,o);return g(Vt(Vt({},this.constrainBox(s,f)),{},{scale:i,horizontal:a}))}return n},getSelectionMutation:function(t,e,r){var n=t.x,o=t.y,i=e.x1,a=e.x2,u=e.y1,c=e.y2;return{x1:"y"!==r?n:i,y1:"x"!==r?o:u,x2:"y"!==r?n:a,y2:"x"!==r?o:c}},panBox:function(t,r){var n=t.domain,o=t.startX,i=t.startY,a=this.getDimension(t),u=e()({},t.brushDomain,n),c=e()({},t.fullDomain,n),l=t.x1?t:this.getDomainBox(t,c,u),s=l.x1,f=l.x2,p=l.y1,y=l.y2,h=r.x,v=r.y,d=o?o-h:0,b=i?i-v:0;return{x1:"y"!==a?Math.min(s,f)-d:Math.min(s,f),x2:"y"!==a?Math.max(s,f)-d:Math.max(s,f),y1:"x"!==a?Math.min(p,y)-b:Math.min(p,y),y2:"x"!==a?Math.max(p,y)-b:Math.max(p,y)}},constrainBox:function(t,e){var r=It()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,n),y1:t.y2>a?a-Math.abs(t.y2-t.y1):Math.max(t.y1,o),x2:t.x1<n?n+Math.abs(t.x2-t.x1):Math.min(t.x2,i),y2:t.y1<o?o+Math.abs(t.y2-t.y1):Math.min(t.y2,a)}},constrainPoint:function(t,e){var r=It()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x:Math.min(Math.max(t.x,n),i),y:Math.min(Math.max(t.y,o),a)}},hasMoved:function(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.mouseMoveThreshold,a=this.getDimension(t),u=Math.abs(e-r)>=i,c=Math.abs(n-o)>=i;switch(a){case"x":return u;case"y":return c;default:return u||c}},onMouseDown:function(t,r){var n=this;t.preventDefault();var o=r.handleWidth,i=r.cachedBrushDomain,a=r.domain,u=r.allowResize,c=r.allowDrag,l=r.allowDraw,s=this.getDimension(r),f=u||r.defaultBrushArea?r.defaultBrushArea:"move";if(!u&&!c)return{};var p=r.fullDomainBox||this.getDomainBox(r,a),y=r.parentSVG||d(t),h=b(t,y),v=h.x,m=h.y;if(!this.withinBounds({x:v,y:m},p,o))return{};var x=e()({},r.brushDomain,a),g=Nt()(x,i)?r.currentDomain||x||a:x||a,w=this.getDomainBox(r,a,g),O=u&&this.getActiveHandles({x:v,y:m},r,w);return O?[{target:"parent",mutation:function(){return Vt({isSelecting:!0,domainBox:w,fullDomainBox:p,cachedBrushDomain:x,currentDomain:g,parentSVG:y},n.getResizeMutation(w,O))}}]:this.withinBounds({x:v,y:m},w)&&!Nt()(a,g)?[{target:"parent",mutation:function(){return Vt({isPanning:c,startX:v,startY:m,domainBox:w,fullDomainBox:p,currentDomain:g,cachedBrushDomain:x,parentSVG:y},w)}}]:l?[{target:"parent",mutation:function(){return Vt({isSelecting:u||"move"===f,domainBox:w,fullDomainBox:p,parentSVG:y,cachedBrushDomain:x,cachedCurrentDomain:g,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:v,y:m},w,s))}}]:{}},onGlobalMouseMove:function(t,r){var n=r.scale,o=r.isPanning,i=r.isSelecting,a=r.fullDomainBox,u=r.onBrushDomainChange,c=r.allowResize,l=r.allowDrag,s=r.horizontal,f=r.mouseMoveThreshold,p=r.parentSVG,y=this.getDimension(r),h=b(t,p),v=h.x,d=h.y;if(!c&&!l||f>0&&!this.hasMoved(Vt(Vt({},r),{},{x2:v,y2:d})))return{};if(l&&o){var m=r.startX,x=r.startY,w=this.panBox(r,{x:v,y:d}),j=this.constrainBox(w,a),M=g(Vt(Vt({},j),{},{scale:n,horizontal:s})),P=Vt({currentDomain:M,parentSVG:p,startX:w.x2>=a.x2||w.x1<=a.x1?m:v,startY:w.y2>=a.y2||w.y1<=a.y1?x:d},j);return O()(u)&&u(M,e()({},P,r)),[{target:"parent",mutation:function(){return P}}]}if(c&&i){var D=this.constrainPoint({x:"y"!==y?v:r.x2,y:"x"!==y?d:r.y2},a),_=D.x,E=D.y,S=g({x2:_,y2:E,x1:r.x1,y1:r.y1,scale:n,horizontal:s}),A={x2:_,y2:E,currentDomain:S,parentSVG:p};return O()(u)&&u(S,e()({},A,r)),[{target:"parent",mutation:function(){return A}}]}return{}},onGlobalMouseUp:function(t,r){if(!r.isPanning&&!r.isSelecting)return{};var n=r.x1,o=r.y1,i=r.x2,a=r.y2,u=r.isPanning,c=r.isSelecting,l=r.onBrushDomainChange,s=r.onBrushDomainChangeEnd,f=r.onBrushCleared,p=r.currentDomain,y=r.allowResize,h=r.allowDrag,v=y||r.defaultBrushArea?r.defaultBrushArea:"move",d={isPanning:!1,isSelecting:!1};if(!y&&(void 0===v||"none"===v)||n!==i&&o!==a)(h&&u||y&&c)&&O()(s)&&s(p,e()({},d,r));else{var b=r.cachedCurrentDomain||p,m=this.getDefaultBrushArea(r,b,t);d.currentDomain=m,O()(l)&&l(m,e()({},d,r)),O()(s)&&s(m,e()({},d,r)),O()(f)&&f(m,e()({},d,r))}return[{target:"parent",mutation:function(){return d}}]}};const Xt=Vt(Vt({},$t),{},{onMouseDown:$t.onMouseDown.bind($t),onGlobalMouseUp:$t.onGlobalMouseUp.bind($t),onGlobalMouseMove:Gt()($t.onGlobalMouseMove.bind($t),16,{leading:!0,trailing:!1})});function Yt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Lt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yt(Object(r),!0).forEach((function(e){ne(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zt(t){return function(t){if(Array.isArray(t))return Jt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Jt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Kt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function te(t,e){return te=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},te(t,e)}function ee(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function re(t){return re=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},re(t)}function ne(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var oe=function(t){var r;return r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&te(t,e)}(c,t);var r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=re(o);if(a){var r=re(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return ee(this,t)});function c(){return Kt(this,c),u.apply(this,arguments)}return r=c,(n=[{key:"getSelectBox",value:function(t,r){var n=r.x,o=r.y,i=t.brushStyle,a=t.brushComponent,u=t.name,c=a.props&&a.props.style,s=t.allowDrag||t.allowResize?"move":"auto";return n[0]!==n[1]&&o[0]!==o[1]?l().cloneElement(a,{key:"".concat(u,"-brush"),width:Math.abs(n[1]-n[0])||1,height:Math.abs(o[1]-o[0])||1,x:Math.min(n[0],n[1]),y:Math.min(o[0],o[1]),cursor:s,style:e()({},c,i)}):null}},{key:"getCursorPointers",value:function(t){var e={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(e.xProps="move",e.yProps="move"):t.allowResize||t.allowDrag||(e.xProps="auto",e.yProps="auto"),e}},{key:"getHandles",value:function(t,r){var n=t.handleWidth,o=t.handleStyle,a=t.handleComponent,u=t.name,c=Xt.getDomainBox(t,r),s=c.x1,f=c.x2,p=c.y1,y=c.y2,h=Xt.getHandles(t,c),v=h.top,d=h.bottom,b=h.left,m=h.right,x=Math.abs(f-s)||1,g=Math.abs(y-p)||1,w=a.props&&a.props.style||{},O=e()({},w,o),j=this.getCursorPointers(t),M={style:O,width:x,height:n,cursor:j.yProps},P={style:O,width:n,height:g,cursor:j.xProps},D={top:v&&i()({x:v.x1,y:v.y1},M),bottom:d&&i()({x:d.x1,y:d.y1},M),left:b&&i()({y:b.y1,x:b.x1},P),right:m&&i()({y:m.y1,x:m.x1},P)},_=["top","bottom","left","right"].reduce((function(t,e){return D[e]?t.concat(l().cloneElement(a,i()({key:"".concat(u,"-handle-").concat(e)},D[e]))):t}),[]);return _.length?_:null}},{key:"getRect",value:function(t){var r=t.currentDomain,n=t.cachedBrushDomain,o=e()({},t.brushDomain,t.domain),i=Nt()(o,n)?e()({},r,o):o,a=m(t,i),u=this.getSelectBox(t,a);return u?[u,this.getHandles(t,i)]:[]}},{key:"getChildren",value:function(t){return[].concat(Zt(l().Children.toArray(t.children)),Zt(this.getRect(t)))}}])&&Qt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(t),ne(r,"displayName","VictoryBrushContainer"),ne(r,"propTypes",Lt(Lt({},Rt.propTypes),{},{allowDrag:u().bool,allowDraw:u().bool,allowResize:u().bool,brushComponent:u().element,brushDimension:u().oneOf(["x","y"]),brushDomain:u().shape({x:u().array,y:u().array}),brushStyle:u().object,defaultBrushArea:u().oneOf(["all","disable","none","move"]),disable:u().bool,handleComponent:u().element,handleStyle:u().object,handleWidth:u().number,onBrushCleared:u().func,onBrushDomainChange:u().func,onBrushDomainChangeEnd:u().func})),ne(r,"defaultProps",Lt(Lt({},Rt.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:l().createElement(kt,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:l().createElement(kt,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0})),ne(r,"defaultEvents",(function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,r){return t.disable?{}:Xt.onMouseDown(e,r)},onTouchStart:function(e,r){return t.disable?{}:Xt.onMouseDown(e,r)},onGlobalMouseMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:Xt.onGlobalMouseMove(e,r)},onGlobalTouchMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:Xt.onGlobalMouseMove(e,r)},onGlobalMouseUp:function(e,r){return t.disable?{}:Xt.onGlobalMouseUp(e,r)},onGlobalTouchEnd:function(e,r){return t.disable?{}:Xt.onGlobalMouseUp(e,r)},onGlobalTouchCancel:function(e,r){return t.disable?{}:Xt.onGlobalMouseUp(e,r)}}}]})),r};const ie=oe(Rt)})(),o})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryBrushContainer=e(require("react")):t.VictoryBrushContainer=e(t.React)}(self,(t=>(()=>{var e={1124:(t,e,r)=>{var n=r(7236);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return n(t)?t:[t]}},4281:(t,e,r)=>{var n=r(7168),o=r(6582),i=r(3867),a=r(9557),u=r(2726);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},4690:(t,e,r)=>{var n=r(441).Symbol;t.exports=n},5198:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},6460:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},3848:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},4793:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},7596:(t,e,r)=>{var n=r(999),o=r(6530),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},3833:(t,e,r)=>{var n=r(6530);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},999:(t,e,r)=>{var n=r(9346);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},528:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},314:(t,e,r)=>{var n=r(3848),o=r(1754);t.exports=function t(e,r,i,a,u){var c=-1,s=e.length;for(i||(i=o),u||(u=[]);++c<s;){var l=e[c];r>0&&i(l)?r>1?t(l,r-1,i,a,u):n(u,l):a||(u[u.length]=l)}return u}},641:(t,e,r)=>{var n=r(2630)();t.exports=n},5897:(t,e,r)=>{var n=r(641),o=r(2635);t.exports=function(t,e){return t&&n(t,e,o)}},166:(t,e,r)=>{var n=r(8422),o=r(8780);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},4318:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},7650:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},1071:(t,e,r)=>{var n=r(7229),o=r(3387);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},7229:(t,e,r)=>{var n=r(4281),o=r(2503),i=r(6001),a=r(8784),u=r(6686),c=r(7236),s=r(8752),l=r(4812),f="[object Arguments]",p="[object Array]",y="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,d,b){var m=c(t),x=c(e),g=m?p:u(t),w=x?p:u(e),O=(g=g==f?y:g)==y,j=(w=w==f?y:w)==y,M=g==w;if(M&&s(t)){if(!s(e))return!1;m=!0,O=!1}if(M&&!O)return b||(b=new n),m||l(t)?o(t,e,r,v,d,b):i(t,e,g,r,v,d,b);if(!(1&r)){var P=O&&h.call(t,"__wrapped__"),D=j&&h.call(e,"__wrapped__");if(P||D){var _=P?t.value():t,E=D?e.value():e;return b||(b=new n),d(_,E,r,v,b)}}return!!M&&(b||(b=new n),a(t,e,r,v,d,b))}},9157:(t,e,r)=>{var n=r(4281),o=r(1071);t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var s=r[a];if(c&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++a<u;){var l=(s=r[a])[0],f=t[l],p=s[1];if(c&&s[2]){if(void 0===f&&!(l in t))return!1}else{var y=new n;if(i)var h=i(f,p,l,t,e,y);if(!(void 0===h?o(p,f,3,i,y):h))return!1}}return!0}},1131:(t,e,r)=>{var n=r(4318),o=r(3387);t.exports=function(t){return o(t)&&"[object RegExp]"==n(t)}},8904:(t,e,r)=>{var n=r(8418),o=r(4555),i=r(5362),a=r(7236),u=r(1651);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},8418:(t,e,r)=>{var n=r(9157),o=r(9182),i=r(7375);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},4555:(t,e,r)=>{var n=r(1071),o=r(3795),i=r(3646),a=r(3266),u=r(1457),c=r(7375),s=r(8780);t.exports=function(t,e){return a(t)&&u(e)?c(s(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},7410:(t,e,r)=>{var n=r(6621),o=r(3646);t.exports=function(t,e){return n(t,e,(function(e,r){return o(t,r)}))}},6621:(t,e,r)=>{var n=r(166),o=r(8116),i=r(8422);t.exports=function(t,e,r){for(var a=-1,u=e.length,c={};++a<u;){var s=e[a],l=n(t,s);r(l,s)&&o(c,i(s,t),l)}return c}},1712:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},4815:(t,e,r)=>{var n=r(166);t.exports=function(t){return function(e){return n(e,t)}}},4569:(t,e,r)=>{var n=r(5362),o=r(4468),i=r(8756);t.exports=function(t,e){return i(o(t,e,n),t+"")}},8116:(t,e,r)=>{var n=r(7596),o=r(8422),i=r(4363),a=r(5973),u=r(8780);t.exports=function(t,e,r,c){if(!a(t))return t;for(var s=-1,l=(e=o(e,t)).length,f=l-1,p=t;null!=p&&++s<l;){var y=u(e[s]),h=r;if("__proto__"===y||"constructor"===y||"prototype"===y)return t;if(s!=f){var v=p[y];void 0===(h=c?c(v,y,p):void 0)&&(h=a(v)?v:i(e[s+1])?[]:{})}n(p,y,h),p=p[y]}return t}},454:(t,e,r)=>{var n=r(4690),o=r(6460),i=r(7236),a=r(2945),u=n?n.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},6535:t=>{t.exports=function(t){return function(e){return t(e)}}},555:(t,e,r)=>{var n=r(7650);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},8422:(t,e,r)=>{var n=r(7236),o=r(3266),i=r(3879),a=r(1119);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},6051:(t,e,r)=>{var n=r(7596),o=r(999);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var u=-1,c=e.length;++u<c;){var s=e[u],l=i?i(r[s],t[s],s,r,t):void 0;void 0===l&&(l=t[s]),a?o(r,s,l):n(r,s,l)}return r}},2544:(t,e,r)=>{var n=r(4569),o=r(3108);t.exports=function(t){return n((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(r[0],r[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var c=r[n];c&&t(e,c,n,a)}return e}))}},2630:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}},3086:(t,e,r)=>{var n=r(8904),o=r(1580),i=r(2635);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var c=n(r,3);e=i(e),r=function(t){return c(u[t],t,u)}}var s=t(e,r,a);return s>-1?u[c?e[s]:s]:void 0}}},9346:(t,e,r)=>{var n=r(4457),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},2503:(t,e,r)=>{var n=r(1124),o=r(4793),i=r(555);t.exports=function(t,e,r,a,u,c){var s=1&r,l=t.length,f=e.length;if(l!=f&&!(s&&f>l))return!1;var p=c.get(t),y=c.get(e);if(p&&y)return p==e&&y==t;var h=-1,v=!0,d=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++h<l;){var b=t[h],m=e[h];if(a)var x=s?a(m,b,h,e,t,c):a(b,m,h,t,e,c);if(void 0!==x){if(x)continue;v=!1;break}if(d){if(!o(e,(function(t,e){if(!i(d,e)&&(b===t||u(b,t,r,a,c)))return d.push(e)}))){v=!1;break}}else if(b!==m&&!u(b,m,r,a,c)){v=!1;break}}return c.delete(t),c.delete(e),v}},6001:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},8784:(t,e,r)=>{var n=r(6094),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,s=n(t),l=s.length;if(l!=n(e).length&&!c)return!1;for(var f=l;f--;){var p=s[f];if(!(c?p in e:o.call(e,p)))return!1}var y=u.get(t),h=u.get(e);if(y&&h)return y==e&&h==t;var v=!0;u.set(t,e),u.set(e,t);for(var d=c;++f<l;){var b=t[p=s[f]],m=e[p];if(i)var x=c?i(m,b,p,e,t,u):i(b,m,p,t,e,u);if(!(void 0===x?b===m||a(b,m,r,i,u):x)){v=!1;break}d||(d="constructor"==p)}if(v&&!d){var g=t.constructor,w=e.constructor;g==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(v=!1)}return u.delete(t),u.delete(e),v}},3368:(t,e,r)=>{var n=r(5453),o=r(4468),i=r(8756);t.exports=function(t){return i(o(t,void 0,n),t+"")}},4414:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},6094:(t,e,r)=>{var n=r(3717)(Object.keys,Object);t.exports=n},9182:(t,e,r)=>{var n=r(1457),o=r(2635);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},4457:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},6686:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7383:(t,e,r)=>{var n=r(8422),o=r(6981),i=r(7236),a=r(4363),u=r(9216),c=r(8780);t.exports=function(t,e,r){for(var s=-1,l=(e=n(e,t)).length,f=!1;++s<l;){var p=c(e[s]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++s!=l?f:!!(l=null==t?0:t.length)&&u(l)&&a(p,l)&&(i(t)||o(t))}},1754:(t,e,r)=>{var n=r(4690),o=r(6981),i=r(7236),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},4363:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},3108:t=>{t.exports=function(){return!1}},3266:(t,e,r)=>{var n=r(7236),o=r(2945),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},5003:t=>{t.exports=function(){return!1}},1457:(t,e,r)=>{var n=r(5973);t.exports=function(t){return t==t&&!n(t)}},7168:t=>{t.exports=function(){this.__data__=[],this.size=0}},6582:(t,e,r)=>{var n=r(3833),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},3867:(t,e,r)=>{var n=r(3833);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},9557:(t,e,r)=>{var n=r(3833);t.exports=function(t){return n(this.__data__,t)>-1}},2726:(t,e,r)=>{var n=r(3833);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},7375:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},7085:t=>{t.exports=function(t){return t}},1782:(t,e,r)=>{t=r.nmd(t);var n=r(4414),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},3717:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},4468:(t,e,r)=>{var n=r(5198),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=i[a];return s[e]=r(c),n(t,this,s)}}},441:(t,e,r)=>{var n=r(4414),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},8756:t=>{t.exports=function(t){return t}},3879:(t,e,r)=>{var n=r(7085),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},8780:t=>{t.exports=function(t){return t}},6782:(t,e,r)=>{var n=r(7596),o=r(6051),i=r(2544),a=r(1580),u=r(5003),c=r(2635),s=Object.prototype.hasOwnProperty,l=i((function(t,e){if(u(e)||a(e))o(e,c(e),t);else for(var r in e)s.call(e,r)&&n(t,r,e[r])}));t.exports=l},5750:(t,e,r)=>{var n=r(5973),o=r(8148),i=r(8746),a=Math.max,u=Math.min;t.exports=function(t,e,r){var c,s,l,f,p,y,h=0,v=!1,d=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var r=c,n=s;return c=s=void 0,h=e,f=t.apply(n,r)}function x(t){return h=t,p=setTimeout(w,e),v?m(t):f}function g(t){var r=t-y;return void 0===y||r>=e||r<0||d&&t-h>=l}function w(){var t=o();if(g(t))return O(t);p=setTimeout(w,function(t){var r=e-(t-y);return d?u(r,l-(t-h)):r}(t))}function O(t){return p=void 0,b&&c?m(t):(c=s=void 0,f)}function j(){var t=o(),r=g(t);if(c=arguments,s=this,y=t,r){if(void 0===p)return x(y);if(d)return clearTimeout(p),p=setTimeout(w,e),m(y)}return void 0===p&&(p=setTimeout(w,e)),f}return e=i(e)||0,n(r)&&(v=!!r.leading,l=(d="maxWait"in r)?a(i(r.maxWait)||0,e):l,b="trailing"in r?!!r.trailing:b),j.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=y=s=p=void 0},j.flush=function(){return void 0===p?f:O(o())},j}},7901:(t,e,r)=>{var n=r(4569),o=r(6530),i=r(3108),a=r(5850),u=Object.prototype,c=u.hasOwnProperty,s=n((function(t,e){t=Object(t);var r=-1,n=e.length,s=n>2?e[2]:void 0;for(s&&i(e[0],e[1],s)&&(n=1);++r<n;)for(var l=e[r],f=a(l),p=-1,y=f.length;++p<y;){var h=f[p],v=t[h];(void 0===v||o(v,u[h])&&!c.call(t,h))&&(t[h]=l[h])}return t}));t.exports=s},6530:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},6786:(t,e,r)=>{var n=r(3086)(r(8611));t.exports=n},8611:(t,e,r)=>{var n=r(528),o=r(8904),i=r(5225),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return-1;var c=null==r?0:i(r);return c<0&&(c=a(u+c,0)),n(t,o(e,3),c)}},5453:(t,e,r)=>{var n=r(314);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},3795:(t,e,r)=>{var n=r(166);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},3646:(t,e,r)=>{var n=r(7),o=r(7383);t.exports=function(t,e){return null!=t&&o(t,e,n)}},5362:t=>{t.exports=function(t){return t}},6981:t=>{t.exports=function(){return!1}},7236:t=>{var e=Array.isArray;t.exports=e},1580:(t,e,r)=>{var n=r(3839),o=r(9216);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},8752:t=>{t.exports=function(){return!1}},3839:(t,e,r)=>{var n=r(4318),o=r(5973);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},9216:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5973:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3387:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},2654:(t,e,r)=>{var n=r(1131),o=r(6535),i=r(1782),a=i&&i.isRegExp,u=a?o(a):n;t.exports=u},2945:t=>{t.exports=function(){return!1}},4812:t=>{t.exports=function(){return!1}},2635:(t,e,r)=>{var n=r(3717)(Object.keys,Object);t.exports=n},5850:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},3792:(t,e,r)=>{var n=r(999),o=r(5897),i=r(8904);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},8148:(t,e,r)=>{var n=r(441);t.exports=function(){return n.Date.now()}},8423:(t,e,r)=>{var n=r(7410),o=r(3368)((function(t,e){return null==t?{}:n(t,e)}));t.exports=o},1651:(t,e,r)=>{var n=r(1712),o=r(4815),i=r(3266),a=r(8780);t.exports=function(t){return i(t)?n(a(t)):o(t)}},3259:(t,e,r)=>{var n=r(5750),o=r(5973);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},992:(t,e,r)=>{var n=r(8746);t.exports=function(t){return t?Infinity===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5225:(t,e,r)=>{var n=r(992);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},8746:t=>{t.exports=function(t){return t}},1119:(t,e,r)=>{var n=r(454);t.exports=function(t){return null==t?"":n(t)}},556:(t,e,r)=>{var n=r(1119),o=0;t.exports=function(t){var e=++o;return n(t)+e}},459:(t,e,r)=>{"use strict";var n=r(5704);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},216:(t,e,r)=>{t.exports=r(459)()},5704:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8266:t=>{var e="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var u,c,s,l;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(r&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;for(l=t.entries();!(c=l.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(s=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,s[c]))return!1;if(e&&t instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==s[c]&&"__v"!==s[c]&&"__o"!==s[c]||!t.$$typeof)&&!i(t[s[c]],a[s[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:e=>{"use strict";e.exports=t}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={id:t,loaded:!1,exports:{}};return e[t](i,i.exports,n),i.loaded=!0,i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var o={};return(()=>{"use strict";n.r(o),n.d(o,{BrushHelpers:()=>Ht,VictoryBrushContainer:()=>re,brushContainerMixin:()=>ee});var t=n(7901),e=n.n(t),r=n(6782),i=n.n(r),a=n(216),u=n.n(a),c=n(9787),s=n.n(c);function l(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function y(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return p(o)?new Date(Math.max.apply(Math,l(o))):Math.max.apply(Math,l(o))}function h(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return p(o)?new Date(Math.min.apply(Math,l(o))):Math.min.apply(Math,l(o))}function v(t,e,r){var n=e.a,o=e.d,i=e.e,a=e.f;return"y"===r?o*t+a:n*t+i}function d(t){if(!t.nativeEvent||void 0===t.nativeEvent.identifier){var e=function(t){return"svg"===t.nodeName?t:t.parentNode?e(t.parentNode):t};return e(t.target)}}function b(t,e){if(t.nativeEvent&&void 0!==t.nativeEvent.identifier)return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};t=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;var r=function(t){return t.getScreenCTM().inverse()}(e=e||d(t));return{x:v(t.clientX,r,"x"),y:v(t.clientY,r,"y")}}function m(t,e){var r=t.scale,n=t.horizontal;return e=e||{x:r.x.domain(),y:r.y.domain()},{x:n?[r.y(e.y[0]),r.y(e.y[1])]:[r.x(e.x[0]),r.x(e.x[1])],y:n?[r.x(e.x[0]),r.x(e.x[1])]:[r.y(e.y[0]),r.y(e.y[1])]}}function x(t,e,r,n){var o=t.polar,i=t.horizontal;if(o){var a=t.origin||{x:0,y:0},u=r-a.x,c=n-a.y,s=Math.abs(u*Math.sqrt(1+Math.pow(-c/u,2))),l=(-Math.atan2(c,u)+2*Math.PI)%(2*Math.PI);return{x:e.x.invert(l),y:e.y.invert(s)}}return{x:i?e.x.invert(n):e.x.invert(r),y:i?e.y.invert(r):e.y.invert(n)}}function g(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.scale,a=x(t,i,e,n),u=x(t,i,r,o),c=function(t,e){return[h([t,e]),y([t,e])]};return{x:c(a.x,u.x),y:c(a.y,u.y)}}var w=n(3839),O=n.n(w),j=n(5973),M=n.n(j),P=n(556),D=n.n(P),_=n(2654),E=n.n(_),S=n(6786),A=n.n(S),R=function(t){var e=function(e,r,n,o){var i=r[n];if(null==i)return e?new Error("Required `".concat(n,"` was not specified in `").concat(o,"`.")):null;for(var a=arguments.length,u=new Array(a>4?a-4:0),c=4;c<a;c++)u[c-4]=arguments[c];return t.apply(void 0,[r,n,o].concat(u))},r=e.bind(null,!1);return r.isRequired=e.bind(null,!0),r},B=function(){return null},T=function(){},C=function(t){return void 0===t?T:null===t?B:t.constructor},k=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)},I=R((function(t,e,r){var n=t[e];if("number"!=typeof n||n<0)return new Error("`".concat(e,"` in `").concat(r,"` must be a non-negative number."))})),z=R((function(t,e,r){var n=t[e];if("number"!=typeof n||n%1!=0)return new Error("`".concat(e,"` in `").concat(r,"` must be an integer."))})),G=(R((function(t,e,r){var n=t[e];if("number"!=typeof n||n<=0)return new Error("`".concat(e,"` in `").concat(r,"` must be a number greater than zero."))})),R((function(t,e,r){var n=t[e];if(!Array.isArray(n)||2!==n.length||n[1]===n[0])return new Error("`".concat(e,"` in `").concat(r,"` must be an array of two unique numeric values."))})),R((function(t,e,r){var n;if(n=t[e],!(O()(n)?O()(n.copy)&&O()(n.domain)&&O()(n.range):"string"==typeof n&&-1!==["linear","time","log","sqrt"].indexOf(n)))return new Error("`".concat(e,"` in `").concat(r,"` must be a d3 scale."))})),R((function(t,e,r){var n=t[e];if(!Array.isArray(n))return new Error("`".concat(e,"` in `").concat(r,"` must be an array."));if(!(n.length<2)){var o=C(n[0]),i=A()(n,(function(t){return o!==C(t)}));if(i){var a=k(n[0]),u=k(i);return new Error("Expected `".concat(e,"` in `").concat(r,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(u,"`."))}}})),R((function(t,e){if(t[e]&&Array.isArray(t[e])&&t[e].length!==t.data.length)return new Error("Length of data and ".concat(e," arrays must match."))})),R((function(t,e,r){if(t[e]&&!E()(t[e]))return new Error("`".concat(e,"` in `").concat(r,"` must be a regular expression."))})),n(2635)),U=n.n(G);function N(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function W(t,e){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},W(t,e)}function V(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function F(t){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},F(t)}var H=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&W(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=F(n);if(o){var r=F(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return V(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).map=void 0,e.index=void 0,e.portalRegister=function(){return++e.index},e.portalUpdate=function(t,r){e.map[t]=r,e.forceUpdate()},e.portalDeregister=function(t){delete e.map[t],e.forceUpdate()},e.map={},e.index=1,e}return e=a,(r=[{key:"getChildren",value:function(){var t=this;return U()(this.map).map((function(e){var r=t.map[e];return r?s().cloneElement(r,{key:e}):r}))}},{key:"render",value:function(){return s().createElement("svg",this.props,this.getChildren())}}])&&N(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(s().Component);H.displayName="Portal",H.propTypes={className:u().string,height:I,style:u().object,viewBox:u().string,width:I};var q=s().createContext({});q.displayName="PortalContext";var $,X,Y=0,L=0,Z=0,J=0,K=0,Q=0,tt="object"==typeof performance&&performance.now?performance:Date,et="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function rt(){return K||(et(nt),K=tt.now()+Q)}function nt(){K=0}function ot(){this._call=this._time=this._next=null}function it(t,e,r){var n=new ot;return n.restart(t,e,r),n}function at(){K=(J=tt.now())+Q,Y=L=0;try{!function(){rt(),++Y;for(var t,e=$;e;)(t=K-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Y}()}finally{Y=0,function(){for(var t,e,r=$,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:$=e);X=t,ct(n)}(),K=0}}function ut(){var t=tt.now(),e=t-J;e>1e3&&(Q-=e,J=t)}function ct(t){Y||(L&&(L=clearTimeout(L)),t-K>24?(t<1/0&&(L=setTimeout(at,t-tt.now()-Q)),Z&&(Z=clearInterval(Z))):(Z||(J=tt.now(),Z=setInterval(ut,1e3)),Y=1,et(at)))}function st(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}ot.prototype=it.prototype={constructor:ot,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?rt():+r)+(null==e?0:+e),this._next||X===this||(X?X._next=this:$=this,X=this),this._call=t,this._time=r,ct()},stop:function(){this._call&&(this._call=null,this._time=1/0,ct())}};var lt=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){e.subscribers.forEach((function(t){t.callback(rt()-t.startTime,t.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}var e,r;return e=t,(r=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=it(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,e){e=this.shouldAnimate?e:0;var r=this.subscribers.push({startTime:rt(),callback:t,duration:e});return this.activeSubscriptions++,this.start(),r}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&st(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),ft=s().createContext({transitionTimer:new lt,animationTimer:new lt});ft.displayName="TimerContext";const pt=ft;function yt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ht(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ht(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function vt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function dt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}n(8423),n(1651);var bt={startsWith:["data-","aria-"],exactMatch:[]},mt=function(t,e){return"function"==typeof t?t(e):t},xt=function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vt(Object(r),!0).forEach((function(e){dt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return Object.fromEntries(Object.entries(e).filter((function(t){return function(t){return!(!function(t){var e=!1;return bt.startsWith.forEach((function(r){new RegExp("\\b(".concat(r,")(\\w|-)+"),"g").test(t)&&(e=!0)})),e}(t)&&!function(t){return bt.exactMatch.includes(t)}(t))}(yt(t,1)[0])})).map((function(e){var r=yt(e,2),n=r[0],o=r[1];return[n,mt(o,t)]})))};function gt(){return gt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gt.apply(this,arguments)}function wt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ot(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wt(Object(r),!0).forEach((function(e){jt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Pt(t,e){return Pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pt(t,e)}function Dt(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _t(t){return _t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_t(t)}var Et=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pt(t,e)}(c,t);var r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=_t(o);if(a){var r=_t(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return Dt(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this,t)).containerId=void 0,e.portalRef=void 0,e.containerRef=void 0,e.shouldHandleWheel=void 0,e.savePortalRef=function(t){return e.portalRef=t,t},e.portalUpdate=function(t,r){return e.portalRef.portalUpdate(t,r)},e.portalRegister=function(){return e.portalRef.portalRegister()},e.portalDeregister=function(t){return e.portalRef.portalDeregister(t)},e.saveContainerRef=function(t){return O()(e.props.containerRef)&&e.props.containerRef(t),e.containerRef=t,t},e.handleWheel=function(t){return t.preventDefault()},e.containerId=M()(t)&&void 0!==t.containerId?t.containerId:D()("victory-container-"),e.shouldHandleWheel=!!(t&&t.events&&t.events.onWheel),e}return r=c,(n=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(t){return"".concat(this.containerId,"-").concat(t)}},{key:"getChildren",value:function(t){return t.children}},{key:"getOUIAProps",value:function(t){var e=t.ouiaId,r=t.ouiaSafe,n=t.ouiaType;return Ot(Ot(Ot({},e&&{"data-ouia-component-id":e}),n&&{"data-ouia-component-type":n}),void 0!==r&&{"data-ouia-safe":r})}},{key:"renderContainer",value:function(t,r,n){var o=t.title,a=t.desc,u=t.portalComponent,c=t.className,l=t.width,f=t.height,p=t.portalZIndex,y=t.responsive,h=this.getChildren(t),v=y?{width:"100%",height:"100%"}:{width:l,height:f},d=i()({pointerEvents:"none",touchAction:"none",position:"relative"},v),b=i()({zIndex:p,position:"absolute",top:0,left:0},v),m=i()({pointerEvents:"all"},v),x=i()({overflow:"visible"},v),g={width:l,height:f,viewBox:r.viewBox,preserveAspectRatio:r.preserveAspectRatio,style:x};return s().createElement(q.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},s().createElement("div",gt({style:e()({},n,d),className:c,ref:this.saveContainerRef},this.getOUIAProps(t)),s().createElement("svg",gt({},r,{style:m}),o?s().createElement("title",{id:this.getIdForElement("title")},o):null,a?s().createElement("desc",{id:this.getIdForElement("desc")},a):null,h),s().createElement("div",{style:b},s().cloneElement(u,Ot(Ot({},g),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,e=t.width,r=t.height,n=t.responsive,o=t.events,a=t.title,u=t.desc,c=t.tabIndex,s=t.preserveAspectRatio,l=t.role,f=n?this.props.style:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}(this.props.style,["height","width"]),p=xt(this.props),y=i()(Ot({width:e,height:r,tabIndex:c,role:l,"aria-labelledby":[a&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[u&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:n?"0 0 ".concat(e," ").concat(r):void 0,preserveAspectRatio:n?s:void 0},p),o);return this.renderContainer(this.props,y,f)}}])&&Mt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(s().Component);Et.displayName="VictoryContainer",Et.role="container",Et.propTypes={"aria-describedby":u().string,"aria-labelledby":u().string,children:u().oneOfType([u().arrayOf(u().node),u().node]),className:u().string,containerId:u().oneOfType([u().number,u().string]),containerRef:u().func,desc:u().string,events:u().object,height:I,name:u().string,origin:u().shape({x:I,y:I}),ouiaId:u().oneOfType([u().number,u().string]),ouiaSafe:u().bool,ouiaType:u().string,polar:u().bool,portalComponent:u().element,portalZIndex:z,preserveAspectRatio:u().string,responsive:u().bool,role:u().string,style:u().object,tabIndex:u().number,theme:u().object,title:u().string,width:I},Et.defaultProps={className:"VictoryContainer",portalComponent:s().createElement(H,null),portalZIndex:99,responsive:!0,role:"img"},Et.contextType=pt;var St=["desc"];function At(){return At=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},At.apply(this,arguments)}var Rt=function(t){var e=t.desc,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,St);return e?s().createElement("rect",At({vectorEffect:"non-scaling-stroke"},r),s().createElement("desc",null,e)):s().createElement("rect",At({vectorEffect:"non-scaling-stroke"},r))},Bt=n(3792),Tt=n.n(Bt),Ct=n(3259),kt=n.n(Ct),It=n(8266),zt=n.n(It);function Gt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ut(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gt(Object(r),!0).forEach((function(e){Nt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Nt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wt(t){return function(t){if(Array.isArray(t))return Vt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Vt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ft={getDimension:function(t){var e=t.horizontal,r=t.brushDimension;return e&&r?"x"===r?"y":"x":r},withinBounds:function(t,e,r){var n=Tt()(e,Number),o=n.x1,i=n.x2,a=n.y1,u=n.y2,c=Tt()(t,Number),s=c.x,l=c.y;return s+(r=r?r/2:0)>=Math.min(o,i)&&s-r<=Math.max(o,i)&&l+r>=Math.min(a,u)&&l-r<=Math.max(a,u)},getDomainBox:function(t,r,n){var o=this.getDimension(t);r=e()({},r,t.domain),n=e()({},n,r);var i=m(t,r),a=m(t,n);return{x1:"y"!==o?Math.min.apply(Math,Wt(a.x)):Math.min.apply(Math,Wt(i.x)),x2:"y"!==o?Math.max.apply(Math,Wt(a.x)):Math.max.apply(Math,Wt(i.x)),y1:"x"!==o?Math.min.apply(Math,Wt(a.y)):Math.min.apply(Math,Wt(i.y)),y2:"x"!==o?Math.max.apply(Math,Wt(a.y)):Math.max.apply(Math,Wt(i.y))}},getHandles:function(t,e){var r=this.getDimension(t),n=e.x1,o=e.x2,i=e.y1,a=e.y2,u=Math.min(n,o),c=Math.max(n,o),s=Math.min(i,a),l=Math.max(i,a),f=t.handleWidth/2;return{left:"y"!==r&&{x1:u-f,x2:u+f,y1:i,y2:a},right:"y"!==r&&{x1:c-f,x2:c+f,y1:i,y2:a},top:"x"!==r&&{x1:n,x2:o,y1:s-f,y2:s+f},bottom:"x"!==r&&{x1:n,x2:o,y1:l-f,y2:l+f}}},getActiveHandles:function(t,e,r){var n=this,o=this.getHandles(e,r),i=["top","bottom","left","right"].reduce((function(e,r){return o[r]&&n.withinBounds(t,o[r])?e.concat(r):e}),[]);return i.length&&i},getResizeMutation:function(t,e){var r=t.x1,n=t.y1,o=t.x2,a=t.y2,u={left:{x1:Math.max(r,o),x2:Math.min(r,o),y1:n,y2:a},right:{x1:Math.min(r,o),x2:Math.max(r,o),y1:n,y2:a},top:{y1:Math.max(n,a),y2:Math.min(n,a),x1:r,x2:o},bottom:{y1:Math.min(n,a),y2:Math.max(n,a),x1:r,x2:o}};return e.reduce((function(t,e){return i()(t,u[e])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(t,e,r){var n=t.domain,o=t.fullDomain,i=t.scale,a=t.horizontal,u=t.allowResize||t.defaultBrushArea?t.defaultBrushArea:"move";if("none"===u)return this.getMinimumDomain();if("disable"===u)return e;if("move"===u){var c=this.getDomainBox(t,o,e),s=t.parentSVG||d(r),l=this.panBox(Ut(Ut(Ut({},t),c),{},{brushDomain:e,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),b(r,s)),f=t.fullDomainBox||this.getDomainBox(t,o);return g(Ut(Ut({},this.constrainBox(l,f)),{},{scale:i,horizontal:a}))}return n},getSelectionMutation:function(t,e,r){var n=t.x,o=t.y,i=e.x1,a=e.x2,u=e.y1,c=e.y2;return{x1:"y"!==r?n:i,y1:"x"!==r?o:u,x2:"y"!==r?n:a,y2:"x"!==r?o:c}},panBox:function(t,r){var n=t.domain,o=t.startX,i=t.startY,a=this.getDimension(t),u=e()({},t.brushDomain,n),c=e()({},t.fullDomain,n),s=t.x1?t:this.getDomainBox(t,c,u),l=s.x1,f=s.x2,p=s.y1,y=s.y2,h=r.x,v=r.y,d=o?o-h:0,b=i?i-v:0;return{x1:"y"!==a?Math.min(l,f)-d:Math.min(l,f),x2:"y"!==a?Math.max(l,f)-d:Math.max(l,f),y1:"x"!==a?Math.min(p,y)-b:Math.min(p,y),y2:"x"!==a?Math.max(p,y)-b:Math.max(p,y)}},constrainBox:function(t,e){var r=Tt()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,n),y1:t.y2>a?a-Math.abs(t.y2-t.y1):Math.max(t.y1,o),x2:t.x1<n?n+Math.abs(t.x2-t.x1):Math.min(t.x2,i),y2:t.y1<o?o+Math.abs(t.y2-t.y1):Math.min(t.y2,a)}},constrainPoint:function(t,e){var r=Tt()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x:Math.min(Math.max(t.x,n),i),y:Math.min(Math.max(t.y,o),a)}},hasMoved:function(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.mouseMoveThreshold,a=this.getDimension(t),u=Math.abs(e-r)>=i,c=Math.abs(n-o)>=i;switch(a){case"x":return u;case"y":return c;default:return u||c}},onMouseDown:function(t,r){var n=this;t.preventDefault();var o=r.handleWidth,i=r.cachedBrushDomain,a=r.domain,u=r.allowResize,c=r.allowDrag,s=r.allowDraw,l=this.getDimension(r),f=u||r.defaultBrushArea?r.defaultBrushArea:"move";if(!u&&!c)return{};var p=r.fullDomainBox||this.getDomainBox(r,a),y=r.parentSVG||d(t),h=b(t,y),v=h.x,m=h.y;if(!this.withinBounds({x:v,y:m},p,o))return{};var x=e()({},r.brushDomain,a),g=zt()(x,i)?r.currentDomain||x||a:x||a,w=this.getDomainBox(r,a,g),O=u&&this.getActiveHandles({x:v,y:m},r,w);return O?[{target:"parent",mutation:function(){return Ut({isSelecting:!0,domainBox:w,fullDomainBox:p,cachedBrushDomain:x,currentDomain:g,parentSVG:y},n.getResizeMutation(w,O))}}]:this.withinBounds({x:v,y:m},w)&&!zt()(a,g)?[{target:"parent",mutation:function(){return Ut({isPanning:c,startX:v,startY:m,domainBox:w,fullDomainBox:p,currentDomain:g,cachedBrushDomain:x,parentSVG:y},w)}}]:s?[{target:"parent",mutation:function(){return Ut({isSelecting:u||"move"===f,domainBox:w,fullDomainBox:p,parentSVG:y,cachedBrushDomain:x,cachedCurrentDomain:g,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:v,y:m},w,l))}}]:{}},onGlobalMouseMove:function(t,r){var n=r.scale,o=r.isPanning,i=r.isSelecting,a=r.fullDomainBox,u=r.onBrushDomainChange,c=r.allowResize,s=r.allowDrag,l=r.horizontal,f=r.mouseMoveThreshold,p=r.parentSVG,y=this.getDimension(r),h=b(t,p),v=h.x,d=h.y;if(!c&&!s||f>0&&!this.hasMoved(Ut(Ut({},r),{},{x2:v,y2:d})))return{};if(s&&o){var m=r.startX,x=r.startY,w=this.panBox(r,{x:v,y:d}),j=this.constrainBox(w,a),M=g(Ut(Ut({},j),{},{scale:n,horizontal:l})),P=Ut({currentDomain:M,parentSVG:p,startX:w.x2>=a.x2||w.x1<=a.x1?m:v,startY:w.y2>=a.y2||w.y1<=a.y1?x:d},j);return O()(u)&&u(M,e()({},P,r)),[{target:"parent",mutation:function(){return P}}]}if(c&&i){var D=this.constrainPoint({x:"y"!==y?v:r.x2,y:"x"!==y?d:r.y2},a),_=D.x,E=D.y,S=g({x2:_,y2:E,x1:r.x1,y1:r.y1,scale:n,horizontal:l}),A={x2:_,y2:E,currentDomain:S,parentSVG:p};return O()(u)&&u(S,e()({},A,r)),[{target:"parent",mutation:function(){return A}}]}return{}},onGlobalMouseUp:function(t,r){if(!r.isPanning&&!r.isSelecting)return{};var n=r.x1,o=r.y1,i=r.x2,a=r.y2,u=r.isPanning,c=r.isSelecting,s=r.onBrushDomainChange,l=r.onBrushDomainChangeEnd,f=r.onBrushCleared,p=r.currentDomain,y=r.allowResize,h=r.allowDrag,v=y||r.defaultBrushArea?r.defaultBrushArea:"move",d={isPanning:!1,isSelecting:!1};if(!y&&(void 0===v||"none"===v)||n!==i&&o!==a)(h&&u||y&&c)&&O()(l)&&l(p,e()({},d,r));else{var b=r.cachedCurrentDomain||p,m=this.getDefaultBrushArea(r,b,t);d.currentDomain=m,O()(s)&&s(m,e()({},d,r)),O()(l)&&l(m,e()({},d,r)),O()(f)&&f(m,e()({},d,r))}return[{target:"parent",mutation:function(){return d}}]}};const Ht=Ut(Ut({},Ft),{},{onMouseDown:Ft.onMouseDown.bind(Ft),onGlobalMouseUp:Ft.onGlobalMouseUp.bind(Ft),onGlobalMouseMove:kt()(Ft.onGlobalMouseMove.bind(Ft),16,{leading:!0,trailing:!1})});function qt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $t(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qt(Object(r),!0).forEach((function(e){Xt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yt(t){return function(t){if(Array.isArray(t))return Lt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Lt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Zt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Kt(t,e){return Kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Kt(t,e)}function Qt(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function te(t){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},te(t)}var ee=function(t){var r;return r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Kt(t,e)}(c,t);var r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=te(o);if(a){var r=te(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return Qt(this,t)});function c(){return Zt(this,c),u.apply(this,arguments)}return r=c,(n=[{key:"getSelectBox",value:function(t,r){var n=r.x,o=r.y,i=t.brushStyle,a=t.brushComponent,u=t.name,c=a.props&&a.props.style,l=t.allowDrag||t.allowResize?"move":"auto";return n[0]!==n[1]&&o[0]!==o[1]?s().cloneElement(a,{key:"".concat(u,"-brush"),width:Math.abs(n[1]-n[0])||1,height:Math.abs(o[1]-o[0])||1,x:Math.min(n[0],n[1]),y:Math.min(o[0],o[1]),cursor:l,style:e()({},c,i)}):null}},{key:"getCursorPointers",value:function(t){var e={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(e.xProps="move",e.yProps="move"):t.allowResize||t.allowDrag||(e.xProps="auto",e.yProps="auto"),e}},{key:"getHandles",value:function(t,r){var n=t.handleWidth,o=t.handleStyle,a=t.handleComponent,u=t.name,c=Ht.getDomainBox(t,r),l=c.x1,f=c.x2,p=c.y1,y=c.y2,h=Ht.getHandles(t,c),v=h.top,d=h.bottom,b=h.left,m=h.right,x=Math.abs(f-l)||1,g=Math.abs(y-p)||1,w=a.props&&a.props.style||{},O=e()({},w,o),j=this.getCursorPointers(t),M={style:O,width:x,height:n,cursor:j.yProps},P={style:O,width:n,height:g,cursor:j.xProps},D={top:v&&i()({x:v.x1,y:v.y1},M),bottom:d&&i()({x:d.x1,y:d.y1},M),left:b&&i()({y:b.y1,x:b.x1},P),right:m&&i()({y:m.y1,x:m.x1},P)},_=["top","bottom","left","right"].reduce((function(t,e){return D[e]?t.concat(s().cloneElement(a,i()({key:"".concat(u,"-handle-").concat(e)},D[e]))):t}),[]);return _.length?_:null}},{key:"getRect",value:function(t){var r=t.currentDomain,n=t.cachedBrushDomain,o=e()({},t.brushDomain,t.domain),i=zt()(o,n)?e()({},r,o):o,a=m(t,i),u=this.getSelectBox(t,a);return u?[u,this.getHandles(t,i)]:[]}},{key:"getChildren",value:function(t){return[].concat(Yt(s().Children.toArray(t.children)),Yt(this.getRect(t)))}}])&&Jt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(t),r.displayName="VictoryBrushContainer",r.propTypes=$t($t({},Et.propTypes),{},{allowDrag:u().bool,allowDraw:u().bool,allowResize:u().bool,brushComponent:u().element,brushDimension:u().oneOf(["x","y"]),brushDomain:u().shape({x:u().array,y:u().array}),brushStyle:u().object,defaultBrushArea:u().oneOf(["all","disable","none","move"]),disable:u().bool,handleComponent:u().element,handleStyle:u().object,handleWidth:u().number,onBrushCleared:u().func,onBrushDomainChange:u().func,onBrushDomainChangeEnd:u().func}),r.defaultProps=$t($t({},Et.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:s().createElement(Rt,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:s().createElement(Rt,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0}),r.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,r){return t.disable?{}:Ht.onMouseDown(e,r)},onTouchStart:function(e,r){return t.disable?{}:Ht.onMouseDown(e,r)},onGlobalMouseMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:Ht.onGlobalMouseMove(e,r)},onGlobalTouchMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:Ht.onGlobalMouseMove(e,r)},onGlobalMouseUp:function(e,r){return t.disable?{}:Ht.onGlobalMouseUp(e,r)},onGlobalTouchEnd:function(e,r){return t.disable?{}:Ht.onGlobalMouseUp(e,r)},onGlobalTouchCancel:function(e,r){return t.disable?{}:Ht.onGlobalMouseUp(e,r)}}}]},r};const re=ee(Et)})(),o})()));
2
2
  //# sourceMappingURL=victory-brush-container.min.js.map
@@ -5,6 +5,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5
5
 
6
6
  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; }
7
7
 
8
+ 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; }
9
+
8
10
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
9
11
 
10
12
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -25,7 +27,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
25
27
 
26
28
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
29
 
28
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
30
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
31
 
30
32
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
31
33
 
@@ -35,9 +37,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
35
37
 
36
38
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
37
39
 
38
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
-
40
- 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; }
40
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
41
41
 
42
42
  import PropTypes from "prop-types";
43
43
  import React from "react";
@@ -182,7 +182,7 @@ export var brushContainerMixin = function (base) {
182
182
  }]);
183
183
 
184
184
  return VictoryBrushContainer;
185
- }(base), _defineProperty(_class, "displayName", "VictoryBrushContainer"), _defineProperty(_class, "propTypes", _objectSpread(_objectSpread({}, VictoryContainer.propTypes), {}, {
185
+ }(base), _class.displayName = "VictoryBrushContainer", _class.propTypes = _objectSpread(_objectSpread({}, VictoryContainer.propTypes), {}, {
186
186
  allowDrag: PropTypes.bool,
187
187
  allowDraw: PropTypes.bool,
188
188
  allowResize: PropTypes.bool,
@@ -201,7 +201,7 @@ export var brushContainerMixin = function (base) {
201
201
  onBrushCleared: PropTypes.func,
202
202
  onBrushDomainChange: PropTypes.func,
203
203
  onBrushDomainChangeEnd: PropTypes.func
204
- })), _defineProperty(_class, "defaultProps", _objectSpread(_objectSpread({}, VictoryContainer.defaultProps), {}, {
204
+ }), _class.defaultProps = _objectSpread(_objectSpread({}, VictoryContainer.defaultProps), {}, {
205
205
  allowDrag: true,
206
206
  allowDraw: true,
207
207
  allowResize: true,
@@ -218,7 +218,7 @@ export var brushContainerMixin = function (base) {
218
218
  },
219
219
  handleWidth: 8,
220
220
  mouseMoveThreshold: 0
221
- })), _defineProperty(_class, "defaultEvents", function (props) {
221
+ }), _class.defaultEvents = function (props) {
222
222
  return [{
223
223
  target: "parent",
224
224
  eventHandlers: {
@@ -245,6 +245,6 @@ export var brushContainerMixin = function (base) {
245
245
  }
246
246
  }
247
247
  }];
248
- }), _class;
248
+ }, _class;
249
249
  };
250
250
  export default brushContainerMixin(VictoryContainer);
@@ -25,6 +25,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
25
25
 
26
26
  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; }
27
27
 
28
+ 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; }
29
+
28
30
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
29
31
 
30
32
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -45,7 +47,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
45
47
 
46
48
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
47
49
 
48
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
50
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
49
51
 
50
52
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
51
53
 
@@ -55,9 +57,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
55
57
 
56
58
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
57
59
 
58
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
59
-
60
- 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; }
60
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
61
61
 
62
62
  var brushContainerMixin = function (base) {
63
63
  var _class;
@@ -197,7 +197,7 @@ var brushContainerMixin = function (base) {
197
197
  }]);
198
198
 
199
199
  return VictoryBrushContainer;
200
- }(base), _defineProperty(_class, "displayName", "VictoryBrushContainer"), _defineProperty(_class, "propTypes", _objectSpread(_objectSpread({}, _victoryCore.VictoryContainer.propTypes), {}, {
200
+ }(base), _class.displayName = "VictoryBrushContainer", _class.propTypes = _objectSpread(_objectSpread({}, _victoryCore.VictoryContainer.propTypes), {}, {
201
201
  allowDrag: _propTypes.default.bool,
202
202
  allowDraw: _propTypes.default.bool,
203
203
  allowResize: _propTypes.default.bool,
@@ -216,7 +216,7 @@ var brushContainerMixin = function (base) {
216
216
  onBrushCleared: _propTypes.default.func,
217
217
  onBrushDomainChange: _propTypes.default.func,
218
218
  onBrushDomainChangeEnd: _propTypes.default.func
219
- })), _defineProperty(_class, "defaultProps", _objectSpread(_objectSpread({}, _victoryCore.VictoryContainer.defaultProps), {}, {
219
+ }), _class.defaultProps = _objectSpread(_objectSpread({}, _victoryCore.VictoryContainer.defaultProps), {}, {
220
220
  allowDrag: true,
221
221
  allowDraw: true,
222
222
  allowResize: true,
@@ -233,7 +233,7 @@ var brushContainerMixin = function (base) {
233
233
  },
234
234
  handleWidth: 8,
235
235
  mouseMoveThreshold: 0
236
- })), _defineProperty(_class, "defaultEvents", function (props) {
236
+ }), _class.defaultEvents = function (props) {
237
237
  return [{
238
238
  target: "parent",
239
239
  eventHandlers: {
@@ -260,7 +260,7 @@ var brushContainerMixin = function (base) {
260
260
  }
261
261
  }
262
262
  }];
263
- }), _class;
263
+ }, _class;
264
264
  };
265
265
 
266
266
  exports.brushContainerMixin = brushContainerMixin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-brush-container",
3
- "version": "36.4.1",
3
+ "version": "36.5.0",
4
4
  "description": "Interactive Brush Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -22,14 +22,14 @@
22
22
  "lodash": "^4.17.19",
23
23
  "prop-types": "^15.8.1",
24
24
  "react-fast-compare": "^3.2.0",
25
- "victory-core": "^36.4.1"
25
+ "victory-core": "^36.5.0"
26
26
  },
27
27
  "peerDependencies": {
28
- "react": "^16.6.0 || ^17.0.0"
28
+ "react": ">=16.6.0"
29
29
  },
30
30
  "scripts": {
31
31
  "version": "yarn run nps build-libs && nps build-dists"
32
32
  },
33
33
  "sideEffects": false,
34
- "gitHead": "aa44a22e5a93989773a560f765f83ac151f44c46"
34
+ "gitHead": "7cecba921f751c3decc8215f7e866f51d11203c1"
35
35
  }