(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Victory"] = factory(require("react")); else root["Victory"] = factory(root["React"]); })(window, function(__WEBPACK_EXTERNAL_MODULE_react__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "./index.js"); /******/ }) /************************************************************************/ /******/ ({ /***/ "../../../node_modules/d3-array/src/array.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/array.js ***! \******************************************************************************/ /*! exports provided: slice, map */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "map", function() { return map; }); var array = Array.prototype; var slice = array.slice; var map = array.map; /***/ }), /***/ "../../../node_modules/d3-array/src/ascending.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/ascending.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; }); /***/ }), /***/ "../../../node_modules/d3-array/src/bisect.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/bisect.js ***! \*******************************************************************************/ /*! exports provided: bisectRight, bisectLeft, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bisectRight", function() { return bisectRight; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bisectLeft", function() { return bisectLeft; }); /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "../../../node_modules/d3-array/src/ascending.js"); /* harmony import */ var _bisector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bisector */ "../../../node_modules/d3-array/src/bisector.js"); var ascendingBisect = Object(_bisector__WEBPACK_IMPORTED_MODULE_1__["default"])(_ascending__WEBPACK_IMPORTED_MODULE_0__["default"]); var bisectRight = ascendingBisect.right; var bisectLeft = ascendingBisect.left; /* harmony default export */ __webpack_exports__["default"] = (bisectRight); /***/ }), /***/ "../../../node_modules/d3-array/src/bisector.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/bisector.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "../../../node_modules/d3-array/src/ascending.js"); /* harmony default export */ __webpack_exports__["default"] = (function(compare) { if (compare.length === 1) compare = ascendingComparator(compare); return { left: function(a, x, lo, hi) { if (lo == null) lo = 0; if (hi == null) hi = a.length; while (lo < hi) { var mid = lo + hi >>> 1; if (compare(a[mid], x) < 0) lo = mid + 1; else hi = mid; } return lo; }, right: function(a, x, lo, hi) { if (lo == null) lo = 0; if (hi == null) hi = a.length; while (lo < hi) { var mid = lo + hi >>> 1; if (compare(a[mid], x) > 0) hi = mid; else lo = mid + 1; } return lo; } }; }); function ascendingComparator(f) { return function(d, x) { return Object(_ascending__WEBPACK_IMPORTED_MODULE_0__["default"])(f(d), x); }; } /***/ }), /***/ "../../../node_modules/d3-array/src/constant.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/constant.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return function() { return x; }; }); /***/ }), /***/ "../../../node_modules/d3-array/src/cross.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/cross.js ***! \******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _pairs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pairs */ "../../../node_modules/d3-array/src/pairs.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values0, values1, reduce) { var n0 = values0.length, n1 = values1.length, values = new Array(n0 * n1), i0, i1, i, value0; if (reduce == null) reduce = _pairs__WEBPACK_IMPORTED_MODULE_0__["pair"]; for (i0 = i = 0; i0 < n0; ++i0) { for (value0 = values0[i0], i1 = 0; i1 < n1; ++i1, ++i) { values[i] = reduce(value0, values1[i1]); } } return values; }); /***/ }), /***/ "../../../node_modules/d3-array/src/descending.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/descending.js ***! \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN; }); /***/ }), /***/ "../../../node_modules/d3-array/src/deviation.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/deviation.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _variance__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./variance */ "../../../node_modules/d3-array/src/variance.js"); /* harmony default export */ __webpack_exports__["default"] = (function(array, f) { var v = Object(_variance__WEBPACK_IMPORTED_MODULE_0__["default"])(array, f); return v ? Math.sqrt(v) : v; }); /***/ }), /***/ "../../../node_modules/d3-array/src/extent.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/extent.js ***! \*******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) { var n = values.length, i = -1, value, min, max; if (valueof == null) { while (++i < n) { // Find the first comparable value. if ((value = values[i]) != null && value >= value) { min = max = value; while (++i < n) { // Compare the remaining values. if ((value = values[i]) != null) { if (min > value) min = value; if (max < value) max = value; } } } } } else { while (++i < n) { // Find the first comparable value. if ((value = valueof(values[i], i, values)) != null && value >= value) { min = max = value; while (++i < n) { // Compare the remaining values. if ((value = valueof(values[i], i, values)) != null) { if (min > value) min = value; if (max < value) max = value; } } } } } return [min, max]; }); /***/ }), /***/ "../../../node_modules/d3-array/src/histogram.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/histogram.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "../../../node_modules/d3-array/src/array.js"); /* harmony import */ var _bisect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bisect */ "../../../node_modules/d3-array/src/bisect.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constant */ "../../../node_modules/d3-array/src/constant.js"); /* harmony import */ var _extent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./extent */ "../../../node_modules/d3-array/src/extent.js"); /* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./identity */ "../../../node_modules/d3-array/src/identity.js"); /* harmony import */ var _range__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./range */ "../../../node_modules/d3-array/src/range.js"); /* harmony import */ var _ticks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ticks */ "../../../node_modules/d3-array/src/ticks.js"); /* harmony import */ var _threshold_sturges__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./threshold/sturges */ "../../../node_modules/d3-array/src/threshold/sturges.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var value = _identity__WEBPACK_IMPORTED_MODULE_4__["default"], domain = _extent__WEBPACK_IMPORTED_MODULE_3__["default"], threshold = _threshold_sturges__WEBPACK_IMPORTED_MODULE_7__["default"]; function histogram(data) { var i, n = data.length, x, values = new Array(n); for (i = 0; i < n; ++i) { values[i] = value(data[i], i, data); } var xz = domain(values), x0 = xz[0], x1 = xz[1], tz = threshold(values, x0, x1); // Convert number of thresholds into uniform thresholds. if (!Array.isArray(tz)) { tz = Object(_ticks__WEBPACK_IMPORTED_MODULE_6__["tickStep"])(x0, x1, tz); tz = Object(_range__WEBPACK_IMPORTED_MODULE_5__["default"])(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive } // Remove any thresholds outside the domain. var m = tz.length; while (tz[0] <= x0) tz.shift(), --m; while (tz[m - 1] > x1) tz.pop(), --m; var bins = new Array(m + 1), bin; // Initialize bins. for (i = 0; i <= m; ++i) { bin = bins[i] = []; bin.x0 = i > 0 ? tz[i - 1] : x0; bin.x1 = i < m ? tz[i] : x1; } // Assign data to bins by value, ignoring any outside the domain. for (i = 0; i < n; ++i) { x = values[i]; if (x0 <= x && x <= x1) { bins[Object(_bisect__WEBPACK_IMPORTED_MODULE_1__["default"])(tz, x, 0, m)].push(data[i]); } } return bins; } histogram.value = function(_) { return arguments.length ? (value = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(_), histogram) : value; }; histogram.domain = function(_) { return arguments.length ? (domain = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])([_[0], _[1]]), histogram) : domain; }; histogram.thresholds = function(_) { return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(_array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(_)) : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(_), histogram) : threshold; }; return histogram; }); /***/ }), /***/ "../../../node_modules/d3-array/src/identity.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/identity.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return x; }); /***/ }), /***/ "../../../node_modules/d3-array/src/index.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/index.js ***! \******************************************************************************/ /*! exports provided: bisect, bisectRight, bisectLeft, ascending, bisector, cross, descending, deviation, extent, histogram, thresholdFreedmanDiaconis, thresholdScott, thresholdSturges, max, mean, median, merge, min, pairs, permute, quantile, range, scan, shuffle, sum, ticks, tickIncrement, tickStep, transpose, variance, zip */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _bisect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bisect */ "../../../node_modules/d3-array/src/bisect.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisect", function() { return _bisect__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisectRight", function() { return _bisect__WEBPACK_IMPORTED_MODULE_0__["bisectRight"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisectLeft", function() { return _bisect__WEBPACK_IMPORTED_MODULE_0__["bisectLeft"]; }); /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending */ "../../../node_modules/d3-array/src/ascending.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ascending", function() { return _ascending__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _bisector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bisector */ "../../../node_modules/d3-array/src/bisector.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisector", function() { return _bisector__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _cross__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cross */ "../../../node_modules/d3-array/src/cross.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cross", function() { return _cross__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _descending__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./descending */ "../../../node_modules/d3-array/src/descending.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "descending", function() { return _descending__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _deviation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./deviation */ "../../../node_modules/d3-array/src/deviation.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "deviation", function() { return _deviation__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony import */ var _extent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./extent */ "../../../node_modules/d3-array/src/extent.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extent", function() { return _extent__WEBPACK_IMPORTED_MODULE_6__["default"]; }); /* harmony import */ var _histogram__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./histogram */ "../../../node_modules/d3-array/src/histogram.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "histogram", function() { return _histogram__WEBPACK_IMPORTED_MODULE_7__["default"]; }); /* harmony import */ var _threshold_freedmanDiaconis__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./threshold/freedmanDiaconis */ "../../../node_modules/d3-array/src/threshold/freedmanDiaconis.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdFreedmanDiaconis", function() { return _threshold_freedmanDiaconis__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony import */ var _threshold_scott__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./threshold/scott */ "../../../node_modules/d3-array/src/threshold/scott.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdScott", function() { return _threshold_scott__WEBPACK_IMPORTED_MODULE_9__["default"]; }); /* harmony import */ var _threshold_sturges__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./threshold/sturges */ "../../../node_modules/d3-array/src/threshold/sturges.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdSturges", function() { return _threshold_sturges__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony import */ var _max__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./max */ "../../../node_modules/d3-array/src/max.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "max", function() { return _max__WEBPACK_IMPORTED_MODULE_11__["default"]; }); /* harmony import */ var _mean__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./mean */ "../../../node_modules/d3-array/src/mean.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mean", function() { return _mean__WEBPACK_IMPORTED_MODULE_12__["default"]; }); /* harmony import */ var _median__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./median */ "../../../node_modules/d3-array/src/median.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "median", function() { return _median__WEBPACK_IMPORTED_MODULE_13__["default"]; }); /* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./merge */ "../../../node_modules/d3-array/src/merge.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return _merge__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /* harmony import */ var _min__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./min */ "../../../node_modules/d3-array/src/min.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "min", function() { return _min__WEBPACK_IMPORTED_MODULE_15__["default"]; }); /* harmony import */ var _pairs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./pairs */ "../../../node_modules/d3-array/src/pairs.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pairs", function() { return _pairs__WEBPACK_IMPORTED_MODULE_16__["default"]; }); /* harmony import */ var _permute__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./permute */ "../../../node_modules/d3-array/src/permute.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "permute", function() { return _permute__WEBPACK_IMPORTED_MODULE_17__["default"]; }); /* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./quantile */ "../../../node_modules/d3-array/src/quantile.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantile", function() { return _quantile__WEBPACK_IMPORTED_MODULE_18__["default"]; }); /* harmony import */ var _range__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./range */ "../../../node_modules/d3-array/src/range.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "range", function() { return _range__WEBPACK_IMPORTED_MODULE_19__["default"]; }); /* harmony import */ var _scan__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./scan */ "../../../node_modules/d3-array/src/scan.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scan", function() { return _scan__WEBPACK_IMPORTED_MODULE_20__["default"]; }); /* harmony import */ var _shuffle__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./shuffle */ "../../../node_modules/d3-array/src/shuffle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "shuffle", function() { return _shuffle__WEBPACK_IMPORTED_MODULE_21__["default"]; }); /* harmony import */ var _sum__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./sum */ "../../../node_modules/d3-array/src/sum.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sum", function() { return _sum__WEBPACK_IMPORTED_MODULE_22__["default"]; }); /* harmony import */ var _ticks__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./ticks */ "../../../node_modules/d3-array/src/ticks.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ticks", function() { return _ticks__WEBPACK_IMPORTED_MODULE_23__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tickIncrement", function() { return _ticks__WEBPACK_IMPORTED_MODULE_23__["tickIncrement"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tickStep", function() { return _ticks__WEBPACK_IMPORTED_MODULE_23__["tickStep"]; }); /* harmony import */ var _transpose__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./transpose */ "../../../node_modules/d3-array/src/transpose.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transpose", function() { return _transpose__WEBPACK_IMPORTED_MODULE_24__["default"]; }); /* harmony import */ var _variance__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./variance */ "../../../node_modules/d3-array/src/variance.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "variance", function() { return _variance__WEBPACK_IMPORTED_MODULE_25__["default"]; }); /* harmony import */ var _zip__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./zip */ "../../../node_modules/d3-array/src/zip.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return _zip__WEBPACK_IMPORTED_MODULE_26__["default"]; }); /***/ }), /***/ "../../../node_modules/d3-array/src/max.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/max.js ***! \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) { var n = values.length, i = -1, value, max; if (valueof == null) { while (++i < n) { // Find the first comparable value. if ((value = values[i]) != null && value >= value) { max = value; while (++i < n) { // Compare the remaining values. if ((value = values[i]) != null && value > max) { max = value; } } } } } else { while (++i < n) { // Find the first comparable value. if ((value = valueof(values[i], i, values)) != null && value >= value) { max = value; while (++i < n) { // Compare the remaining values. if ((value = valueof(values[i], i, values)) != null && value > max) { max = value; } } } } } return max; }); /***/ }), /***/ "../../../node_modules/d3-array/src/mean.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/mean.js ***! \*****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "../../../node_modules/d3-array/src/number.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) { var n = values.length, m = n, i = -1, value, sum = 0; if (valueof == null) { while (++i < n) { if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(values[i]))) sum += value; else --m; } } else { while (++i < n) { if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(valueof(values[i], i, values)))) sum += value; else --m; } } if (m) return sum / m; }); /***/ }), /***/ "../../../node_modules/d3-array/src/median.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/median.js ***! \*******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "../../../node_modules/d3-array/src/ascending.js"); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./number */ "../../../node_modules/d3-array/src/number.js"); /* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./quantile */ "../../../node_modules/d3-array/src/quantile.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) { var n = values.length, i = -1, value, numbers = []; if (valueof == null) { while (++i < n) { if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_1__["default"])(values[i]))) { numbers.push(value); } } } else { while (++i < n) { if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_1__["default"])(valueof(values[i], i, values)))) { numbers.push(value); } } } return Object(_quantile__WEBPACK_IMPORTED_MODULE_2__["default"])(numbers.sort(_ascending__WEBPACK_IMPORTED_MODULE_0__["default"]), 0.5); }); /***/ }), /***/ "../../../node_modules/d3-array/src/merge.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/merge.js ***! \******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(arrays) { var n = arrays.length, m, i = -1, j = 0, merged, array; while (++i < n) j += arrays[i].length; merged = new Array(j); while (--n >= 0) { array = arrays[n]; m = array.length; while (--m >= 0) { merged[--j] = array[m]; } } return merged; }); /***/ }), /***/ "../../../node_modules/d3-array/src/min.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/min.js ***! \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) { var n = values.length, i = -1, value, min; if (valueof == null) { while (++i < n) { // Find the first comparable value. if ((value = values[i]) != null && value >= value) { min = value; while (++i < n) { // Compare the remaining values. if ((value = values[i]) != null && min > value) { min = value; } } } } } else { while (++i < n) { // Find the first comparable value. if ((value = valueof(values[i], i, values)) != null && value >= value) { min = value; while (++i < n) { // Compare the remaining values. if ((value = valueof(values[i], i, values)) != null && min > value) { min = value; } } } } } return min; }); /***/ }), /***/ "../../../node_modules/d3-array/src/number.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/number.js ***! \*******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return x === null ? NaN : +x; }); /***/ }), /***/ "../../../node_modules/d3-array/src/pairs.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/pairs.js ***! \******************************************************************************/ /*! exports provided: default, pair */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pair", function() { return pair; }); /* harmony default export */ __webpack_exports__["default"] = (function(array, f) { if (f == null) f = pair; var i = 0, n = array.length - 1, p = array[0], pairs = new Array(n < 0 ? 0 : n); while (i < n) pairs[i] = f(p, p = array[++i]); return pairs; }); function pair(a, b) { return [a, b]; } /***/ }), /***/ "../../../node_modules/d3-array/src/permute.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/permute.js ***! \********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(array, indexes) { var i = indexes.length, permutes = new Array(i); while (i--) permutes[i] = array[indexes[i]]; return permutes; }); /***/ }), /***/ "../../../node_modules/d3-array/src/quantile.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/quantile.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "../../../node_modules/d3-array/src/number.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, p, valueof) { if (valueof == null) valueof = _number__WEBPACK_IMPORTED_MODULE_0__["default"]; if (!(n = values.length)) return; if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values); if (p >= 1) return +valueof(values[n - 1], n - 1, values); var n, i = (n - 1) * p, i0 = Math.floor(i), value0 = +valueof(values[i0], i0, values), value1 = +valueof(values[i0 + 1], i0 + 1, values); return value0 + (value1 - value0) * (i - i0); }); /***/ }), /***/ "../../../node_modules/d3-array/src/range.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/range.js ***! \******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(start, stop, step) { start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step; var i = -1, n = Math.max(0, Math.ceil((stop - start) / step)) | 0, range = new Array(n); while (++i < n) { range[i] = start + i * step; } return range; }); /***/ }), /***/ "../../../node_modules/d3-array/src/scan.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/scan.js ***! \*****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "../../../node_modules/d3-array/src/ascending.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, compare) { if (!(n = values.length)) return; var n, i = 0, j = 0, xi, xj = values[j]; if (compare == null) compare = _ascending__WEBPACK_IMPORTED_MODULE_0__["default"]; while (++i < n) { if (compare(xi = values[i], xj) < 0 || compare(xj, xj) !== 0) { xj = xi, j = i; } } if (compare(xj, xj) === 0) return j; }); /***/ }), /***/ "../../../node_modules/d3-array/src/shuffle.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/shuffle.js ***! \********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(array, i0, i1) { var m = (i1 == null ? array.length : i1) - (i0 = i0 == null ? 0 : +i0), t, i; while (m) { i = Math.random() * m-- | 0; t = array[m + i0]; array[m + i0] = array[i + i0]; array[i + i0] = t; } return array; }); /***/ }), /***/ "../../../node_modules/d3-array/src/sum.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/sum.js ***! \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) { var n = values.length, i = -1, value, sum = 0; if (valueof == null) { while (++i < n) { if (value = +values[i]) sum += value; // Note: zero and null are equivalent. } } else { while (++i < n) { if (value = +valueof(values[i], i, values)) sum += value; } } return sum; }); /***/ }), /***/ "../../../node_modules/d3-array/src/threshold/freedmanDiaconis.js": /*!***************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/threshold/freedmanDiaconis.js ***! \***************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../array */ "../../../node_modules/d3-array/src/array.js"); /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ascending */ "../../../node_modules/d3-array/src/ascending.js"); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../number */ "../../../node_modules/d3-array/src/number.js"); /* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../quantile */ "../../../node_modules/d3-array/src/quantile.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, min, max) { values = _array__WEBPACK_IMPORTED_MODULE_0__["map"].call(values, _number__WEBPACK_IMPORTED_MODULE_2__["default"]).sort(_ascending__WEBPACK_IMPORTED_MODULE_1__["default"]); return Math.ceil((max - min) / (2 * (Object(_quantile__WEBPACK_IMPORTED_MODULE_3__["default"])(values, 0.75) - Object(_quantile__WEBPACK_IMPORTED_MODULE_3__["default"])(values, 0.25)) * Math.pow(values.length, -1 / 3))); }); /***/ }), /***/ "../../../node_modules/d3-array/src/threshold/scott.js": /*!****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/threshold/scott.js ***! \****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _deviation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../deviation */ "../../../node_modules/d3-array/src/deviation.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, min, max) { return Math.ceil((max - min) / (3.5 * Object(_deviation__WEBPACK_IMPORTED_MODULE_0__["default"])(values) * Math.pow(values.length, -1 / 3))); }); /***/ }), /***/ "../../../node_modules/d3-array/src/threshold/sturges.js": /*!******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/threshold/sturges.js ***! \******************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(values) { return Math.ceil(Math.log(values.length) / Math.LN2) + 1; }); /***/ }), /***/ "../../../node_modules/d3-array/src/ticks.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/ticks.js ***! \******************************************************************************/ /*! exports provided: default, tickIncrement, tickStep */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tickIncrement", function() { return tickIncrement; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tickStep", function() { return tickStep; }); var e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2); /* harmony default export */ __webpack_exports__["default"] = (function(start, stop, count) { var reverse, i = -1, n, ticks, step; stop = +stop, start = +start, count = +count; if (start === stop && count > 0) return [start]; if (reverse = stop < start) n = start, start = stop, stop = n; if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return []; if (step > 0) { start = Math.ceil(start / step); stop = Math.floor(stop / step); ticks = new Array(n = Math.ceil(stop - start + 1)); while (++i < n) ticks[i] = (start + i) * step; } else { start = Math.floor(start * step); stop = Math.ceil(stop * step); ticks = new Array(n = Math.ceil(start - stop + 1)); while (++i < n) ticks[i] = (start - i) / step; } if (reverse) ticks.reverse(); return ticks; }); function tickIncrement(start, stop, count) { var step = (stop - start) / Math.max(0, count), power = Math.floor(Math.log(step) / Math.LN10), error = step / Math.pow(10, power); return power >= 0 ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power) : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1); } function tickStep(start, stop, count) { var step0 = Math.abs(stop - start) / Math.max(0, count), step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)), error = step0 / step1; if (error >= e10) step1 *= 10; else if (error >= e5) step1 *= 5; else if (error >= e2) step1 *= 2; return stop < start ? -step1 : step1; } /***/ }), /***/ "../../../node_modules/d3-array/src/transpose.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/transpose.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _min__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./min */ "../../../node_modules/d3-array/src/min.js"); /* harmony default export */ __webpack_exports__["default"] = (function(matrix) { if (!(n = matrix.length)) return []; for (var i = -1, m = Object(_min__WEBPACK_IMPORTED_MODULE_0__["default"])(matrix, length), transpose = new Array(m); ++i < m;) { for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) { row[j] = matrix[j][i]; } } return transpose; }); function length(d) { return d.length; } /***/ }), /***/ "../../../node_modules/d3-array/src/variance.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/variance.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "../../../node_modules/d3-array/src/number.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) { var n = values.length, m = 0, i = -1, mean = 0, value, delta, sum = 0; if (valueof == null) { while (++i < n) { if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(values[i]))) { delta = value - mean; mean += delta / ++m; sum += delta * (value - mean); } } } else { while (++i < n) { if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(valueof(values[i], i, values)))) { delta = value - mean; mean += delta / ++m; sum += delta * (value - mean); } } } if (m > 1) return sum / (m - 1); }); /***/ }), /***/ "../../../node_modules/d3-array/src/zip.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/zip.js ***! \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _transpose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transpose */ "../../../node_modules/d3-array/src/transpose.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { return Object(_transpose__WEBPACK_IMPORTED_MODULE_0__["default"])(arguments); }); /***/ }), /***/ "../../../node_modules/d3-collection/src/entries.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-collection/src/entries.js ***! \*************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(map) { var entries = []; for (var key in map) entries.push({key: key, value: map[key]}); return entries; }); /***/ }), /***/ "../../../node_modules/d3-collection/src/index.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-collection/src/index.js ***! \***********************************************************************************/ /*! exports provided: nest, set, map, keys, values, entries */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _nest__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nest */ "../../../node_modules/d3-collection/src/nest.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "nest", function() { return _nest__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _set__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./set */ "../../../node_modules/d3-collection/src/set.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "set", function() { return _set__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./map */ "../../../node_modules/d3-collection/src/map.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "map", function() { return _map__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./keys */ "../../../node_modules/d3-collection/src/keys.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "keys", function() { return _keys__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _values__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./values */ "../../../node_modules/d3-collection/src/values.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "values", function() { return _values__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _entries__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./entries */ "../../../node_modules/d3-collection/src/entries.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "entries", function() { return _entries__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /***/ }), /***/ "../../../node_modules/d3-collection/src/keys.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-collection/src/keys.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(map) { var keys = []; for (var key in map) keys.push(key); return keys; }); /***/ }), /***/ "../../../node_modules/d3-collection/src/map.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-collection/src/map.js ***! \*********************************************************************************/ /*! exports provided: prefix, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; }); var prefix = "$"; function Map() {} Map.prototype = map.prototype = { constructor: Map, has: function(key) { return (prefix + key) in this; }, get: function(key) { return this[prefix + key]; }, set: function(key, value) { this[prefix + key] = value; return this; }, remove: function(key) { var property = prefix + key; return property in this && delete this[property]; }, clear: function() { for (var property in this) if (property[0] === prefix) delete this[property]; }, keys: function() { var keys = []; for (var property in this) if (property[0] === prefix) keys.push(property.slice(1)); return keys; }, values: function() { var values = []; for (var property in this) if (property[0] === prefix) values.push(this[property]); return values; }, entries: function() { var entries = []; for (var property in this) if (property[0] === prefix) entries.push({key: property.slice(1), value: this[property]}); return entries; }, size: function() { var size = 0; for (var property in this) if (property[0] === prefix) ++size; return size; }, empty: function() { for (var property in this) if (property[0] === prefix) return false; return true; }, each: function(f) { for (var property in this) if (property[0] === prefix) f(this[property], property.slice(1), this); } }; function map(object, f) { var map = new Map; // Copy constructor. if (object instanceof Map) object.each(function(value, key) { map.set(key, value); }); // Index array by numeric index or specified key function. else if (Array.isArray(object)) { var i = -1, n = object.length, o; if (f == null) while (++i < n) map.set(i, object[i]); else while (++i < n) map.set(f(o = object[i], i, object), o); } // Convert object to map. else if (object) for (var key in object) map.set(key, object[key]); return map; } /* harmony default export */ __webpack_exports__["default"] = (map); /***/ }), /***/ "../../../node_modules/d3-collection/src/nest.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-collection/src/nest.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./map */ "../../../node_modules/d3-collection/src/map.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var keys = [], sortKeys = [], sortValues, rollup, nest; function apply(array, depth, createResult, setResult) { if (depth >= keys.length) { if (sortValues != null) array.sort(sortValues); return rollup != null ? rollup(array) : array; } var i = -1, n = array.length, key = keys[depth++], keyValue, value, valuesByKey = Object(_map__WEBPACK_IMPORTED_MODULE_0__["default"])(), values, result = createResult(); while (++i < n) { if (values = valuesByKey.get(keyValue = key(value = array[i]) + "")) { values.push(value); } else { valuesByKey.set(keyValue, [value]); } } valuesByKey.each(function(values, key) { setResult(result, key, apply(values, depth, createResult, setResult)); }); return result; } function entries(map, depth) { if (++depth > keys.length) return map; var array, sortKey = sortKeys[depth - 1]; if (rollup != null && depth >= keys.length) array = map.entries(); else array = [], map.each(function(v, k) { array.push({key: k, values: entries(v, depth)}); }); return sortKey != null ? array.sort(function(a, b) { return sortKey(a.key, b.key); }) : array; } return nest = { object: function(array) { return apply(array, 0, createObject, setObject); }, map: function(array) { return apply(array, 0, createMap, setMap); }, entries: function(array) { return entries(apply(array, 0, createMap, setMap), 0); }, key: function(d) { keys.push(d); return nest; }, sortKeys: function(order) { sortKeys[keys.length - 1] = order; return nest; }, sortValues: function(order) { sortValues = order; return nest; }, rollup: function(f) { rollup = f; return nest; } }; }); function createObject() { return {}; } function setObject(object, key, value) { object[key] = value; } function createMap() { return Object(_map__WEBPACK_IMPORTED_MODULE_0__["default"])(); } function setMap(map, key, value) { map.set(key, value); } /***/ }), /***/ "../../../node_modules/d3-collection/src/set.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-collection/src/set.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./map */ "../../../node_modules/d3-collection/src/map.js"); function Set() {} var proto = _map__WEBPACK_IMPORTED_MODULE_0__["default"].prototype; Set.prototype = set.prototype = { constructor: Set, has: proto.has, add: function(value) { value += ""; this[_map__WEBPACK_IMPORTED_MODULE_0__["prefix"] + value] = value; return this; }, remove: proto.remove, clear: proto.clear, values: proto.keys, size: proto.size, empty: proto.empty, each: proto.each }; function set(object, f) { var set = new Set; // Copy constructor. if (object instanceof Set) object.each(function(value) { set.add(value); }); // Otherwise, assume it’s an array. else if (object) { var i = -1, n = object.length; if (f == null) while (++i < n) set.add(object[i]); else while (++i < n) set.add(f(object[i], i, object)); } return set; } /* harmony default export */ __webpack_exports__["default"] = (set); /***/ }), /***/ "../../../node_modules/d3-collection/src/values.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-collection/src/values.js ***! \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(map) { var values = []; for (var key in map) values.push(map[key]); return values; }); /***/ }), /***/ "../../../node_modules/d3-color/src/color.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-color/src/color.js ***! \******************************************************************************/ /*! exports provided: Color, darker, brighter, default, rgbConvert, rgb, Rgb, hslConvert, hsl */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color", function() { return Color; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darker", function() { return darker; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brighter", function() { return brighter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return color; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbConvert", function() { return rgbConvert; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgb", function() { return rgb; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rgb", function() { return Rgb; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hslConvert", function() { return hslConvert; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hsl", function() { return hsl; }); /* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "../../../node_modules/d3-color/src/define.js"); function Color() {} var darker = 0.7; var brighter = 1 / darker; var reI = "\\s*([+-]?\\d+)\\s*", reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex = /^#([0-9a-f]{3,8})$/, reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"), reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"), reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"), reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"), reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"), reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$"); var named = { aliceblue: 0xf0f8ff, antiquewhite: 0xfaebd7, aqua: 0x00ffff, aquamarine: 0x7fffd4, azure: 0xf0ffff, beige: 0xf5f5dc, bisque: 0xffe4c4, black: 0x000000, blanchedalmond: 0xffebcd, blue: 0x0000ff, blueviolet: 0x8a2be2, brown: 0xa52a2a, burlywood: 0xdeb887, cadetblue: 0x5f9ea0, chartreuse: 0x7fff00, chocolate: 0xd2691e, coral: 0xff7f50, cornflowerblue: 0x6495ed, cornsilk: 0xfff8dc, crimson: 0xdc143c, cyan: 0x00ffff, darkblue: 0x00008b, darkcyan: 0x008b8b, darkgoldenrod: 0xb8860b, darkgray: 0xa9a9a9, darkgreen: 0x006400, darkgrey: 0xa9a9a9, darkkhaki: 0xbdb76b, darkmagenta: 0x8b008b, darkolivegreen: 0x556b2f, darkorange: 0xff8c00, darkorchid: 0x9932cc, darkred: 0x8b0000, darksalmon: 0xe9967a, darkseagreen: 0x8fbc8f, darkslateblue: 0x483d8b, darkslategray: 0x2f4f4f, darkslategrey: 0x2f4f4f, darkturquoise: 0x00ced1, darkviolet: 0x9400d3, deeppink: 0xff1493, deepskyblue: 0x00bfff, dimgray: 0x696969, dimgrey: 0x696969, dodgerblue: 0x1e90ff, firebrick: 0xb22222, floralwhite: 0xfffaf0, forestgreen: 0x228b22, fuchsia: 0xff00ff, gainsboro: 0xdcdcdc, ghostwhite: 0xf8f8ff, gold: 0xffd700, goldenrod: 0xdaa520, gray: 0x808080, green: 0x008000, greenyellow: 0xadff2f, grey: 0x808080, honeydew: 0xf0fff0, hotpink: 0xff69b4, indianred: 0xcd5c5c, indigo: 0x4b0082, ivory: 0xfffff0, khaki: 0xf0e68c, lavender: 0xe6e6fa, lavenderblush: 0xfff0f5, lawngreen: 0x7cfc00, lemonchiffon: 0xfffacd, lightblue: 0xadd8e6, lightcoral: 0xf08080, lightcyan: 0xe0ffff, lightgoldenrodyellow: 0xfafad2, lightgray: 0xd3d3d3, lightgreen: 0x90ee90, lightgrey: 0xd3d3d3, lightpink: 0xffb6c1, lightsalmon: 0xffa07a, lightseagreen: 0x20b2aa, lightskyblue: 0x87cefa, lightslategray: 0x778899, lightslategrey: 0x778899, lightsteelblue: 0xb0c4de, lightyellow: 0xffffe0, lime: 0x00ff00, limegreen: 0x32cd32, linen: 0xfaf0e6, magenta: 0xff00ff, maroon: 0x800000, mediumaquamarine: 0x66cdaa, mediumblue: 0x0000cd, mediumorchid: 0xba55d3, mediumpurple: 0x9370db, mediumseagreen: 0x3cb371, mediumslateblue: 0x7b68ee, mediumspringgreen: 0x00fa9a, mediumturquoise: 0x48d1cc, mediumvioletred: 0xc71585, midnightblue: 0x191970, mintcream: 0xf5fffa, mistyrose: 0xffe4e1, moccasin: 0xffe4b5, navajowhite: 0xffdead, navy: 0x000080, oldlace: 0xfdf5e6, olive: 0x808000, olivedrab: 0x6b8e23, orange: 0xffa500, orangered: 0xff4500, orchid: 0xda70d6, palegoldenrod: 0xeee8aa, palegreen: 0x98fb98, paleturquoise: 0xafeeee, palevioletred: 0xdb7093, papayawhip: 0xffefd5, peachpuff: 0xffdab9, peru: 0xcd853f, pink: 0xffc0cb, plum: 0xdda0dd, powderblue: 0xb0e0e6, purple: 0x800080, rebeccapurple: 0x663399, red: 0xff0000, rosybrown: 0xbc8f8f, royalblue: 0x4169e1, saddlebrown: 0x8b4513, salmon: 0xfa8072, sandybrown: 0xf4a460, seagreen: 0x2e8b57, seashell: 0xfff5ee, sienna: 0xa0522d, silver: 0xc0c0c0, skyblue: 0x87ceeb, slateblue: 0x6a5acd, slategray: 0x708090, slategrey: 0x708090, snow: 0xfffafa, springgreen: 0x00ff7f, steelblue: 0x4682b4, tan: 0xd2b48c, teal: 0x008080, thistle: 0xd8bfd8, tomato: 0xff6347, turquoise: 0x40e0d0, violet: 0xee82ee, wheat: 0xf5deb3, white: 0xffffff, whitesmoke: 0xf5f5f5, yellow: 0xffff00, yellowgreen: 0x9acd32 }; Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Color, color, { copy: function(channels) { return Object.assign(new this.constructor, this, channels); }, displayable: function() { return this.rgb().displayable(); }, hex: color_formatHex, // Deprecated! Use color.formatHex. formatHex: color_formatHex, formatHsl: color_formatHsl, formatRgb: color_formatRgb, toString: color_formatRgb }); function color_formatHex() { return this.rgb().formatHex(); } function color_formatHsl() { return hslConvert(this).formatHsl(); } function color_formatRgb() { return this.rgb().formatRgb(); } function color(format) { var m, l; format = (format + "").trim().toLowerCase(); return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000 : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00 : l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000 : l === 4 ? rgba((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000 : null) // invalid hex : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0) : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%) : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1) : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1) : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%) : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1) : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null; } function rgbn(n) { return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1); } function rgba(r, g, b, a) { if (a <= 0) r = g = b = NaN; return new Rgb(r, g, b, a); } function rgbConvert(o) { if (!(o instanceof Color)) o = color(o); if (!o) return new Rgb; o = o.rgb(); return new Rgb(o.r, o.g, o.b, o.opacity); } function rgb(r, g, b, opacity) { return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity); } function Rgb(r, g, b, opacity) { this.r = +r; this.g = +g; this.b = +b; this.opacity = +opacity; } Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Rgb, rgb, Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(Color, { brighter: function(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, darker: function(k) { k = k == null ? darker : Math.pow(darker, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, rgb: function() { return this; }, displayable: function() { return (-0.5 <= this.r && this.r < 255.5) && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1); }, hex: rgb_formatHex, // Deprecated! Use color.formatHex. formatHex: rgb_formatHex, formatRgb: rgb_formatRgb, toString: rgb_formatRgb })); function rgb_formatHex() { return "#" + hex(this.r) + hex(this.g) + hex(this.b); } function rgb_formatRgb() { var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a)); return (a === 1 ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a === 1 ? ")" : ", " + a + ")"); } function hex(value) { value = Math.max(0, Math.min(255, Math.round(value) || 0)); return (value < 16 ? "0" : "") + value.toString(16); } function hsla(h, s, l, a) { if (a <= 0) h = s = l = NaN; else if (l <= 0 || l >= 1) h = s = NaN; else if (s <= 0) h = NaN; return new Hsl(h, s, l, a); } function hslConvert(o) { if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity); if (!(o instanceof Color)) o = color(o); if (!o) return new Hsl; if (o instanceof Hsl) return o; o = o.rgb(); var r = o.r / 255, g = o.g / 255, b = o.b / 255, min = Math.min(r, g, b), max = Math.max(r, g, b), h = NaN, s = max - min, l = (max + min) / 2; if (s) { if (r === max) h = (g - b) / s + (g < b) * 6; else if (g === max) h = (b - r) / s + 2; else h = (r - g) / s + 4; s /= l < 0.5 ? max + min : 2 - max - min; h *= 60; } else { s = l > 0 && l < 1 ? 0 : h; } return new Hsl(h, s, l, o.opacity); } function hsl(h, s, l, opacity) { return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity); } function Hsl(h, s, l, opacity) { this.h = +h; this.s = +s; this.l = +l; this.opacity = +opacity; } Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Hsl, hsl, Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(Color, { brighter: function(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, darker: function(k) { k = k == null ? darker : Math.pow(darker, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, rgb: function() { var h = this.h % 360 + (this.h < 0) * 360, s = isNaN(h) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < 0.5 ? l : 1 - l) * s, m1 = 2 * l - m2; return new Rgb( hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity ); }, displayable: function() { return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1); }, formatHsl: function() { var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a)); return (a === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a === 1 ? ")" : ", " + a + ")"); } })); /* From FvD 13.37, CSS Color Module Level 3 */ function hsl2rgb(h, m1, m2) { return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255; } /***/ }), /***/ "../../../node_modules/d3-color/src/cubehelix.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-color/src/cubehelix.js ***! \**********************************************************************************/ /*! exports provided: default, Cubehelix */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return cubehelix; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cubehelix", function() { return Cubehelix; }); /* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "../../../node_modules/d3-color/src/define.js"); /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color.js */ "../../../node_modules/d3-color/src/color.js"); /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math.js */ "../../../node_modules/d3-color/src/math.js"); var A = -0.14861, B = +1.78277, C = -0.29227, D = -0.90649, E = +1.97294, ED = E * D, EB = E * B, BC_DA = B * C - D * A; function cubehelixConvert(o) { if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity); if (!(o instanceof _color_js__WEBPACK_IMPORTED_MODULE_1__["Rgb"])) o = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["rgbConvert"])(o); var r = o.r / 255, g = o.g / 255, b = o.b / 255, l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB), bl = b - l, k = (E * (g - l) - C * bl) / D, s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1 h = s ? Math.atan2(k, bl) * _math_js__WEBPACK_IMPORTED_MODULE_2__["rad2deg"] - 120 : NaN; return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity); } function cubehelix(h, s, l, opacity) { return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity); } function Cubehelix(h, s, l, opacity) { this.h = +h; this.s = +s; this.l = +l; this.opacity = +opacity; } Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Cubehelix, cubehelix, Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(_color_js__WEBPACK_IMPORTED_MODULE_1__["Color"], { brighter: function(k) { k = k == null ? _color_js__WEBPACK_IMPORTED_MODULE_1__["brighter"] : Math.pow(_color_js__WEBPACK_IMPORTED_MODULE_1__["brighter"], k); return new Cubehelix(this.h, this.s, this.l * k, this.opacity); }, darker: function(k) { k = k == null ? _color_js__WEBPACK_IMPORTED_MODULE_1__["darker"] : Math.pow(_color_js__WEBPACK_IMPORTED_MODULE_1__["darker"], k); return new Cubehelix(this.h, this.s, this.l * k, this.opacity); }, rgb: function() { var h = isNaN(this.h) ? 0 : (this.h + 120) * _math_js__WEBPACK_IMPORTED_MODULE_2__["deg2rad"], l = +this.l, a = isNaN(this.s) ? 0 : this.s * l * (1 - l), cosh = Math.cos(h), sinh = Math.sin(h); return new _color_js__WEBPACK_IMPORTED_MODULE_1__["Rgb"]( 255 * (l + a * (A * cosh + B * sinh)), 255 * (l + a * (C * cosh + D * sinh)), 255 * (l + a * (E * cosh)), this.opacity ); } })); /***/ }), /***/ "../../../node_modules/d3-color/src/define.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-color/src/define.js ***! \*******************************************************************************/ /*! exports provided: default, extend */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extend", function() { return extend; }); /* harmony default export */ __webpack_exports__["default"] = (function(constructor, factory, prototype) { constructor.prototype = factory.prototype = prototype; prototype.constructor = constructor; }); function extend(parent, definition) { var prototype = Object.create(parent.prototype); for (var key in definition) prototype[key] = definition[key]; return prototype; } /***/ }), /***/ "../../../node_modules/d3-color/src/index.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-color/src/index.js ***! \******************************************************************************/ /*! exports provided: color, rgb, hsl, lab, hcl, lch, gray, cubehelix */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./color.js */ "../../../node_modules/d3-color/src/color.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "color", function() { return _color_js__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rgb", function() { return _color_js__WEBPACK_IMPORTED_MODULE_0__["rgb"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hsl", function() { return _color_js__WEBPACK_IMPORTED_MODULE_0__["hsl"]; }); /* harmony import */ var _lab_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lab.js */ "../../../node_modules/d3-color/src/lab.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lab", function() { return _lab_js__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hcl", function() { return _lab_js__WEBPACK_IMPORTED_MODULE_1__["hcl"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lch", function() { return _lab_js__WEBPACK_IMPORTED_MODULE_1__["lch"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "gray", function() { return _lab_js__WEBPACK_IMPORTED_MODULE_1__["gray"]; }); /* harmony import */ var _cubehelix_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cubehelix.js */ "../../../node_modules/d3-color/src/cubehelix.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cubehelix", function() { return _cubehelix_js__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /***/ }), /***/ "../../../node_modules/d3-color/src/lab.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-color/src/lab.js ***! \****************************************************************************/ /*! exports provided: gray, default, Lab, lch, hcl, Hcl */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gray", function() { return gray; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return lab; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lab", function() { return Lab; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lch", function() { return lch; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hcl", function() { return hcl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hcl", function() { return Hcl; }); /* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "../../../node_modules/d3-color/src/define.js"); /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color.js */ "../../../node_modules/d3-color/src/color.js"); /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math.js */ "../../../node_modules/d3-color/src/math.js"); // https://observablehq.com/@mbostock/lab-and-rgb var K = 18, Xn = 0.96422, Yn = 1, Zn = 0.82521, t0 = 4 / 29, t1 = 6 / 29, t2 = 3 * t1 * t1, t3 = t1 * t1 * t1; function labConvert(o) { if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity); if (o instanceof Hcl) return hcl2lab(o); if (!(o instanceof _color_js__WEBPACK_IMPORTED_MODULE_1__["Rgb"])) o = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["rgbConvert"])(o); var r = rgb2lrgb(o.r), g = rgb2lrgb(o.g), b = rgb2lrgb(o.b), y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z; if (r === g && g === b) x = z = y; else { x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn); z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn); } return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity); } function gray(l, opacity) { return new Lab(l, 0, 0, opacity == null ? 1 : opacity); } function lab(l, a, b, opacity) { return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity); } function Lab(l, a, b, opacity) { this.l = +l; this.a = +a; this.b = +b; this.opacity = +opacity; } Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Lab, lab, Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(_color_js__WEBPACK_IMPORTED_MODULE_1__["Color"], { brighter: function(k) { return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity); }, darker: function(k) { return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity); }, rgb: function() { var y = (this.l + 16) / 116, x = isNaN(this.a) ? y : y + this.a / 500, z = isNaN(this.b) ? y : y - this.b / 200; x = Xn * lab2xyz(x); y = Yn * lab2xyz(y); z = Zn * lab2xyz(z); return new _color_js__WEBPACK_IMPORTED_MODULE_1__["Rgb"]( lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z), lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z), lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z), this.opacity ); } })); function xyz2lab(t) { return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0; } function lab2xyz(t) { return t > t1 ? t * t * t : t2 * (t - t0); } function lrgb2rgb(x) { return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055); } function rgb2lrgb(x) { return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4); } function hclConvert(o) { if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity); if (!(o instanceof Lab)) o = labConvert(o); if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity); var h = Math.atan2(o.b, o.a) * _math_js__WEBPACK_IMPORTED_MODULE_2__["rad2deg"]; return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity); } function lch(l, c, h, opacity) { return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity); } function hcl(h, c, l, opacity) { return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity); } function Hcl(h, c, l, opacity) { this.h = +h; this.c = +c; this.l = +l; this.opacity = +opacity; } function hcl2lab(o) { if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity); var h = o.h * _math_js__WEBPACK_IMPORTED_MODULE_2__["deg2rad"]; return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity); } Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Hcl, hcl, Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(_color_js__WEBPACK_IMPORTED_MODULE_1__["Color"], { brighter: function(k) { return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity); }, darker: function(k) { return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity); }, rgb: function() { return hcl2lab(this).rgb(); } })); /***/ }), /***/ "../../../node_modules/d3-color/src/math.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-color/src/math.js ***! \*****************************************************************************/ /*! exports provided: deg2rad, rad2deg */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deg2rad", function() { return deg2rad; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rad2deg", function() { return rad2deg; }); var deg2rad = Math.PI / 180; var rad2deg = 180 / Math.PI; /***/ }), /***/ "../../../node_modules/d3-ease/src/back.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-ease/src/back.js ***! \****************************************************************************/ /*! exports provided: backIn, backOut, backInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "backIn", function() { return backIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "backOut", function() { return backOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "backInOut", function() { return backInOut; }); var overshoot = 1.70158; var backIn = (function custom(s) { s = +s; function backIn(t) { return t * t * ((s + 1) * t - s); } backIn.overshoot = custom; return backIn; })(overshoot); var backOut = (function custom(s) { s = +s; function backOut(t) { return --t * t * ((s + 1) * t + s) + 1; } backOut.overshoot = custom; return backOut; })(overshoot); var backInOut = (function custom(s) { s = +s; function backInOut(t) { return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2; } backInOut.overshoot = custom; return backInOut; })(overshoot); /***/ }), /***/ "../../../node_modules/d3-ease/src/bounce.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-ease/src/bounce.js ***! \******************************************************************************/ /*! exports provided: bounceIn, bounceOut, bounceInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounceIn", function() { return bounceIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounceOut", function() { return bounceOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounceInOut", function() { return bounceInOut; }); var b1 = 4 / 11, b2 = 6 / 11, b3 = 8 / 11, b4 = 3 / 4, b5 = 9 / 11, b6 = 10 / 11, b7 = 15 / 16, b8 = 21 / 22, b9 = 63 / 64, b0 = 1 / b1 / b1; function bounceIn(t) { return 1 - bounceOut(1 - t); } function bounceOut(t) { return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9; } function bounceInOut(t) { return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2; } /***/ }), /***/ "../../../node_modules/d3-ease/src/circle.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-ease/src/circle.js ***! \******************************************************************************/ /*! exports provided: circleIn, circleOut, circleInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleIn", function() { return circleIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleOut", function() { return circleOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleInOut", function() { return circleInOut; }); function circleIn(t) { return 1 - Math.sqrt(1 - t * t); } function circleOut(t) { return Math.sqrt(1 - --t * t); } function circleInOut(t) { return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2; } /***/ }), /***/ "../../../node_modules/d3-ease/src/cubic.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-ease/src/cubic.js ***! \*****************************************************************************/ /*! exports provided: cubicIn, cubicOut, cubicInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubicIn", function() { return cubicIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubicOut", function() { return cubicOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubicInOut", function() { return cubicInOut; }); function cubicIn(t) { return t * t * t; } function cubicOut(t) { return --t * t * t + 1; } function cubicInOut(t) { return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2; } /***/ }), /***/ "../../../node_modules/d3-ease/src/elastic.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-ease/src/elastic.js ***! \*******************************************************************************/ /*! exports provided: elasticIn, elasticOut, elasticInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elasticIn", function() { return elasticIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elasticOut", function() { return elasticOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elasticInOut", function() { return elasticInOut; }); var tau = 2 * Math.PI, amplitude = 1, period = 0.3; var elasticIn = (function custom(a, p) { var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); function elasticIn(t) { return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p); } elasticIn.amplitude = function(a) { return custom(a, p * tau); }; elasticIn.period = function(p) { return custom(a, p); }; return elasticIn; })(amplitude, period); var elasticOut = (function custom(a, p) { var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); function elasticOut(t) { return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p); } elasticOut.amplitude = function(a) { return custom(a, p * tau); }; elasticOut.period = function(p) { return custom(a, p); }; return elasticOut; })(amplitude, period); var elasticInOut = (function custom(a, p) { var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); function elasticInOut(t) { return ((t = t * 2 - 1) < 0 ? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p) : 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2; } elasticInOut.amplitude = function(a) { return custom(a, p * tau); }; elasticInOut.period = function(p) { return custom(a, p); }; return elasticInOut; })(amplitude, period); /***/ }), /***/ "../../../node_modules/d3-ease/src/exp.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-ease/src/exp.js ***! \***************************************************************************/ /*! exports provided: expIn, expOut, expInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expIn", function() { return expIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expOut", function() { return expOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expInOut", function() { return expInOut; }); function expIn(t) { return Math.pow(2, 10 * t - 10); } function expOut(t) { return 1 - Math.pow(2, -10 * t); } function expInOut(t) { return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2; } /***/ }), /***/ "../../../node_modules/d3-ease/src/index.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-ease/src/index.js ***! \*****************************************************************************/ /*! exports provided: easeLinear, easeQuad, easeQuadIn, easeQuadOut, easeQuadInOut, easeCubic, easeCubicIn, easeCubicOut, easeCubicInOut, easePoly, easePolyIn, easePolyOut, easePolyInOut, easeSin, easeSinIn, easeSinOut, easeSinInOut, easeExp, easeExpIn, easeExpOut, easeExpInOut, easeCircle, easeCircleIn, easeCircleOut, easeCircleInOut, easeBounce, easeBounceIn, easeBounceOut, easeBounceInOut, easeBack, easeBackIn, easeBackOut, easeBackInOut, easeElastic, easeElasticIn, easeElasticOut, easeElasticInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../../node_modules/d3-ease/src/linear.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeLinear", function() { return _linear_js__WEBPACK_IMPORTED_MODULE_0__["linear"]; }); /* harmony import */ var _quad_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./quad.js */ "../../../node_modules/d3-ease/src/quad.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuad", function() { return _quad_js__WEBPACK_IMPORTED_MODULE_1__["quadInOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadIn", function() { return _quad_js__WEBPACK_IMPORTED_MODULE_1__["quadIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadOut", function() { return _quad_js__WEBPACK_IMPORTED_MODULE_1__["quadOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadInOut", function() { return _quad_js__WEBPACK_IMPORTED_MODULE_1__["quadInOut"]; }); /* harmony import */ var _cubic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cubic.js */ "../../../node_modules/d3-ease/src/cubic.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubic", function() { return _cubic_js__WEBPACK_IMPORTED_MODULE_2__["cubicInOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicIn", function() { return _cubic_js__WEBPACK_IMPORTED_MODULE_2__["cubicIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicOut", function() { return _cubic_js__WEBPACK_IMPORTED_MODULE_2__["cubicOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicInOut", function() { return _cubic_js__WEBPACK_IMPORTED_MODULE_2__["cubicInOut"]; }); /* harmony import */ var _poly_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./poly.js */ "../../../node_modules/d3-ease/src/poly.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePoly", function() { return _poly_js__WEBPACK_IMPORTED_MODULE_3__["polyInOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyIn", function() { return _poly_js__WEBPACK_IMPORTED_MODULE_3__["polyIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyOut", function() { return _poly_js__WEBPACK_IMPORTED_MODULE_3__["polyOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyInOut", function() { return _poly_js__WEBPACK_IMPORTED_MODULE_3__["polyInOut"]; }); /* harmony import */ var _sin_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./sin.js */ "../../../node_modules/d3-ease/src/sin.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSin", function() { return _sin_js__WEBPACK_IMPORTED_MODULE_4__["sinInOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinIn", function() { return _sin_js__WEBPACK_IMPORTED_MODULE_4__["sinIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinOut", function() { return _sin_js__WEBPACK_IMPORTED_MODULE_4__["sinOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinInOut", function() { return _sin_js__WEBPACK_IMPORTED_MODULE_4__["sinInOut"]; }); /* harmony import */ var _exp_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./exp.js */ "../../../node_modules/d3-ease/src/exp.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExp", function() { return _exp_js__WEBPACK_IMPORTED_MODULE_5__["expInOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpIn", function() { return _exp_js__WEBPACK_IMPORTED_MODULE_5__["expIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpOut", function() { return _exp_js__WEBPACK_IMPORTED_MODULE_5__["expOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpInOut", function() { return _exp_js__WEBPACK_IMPORTED_MODULE_5__["expInOut"]; }); /* harmony import */ var _circle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./circle.js */ "../../../node_modules/d3-ease/src/circle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircle", function() { return _circle_js__WEBPACK_IMPORTED_MODULE_6__["circleInOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleIn", function() { return _circle_js__WEBPACK_IMPORTED_MODULE_6__["circleIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleOut", function() { return _circle_js__WEBPACK_IMPORTED_MODULE_6__["circleOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleInOut", function() { return _circle_js__WEBPACK_IMPORTED_MODULE_6__["circleInOut"]; }); /* harmony import */ var _bounce_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./bounce.js */ "../../../node_modules/d3-ease/src/bounce.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounce", function() { return _bounce_js__WEBPACK_IMPORTED_MODULE_7__["bounceOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceIn", function() { return _bounce_js__WEBPACK_IMPORTED_MODULE_7__["bounceIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceOut", function() { return _bounce_js__WEBPACK_IMPORTED_MODULE_7__["bounceOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceInOut", function() { return _bounce_js__WEBPACK_IMPORTED_MODULE_7__["bounceInOut"]; }); /* harmony import */ var _back_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./back.js */ "../../../node_modules/d3-ease/src/back.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBack", function() { return _back_js__WEBPACK_IMPORTED_MODULE_8__["backInOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackIn", function() { return _back_js__WEBPACK_IMPORTED_MODULE_8__["backIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackOut", function() { return _back_js__WEBPACK_IMPORTED_MODULE_8__["backOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackInOut", function() { return _back_js__WEBPACK_IMPORTED_MODULE_8__["backInOut"]; }); /* harmony import */ var _elastic_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./elastic.js */ "../../../node_modules/d3-ease/src/elastic.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElastic", function() { return _elastic_js__WEBPACK_IMPORTED_MODULE_9__["elasticOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticIn", function() { return _elastic_js__WEBPACK_IMPORTED_MODULE_9__["elasticIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticOut", function() { return _elastic_js__WEBPACK_IMPORTED_MODULE_9__["elasticOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticInOut", function() { return _elastic_js__WEBPACK_IMPORTED_MODULE_9__["elasticInOut"]; }); /***/ }), /***/ "../../../node_modules/d3-ease/src/linear.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-ease/src/linear.js ***! \******************************************************************************/ /*! exports provided: linear */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linear", function() { return linear; }); function linear(t) { return +t; } /***/ }), /***/ "../../../node_modules/d3-ease/src/poly.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-ease/src/poly.js ***! \****************************************************************************/ /*! exports provided: polyIn, polyOut, polyInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyIn", function() { return polyIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyOut", function() { return polyOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyInOut", function() { return polyInOut; }); var exponent = 3; var polyIn = (function custom(e) { e = +e; function polyIn(t) { return Math.pow(t, e); } polyIn.exponent = custom; return polyIn; })(exponent); var polyOut = (function custom(e) { e = +e; function polyOut(t) { return 1 - Math.pow(1 - t, e); } polyOut.exponent = custom; return polyOut; })(exponent); var polyInOut = (function custom(e) { e = +e; function polyInOut(t) { return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2; } polyInOut.exponent = custom; return polyInOut; })(exponent); /***/ }), /***/ "../../../node_modules/d3-ease/src/quad.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-ease/src/quad.js ***! \****************************************************************************/ /*! exports provided: quadIn, quadOut, quadInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quadIn", function() { return quadIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quadOut", function() { return quadOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quadInOut", function() { return quadInOut; }); function quadIn(t) { return t * t; } function quadOut(t) { return t * (2 - t); } function quadInOut(t) { return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2; } /***/ }), /***/ "../../../node_modules/d3-ease/src/sin.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-ease/src/sin.js ***! \***************************************************************************/ /*! exports provided: sinIn, sinOut, sinInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sinIn", function() { return sinIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sinOut", function() { return sinOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sinInOut", function() { return sinInOut; }); var pi = Math.PI, halfPi = pi / 2; function sinIn(t) { return 1 - Math.cos(t * halfPi); } function sinOut(t) { return Math.sin(t * halfPi); } function sinInOut(t) { return (1 - Math.cos(pi * t)) / 2; } /***/ }), /***/ "../../../node_modules/d3-format/src/defaultLocale.js": /*!***************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-format/src/defaultLocale.js ***! \***************************************************************************************/ /*! exports provided: format, formatPrefix, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "format", function() { return format; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatPrefix", function() { return formatPrefix; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return defaultLocale; }); /* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../../node_modules/d3-format/src/locale.js"); var locale; var format; var formatPrefix; defaultLocale({ decimal: ".", thousands: ",", grouping: [3], currency: ["$", ""], minus: "-" }); function defaultLocale(definition) { locale = Object(_locale_js__WEBPACK_IMPORTED_MODULE_0__["default"])(definition); format = locale.format; formatPrefix = locale.formatPrefix; return locale; } /***/ }), /***/ "../../../node_modules/d3-format/src/exponent.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-format/src/exponent.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "../../../node_modules/d3-format/src/formatDecimal.js"); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return x = Object(_formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.abs(x)), x ? x[1] : NaN; }); /***/ }), /***/ "../../../node_modules/d3-format/src/formatDecimal.js": /*!***************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-format/src/formatDecimal.js ***! \***************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); // Computes the decimal coefficient and exponent of the specified number x with // significant digits p, where x is positive and p is in [1, 21] or undefined. // For example, formatDecimal(1.23) returns ["123", 0]. /* harmony default export */ __webpack_exports__["default"] = (function(x, p) { if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; // NaN, ±Infinity var i, coefficient = x.slice(0, i); // The string returned by toExponential either has the form \d\.\d+e[-+]\d+ // (e.g., 1.2e+3) or the form \de[-+]\d+ (e.g., 1e+3). return [ coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, +x.slice(i + 1) ]; }); /***/ }), /***/ "../../../node_modules/d3-format/src/formatGroup.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-format/src/formatGroup.js ***! \*************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(grouping, thousands) { return function(value, width) { var i = value.length, t = [], j = 0, g = grouping[0], length = 0; while (i > 0 && g > 0) { if (length + g + 1 > width) g = Math.max(1, width - length); t.push(value.substring(i -= g, i + g)); if ((length += g + 1) > width) break; g = grouping[j = (j + 1) % grouping.length]; } return t.reverse().join(thousands); }; }); /***/ }), /***/ "../../../node_modules/d3-format/src/formatNumerals.js": /*!****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-format/src/formatNumerals.js ***! \****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(numerals) { return function(value) { return value.replace(/[0-9]/g, function(i) { return numerals[+i]; }); }; }); /***/ }), /***/ "../../../node_modules/d3-format/src/formatPrefixAuto.js": /*!******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-format/src/formatPrefixAuto.js ***! \******************************************************************************************/ /*! exports provided: prefixExponent, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefixExponent", function() { return prefixExponent; }); /* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "../../../node_modules/d3-format/src/formatDecimal.js"); var prefixExponent; /* harmony default export */ __webpack_exports__["default"] = (function(x, p) { var d = Object(_formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__["default"])(x, p); if (!d) return x + ""; var coefficient = d[0], exponent = d[1], i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1, n = coefficient.length; return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + Object(_formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__["default"])(x, Math.max(0, p + i - 1))[0]; // less than 1y! }); /***/ }), /***/ "../../../node_modules/d3-format/src/formatRounded.js": /*!***************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-format/src/formatRounded.js ***! \***************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "../../../node_modules/d3-format/src/formatDecimal.js"); /* harmony default export */ __webpack_exports__["default"] = (function(x, p) { var d = Object(_formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__["default"])(x, p); if (!d) return x + ""; var coefficient = d[0], exponent = d[1]; return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) : coefficient + new Array(exponent - coefficient.length + 2).join("0"); }); /***/ }), /***/ "../../../node_modules/d3-format/src/formatSpecifier.js": /*!*****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-format/src/formatSpecifier.js ***! \*****************************************************************************************/ /*! exports provided: default, FormatSpecifier */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return formatSpecifier; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormatSpecifier", function() { return FormatSpecifier; }); // [[fill]align][sign][symbol][0][width][,][.precision][~][type] var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; function formatSpecifier(specifier) { if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier); var match; return new FormatSpecifier({ fill: match[1], align: match[2], sign: match[3], symbol: match[4], zero: match[5], width: match[6], comma: match[7], precision: match[8] && match[8].slice(1), trim: match[9], type: match[10] }); } formatSpecifier.prototype = FormatSpecifier.prototype; // instanceof function FormatSpecifier(specifier) { this.fill = specifier.fill === undefined ? " " : specifier.fill + ""; this.align = specifier.align === undefined ? ">" : specifier.align + ""; this.sign = specifier.sign === undefined ? "-" : specifier.sign + ""; this.symbol = specifier.symbol === undefined ? "" : specifier.symbol + ""; this.zero = !!specifier.zero; this.width = specifier.width === undefined ? undefined : +specifier.width; this.comma = !!specifier.comma; this.precision = specifier.precision === undefined ? undefined : +specifier.precision; this.trim = !!specifier.trim; this.type = specifier.type === undefined ? "" : specifier.type + ""; } FormatSpecifier.prototype.toString = function() { return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === undefined ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === undefined ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type; }; /***/ }), /***/ "../../../node_modules/d3-format/src/formatTrim.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-format/src/formatTrim.js ***! \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); // Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k. /* harmony default export */ __webpack_exports__["default"] = (function(s) { out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) { switch (s[i]) { case ".": i0 = i1 = i; break; case "0": if (i0 === 0) i0 = i; i1 = i; break; default: if (!+s[i]) break out; if (i0 > 0) i0 = 0; break; } } return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s; }); /***/ }), /***/ "../../../node_modules/d3-format/src/formatTypes.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-format/src/formatTypes.js ***! \*************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _formatPrefixAuto_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatPrefixAuto.js */ "../../../node_modules/d3-format/src/formatPrefixAuto.js"); /* harmony import */ var _formatRounded_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatRounded.js */ "../../../node_modules/d3-format/src/formatRounded.js"); /* harmony default export */ __webpack_exports__["default"] = ({ "%": function(x, p) { return (x * 100).toFixed(p); }, "b": function(x) { return Math.round(x).toString(2); }, "c": function(x) { return x + ""; }, "d": function(x) { return Math.round(x).toString(10); }, "e": function(x, p) { return x.toExponential(p); }, "f": function(x, p) { return x.toFixed(p); }, "g": function(x, p) { return x.toPrecision(p); }, "o": function(x) { return Math.round(x).toString(8); }, "p": function(x, p) { return Object(_formatRounded_js__WEBPACK_IMPORTED_MODULE_1__["default"])(x * 100, p); }, "r": _formatRounded_js__WEBPACK_IMPORTED_MODULE_1__["default"], "s": _formatPrefixAuto_js__WEBPACK_IMPORTED_MODULE_0__["default"], "X": function(x) { return Math.round(x).toString(16).toUpperCase(); }, "x": function(x) { return Math.round(x).toString(16); } }); /***/ }), /***/ "../../../node_modules/d3-format/src/identity.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-format/src/identity.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return x; }); /***/ }), /***/ "../../../node_modules/d3-format/src/index.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-format/src/index.js ***! \*******************************************************************************/ /*! exports provided: formatDefaultLocale, format, formatPrefix, formatLocale, formatSpecifier, FormatSpecifier, precisionFixed, precisionPrefix, precisionRound */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultLocale.js */ "../../../node_modules/d3-format/src/defaultLocale.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatDefaultLocale", function() { return _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "format", function() { return _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["format"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatPrefix", function() { return _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["formatPrefix"]; }); /* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./locale.js */ "../../../node_modules/d3-format/src/locale.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatLocale", function() { return _locale_js__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _formatSpecifier_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./formatSpecifier.js */ "../../../node_modules/d3-format/src/formatSpecifier.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatSpecifier", function() { return _formatSpecifier_js__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormatSpecifier", function() { return _formatSpecifier_js__WEBPACK_IMPORTED_MODULE_2__["FormatSpecifier"]; }); /* harmony import */ var _precisionFixed_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./precisionFixed.js */ "../../../node_modules/d3-format/src/precisionFixed.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionFixed", function() { return _precisionFixed_js__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _precisionPrefix_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./precisionPrefix.js */ "../../../node_modules/d3-format/src/precisionPrefix.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionPrefix", function() { return _precisionPrefix_js__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _precisionRound_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./precisionRound.js */ "../../../node_modules/d3-format/src/precisionRound.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionRound", function() { return _precisionRound_js__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /***/ }), /***/ "../../../node_modules/d3-format/src/locale.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-format/src/locale.js ***! \********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _exponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent.js */ "../../../node_modules/d3-format/src/exponent.js"); /* harmony import */ var _formatGroup_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatGroup.js */ "../../../node_modules/d3-format/src/formatGroup.js"); /* harmony import */ var _formatNumerals_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./formatNumerals.js */ "../../../node_modules/d3-format/src/formatNumerals.js"); /* harmony import */ var _formatSpecifier_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./formatSpecifier.js */ "../../../node_modules/d3-format/src/formatSpecifier.js"); /* harmony import */ var _formatTrim_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./formatTrim.js */ "../../../node_modules/d3-format/src/formatTrim.js"); /* harmony import */ var _formatTypes_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./formatTypes.js */ "../../../node_modules/d3-format/src/formatTypes.js"); /* harmony import */ var _formatPrefixAuto_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./formatPrefixAuto.js */ "../../../node_modules/d3-format/src/formatPrefixAuto.js"); /* harmony import */ var _identity_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./identity.js */ "../../../node_modules/d3-format/src/identity.js"); var map = Array.prototype.map, prefixes = ["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]; /* harmony default export */ __webpack_exports__["default"] = (function(locale) { var group = locale.grouping === undefined || locale.thousands === undefined ? _identity_js__WEBPACK_IMPORTED_MODULE_7__["default"] : Object(_formatGroup_js__WEBPACK_IMPORTED_MODULE_1__["default"])(map.call(locale.grouping, Number), locale.thousands + ""), currencyPrefix = locale.currency === undefined ? "" : locale.currency[0] + "", currencySuffix = locale.currency === undefined ? "" : locale.currency[1] + "", decimal = locale.decimal === undefined ? "." : locale.decimal + "", numerals = locale.numerals === undefined ? _identity_js__WEBPACK_IMPORTED_MODULE_7__["default"] : Object(_formatNumerals_js__WEBPACK_IMPORTED_MODULE_2__["default"])(map.call(locale.numerals, String)), percent = locale.percent === undefined ? "%" : locale.percent + "", minus = locale.minus === undefined ? "-" : locale.minus + "", nan = locale.nan === undefined ? "NaN" : locale.nan + ""; function newFormat(specifier) { specifier = Object(_formatSpecifier_js__WEBPACK_IMPORTED_MODULE_3__["default"])(specifier); var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero = specifier.zero, width = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type = specifier.type; // The "n" type is an alias for ",g". if (type === "n") comma = true, type = "g"; // The "" type, and any invalid type, is an alias for ".12~g". else if (!_formatTypes_js__WEBPACK_IMPORTED_MODULE_5__["default"][type]) precision === undefined && (precision = 12), trim = true, type = "g"; // If zero fill is specified, padding goes after sign and before digits. if (zero || (fill === "0" && align === "=")) zero = true, fill = "0", align = "="; // Compute the prefix and suffix. // For SI-prefix, the suffix is lazily computed. var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "", suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : ""; // What format function should we use? // Is this an integer type? // Can this type generate exponential notation? var formatType = _formatTypes_js__WEBPACK_IMPORTED_MODULE_5__["default"][type], maybeSuffix = /[defgprs%]/.test(type); // Set the default precision if not specified, // or clamp the specified precision to the supported range. // For significant precision, it must be in [1, 21]. // For fixed precision, it must be in [0, 20]. precision = precision === undefined ? 6 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision)); function format(value) { var valuePrefix = prefix, valueSuffix = suffix, i, n, c; if (type === "c") { valueSuffix = formatType(value) + valueSuffix; value = ""; } else { value = +value; // Determine the sign. -0 is not less than 0, but 1 / -0 is! var valueNegative = value < 0 || 1 / value < 0; // Perform the initial formatting. value = isNaN(value) ? nan : formatType(Math.abs(value), precision); // Trim insignificant zeros. if (trim) value = Object(_formatTrim_js__WEBPACK_IMPORTED_MODULE_4__["default"])(value); // If a negative value rounds to zero after formatting, and no explicit positive sign is requested, hide the sign. if (valueNegative && +value === 0 && sign !== "+") valueNegative = false; // Compute the prefix and suffix. valuePrefix = (valueNegative ? (sign === "(" ? sign : minus) : sign === "-" || sign === "(" ? "" : sign) + valuePrefix; valueSuffix = (type === "s" ? prefixes[8 + _formatPrefixAuto_js__WEBPACK_IMPORTED_MODULE_6__["prefixExponent"] / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : ""); // Break the formatted value into the integer “value” part that can be // grouped, and fractional or exponential “suffix” part that is not. if (maybeSuffix) { i = -1, n = value.length; while (++i < n) { if (c = value.charCodeAt(i), 48 > c || c > 57) { valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix; value = value.slice(0, i); break; } } } } // If the fill character is not "0", grouping is applied before padding. if (comma && !zero) value = group(value, Infinity); // Compute the padding. var length = valuePrefix.length + value.length + valueSuffix.length, padding = length < width ? new Array(width - length + 1).join(fill) : ""; // If the fill character is "0", grouping is applied after padding. if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = ""; // Reconstruct the final output based on the desired alignment. switch (align) { case "<": value = valuePrefix + value + valueSuffix + padding; break; case "=": value = valuePrefix + padding + value + valueSuffix; break; case "^": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break; default: value = padding + valuePrefix + value + valueSuffix; break; } return numerals(value); } format.toString = function() { return specifier + ""; }; return format; } function formatPrefix(specifier, value) { var f = newFormat((specifier = Object(_formatSpecifier_js__WEBPACK_IMPORTED_MODULE_3__["default"])(specifier), specifier.type = "f", specifier)), e = Math.max(-8, Math.min(8, Math.floor(Object(_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value) / 3))) * 3, k = Math.pow(10, -e), prefix = prefixes[8 + e / 3]; return function(value) { return f(k * value) + prefix; }; } return { format: newFormat, formatPrefix: formatPrefix }; }); /***/ }), /***/ "../../../node_modules/d3-format/src/precisionFixed.js": /*!****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-format/src/precisionFixed.js ***! \****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _exponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent.js */ "../../../node_modules/d3-format/src/exponent.js"); /* harmony default export */ __webpack_exports__["default"] = (function(step) { return Math.max(0, -Object(_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.abs(step))); }); /***/ }), /***/ "../../../node_modules/d3-format/src/precisionPrefix.js": /*!*****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-format/src/precisionPrefix.js ***! \*****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _exponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent.js */ "../../../node_modules/d3-format/src/exponent.js"); /* harmony default export */ __webpack_exports__["default"] = (function(step, value) { return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Object(_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value) / 3))) * 3 - Object(_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.abs(step))); }); /***/ }), /***/ "../../../node_modules/d3-format/src/precisionRound.js": /*!****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-format/src/precisionRound.js ***! \****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _exponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent.js */ "../../../node_modules/d3-format/src/exponent.js"); /* harmony default export */ __webpack_exports__["default"] = (function(step, max) { step = Math.abs(step), max = Math.abs(max) - step; return Math.max(0, Object(_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(max) - Object(_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(step)) + 1; }); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/array.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/array.js ***! \************************************************************************************/ /*! exports provided: default, genericArray */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "genericArray", function() { return genericArray; }); /* harmony import */ var _value_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./value.js */ "../../../node_modules/d3-interpolate/src/value.js"); /* harmony import */ var _numberArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./numberArray.js */ "../../../node_modules/d3-interpolate/src/numberArray.js"); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { return (Object(_numberArray_js__WEBPACK_IMPORTED_MODULE_1__["isNumberArray"])(b) ? _numberArray_js__WEBPACK_IMPORTED_MODULE_1__["default"] : genericArray)(a, b); }); function genericArray(a, b) { var nb = b ? b.length : 0, na = a ? Math.min(nb, a.length) : 0, x = new Array(na), c = new Array(nb), i; for (i = 0; i < na; ++i) x[i] = Object(_value_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a[i], b[i]); for (; i < nb; ++i) c[i] = b[i]; return function(t) { for (i = 0; i < na; ++i) c[i] = x[i](t); return c; }; } /***/ }), /***/ "../../../node_modules/d3-interpolate/src/basis.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/basis.js ***! \************************************************************************************/ /*! exports provided: basis, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "basis", function() { return basis; }); function basis(t1, v0, v1, v2, v3) { var t2 = t1 * t1, t3 = t2 * t1; return ((1 - 3 * t1 + 3 * t2 - t3) * v0 + (4 - 6 * t2 + 3 * t3) * v1 + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2 + t3 * v3) / 6; } /* harmony default export */ __webpack_exports__["default"] = (function(values) { var n = values.length - 1; return function(t) { var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n), v1 = values[i], v2 = values[i + 1], v0 = i > 0 ? values[i - 1] : 2 * v1 - v2, v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1; return basis((t - i / n) * n, v0, v1, v2, v3); }; }); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/basisClosed.js": /*!******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/basisClosed.js ***! \******************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis.js */ "../../../node_modules/d3-interpolate/src/basis.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values) { var n = values.length; return function(t) { var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n), v0 = values[(i + n - 1) % n], v1 = values[i % n], v2 = values[(i + 1) % n], v3 = values[(i + 2) % n]; return Object(_basis_js__WEBPACK_IMPORTED_MODULE_0__["basis"])((t - i / n) * n, v0, v1, v2, v3); }; }); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/color.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/color.js ***! \************************************************************************************/ /*! exports provided: hue, gamma, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hue", function() { return hue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gamma", function() { return gamma; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return nogamma; }); /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "../../../node_modules/d3-interpolate/src/constant.js"); function linear(a, d) { return function(t) { return a + t * d; }; } function exponential(a, b, y) { return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) { return Math.pow(a + t * b, y); }; } function hue(a, b) { var d = b - a; return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(isNaN(a) ? b : a); } function gamma(y) { return (y = +y) === 1 ? nogamma : function(a, b) { return b - a ? exponential(a, b, y) : Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(isNaN(a) ? b : a); }; } function nogamma(a, b) { var d = b - a; return d ? linear(a, d) : Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(isNaN(a) ? b : a); } /***/ }), /***/ "../../../node_modules/d3-interpolate/src/constant.js": /*!***************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/constant.js ***! \***************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return function() { return x; }; }); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/cubehelix.js": /*!****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/cubehelix.js ***! \****************************************************************************************/ /*! exports provided: default, cubehelixLong */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubehelixLong", function() { return cubehelixLong; }); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "../../../node_modules/d3-color/src/index.js"); /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color.js */ "../../../node_modules/d3-interpolate/src/color.js"); function cubehelix(hue) { return (function cubehelixGamma(y) { y = +y; function cubehelix(start, end) { var h = hue((start = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(start)).h, (end = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(end)).h), s = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.s, end.s), l = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.l, end.l), opacity = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity); return function(t) { start.h = h(t); start.s = s(t); start.l = l(Math.pow(t, y)); start.opacity = opacity(t); return start + ""; }; } cubehelix.gamma = cubehelixGamma; return cubehelix; })(1); } /* harmony default export */ __webpack_exports__["default"] = (cubehelix(_color_js__WEBPACK_IMPORTED_MODULE_1__["hue"])); var cubehelixLong = cubehelix(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/date.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/date.js ***! \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { var d = new Date; return a = +a, b = +b, function(t) { return d.setTime(a * (1 - t) + b * t), d; }; }); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/discrete.js": /*!***************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/discrete.js ***! \***************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(range) { var n = range.length; return function(t) { return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))]; }; }); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/hcl.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/hcl.js ***! \**********************************************************************************/ /*! exports provided: default, hclLong */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hclLong", function() { return hclLong; }); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "../../../node_modules/d3-color/src/index.js"); /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color.js */ "../../../node_modules/d3-interpolate/src/color.js"); function hcl(hue) { return function(start, end) { var h = hue((start = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["hcl"])(start)).h, (end = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["hcl"])(end)).h), c = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.c, end.c), l = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.l, end.l), opacity = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity); return function(t) { start.h = h(t); start.c = c(t); start.l = l(t); start.opacity = opacity(t); return start + ""; }; } } /* harmony default export */ __webpack_exports__["default"] = (hcl(_color_js__WEBPACK_IMPORTED_MODULE_1__["hue"])); var hclLong = hcl(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/hsl.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/hsl.js ***! \**********************************************************************************/ /*! exports provided: default, hslLong */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hslLong", function() { return hslLong; }); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "../../../node_modules/d3-color/src/index.js"); /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color.js */ "../../../node_modules/d3-interpolate/src/color.js"); function hsl(hue) { return function(start, end) { var h = hue((start = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["hsl"])(start)).h, (end = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["hsl"])(end)).h), s = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.s, end.s), l = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.l, end.l), opacity = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity); return function(t) { start.h = h(t); start.s = s(t); start.l = l(t); start.opacity = opacity(t); return start + ""; }; } } /* harmony default export */ __webpack_exports__["default"] = (hsl(_color_js__WEBPACK_IMPORTED_MODULE_1__["hue"])); var hslLong = hsl(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/hue.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/hue.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./color.js */ "../../../node_modules/d3-interpolate/src/color.js"); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { var i = Object(_color_js__WEBPACK_IMPORTED_MODULE_0__["hue"])(+a, +b); return function(t) { var x = i(t); return x - 360 * Math.floor(x / 360); }; }); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/index.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/index.js ***! \************************************************************************************/ /*! exports provided: interpolate, interpolateArray, interpolateBasis, interpolateBasisClosed, interpolateDate, interpolateDiscrete, interpolateHue, interpolateNumber, interpolateNumberArray, interpolateObject, interpolateRound, interpolateString, interpolateTransformCss, interpolateTransformSvg, interpolateZoom, interpolateRgb, interpolateRgbBasis, interpolateRgbBasisClosed, interpolateHsl, interpolateHslLong, interpolateLab, interpolateHcl, interpolateHclLong, interpolateCubehelix, interpolateCubehelixLong, piecewise, quantize */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _value_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./value.js */ "../../../node_modules/d3-interpolate/src/value.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolate", function() { return _value_js__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array.js */ "../../../node_modules/d3-interpolate/src/array.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateArray", function() { return _array_js__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./basis.js */ "../../../node_modules/d3-interpolate/src/basis.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBasis", function() { return _basis_js__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _basisClosed_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./basisClosed.js */ "../../../node_modules/d3-interpolate/src/basisClosed.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBasisClosed", function() { return _basisClosed_js__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _date_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./date.js */ "../../../node_modules/d3-interpolate/src/date.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateDate", function() { return _date_js__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _discrete_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./discrete.js */ "../../../node_modules/d3-interpolate/src/discrete.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateDiscrete", function() { return _discrete_js__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony import */ var _hue_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./hue.js */ "../../../node_modules/d3-interpolate/src/hue.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHue", function() { return _hue_js__WEBPACK_IMPORTED_MODULE_6__["default"]; }); /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./number.js */ "../../../node_modules/d3-interpolate/src/number.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateNumber", function() { return _number_js__WEBPACK_IMPORTED_MODULE_7__["default"]; }); /* harmony import */ var _numberArray_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./numberArray.js */ "../../../node_modules/d3-interpolate/src/numberArray.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateNumberArray", function() { return _numberArray_js__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony import */ var _object_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./object.js */ "../../../node_modules/d3-interpolate/src/object.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateObject", function() { return _object_js__WEBPACK_IMPORTED_MODULE_9__["default"]; }); /* harmony import */ var _round_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./round.js */ "../../../node_modules/d3-interpolate/src/round.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRound", function() { return _round_js__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony import */ var _string_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./string.js */ "../../../node_modules/d3-interpolate/src/string.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateString", function() { return _string_js__WEBPACK_IMPORTED_MODULE_11__["default"]; }); /* harmony import */ var _transform_index_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./transform/index.js */ "../../../node_modules/d3-interpolate/src/transform/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformCss", function() { return _transform_index_js__WEBPACK_IMPORTED_MODULE_12__["interpolateTransformCss"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformSvg", function() { return _transform_index_js__WEBPACK_IMPORTED_MODULE_12__["interpolateTransformSvg"]; }); /* harmony import */ var _zoom_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./zoom.js */ "../../../node_modules/d3-interpolate/src/zoom.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateZoom", function() { return _zoom_js__WEBPACK_IMPORTED_MODULE_13__["default"]; }); /* harmony import */ var _rgb_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./rgb.js */ "../../../node_modules/d3-interpolate/src/rgb.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgb", function() { return _rgb_js__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgbBasis", function() { return _rgb_js__WEBPACK_IMPORTED_MODULE_14__["rgbBasis"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgbBasisClosed", function() { return _rgb_js__WEBPACK_IMPORTED_MODULE_14__["rgbBasisClosed"]; }); /* harmony import */ var _hsl_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./hsl.js */ "../../../node_modules/d3-interpolate/src/hsl.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHsl", function() { return _hsl_js__WEBPACK_IMPORTED_MODULE_15__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHslLong", function() { return _hsl_js__WEBPACK_IMPORTED_MODULE_15__["hslLong"]; }); /* harmony import */ var _lab_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./lab.js */ "../../../node_modules/d3-interpolate/src/lab.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateLab", function() { return _lab_js__WEBPACK_IMPORTED_MODULE_16__["default"]; }); /* harmony import */ var _hcl_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./hcl.js */ "../../../node_modules/d3-interpolate/src/hcl.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHcl", function() { return _hcl_js__WEBPACK_IMPORTED_MODULE_17__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHclLong", function() { return _hcl_js__WEBPACK_IMPORTED_MODULE_17__["hclLong"]; }); /* harmony import */ var _cubehelix_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./cubehelix.js */ "../../../node_modules/d3-interpolate/src/cubehelix.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelix", function() { return _cubehelix_js__WEBPACK_IMPORTED_MODULE_18__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelixLong", function() { return _cubehelix_js__WEBPACK_IMPORTED_MODULE_18__["cubehelixLong"]; }); /* harmony import */ var _piecewise_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./piecewise.js */ "../../../node_modules/d3-interpolate/src/piecewise.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "piecewise", function() { return _piecewise_js__WEBPACK_IMPORTED_MODULE_19__["default"]; }); /* harmony import */ var _quantize_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./quantize.js */ "../../../node_modules/d3-interpolate/src/quantize.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantize", function() { return _quantize_js__WEBPACK_IMPORTED_MODULE_20__["default"]; }); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/lab.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/lab.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return lab; }); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "../../../node_modules/d3-color/src/index.js"); /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color.js */ "../../../node_modules/d3-interpolate/src/color.js"); function lab(start, end) { var l = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])((start = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["lab"])(start)).l, (end = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["lab"])(end)).l), a = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.a, end.a), b = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.b, end.b), opacity = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity); return function(t) { start.l = l(t); start.a = a(t); start.b = b(t); start.opacity = opacity(t); return start + ""; }; } /***/ }), /***/ "../../../node_modules/d3-interpolate/src/number.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/number.js ***! \*************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { return a = +a, b = +b, function(t) { return a * (1 - t) + b * t; }; }); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/numberArray.js": /*!******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/numberArray.js ***! \******************************************************************************************/ /*! exports provided: default, isNumberArray */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNumberArray", function() { return isNumberArray; }); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { if (!b) b = []; var n = a ? Math.min(b.length, a.length) : 0, c = b.slice(), i; return function(t) { for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t; return c; }; }); function isNumberArray(x) { return ArrayBuffer.isView(x) && !(x instanceof DataView); } /***/ }), /***/ "../../../node_modules/d3-interpolate/src/object.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/object.js ***! \*************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _value_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./value.js */ "../../../node_modules/d3-interpolate/src/value.js"); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { var i = {}, c = {}, k; if (a === null || typeof a !== "object") a = {}; if (b === null || typeof b !== "object") b = {}; for (k in b) { if (k in a) { i[k] = Object(_value_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a[k], b[k]); } else { c[k] = b[k]; } } return function(t) { for (k in i) c[k] = i[k](t); return c; }; }); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/piecewise.js": /*!****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/piecewise.js ***! \****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return piecewise; }); function piecewise(interpolate, values) { var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n); while (i < n) I[i] = interpolate(v, v = values[++i]); return function(t) { var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n))); return I[i](t - i); }; } /***/ }), /***/ "../../../node_modules/d3-interpolate/src/quantize.js": /*!***************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/quantize.js ***! \***************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(interpolator, n) { var samples = new Array(n); for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1)); return samples; }); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/rgb.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/rgb.js ***! \**********************************************************************************/ /*! exports provided: default, rgbBasis, rgbBasisClosed */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbBasis", function() { return rgbBasis; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbBasisClosed", function() { return rgbBasisClosed; }); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "../../../node_modules/d3-color/src/index.js"); /* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./basis.js */ "../../../node_modules/d3-interpolate/src/basis.js"); /* harmony import */ var _basisClosed_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./basisClosed.js */ "../../../node_modules/d3-interpolate/src/basisClosed.js"); /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./color.js */ "../../../node_modules/d3-interpolate/src/color.js"); /* harmony default export */ __webpack_exports__["default"] = ((function rgbGamma(y) { var color = Object(_color_js__WEBPACK_IMPORTED_MODULE_3__["gamma"])(y); function rgb(start, end) { var r = color((start = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["rgb"])(start)).r, (end = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["rgb"])(end)).r), g = color(start.g, end.g), b = color(start.b, end.b), opacity = Object(_color_js__WEBPACK_IMPORTED_MODULE_3__["default"])(start.opacity, end.opacity); return function(t) { start.r = r(t); start.g = g(t); start.b = b(t); start.opacity = opacity(t); return start + ""; }; } rgb.gamma = rgbGamma; return rgb; })(1)); function rgbSpline(spline) { return function(colors) { var n = colors.length, r = new Array(n), g = new Array(n), b = new Array(n), i, color; for (i = 0; i < n; ++i) { color = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["rgb"])(colors[i]); r[i] = color.r || 0; g[i] = color.g || 0; b[i] = color.b || 0; } r = spline(r); g = spline(g); b = spline(b); color.opacity = 1; return function(t) { color.r = r(t); color.g = g(t); color.b = b(t); return color + ""; }; }; } var rgbBasis = rgbSpline(_basis_js__WEBPACK_IMPORTED_MODULE_1__["default"]); var rgbBasisClosed = rgbSpline(_basisClosed_js__WEBPACK_IMPORTED_MODULE_2__["default"]); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/round.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/round.js ***! \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { return a = +a, b = +b, function(t) { return Math.round(a * (1 - t) + b * t); }; }); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/string.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/string.js ***! \*************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number.js */ "../../../node_modules/d3-interpolate/src/number.js"); var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB = new RegExp(reA.source, "g"); function zero(b) { return function() { return b; }; } function one(b) { return function(t) { return b(t) + ""; }; } /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b am, // current match in a bm, // current match in b bs, // string preceding current number in b, if any i = -1, // index in s s = [], // string constants and placeholders q = []; // number interpolators // Coerce inputs to strings. a = a + "", b = b + ""; // Interpolate pairs of numbers in a & b. while ((am = reA.exec(a)) && (bm = reB.exec(b))) { if ((bs = bm.index) > bi) { // a string precedes the next number in b bs = b.slice(bi, bs); if (s[i]) s[i] += bs; // coalesce with previous string else s[++i] = bs; } if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match if (s[i]) s[i] += bm; // coalesce with previous string else s[++i] = bm; } else { // interpolate non-matching numbers s[++i] = null; q.push({i: i, x: Object(_number_js__WEBPACK_IMPORTED_MODULE_0__["default"])(am, bm)}); } bi = reB.lastIndex; } // Add remains of b. if (bi < b.length) { bs = b.slice(bi); if (s[i]) s[i] += bs; // coalesce with previous string else s[++i] = bs; } // Special optimization for only a single match. // Otherwise, interpolate each of the numbers and rejoin the string. return s.length < 2 ? (q[0] ? one(q[0].x) : zero(b)) : (b = q.length, function(t) { for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t); return s.join(""); }); }); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/transform/decompose.js": /*!**************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/transform/decompose.js ***! \**************************************************************************************************/ /*! exports provided: identity, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "identity", function() { return identity; }); var degrees = 180 / Math.PI; var identity = { translateX: 0, translateY: 0, rotate: 0, skewX: 0, scaleX: 1, scaleY: 1 }; /* harmony default export */ __webpack_exports__["default"] = (function(a, b, c, d, e, f) { var scaleX, scaleY, skewX; if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX; if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX; if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY; if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX; return { translateX: e, translateY: f, rotate: Math.atan2(b, a) * degrees, skewX: Math.atan(skewX) * degrees, scaleX: scaleX, scaleY: scaleY }; }); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/transform/index.js": /*!**********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/transform/index.js ***! \**********************************************************************************************/ /*! exports provided: interpolateTransformCss, interpolateTransformSvg */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformCss", function() { return interpolateTransformCss; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformSvg", function() { return interpolateTransformSvg; }); /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../number.js */ "../../../node_modules/d3-interpolate/src/number.js"); /* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parse.js */ "../../../node_modules/d3-interpolate/src/transform/parse.js"); function interpolateTransform(parse, pxComma, pxParen, degParen) { function pop(s) { return s.length ? s.pop() + " " : ""; } function translate(xa, ya, xb, yb, s, q) { if (xa !== xb || ya !== yb) { var i = s.push("translate(", null, pxComma, null, pxParen); q.push({i: i - 4, x: Object(_number_js__WEBPACK_IMPORTED_MODULE_0__["default"])(xa, xb)}, {i: i - 2, x: Object(_number_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ya, yb)}); } else if (xb || yb) { s.push("translate(" + xb + pxComma + yb + pxParen); } } function rotate(a, b, s, q) { if (a !== b) { if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path q.push({i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: Object(_number_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a, b)}); } else if (b) { s.push(pop(s) + "rotate(" + b + degParen); } } function skewX(a, b, s, q) { if (a !== b) { q.push({i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: Object(_number_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a, b)}); } else if (b) { s.push(pop(s) + "skewX(" + b + degParen); } } function scale(xa, ya, xb, yb, s, q) { if (xa !== xb || ya !== yb) { var i = s.push(pop(s) + "scale(", null, ",", null, ")"); q.push({i: i - 4, x: Object(_number_js__WEBPACK_IMPORTED_MODULE_0__["default"])(xa, xb)}, {i: i - 2, x: Object(_number_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ya, yb)}); } else if (xb !== 1 || yb !== 1) { s.push(pop(s) + "scale(" + xb + "," + yb + ")"); } } return function(a, b) { var s = [], // string constants and placeholders q = []; // number interpolators a = parse(a), b = parse(b); translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q); rotate(a.rotate, b.rotate, s, q); skewX(a.skewX, b.skewX, s, q); scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q); a = b = null; // gc return function(t) { var i = -1, n = q.length, o; while (++i < n) s[(o = q[i]).i] = o.x(t); return s.join(""); }; }; } var interpolateTransformCss = interpolateTransform(_parse_js__WEBPACK_IMPORTED_MODULE_1__["parseCss"], "px, ", "px)", "deg)"); var interpolateTransformSvg = interpolateTransform(_parse_js__WEBPACK_IMPORTED_MODULE_1__["parseSvg"], ", ", ")", ")"); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/transform/parse.js": /*!**********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/transform/parse.js ***! \**********************************************************************************************/ /*! exports provided: parseCss, parseSvg */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseCss", function() { return parseCss; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseSvg", function() { return parseSvg; }); /* harmony import */ var _decompose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./decompose.js */ "../../../node_modules/d3-interpolate/src/transform/decompose.js"); var cssNode, cssRoot, cssView, svgNode; function parseCss(value) { if (value === "none") return _decompose_js__WEBPACK_IMPORTED_MODULE_0__["identity"]; if (!cssNode) cssNode = document.createElement("DIV"), cssRoot = document.documentElement, cssView = document.defaultView; cssNode.style.transform = value; value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue("transform"); cssRoot.removeChild(cssNode); value = value.slice(7, -1).split(","); return Object(_decompose_js__WEBPACK_IMPORTED_MODULE_0__["default"])(+value[0], +value[1], +value[2], +value[3], +value[4], +value[5]); } function parseSvg(value) { if (value == null) return _decompose_js__WEBPACK_IMPORTED_MODULE_0__["identity"]; if (!svgNode) svgNode = document.createElementNS("http://www.w3.org/2000/svg", "g"); svgNode.setAttribute("transform", value); if (!(value = svgNode.transform.baseVal.consolidate())) return _decompose_js__WEBPACK_IMPORTED_MODULE_0__["identity"]; value = value.matrix; return Object(_decompose_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value.a, value.b, value.c, value.d, value.e, value.f); } /***/ }), /***/ "../../../node_modules/d3-interpolate/src/value.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/value.js ***! \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "../../../node_modules/d3-color/src/index.js"); /* harmony import */ var _rgb_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./rgb.js */ "../../../node_modules/d3-interpolate/src/rgb.js"); /* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./array.js */ "../../../node_modules/d3-interpolate/src/array.js"); /* harmony import */ var _date_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./date.js */ "../../../node_modules/d3-interpolate/src/date.js"); /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./number.js */ "../../../node_modules/d3-interpolate/src/number.js"); /* harmony import */ var _object_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./object.js */ "../../../node_modules/d3-interpolate/src/object.js"); /* harmony import */ var _string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./string.js */ "../../../node_modules/d3-interpolate/src/string.js"); /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./constant.js */ "../../../node_modules/d3-interpolate/src/constant.js"); /* harmony import */ var _numberArray_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./numberArray.js */ "../../../node_modules/d3-interpolate/src/numberArray.js"); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { var t = typeof b, c; return b == null || t === "boolean" ? Object(_constant_js__WEBPACK_IMPORTED_MODULE_7__["default"])(b) : (t === "number" ? _number_js__WEBPACK_IMPORTED_MODULE_4__["default"] : t === "string" ? ((c = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["color"])(b)) ? (b = c, _rgb_js__WEBPACK_IMPORTED_MODULE_1__["default"]) : _string_js__WEBPACK_IMPORTED_MODULE_6__["default"]) : b instanceof d3_color__WEBPACK_IMPORTED_MODULE_0__["color"] ? _rgb_js__WEBPACK_IMPORTED_MODULE_1__["default"] : b instanceof Date ? _date_js__WEBPACK_IMPORTED_MODULE_3__["default"] : Object(_numberArray_js__WEBPACK_IMPORTED_MODULE_8__["isNumberArray"])(b) ? _numberArray_js__WEBPACK_IMPORTED_MODULE_8__["default"] : Array.isArray(b) ? _array_js__WEBPACK_IMPORTED_MODULE_2__["genericArray"] : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? _object_js__WEBPACK_IMPORTED_MODULE_5__["default"] : _number_js__WEBPACK_IMPORTED_MODULE_4__["default"])(a, b); }); /***/ }), /***/ "../../../node_modules/d3-interpolate/src/zoom.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-interpolate/src/zoom.js ***! \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); var rho = Math.SQRT2, rho2 = 2, rho4 = 4, epsilon2 = 1e-12; function cosh(x) { return ((x = Math.exp(x)) + 1 / x) / 2; } function sinh(x) { return ((x = Math.exp(x)) - 1 / x) / 2; } function tanh(x) { return ((x = Math.exp(2 * x)) - 1) / (x + 1); } // p0 = [ux0, uy0, w0] // p1 = [ux1, uy1, w1] /* harmony default export */ __webpack_exports__["default"] = (function(p0, p1) { var ux0 = p0[0], uy0 = p0[1], w0 = p0[2], ux1 = p1[0], uy1 = p1[1], w1 = p1[2], dx = ux1 - ux0, dy = uy1 - uy0, d2 = dx * dx + dy * dy, i, S; // Special case for u0 ≅ u1. if (d2 < epsilon2) { S = Math.log(w1 / w0) / rho; i = function(t) { return [ ux0 + t * dx, uy0 + t * dy, w0 * Math.exp(rho * t * S) ]; } } // General case. else { var d1 = Math.sqrt(d2), b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1), b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1), r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0), r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1); S = (r1 - r0) / rho; i = function(t) { var s = t * S, coshr0 = cosh(r0), u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0)); return [ ux0 + u * dx, uy0 + u * dy, w0 * coshr0 / cosh(rho * s + r0) ]; } } i.duration = S * 1000; return i; }); /***/ }), /***/ "../../../node_modules/d3-path/src/index.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-path/src/index.js ***! \*****************************************************************************/ /*! exports provided: path */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _path_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./path.js */ "../../../node_modules/d3-path/src/path.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "path", function() { return _path_js__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /***/ }), /***/ "../../../node_modules/d3-path/src/path.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-path/src/path.js ***! \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); var pi = Math.PI, tau = 2 * pi, epsilon = 1e-6, tauEpsilon = tau - epsilon; function Path() { this._x0 = this._y0 = // start of current subpath this._x1 = this._y1 = null; // end of current subpath this._ = ""; } function path() { return new Path; } Path.prototype = path.prototype = { constructor: Path, moveTo: function(x, y) { this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y); }, closePath: function() { if (this._x1 !== null) { this._x1 = this._x0, this._y1 = this._y0; this._ += "Z"; } }, lineTo: function(x, y) { this._ += "L" + (this._x1 = +x) + "," + (this._y1 = +y); }, quadraticCurveTo: function(x1, y1, x, y) { this._ += "Q" + (+x1) + "," + (+y1) + "," + (this._x1 = +x) + "," + (this._y1 = +y); }, bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._ += "C" + (+x1) + "," + (+y1) + "," + (+x2) + "," + (+y2) + "," + (this._x1 = +x) + "," + (this._y1 = +y); }, arcTo: function(x1, y1, x2, y2, r) { x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r; var x0 = this._x1, y0 = this._y1, x21 = x2 - x1, y21 = y2 - y1, x01 = x0 - x1, y01 = y0 - y1, l01_2 = x01 * x01 + y01 * y01; // Is the radius negative? Error. if (r < 0) throw new Error("negative radius: " + r); // Is this path empty? Move to (x1,y1). if (this._x1 === null) { this._ += "M" + (this._x1 = x1) + "," + (this._y1 = y1); } // Or, is (x1,y1) coincident with (x0,y0)? Do nothing. else if (!(l01_2 > epsilon)); // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear? // Equivalently, is (x1,y1) coincident with (x2,y2)? // Or, is the radius zero? Line to (x1,y1). else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) { this._ += "L" + (this._x1 = x1) + "," + (this._y1 = y1); } // Otherwise, draw an arc! else { var x20 = x2 - x0, y20 = y2 - y0, l21_2 = x21 * x21 + y21 * y21, l20_2 = x20 * x20 + y20 * y20, l21 = Math.sqrt(l21_2), l01 = Math.sqrt(l01_2), l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2), t01 = l / l01, t21 = l / l21; // If the start tangent is not coincident with (x0,y0), line to. if (Math.abs(t01 - 1) > epsilon) { this._ += "L" + (x1 + t01 * x01) + "," + (y1 + t01 * y01); } this._ += "A" + r + "," + r + ",0,0," + (+(y01 * x20 > x01 * y20)) + "," + (this._x1 = x1 + t21 * x21) + "," + (this._y1 = y1 + t21 * y21); } }, arc: function(x, y, r, a0, a1, ccw) { x = +x, y = +y, r = +r, ccw = !!ccw; var dx = r * Math.cos(a0), dy = r * Math.sin(a0), x0 = x + dx, y0 = y + dy, cw = 1 ^ ccw, da = ccw ? a0 - a1 : a1 - a0; // Is the radius negative? Error. if (r < 0) throw new Error("negative radius: " + r); // Is this path empty? Move to (x0,y0). if (this._x1 === null) { this._ += "M" + x0 + "," + y0; } // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0). else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) { this._ += "L" + x0 + "," + y0; } // Is this arc empty? We’re done. if (!r) return; // Does the angle go the wrong way? Flip the direction. if (da < 0) da = da % tau + tau; // Is this a complete circle? Draw two arcs to complete the circle. if (da > tauEpsilon) { this._ += "A" + r + "," + r + ",0,1," + cw + "," + (x - dx) + "," + (y - dy) + "A" + r + "," + r + ",0,1," + cw + "," + (this._x1 = x0) + "," + (this._y1 = y0); } // Is this arc non-empty? Draw an arc! else if (da > epsilon) { this._ += "A" + r + "," + r + ",0," + (+(da >= pi)) + "," + cw + "," + (this._x1 = x + r * Math.cos(a1)) + "," + (this._y1 = y + r * Math.sin(a1)); } }, rect: function(x, y, w, h) { this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y) + "h" + (+w) + "v" + (+h) + "h" + (-w) + "Z"; }, toString: function() { return this._; } }; /* harmony default export */ __webpack_exports__["default"] = (path); /***/ }), /***/ "../../../node_modules/d3-scale/index.js": /*!**************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/index.js ***! \**************************************************************************/ /*! exports provided: scaleBand, scalePoint, scaleIdentity, scaleLinear, scaleLog, scaleOrdinal, scaleImplicit, scalePow, scaleSqrt, scaleQuantile, scaleQuantize, scaleThreshold, scaleTime, scaleUtc, schemeCategory10, schemeCategory20b, schemeCategory20c, schemeCategory20, interpolateCubehelixDefault, interpolateRainbow, interpolateWarm, interpolateCool, interpolateViridis, interpolateMagma, interpolateInferno, interpolatePlasma, scaleSequential */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _src_band__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/band */ "../../../node_modules/d3-scale/src/band.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleBand", function() { return _src_band__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scalePoint", function() { return _src_band__WEBPACK_IMPORTED_MODULE_0__["point"]; }); /* harmony import */ var _src_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/identity */ "../../../node_modules/d3-scale/src/identity.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleIdentity", function() { return _src_identity__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _src_linear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/linear */ "../../../node_modules/d3-scale/src/linear.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleLinear", function() { return _src_linear__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _src_log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./src/log */ "../../../node_modules/d3-scale/src/log.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleLog", function() { return _src_log__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _src_ordinal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./src/ordinal */ "../../../node_modules/d3-scale/src/ordinal.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleOrdinal", function() { return _src_ordinal__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleImplicit", function() { return _src_ordinal__WEBPACK_IMPORTED_MODULE_4__["implicit"]; }); /* harmony import */ var _src_pow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./src/pow */ "../../../node_modules/d3-scale/src/pow.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scalePow", function() { return _src_pow__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSqrt", function() { return _src_pow__WEBPACK_IMPORTED_MODULE_5__["sqrt"]; }); /* harmony import */ var _src_quantile__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./src/quantile */ "../../../node_modules/d3-scale/src/quantile.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleQuantile", function() { return _src_quantile__WEBPACK_IMPORTED_MODULE_6__["default"]; }); /* harmony import */ var _src_quantize__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./src/quantize */ "../../../node_modules/d3-scale/src/quantize.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleQuantize", function() { return _src_quantize__WEBPACK_IMPORTED_MODULE_7__["default"]; }); /* harmony import */ var _src_threshold__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./src/threshold */ "../../../node_modules/d3-scale/src/threshold.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleThreshold", function() { return _src_threshold__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony import */ var _src_time__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./src/time */ "../../../node_modules/d3-scale/src/time.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleTime", function() { return _src_time__WEBPACK_IMPORTED_MODULE_9__["default"]; }); /* harmony import */ var _src_utcTime__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./src/utcTime */ "../../../node_modules/d3-scale/src/utcTime.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleUtc", function() { return _src_utcTime__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony import */ var _src_category10__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./src/category10 */ "../../../node_modules/d3-scale/src/category10.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeCategory10", function() { return _src_category10__WEBPACK_IMPORTED_MODULE_11__["default"]; }); /* harmony import */ var _src_category20b__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./src/category20b */ "../../../node_modules/d3-scale/src/category20b.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeCategory20b", function() { return _src_category20b__WEBPACK_IMPORTED_MODULE_12__["default"]; }); /* harmony import */ var _src_category20c__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./src/category20c */ "../../../node_modules/d3-scale/src/category20c.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeCategory20c", function() { return _src_category20c__WEBPACK_IMPORTED_MODULE_13__["default"]; }); /* harmony import */ var _src_category20__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./src/category20 */ "../../../node_modules/d3-scale/src/category20.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeCategory20", function() { return _src_category20__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /* harmony import */ var _src_cubehelix__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./src/cubehelix */ "../../../node_modules/d3-scale/src/cubehelix.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelixDefault", function() { return _src_cubehelix__WEBPACK_IMPORTED_MODULE_15__["default"]; }); /* harmony import */ var _src_rainbow__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./src/rainbow */ "../../../node_modules/d3-scale/src/rainbow.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRainbow", function() { return _src_rainbow__WEBPACK_IMPORTED_MODULE_16__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateWarm", function() { return _src_rainbow__WEBPACK_IMPORTED_MODULE_16__["warm"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCool", function() { return _src_rainbow__WEBPACK_IMPORTED_MODULE_16__["cool"]; }); /* harmony import */ var _src_viridis__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./src/viridis */ "../../../node_modules/d3-scale/src/viridis.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateViridis", function() { return _src_viridis__WEBPACK_IMPORTED_MODULE_17__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateMagma", function() { return _src_viridis__WEBPACK_IMPORTED_MODULE_17__["magma"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateInferno", function() { return _src_viridis__WEBPACK_IMPORTED_MODULE_17__["inferno"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePlasma", function() { return _src_viridis__WEBPACK_IMPORTED_MODULE_17__["plasma"]; }); /* harmony import */ var _src_sequential__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./src/sequential */ "../../../node_modules/d3-scale/src/sequential.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSequential", function() { return _src_sequential__WEBPACK_IMPORTED_MODULE_18__["default"]; }); /***/ }), /***/ "../../../node_modules/d3-scale/src/array.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/array.js ***! \******************************************************************************/ /*! exports provided: map, slice */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "map", function() { return map; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; }); var array = Array.prototype; var map = array.map; var slice = array.slice; /***/ }), /***/ "../../../node_modules/d3-scale/src/band.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/band.js ***! \*****************************************************************************/ /*! exports provided: default, point */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return band; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../../node_modules/d3-array/src/index.js"); /* harmony import */ var _ordinal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ordinal */ "../../../node_modules/d3-scale/src/ordinal.js"); function band() { var scale = Object(_ordinal__WEBPACK_IMPORTED_MODULE_1__["default"])().unknown(undefined), domain = scale.domain, ordinalRange = scale.range, range = [0, 1], step, bandwidth, round = false, paddingInner = 0, paddingOuter = 0, align = 0.5; delete scale.unknown; function rescale() { var n = domain().length, reverse = range[1] < range[0], start = range[reverse - 0], stop = range[1 - reverse]; step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2); if (round) step = Math.floor(step); start += (stop - start - step * (n - paddingInner)) * align; bandwidth = step * (1 - paddingInner); if (round) start = Math.round(start), bandwidth = Math.round(bandwidth); var values = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(n).map(function(i) { return start + step * i; }); return ordinalRange(reverse ? values.reverse() : values); } scale.domain = function(_) { return arguments.length ? (domain(_), rescale()) : domain(); }; scale.range = function(_) { return arguments.length ? (range = [+_[0], +_[1]], rescale()) : range.slice(); }; scale.rangeRound = function(_) { return range = [+_[0], +_[1]], round = true, rescale(); }; scale.bandwidth = function() { return bandwidth; }; scale.step = function() { return step; }; scale.round = function(_) { return arguments.length ? (round = !!_, rescale()) : round; }; scale.padding = function(_) { return arguments.length ? (paddingInner = paddingOuter = Math.max(0, Math.min(1, _)), rescale()) : paddingInner; }; scale.paddingInner = function(_) { return arguments.length ? (paddingInner = Math.max(0, Math.min(1, _)), rescale()) : paddingInner; }; scale.paddingOuter = function(_) { return arguments.length ? (paddingOuter = Math.max(0, Math.min(1, _)), rescale()) : paddingOuter; }; scale.align = function(_) { return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align; }; scale.copy = function() { return band() .domain(domain()) .range(range) .round(round) .paddingInner(paddingInner) .paddingOuter(paddingOuter) .align(align); }; return rescale(); } function pointish(scale) { var copy = scale.copy; scale.padding = scale.paddingOuter; delete scale.paddingInner; delete scale.paddingOuter; scale.copy = function() { return pointish(copy()); }; return scale; } function point() { return pointish(band().paddingInner(1)); } /***/ }), /***/ "../../../node_modules/d3-scale/src/category10.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/category10.js ***! \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors */ "../../../node_modules/d3-scale/src/colors.js"); /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf")); /***/ }), /***/ "../../../node_modules/d3-scale/src/category20.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/category20.js ***! \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors */ "../../../node_modules/d3-scale/src/colors.js"); /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5")); /***/ }), /***/ "../../../node_modules/d3-scale/src/category20b.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/category20b.js ***! \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors */ "../../../node_modules/d3-scale/src/colors.js"); /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6")); /***/ }), /***/ "../../../node_modules/d3-scale/src/category20c.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/category20c.js ***! \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors */ "../../../node_modules/d3-scale/src/colors.js"); /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9")); /***/ }), /***/ "../../../node_modules/d3-scale/src/colors.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/colors.js ***! \*******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(s) { return s.match(/.{6}/g).map(function(x) { return "#" + x; }); }); /***/ }), /***/ "../../../node_modules/d3-scale/src/constant.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/constant.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return function() { return x; }; }); /***/ }), /***/ "../../../node_modules/d3-scale/src/continuous.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/continuous.js ***! \***********************************************************************************/ /*! exports provided: deinterpolateLinear, copy, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deinterpolateLinear", function() { return deinterpolateLinear; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copy", function() { return copy; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return continuous; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../../node_modules/d3-array/src/index.js"); /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../../node_modules/d3-interpolate/src/index.js"); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./array */ "../../../node_modules/d3-scale/src/array.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "../../../node_modules/d3-scale/src/constant.js"); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./number */ "../../../node_modules/d3-scale/src/number.js"); var unit = [0, 1]; function deinterpolateLinear(a, b) { return (b -= (a = +a)) ? function(x) { return (x - a) / b; } : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(b); } function deinterpolateClamp(deinterpolate) { return function(a, b) { var d = deinterpolate(a = +a, b = +b); return function(x) { return x <= a ? 0 : x >= b ? 1 : d(x); }; }; } function reinterpolateClamp(reinterpolate) { return function(a, b) { var r = reinterpolate(a = +a, b = +b); return function(t) { return t <= 0 ? a : t >= 1 ? b : r(t); }; }; } function bimap(domain, range, deinterpolate, reinterpolate) { var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1]; if (d1 < d0) d0 = deinterpolate(d1, d0), r0 = reinterpolate(r1, r0); else d0 = deinterpolate(d0, d1), r0 = reinterpolate(r0, r1); return function(x) { return r0(d0(x)); }; } function polymap(domain, range, deinterpolate, reinterpolate) { var j = Math.min(domain.length, range.length) - 1, d = new Array(j), r = new Array(j), i = -1; // Reverse descending domains. if (domain[j] < domain[0]) { domain = domain.slice().reverse(); range = range.slice().reverse(); } while (++i < j) { d[i] = deinterpolate(domain[i], domain[i + 1]); r[i] = reinterpolate(range[i], range[i + 1]); } return function(x) { var i = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(domain, x, 1, j) - 1; return r[i](d[i](x)); }; } function copy(source, target) { return target .domain(source.domain()) .range(source.range()) .interpolate(source.interpolate()) .clamp(source.clamp()); } // deinterpolate(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1]. // reinterpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding domain value x in [a,b]. function continuous(deinterpolate, reinterpolate) { var domain = unit, range = unit, interpolate = d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolate"], clamp = false, piecewise, output, input; function rescale() { piecewise = Math.min(domain.length, range.length) > 2 ? polymap : bimap; output = input = null; return scale; } function scale(x) { return (output || (output = piecewise(domain, range, clamp ? deinterpolateClamp(deinterpolate) : deinterpolate, interpolate)))(+x); } scale.invert = function(y) { return (input || (input = piecewise(range, domain, deinterpolateLinear, clamp ? reinterpolateClamp(reinterpolate) : reinterpolate)))(+y); }; scale.domain = function(_) { return arguments.length ? (domain = _array__WEBPACK_IMPORTED_MODULE_2__["map"].call(_, _number__WEBPACK_IMPORTED_MODULE_4__["default"]), rescale()) : domain.slice(); }; scale.range = function(_) { return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_2__["slice"].call(_), rescale()) : range.slice(); }; scale.rangeRound = function(_) { return range = _array__WEBPACK_IMPORTED_MODULE_2__["slice"].call(_), interpolate = d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateRound"], rescale(); }; scale.clamp = function(_) { return arguments.length ? (clamp = !!_, rescale()) : clamp; }; scale.interpolate = function(_) { return arguments.length ? (interpolate = _, rescale()) : interpolate; }; return rescale(); } /***/ }), /***/ "../../../node_modules/d3-scale/src/cubehelix.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/cubehelix.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "../../../node_modules/d3-color/src/index.js"); /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../../node_modules/d3-interpolate/src/index.js"); /* harmony default export */ __webpack_exports__["default"] = (Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateCubehelixLong"])(Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(300, 0.5, 0.0), Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(-240, 0.5, 1.0))); /***/ }), /***/ "../../../node_modules/d3-scale/src/identity.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/identity.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return identity; }); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "../../../node_modules/d3-scale/src/array.js"); /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear */ "../../../node_modules/d3-scale/src/linear.js"); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./number */ "../../../node_modules/d3-scale/src/number.js"); function identity() { var domain = [0, 1]; function scale(x) { return +x; } scale.invert = scale; scale.domain = scale.range = function(_) { return arguments.length ? (domain = _array__WEBPACK_IMPORTED_MODULE_0__["map"].call(_, _number__WEBPACK_IMPORTED_MODULE_2__["default"]), scale) : domain.slice(); }; scale.copy = function() { return identity().domain(domain); }; return Object(_linear__WEBPACK_IMPORTED_MODULE_1__["linearish"])(scale); } /***/ }), /***/ "../../../node_modules/d3-scale/src/linear.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/linear.js ***! \*******************************************************************************/ /*! exports provided: linearish, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linearish", function() { return linearish; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return linear; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../../node_modules/d3-array/src/index.js"); /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../../node_modules/d3-interpolate/src/index.js"); /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous */ "../../../node_modules/d3-scale/src/continuous.js"); /* harmony import */ var _tickFormat__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tickFormat */ "../../../node_modules/d3-scale/src/tickFormat.js"); function linearish(scale) { var domain = scale.domain; scale.ticks = function(count) { var d = domain(); return Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["ticks"])(d[0], d[d.length - 1], count == null ? 10 : count); }; scale.tickFormat = function(count, specifier) { return Object(_tickFormat__WEBPACK_IMPORTED_MODULE_3__["default"])(domain(), count, specifier); }; scale.nice = function(count) { if (count == null) count = 10; var d = domain(), i0 = 0, i1 = d.length - 1, start = d[i0], stop = d[i1], step; if (stop < start) { step = start, start = stop, stop = step; step = i0, i0 = i1, i1 = step; } step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickIncrement"])(start, stop, count); if (step > 0) { start = Math.floor(start / step) * step; stop = Math.ceil(stop / step) * step; step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickIncrement"])(start, stop, count); } else if (step < 0) { start = Math.ceil(start * step) / step; stop = Math.floor(stop * step) / step; step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickIncrement"])(start, stop, count); } if (step > 0) { d[i0] = Math.floor(start / step) * step; d[i1] = Math.ceil(stop / step) * step; domain(d); } else if (step < 0) { d[i0] = Math.ceil(start * step) / step; d[i1] = Math.floor(stop * step) / step; domain(d); } return scale; }; return scale; } function linear() { var scale = Object(_continuous__WEBPACK_IMPORTED_MODULE_2__["default"])(_continuous__WEBPACK_IMPORTED_MODULE_2__["deinterpolateLinear"], d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateNumber"]); scale.copy = function() { return Object(_continuous__WEBPACK_IMPORTED_MODULE_2__["copy"])(scale, linear()); }; return linearish(scale); } /***/ }), /***/ "../../../node_modules/d3-scale/src/log.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/log.js ***! \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return log; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../../node_modules/d3-array/src/index.js"); /* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "../../../node_modules/d3-format/src/index.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constant */ "../../../node_modules/d3-scale/src/constant.js"); /* harmony import */ var _nice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nice */ "../../../node_modules/d3-scale/src/nice.js"); /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./continuous */ "../../../node_modules/d3-scale/src/continuous.js"); function deinterpolate(a, b) { return (b = Math.log(b / a)) ? function(x) { return Math.log(x / a) / b; } : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(b); } function reinterpolate(a, b) { return a < 0 ? function(t) { return -Math.pow(-b, t) * Math.pow(-a, 1 - t); } : function(t) { return Math.pow(b, t) * Math.pow(a, 1 - t); }; } function pow10(x) { return isFinite(x) ? +("1e" + x) : x < 0 ? 0 : x; } function powp(base) { return base === 10 ? pow10 : base === Math.E ? Math.exp : function(x) { return Math.pow(base, x); }; } function logp(base) { return base === Math.E ? Math.log : base === 10 && Math.log10 || base === 2 && Math.log2 || (base = Math.log(base), function(x) { return Math.log(x) / base; }); } function reflect(f) { return function(x) { return -f(-x); }; } function log() { var scale = Object(_continuous__WEBPACK_IMPORTED_MODULE_4__["default"])(deinterpolate, reinterpolate).domain([1, 10]), domain = scale.domain, base = 10, logs = logp(10), pows = powp(10); function rescale() { logs = logp(base), pows = powp(base); if (domain()[0] < 0) logs = reflect(logs), pows = reflect(pows); return scale; } scale.base = function(_) { return arguments.length ? (base = +_, rescale()) : base; }; scale.domain = function(_) { return arguments.length ? (domain(_), rescale()) : domain(); }; scale.ticks = function(count) { var d = domain(), u = d[0], v = d[d.length - 1], r; if (r = v < u) i = u, u = v, v = i; var i = logs(u), j = logs(v), p, k, t, n = count == null ? 10 : +count, z = []; if (!(base % 1) && j - i < n) { i = Math.round(i) - 1, j = Math.round(j) + 1; if (u > 0) for (; i < j; ++i) { for (k = 1, p = pows(i); k < base; ++k) { t = p * k; if (t < u) continue; if (t > v) break; z.push(t); } } else for (; i < j; ++i) { for (k = base - 1, p = pows(i); k >= 1; --k) { t = p * k; if (t < u) continue; if (t > v) break; z.push(t); } } } else { z = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["ticks"])(i, j, Math.min(j - i, n)).map(pows); } return r ? z.reverse() : z; }; scale.tickFormat = function(count, specifier) { if (specifier == null) specifier = base === 10 ? ".0e" : ","; if (typeof specifier !== "function") specifier = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["format"])(specifier); if (count === Infinity) return specifier; if (count == null) count = 10; var k = Math.max(1, base * count / scale.ticks().length); // TODO fast estimate? return function(d) { var i = d / pows(Math.round(logs(d))); if (i * base < base - 0.5) i *= base; return i <= k ? specifier(d) : ""; }; }; scale.nice = function() { return domain(Object(_nice__WEBPACK_IMPORTED_MODULE_3__["default"])(domain(), { floor: function(x) { return pows(Math.floor(logs(x))); }, ceil: function(x) { return pows(Math.ceil(logs(x))); } })); }; scale.copy = function() { return Object(_continuous__WEBPACK_IMPORTED_MODULE_4__["copy"])(scale, log().base(base)); }; return scale; } /***/ }), /***/ "../../../node_modules/d3-scale/src/nice.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/nice.js ***! \*****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(domain, interval) { domain = domain.slice(); var i0 = 0, i1 = domain.length - 1, x0 = domain[i0], x1 = domain[i1], t; if (x1 < x0) { t = i0, i0 = i1, i1 = t; t = x0, x0 = x1, x1 = t; } domain[i0] = interval.floor(x0); domain[i1] = interval.ceil(x1); return domain; }); /***/ }), /***/ "../../../node_modules/d3-scale/src/number.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/number.js ***! \*******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return +x; }); /***/ }), /***/ "../../../node_modules/d3-scale/src/ordinal.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/ordinal.js ***! \********************************************************************************/ /*! exports provided: implicit, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "implicit", function() { return implicit; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ordinal; }); /* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-collection */ "../../../node_modules/d3-collection/src/index.js"); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "../../../node_modules/d3-scale/src/array.js"); var implicit = {name: "implicit"}; function ordinal(range) { var index = Object(d3_collection__WEBPACK_IMPORTED_MODULE_0__["map"])(), domain = [], unknown = implicit; range = range == null ? [] : _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(range); function scale(d) { var key = d + "", i = index.get(key); if (!i) { if (unknown !== implicit) return unknown; index.set(key, i = domain.push(d)); } return range[(i - 1) % range.length]; } scale.domain = function(_) { if (!arguments.length) return domain.slice(); domain = [], index = Object(d3_collection__WEBPACK_IMPORTED_MODULE_0__["map"])(); var i = -1, n = _.length, d, key; while (++i < n) if (!index.has(key = (d = _[i]) + "")) index.set(key, domain.push(d)); return scale; }; scale.range = function(_) { return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_), scale) : range.slice(); }; scale.unknown = function(_) { return arguments.length ? (unknown = _, scale) : unknown; }; scale.copy = function() { return ordinal() .domain(domain) .range(range) .unknown(unknown); }; return scale; } /***/ }), /***/ "../../../node_modules/d3-scale/src/pow.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/pow.js ***! \****************************************************************************/ /*! exports provided: default, sqrt */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return pow; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sqrt", function() { return sqrt; }); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "../../../node_modules/d3-scale/src/constant.js"); /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear */ "../../../node_modules/d3-scale/src/linear.js"); /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous */ "../../../node_modules/d3-scale/src/continuous.js"); function raise(x, exponent) { return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent); } function pow() { var exponent = 1, scale = Object(_continuous__WEBPACK_IMPORTED_MODULE_2__["default"])(deinterpolate, reinterpolate), domain = scale.domain; function deinterpolate(a, b) { return (b = raise(b, exponent) - (a = raise(a, exponent))) ? function(x) { return (raise(x, exponent) - a) / b; } : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(b); } function reinterpolate(a, b) { b = raise(b, exponent) - (a = raise(a, exponent)); return function(t) { return raise(a + b * t, 1 / exponent); }; } scale.exponent = function(_) { return arguments.length ? (exponent = +_, domain(domain())) : exponent; }; scale.copy = function() { return Object(_continuous__WEBPACK_IMPORTED_MODULE_2__["copy"])(scale, pow().exponent(exponent)); }; return Object(_linear__WEBPACK_IMPORTED_MODULE_1__["linearish"])(scale); } function sqrt() { return pow().exponent(0.5); } /***/ }), /***/ "../../../node_modules/d3-scale/src/quantile.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/quantile.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return quantile; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../../node_modules/d3-array/src/index.js"); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "../../../node_modules/d3-scale/src/array.js"); function quantile() { var domain = [], range = [], thresholds = []; function rescale() { var i = 0, n = Math.max(1, range.length); thresholds = new Array(n - 1); while (++i < n) thresholds[i - 1] = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["quantile"])(domain, i / n); return scale; } function scale(x) { if (!isNaN(x = +x)) return range[Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(thresholds, x)]; } scale.invertExtent = function(y) { var i = range.indexOf(y); return i < 0 ? [NaN, NaN] : [ i > 0 ? thresholds[i - 1] : domain[0], i < thresholds.length ? thresholds[i] : domain[domain.length - 1] ]; }; scale.domain = function(_) { if (!arguments.length) return domain.slice(); domain = []; for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d); domain.sort(d3_array__WEBPACK_IMPORTED_MODULE_0__["ascending"]); return rescale(); }; scale.range = function(_) { return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_), rescale()) : range.slice(); }; scale.quantiles = function() { return thresholds.slice(); }; scale.copy = function() { return quantile() .domain(domain) .range(range); }; return scale; } /***/ }), /***/ "../../../node_modules/d3-scale/src/quantize.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/quantize.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return quantize; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../../node_modules/d3-array/src/index.js"); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "../../../node_modules/d3-scale/src/array.js"); /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./linear */ "../../../node_modules/d3-scale/src/linear.js"); function quantize() { var x0 = 0, x1 = 1, n = 1, domain = [0.5], range = [0, 1]; function scale(x) { if (x <= x) return range[Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(domain, x, 0, n)]; } function rescale() { var i = -1; domain = new Array(n); while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1); return scale; } scale.domain = function(_) { return arguments.length ? (x0 = +_[0], x1 = +_[1], rescale()) : [x0, x1]; }; scale.range = function(_) { return arguments.length ? (n = (range = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_)).length - 1, rescale()) : range.slice(); }; scale.invertExtent = function(y) { var i = range.indexOf(y); return i < 0 ? [NaN, NaN] : i < 1 ? [x0, domain[0]] : i >= n ? [domain[n - 1], x1] : [domain[i - 1], domain[i]]; }; scale.copy = function() { return quantize() .domain([x0, x1]) .range(range); }; return Object(_linear__WEBPACK_IMPORTED_MODULE_2__["linearish"])(scale); } /***/ }), /***/ "../../../node_modules/d3-scale/src/rainbow.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/rainbow.js ***! \********************************************************************************/ /*! exports provided: warm, cool, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warm", function() { return warm; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cool", function() { return cool; }); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "../../../node_modules/d3-color/src/index.js"); /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../../node_modules/d3-interpolate/src/index.js"); var warm = Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateCubehelixLong"])(Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(-100, 0.75, 0.35), Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(80, 1.50, 0.8)); var cool = Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateCubehelixLong"])(Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(260, 0.75, 0.35), Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(80, 1.50, 0.8)); var rainbow = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(); /* harmony default export */ __webpack_exports__["default"] = (function(t) { if (t < 0 || t > 1) t -= Math.floor(t); var ts = Math.abs(t - 0.5); rainbow.h = 360 * t - 100; rainbow.s = 1.5 - 1.5 * ts; rainbow.l = 0.8 - 0.9 * ts; return rainbow + ""; }); /***/ }), /***/ "../../../node_modules/d3-scale/src/sequential.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/sequential.js ***! \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return sequential; }); /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear */ "../../../node_modules/d3-scale/src/linear.js"); function sequential(interpolator) { var x0 = 0, x1 = 1, clamp = false; function scale(x) { var t = (x - x0) / (x1 - x0); return interpolator(clamp ? Math.max(0, Math.min(1, t)) : t); } scale.domain = function(_) { return arguments.length ? (x0 = +_[0], x1 = +_[1], scale) : [x0, x1]; }; scale.clamp = function(_) { return arguments.length ? (clamp = !!_, scale) : clamp; }; scale.interpolator = function(_) { return arguments.length ? (interpolator = _, scale) : interpolator; }; scale.copy = function() { return sequential(interpolator).domain([x0, x1]).clamp(clamp); }; return Object(_linear__WEBPACK_IMPORTED_MODULE_0__["linearish"])(scale); } /***/ }), /***/ "../../../node_modules/d3-scale/src/threshold.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/threshold.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return threshold; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../../node_modules/d3-array/src/index.js"); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "../../../node_modules/d3-scale/src/array.js"); function threshold() { var domain = [0.5], range = [0, 1], n = 1; function scale(x) { if (x <= x) return range[Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(domain, x, 0, n)]; } scale.domain = function(_) { return arguments.length ? (domain = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice(); }; scale.range = function(_) { return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice(); }; scale.invertExtent = function(y) { var i = range.indexOf(y); return [domain[i - 1], domain[i]]; }; scale.copy = function() { return threshold() .domain(domain) .range(range); }; return scale; } /***/ }), /***/ "../../../node_modules/d3-scale/src/tickFormat.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/tickFormat.js ***! \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../../node_modules/d3-array/src/index.js"); /* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "../../../node_modules/d3-format/src/index.js"); /* harmony default export */ __webpack_exports__["default"] = (function(domain, count, specifier) { var start = domain[0], stop = domain[domain.length - 1], step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickStep"])(start, stop, count == null ? 10 : count), precision; specifier = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["formatSpecifier"])(specifier == null ? ",f" : specifier); switch (specifier.type) { case "s": { var value = Math.max(Math.abs(start), Math.abs(stop)); if (specifier.precision == null && !isNaN(precision = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["precisionPrefix"])(step, value))) specifier.precision = precision; return Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["formatPrefix"])(specifier, value); } case "": case "e": case "g": case "p": case "r": { if (specifier.precision == null && !isNaN(precision = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["precisionRound"])(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e"); break; } case "f": case "%": { if (specifier.precision == null && !isNaN(precision = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["precisionFixed"])(step))) specifier.precision = precision - (specifier.type === "%") * 2; break; } } return Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["format"])(specifier); }); /***/ }), /***/ "../../../node_modules/d3-scale/src/time.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/time.js ***! \*****************************************************************************/ /*! exports provided: calendar, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calendar", function() { return calendar; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../../node_modules/d3-array/src/index.js"); /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../../node_modules/d3-interpolate/src/index.js"); /* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/index.js"); /* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-time-format */ "../../../node_modules/d3-time-format/src/index.js"); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./array */ "../../../node_modules/d3-scale/src/array.js"); /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./continuous */ "../../../node_modules/d3-scale/src/continuous.js"); /* harmony import */ var _nice__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./nice */ "../../../node_modules/d3-scale/src/nice.js"); var durationSecond = 1000, durationMinute = durationSecond * 60, durationHour = durationMinute * 60, durationDay = durationHour * 24, durationWeek = durationDay * 7, durationMonth = durationDay * 30, durationYear = durationDay * 365; function date(t) { return new Date(t); } function number(t) { return t instanceof Date ? +t : +new Date(+t); } function calendar(year, month, week, day, hour, minute, second, millisecond, format) { var scale = Object(_continuous__WEBPACK_IMPORTED_MODULE_5__["default"])(_continuous__WEBPACK_IMPORTED_MODULE_5__["deinterpolateLinear"], d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateNumber"]), invert = scale.invert, domain = scale.domain; var formatMillisecond = format(".%L"), formatSecond = format(":%S"), formatMinute = format("%I:%M"), formatHour = format("%I %p"), formatDay = format("%a %d"), formatWeek = format("%b %d"), formatMonth = format("%B"), formatYear = format("%Y"); var tickIntervals = [ [second, 1, durationSecond], [second, 5, 5 * durationSecond], [second, 15, 15 * durationSecond], [second, 30, 30 * durationSecond], [minute, 1, durationMinute], [minute, 5, 5 * durationMinute], [minute, 15, 15 * durationMinute], [minute, 30, 30 * durationMinute], [ hour, 1, durationHour ], [ hour, 3, 3 * durationHour ], [ hour, 6, 6 * durationHour ], [ hour, 12, 12 * durationHour ], [ day, 1, durationDay ], [ day, 2, 2 * durationDay ], [ week, 1, durationWeek ], [ month, 1, durationMonth ], [ month, 3, 3 * durationMonth ], [ year, 1, durationYear ] ]; function tickFormat(date) { return (second(date) < date ? formatMillisecond : minute(date) < date ? formatSecond : hour(date) < date ? formatMinute : day(date) < date ? formatHour : month(date) < date ? (week(date) < date ? formatDay : formatWeek) : year(date) < date ? formatMonth : formatYear)(date); } function tickInterval(interval, start, stop, step) { if (interval == null) interval = 10; // If a desired tick count is specified, pick a reasonable tick interval // based on the extent of the domain and a rough estimate of tick size. // Otherwise, assume interval is already a time interval and use it. if (typeof interval === "number") { var target = Math.abs(stop - start) / interval, i = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisector"])(function(i) { return i[2]; }).right(tickIntervals, target); if (i === tickIntervals.length) { step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickStep"])(start / durationYear, stop / durationYear, interval); interval = year; } else if (i) { i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i]; step = i[1]; interval = i[0]; } else { step = Math.max(Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickStep"])(start, stop, interval), 1); interval = millisecond; } } return step == null ? interval : interval.every(step); } scale.invert = function(y) { return new Date(invert(y)); }; scale.domain = function(_) { return arguments.length ? domain(_array__WEBPACK_IMPORTED_MODULE_4__["map"].call(_, number)) : domain().map(date); }; scale.ticks = function(interval, step) { var d = domain(), t0 = d[0], t1 = d[d.length - 1], r = t1 < t0, t; if (r) t = t0, t0 = t1, t1 = t; t = tickInterval(interval, t0, t1, step); t = t ? t.range(t0, t1 + 1) : []; // inclusive stop return r ? t.reverse() : t; }; scale.tickFormat = function(count, specifier) { return specifier == null ? tickFormat : format(specifier); }; scale.nice = function(interval, step) { var d = domain(); return (interval = tickInterval(interval, d[0], d[d.length - 1], step)) ? domain(Object(_nice__WEBPACK_IMPORTED_MODULE_6__["default"])(d, interval)) : scale; }; scale.copy = function() { return Object(_continuous__WEBPACK_IMPORTED_MODULE_5__["copy"])(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format)); }; return scale; } /* harmony default export */ __webpack_exports__["default"] = (function() { return calendar(d3_time__WEBPACK_IMPORTED_MODULE_2__["timeYear"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeMonth"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeWeek"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeDay"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeHour"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeMinute"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeSecond"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeMillisecond"], d3_time_format__WEBPACK_IMPORTED_MODULE_3__["timeFormat"]).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]); }); /***/ }), /***/ "../../../node_modules/d3-scale/src/utcTime.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/utcTime.js ***! \********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _time__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./time */ "../../../node_modules/d3-scale/src/time.js"); /* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-time-format */ "../../../node_modules/d3-time-format/src/index.js"); /* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/index.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { return Object(_time__WEBPACK_IMPORTED_MODULE_0__["calendar"])(d3_time__WEBPACK_IMPORTED_MODULE_2__["utcYear"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcMonth"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcWeek"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcDay"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcHour"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcMinute"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcSecond"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcMillisecond"], d3_time_format__WEBPACK_IMPORTED_MODULE_1__["utcFormat"]).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]); }); /***/ }), /***/ "../../../node_modules/d3-scale/src/viridis.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-scale/src/viridis.js ***! \********************************************************************************/ /*! exports provided: default, magma, inferno, plasma */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "magma", function() { return magma; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inferno", function() { return inferno; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "plasma", function() { return plasma; }); /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors */ "../../../node_modules/d3-scale/src/colors.js"); function ramp(range) { var n = range.length; return function(t) { return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))]; }; } /* harmony default export */ __webpack_exports__["default"] = (ramp(Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"))); var magma = ramp(Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")); var inferno = ramp(Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")); var plasma = ramp(Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")); /***/ }), /***/ "../../../node_modules/d3-shape/src/arc.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/arc.js ***! \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "../../../node_modules/d3-path/src/index.js"); /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ "../../../node_modules/d3-shape/src/constant.js"); /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math.js */ "../../../node_modules/d3-shape/src/math.js"); function arcInnerRadius(d) { return d.innerRadius; } function arcOuterRadius(d) { return d.outerRadius; } function arcStartAngle(d) { return d.startAngle; } function arcEndAngle(d) { return d.endAngle; } function arcPadAngle(d) { return d && d.padAngle; // Note: optional! } function intersect(x0, y0, x1, y1, x2, y2, x3, y3) { var x10 = x1 - x0, y10 = y1 - y0, x32 = x3 - x2, y32 = y3 - y2, t = y32 * x10 - x32 * y10; if (t * t < _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) return; t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t; return [x0 + t * x10, y0 + t * y10]; } // Compute perpendicular offset line of length rc. // http://mathworld.wolfram.com/Circle-LineIntersection.html function cornerTangents(x0, y0, x1, y1, r1, rc, cw) { var x01 = x0 - x1, y01 = y0 - y1, lo = (cw ? rc : -rc) / Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(x01 * x01 + y01 * y01), ox = lo * y01, oy = -lo * x01, x11 = x0 + ox, y11 = y0 + oy, x10 = x1 + ox, y10 = y1 + oy, x00 = (x11 + x10) / 2, y00 = (y11 + y10) / 2, dx = x10 - x11, dy = y10 - y11, d2 = dx * dx + dy * dy, r = r1 - rc, D = x11 * y10 - x10 * y11, d = (dy < 0 ? -1 : 1) * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["max"])(0, r * r * d2 - D * D)), cx0 = (D * dy - dx * d) / d2, cy0 = (-D * dx - dy * d) / d2, cx1 = (D * dy + dx * d) / d2, cy1 = (-D * dx + dy * d) / d2, dx0 = cx0 - x00, dy0 = cy0 - y00, dx1 = cx1 - x00, dy1 = cy1 - y00; // Pick the closer of the two intersection points. // TODO Is there a faster way to determine which intersection to use? if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1; return { cx: cx0, cy: cy0, x01: -ox, y01: -oy, x11: cx0 * (r1 / r - 1), y11: cy0 * (r1 / r - 1) }; } /* harmony default export */ __webpack_exports__["default"] = (function() { var innerRadius = arcInnerRadius, outerRadius = arcOuterRadius, cornerRadius = Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(0), padRadius = null, startAngle = arcStartAngle, endAngle = arcEndAngle, padAngle = arcPadAngle, context = null; function arc() { var buffer, r, r0 = +innerRadius.apply(this, arguments), r1 = +outerRadius.apply(this, arguments), a0 = startAngle.apply(this, arguments) - _math_js__WEBPACK_IMPORTED_MODULE_2__["halfPi"], a1 = endAngle.apply(this, arguments) - _math_js__WEBPACK_IMPORTED_MODULE_2__["halfPi"], da = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["abs"])(a1 - a0), cw = a1 > a0; if (!context) context = buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])(); // Ensure that the outer radius is always larger than the inner radius. if (r1 < r0) r = r1, r1 = r0, r0 = r; // Is it a point? if (!(r1 > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"])) context.moveTo(0, 0); // Or is it a circle or annulus? else if (da > _math_js__WEBPACK_IMPORTED_MODULE_2__["tau"] - _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) { context.moveTo(r1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(a0), r1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(a0)); context.arc(0, 0, r1, a0, a1, !cw); if (r0 > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) { context.moveTo(r0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(a1), r0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(a1)); context.arc(0, 0, r0, a1, a0, cw); } } // Or is it a circular or annular sector? else { var a01 = a0, a11 = a1, a00 = a0, a10 = a1, da0 = da, da1 = da, ap = padAngle.apply(this, arguments) / 2, rp = (ap > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) && (padRadius ? +padRadius.apply(this, arguments) : Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(r0 * r0 + r1 * r1)), rc = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["min"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["abs"])(r1 - r0) / 2, +cornerRadius.apply(this, arguments)), rc0 = rc, rc1 = rc, t0, t1; // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0. if (rp > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) { var p0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["asin"])(rp / r0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(ap)), p1 = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["asin"])(rp / r1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(ap)); if ((da0 -= p0 * 2) > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0; else da0 = 0, a00 = a10 = (a0 + a1) / 2; if ((da1 -= p1 * 2) > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1; else da1 = 0, a01 = a11 = (a0 + a1) / 2; } var x01 = r1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(a01), y01 = r1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(a01), x10 = r0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(a10), y10 = r0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(a10); // Apply rounded corners? if (rc > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) { var x11 = r1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(a11), y11 = r1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(a11), x00 = r0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(a00), y00 = r0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(a00), oc; // Restrict the corner radius according to the sector angle. if (da < _math_js__WEBPACK_IMPORTED_MODULE_2__["pi"] && (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10))) { var ax = x01 - oc[0], ay = y01 - oc[1], bx = x11 - oc[0], by = y11 - oc[1], kc = 1 / Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["acos"])((ax * bx + ay * by) / (Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(ax * ax + ay * ay) * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(bx * bx + by * by))) / 2), lc = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(oc[0] * oc[0] + oc[1] * oc[1]); rc0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["min"])(rc, (r0 - lc) / (kc - 1)); rc1 = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["min"])(rc, (r1 - lc) / (kc + 1)); } } // Is the sector collapsed to a line? if (!(da1 > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"])) context.moveTo(x01, y01); // Does the sector’s outer ring have rounded corners? else if (rc1 > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) { t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw); t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw); context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01); // Have the corners merged? if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y01, t0.x01), Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y01, t1.x01), !cw); // Otherwise, draw the two corners and the ring. else { context.arc(t0.cx, t0.cy, rc1, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y01, t0.x01), Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y11, t0.x11), !cw); context.arc(0, 0, r1, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.cy + t0.y11, t0.cx + t0.x11), Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.cy + t1.y11, t1.cx + t1.x11), !cw); context.arc(t1.cx, t1.cy, rc1, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y11, t1.x11), Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y01, t1.x01), !cw); } } // Or is the outer ring just a circular arc? else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw); // Is there no inner ring, and it’s a circular sector? // Or perhaps it’s an annular sector collapsed due to padding? if (!(r0 > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) || !(da0 > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"])) context.lineTo(x10, y10); // Does the sector’s inner ring (or point) have rounded corners? else if (rc0 > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) { t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw); t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw); context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01); // Have the corners merged? if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y01, t0.x01), Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y01, t1.x01), !cw); // Otherwise, draw the two corners and the ring. else { context.arc(t0.cx, t0.cy, rc0, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y01, t0.x01), Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y11, t0.x11), !cw); context.arc(0, 0, r0, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.cy + t0.y11, t0.cx + t0.x11), Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.cy + t1.y11, t1.cx + t1.x11), cw); context.arc(t1.cx, t1.cy, rc0, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y11, t1.x11), Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y01, t1.x01), !cw); } } // Or is the inner ring just a circular arc? else context.arc(0, 0, r0, a10, a00, cw); } context.closePath(); if (buffer) return context = null, buffer + "" || null; } arc.centroid = function() { var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2, a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - _math_js__WEBPACK_IMPORTED_MODULE_2__["pi"] / 2; return [Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(a) * r, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(a) * r]; }; arc.innerRadius = function(_) { return arguments.length ? (innerRadius = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : innerRadius; }; arc.outerRadius = function(_) { return arguments.length ? (outerRadius = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : outerRadius; }; arc.cornerRadius = function(_) { return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : cornerRadius; }; arc.padRadius = function(_) { return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : padRadius; }; arc.startAngle = function(_) { return arguments.length ? (startAngle = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : startAngle; }; arc.endAngle = function(_) { return arguments.length ? (endAngle = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : endAngle; }; arc.padAngle = function(_) { return arguments.length ? (padAngle = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : padAngle; }; arc.context = function(_) { return arguments.length ? ((context = _ == null ? null : _), arc) : context; }; return arc; }); /***/ }), /***/ "../../../node_modules/d3-shape/src/area.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/area.js ***! \*****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "../../../node_modules/d3-path/src/index.js"); /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ "../../../node_modules/d3-shape/src/constant.js"); /* harmony import */ var _curve_linear_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./curve/linear.js */ "../../../node_modules/d3-shape/src/curve/linear.js"); /* harmony import */ var _line_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./line.js */ "../../../node_modules/d3-shape/src/line.js"); /* harmony import */ var _point_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./point.js */ "../../../node_modules/d3-shape/src/point.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var x0 = _point_js__WEBPACK_IMPORTED_MODULE_4__["x"], x1 = null, y0 = Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(0), y1 = _point_js__WEBPACK_IMPORTED_MODULE_4__["y"], defined = Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(true), context = null, curve = _curve_linear_js__WEBPACK_IMPORTED_MODULE_2__["default"], output = null; function area(data) { var i, j, k, n = data.length, d, defined0 = false, buffer, x0z = new Array(n), y0z = new Array(n); if (context == null) output = curve(buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])()); for (i = 0; i <= n; ++i) { if (!(i < n && defined(d = data[i], i, data)) === defined0) { if (defined0 = !defined0) { j = i; output.areaStart(); output.lineStart(); } else { output.lineEnd(); output.lineStart(); for (k = i - 1; k >= j; --k) { output.point(x0z[k], y0z[k]); } output.lineEnd(); output.areaEnd(); } } if (defined0) { x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data); output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]); } } if (buffer) return output = null, buffer + "" || null; } function arealine() { return Object(_line_js__WEBPACK_IMPORTED_MODULE_3__["default"])().defined(defined).curve(curve).context(context); } area.x = function(_) { return arguments.length ? (x0 = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), x1 = null, area) : x0; }; area.x0 = function(_) { return arguments.length ? (x0 = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : x0; }; area.x1 = function(_) { return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : x1; }; area.y = function(_) { return arguments.length ? (y0 = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), y1 = null, area) : y0; }; area.y0 = function(_) { return arguments.length ? (y0 = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : y0; }; area.y1 = function(_) { return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : y1; }; area.lineX0 = area.lineY0 = function() { return arealine().x(x0).y(y0); }; area.lineY1 = function() { return arealine().x(x0).y(y1); }; area.lineX1 = function() { return arealine().x(x1).y(y0); }; area.defined = function(_) { return arguments.length ? (defined = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(!!_), area) : defined; }; area.curve = function(_) { return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve; }; area.context = function(_) { return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context; }; return area; }); /***/ }), /***/ "../../../node_modules/d3-shape/src/areaRadial.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/areaRadial.js ***! \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _curve_radial_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./curve/radial.js */ "../../../node_modules/d3-shape/src/curve/radial.js"); /* harmony import */ var _area_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./area.js */ "../../../node_modules/d3-shape/src/area.js"); /* harmony import */ var _lineRadial_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lineRadial.js */ "../../../node_modules/d3-shape/src/lineRadial.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var a = Object(_area_js__WEBPACK_IMPORTED_MODULE_1__["default"])().curve(_curve_radial_js__WEBPACK_IMPORTED_MODULE_0__["curveRadialLinear"]), c = a.curve, x0 = a.lineX0, x1 = a.lineX1, y0 = a.lineY0, y1 = a.lineY1; a.angle = a.x, delete a.x; a.startAngle = a.x0, delete a.x0; a.endAngle = a.x1, delete a.x1; a.radius = a.y, delete a.y; a.innerRadius = a.y0, delete a.y0; a.outerRadius = a.y1, delete a.y1; a.lineStartAngle = function() { return Object(_lineRadial_js__WEBPACK_IMPORTED_MODULE_2__["lineRadial"])(x0()); }, delete a.lineX0; a.lineEndAngle = function() { return Object(_lineRadial_js__WEBPACK_IMPORTED_MODULE_2__["lineRadial"])(x1()); }, delete a.lineX1; a.lineInnerRadius = function() { return Object(_lineRadial_js__WEBPACK_IMPORTED_MODULE_2__["lineRadial"])(y0()); }, delete a.lineY0; a.lineOuterRadius = function() { return Object(_lineRadial_js__WEBPACK_IMPORTED_MODULE_2__["lineRadial"])(y1()); }, delete a.lineY1; a.curve = function(_) { return arguments.length ? c(Object(_curve_radial_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_)) : c()._curve; }; return a; }); /***/ }), /***/ "../../../node_modules/d3-shape/src/array.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/array.js ***! \******************************************************************************/ /*! exports provided: slice */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; }); var slice = Array.prototype.slice; /***/ }), /***/ "../../../node_modules/d3-shape/src/constant.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/constant.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return function constant() { return x; }; }); /***/ }), /***/ "../../../node_modules/d3-shape/src/curve/basis.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/curve/basis.js ***! \************************************************************************************/ /*! exports provided: point, Basis, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Basis", function() { return Basis; }); function point(that, x, y) { that._context.bezierCurveTo( (2 * that._x0 + that._x1) / 3, (2 * that._y0 + that._y1) / 3, (that._x0 + 2 * that._x1) / 3, (that._y0 + 2 * that._y1) / 3, (that._x0 + 4 * that._x1 + x) / 6, (that._y0 + 4 * that._y1 + y) / 6 ); } function Basis(context) { this._context = context; } Basis.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._y0 = this._y1 = NaN; this._point = 0; }, lineEnd: function() { switch (this._point) { case 3: point(this, this._x1, this._y1); // proceed case 2: this._context.lineTo(this._x1, this._y1); break; } if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; break; case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed default: point(this, x, y); break; } this._x0 = this._x1, this._x1 = x; this._y0 = this._y1, this._y1 = y; } }; /* harmony default export */ __webpack_exports__["default"] = (function(context) { return new Basis(context); }); /***/ }), /***/ "../../../node_modules/d3-shape/src/curve/basisClosed.js": /*!******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/curve/basisClosed.js ***! \******************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop.js */ "../../../node_modules/d3-shape/src/noop.js"); /* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./basis.js */ "../../../node_modules/d3-shape/src/curve/basis.js"); function BasisClosed(context) { this._context = context; } BasisClosed.prototype = { areaStart: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"], areaEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"], lineStart: function() { this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN; this._point = 0; }, lineEnd: function() { switch (this._point) { case 1: { this._context.moveTo(this._x2, this._y2); this._context.closePath(); break; } case 2: { this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3); this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3); this._context.closePath(); break; } case 3: { this.point(this._x2, this._y2); this.point(this._x3, this._y3); this.point(this._x4, this._y4); break; } } }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._x2 = x, this._y2 = y; break; case 1: this._point = 2; this._x3 = x, this._y3 = y; break; case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break; default: Object(_basis_js__WEBPACK_IMPORTED_MODULE_1__["point"])(this, x, y); break; } this._x0 = this._x1, this._x1 = x; this._y0 = this._y1, this._y1 = y; } }; /* harmony default export */ __webpack_exports__["default"] = (function(context) { return new BasisClosed(context); }); /***/ }), /***/ "../../../node_modules/d3-shape/src/curve/basisOpen.js": /*!****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/curve/basisOpen.js ***! \****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis.js */ "../../../node_modules/d3-shape/src/curve/basis.js"); function BasisOpen(context) { this._context = context; } BasisOpen.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._y0 = this._y1 = NaN; this._point = 0; }, lineEnd: function() { if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; break; case 1: this._point = 2; break; case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break; case 3: this._point = 4; // proceed default: Object(_basis_js__WEBPACK_IMPORTED_MODULE_0__["point"])(this, x, y); break; } this._x0 = this._x1, this._x1 = x; this._y0 = this._y1, this._y1 = y; } }; /* harmony default export */ __webpack_exports__["default"] = (function(context) { return new BasisOpen(context); }); /***/ }), /***/ "../../../node_modules/d3-shape/src/curve/bundle.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/curve/bundle.js ***! \*************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis.js */ "../../../node_modules/d3-shape/src/curve/basis.js"); function Bundle(context, beta) { this._basis = new _basis_js__WEBPACK_IMPORTED_MODULE_0__["Basis"](context); this._beta = beta; } Bundle.prototype = { lineStart: function() { this._x = []; this._y = []; this._basis.lineStart(); }, lineEnd: function() { var x = this._x, y = this._y, j = x.length - 1; if (j > 0) { var x0 = x[0], y0 = y[0], dx = x[j] - x0, dy = y[j] - y0, i = -1, t; while (++i <= j) { t = i / j; this._basis.point( this._beta * x[i] + (1 - this._beta) * (x0 + t * dx), this._beta * y[i] + (1 - this._beta) * (y0 + t * dy) ); } } this._x = this._y = null; this._basis.lineEnd(); }, point: function(x, y) { this._x.push(+x); this._y.push(+y); } }; /* harmony default export */ __webpack_exports__["default"] = ((function custom(beta) { function bundle(context) { return beta === 1 ? new _basis_js__WEBPACK_IMPORTED_MODULE_0__["Basis"](context) : new Bundle(context, beta); } bundle.beta = function(beta) { return custom(+beta); }; return bundle; })(0.85)); /***/ }), /***/ "../../../node_modules/d3-shape/src/curve/cardinal.js": /*!***************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/curve/cardinal.js ***! \***************************************************************************************/ /*! exports provided: point, Cardinal, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cardinal", function() { return Cardinal; }); function point(that, x, y) { that._context.bezierCurveTo( that._x1 + that._k * (that._x2 - that._x0), that._y1 + that._k * (that._y2 - that._y0), that._x2 + that._k * (that._x1 - x), that._y2 + that._k * (that._y1 - y), that._x2, that._y2 ); } function Cardinal(context, tension) { this._context = context; this._k = (1 - tension) / 6; } Cardinal.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN; this._point = 0; }, lineEnd: function() { switch (this._point) { case 2: this._context.lineTo(this._x2, this._y2); break; case 3: point(this, this._x1, this._y1); break; } if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; this._x1 = x, this._y1 = y; break; case 2: this._point = 3; // proceed default: point(this, x, y); break; } this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["default"] = ((function custom(tension) { function cardinal(context) { return new Cardinal(context, tension); } cardinal.tension = function(tension) { return custom(+tension); }; return cardinal; })(0)); /***/ }), /***/ "../../../node_modules/d3-shape/src/curve/cardinalClosed.js": /*!*********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/curve/cardinalClosed.js ***! \*********************************************************************************************/ /*! exports provided: CardinalClosed, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardinalClosed", function() { return CardinalClosed; }); /* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop.js */ "../../../node_modules/d3-shape/src/noop.js"); /* harmony import */ var _cardinal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cardinal.js */ "../../../node_modules/d3-shape/src/curve/cardinal.js"); function CardinalClosed(context, tension) { this._context = context; this._k = (1 - tension) / 6; } CardinalClosed.prototype = { areaStart: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"], areaEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"], lineStart: function() { this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN; this._point = 0; }, lineEnd: function() { switch (this._point) { case 1: { this._context.moveTo(this._x3, this._y3); this._context.closePath(); break; } case 2: { this._context.lineTo(this._x3, this._y3); this._context.closePath(); break; } case 3: { this.point(this._x3, this._y3); this.point(this._x4, this._y4); this.point(this._x5, this._y5); break; } } }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._x3 = x, this._y3 = y; break; case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break; case 2: this._point = 3; this._x5 = x, this._y5 = y; break; default: Object(_cardinal_js__WEBPACK_IMPORTED_MODULE_1__["point"])(this, x, y); break; } this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["default"] = ((function custom(tension) { function cardinal(context) { return new CardinalClosed(context, tension); } cardinal.tension = function(tension) { return custom(+tension); }; return cardinal; })(0)); /***/ }), /***/ "../../../node_modules/d3-shape/src/curve/cardinalOpen.js": /*!*******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/curve/cardinalOpen.js ***! \*******************************************************************************************/ /*! exports provided: CardinalOpen, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardinalOpen", function() { return CardinalOpen; }); /* harmony import */ var _cardinal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cardinal.js */ "../../../node_modules/d3-shape/src/curve/cardinal.js"); function CardinalOpen(context, tension) { this._context = context; this._k = (1 - tension) / 6; } CardinalOpen.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN; this._point = 0; }, lineEnd: function() { if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; break; case 1: this._point = 2; break; case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break; case 3: this._point = 4; // proceed default: Object(_cardinal_js__WEBPACK_IMPORTED_MODULE_0__["point"])(this, x, y); break; } this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["default"] = ((function custom(tension) { function cardinal(context) { return new CardinalOpen(context, tension); } cardinal.tension = function(tension) { return custom(+tension); }; return cardinal; })(0)); /***/ }), /***/ "../../../node_modules/d3-shape/src/curve/catmullRom.js": /*!*****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/curve/catmullRom.js ***! \*****************************************************************************************/ /*! exports provided: point, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; }); /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "../../../node_modules/d3-shape/src/math.js"); /* harmony import */ var _cardinal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cardinal.js */ "../../../node_modules/d3-shape/src/curve/cardinal.js"); function point(that, x, y) { var x1 = that._x1, y1 = that._y1, x2 = that._x2, y2 = that._y2; if (that._l01_a > _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) { var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a, n = 3 * that._l01_a * (that._l01_a + that._l12_a); x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n; y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n; } if (that._l23_a > _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) { var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a, m = 3 * that._l23_a * (that._l23_a + that._l12_a); x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m; y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m; } that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2); } function CatmullRom(context, alpha) { this._context = context; this._alpha = alpha; } CatmullRom.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN; this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; }, lineEnd: function() { switch (this._point) { case 2: this._context.lineTo(this._x2, this._y2); break; case 3: this.point(this._x2, this._y2); break; } if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; if (this._point) { var x23 = this._x2 - x, y23 = this._y2 - y; this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); } switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; break; case 2: this._point = 3; // proceed default: point(this, x, y); break; } this._l01_a = this._l12_a, this._l12_a = this._l23_a; this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a; this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["default"] = ((function custom(alpha) { function catmullRom(context) { return alpha ? new CatmullRom(context, alpha) : new _cardinal_js__WEBPACK_IMPORTED_MODULE_1__["Cardinal"](context, 0); } catmullRom.alpha = function(alpha) { return custom(+alpha); }; return catmullRom; })(0.5)); /***/ }), /***/ "../../../node_modules/d3-shape/src/curve/catmullRomClosed.js": /*!***********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/curve/catmullRomClosed.js ***! \***********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _cardinalClosed_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cardinalClosed.js */ "../../../node_modules/d3-shape/src/curve/cardinalClosed.js"); /* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../noop.js */ "../../../node_modules/d3-shape/src/noop.js"); /* harmony import */ var _catmullRom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./catmullRom.js */ "../../../node_modules/d3-shape/src/curve/catmullRom.js"); function CatmullRomClosed(context, alpha) { this._context = context; this._alpha = alpha; } CatmullRomClosed.prototype = { areaStart: _noop_js__WEBPACK_IMPORTED_MODULE_1__["default"], areaEnd: _noop_js__WEBPACK_IMPORTED_MODULE_1__["default"], lineStart: function() { this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN; this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; }, lineEnd: function() { switch (this._point) { case 1: { this._context.moveTo(this._x3, this._y3); this._context.closePath(); break; } case 2: { this._context.lineTo(this._x3, this._y3); this._context.closePath(); break; } case 3: { this.point(this._x3, this._y3); this.point(this._x4, this._y4); this.point(this._x5, this._y5); break; } } }, point: function(x, y) { x = +x, y = +y; if (this._point) { var x23 = this._x2 - x, y23 = this._y2 - y; this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); } switch (this._point) { case 0: this._point = 1; this._x3 = x, this._y3 = y; break; case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break; case 2: this._point = 3; this._x5 = x, this._y5 = y; break; default: Object(_catmullRom_js__WEBPACK_IMPORTED_MODULE_2__["point"])(this, x, y); break; } this._l01_a = this._l12_a, this._l12_a = this._l23_a; this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a; this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["default"] = ((function custom(alpha) { function catmullRom(context) { return alpha ? new CatmullRomClosed(context, alpha) : new _cardinalClosed_js__WEBPACK_IMPORTED_MODULE_0__["CardinalClosed"](context, 0); } catmullRom.alpha = function(alpha) { return custom(+alpha); }; return catmullRom; })(0.5)); /***/ }), /***/ "../../../node_modules/d3-shape/src/curve/catmullRomOpen.js": /*!*********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/curve/catmullRomOpen.js ***! \*********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _cardinalOpen_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cardinalOpen.js */ "../../../node_modules/d3-shape/src/curve/cardinalOpen.js"); /* harmony import */ var _catmullRom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./catmullRom.js */ "../../../node_modules/d3-shape/src/curve/catmullRom.js"); function CatmullRomOpen(context, alpha) { this._context = context; this._alpha = alpha; } CatmullRomOpen.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN; this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; }, lineEnd: function() { if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; if (this._point) { var x23 = this._x2 - x, y23 = this._y2 - y; this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); } switch (this._point) { case 0: this._point = 1; break; case 1: this._point = 2; break; case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break; case 3: this._point = 4; // proceed default: Object(_catmullRom_js__WEBPACK_IMPORTED_MODULE_1__["point"])(this, x, y); break; } this._l01_a = this._l12_a, this._l12_a = this._l23_a; this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a; this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["default"] = ((function custom(alpha) { function catmullRom(context) { return alpha ? new CatmullRomOpen(context, alpha) : new _cardinalOpen_js__WEBPACK_IMPORTED_MODULE_0__["CardinalOpen"](context, 0); } catmullRom.alpha = function(alpha) { return custom(+alpha); }; return catmullRom; })(0.5)); /***/ }), /***/ "../../../node_modules/d3-shape/src/curve/linear.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/curve/linear.js ***! \*************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function Linear(context) { this._context = context; } Linear.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._point = 0; }, lineEnd: function() { if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; // proceed default: this._context.lineTo(x, y); break; } } }; /* harmony default export */ __webpack_exports__["default"] = (function(context) { return new Linear(context); }); /***/ }), /***/ "../../../node_modules/d3-shape/src/curve/linearClosed.js": /*!*******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/curve/linearClosed.js ***! \*******************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop.js */ "../../../node_modules/d3-shape/src/noop.js"); function LinearClosed(context) { this._context = context; } LinearClosed.prototype = { areaStart: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"], areaEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"], lineStart: function() { this._point = 0; }, lineEnd: function() { if (this._point) this._context.closePath(); }, point: function(x, y) { x = +x, y = +y; if (this._point) this._context.lineTo(x, y); else this._point = 1, this._context.moveTo(x, y); } }; /* harmony default export */ __webpack_exports__["default"] = (function(context) { return new LinearClosed(context); }); /***/ }), /***/ "../../../node_modules/d3-shape/src/curve/monotone.js": /*!***************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/curve/monotone.js ***! \***************************************************************************************/ /*! exports provided: monotoneX, monotoneY */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monotoneX", function() { return monotoneX; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monotoneY", function() { return monotoneY; }); function sign(x) { return x < 0 ? -1 : 1; } // Calculate the slopes of the tangents (Hermite-type interpolation) based on // the following paper: Steffen, M. 1990. A Simple Method for Monotonic // Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO. // NOV(II), P. 443, 1990. function slope3(that, x2, y2) { var h0 = that._x1 - that._x0, h1 = x2 - that._x1, s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0), s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0), p = (s0 * h1 + s1 * h0) / (h0 + h1); return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0; } // Calculate a one-sided slope. function slope2(that, t) { var h = that._x1 - that._x0; return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t; } // According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations // "you can express cubic Hermite interpolation in terms of cubic Bézier curves // with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1". function point(that, t0, t1) { var x0 = that._x0, y0 = that._y0, x1 = that._x1, y1 = that._y1, dx = (x1 - x0) / 3; that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1); } function MonotoneX(context) { this._context = context; } MonotoneX.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN; this._point = 0; }, lineEnd: function() { switch (this._point) { case 2: this._context.lineTo(this._x1, this._y1); break; case 3: point(this, this._t0, slope2(this, this._t0)); break; } if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { var t1 = NaN; x = +x, y = +y; if (x === this._x1 && y === this._y1) return; // Ignore coincident points. switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; break; case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break; default: point(this, this._t0, t1 = slope3(this, x, y)); break; } this._x0 = this._x1, this._x1 = x; this._y0 = this._y1, this._y1 = y; this._t0 = t1; } } function MonotoneY(context) { this._context = new ReflectContext(context); } (MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) { MonotoneX.prototype.point.call(this, y, x); }; function ReflectContext(context) { this._context = context; } ReflectContext.prototype = { moveTo: function(x, y) { this._context.moveTo(y, x); }, closePath: function() { this._context.closePath(); }, lineTo: function(x, y) { this._context.lineTo(y, x); }, bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); } }; function monotoneX(context) { return new MonotoneX(context); } function monotoneY(context) { return new MonotoneY(context); } /***/ }), /***/ "../../../node_modules/d3-shape/src/curve/natural.js": /*!**************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/curve/natural.js ***! \**************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function Natural(context) { this._context = context; } Natural.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x = []; this._y = []; }, lineEnd: function() { var x = this._x, y = this._y, n = x.length; if (n) { this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]); if (n === 2) { this._context.lineTo(x[1], y[1]); } else { var px = controlPoints(x), py = controlPoints(y); for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) { this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]); } } } if (this._line || (this._line !== 0 && n === 1)) this._context.closePath(); this._line = 1 - this._line; this._x = this._y = null; }, point: function(x, y) { this._x.push(+x); this._y.push(+y); } }; // See https://www.particleincell.com/2012/bezier-splines/ for derivation. function controlPoints(x) { var i, n = x.length - 1, m, a = new Array(n), b = new Array(n), r = new Array(n); a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1]; for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1]; a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n]; for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1]; a[n - 1] = r[n - 1] / b[n - 1]; for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i]; b[n - 1] = (x[n] + a[n - 1]) / 2; for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1]; return [a, b]; } /* harmony default export */ __webpack_exports__["default"] = (function(context) { return new Natural(context); }); /***/ }), /***/ "../../../node_modules/d3-shape/src/curve/radial.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/curve/radial.js ***! \*************************************************************************************/ /*! exports provided: curveRadialLinear, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "curveRadialLinear", function() { return curveRadialLinear; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return curveRadial; }); /* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../../node_modules/d3-shape/src/curve/linear.js"); var curveRadialLinear = curveRadial(_linear_js__WEBPACK_IMPORTED_MODULE_0__["default"]); function Radial(curve) { this._curve = curve; } Radial.prototype = { areaStart: function() { this._curve.areaStart(); }, areaEnd: function() { this._curve.areaEnd(); }, lineStart: function() { this._curve.lineStart(); }, lineEnd: function() { this._curve.lineEnd(); }, point: function(a, r) { this._curve.point(r * Math.sin(a), r * -Math.cos(a)); } }; function curveRadial(curve) { function radial(context) { return new Radial(curve(context)); } radial._curve = curve; return radial; } /***/ }), /***/ "../../../node_modules/d3-shape/src/curve/step.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/curve/step.js ***! \***********************************************************************************/ /*! exports provided: default, stepBefore, stepAfter */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stepBefore", function() { return stepBefore; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stepAfter", function() { return stepAfter; }); function Step(context, t) { this._context = context; this._t = t; } Step.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x = this._y = NaN; this._point = 0; }, lineEnd: function() { if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y); if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; // proceed default: { if (this._t <= 0) { this._context.lineTo(this._x, y); this._context.lineTo(x, y); } else { var x1 = this._x * (1 - this._t) + x * this._t; this._context.lineTo(x1, this._y); this._context.lineTo(x1, y); } break; } } this._x = x, this._y = y; } }; /* harmony default export */ __webpack_exports__["default"] = (function(context) { return new Step(context, 0.5); }); function stepBefore(context) { return new Step(context, 0); } function stepAfter(context) { return new Step(context, 1); } /***/ }), /***/ "../../../node_modules/d3-shape/src/descending.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/descending.js ***! \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN; }); /***/ }), /***/ "../../../node_modules/d3-shape/src/identity.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/identity.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(d) { return d; }); /***/ }), /***/ "../../../node_modules/d3-shape/src/index.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/index.js ***! \******************************************************************************/ /*! exports provided: arc, area, line, pie, areaRadial, radialArea, lineRadial, radialLine, pointRadial, linkHorizontal, linkVertical, linkRadial, symbol, symbols, symbolCircle, symbolCross, symbolDiamond, symbolSquare, symbolStar, symbolTriangle, symbolWye, curveBasisClosed, curveBasisOpen, curveBasis, curveBundle, curveCardinalClosed, curveCardinalOpen, curveCardinal, curveCatmullRomClosed, curveCatmullRomOpen, curveCatmullRom, curveLinearClosed, curveLinear, curveMonotoneX, curveMonotoneY, curveNatural, curveStep, curveStepAfter, curveStepBefore, stack, stackOffsetExpand, stackOffsetDiverging, stackOffsetNone, stackOffsetSilhouette, stackOffsetWiggle, stackOrderAppearance, stackOrderAscending, stackOrderDescending, stackOrderInsideOut, stackOrderNone, stackOrderReverse */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _arc_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arc.js */ "../../../node_modules/d3-shape/src/arc.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "arc", function() { return _arc_js__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _area_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./area.js */ "../../../node_modules/d3-shape/src/area.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "area", function() { return _area_js__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _line_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./line.js */ "../../../node_modules/d3-shape/src/line.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "line", function() { return _line_js__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _pie_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pie.js */ "../../../node_modules/d3-shape/src/pie.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pie", function() { return _pie_js__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _areaRadial_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./areaRadial.js */ "../../../node_modules/d3-shape/src/areaRadial.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "areaRadial", function() { return _areaRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "radialArea", function() { return _areaRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _lineRadial_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lineRadial.js */ "../../../node_modules/d3-shape/src/lineRadial.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lineRadial", function() { return _lineRadial_js__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "radialLine", function() { return _lineRadial_js__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony import */ var _pointRadial_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./pointRadial.js */ "../../../node_modules/d3-shape/src/pointRadial.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pointRadial", function() { return _pointRadial_js__WEBPACK_IMPORTED_MODULE_6__["default"]; }); /* harmony import */ var _link_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./link/index.js */ "../../../node_modules/d3-shape/src/link/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkHorizontal", function() { return _link_index_js__WEBPACK_IMPORTED_MODULE_7__["linkHorizontal"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkVertical", function() { return _link_index_js__WEBPACK_IMPORTED_MODULE_7__["linkVertical"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkRadial", function() { return _link_index_js__WEBPACK_IMPORTED_MODULE_7__["linkRadial"]; }); /* harmony import */ var _symbol_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./symbol.js */ "../../../node_modules/d3-shape/src/symbol.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbol", function() { return _symbol_js__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbols", function() { return _symbol_js__WEBPACK_IMPORTED_MODULE_8__["symbols"]; }); /* harmony import */ var _symbol_circle_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./symbol/circle.js */ "../../../node_modules/d3-shape/src/symbol/circle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolCircle", function() { return _symbol_circle_js__WEBPACK_IMPORTED_MODULE_9__["default"]; }); /* harmony import */ var _symbol_cross_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./symbol/cross.js */ "../../../node_modules/d3-shape/src/symbol/cross.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolCross", function() { return _symbol_cross_js__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony import */ var _symbol_diamond_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./symbol/diamond.js */ "../../../node_modules/d3-shape/src/symbol/diamond.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolDiamond", function() { return _symbol_diamond_js__WEBPACK_IMPORTED_MODULE_11__["default"]; }); /* harmony import */ var _symbol_square_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./symbol/square.js */ "../../../node_modules/d3-shape/src/symbol/square.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolSquare", function() { return _symbol_square_js__WEBPACK_IMPORTED_MODULE_12__["default"]; }); /* harmony import */ var _symbol_star_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./symbol/star.js */ "../../../node_modules/d3-shape/src/symbol/star.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolStar", function() { return _symbol_star_js__WEBPACK_IMPORTED_MODULE_13__["default"]; }); /* harmony import */ var _symbol_triangle_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./symbol/triangle.js */ "../../../node_modules/d3-shape/src/symbol/triangle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolTriangle", function() { return _symbol_triangle_js__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /* harmony import */ var _symbol_wye_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./symbol/wye.js */ "../../../node_modules/d3-shape/src/symbol/wye.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolWye", function() { return _symbol_wye_js__WEBPACK_IMPORTED_MODULE_15__["default"]; }); /* harmony import */ var _curve_basisClosed_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./curve/basisClosed.js */ "../../../node_modules/d3-shape/src/curve/basisClosed.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasisClosed", function() { return _curve_basisClosed_js__WEBPACK_IMPORTED_MODULE_16__["default"]; }); /* harmony import */ var _curve_basisOpen_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./curve/basisOpen.js */ "../../../node_modules/d3-shape/src/curve/basisOpen.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasisOpen", function() { return _curve_basisOpen_js__WEBPACK_IMPORTED_MODULE_17__["default"]; }); /* harmony import */ var _curve_basis_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./curve/basis.js */ "../../../node_modules/d3-shape/src/curve/basis.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasis", function() { return _curve_basis_js__WEBPACK_IMPORTED_MODULE_18__["default"]; }); /* harmony import */ var _curve_bundle_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./curve/bundle.js */ "../../../node_modules/d3-shape/src/curve/bundle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBundle", function() { return _curve_bundle_js__WEBPACK_IMPORTED_MODULE_19__["default"]; }); /* harmony import */ var _curve_cardinalClosed_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./curve/cardinalClosed.js */ "../../../node_modules/d3-shape/src/curve/cardinalClosed.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinalClosed", function() { return _curve_cardinalClosed_js__WEBPACK_IMPORTED_MODULE_20__["default"]; }); /* harmony import */ var _curve_cardinalOpen_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./curve/cardinalOpen.js */ "../../../node_modules/d3-shape/src/curve/cardinalOpen.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinalOpen", function() { return _curve_cardinalOpen_js__WEBPACK_IMPORTED_MODULE_21__["default"]; }); /* harmony import */ var _curve_cardinal_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./curve/cardinal.js */ "../../../node_modules/d3-shape/src/curve/cardinal.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinal", function() { return _curve_cardinal_js__WEBPACK_IMPORTED_MODULE_22__["default"]; }); /* harmony import */ var _curve_catmullRomClosed_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./curve/catmullRomClosed.js */ "../../../node_modules/d3-shape/src/curve/catmullRomClosed.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRomClosed", function() { return _curve_catmullRomClosed_js__WEBPACK_IMPORTED_MODULE_23__["default"]; }); /* harmony import */ var _curve_catmullRomOpen_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./curve/catmullRomOpen.js */ "../../../node_modules/d3-shape/src/curve/catmullRomOpen.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRomOpen", function() { return _curve_catmullRomOpen_js__WEBPACK_IMPORTED_MODULE_24__["default"]; }); /* harmony import */ var _curve_catmullRom_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./curve/catmullRom.js */ "../../../node_modules/d3-shape/src/curve/catmullRom.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRom", function() { return _curve_catmullRom_js__WEBPACK_IMPORTED_MODULE_25__["default"]; }); /* harmony import */ var _curve_linearClosed_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./curve/linearClosed.js */ "../../../node_modules/d3-shape/src/curve/linearClosed.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveLinearClosed", function() { return _curve_linearClosed_js__WEBPACK_IMPORTED_MODULE_26__["default"]; }); /* harmony import */ var _curve_linear_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./curve/linear.js */ "../../../node_modules/d3-shape/src/curve/linear.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveLinear", function() { return _curve_linear_js__WEBPACK_IMPORTED_MODULE_27__["default"]; }); /* harmony import */ var _curve_monotone_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./curve/monotone.js */ "../../../node_modules/d3-shape/src/curve/monotone.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveMonotoneX", function() { return _curve_monotone_js__WEBPACK_IMPORTED_MODULE_28__["monotoneX"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveMonotoneY", function() { return _curve_monotone_js__WEBPACK_IMPORTED_MODULE_28__["monotoneY"]; }); /* harmony import */ var _curve_natural_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./curve/natural.js */ "../../../node_modules/d3-shape/src/curve/natural.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveNatural", function() { return _curve_natural_js__WEBPACK_IMPORTED_MODULE_29__["default"]; }); /* harmony import */ var _curve_step_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./curve/step.js */ "../../../node_modules/d3-shape/src/curve/step.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStep", function() { return _curve_step_js__WEBPACK_IMPORTED_MODULE_30__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStepAfter", function() { return _curve_step_js__WEBPACK_IMPORTED_MODULE_30__["stepAfter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStepBefore", function() { return _curve_step_js__WEBPACK_IMPORTED_MODULE_30__["stepBefore"]; }); /* harmony import */ var _stack_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./stack.js */ "../../../node_modules/d3-shape/src/stack.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stack", function() { return _stack_js__WEBPACK_IMPORTED_MODULE_31__["default"]; }); /* harmony import */ var _offset_expand_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./offset/expand.js */ "../../../node_modules/d3-shape/src/offset/expand.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetExpand", function() { return _offset_expand_js__WEBPACK_IMPORTED_MODULE_32__["default"]; }); /* harmony import */ var _offset_diverging_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./offset/diverging.js */ "../../../node_modules/d3-shape/src/offset/diverging.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetDiverging", function() { return _offset_diverging_js__WEBPACK_IMPORTED_MODULE_33__["default"]; }); /* harmony import */ var _offset_none_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./offset/none.js */ "../../../node_modules/d3-shape/src/offset/none.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetNone", function() { return _offset_none_js__WEBPACK_IMPORTED_MODULE_34__["default"]; }); /* harmony import */ var _offset_silhouette_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./offset/silhouette.js */ "../../../node_modules/d3-shape/src/offset/silhouette.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetSilhouette", function() { return _offset_silhouette_js__WEBPACK_IMPORTED_MODULE_35__["default"]; }); /* harmony import */ var _offset_wiggle_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./offset/wiggle.js */ "../../../node_modules/d3-shape/src/offset/wiggle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetWiggle", function() { return _offset_wiggle_js__WEBPACK_IMPORTED_MODULE_36__["default"]; }); /* harmony import */ var _order_appearance_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./order/appearance.js */ "../../../node_modules/d3-shape/src/order/appearance.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderAppearance", function() { return _order_appearance_js__WEBPACK_IMPORTED_MODULE_37__["default"]; }); /* harmony import */ var _order_ascending_js__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./order/ascending.js */ "../../../node_modules/d3-shape/src/order/ascending.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderAscending", function() { return _order_ascending_js__WEBPACK_IMPORTED_MODULE_38__["default"]; }); /* harmony import */ var _order_descending_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./order/descending.js */ "../../../node_modules/d3-shape/src/order/descending.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderDescending", function() { return _order_descending_js__WEBPACK_IMPORTED_MODULE_39__["default"]; }); /* harmony import */ var _order_insideOut_js__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./order/insideOut.js */ "../../../node_modules/d3-shape/src/order/insideOut.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderInsideOut", function() { return _order_insideOut_js__WEBPACK_IMPORTED_MODULE_40__["default"]; }); /* harmony import */ var _order_none_js__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./order/none.js */ "../../../node_modules/d3-shape/src/order/none.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderNone", function() { return _order_none_js__WEBPACK_IMPORTED_MODULE_41__["default"]; }); /* harmony import */ var _order_reverse_js__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./order/reverse.js */ "../../../node_modules/d3-shape/src/order/reverse.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderReverse", function() { return _order_reverse_js__WEBPACK_IMPORTED_MODULE_42__["default"]; }); // Note: radialArea is deprecated! // Note: radialLine is deprecated! /***/ }), /***/ "../../../node_modules/d3-shape/src/line.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/line.js ***! \*****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "../../../node_modules/d3-path/src/index.js"); /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ "../../../node_modules/d3-shape/src/constant.js"); /* harmony import */ var _curve_linear_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./curve/linear.js */ "../../../node_modules/d3-shape/src/curve/linear.js"); /* harmony import */ var _point_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./point.js */ "../../../node_modules/d3-shape/src/point.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var x = _point_js__WEBPACK_IMPORTED_MODULE_3__["x"], y = _point_js__WEBPACK_IMPORTED_MODULE_3__["y"], defined = Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(true), context = null, curve = _curve_linear_js__WEBPACK_IMPORTED_MODULE_2__["default"], output = null; function line(data) { var i, n = data.length, d, defined0 = false, buffer; if (context == null) output = curve(buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])()); for (i = 0; i <= n; ++i) { if (!(i < n && defined(d = data[i], i, data)) === defined0) { if (defined0 = !defined0) output.lineStart(); else output.lineEnd(); } if (defined0) output.point(+x(d, i, data), +y(d, i, data)); } if (buffer) return output = null, buffer + "" || null; } line.x = function(_) { return arguments.length ? (x = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), line) : x; }; line.y = function(_) { return arguments.length ? (y = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), line) : y; }; line.defined = function(_) { return arguments.length ? (defined = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(!!_), line) : defined; }; line.curve = function(_) { return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve; }; line.context = function(_) { return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context; }; return line; }); /***/ }), /***/ "../../../node_modules/d3-shape/src/lineRadial.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/lineRadial.js ***! \***********************************************************************************/ /*! exports provided: lineRadial, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lineRadial", function() { return lineRadial; }); /* harmony import */ var _curve_radial_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./curve/radial.js */ "../../../node_modules/d3-shape/src/curve/radial.js"); /* harmony import */ var _line_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./line.js */ "../../../node_modules/d3-shape/src/line.js"); function lineRadial(l) { var c = l.curve; l.angle = l.x, delete l.x; l.radius = l.y, delete l.y; l.curve = function(_) { return arguments.length ? c(Object(_curve_radial_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_)) : c()._curve; }; return l; } /* harmony default export */ __webpack_exports__["default"] = (function() { return lineRadial(Object(_line_js__WEBPACK_IMPORTED_MODULE_1__["default"])().curve(_curve_radial_js__WEBPACK_IMPORTED_MODULE_0__["curveRadialLinear"])); }); /***/ }), /***/ "../../../node_modules/d3-shape/src/link/index.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/link/index.js ***! \***********************************************************************************/ /*! exports provided: linkHorizontal, linkVertical, linkRadial */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linkHorizontal", function() { return linkHorizontal; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linkVertical", function() { return linkVertical; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linkRadial", function() { return linkRadial; }); /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "../../../node_modules/d3-path/src/index.js"); /* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../array.js */ "../../../node_modules/d3-shape/src/array.js"); /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constant.js */ "../../../node_modules/d3-shape/src/constant.js"); /* harmony import */ var _point_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../point.js */ "../../../node_modules/d3-shape/src/point.js"); /* harmony import */ var _pointRadial_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../pointRadial.js */ "../../../node_modules/d3-shape/src/pointRadial.js"); function linkSource(d) { return d.source; } function linkTarget(d) { return d.target; } function link(curve) { var source = linkSource, target = linkTarget, x = _point_js__WEBPACK_IMPORTED_MODULE_3__["x"], y = _point_js__WEBPACK_IMPORTED_MODULE_3__["y"], context = null; function link() { var buffer, argv = _array_js__WEBPACK_IMPORTED_MODULE_1__["slice"].call(arguments), s = source.apply(this, argv), t = target.apply(this, argv); if (!context) context = buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])(); curve(context, +x.apply(this, (argv[0] = s, argv)), +y.apply(this, argv), +x.apply(this, (argv[0] = t, argv)), +y.apply(this, argv)); if (buffer) return context = null, buffer + "" || null; } link.source = function(_) { return arguments.length ? (source = _, link) : source; }; link.target = function(_) { return arguments.length ? (target = _, link) : target; }; link.x = function(_) { return arguments.length ? (x = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_2__["default"])(+_), link) : x; }; link.y = function(_) { return arguments.length ? (y = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_2__["default"])(+_), link) : y; }; link.context = function(_) { return arguments.length ? ((context = _ == null ? null : _), link) : context; }; return link; } function curveHorizontal(context, x0, y0, x1, y1) { context.moveTo(x0, y0); context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1); } function curveVertical(context, x0, y0, x1, y1) { context.moveTo(x0, y0); context.bezierCurveTo(x0, y0 = (y0 + y1) / 2, x1, y0, x1, y1); } function curveRadial(context, x0, y0, x1, y1) { var p0 = Object(_pointRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x0, y0), p1 = Object(_pointRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x0, y0 = (y0 + y1) / 2), p2 = Object(_pointRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x1, y0), p3 = Object(_pointRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x1, y1); context.moveTo(p0[0], p0[1]); context.bezierCurveTo(p1[0], p1[1], p2[0], p2[1], p3[0], p3[1]); } function linkHorizontal() { return link(curveHorizontal); } function linkVertical() { return link(curveVertical); } function linkRadial() { var l = link(curveRadial); l.angle = l.x, delete l.x; l.radius = l.y, delete l.y; return l; } /***/ }), /***/ "../../../node_modules/d3-shape/src/math.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/math.js ***! \*****************************************************************************/ /*! exports provided: abs, atan2, cos, max, min, sin, sqrt, epsilon, pi, halfPi, tau, acos, asin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "abs", function() { return abs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "atan2", function() { return atan2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cos", function() { return cos; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "max", function() { return max; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "min", function() { return min; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sin", function() { return sin; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sqrt", function() { return sqrt; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "epsilon", function() { return epsilon; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pi", function() { return pi; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "halfPi", function() { return halfPi; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tau", function() { return tau; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "acos", function() { return acos; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asin", function() { return asin; }); var abs = Math.abs; var atan2 = Math.atan2; var cos = Math.cos; var max = Math.max; var min = Math.min; var sin = Math.sin; var sqrt = Math.sqrt; var epsilon = 1e-12; var pi = Math.PI; var halfPi = pi / 2; var tau = 2 * pi; function acos(x) { return x > 1 ? 0 : x < -1 ? pi : Math.acos(x); } function asin(x) { return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x); } /***/ }), /***/ "../../../node_modules/d3-shape/src/noop.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/noop.js ***! \*****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function() {}); /***/ }), /***/ "../../../node_modules/d3-shape/src/offset/diverging.js": /*!*****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/offset/diverging.js ***! \*****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(series, order) { if (!((n = series.length) > 0)) return; for (var i, j = 0, d, dy, yp, yn, n, m = series[order[0]].length; j < m; ++j) { for (yp = yn = 0, i = 0; i < n; ++i) { if ((dy = (d = series[order[i]][j])[1] - d[0]) > 0) { d[0] = yp, d[1] = yp += dy; } else if (dy < 0) { d[1] = yn, d[0] = yn += dy; } else { d[0] = 0, d[1] = dy; } } } }); /***/ }), /***/ "../../../node_modules/d3-shape/src/offset/expand.js": /*!**************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/offset/expand.js ***! \**************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "../../../node_modules/d3-shape/src/offset/none.js"); /* harmony default export */ __webpack_exports__["default"] = (function(series, order) { if (!((n = series.length) > 0)) return; for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) { for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0; if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y; } Object(_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series, order); }); /***/ }), /***/ "../../../node_modules/d3-shape/src/offset/none.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/offset/none.js ***! \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(series, order) { if (!((n = series.length) > 1)) return; for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) { s0 = s1, s1 = series[order[i]]; for (j = 0; j < m; ++j) { s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1]; } } }); /***/ }), /***/ "../../../node_modules/d3-shape/src/offset/silhouette.js": /*!******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/offset/silhouette.js ***! \******************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "../../../node_modules/d3-shape/src/offset/none.js"); /* harmony default export */ __webpack_exports__["default"] = (function(series, order) { if (!((n = series.length) > 0)) return; for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) { for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0; s0[j][1] += s0[j][0] = -y / 2; } Object(_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series, order); }); /***/ }), /***/ "../../../node_modules/d3-shape/src/offset/wiggle.js": /*!**************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/offset/wiggle.js ***! \**************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "../../../node_modules/d3-shape/src/offset/none.js"); /* harmony default export */ __webpack_exports__["default"] = (function(series, order) { if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return; for (var y = 0, j = 1, s0, m, n; j < m; ++j) { for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) { var si = series[order[i]], sij0 = si[j][1] || 0, sij1 = si[j - 1][1] || 0, s3 = (sij0 - sij1) / 2; for (var k = 0; k < i; ++k) { var sk = series[order[k]], skj0 = sk[j][1] || 0, skj1 = sk[j - 1][1] || 0; s3 += skj0 - skj1; } s1 += sij0, s2 += s3 * sij0; } s0[j - 1][1] += s0[j - 1][0] = y; if (s1) y -= s2 / s1; } s0[j - 1][1] += s0[j - 1][0] = y; Object(_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series, order); }); /***/ }), /***/ "../../../node_modules/d3-shape/src/order/appearance.js": /*!*****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/order/appearance.js ***! \*****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "../../../node_modules/d3-shape/src/order/none.js"); /* harmony default export */ __webpack_exports__["default"] = (function(series) { var peaks = series.map(peak); return Object(_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series).sort(function(a, b) { return peaks[a] - peaks[b]; }); }); function peak(series) { var i = -1, j = 0, n = series.length, vi, vj = -Infinity; while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i; return j; } /***/ }), /***/ "../../../node_modules/d3-shape/src/order/ascending.js": /*!****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/order/ascending.js ***! \****************************************************************************************/ /*! exports provided: default, sum */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sum", function() { return sum; }); /* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "../../../node_modules/d3-shape/src/order/none.js"); /* harmony default export */ __webpack_exports__["default"] = (function(series) { var sums = series.map(sum); return Object(_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series).sort(function(a, b) { return sums[a] - sums[b]; }); }); function sum(series) { var s = 0, i = -1, n = series.length, v; while (++i < n) if (v = +series[i][1]) s += v; return s; } /***/ }), /***/ "../../../node_modules/d3-shape/src/order/descending.js": /*!*****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/order/descending.js ***! \*****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending.js */ "../../../node_modules/d3-shape/src/order/ascending.js"); /* harmony default export */ __webpack_exports__["default"] = (function(series) { return Object(_ascending_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series).reverse(); }); /***/ }), /***/ "../../../node_modules/d3-shape/src/order/insideOut.js": /*!****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/order/insideOut.js ***! \****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _appearance_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./appearance.js */ "../../../node_modules/d3-shape/src/order/appearance.js"); /* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../../node_modules/d3-shape/src/order/ascending.js"); /* harmony default export */ __webpack_exports__["default"] = (function(series) { var n = series.length, i, j, sums = series.map(_ascending_js__WEBPACK_IMPORTED_MODULE_1__["sum"]), order = Object(_appearance_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series), top = 0, bottom = 0, tops = [], bottoms = []; for (i = 0; i < n; ++i) { j = order[i]; if (top < bottom) { top += sums[j]; tops.push(j); } else { bottom += sums[j]; bottoms.push(j); } } return bottoms.reverse().concat(tops); }); /***/ }), /***/ "../../../node_modules/d3-shape/src/order/none.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/order/none.js ***! \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(series) { var n = series.length, o = new Array(n); while (--n >= 0) o[n] = n; return o; }); /***/ }), /***/ "../../../node_modules/d3-shape/src/order/reverse.js": /*!**************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/order/reverse.js ***! \**************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "../../../node_modules/d3-shape/src/order/none.js"); /* harmony default export */ __webpack_exports__["default"] = (function(series) { return Object(_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series).reverse(); }); /***/ }), /***/ "../../../node_modules/d3-shape/src/pie.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/pie.js ***! \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "../../../node_modules/d3-shape/src/constant.js"); /* harmony import */ var _descending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./descending.js */ "../../../node_modules/d3-shape/src/descending.js"); /* harmony import */ var _identity_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./identity.js */ "../../../node_modules/d3-shape/src/identity.js"); /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./math.js */ "../../../node_modules/d3-shape/src/math.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var value = _identity_js__WEBPACK_IMPORTED_MODULE_2__["default"], sortValues = _descending_js__WEBPACK_IMPORTED_MODULE_1__["default"], sort = null, startAngle = Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(0), endAngle = Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_math_js__WEBPACK_IMPORTED_MODULE_3__["tau"]), padAngle = Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(0); function pie(data) { var i, n = data.length, j, k, sum = 0, index = new Array(n), arcs = new Array(n), a0 = +startAngle.apply(this, arguments), da = Math.min(_math_js__WEBPACK_IMPORTED_MODULE_3__["tau"], Math.max(-_math_js__WEBPACK_IMPORTED_MODULE_3__["tau"], endAngle.apply(this, arguments) - a0)), a1, p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)), pa = p * (da < 0 ? -1 : 1), v; for (i = 0; i < n; ++i) { if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) { sum += v; } } // Optionally sort the arcs by previously-computed values or by data. if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); }); else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); }); // Compute the arcs! They are stored in the original data's order. for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) { j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = { data: data[j], index: i, value: v, startAngle: a0, endAngle: a1, padAngle: p }; } return arcs; } pie.value = function(_) { return arguments.length ? (value = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), pie) : value; }; pie.sortValues = function(_) { return arguments.length ? (sortValues = _, sort = null, pie) : sortValues; }; pie.sort = function(_) { return arguments.length ? (sort = _, sortValues = null, pie) : sort; }; pie.startAngle = function(_) { return arguments.length ? (startAngle = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), pie) : startAngle; }; pie.endAngle = function(_) { return arguments.length ? (endAngle = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), pie) : endAngle; }; pie.padAngle = function(_) { return arguments.length ? (padAngle = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), pie) : padAngle; }; return pie; }); /***/ }), /***/ "../../../node_modules/d3-shape/src/point.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/point.js ***! \******************************************************************************/ /*! exports provided: x, y */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return x; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return y; }); function x(p) { return p[0]; } function y(p) { return p[1]; } /***/ }), /***/ "../../../node_modules/d3-shape/src/pointRadial.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/pointRadial.js ***! \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x, y) { return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)]; }); /***/ }), /***/ "../../../node_modules/d3-shape/src/stack.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/stack.js ***! \******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array.js */ "../../../node_modules/d3-shape/src/array.js"); /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ "../../../node_modules/d3-shape/src/constant.js"); /* harmony import */ var _offset_none_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./offset/none.js */ "../../../node_modules/d3-shape/src/offset/none.js"); /* harmony import */ var _order_none_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./order/none.js */ "../../../node_modules/d3-shape/src/order/none.js"); function stackValue(d, key) { return d[key]; } /* harmony default export */ __webpack_exports__["default"] = (function() { var keys = Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])([]), order = _order_none_js__WEBPACK_IMPORTED_MODULE_3__["default"], offset = _offset_none_js__WEBPACK_IMPORTED_MODULE_2__["default"], value = stackValue; function stack(data) { var kz = keys.apply(this, arguments), i, m = data.length, n = kz.length, sz = new Array(n), oz; for (i = 0; i < n; ++i) { for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) { si[j] = sij = [0, +value(data[j], ki, j, data)]; sij.data = data[j]; } si.key = ki; } for (i = 0, oz = order(sz); i < n; ++i) { sz[oz[i]].index = i; } offset(sz, oz); return sz; } stack.keys = function(_) { return arguments.length ? (keys = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_array_js__WEBPACK_IMPORTED_MODULE_0__["slice"].call(_)), stack) : keys; }; stack.value = function(_) { return arguments.length ? (value = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), stack) : value; }; stack.order = function(_) { return arguments.length ? (order = _ == null ? _order_none_js__WEBPACK_IMPORTED_MODULE_3__["default"] : typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_array_js__WEBPACK_IMPORTED_MODULE_0__["slice"].call(_)), stack) : order; }; stack.offset = function(_) { return arguments.length ? (offset = _ == null ? _offset_none_js__WEBPACK_IMPORTED_MODULE_2__["default"] : _, stack) : offset; }; return stack; }); /***/ }), /***/ "../../../node_modules/d3-shape/src/symbol.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/symbol.js ***! \*******************************************************************************/ /*! exports provided: symbols, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "symbols", function() { return symbols; }); /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "../../../node_modules/d3-path/src/index.js"); /* harmony import */ var _symbol_circle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./symbol/circle.js */ "../../../node_modules/d3-shape/src/symbol/circle.js"); /* harmony import */ var _symbol_cross_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./symbol/cross.js */ "../../../node_modules/d3-shape/src/symbol/cross.js"); /* harmony import */ var _symbol_diamond_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./symbol/diamond.js */ "../../../node_modules/d3-shape/src/symbol/diamond.js"); /* harmony import */ var _symbol_star_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./symbol/star.js */ "../../../node_modules/d3-shape/src/symbol/star.js"); /* harmony import */ var _symbol_square_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./symbol/square.js */ "../../../node_modules/d3-shape/src/symbol/square.js"); /* harmony import */ var _symbol_triangle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./symbol/triangle.js */ "../../../node_modules/d3-shape/src/symbol/triangle.js"); /* harmony import */ var _symbol_wye_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./symbol/wye.js */ "../../../node_modules/d3-shape/src/symbol/wye.js"); /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./constant.js */ "../../../node_modules/d3-shape/src/constant.js"); var symbols = [ _symbol_circle_js__WEBPACK_IMPORTED_MODULE_1__["default"], _symbol_cross_js__WEBPACK_IMPORTED_MODULE_2__["default"], _symbol_diamond_js__WEBPACK_IMPORTED_MODULE_3__["default"], _symbol_square_js__WEBPACK_IMPORTED_MODULE_5__["default"], _symbol_star_js__WEBPACK_IMPORTED_MODULE_4__["default"], _symbol_triangle_js__WEBPACK_IMPORTED_MODULE_6__["default"], _symbol_wye_js__WEBPACK_IMPORTED_MODULE_7__["default"] ]; /* harmony default export */ __webpack_exports__["default"] = (function() { var type = Object(_constant_js__WEBPACK_IMPORTED_MODULE_8__["default"])(_symbol_circle_js__WEBPACK_IMPORTED_MODULE_1__["default"]), size = Object(_constant_js__WEBPACK_IMPORTED_MODULE_8__["default"])(64), context = null; function symbol() { var buffer; if (!context) context = buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])(); type.apply(this, arguments).draw(context, +size.apply(this, arguments)); if (buffer) return context = null, buffer + "" || null; } symbol.type = function(_) { return arguments.length ? (type = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_8__["default"])(_), symbol) : type; }; symbol.size = function(_) { return arguments.length ? (size = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_8__["default"])(+_), symbol) : size; }; symbol.context = function(_) { return arguments.length ? (context = _ == null ? null : _, symbol) : context; }; return symbol; }); /***/ }), /***/ "../../../node_modules/d3-shape/src/symbol/circle.js": /*!**************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/symbol/circle.js ***! \**************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "../../../node_modules/d3-shape/src/math.js"); /* harmony default export */ __webpack_exports__["default"] = ({ draw: function(context, size) { var r = Math.sqrt(size / _math_js__WEBPACK_IMPORTED_MODULE_0__["pi"]); context.moveTo(r, 0); context.arc(0, 0, r, 0, _math_js__WEBPACK_IMPORTED_MODULE_0__["tau"]); } }); /***/ }), /***/ "../../../node_modules/d3-shape/src/symbol/cross.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/symbol/cross.js ***! \*************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = ({ draw: function(context, size) { var r = Math.sqrt(size / 5) / 2; context.moveTo(-3 * r, -r); context.lineTo(-r, -r); context.lineTo(-r, -3 * r); context.lineTo(r, -3 * r); context.lineTo(r, -r); context.lineTo(3 * r, -r); context.lineTo(3 * r, r); context.lineTo(r, r); context.lineTo(r, 3 * r); context.lineTo(-r, 3 * r); context.lineTo(-r, r); context.lineTo(-3 * r, r); context.closePath(); } }); /***/ }), /***/ "../../../node_modules/d3-shape/src/symbol/diamond.js": /*!***************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/symbol/diamond.js ***! \***************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); var tan30 = Math.sqrt(1 / 3), tan30_2 = tan30 * 2; /* harmony default export */ __webpack_exports__["default"] = ({ draw: function(context, size) { var y = Math.sqrt(size / tan30_2), x = y * tan30; context.moveTo(0, -y); context.lineTo(x, 0); context.lineTo(0, y); context.lineTo(-x, 0); context.closePath(); } }); /***/ }), /***/ "../../../node_modules/d3-shape/src/symbol/square.js": /*!**************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/symbol/square.js ***! \**************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = ({ draw: function(context, size) { var w = Math.sqrt(size), x = -w / 2; context.rect(x, x, w, w); } }); /***/ }), /***/ "../../../node_modules/d3-shape/src/symbol/star.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/symbol/star.js ***! \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "../../../node_modules/d3-shape/src/math.js"); var ka = 0.89081309152928522810, kr = Math.sin(_math_js__WEBPACK_IMPORTED_MODULE_0__["pi"] / 10) / Math.sin(7 * _math_js__WEBPACK_IMPORTED_MODULE_0__["pi"] / 10), kx = Math.sin(_math_js__WEBPACK_IMPORTED_MODULE_0__["tau"] / 10) * kr, ky = -Math.cos(_math_js__WEBPACK_IMPORTED_MODULE_0__["tau"] / 10) * kr; /* harmony default export */ __webpack_exports__["default"] = ({ draw: function(context, size) { var r = Math.sqrt(size * ka), x = kx * r, y = ky * r; context.moveTo(0, -r); context.lineTo(x, y); for (var i = 1; i < 5; ++i) { var a = _math_js__WEBPACK_IMPORTED_MODULE_0__["tau"] * i / 5, c = Math.cos(a), s = Math.sin(a); context.lineTo(s * r, -c * r); context.lineTo(c * x - s * y, s * x + c * y); } context.closePath(); } }); /***/ }), /***/ "../../../node_modules/d3-shape/src/symbol/triangle.js": /*!****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/symbol/triangle.js ***! \****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); var sqrt3 = Math.sqrt(3); /* harmony default export */ __webpack_exports__["default"] = ({ draw: function(context, size) { var y = -Math.sqrt(size / (sqrt3 * 3)); context.moveTo(0, y * 2); context.lineTo(-sqrt3 * y, -y); context.lineTo(sqrt3 * y, -y); context.closePath(); } }); /***/ }), /***/ "../../../node_modules/d3-shape/src/symbol/wye.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-shape/src/symbol/wye.js ***! \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); var c = -0.5, s = Math.sqrt(3) / 2, k = 1 / Math.sqrt(12), a = (k / 2 + 1) * 3; /* harmony default export */ __webpack_exports__["default"] = ({ draw: function(context, size) { var r = Math.sqrt(size / a), x0 = r / 2, y0 = r * k, x1 = x0, y1 = r * k + r, x2 = -x1, y2 = y1; context.moveTo(x0, y0); context.lineTo(x1, y1); context.lineTo(x2, y2); context.lineTo(c * x0 - s * y0, s * x0 + c * y0); context.lineTo(c * x1 - s * y1, s * x1 + c * y1); context.lineTo(c * x2 - s * y2, s * x2 + c * y2); context.lineTo(c * x0 + s * y0, c * y0 - s * x0); context.lineTo(c * x1 + s * y1, c * y1 - s * x1); context.lineTo(c * x2 + s * y2, c * y2 - s * x2); context.closePath(); } }); /***/ }), /***/ "../../../node_modules/d3-time-format/src/defaultLocale.js": /*!********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time-format/src/defaultLocale.js ***! \********************************************************************************************/ /*! exports provided: timeFormat, timeParse, utcFormat, utcParse, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeFormat", function() { return timeFormat; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeParse", function() { return timeParse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcFormat", function() { return utcFormat; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcParse", function() { return utcParse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return defaultLocale; }); /* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../../node_modules/d3-time-format/src/locale.js"); var locale; var timeFormat; var timeParse; var utcFormat; var utcParse; defaultLocale({ dateTime: "%x, %X", date: "%-m/%-d/%Y", time: "%-I:%M:%S %p", periods: ["AM", "PM"], days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] }); function defaultLocale(definition) { locale = Object(_locale_js__WEBPACK_IMPORTED_MODULE_0__["default"])(definition); timeFormat = locale.format; timeParse = locale.parse; utcFormat = locale.utcFormat; utcParse = locale.utcParse; return locale; } /***/ }), /***/ "../../../node_modules/d3-time-format/src/index.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time-format/src/index.js ***! \************************************************************************************/ /*! exports provided: timeFormatDefaultLocale, timeFormat, timeParse, utcFormat, utcParse, timeFormatLocale, isoFormat, isoParse */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultLocale.js */ "../../../node_modules/d3-time-format/src/defaultLocale.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormatDefaultLocale", function() { return _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormat", function() { return _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["timeFormat"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeParse", function() { return _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["timeParse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFormat", function() { return _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["utcFormat"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcParse", function() { return _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["utcParse"]; }); /* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./locale.js */ "../../../node_modules/d3-time-format/src/locale.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormatLocale", function() { return _locale_js__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _isoFormat_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isoFormat.js */ "../../../node_modules/d3-time-format/src/isoFormat.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isoFormat", function() { return _isoFormat_js__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _isoParse_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isoParse.js */ "../../../node_modules/d3-time-format/src/isoParse.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isoParse", function() { return _isoParse_js__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /***/ }), /***/ "../../../node_modules/d3-time-format/src/isoFormat.js": /*!****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time-format/src/isoFormat.js ***! \****************************************************************************************/ /*! exports provided: isoSpecifier, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isoSpecifier", function() { return isoSpecifier; }); /* harmony import */ var _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultLocale.js */ "../../../node_modules/d3-time-format/src/defaultLocale.js"); var isoSpecifier = "%Y-%m-%dT%H:%M:%S.%LZ"; function formatIsoNative(date) { return date.toISOString(); } var formatIso = Date.prototype.toISOString ? formatIsoNative : Object(_defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["utcFormat"])(isoSpecifier); /* harmony default export */ __webpack_exports__["default"] = (formatIso); /***/ }), /***/ "../../../node_modules/d3-time-format/src/isoParse.js": /*!***************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time-format/src/isoParse.js ***! \***************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _isoFormat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isoFormat.js */ "../../../node_modules/d3-time-format/src/isoFormat.js"); /* harmony import */ var _defaultLocale_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./defaultLocale.js */ "../../../node_modules/d3-time-format/src/defaultLocale.js"); function parseIsoNative(string) { var date = new Date(string); return isNaN(date) ? null : date; } var parseIso = +new Date("2000-01-01T00:00:00.000Z") ? parseIsoNative : Object(_defaultLocale_js__WEBPACK_IMPORTED_MODULE_1__["utcParse"])(_isoFormat_js__WEBPACK_IMPORTED_MODULE_0__["isoSpecifier"]); /* harmony default export */ __webpack_exports__["default"] = (parseIso); /***/ }), /***/ "../../../node_modules/d3-time-format/src/locale.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time-format/src/locale.js ***! \*************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return formatLocale; }); /* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/index.js"); function localDate(d) { if (0 <= d.y && d.y < 100) { var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L); date.setFullYear(d.y); return date; } return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L); } function utcDate(d) { if (0 <= d.y && d.y < 100) { var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L)); date.setUTCFullYear(d.y); return date; } return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L)); } function newDate(y, m, d) { return {y: y, m: m, d: d, H: 0, M: 0, S: 0, L: 0}; } function formatLocale(locale) { var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_weekdays = locale.days, locale_shortWeekdays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths; var periodRe = formatRe(locale_periods), periodLookup = formatLookup(locale_periods), weekdayRe = formatRe(locale_weekdays), weekdayLookup = formatLookup(locale_weekdays), shortWeekdayRe = formatRe(locale_shortWeekdays), shortWeekdayLookup = formatLookup(locale_shortWeekdays), monthRe = formatRe(locale_months), monthLookup = formatLookup(locale_months), shortMonthRe = formatRe(locale_shortMonths), shortMonthLookup = formatLookup(locale_shortMonths); var formats = { "a": formatShortWeekday, "A": formatWeekday, "b": formatShortMonth, "B": formatMonth, "c": null, "d": formatDayOfMonth, "e": formatDayOfMonth, "f": formatMicroseconds, "H": formatHour24, "I": formatHour12, "j": formatDayOfYear, "L": formatMilliseconds, "m": formatMonthNumber, "M": formatMinutes, "p": formatPeriod, "q": formatQuarter, "Q": formatUnixTimestamp, "s": formatUnixTimestampSeconds, "S": formatSeconds, "u": formatWeekdayNumberMonday, "U": formatWeekNumberSunday, "V": formatWeekNumberISO, "w": formatWeekdayNumberSunday, "W": formatWeekNumberMonday, "x": null, "X": null, "y": formatYear, "Y": formatFullYear, "Z": formatZone, "%": formatLiteralPercent }; var utcFormats = { "a": formatUTCShortWeekday, "A": formatUTCWeekday, "b": formatUTCShortMonth, "B": formatUTCMonth, "c": null, "d": formatUTCDayOfMonth, "e": formatUTCDayOfMonth, "f": formatUTCMicroseconds, "H": formatUTCHour24, "I": formatUTCHour12, "j": formatUTCDayOfYear, "L": formatUTCMilliseconds, "m": formatUTCMonthNumber, "M": formatUTCMinutes, "p": formatUTCPeriod, "q": formatUTCQuarter, "Q": formatUnixTimestamp, "s": formatUnixTimestampSeconds, "S": formatUTCSeconds, "u": formatUTCWeekdayNumberMonday, "U": formatUTCWeekNumberSunday, "V": formatUTCWeekNumberISO, "w": formatUTCWeekdayNumberSunday, "W": formatUTCWeekNumberMonday, "x": null, "X": null, "y": formatUTCYear, "Y": formatUTCFullYear, "Z": formatUTCZone, "%": formatLiteralPercent }; var parses = { "a": parseShortWeekday, "A": parseWeekday, "b": parseShortMonth, "B": parseMonth, "c": parseLocaleDateTime, "d": parseDayOfMonth, "e": parseDayOfMonth, "f": parseMicroseconds, "H": parseHour24, "I": parseHour24, "j": parseDayOfYear, "L": parseMilliseconds, "m": parseMonthNumber, "M": parseMinutes, "p": parsePeriod, "q": parseQuarter, "Q": parseUnixTimestamp, "s": parseUnixTimestampSeconds, "S": parseSeconds, "u": parseWeekdayNumberMonday, "U": parseWeekNumberSunday, "V": parseWeekNumberISO, "w": parseWeekdayNumberSunday, "W": parseWeekNumberMonday, "x": parseLocaleDate, "X": parseLocaleTime, "y": parseYear, "Y": parseFullYear, "Z": parseZone, "%": parseLiteralPercent }; // These recursive directive definitions must be deferred. formats.x = newFormat(locale_date, formats); formats.X = newFormat(locale_time, formats); formats.c = newFormat(locale_dateTime, formats); utcFormats.x = newFormat(locale_date, utcFormats); utcFormats.X = newFormat(locale_time, utcFormats); utcFormats.c = newFormat(locale_dateTime, utcFormats); function newFormat(specifier, formats) { return function(date) { var string = [], i = -1, j = 0, n = specifier.length, c, pad, format; if (!(date instanceof Date)) date = new Date(+date); while (++i < n) { if (specifier.charCodeAt(i) === 37) { string.push(specifier.slice(j, i)); if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i); else pad = c === "e" ? " " : "0"; if (format = formats[c]) c = format(date, pad); string.push(c); j = i + 1; } } string.push(specifier.slice(j, i)); return string.join(""); }; } function newParse(specifier, Z) { return function(string) { var d = newDate(1900, undefined, 1), i = parseSpecifier(d, specifier, string += "", 0), week, day; if (i != string.length) return null; // If a UNIX timestamp is specified, return it. if ("Q" in d) return new Date(d.Q); if ("s" in d) return new Date(d.s * 1000 + ("L" in d ? d.L : 0)); // If this is utcParse, never use the local timezone. if (Z && !("Z" in d)) d.Z = 0; // The am-pm flag is 0 for AM, and 1 for PM. if ("p" in d) d.H = d.H % 12 + d.p * 12; // If the month was not specified, inherit from the quarter. if (d.m === undefined) d.m = "q" in d ? d.q : 0; // Convert day-of-week and week-of-year to day-of-year. if ("V" in d) { if (d.V < 1 || d.V > 53) return null; if (!("w" in d)) d.w = 1; if ("Z" in d) { week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay(); week = day > 4 || day === 0 ? d3_time__WEBPACK_IMPORTED_MODULE_0__["utcMonday"].ceil(week) : Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcMonday"])(week); week = d3_time__WEBPACK_IMPORTED_MODULE_0__["utcDay"].offset(week, (d.V - 1) * 7); d.y = week.getUTCFullYear(); d.m = week.getUTCMonth(); d.d = week.getUTCDate() + (d.w + 6) % 7; } else { week = localDate(newDate(d.y, 0, 1)), day = week.getDay(); week = day > 4 || day === 0 ? d3_time__WEBPACK_IMPORTED_MODULE_0__["timeMonday"].ceil(week) : Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeMonday"])(week); week = d3_time__WEBPACK_IMPORTED_MODULE_0__["timeDay"].offset(week, (d.V - 1) * 7); d.y = week.getFullYear(); d.m = week.getMonth(); d.d = week.getDate() + (d.w + 6) % 7; } } else if ("W" in d || "U" in d) { if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0; day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay(); d.m = 0; d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7; } // If a time zone is specified, all fields are interpreted as UTC and then // offset according to the specified time zone. if ("Z" in d) { d.H += d.Z / 100 | 0; d.M += d.Z % 100; return utcDate(d); } // Otherwise, all fields are in local time. return localDate(d); }; } function parseSpecifier(d, specifier, string, j) { var i = 0, n = specifier.length, m = string.length, c, parse; while (i < n) { if (j >= m) return -1; c = specifier.charCodeAt(i++); if (c === 37) { c = specifier.charAt(i++); parse = parses[c in pads ? specifier.charAt(i++) : c]; if (!parse || ((j = parse(d, string, j)) < 0)) return -1; } else if (c != string.charCodeAt(j++)) { return -1; } } return j; } function parsePeriod(d, string, i) { var n = periodRe.exec(string.slice(i)); return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1; } function parseShortWeekday(d, string, i) { var n = shortWeekdayRe.exec(string.slice(i)); return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1; } function parseWeekday(d, string, i) { var n = weekdayRe.exec(string.slice(i)); return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1; } function parseShortMonth(d, string, i) { var n = shortMonthRe.exec(string.slice(i)); return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1; } function parseMonth(d, string, i) { var n = monthRe.exec(string.slice(i)); return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1; } function parseLocaleDateTime(d, string, i) { return parseSpecifier(d, locale_dateTime, string, i); } function parseLocaleDate(d, string, i) { return parseSpecifier(d, locale_date, string, i); } function parseLocaleTime(d, string, i) { return parseSpecifier(d, locale_time, string, i); } function formatShortWeekday(d) { return locale_shortWeekdays[d.getDay()]; } function formatWeekday(d) { return locale_weekdays[d.getDay()]; } function formatShortMonth(d) { return locale_shortMonths[d.getMonth()]; } function formatMonth(d) { return locale_months[d.getMonth()]; } function formatPeriod(d) { return locale_periods[+(d.getHours() >= 12)]; } function formatQuarter(d) { return 1 + ~~(d.getMonth() / 3); } function formatUTCShortWeekday(d) { return locale_shortWeekdays[d.getUTCDay()]; } function formatUTCWeekday(d) { return locale_weekdays[d.getUTCDay()]; } function formatUTCShortMonth(d) { return locale_shortMonths[d.getUTCMonth()]; } function formatUTCMonth(d) { return locale_months[d.getUTCMonth()]; } function formatUTCPeriod(d) { return locale_periods[+(d.getUTCHours() >= 12)]; } function formatUTCQuarter(d) { return 1 + ~~(d.getUTCMonth() / 3); } return { format: function(specifier) { var f = newFormat(specifier += "", formats); f.toString = function() { return specifier; }; return f; }, parse: function(specifier) { var p = newParse(specifier += "", false); p.toString = function() { return specifier; }; return p; }, utcFormat: function(specifier) { var f = newFormat(specifier += "", utcFormats); f.toString = function() { return specifier; }; return f; }, utcParse: function(specifier) { var p = newParse(specifier += "", true); p.toString = function() { return specifier; }; return p; } }; } var pads = {"-": "", "_": " ", "0": "0"}, numberRe = /^\s*\d+/, // note: ignores next directive percentRe = /^%/, requoteRe = /[\\^$*+?|[\]().{}]/g; function pad(value, fill, width) { var sign = value < 0 ? "-" : "", string = (sign ? -value : value) + "", length = string.length; return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string); } function requote(s) { return s.replace(requoteRe, "\\$&"); } function formatRe(names) { return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i"); } function formatLookup(names) { var map = {}, i = -1, n = names.length; while (++i < n) map[names[i].toLowerCase()] = i; return map; } function parseWeekdayNumberSunday(d, string, i) { var n = numberRe.exec(string.slice(i, i + 1)); return n ? (d.w = +n[0], i + n[0].length) : -1; } function parseWeekdayNumberMonday(d, string, i) { var n = numberRe.exec(string.slice(i, i + 1)); return n ? (d.u = +n[0], i + n[0].length) : -1; } function parseWeekNumberSunday(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.U = +n[0], i + n[0].length) : -1; } function parseWeekNumberISO(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.V = +n[0], i + n[0].length) : -1; } function parseWeekNumberMonday(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.W = +n[0], i + n[0].length) : -1; } function parseFullYear(d, string, i) { var n = numberRe.exec(string.slice(i, i + 4)); return n ? (d.y = +n[0], i + n[0].length) : -1; } function parseYear(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1; } function parseZone(d, string, i) { var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6)); return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1; } function parseQuarter(d, string, i) { var n = numberRe.exec(string.slice(i, i + 1)); return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1; } function parseMonthNumber(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.m = n[0] - 1, i + n[0].length) : -1; } function parseDayOfMonth(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.d = +n[0], i + n[0].length) : -1; } function parseDayOfYear(d, string, i) { var n = numberRe.exec(string.slice(i, i + 3)); return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1; } function parseHour24(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.H = +n[0], i + n[0].length) : -1; } function parseMinutes(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.M = +n[0], i + n[0].length) : -1; } function parseSeconds(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.S = +n[0], i + n[0].length) : -1; } function parseMilliseconds(d, string, i) { var n = numberRe.exec(string.slice(i, i + 3)); return n ? (d.L = +n[0], i + n[0].length) : -1; } function parseMicroseconds(d, string, i) { var n = numberRe.exec(string.slice(i, i + 6)); return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1; } function parseLiteralPercent(d, string, i) { var n = percentRe.exec(string.slice(i, i + 1)); return n ? i + n[0].length : -1; } function parseUnixTimestamp(d, string, i) { var n = numberRe.exec(string.slice(i)); return n ? (d.Q = +n[0], i + n[0].length) : -1; } function parseUnixTimestampSeconds(d, string, i) { var n = numberRe.exec(string.slice(i)); return n ? (d.s = +n[0], i + n[0].length) : -1; } function formatDayOfMonth(d, p) { return pad(d.getDate(), p, 2); } function formatHour24(d, p) { return pad(d.getHours(), p, 2); } function formatHour12(d, p) { return pad(d.getHours() % 12 || 12, p, 2); } function formatDayOfYear(d, p) { return pad(1 + d3_time__WEBPACK_IMPORTED_MODULE_0__["timeDay"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d), d), p, 3); } function formatMilliseconds(d, p) { return pad(d.getMilliseconds(), p, 3); } function formatMicroseconds(d, p) { return formatMilliseconds(d, p) + "000"; } function formatMonthNumber(d, p) { return pad(d.getMonth() + 1, p, 2); } function formatMinutes(d, p) { return pad(d.getMinutes(), p, 2); } function formatSeconds(d, p) { return pad(d.getSeconds(), p, 2); } function formatWeekdayNumberMonday(d) { var day = d.getDay(); return day === 0 ? 7 : day; } function formatWeekNumberSunday(d, p) { return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeSunday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d) - 1, d), p, 2); } function formatWeekNumberISO(d, p) { var day = d.getDay(); d = (day >= 4 || day === 0) ? Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeThursday"])(d) : d3_time__WEBPACK_IMPORTED_MODULE_0__["timeThursday"].ceil(d); return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeThursday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d), d) + (Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d).getDay() === 4), p, 2); } function formatWeekdayNumberSunday(d) { return d.getDay(); } function formatWeekNumberMonday(d, p) { return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeMonday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d) - 1, d), p, 2); } function formatYear(d, p) { return pad(d.getFullYear() % 100, p, 2); } function formatFullYear(d, p) { return pad(d.getFullYear() % 10000, p, 4); } function formatZone(d) { var z = d.getTimezoneOffset(); return (z > 0 ? "-" : (z *= -1, "+")) + pad(z / 60 | 0, "0", 2) + pad(z % 60, "0", 2); } function formatUTCDayOfMonth(d, p) { return pad(d.getUTCDate(), p, 2); } function formatUTCHour24(d, p) { return pad(d.getUTCHours(), p, 2); } function formatUTCHour12(d, p) { return pad(d.getUTCHours() % 12 || 12, p, 2); } function formatUTCDayOfYear(d, p) { return pad(1 + d3_time__WEBPACK_IMPORTED_MODULE_0__["utcDay"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d), d), p, 3); } function formatUTCMilliseconds(d, p) { return pad(d.getUTCMilliseconds(), p, 3); } function formatUTCMicroseconds(d, p) { return formatUTCMilliseconds(d, p) + "000"; } function formatUTCMonthNumber(d, p) { return pad(d.getUTCMonth() + 1, p, 2); } function formatUTCMinutes(d, p) { return pad(d.getUTCMinutes(), p, 2); } function formatUTCSeconds(d, p) { return pad(d.getUTCSeconds(), p, 2); } function formatUTCWeekdayNumberMonday(d) { var dow = d.getUTCDay(); return dow === 0 ? 7 : dow; } function formatUTCWeekNumberSunday(d, p) { return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcSunday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d) - 1, d), p, 2); } function formatUTCWeekNumberISO(d, p) { var day = d.getUTCDay(); d = (day >= 4 || day === 0) ? Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcThursday"])(d) : d3_time__WEBPACK_IMPORTED_MODULE_0__["utcThursday"].ceil(d); return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcThursday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d), d) + (Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d).getUTCDay() === 4), p, 2); } function formatUTCWeekdayNumberSunday(d) { return d.getUTCDay(); } function formatUTCWeekNumberMonday(d, p) { return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcMonday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d) - 1, d), p, 2); } function formatUTCYear(d, p) { return pad(d.getUTCFullYear() % 100, p, 2); } function formatUTCFullYear(d, p) { return pad(d.getUTCFullYear() % 10000, p, 4); } function formatUTCZone() { return "+0000"; } function formatLiteralPercent() { return "%"; } function formatUnixTimestamp(d) { return +d; } function formatUnixTimestampSeconds(d) { return Math.floor(+d / 1000); } /***/ }), /***/ "../../../node_modules/d3-time/src/day.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/day.js ***! \***************************************************************************/ /*! exports provided: default, days */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "days", function() { return days; }); /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../../node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../../node_modules/d3-time/src/duration.js"); var day = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setHours(0, 0, 0, 0); }, function(date, step) { date.setDate(date.getDate() + step); }, function(start, end) { return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationDay"]; }, function(date) { return date.getDate() - 1; }); /* harmony default export */ __webpack_exports__["default"] = (day); var days = day.range; /***/ }), /***/ "../../../node_modules/d3-time/src/duration.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/duration.js ***! \********************************************************************************/ /*! exports provided: durationSecond, durationMinute, durationHour, durationDay, durationWeek */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationSecond", function() { return durationSecond; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationMinute", function() { return durationMinute; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationHour", function() { return durationHour; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationDay", function() { return durationDay; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationWeek", function() { return durationWeek; }); var durationSecond = 1e3; var durationMinute = 6e4; var durationHour = 36e5; var durationDay = 864e5; var durationWeek = 6048e5; /***/ }), /***/ "../../../node_modules/d3-time/src/hour.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/hour.js ***! \****************************************************************************/ /*! exports provided: default, hours */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hours", function() { return hours; }); /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../../node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../../node_modules/d3-time/src/duration.js"); var hour = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setTime(date - date.getMilliseconds() - date.getSeconds() * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationSecond"] - date.getMinutes() * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]); }, function(date, step) { date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationHour"]); }, function(start, end) { return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationHour"]; }, function(date) { return date.getHours(); }); /* harmony default export */ __webpack_exports__["default"] = (hour); var hours = hour.range; /***/ }), /***/ "../../../node_modules/d3-time/src/index.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/index.js ***! \*****************************************************************************/ /*! exports provided: timeInterval, timeMillisecond, timeMilliseconds, utcMillisecond, utcMilliseconds, timeSecond, timeSeconds, utcSecond, utcSeconds, timeMinute, timeMinutes, timeHour, timeHours, timeDay, timeDays, timeWeek, timeWeeks, timeSunday, timeSundays, timeMonday, timeMondays, timeTuesday, timeTuesdays, timeWednesday, timeWednesdays, timeThursday, timeThursdays, timeFriday, timeFridays, timeSaturday, timeSaturdays, timeMonth, timeMonths, timeYear, timeYears, utcMinute, utcMinutes, utcHour, utcHours, utcDay, utcDays, utcWeek, utcWeeks, utcSunday, utcSundays, utcMonday, utcMondays, utcTuesday, utcTuesdays, utcWednesday, utcWednesdays, utcThursday, utcThursdays, utcFriday, utcFridays, utcSaturday, utcSaturdays, utcMonth, utcMonths, utcYear, utcYears */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../../node_modules/d3-time/src/interval.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeInterval", function() { return _interval_js__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _millisecond_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./millisecond.js */ "../../../node_modules/d3-time/src/millisecond.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMillisecond", function() { return _millisecond_js__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMilliseconds", function() { return _millisecond_js__WEBPACK_IMPORTED_MODULE_1__["milliseconds"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMillisecond", function() { return _millisecond_js__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMilliseconds", function() { return _millisecond_js__WEBPACK_IMPORTED_MODULE_1__["milliseconds"]; }); /* harmony import */ var _second_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./second.js */ "../../../node_modules/d3-time/src/second.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSecond", function() { return _second_js__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSeconds", function() { return _second_js__WEBPACK_IMPORTED_MODULE_2__["seconds"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSecond", function() { return _second_js__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSeconds", function() { return _second_js__WEBPACK_IMPORTED_MODULE_2__["seconds"]; }); /* harmony import */ var _minute_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./minute.js */ "../../../node_modules/d3-time/src/minute.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMinute", function() { return _minute_js__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMinutes", function() { return _minute_js__WEBPACK_IMPORTED_MODULE_3__["minutes"]; }); /* harmony import */ var _hour_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hour.js */ "../../../node_modules/d3-time/src/hour.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeHour", function() { return _hour_js__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeHours", function() { return _hour_js__WEBPACK_IMPORTED_MODULE_4__["hours"]; }); /* harmony import */ var _day_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./day.js */ "../../../node_modules/d3-time/src/day.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeDay", function() { return _day_js__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeDays", function() { return _day_js__WEBPACK_IMPORTED_MODULE_5__["days"]; }); /* harmony import */ var _week_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./week.js */ "../../../node_modules/d3-time/src/week.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWeek", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["sunday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWeeks", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["sundays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSunday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["sunday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSundays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["sundays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["monday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMondays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["mondays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeTuesday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["tuesday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeTuesdays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["tuesdays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWednesday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["wednesday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWednesdays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["wednesdays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeThursday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["thursday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeThursdays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["thursdays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFriday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["friday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFridays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["fridays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSaturday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["saturday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSaturdays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["saturdays"]; }); /* harmony import */ var _month_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./month.js */ "../../../node_modules/d3-time/src/month.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonth", function() { return _month_js__WEBPACK_IMPORTED_MODULE_7__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonths", function() { return _month_js__WEBPACK_IMPORTED_MODULE_7__["months"]; }); /* harmony import */ var _year_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./year.js */ "../../../node_modules/d3-time/src/year.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeYear", function() { return _year_js__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeYears", function() { return _year_js__WEBPACK_IMPORTED_MODULE_8__["years"]; }); /* harmony import */ var _utcMinute_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utcMinute.js */ "../../../node_modules/d3-time/src/utcMinute.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMinute", function() { return _utcMinute_js__WEBPACK_IMPORTED_MODULE_9__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMinutes", function() { return _utcMinute_js__WEBPACK_IMPORTED_MODULE_9__["utcMinutes"]; }); /* harmony import */ var _utcHour_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utcHour.js */ "../../../node_modules/d3-time/src/utcHour.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcHour", function() { return _utcHour_js__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcHours", function() { return _utcHour_js__WEBPACK_IMPORTED_MODULE_10__["utcHours"]; }); /* harmony import */ var _utcDay_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utcDay.js */ "../../../node_modules/d3-time/src/utcDay.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcDay", function() { return _utcDay_js__WEBPACK_IMPORTED_MODULE_11__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcDays", function() { return _utcDay_js__WEBPACK_IMPORTED_MODULE_11__["utcDays"]; }); /* harmony import */ var _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utcWeek.js */ "../../../node_modules/d3-time/src/utcWeek.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWeek", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSunday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWeeks", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSundays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSunday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSunday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSundays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSundays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcMonday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMondays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcMondays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcTuesday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcTuesday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcTuesdays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcTuesdays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWednesday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcWednesday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWednesdays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcWednesdays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcThursday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcThursday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcThursdays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcThursdays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFriday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcFriday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFridays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcFridays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSaturday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSaturday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSaturdays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSaturdays"]; }); /* harmony import */ var _utcMonth_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utcMonth.js */ "../../../node_modules/d3-time/src/utcMonth.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonth", function() { return _utcMonth_js__WEBPACK_IMPORTED_MODULE_13__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonths", function() { return _utcMonth_js__WEBPACK_IMPORTED_MODULE_13__["utcMonths"]; }); /* harmony import */ var _utcYear_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./utcYear.js */ "../../../node_modules/d3-time/src/utcYear.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcYear", function() { return _utcYear_js__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcYears", function() { return _utcYear_js__WEBPACK_IMPORTED_MODULE_14__["utcYears"]; }); /***/ }), /***/ "../../../node_modules/d3-time/src/interval.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/interval.js ***! \********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return newInterval; }); var t0 = new Date, t1 = new Date; function newInterval(floori, offseti, count, field) { function interval(date) { return floori(date = arguments.length === 0 ? new Date : new Date(+date)), date; } interval.floor = function(date) { return floori(date = new Date(+date)), date; }; interval.ceil = function(date) { return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date; }; interval.round = function(date) { var d0 = interval(date), d1 = interval.ceil(date); return date - d0 < d1 - date ? d0 : d1; }; interval.offset = function(date, step) { return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date; }; interval.range = function(start, stop, step) { var range = [], previous; start = interval.ceil(start); step = step == null ? 1 : Math.floor(step); if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date do range.push(previous = new Date(+start)), offseti(start, step), floori(start); while (previous < start && start < stop); return range; }; interval.filter = function(test) { return newInterval(function(date) { if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1); }, function(date, step) { if (date >= date) { if (step < 0) while (++step <= 0) { while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty } else while (--step >= 0) { while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty } } }); }; if (count) { interval.count = function(start, end) { t0.setTime(+start), t1.setTime(+end); floori(t0), floori(t1); return Math.floor(count(t0, t1)); }; interval.every = function(step) { step = Math.floor(step); return !isFinite(step) || !(step > 0) ? null : !(step > 1) ? interval : interval.filter(field ? function(d) { return field(d) % step === 0; } : function(d) { return interval.count(0, d) % step === 0; }); }; } return interval; } /***/ }), /***/ "../../../node_modules/d3-time/src/millisecond.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/millisecond.js ***! \***********************************************************************************/ /*! exports provided: default, milliseconds */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "milliseconds", function() { return milliseconds; }); /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../../node_modules/d3-time/src/interval.js"); var millisecond = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function() { // noop }, function(date, step) { date.setTime(+date + step); }, function(start, end) { return end - start; }); // An optimized implementation for this simple case. millisecond.every = function(k) { k = Math.floor(k); if (!isFinite(k) || !(k > 0)) return null; if (!(k > 1)) return millisecond; return Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setTime(Math.floor(date / k) * k); }, function(date, step) { date.setTime(+date + step * k); }, function(start, end) { return (end - start) / k; }); }; /* harmony default export */ __webpack_exports__["default"] = (millisecond); var milliseconds = millisecond.range; /***/ }), /***/ "../../../node_modules/d3-time/src/minute.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/minute.js ***! \******************************************************************************/ /*! exports provided: default, minutes */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "minutes", function() { return minutes; }); /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../../node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../../node_modules/d3-time/src/duration.js"); var minute = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setTime(date - date.getMilliseconds() - date.getSeconds() * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationSecond"]); }, function(date, step) { date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]); }, function(start, end) { return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]; }, function(date) { return date.getMinutes(); }); /* harmony default export */ __webpack_exports__["default"] = (minute); var minutes = minute.range; /***/ }), /***/ "../../../node_modules/d3-time/src/month.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/month.js ***! \*****************************************************************************/ /*! exports provided: default, months */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "months", function() { return months; }); /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../../node_modules/d3-time/src/interval.js"); var month = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setDate(1); date.setHours(0, 0, 0, 0); }, function(date, step) { date.setMonth(date.getMonth() + step); }, function(start, end) { return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12; }, function(date) { return date.getMonth(); }); /* harmony default export */ __webpack_exports__["default"] = (month); var months = month.range; /***/ }), /***/ "../../../node_modules/d3-time/src/second.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/second.js ***! \******************************************************************************/ /*! exports provided: default, seconds */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "seconds", function() { return seconds; }); /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../../node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../../node_modules/d3-time/src/duration.js"); var second = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setTime(date - date.getMilliseconds()); }, function(date, step) { date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationSecond"]); }, function(start, end) { return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationSecond"]; }, function(date) { return date.getUTCSeconds(); }); /* harmony default export */ __webpack_exports__["default"] = (second); var seconds = second.range; /***/ }), /***/ "../../../node_modules/d3-time/src/utcDay.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/utcDay.js ***! \******************************************************************************/ /*! exports provided: default, utcDays */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcDays", function() { return utcDays; }); /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../../node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../../node_modules/d3-time/src/duration.js"); var utcDay = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setUTCHours(0, 0, 0, 0); }, function(date, step) { date.setUTCDate(date.getUTCDate() + step); }, function(start, end) { return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationDay"]; }, function(date) { return date.getUTCDate() - 1; }); /* harmony default export */ __webpack_exports__["default"] = (utcDay); var utcDays = utcDay.range; /***/ }), /***/ "../../../node_modules/d3-time/src/utcHour.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/utcHour.js ***! \*******************************************************************************/ /*! exports provided: default, utcHours */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcHours", function() { return utcHours; }); /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../../node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../../node_modules/d3-time/src/duration.js"); var utcHour = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setUTCMinutes(0, 0, 0); }, function(date, step) { date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationHour"]); }, function(start, end) { return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationHour"]; }, function(date) { return date.getUTCHours(); }); /* harmony default export */ __webpack_exports__["default"] = (utcHour); var utcHours = utcHour.range; /***/ }), /***/ "../../../node_modules/d3-time/src/utcMinute.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/utcMinute.js ***! \*********************************************************************************/ /*! exports provided: default, utcMinutes */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMinutes", function() { return utcMinutes; }); /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../../node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../../node_modules/d3-time/src/duration.js"); var utcMinute = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setUTCSeconds(0, 0); }, function(date, step) { date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]); }, function(start, end) { return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]; }, function(date) { return date.getUTCMinutes(); }); /* harmony default export */ __webpack_exports__["default"] = (utcMinute); var utcMinutes = utcMinute.range; /***/ }), /***/ "../../../node_modules/d3-time/src/utcMonth.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/utcMonth.js ***! \********************************************************************************/ /*! exports provided: default, utcMonths */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMonths", function() { return utcMonths; }); /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../../node_modules/d3-time/src/interval.js"); var utcMonth = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setUTCDate(1); date.setUTCHours(0, 0, 0, 0); }, function(date, step) { date.setUTCMonth(date.getUTCMonth() + step); }, function(start, end) { return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12; }, function(date) { return date.getUTCMonth(); }); /* harmony default export */ __webpack_exports__["default"] = (utcMonth); var utcMonths = utcMonth.range; /***/ }), /***/ "../../../node_modules/d3-time/src/utcWeek.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/utcWeek.js ***! \*******************************************************************************/ /*! exports provided: utcSunday, utcMonday, utcTuesday, utcWednesday, utcThursday, utcFriday, utcSaturday, utcSundays, utcMondays, utcTuesdays, utcWednesdays, utcThursdays, utcFridays, utcSaturdays */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSunday", function() { return utcSunday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMonday", function() { return utcMonday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcTuesday", function() { return utcTuesday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcWednesday", function() { return utcWednesday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcThursday", function() { return utcThursday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcFriday", function() { return utcFriday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSaturday", function() { return utcSaturday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSundays", function() { return utcSundays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMondays", function() { return utcMondays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcTuesdays", function() { return utcTuesdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcWednesdays", function() { return utcWednesdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcThursdays", function() { return utcThursdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcFridays", function() { return utcFridays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSaturdays", function() { return utcSaturdays; }); /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../../node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../../node_modules/d3-time/src/duration.js"); function utcWeekday(i) { return Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7); date.setUTCHours(0, 0, 0, 0); }, function(date, step) { date.setUTCDate(date.getUTCDate() + step * 7); }, function(start, end) { return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationWeek"]; }); } var utcSunday = utcWeekday(0); var utcMonday = utcWeekday(1); var utcTuesday = utcWeekday(2); var utcWednesday = utcWeekday(3); var utcThursday = utcWeekday(4); var utcFriday = utcWeekday(5); var utcSaturday = utcWeekday(6); var utcSundays = utcSunday.range; var utcMondays = utcMonday.range; var utcTuesdays = utcTuesday.range; var utcWednesdays = utcWednesday.range; var utcThursdays = utcThursday.range; var utcFridays = utcFriday.range; var utcSaturdays = utcSaturday.range; /***/ }), /***/ "../../../node_modules/d3-time/src/utcYear.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/utcYear.js ***! \*******************************************************************************/ /*! exports provided: default, utcYears */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcYears", function() { return utcYears; }); /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../../node_modules/d3-time/src/interval.js"); var utcYear = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setUTCMonth(0, 1); date.setUTCHours(0, 0, 0, 0); }, function(date, step) { date.setUTCFullYear(date.getUTCFullYear() + step); }, function(start, end) { return end.getUTCFullYear() - start.getUTCFullYear(); }, function(date) { return date.getUTCFullYear(); }); // An optimized implementation for this simple case. utcYear.every = function(k) { return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k); date.setUTCMonth(0, 1); date.setUTCHours(0, 0, 0, 0); }, function(date, step) { date.setUTCFullYear(date.getUTCFullYear() + step * k); }); }; /* harmony default export */ __webpack_exports__["default"] = (utcYear); var utcYears = utcYear.range; /***/ }), /***/ "../../../node_modules/d3-time/src/week.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/week.js ***! \****************************************************************************/ /*! exports provided: sunday, monday, tuesday, wednesday, thursday, friday, saturday, sundays, mondays, tuesdays, wednesdays, thursdays, fridays, saturdays */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sunday", function() { return sunday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monday", function() { return monday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tuesday", function() { return tuesday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wednesday", function() { return wednesday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "thursday", function() { return thursday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "friday", function() { return friday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saturday", function() { return saturday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sundays", function() { return sundays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mondays", function() { return mondays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tuesdays", function() { return tuesdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wednesdays", function() { return wednesdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "thursdays", function() { return thursdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fridays", function() { return fridays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saturdays", function() { return saturdays; }); /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../../node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../../node_modules/d3-time/src/duration.js"); function weekday(i) { return Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7); date.setHours(0, 0, 0, 0); }, function(date, step) { date.setDate(date.getDate() + step * 7); }, function(start, end) { return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationWeek"]; }); } var sunday = weekday(0); var monday = weekday(1); var tuesday = weekday(2); var wednesday = weekday(3); var thursday = weekday(4); var friday = weekday(5); var saturday = weekday(6); var sundays = sunday.range; var mondays = monday.range; var tuesdays = tuesday.range; var wednesdays = wednesday.range; var thursdays = thursday.range; var fridays = friday.range; var saturdays = saturday.range; /***/ }), /***/ "../../../node_modules/d3-time/src/year.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/year.js ***! \****************************************************************************/ /*! exports provided: default, years */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "years", function() { return years; }); /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../../node_modules/d3-time/src/interval.js"); var year = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setMonth(0, 1); date.setHours(0, 0, 0, 0); }, function(date, step) { date.setFullYear(date.getFullYear() + step); }, function(start, end) { return end.getFullYear() - start.getFullYear(); }, function(date) { return date.getFullYear(); }); // An optimized implementation for this simple case. year.every = function(k) { return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setFullYear(Math.floor(date.getFullYear() / k) * k); date.setMonth(0, 1); date.setHours(0, 0, 0, 0); }, function(date, step) { date.setFullYear(date.getFullYear() + step * k); }); }; /* harmony default export */ __webpack_exports__["default"] = (year); var years = year.range; /***/ }), /***/ "../../../node_modules/d3-timer/src/index.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-timer/src/index.js ***! \******************************************************************************/ /*! exports provided: now, timer, timerFlush, timeout, interval */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _timer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer.js */ "../../../node_modules/d3-timer/src/timer.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "now", function() { return _timer_js__WEBPACK_IMPORTED_MODULE_0__["now"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timer", function() { return _timer_js__WEBPACK_IMPORTED_MODULE_0__["timer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timerFlush", function() { return _timer_js__WEBPACK_IMPORTED_MODULE_0__["timerFlush"]; }); /* harmony import */ var _timeout_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./timeout.js */ "../../../node_modules/d3-timer/src/timeout.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeout", function() { return _timeout_js__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./interval.js */ "../../../node_modules/d3-timer/src/interval.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interval", function() { return _interval_js__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /***/ }), /***/ "../../../node_modules/d3-timer/src/interval.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-timer/src/interval.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _timer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer.js */ "../../../node_modules/d3-timer/src/timer.js"); /* harmony default export */ __webpack_exports__["default"] = (function(callback, delay, time) { var t = new _timer_js__WEBPACK_IMPORTED_MODULE_0__["Timer"], total = delay; if (delay == null) return t.restart(callback, delay, time), t; delay = +delay, time = time == null ? Object(_timer_js__WEBPACK_IMPORTED_MODULE_0__["now"])() : +time; t.restart(function tick(elapsed) { elapsed += total; t.restart(tick, total += delay, time); callback(elapsed); }, delay, time); return t; }); /***/ }), /***/ "../../../node_modules/d3-timer/src/timeout.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-timer/src/timeout.js ***! \********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _timer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer.js */ "../../../node_modules/d3-timer/src/timer.js"); /* harmony default export */ __webpack_exports__["default"] = (function(callback, delay, time) { var t = new _timer_js__WEBPACK_IMPORTED_MODULE_0__["Timer"]; delay = delay == null ? 0 : +delay; t.restart(function(elapsed) { t.stop(); callback(elapsed + delay); }, delay, time); return t; }); /***/ }), /***/ "../../../node_modules/d3-timer/src/timer.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-timer/src/timer.js ***! \******************************************************************************/ /*! exports provided: now, Timer, timer, timerFlush */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "now", function() { return now; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Timer", function() { return Timer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timer", function() { return timer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timerFlush", function() { return timerFlush; }); var frame = 0, // is an animation frame pending? timeout = 0, // is a timeout pending? interval = 0, // are any timers active? pokeDelay = 1000, // how frequently we check for clock skew taskHead, taskTail, clockLast = 0, clockNow = 0, clockSkew = 0, clock = typeof performance === "object" && performance.now ? performance : Date, setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); }; function now() { return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew); } function clearNow() { clockNow = 0; } function Timer() { this._call = this._time = this._next = null; } Timer.prototype = timer.prototype = { constructor: Timer, restart: function(callback, delay, time) { if (typeof callback !== "function") throw new TypeError("callback is not a function"); time = (time == null ? now() : +time) + (delay == null ? 0 : +delay); if (!this._next && taskTail !== this) { if (taskTail) taskTail._next = this; else taskHead = this; taskTail = this; } this._call = callback; this._time = time; sleep(); }, stop: function() { if (this._call) { this._call = null; this._time = Infinity; sleep(); } } }; function timer(callback, delay, time) { var t = new Timer; t.restart(callback, delay, time); return t; } function timerFlush() { now(); // Get the current time, if not already set. ++frame; // Pretend we’ve set an alarm, if we haven’t already. var t = taskHead, e; while (t) { if ((e = clockNow - t._time) >= 0) t._call.call(null, e); t = t._next; } --frame; } function wake() { clockNow = (clockLast = clock.now()) + clockSkew; frame = timeout = 0; try { timerFlush(); } finally { frame = 0; nap(); clockNow = 0; } } function poke() { var now = clock.now(), delay = now - clockLast; if (delay > pokeDelay) clockSkew -= delay, clockLast = now; } function nap() { var t0, t1 = taskHead, t2, time = Infinity; while (t1) { if (t1._call) { if (time > t1._time) time = t1._time; t0 = t1, t1 = t1._next; } else { t2 = t1._next, t1._next = null; t1 = t0 ? t0._next = t2 : taskHead = t2; } } taskTail = t0; sleep(time); } function sleep(time) { if (frame) return; // Soonest alarm already set, or will be. if (timeout) timeout = clearTimeout(timeout); var delay = time - clockNow; // Strictly less than if we recomputed clockNow. if (delay > 24) { if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew); if (interval) interval = clearInterval(interval); } else { if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay); frame = 1, setFrame(wake); } } /***/ }), /***/ "../../../node_modules/d3-voronoi/src/Beach.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-voronoi/src/Beach.js ***! \********************************************************************************/ /*! exports provided: removeBeach, addBeach */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeBeach", function() { return removeBeach; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addBeach", function() { return addBeach; }); /* harmony import */ var _RedBlackTree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RedBlackTree */ "../../../node_modules/d3-voronoi/src/RedBlackTree.js"); /* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Cell */ "../../../node_modules/d3-voronoi/src/Cell.js"); /* harmony import */ var _Circle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Circle */ "../../../node_modules/d3-voronoi/src/Circle.js"); /* harmony import */ var _Edge__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Edge */ "../../../node_modules/d3-voronoi/src/Edge.js"); /* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Diagram */ "../../../node_modules/d3-voronoi/src/Diagram.js"); var beachPool = []; function Beach() { Object(_RedBlackTree__WEBPACK_IMPORTED_MODULE_0__["RedBlackNode"])(this); this.edge = this.site = this.circle = null; } function createBeach(site) { var beach = beachPool.pop() || new Beach; beach.site = site; return beach; } function detachBeach(beach) { Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(beach); _Diagram__WEBPACK_IMPORTED_MODULE_4__["beaches"].remove(beach); beachPool.push(beach); Object(_RedBlackTree__WEBPACK_IMPORTED_MODULE_0__["RedBlackNode"])(beach); } function removeBeach(beach) { var circle = beach.circle, x = circle.x, y = circle.cy, vertex = [x, y], previous = beach.P, next = beach.N, disappearing = [beach]; detachBeach(beach); var lArc = previous; while (lArc.circle && Math.abs(x - lArc.circle.x) < _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"] && Math.abs(y - lArc.circle.cy) < _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) { previous = lArc.P; disappearing.unshift(lArc); detachBeach(lArc); lArc = previous; } disappearing.unshift(lArc); Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(lArc); var rArc = next; while (rArc.circle && Math.abs(x - rArc.circle.x) < _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"] && Math.abs(y - rArc.circle.cy) < _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) { next = rArc.N; disappearing.push(rArc); detachBeach(rArc); rArc = next; } disappearing.push(rArc); Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(rArc); var nArcs = disappearing.length, iArc; for (iArc = 1; iArc < nArcs; ++iArc) { rArc = disappearing[iArc]; lArc = disappearing[iArc - 1]; Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["setEdgeEnd"])(rArc.edge, lArc.site, rArc.site, vertex); } lArc = disappearing[0]; rArc = disappearing[nArcs - 1]; rArc.edge = Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["createEdge"])(lArc.site, rArc.site, null, vertex); Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(lArc); Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(rArc); } function addBeach(site) { var x = site[0], directrix = site[1], lArc, rArc, dxl, dxr, node = _Diagram__WEBPACK_IMPORTED_MODULE_4__["beaches"]._; while (node) { dxl = leftBreakPoint(node, directrix) - x; if (dxl > _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) node = node.L; else { dxr = x - rightBreakPoint(node, directrix); if (dxr > _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) { if (!node.R) { lArc = node; break; } node = node.R; } else { if (dxl > -_Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) { lArc = node.P; rArc = node; } else if (dxr > -_Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) { lArc = node; rArc = node.N; } else { lArc = rArc = node; } break; } } } Object(_Cell__WEBPACK_IMPORTED_MODULE_1__["createCell"])(site); var newArc = createBeach(site); _Diagram__WEBPACK_IMPORTED_MODULE_4__["beaches"].insert(lArc, newArc); if (!lArc && !rArc) return; if (lArc === rArc) { Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(lArc); rArc = createBeach(lArc.site); _Diagram__WEBPACK_IMPORTED_MODULE_4__["beaches"].insert(newArc, rArc); newArc.edge = rArc.edge = Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["createEdge"])(lArc.site, newArc.site); Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(lArc); Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(rArc); return; } if (!rArc) { // && lArc newArc.edge = Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["createEdge"])(lArc.site, newArc.site); return; } // else lArc !== rArc Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(lArc); Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(rArc); var lSite = lArc.site, ax = lSite[0], ay = lSite[1], bx = site[0] - ax, by = site[1] - ay, rSite = rArc.site, cx = rSite[0] - ax, cy = rSite[1] - ay, d = 2 * (bx * cy - by * cx), hb = bx * bx + by * by, hc = cx * cx + cy * cy, vertex = [(cy * hb - by * hc) / d + ax, (bx * hc - cx * hb) / d + ay]; Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["setEdgeEnd"])(rArc.edge, lSite, rSite, vertex); newArc.edge = Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["createEdge"])(lSite, site, null, vertex); rArc.edge = Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["createEdge"])(site, rSite, null, vertex); Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(lArc); Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(rArc); } function leftBreakPoint(arc, directrix) { var site = arc.site, rfocx = site[0], rfocy = site[1], pby2 = rfocy - directrix; if (!pby2) return rfocx; var lArc = arc.P; if (!lArc) return -Infinity; site = lArc.site; var lfocx = site[0], lfocy = site[1], plby2 = lfocy - directrix; if (!plby2) return lfocx; var hl = lfocx - rfocx, aby2 = 1 / pby2 - 1 / plby2, b = hl / plby2; if (aby2) return (-b + Math.sqrt(b * b - 2 * aby2 * (hl * hl / (-2 * plby2) - lfocy + plby2 / 2 + rfocy - pby2 / 2))) / aby2 + rfocx; return (rfocx + lfocx) / 2; } function rightBreakPoint(arc, directrix) { var rArc = arc.N; if (rArc) return leftBreakPoint(rArc, directrix); var site = arc.site; return site[1] === directrix ? site[0] : Infinity; } /***/ }), /***/ "../../../node_modules/d3-voronoi/src/Cell.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-voronoi/src/Cell.js ***! \*******************************************************************************/ /*! exports provided: createCell, cellHalfedgeStart, cellHalfedgeEnd, sortCellHalfedges, clipCells */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createCell", function() { return createCell; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cellHalfedgeStart", function() { return cellHalfedgeStart; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cellHalfedgeEnd", function() { return cellHalfedgeEnd; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortCellHalfedges", function() { return sortCellHalfedges; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clipCells", function() { return clipCells; }); /* harmony import */ var _Edge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Edge */ "../../../node_modules/d3-voronoi/src/Edge.js"); /* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Diagram */ "../../../node_modules/d3-voronoi/src/Diagram.js"); function createCell(site) { return _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][site.index] = { site: site, halfedges: [] }; } function cellHalfedgeAngle(cell, edge) { var site = cell.site, va = edge.left, vb = edge.right; if (site === vb) vb = va, va = site; if (vb) return Math.atan2(vb[1] - va[1], vb[0] - va[0]); if (site === va) va = edge[1], vb = edge[0]; else va = edge[0], vb = edge[1]; return Math.atan2(va[0] - vb[0], vb[1] - va[1]); } function cellHalfedgeStart(cell, edge) { return edge[+(edge.left !== cell.site)]; } function cellHalfedgeEnd(cell, edge) { return edge[+(edge.left === cell.site)]; } function sortCellHalfedges() { for (var i = 0, n = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"].length, cell, halfedges, j, m; i < n; ++i) { if ((cell = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][i]) && (m = (halfedges = cell.halfedges).length)) { var index = new Array(m), array = new Array(m); for (j = 0; j < m; ++j) index[j] = j, array[j] = cellHalfedgeAngle(cell, _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"][halfedges[j]]); index.sort(function(i, j) { return array[j] - array[i]; }); for (j = 0; j < m; ++j) array[j] = halfedges[index[j]]; for (j = 0; j < m; ++j) halfedges[j] = array[j]; } } } function clipCells(x0, y0, x1, y1) { var nCells = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"].length, iCell, cell, site, iHalfedge, halfedges, nHalfedges, start, startX, startY, end, endX, endY, cover = true; for (iCell = 0; iCell < nCells; ++iCell) { if (cell = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][iCell]) { site = cell.site; halfedges = cell.halfedges; iHalfedge = halfedges.length; // Remove any dangling clipped edges. while (iHalfedge--) { if (!_Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"][halfedges[iHalfedge]]) { halfedges.splice(iHalfedge, 1); } } // Insert any border edges as necessary. iHalfedge = 0, nHalfedges = halfedges.length; while (iHalfedge < nHalfedges) { end = cellHalfedgeEnd(cell, _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"][halfedges[iHalfedge]]), endX = end[0], endY = end[1]; start = cellHalfedgeStart(cell, _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"][halfedges[++iHalfedge % nHalfedges]]), startX = start[0], startY = start[1]; if (Math.abs(endX - startX) > _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] || Math.abs(endY - startY) > _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"]) { halfedges.splice(iHalfedge, 0, _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"].push(Object(_Edge__WEBPACK_IMPORTED_MODULE_0__["createBorderEdge"])(site, end, Math.abs(endX - x0) < _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] && y1 - endY > _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? [x0, Math.abs(startX - x0) < _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? startY : y1] : Math.abs(endY - y1) < _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] && x1 - endX > _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? [Math.abs(startY - y1) < _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? startX : x1, y1] : Math.abs(endX - x1) < _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] && endY - y0 > _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? [x1, Math.abs(startX - x1) < _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? startY : y0] : Math.abs(endY - y0) < _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] && endX - x0 > _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? [Math.abs(startY - y0) < _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? startX : x0, y0] : null)) - 1); ++nHalfedges; } } if (nHalfedges) cover = false; } } // If there weren’t any edges, have the closest site cover the extent. // It doesn’t matter which corner of the extent we measure! if (cover) { var dx, dy, d2, dc = Infinity; for (iCell = 0, cover = null; iCell < nCells; ++iCell) { if (cell = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][iCell]) { site = cell.site; dx = site[0] - x0; dy = site[1] - y0; d2 = dx * dx + dy * dy; if (d2 < dc) dc = d2, cover = cell; } } if (cover) { var v00 = [x0, y0], v01 = [x0, y1], v11 = [x1, y1], v10 = [x1, y0]; cover.halfedges.push( _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"].push(Object(_Edge__WEBPACK_IMPORTED_MODULE_0__["createBorderEdge"])(site = cover.site, v00, v01)) - 1, _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"].push(Object(_Edge__WEBPACK_IMPORTED_MODULE_0__["createBorderEdge"])(site, v01, v11)) - 1, _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"].push(Object(_Edge__WEBPACK_IMPORTED_MODULE_0__["createBorderEdge"])(site, v11, v10)) - 1, _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"].push(Object(_Edge__WEBPACK_IMPORTED_MODULE_0__["createBorderEdge"])(site, v10, v00)) - 1 ); } } // Lastly delete any cells with no edges; these were entirely clipped. for (iCell = 0; iCell < nCells; ++iCell) { if (cell = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][iCell]) { if (!cell.halfedges.length) { delete _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][iCell]; } } } } /***/ }), /***/ "../../../node_modules/d3-voronoi/src/Circle.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-voronoi/src/Circle.js ***! \*********************************************************************************/ /*! exports provided: firstCircle, attachCircle, detachCircle */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "firstCircle", function() { return firstCircle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "attachCircle", function() { return attachCircle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "detachCircle", function() { return detachCircle; }); /* harmony import */ var _RedBlackTree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RedBlackTree */ "../../../node_modules/d3-voronoi/src/RedBlackTree.js"); /* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Diagram */ "../../../node_modules/d3-voronoi/src/Diagram.js"); var circlePool = []; var firstCircle; function Circle() { Object(_RedBlackTree__WEBPACK_IMPORTED_MODULE_0__["RedBlackNode"])(this); this.x = this.y = this.arc = this.site = this.cy = null; } function attachCircle(arc) { var lArc = arc.P, rArc = arc.N; if (!lArc || !rArc) return; var lSite = lArc.site, cSite = arc.site, rSite = rArc.site; if (lSite === rSite) return; var bx = cSite[0], by = cSite[1], ax = lSite[0] - bx, ay = lSite[1] - by, cx = rSite[0] - bx, cy = rSite[1] - by; var d = 2 * (ax * cy - ay * cx); if (d >= -_Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon2"]) return; var ha = ax * ax + ay * ay, hc = cx * cx + cy * cy, x = (cy * ha - ay * hc) / d, y = (ax * hc - cx * ha) / d; var circle = circlePool.pop() || new Circle; circle.arc = arc; circle.site = cSite; circle.x = x + bx; circle.y = (circle.cy = y + by) + Math.sqrt(x * x + y * y); // y bottom arc.circle = circle; var before = null, node = _Diagram__WEBPACK_IMPORTED_MODULE_1__["circles"]._; while (node) { if (circle.y < node.y || (circle.y === node.y && circle.x <= node.x)) { if (node.L) node = node.L; else { before = node.P; break; } } else { if (node.R) node = node.R; else { before = node; break; } } } _Diagram__WEBPACK_IMPORTED_MODULE_1__["circles"].insert(before, circle); if (!before) firstCircle = circle; } function detachCircle(arc) { var circle = arc.circle; if (circle) { if (!circle.P) firstCircle = circle.N; _Diagram__WEBPACK_IMPORTED_MODULE_1__["circles"].remove(circle); circlePool.push(circle); Object(_RedBlackTree__WEBPACK_IMPORTED_MODULE_0__["RedBlackNode"])(circle); arc.circle = null; } } /***/ }), /***/ "../../../node_modules/d3-voronoi/src/Diagram.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-voronoi/src/Diagram.js ***! \**********************************************************************************/ /*! exports provided: epsilon, epsilon2, beaches, cells, circles, edges, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "epsilon", function() { return epsilon; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "epsilon2", function() { return epsilon2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "beaches", function() { return beaches; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cells", function() { return cells; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circles", function() { return circles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "edges", function() { return edges; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Diagram; }); /* harmony import */ var _Beach__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Beach */ "../../../node_modules/d3-voronoi/src/Beach.js"); /* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Cell */ "../../../node_modules/d3-voronoi/src/Cell.js"); /* harmony import */ var _Circle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Circle */ "../../../node_modules/d3-voronoi/src/Circle.js"); /* harmony import */ var _Edge__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Edge */ "../../../node_modules/d3-voronoi/src/Edge.js"); /* harmony import */ var _RedBlackTree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./RedBlackTree */ "../../../node_modules/d3-voronoi/src/RedBlackTree.js"); var epsilon = 1e-6; var epsilon2 = 1e-12; var beaches; var cells; var circles; var edges; function triangleArea(a, b, c) { return (a[0] - c[0]) * (b[1] - a[1]) - (a[0] - b[0]) * (c[1] - a[1]); } function lexicographic(a, b) { return b[1] - a[1] || b[0] - a[0]; } function Diagram(sites, extent) { var site = sites.sort(lexicographic).pop(), x, y, circle; edges = []; cells = new Array(sites.length); beaches = new _RedBlackTree__WEBPACK_IMPORTED_MODULE_4__["default"]; circles = new _RedBlackTree__WEBPACK_IMPORTED_MODULE_4__["default"]; while (true) { circle = _Circle__WEBPACK_IMPORTED_MODULE_2__["firstCircle"]; if (site && (!circle || site[1] < circle.y || (site[1] === circle.y && site[0] < circle.x))) { if (site[0] !== x || site[1] !== y) { Object(_Beach__WEBPACK_IMPORTED_MODULE_0__["addBeach"])(site); x = site[0], y = site[1]; } site = sites.pop(); } else if (circle) { Object(_Beach__WEBPACK_IMPORTED_MODULE_0__["removeBeach"])(circle.arc); } else { break; } } Object(_Cell__WEBPACK_IMPORTED_MODULE_1__["sortCellHalfedges"])(); if (extent) { var x0 = +extent[0][0], y0 = +extent[0][1], x1 = +extent[1][0], y1 = +extent[1][1]; Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["clipEdges"])(x0, y0, x1, y1); Object(_Cell__WEBPACK_IMPORTED_MODULE_1__["clipCells"])(x0, y0, x1, y1); } this.edges = edges; this.cells = cells; beaches = circles = edges = cells = null; } Diagram.prototype = { constructor: Diagram, polygons: function() { var edges = this.edges; return this.cells.map(function(cell) { var polygon = cell.halfedges.map(function(i) { return Object(_Cell__WEBPACK_IMPORTED_MODULE_1__["cellHalfedgeStart"])(cell, edges[i]); }); polygon.data = cell.site.data; return polygon; }); }, triangles: function() { var triangles = [], edges = this.edges; this.cells.forEach(function(cell, i) { if (!(m = (halfedges = cell.halfedges).length)) return; var site = cell.site, halfedges, j = -1, m, s0, e1 = edges[halfedges[m - 1]], s1 = e1.left === site ? e1.right : e1.left; while (++j < m) { s0 = s1; e1 = edges[halfedges[j]]; s1 = e1.left === site ? e1.right : e1.left; if (s0 && s1 && i < s0.index && i < s1.index && triangleArea(site, s0, s1) < 0) { triangles.push([site.data, s0.data, s1.data]); } } }); return triangles; }, links: function() { return this.edges.filter(function(edge) { return edge.right; }).map(function(edge) { return { source: edge.left.data, target: edge.right.data }; }); }, find: function(x, y, radius) { var that = this, i0, i1 = that._found || 0, n = that.cells.length, cell; // Use the previously-found cell, or start with an arbitrary one. while (!(cell = that.cells[i1])) if (++i1 >= n) return null; var dx = x - cell.site[0], dy = y - cell.site[1], d2 = dx * dx + dy * dy; // Traverse the half-edges to find a closer cell, if any. do { cell = that.cells[i0 = i1], i1 = null; cell.halfedges.forEach(function(e) { var edge = that.edges[e], v = edge.left; if ((v === cell.site || !v) && !(v = edge.right)) return; var vx = x - v[0], vy = y - v[1], v2 = vx * vx + vy * vy; if (v2 < d2) d2 = v2, i1 = v.index; }); } while (i1 !== null); that._found = i0; return radius == null || d2 <= radius * radius ? cell.site : null; } } /***/ }), /***/ "../../../node_modules/d3-voronoi/src/Edge.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-voronoi/src/Edge.js ***! \*******************************************************************************/ /*! exports provided: createEdge, createBorderEdge, setEdgeEnd, clipEdges */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createEdge", function() { return createEdge; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createBorderEdge", function() { return createBorderEdge; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setEdgeEnd", function() { return setEdgeEnd; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clipEdges", function() { return clipEdges; }); /* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Diagram */ "../../../node_modules/d3-voronoi/src/Diagram.js"); function createEdge(left, right, v0, v1) { var edge = [null, null], index = _Diagram__WEBPACK_IMPORTED_MODULE_0__["edges"].push(edge) - 1; edge.left = left; edge.right = right; if (v0) setEdgeEnd(edge, left, right, v0); if (v1) setEdgeEnd(edge, right, left, v1); _Diagram__WEBPACK_IMPORTED_MODULE_0__["cells"][left.index].halfedges.push(index); _Diagram__WEBPACK_IMPORTED_MODULE_0__["cells"][right.index].halfedges.push(index); return edge; } function createBorderEdge(left, v0, v1) { var edge = [v0, v1]; edge.left = left; return edge; } function setEdgeEnd(edge, left, right, vertex) { if (!edge[0] && !edge[1]) { edge[0] = vertex; edge.left = left; edge.right = right; } else if (edge.left === right) { edge[1] = vertex; } else { edge[0] = vertex; } } // Liang–Barsky line clipping. function clipEdge(edge, x0, y0, x1, y1) { var a = edge[0], b = edge[1], ax = a[0], ay = a[1], bx = b[0], by = b[1], t0 = 0, t1 = 1, dx = bx - ax, dy = by - ay, r; r = x0 - ax; if (!dx && r > 0) return; r /= dx; if (dx < 0) { if (r < t0) return; if (r < t1) t1 = r; } else if (dx > 0) { if (r > t1) return; if (r > t0) t0 = r; } r = x1 - ax; if (!dx && r < 0) return; r /= dx; if (dx < 0) { if (r > t1) return; if (r > t0) t0 = r; } else if (dx > 0) { if (r < t0) return; if (r < t1) t1 = r; } r = y0 - ay; if (!dy && r > 0) return; r /= dy; if (dy < 0) { if (r < t0) return; if (r < t1) t1 = r; } else if (dy > 0) { if (r > t1) return; if (r > t0) t0 = r; } r = y1 - ay; if (!dy && r < 0) return; r /= dy; if (dy < 0) { if (r > t1) return; if (r > t0) t0 = r; } else if (dy > 0) { if (r < t0) return; if (r < t1) t1 = r; } if (!(t0 > 0) && !(t1 < 1)) return true; // TODO Better check? if (t0 > 0) edge[0] = [ax + t0 * dx, ay + t0 * dy]; if (t1 < 1) edge[1] = [ax + t1 * dx, ay + t1 * dy]; return true; } function connectEdge(edge, x0, y0, x1, y1) { var v1 = edge[1]; if (v1) return true; var v0 = edge[0], left = edge.left, right = edge.right, lx = left[0], ly = left[1], rx = right[0], ry = right[1], fx = (lx + rx) / 2, fy = (ly + ry) / 2, fm, fb; if (ry === ly) { if (fx < x0 || fx >= x1) return; if (lx > rx) { if (!v0) v0 = [fx, y0]; else if (v0[1] >= y1) return; v1 = [fx, y1]; } else { if (!v0) v0 = [fx, y1]; else if (v0[1] < y0) return; v1 = [fx, y0]; } } else { fm = (lx - rx) / (ry - ly); fb = fy - fm * fx; if (fm < -1 || fm > 1) { if (lx > rx) { if (!v0) v0 = [(y0 - fb) / fm, y0]; else if (v0[1] >= y1) return; v1 = [(y1 - fb) / fm, y1]; } else { if (!v0) v0 = [(y1 - fb) / fm, y1]; else if (v0[1] < y0) return; v1 = [(y0 - fb) / fm, y0]; } } else { if (ly < ry) { if (!v0) v0 = [x0, fm * x0 + fb]; else if (v0[0] >= x1) return; v1 = [x1, fm * x1 + fb]; } else { if (!v0) v0 = [x1, fm * x1 + fb]; else if (v0[0] < x0) return; v1 = [x0, fm * x0 + fb]; } } } edge[0] = v0; edge[1] = v1; return true; } function clipEdges(x0, y0, x1, y1) { var i = _Diagram__WEBPACK_IMPORTED_MODULE_0__["edges"].length, edge; while (i--) { if (!connectEdge(edge = _Diagram__WEBPACK_IMPORTED_MODULE_0__["edges"][i], x0, y0, x1, y1) || !clipEdge(edge, x0, y0, x1, y1) || !(Math.abs(edge[0][0] - edge[1][0]) > _Diagram__WEBPACK_IMPORTED_MODULE_0__["epsilon"] || Math.abs(edge[0][1] - edge[1][1]) > _Diagram__WEBPACK_IMPORTED_MODULE_0__["epsilon"])) { delete _Diagram__WEBPACK_IMPORTED_MODULE_0__["edges"][i]; } } } /***/ }), /***/ "../../../node_modules/d3-voronoi/src/RedBlackTree.js": /*!***************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-voronoi/src/RedBlackTree.js ***! \***************************************************************************************/ /*! exports provided: RedBlackNode, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RedBlackNode", function() { return RedBlackNode; }); function RedBlackTree() { this._ = null; // root node } function RedBlackNode(node) { node.U = // parent node node.C = // color - true for red, false for black node.L = // left node node.R = // right node node.P = // previous node node.N = null; // next node } RedBlackTree.prototype = { constructor: RedBlackTree, insert: function(after, node) { var parent, grandpa, uncle; if (after) { node.P = after; node.N = after.N; if (after.N) after.N.P = node; after.N = node; if (after.R) { after = after.R; while (after.L) after = after.L; after.L = node; } else { after.R = node; } parent = after; } else if (this._) { after = RedBlackFirst(this._); node.P = null; node.N = after; after.P = after.L = node; parent = after; } else { node.P = node.N = null; this._ = node; parent = null; } node.L = node.R = null; node.U = parent; node.C = true; after = node; while (parent && parent.C) { grandpa = parent.U; if (parent === grandpa.L) { uncle = grandpa.R; if (uncle && uncle.C) { parent.C = uncle.C = false; grandpa.C = true; after = grandpa; } else { if (after === parent.R) { RedBlackRotateLeft(this, parent); after = parent; parent = after.U; } parent.C = false; grandpa.C = true; RedBlackRotateRight(this, grandpa); } } else { uncle = grandpa.L; if (uncle && uncle.C) { parent.C = uncle.C = false; grandpa.C = true; after = grandpa; } else { if (after === parent.L) { RedBlackRotateRight(this, parent); after = parent; parent = after.U; } parent.C = false; grandpa.C = true; RedBlackRotateLeft(this, grandpa); } } parent = after.U; } this._.C = false; }, remove: function(node) { if (node.N) node.N.P = node.P; if (node.P) node.P.N = node.N; node.N = node.P = null; var parent = node.U, sibling, left = node.L, right = node.R, next, red; if (!left) next = right; else if (!right) next = left; else next = RedBlackFirst(right); if (parent) { if (parent.L === node) parent.L = next; else parent.R = next; } else { this._ = next; } if (left && right) { red = next.C; next.C = node.C; next.L = left; left.U = next; if (next !== right) { parent = next.U; next.U = node.U; node = next.R; parent.L = node; next.R = right; right.U = next; } else { next.U = parent; parent = next; node = next.R; } } else { red = node.C; node = next; } if (node) node.U = parent; if (red) return; if (node && node.C) { node.C = false; return; } do { if (node === this._) break; if (node === parent.L) { sibling = parent.R; if (sibling.C) { sibling.C = false; parent.C = true; RedBlackRotateLeft(this, parent); sibling = parent.R; } if ((sibling.L && sibling.L.C) || (sibling.R && sibling.R.C)) { if (!sibling.R || !sibling.R.C) { sibling.L.C = false; sibling.C = true; RedBlackRotateRight(this, sibling); sibling = parent.R; } sibling.C = parent.C; parent.C = sibling.R.C = false; RedBlackRotateLeft(this, parent); node = this._; break; } } else { sibling = parent.L; if (sibling.C) { sibling.C = false; parent.C = true; RedBlackRotateRight(this, parent); sibling = parent.L; } if ((sibling.L && sibling.L.C) || (sibling.R && sibling.R.C)) { if (!sibling.L || !sibling.L.C) { sibling.R.C = false; sibling.C = true; RedBlackRotateLeft(this, sibling); sibling = parent.L; } sibling.C = parent.C; parent.C = sibling.L.C = false; RedBlackRotateRight(this, parent); node = this._; break; } } sibling.C = true; node = parent; parent = parent.U; } while (!node.C); if (node) node.C = false; } }; function RedBlackRotateLeft(tree, node) { var p = node, q = node.R, parent = p.U; if (parent) { if (parent.L === p) parent.L = q; else parent.R = q; } else { tree._ = q; } q.U = parent; p.U = q; p.R = q.L; if (p.R) p.R.U = p; q.L = p; } function RedBlackRotateRight(tree, node) { var p = node, q = node.L, parent = p.U; if (parent) { if (parent.L === p) parent.L = q; else parent.R = q; } else { tree._ = q; } q.U = parent; p.U = q; p.L = q.R; if (p.L) p.L.U = p; q.R = p; } function RedBlackFirst(node) { while (node.L) node = node.L; return node; } /* harmony default export */ __webpack_exports__["default"] = (RedBlackTree); /***/ }), /***/ "../../../node_modules/d3-voronoi/src/constant.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-voronoi/src/constant.js ***! \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return function() { return x; }; }); /***/ }), /***/ "../../../node_modules/d3-voronoi/src/index.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-voronoi/src/index.js ***! \********************************************************************************/ /*! exports provided: voronoi */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _voronoi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./voronoi */ "../../../node_modules/d3-voronoi/src/voronoi.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "voronoi", function() { return _voronoi__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /***/ }), /***/ "../../../node_modules/d3-voronoi/src/point.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-voronoi/src/point.js ***! \********************************************************************************/ /*! exports provided: x, y */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return x; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return y; }); function x(d) { return d[0]; } function y(d) { return d[1]; } /***/ }), /***/ "../../../node_modules/d3-voronoi/src/voronoi.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/d3-voronoi/src/voronoi.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "../../../node_modules/d3-voronoi/src/constant.js"); /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./point */ "../../../node_modules/d3-voronoi/src/point.js"); /* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Diagram */ "../../../node_modules/d3-voronoi/src/Diagram.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var x = _point__WEBPACK_IMPORTED_MODULE_1__["x"], y = _point__WEBPACK_IMPORTED_MODULE_1__["y"], extent = null; function voronoi(data) { return new _Diagram__WEBPACK_IMPORTED_MODULE_2__["default"](data.map(function(d, i) { var s = [Math.round(x(d, i, data) / _Diagram__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) * _Diagram__WEBPACK_IMPORTED_MODULE_2__["epsilon"], Math.round(y(d, i, data) / _Diagram__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) * _Diagram__WEBPACK_IMPORTED_MODULE_2__["epsilon"]]; s.index = i; s.data = d; return s; }), extent); } voronoi.polygons = function(data) { return voronoi(data).polygons(); }; voronoi.links = function(data) { return voronoi(data).links(); }; voronoi.triangles = function(data) { return voronoi(data).triangles(); }; voronoi.x = function(_) { return arguments.length ? (x = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), voronoi) : x; }; voronoi.y = function(_) { return arguments.length ? (y = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), voronoi) : y; }; voronoi.extent = function(_) { return arguments.length ? (extent = _ == null ? null : [[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]], voronoi) : extent && [[extent[0][0], extent[0][1]], [extent[1][0], extent[1][1]]]; }; voronoi.size = function(_) { return arguments.length ? (extent = _ == null ? null : [[0, 0], [+_[0], +_[1]]], voronoi) : extent && [extent[1][0] - extent[0][0], extent[1][1] - extent[0][1]]; }; return voronoi; }); /***/ }), /***/ "../../../node_modules/delaunator/delaunator.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/delaunator/delaunator.js ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { (function (global, factory) { true ? module.exports = factory() : undefined; }(this, function () { 'use strict'; var EPSILON = Math.pow(2, -52); var EDGE_STACK = new Uint32Array(512); var Delaunator = function Delaunator(coords) { var n = coords.length >> 1; if (n > 0 && typeof coords[0] !== 'number') { throw new Error('Expected coords to contain numbers.'); } this.coords = coords; // arrays that will store the triangulation graph var maxTriangles = Math.max(2 * n - 5, 0); this._triangles = new Uint32Array(maxTriangles * 3); this._halfedges = new Int32Array(maxTriangles * 3); // temporary arrays for tracking the edges of the advancing convex hull this._hashSize = Math.ceil(Math.sqrt(n)); this._hullPrev = new Uint32Array(n); // edge to prev edge this._hullNext = new Uint32Array(n); // edge to next edge this._hullTri = new Uint32Array(n); // edge to adjacent triangle this._hullHash = new Int32Array(this._hashSize).fill(-1); // angular edge hash // temporary arrays for sorting points this._ids = new Uint32Array(n); this._dists = new Float64Array(n); this.update(); }; Delaunator.from = function from (points, getX, getY) { if ( getX === void 0 ) getX = defaultGetX; if ( getY === void 0 ) getY = defaultGetY; var n = points.length; var coords = new Float64Array(n * 2); for (var i = 0; i < n; i++) { var p = points[i]; coords[2 * i] = getX(p); coords[2 * i + 1] = getY(p); } return new Delaunator(coords); }; Delaunator.prototype.update = function update () { var ref = this; var coords = ref.coords; var hullPrev = ref._hullPrev; var hullNext = ref._hullNext; var hullTri = ref._hullTri; var hullHash = ref._hullHash; var n = coords.length >> 1; // populate an array of point indices; calculate input data bbox var minX = Infinity; var minY = Infinity; var maxX = -Infinity; var maxY = -Infinity; for (var i = 0; i < n; i++) { var x = coords[2 * i]; var y = coords[2 * i + 1]; if (x < minX) { minX = x; } if (y < minY) { minY = y; } if (x > maxX) { maxX = x; } if (y > maxY) { maxY = y; } this._ids[i] = i; } var cx = (minX + maxX) / 2; var cy = (minY + maxY) / 2; var minDist = Infinity; var i0, i1, i2; // pick a seed point close to the center for (var i$1 = 0; i$1 < n; i$1++) { var d = dist(cx, cy, coords[2 * i$1], coords[2 * i$1 + 1]); if (d < minDist) { i0 = i$1; minDist = d; } } var i0x = coords[2 * i0]; var i0y = coords[2 * i0 + 1]; minDist = Infinity; // find the point closest to the seed for (var i$2 = 0; i$2 < n; i$2++) { if (i$2 === i0) { continue; } var d$1 = dist(i0x, i0y, coords[2 * i$2], coords[2 * i$2 + 1]); if (d$1 < minDist && d$1 > 0) { i1 = i$2; minDist = d$1; } } var i1x = coords[2 * i1]; var i1y = coords[2 * i1 + 1]; var minRadius = Infinity; // find the third point which forms the smallest circumcircle with the first two for (var i$3 = 0; i$3 < n; i$3++) { if (i$3 === i0 || i$3 === i1) { continue; } var r = circumradius(i0x, i0y, i1x, i1y, coords[2 * i$3], coords[2 * i$3 + 1]); if (r < minRadius) { i2 = i$3; minRadius = r; } } var i2x = coords[2 * i2]; var i2y = coords[2 * i2 + 1]; if (minRadius === Infinity) { // order collinear points by dx (or dy if all x are identical) // and return the list as a hull for (var i$4 = 0; i$4 < n; i$4++) { this._dists[i$4] = (coords[2 * i$4] - coords[0]) || (coords[2 * i$4 + 1] - coords[1]); } quicksort(this._ids, this._dists, 0, n - 1); var hull = new Uint32Array(n); var j = 0; for (var i$5 = 0, d0 = -Infinity; i$5 < n; i$5++) { var id = this._ids[i$5]; if (this._dists[id] > d0) { hull[j++] = id; d0 = this._dists[id]; } } this.hull = hull.subarray(0, j); this.triangles = new Uint32Array(0); this.halfedges = new Uint32Array(0); return; } // swap the order of the seed points for counter-clockwise orientation if (orient(i0x, i0y, i1x, i1y, i2x, i2y)) { var i$6 = i1; var x$1 = i1x; var y$1 = i1y; i1 = i2; i1x = i2x; i1y = i2y; i2 = i$6; i2x = x$1; i2y = y$1; } var center = circumcenter(i0x, i0y, i1x, i1y, i2x, i2y); this._cx = center.x; this._cy = center.y; for (var i$7 = 0; i$7 < n; i$7++) { this._dists[i$7] = dist(coords[2 * i$7], coords[2 * i$7 + 1], center.x, center.y); } // sort the points by distance from the seed triangle circumcenter quicksort(this._ids, this._dists, 0, n - 1); // set up the seed triangle as the starting hull this._hullStart = i0; var hullSize = 3; hullNext[i0] = hullPrev[i2] = i1; hullNext[i1] = hullPrev[i0] = i2; hullNext[i2] = hullPrev[i1] = i0; hullTri[i0] = 0; hullTri[i1] = 1; hullTri[i2] = 2; hullHash.fill(-1); hullHash[this._hashKey(i0x, i0y)] = i0; hullHash[this._hashKey(i1x, i1y)] = i1; hullHash[this._hashKey(i2x, i2y)] = i2; this.trianglesLen = 0; this._addTriangle(i0, i1, i2, -1, -1, -1); for (var k = 0, xp = (void 0), yp = (void 0); k < this._ids.length; k++) { var i$8 = this._ids[k]; var x$2 = coords[2 * i$8]; var y$2 = coords[2 * i$8 + 1]; // skip near-duplicate points if (k > 0 && Math.abs(x$2 - xp) <= EPSILON && Math.abs(y$2 - yp) <= EPSILON) { continue; } xp = x$2; yp = y$2; // skip seed triangle points if (i$8 === i0 || i$8 === i1 || i$8 === i2) { continue; } // find a visible edge on the convex hull using edge hash var start = 0; for (var j$1 = 0, key = this._hashKey(x$2, y$2); j$1 < this._hashSize; j$1++) { start = hullHash[(key + j$1) % this._hashSize]; if (start !== -1 && start !== hullNext[start]) { break; } } start = hullPrev[start]; var e = start, q = (void 0); while (q = hullNext[e], !orient(x$2, y$2, coords[2 * e], coords[2 * e + 1], coords[2 * q], coords[2 * q + 1])) { e = q; if (e === start) { e = -1; break; } } if (e === -1) { continue; } // likely a near-duplicate point; skip it // add the first triangle from the point var t = this._addTriangle(e, i$8, hullNext[e], -1, -1, hullTri[e]); // recursively flip triangles from the point until they satisfy the Delaunay condition hullTri[i$8] = this._legalize(t + 2); hullTri[e] = t; // keep track of boundary triangles on the hull hullSize++; // walk forward through the hull, adding more triangles and flipping recursively var n$1 = hullNext[e]; while (q = hullNext[n$1], orient(x$2, y$2, coords[2 * n$1], coords[2 * n$1 + 1], coords[2 * q], coords[2 * q + 1])) { t = this._addTriangle(n$1, i$8, q, hullTri[i$8], -1, hullTri[n$1]); hullTri[i$8] = this._legalize(t + 2); hullNext[n$1] = n$1; // mark as removed hullSize--; n$1 = q; } // walk backward from the other side, adding more triangles and flipping if (e === start) { while (q = hullPrev[e], orient(x$2, y$2, coords[2 * q], coords[2 * q + 1], coords[2 * e], coords[2 * e + 1])) { t = this._addTriangle(q, i$8, e, -1, hullTri[e], hullTri[q]); this._legalize(t + 2); hullTri[q] = t; hullNext[e] = e; // mark as removed hullSize--; e = q; } } // update the hull indices this._hullStart = hullPrev[i$8] = e; hullNext[e] = hullPrev[n$1] = i$8; hullNext[i$8] = n$1; // save the two new edges in the hash table hullHash[this._hashKey(x$2, y$2)] = i$8; hullHash[this._hashKey(coords[2 * e], coords[2 * e + 1])] = e; } this.hull = new Uint32Array(hullSize); for (var i$9 = 0, e$1 = this._hullStart; i$9 < hullSize; i$9++) { this.hull[i$9] = e$1; e$1 = hullNext[e$1]; } // trim typed triangle mesh arrays this.triangles = this._triangles.subarray(0, this.trianglesLen); this.halfedges = this._halfedges.subarray(0, this.trianglesLen); }; Delaunator.prototype._hashKey = function _hashKey (x, y) { return Math.floor(pseudoAngle(x - this._cx, y - this._cy) * this._hashSize) % this._hashSize; }; Delaunator.prototype._legalize = function _legalize (a) { var ref = this; var triangles = ref._triangles; var halfedges = ref._halfedges; var coords = ref.coords; var i = 0; var ar = 0; // recursion eliminated with a fixed-size stack while (true) { var b = halfedges[a]; /* if the pair of triangles doesn't satisfy the Delaunay condition * (p1 is inside the circumcircle of [p0, pl, pr]), flip them, * then do the same check/flip recursively for the new pair of triangles * * pl pl * /||\ / \ * al/ || \bl al/\a * / || \ / \ * / a||b \flip/___ar___\ * p0\ || /p1 => p0\---bl---/p1 * \ || / \ / * ar\ || /br b\/br * \||/ \ / * pr pr */ var a0 = a - a % 3; ar = a0 + (a + 2) % 3; if (b === -1) { // convex hull edge if (i === 0) { break; } a = EDGE_STACK[--i]; continue; } var b0 = b - b % 3; var al = a0 + (a + 1) % 3; var bl = b0 + (b + 2) % 3; var p0 = triangles[ar]; var pr = triangles[a]; var pl = triangles[al]; var p1 = triangles[bl]; var illegal = inCircle( coords[2 * p0], coords[2 * p0 + 1], coords[2 * pr], coords[2 * pr + 1], coords[2 * pl], coords[2 * pl + 1], coords[2 * p1], coords[2 * p1 + 1]); if (illegal) { triangles[a] = p1; triangles[b] = p0; var hbl = halfedges[bl]; // edge swapped on the other side of the hull (rare); fix the halfedge reference if (hbl === -1) { var e = this._hullStart; do { if (this._hullTri[e] === bl) { this._hullTri[e] = a; break; } e = this._hullPrev[e]; } while (e !== this._hullStart); } this._link(a, hbl); this._link(b, halfedges[ar]); this._link(ar, bl); var br = b0 + (b + 1) % 3; // don't worry about hitting the cap: it can only happen on extremely degenerate input if (i < EDGE_STACK.length) { EDGE_STACK[i++] = br; } } else { if (i === 0) { break; } a = EDGE_STACK[--i]; } } return ar; }; Delaunator.prototype._link = function _link (a, b) { this._halfedges[a] = b; if (b !== -1) { this._halfedges[b] = a; } }; // add a new triangle given vertex indices and adjacent half-edge ids Delaunator.prototype._addTriangle = function _addTriangle (i0, i1, i2, a, b, c) { var t = this.trianglesLen; this._triangles[t] = i0; this._triangles[t + 1] = i1; this._triangles[t + 2] = i2; this._link(t, a); this._link(t + 1, b); this._link(t + 2, c); this.trianglesLen += 3; return t; }; // monotonically increases with real angle, but doesn't need expensive trigonometry function pseudoAngle(dx, dy) { var p = dx / (Math.abs(dx) + Math.abs(dy)); return (dy > 0 ? 3 - p : 1 + p) / 4; // [0..1] } function dist(ax, ay, bx, by) { var dx = ax - bx; var dy = ay - by; return dx * dx + dy * dy; } // return 2d orientation sign if we're confident in it through J. Shewchuk's error bound check function orientIfSure(px, py, rx, ry, qx, qy) { var l = (ry - py) * (qx - px); var r = (rx - px) * (qy - py); return Math.abs(l - r) >= 3.3306690738754716e-16 * Math.abs(l + r) ? l - r : 0; } // a more robust orientation test that's stable in a given triangle (to fix robustness issues) function orient(rx, ry, qx, qy, px, py) { var sign = orientIfSure(px, py, rx, ry, qx, qy) || orientIfSure(rx, ry, qx, qy, px, py) || orientIfSure(qx, qy, px, py, rx, ry); return sign < 0; } function inCircle(ax, ay, bx, by, cx, cy, px, py) { var dx = ax - px; var dy = ay - py; var ex = bx - px; var ey = by - py; var fx = cx - px; var fy = cy - py; var ap = dx * dx + dy * dy; var bp = ex * ex + ey * ey; var cp = fx * fx + fy * fy; return dx * (ey * cp - bp * fy) - dy * (ex * cp - bp * fx) + ap * (ex * fy - ey * fx) < 0; } function circumradius(ax, ay, bx, by, cx, cy) { var dx = bx - ax; var dy = by - ay; var ex = cx - ax; var ey = cy - ay; var bl = dx * dx + dy * dy; var cl = ex * ex + ey * ey; var d = 0.5 / (dx * ey - dy * ex); var x = (ey * bl - dy * cl) * d; var y = (dx * cl - ex * bl) * d; return x * x + y * y; } function circumcenter(ax, ay, bx, by, cx, cy) { var dx = bx - ax; var dy = by - ay; var ex = cx - ax; var ey = cy - ay; var bl = dx * dx + dy * dy; var cl = ex * ex + ey * ey; var d = 0.5 / (dx * ey - dy * ex); var x = ax + (ey * bl - dy * cl) * d; var y = ay + (dx * cl - ex * bl) * d; return {x: x, y: y}; } function quicksort(ids, dists, left, right) { if (right - left <= 20) { for (var i = left + 1; i <= right; i++) { var temp = ids[i]; var tempDist = dists[temp]; var j = i - 1; while (j >= left && dists[ids[j]] > tempDist) { ids[j + 1] = ids[j--]; } ids[j + 1] = temp; } } else { var median = (left + right) >> 1; var i$1 = left + 1; var j$1 = right; swap(ids, median, i$1); if (dists[ids[left]] > dists[ids[right]]) { swap(ids, left, right); } if (dists[ids[i$1]] > dists[ids[right]]) { swap(ids, i$1, right); } if (dists[ids[left]] > dists[ids[i$1]]) { swap(ids, left, i$1); } var temp$1 = ids[i$1]; var tempDist$1 = dists[temp$1]; while (true) { do { i$1++; } while (dists[ids[i$1]] < tempDist$1); do { j$1--; } while (dists[ids[j$1]] > tempDist$1); if (j$1 < i$1) { break; } swap(ids, i$1, j$1); } ids[left + 1] = ids[j$1]; ids[j$1] = temp$1; if (right - i$1 + 1 >= j$1 - left) { quicksort(ids, dists, i$1, right); quicksort(ids, dists, left, j$1 - 1); } else { quicksort(ids, dists, left, j$1 - 1); quicksort(ids, dists, i$1, right); } } } function swap(arr, i, j) { var tmp = arr[i]; arr[i] = arr[j]; arr[j] = tmp; } function defaultGetX(p) { return p[0]; } function defaultGetY(p) { return p[1]; } return Delaunator; })); /***/ }), /***/ "../../../node_modules/delaunay-find/lib/index.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/delaunay-find/lib/index.js ***! \***********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; exports["default"] = void 0; var _delaunator = _interopRequireDefault(__webpack_require__(/*! delaunator/delaunator.js */ "../../../node_modules/delaunator/delaunator.js")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } // From https://github.com/d3/d3-delaunay/blob/master/src/delaunay.js function pointX(p) { return p[0]; } function pointY(p) { return p[1]; } // A triangulation is collinear if all its triangles have a non-null area function collinear(d) { var triangles = d.triangles, coords = d.coords; for (var i = 0; i < triangles.length; i += 3) { var a = 2 * triangles[i]; var b = 2 * triangles[i + 1]; var c = 2 * triangles[i + 2]; var cross = (coords[c] - coords[a]) * (coords[b + 1] - coords[a + 1]) - (coords[b] - coords[a]) * (coords[c + 1] - coords[a + 1]); // eslint-disable-next-line no-magic-numbers if (cross > 1e-10) { return false; } } return true; } function jitter(x, y, r) { return [x + Math.sin(x + y) * r, y + Math.cos(x - y) * r]; } // eslint-disable-next-line max-params function flatArray(points, fx, fy, that) { var n = points.length; var array = new Float64Array(n * 2); for (var i = 0; i < n; ++i) { var p = points[i]; array[i * 2] = fx.call(that, p, i, points); array[i * 2 + 1] = fy.call(that, p, i, points); } return array; } var Delaunay = /*#__PURE__*/ function () { function Delaunay(points) { var delaunator = new _delaunator["default"](points); this.inedges = new Int32Array(points.length / 2); this._hullIndex = new Int32Array(points.length / 2); this.points = delaunator.coords; this._init(delaunator); } // eslint-disable-next-line max-statements, complexity var _proto = Delaunay.prototype; _proto._init = function _init(delaunator) { var d = delaunator; var points = this.points; // check for collinear // eslint-disable-next-line no-magic-numbers if (d.hull && d.hull.length > 2 && collinear(d)) { this.collinear = Int32Array.from({ length: points.length / 2 }, function (_, i) { return i; }).sort(function (i, j) { return points[2 * i] - points[2 * j] || points[2 * i + 1] - points[2 * j + 1]; }); // for exact neighbors var e = this.collinear[0]; var f = this.collinear[this.collinear.length - 1]; var bounds = [points[2 * e], points[2 * e + 1], points[2 * f], points[2 * f + 1]]; var r = 1e-8 * // eslint-disable-line no-magic-numbers Math.sqrt(Math.pow(bounds[3] - bounds[1], 2) + Math.pow(bounds[2] - bounds[0], 2)); for (var i = 0, n = points.length / 2; i < n; ++i) { var p = jitter(points[2 * i], points[2 * i + 1], r); points[2 * i] = p[0]; points[2 * i + 1] = p[1]; } delaunator = new _delaunator["default"](points); } var halfedges = this.halfedges = delaunator.halfedges; var hull = this.hull = delaunator.hull; var triangles = this.triangles = delaunator.triangles; var inedges = this.inedges.fill(-1); var hullIndex = this._hullIndex.fill(-1); // Compute an index from each point to an (arbitrary) incoming halfedge // Used to give the first neighbor of each point; for this reason, // on the hull we give priority to exterior halfedges for (var _e = 0, _n = halfedges.length; _e < _n; ++_e) { var _p = triangles[_e % 3 === 2 ? _e - 2 : _e + 1]; if (halfedges[_e] === -1 || inedges[_p] === -1) inedges[_p] = _e; } for (var _i = 0, _n2 = hull.length; _i < _n2; ++_i) { hullIndex[hull[_i]] = _i; } // degenerate case: 1 or 2 (distinct) points if (hull.length <= 2 && hull.length > 0) { this.triangles = new Int32Array(3).fill(-1); this.halfedges = new Int32Array(3).fill(-1); this.triangles[0] = hull[0]; this.triangles[1] = hull[1]; this.triangles[2] = hull[1]; inedges[hull[0]] = 1; if (hull.length === 2) inedges[hull[1]] = 0; } } // eslint-disable-next-line max-statements ; _proto.neighbors = function neighbors(i) { var results = []; var inedges = this.inedges, hull = this.hull, _hullIndex = this._hullIndex, halfedges = this.halfedges, triangles = this.triangles; var e0 = inedges[i]; if (e0 === -1) return results; // coincident point var e = e0; var p0 = -1; do { p0 = triangles[e]; results.push(p0); e = e % 3 === 2 ? e - 2 : e + 1; if (triangles[e] !== i) break; // bad triangulation e = halfedges[e]; if (e === -1) { var p = hull[(_hullIndex[i] + 1) % hull.length]; if (p !== p0) results.push(p); break; } } while (e !== e0); return results; }; _proto.find = function find(x, y, i) { if (i === void 0) { i = 0; } // eslint-disable-next-line no-self-compare if ((x = +x, x !== x) || (y = +y, y !== y)) return -1; var i0 = i; var c; while ((c = this._step(i, x, y)) >= 0 && c !== i && c !== i0) { i = c; } return c; }; _proto._step = function _step(i, x, y) { var inedges = this.inedges, points = this.points; if (inedges[i] === -1 || !points.length) return (i + 1) % (points.length >> 1); var c = i; var dc = Math.pow(x - points[i * 2], 2) + Math.pow(y - points[i * 2 + 1], 2); for (var _iterator = this.neighbors(i), _isArray = Array.isArray(_iterator), _i2 = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { var _ref; if (_isArray) { if (_i2 >= _iterator.length) break; _ref = _iterator[_i2++]; } else { _i2 = _iterator.next(); if (_i2.done) break; _ref = _i2.value; } var t = _ref; var dt = Math.pow(x - points[t * 2], 2) + Math.pow(y - points[t * 2 + 1], 2); if (dt < dc) { dc = dt; c = t; } } return c; }; return Delaunay; }(); // eslint-disable-next-line max-params exports["default"] = Delaunay; Delaunay.from = function (points, fx, fy, that) { if (fx === void 0) { fx = pointX; } if (fy === void 0) { fy = pointY; } return new Delaunay(flatArray(points, fx, fy, that)); }; // only public methods will be .from and .find /***/ }), /***/ "../../../node_modules/json-stringify-safe/stringify.js": /*!*****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/json-stringify-safe/stringify.js ***! \*****************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { exports = module.exports = stringify exports.getSerialize = serializer function stringify(obj, replacer, spaces, cycleReplacer) { return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces) } function serializer(replacer, cycleReplacer) { var stack = [], keys = [] if (cycleReplacer == null) cycleReplacer = function(key, value) { if (stack[0] === value) return "[Circular ~]" return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]" } return function(key, value) { if (stack.length > 0) { var thisPos = stack.indexOf(this) ~thisPos ? stack.splice(thisPos + 1) : stack.push(this) ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key) if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value) } else stack.push(value) return replacer == null ? value : replacer.call(this, key, value) } } /***/ }), /***/ "../../../node_modules/lodash/_LodashWrapper.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_LodashWrapper.js ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns `undefined`. * * @static * @memberOf _ * @since 2.3.0 * @category Util * @example * * _.times(2, _.noop); * // => [undefined, undefined] */ function noop() { // No operation performed. } module.exports = noop; /***/ }), /***/ "../../../node_modules/lodash/_SetCache.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_SetCache.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"); /** * Casts `value` as an array if it's not one. * * @static * @memberOf _ * @since 4.4.0 * @category Lang * @param {*} value The value to inspect. * @returns {Array} Returns the cast array. * @example * * _.castArray(1); * // => [1] * * _.castArray({ 'a': 1 }); * // => [{ 'a': 1 }] * * _.castArray('abc'); * // => ['abc'] * * _.castArray(null); * // => [null] * * _.castArray(undefined); * // => [undefined] * * _.castArray(); * // => [] * * var array = [1, 2, 3]; * console.log(_.castArray(array) === array); * // => true */ function castArray() { if (!arguments.length) { return []; } var value = arguments[0]; return isArray(value) ? value : [value]; } module.exports = castArray; /***/ }), /***/ "../../../node_modules/lodash/_Stack.js": /*!*************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_Stack.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "../../../node_modules/lodash/_listCacheClear.js"), listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "../../../node_modules/lodash/_listCacheDelete.js"), listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "../../../node_modules/lodash/_listCacheGet.js"), listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "../../../node_modules/lodash/_listCacheHas.js"), listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "../../../node_modules/lodash/_listCacheSet.js"); /** * Creates an list cache object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function ListCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `ListCache`. ListCache.prototype.clear = listCacheClear; ListCache.prototype['delete'] = listCacheDelete; ListCache.prototype.get = listCacheGet; ListCache.prototype.has = listCacheHas; ListCache.prototype.set = listCacheSet; module.exports = ListCache; /***/ }), /***/ "../../../node_modules/lodash/_Symbol.js": /*!**************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_Symbol.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__(/*! ./_root */ "../../../node_modules/lodash/_root.js"); /** Built-in value references. */ var Symbol = root.Symbol; module.exports = Symbol; /***/ }), /***/ "../../../node_modules/lodash/_apply.js": /*!*************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_apply.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * A faster alternative to `Function#apply`, this function invokes `func` * with the `this` binding of `thisArg` and the arguments of `args`. * * @private * @param {Function} func The function to invoke. * @param {*} thisArg The `this` binding of `func`. * @param {Array} args The arguments to invoke `func` with. * @returns {*} Returns the result of `func`. */ function apply(func, thisArg, args) { switch (args.length) { case 0: return func.call(thisArg); case 1: return func.call(thisArg, args[0]); case 2: return func.call(thisArg, args[0], args[1]); case 3: return func.call(thisArg, args[0], args[1], args[2]); } return func.apply(thisArg, args); } module.exports = apply; /***/ }), /***/ "../../../node_modules/lodash/_arrayAggregator.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_arrayAggregator.js ***! \***********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * A specialized version of `baseAggregator` for arrays. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} setter The function to set `accumulator` values. * @param {Function} iteratee The iteratee to transform keys. * @param {Object} accumulator The initial aggregated object. * @returns {Function} Returns `accumulator`. */ function arrayAggregator(array, setter, iteratee, accumulator) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { var value = array[index]; setter(accumulator, value, iteratee(value), array); } return accumulator; } module.exports = arrayAggregator; /***/ }), /***/ "../../../node_modules/lodash/_arrayIncludes.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_arrayIncludes.js ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "../../../node_modules/lodash/_baseIndexOf.js"); /** * A specialized version of `_.includes` for arrays without support for * specifying an index to search from. * * @private * @param {Array} [array] The array to inspect. * @param {*} target The value to search for. * @returns {boolean} Returns `true` if `target` is found, else `false`. */ function arrayIncludes(array, value) { var length = array == null ? 0 : array.length; return !!length && baseIndexOf(array, value, 0) > -1; } module.exports = arrayIncludes; /***/ }), /***/ "../../../node_modules/lodash/_arrayIncludesWith.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_arrayIncludesWith.js ***! \*************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This function is like `arrayIncludes` except that it accepts a comparator. * * @private * @param {Array} [array] The array to inspect. * @param {*} target The value to search for. * @param {Function} comparator The comparator invoked per element. * @returns {boolean} Returns `true` if `target` is found, else `false`. */ function arrayIncludesWith(array, value, comparator) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (comparator(value, array[index])) { return true; } } return false; } module.exports = arrayIncludesWith; /***/ }), /***/ "../../../node_modules/lodash/_arrayMap.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_arrayMap.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * A specialized version of `_.map` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the new mapped array. */ function arrayMap(array, iteratee) { var index = -1, length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { result[index] = iteratee(array[index], index, array); } return result; } module.exports = arrayMap; /***/ }), /***/ "../../../node_modules/lodash/_arrayPush.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_arrayPush.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Appends the elements of `values` to `array`. * * @private * @param {Array} array The array to modify. * @param {Array} values The values to append. * @returns {Array} Returns `array`. */ function arrayPush(array, values) { var index = -1, length = values.length, offset = array.length; while (++index < length) { array[offset + index] = values[index]; } return array; } module.exports = arrayPush; /***/ }), /***/ "../../../node_modules/lodash/_arraySome.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_arraySome.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * A specialized version of `_.some` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {boolean} Returns `true` if any element passes the predicate check, * else `false`. */ function arraySome(array, predicate) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (predicate(array[index], index, array)) { return true; } } return false; } module.exports = arraySome; /***/ }), /***/ "../../../node_modules/lodash/_assignValue.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_assignValue.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../../node_modules/lodash/_baseAssignValue.js"), eq = __webpack_require__(/*! ./eq */ "../../../node_modules/lodash/eq.js"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignValue(object, key, value) { var objValue = object[key]; if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } module.exports = assignValue; /***/ }), /***/ "../../../node_modules/lodash/_assocIndexOf.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_assocIndexOf.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var eq = __webpack_require__(/*! ./eq */ "../../../node_modules/lodash/eq.js"); /** * Gets the index at which the `key` is found in `array` of key-value pairs. * * @private * @param {Array} array The array to inspect. * @param {*} key The key to search for. * @returns {number} Returns the index of the matched value, else `-1`. */ function assocIndexOf(array, key) { var length = array.length; while (length--) { if (eq(array[length][0], key)) { return length; } } return -1; } module.exports = assocIndexOf; /***/ }), /***/ "../../../node_modules/lodash/_baseAggregator.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseAggregator.js ***! \**********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * A specialized version of `baseAggregator` for arrays. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} setter The function to set `accumulator` values. * @param {Function} iteratee The iteratee to transform keys. * @param {Object} accumulator The initial aggregated object. * @returns {Function} Returns `accumulator`. */ function arrayAggregator(array, setter, iteratee, accumulator) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { var value = array[index]; setter(accumulator, value, iteratee(value), array); } return accumulator; } module.exports = arrayAggregator; /***/ }), /***/ "../../../node_modules/lodash/_baseAssignValue.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseAssignValue.js ***! \***********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../../node_modules/lodash/_defineProperty.js"); /** * The base implementation of `assignValue` and `assignMergeValue` without * value checks. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function baseAssignValue(object, key, value) { if (key == '__proto__' && defineProperty) { defineProperty(object, key, { 'configurable': true, 'enumerable': true, 'value': value, 'writable': true }); } else { object[key] = value; } } module.exports = baseAssignValue; /***/ }), /***/ "../../../node_modules/lodash/_baseDelay.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseDelay.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** * The base implementation of `_.delay` and `_.defer` which accepts `args` * to provide to `func`. * * @private * @param {Function} func The function to delay. * @param {number} wait The number of milliseconds to delay invocation. * @param {Array} args The arguments to provide to `func`. * @returns {number|Object} Returns the timer id or timeout object. */ function baseDelay(func, wait, args) { if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } return setTimeout(function() { func.apply(undefined, args); }, wait); } module.exports = baseDelay; /***/ }), /***/ "../../../node_modules/lodash/_baseDifference.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseDifference.js ***! \**********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var SetCache = __webpack_require__(/*! ./_SetCache */ "../../../node_modules/lodash/_SetCache.js"), arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../../node_modules/lodash/_arrayIncludes.js"), arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "../../../node_modules/lodash/_arrayIncludesWith.js"), arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/lodash/_arrayMap.js"), baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../../node_modules/lodash/_baseUnary.js"), cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../../node_modules/lodash/_cacheHas.js"); /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** * The base implementation of methods like `_.difference` without support * for excluding multiple arrays or iteratee shorthands. * * @private * @param {Array} array The array to inspect. * @param {Array} values The values to exclude. * @param {Function} [iteratee] The iteratee invoked per element. * @param {Function} [comparator] The comparator invoked per element. * @returns {Array} Returns the new array of filtered values. */ function baseDifference(array, values, iteratee, comparator) { var index = -1, includes = arrayIncludes, isCommon = true, length = array.length, result = [], valuesLength = values.length; if (!length) { return result; } if (iteratee) { values = arrayMap(values, baseUnary(iteratee)); } if (comparator) { includes = arrayIncludesWith; isCommon = false; } else if (values.length >= LARGE_ARRAY_SIZE) { includes = cacheHas; isCommon = false; values = new SetCache(values); } outer: while (++index < length) { var value = array[index], computed = iteratee == null ? value : iteratee(value); value = (comparator || value !== 0) ? value : 0; if (isCommon && computed === computed) { var valuesIndex = valuesLength; while (valuesIndex--) { if (values[valuesIndex] === computed) { continue outer; } } result.push(value); } else if (!includes(values, computed, comparator)) { result.push(value); } } return result; } module.exports = baseDifference; /***/ }), /***/ "../../../node_modules/lodash/_baseFindIndex.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseFindIndex.js ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * The base implementation of `_.findIndex` and `_.findLastIndex` without * support for iteratee shorthands. * * @private * @param {Array} array The array to inspect. * @param {Function} predicate The function invoked per iteration. * @param {number} fromIndex The index to search from. * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {number} Returns the index of the matched value, else `-1`. */ function baseFindIndex(array, predicate, fromIndex, fromRight) { var length = array.length, index = fromIndex + (fromRight ? 1 : -1); while ((fromRight ? index-- : ++index < length)) { if (predicate(array[index], index, array)) { return index; } } return -1; } module.exports = baseFindIndex; /***/ }), /***/ "../../../node_modules/lodash/_baseFlatten.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseFlatten.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../../node_modules/lodash/_arrayPush.js"), isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "../../../node_modules/lodash/_isFlattenable.js"); /** * The base implementation of `_.flatten` with support for restricting flattening. * * @private * @param {Array} array The array to flatten. * @param {number} depth The maximum recursion depth. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks. * @param {Array} [result=[]] The initial result value. * @returns {Array} Returns the new flattened array. */ function baseFlatten(array, depth, predicate, isStrict, result) { var index = -1, length = array.length; predicate || (predicate = isFlattenable); result || (result = []); while (++index < length) { var value = array[index]; if (depth > 0 && predicate(value)) { if (depth > 1) { // Recursively flatten arrays (susceptible to call stack limits). baseFlatten(value, depth - 1, predicate, isStrict, result); } else { arrayPush(result, value); } } else if (!isStrict) { result[result.length] = value; } } return result; } module.exports = baseFlatten; /***/ }), /***/ "../../../node_modules/lodash/_baseFor.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseFor.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "../../../node_modules/lodash/_createBaseFor.js"); /** * The base implementation of `baseForOwn` which iterates over `object` * properties returned by `keysFunc` and invokes `iteratee` for each property. * Iteratee functions may exit iteration early by explicitly returning `false`. * * @private * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {Function} keysFunc The function to get the keys of `object`. * @returns {Object} Returns `object`. */ var baseFor = createBaseFor(); module.exports = baseFor; /***/ }), /***/ "../../../node_modules/lodash/_baseForOwn.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseForOwn.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseFor = __webpack_require__(/*! ./_baseFor */ "../../../node_modules/lodash/_baseFor.js"), keys = __webpack_require__(/*! ./keys */ "../../../node_modules/lodash/keys.js"); /** * The base implementation of `_.forOwn` without support for iteratee shorthands. * * @private * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Object} Returns `object`. */ function baseForOwn(object, iteratee) { return object && baseFor(object, iteratee, keys); } module.exports = baseForOwn; /***/ }), /***/ "../../../node_modules/lodash/_baseGet.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseGet.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var castPath = __webpack_require__(/*! ./_castPath */ "../../../node_modules/lodash/_castPath.js"), toKey = __webpack_require__(/*! ./_toKey */ "../../../node_modules/lodash/_toKey.js"); /** * The base implementation of `_.get` without support for default values. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path of the property to get. * @returns {*} Returns the resolved value. */ function baseGet(object, path) { path = castPath(path, object); var index = 0, length = path.length; while (object != null && index < length) { object = object[toKey(path[index++])]; } return (index && index == length) ? object : undefined; } module.exports = baseGet; /***/ }), /***/ "../../../node_modules/lodash/_baseGetTag.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseGetTag.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** * Converts `value` to a string using `Object.prototype.toString`. * * @private * @param {*} value The value to convert. * @returns {string} Returns the converted string. */ function objectToString(value) { return nativeObjectToString.call(value); } module.exports = objectToString; /***/ }), /***/ "../../../node_modules/lodash/_baseHasIn.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseHasIn.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * The base implementation of `_.hasIn` without support for deep paths. * * @private * @param {Object} [object] The object to query. * @param {Array|string} key The key to check. * @returns {boolean} Returns `true` if `key` exists, else `false`. */ function baseHasIn(object, key) { return object != null && key in Object(object); } module.exports = baseHasIn; /***/ }), /***/ "../../../node_modules/lodash/_baseIndexOf.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseIndexOf.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * A specialized version of `_.indexOf` which performs strict equality * comparisons of values, i.e. `===`. * * @private * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} fromIndex The index to search from. * @returns {number} Returns the index of the matched value, else `-1`. */ function strictIndexOf(array, value, fromIndex) { var index = fromIndex - 1, length = array.length; while (++index < length) { if (array[index] === value) { return index; } } return -1; } module.exports = strictIndexOf; /***/ }), /***/ "../../../node_modules/lodash/_baseInverter.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseInverter.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../../node_modules/lodash/_baseForOwn.js"); /** * The base implementation of `_.invert` and `_.invertBy` which inverts * `object` with values transformed by `iteratee` and set by `setter`. * * @private * @param {Object} object The object to iterate over. * @param {Function} setter The function to set `accumulator` values. * @param {Function} iteratee The iteratee to transform values. * @param {Object} accumulator The initial inverted object. * @returns {Function} Returns `accumulator`. */ function baseInverter(object, setter, iteratee, accumulator) { baseForOwn(object, function(value, key, object) { setter(accumulator, iteratee(value), key, object); }); return accumulator; } module.exports = baseInverter; /***/ }), /***/ "../../../node_modules/lodash/_baseIsDate.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseIsDate.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../../node_modules/lodash/_baseGetTag.js"), isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/lodash/isObjectLike.js"); /** `Object#toString` result references. */ var dateTag = '[object Date]'; /** * The base implementation of `_.isDate` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. */ function baseIsDate(value) { return isObjectLike(value) && baseGetTag(value) == dateTag; } module.exports = baseIsDate; /***/ }), /***/ "../../../node_modules/lodash/_baseIsEqual.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseIsEqual.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "../../../node_modules/lodash/_baseIsEqualDeep.js"), isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/lodash/isObjectLike.js"); /** * The base implementation of `_.isEqual` which supports partial comparisons * and tracks traversed objects. * * @private * @param {*} value The value to compare. * @param {*} other The other value to compare. * @param {boolean} bitmask The bitmask flags. * 1 - Unordered comparison * 2 - Partial comparison * @param {Function} [customizer] The function to customize comparisons. * @param {Object} [stack] Tracks traversed `value` and `other` objects. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. */ function baseIsEqual(value, other, bitmask, customizer, stack) { if (value === other) { return true; } if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) { return value !== value && other !== other; } return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); } module.exports = baseIsEqual; /***/ }), /***/ "../../../node_modules/lodash/_baseIsEqualDeep.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseIsEqualDeep.js ***! \***********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var Stack = __webpack_require__(/*! ./_Stack */ "../../../node_modules/lodash/_Stack.js"), equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../../node_modules/lodash/_equalArrays.js"), equalByTag = __webpack_require__(/*! ./_equalByTag */ "../../../node_modules/lodash/_equalByTag.js"), equalObjects = __webpack_require__(/*! ./_equalObjects */ "../../../node_modules/lodash/_equalObjects.js"), getTag = __webpack_require__(/*! ./_getTag */ "../../../node_modules/lodash/_getTag.js"), isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"), isBuffer = __webpack_require__(/*! ./isBuffer */ "../../../node_modules/lodash/isBuffer.js"), isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../../node_modules/lodash/isTypedArray.js"); /** Used to compose bitmasks for value comparisons. */ var COMPARE_PARTIAL_FLAG = 1; /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', objectTag = '[object Object]'; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * A specialized version of `baseIsEqual` for arrays and objects which performs * deep comparisons and tracks traversed objects enabling objects with circular * references to be compared. * * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} [stack] Tracks traversed `object` and `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other); objTag = objTag == argsTag ? objectTag : objTag; othTag = othTag == argsTag ? objectTag : othTag; var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; if (isSameTag && isBuffer(object)) { if (!isBuffer(other)) { return false; } objIsArr = true; objIsObj = false; } if (isSameTag && !objIsObj) { stack || (stack = new Stack); return (objIsArr || isTypedArray(object)) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); } if (!(bitmask & COMPARE_PARTIAL_FLAG)) { var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); if (objIsWrapped || othIsWrapped) { var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; stack || (stack = new Stack); return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); } } if (!isSameTag) { return false; } stack || (stack = new Stack); return equalObjects(object, other, bitmask, customizer, equalFunc, stack); } module.exports = baseIsEqualDeep; /***/ }), /***/ "../../../node_modules/lodash/_baseIsMatch.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseIsMatch.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var Stack = __webpack_require__(/*! ./_Stack */ "../../../node_modules/lodash/_Stack.js"), baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../../node_modules/lodash/_baseIsEqual.js"); /** Used to compose bitmasks for value comparisons. */ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; /** * The base implementation of `_.isMatch` without support for iteratee shorthands. * * @private * @param {Object} object The object to inspect. * @param {Object} source The object of property values to match. * @param {Array} matchData The property names, values, and compare flags to match. * @param {Function} [customizer] The function to customize comparisons. * @returns {boolean} Returns `true` if `object` is a match, else `false`. */ function baseIsMatch(object, source, matchData, customizer) { var index = matchData.length, length = index, noCustomizer = !customizer; if (object == null) { return !length; } object = Object(object); while (index--) { var data = matchData[index]; if ((noCustomizer && data[2]) ? data[1] !== object[data[0]] : !(data[0] in object) ) { return false; } } while (++index < length) { data = matchData[index]; var key = data[0], objValue = object[key], srcValue = data[1]; if (noCustomizer && data[2]) { if (objValue === undefined && !(key in object)) { return false; } } else { var stack = new Stack; if (customizer) { var result = customizer(objValue, srcValue, key, object, source, stack); } if (!(result === undefined ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result )) { return false; } } } return true; } module.exports = baseIsMatch; /***/ }), /***/ "../../../node_modules/lodash/_baseIsRegExp.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseIsRegExp.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../../node_modules/lodash/_baseGetTag.js"), isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/lodash/isObjectLike.js"); /** `Object#toString` result references. */ var regexpTag = '[object RegExp]'; /** * The base implementation of `_.isRegExp` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. */ function baseIsRegExp(value) { return isObjectLike(value) && baseGetTag(value) == regexpTag; } module.exports = baseIsRegExp; /***/ }), /***/ "../../../node_modules/lodash/_baseIteratee.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseIteratee.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseMatches = __webpack_require__(/*! ./_baseMatches */ "../../../node_modules/lodash/_baseMatches.js"), baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "../../../node_modules/lodash/_baseMatchesProperty.js"), identity = __webpack_require__(/*! ./identity */ "../../../node_modules/lodash/identity.js"), isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"), property = __webpack_require__(/*! ./property */ "../../../node_modules/lodash/property.js"); /** * The base implementation of `_.iteratee`. * * @private * @param {*} [value=_.identity] The value to convert to an iteratee. * @returns {Function} Returns the iteratee. */ function baseIteratee(value) { // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details. if (typeof value == 'function') { return value; } if (value == null) { return identity; } if (typeof value == 'object') { return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value); } return property(value); } module.exports = baseIteratee; /***/ }), /***/ "../../../node_modules/lodash/_baseKeys.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseKeys.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__(/*! ./_overArg */ "../../../node_modules/lodash/_overArg.js"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys = overArg(Object.keys, Object); module.exports = nativeKeys; /***/ }), /***/ "../../../node_modules/lodash/_baseMap.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseMap.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * A specialized version of `_.map` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the new mapped array. */ function arrayMap(array, iteratee) { var index = -1, length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { result[index] = iteratee(array[index], index, array); } return result; } module.exports = arrayMap; /***/ }), /***/ "../../../node_modules/lodash/_baseMatches.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseMatches.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "../../../node_modules/lodash/_baseIsMatch.js"), getMatchData = __webpack_require__(/*! ./_getMatchData */ "../../../node_modules/lodash/_getMatchData.js"), matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../../node_modules/lodash/_matchesStrictComparable.js"); /** * The base implementation of `_.matches` which doesn't clone `source`. * * @private * @param {Object} source The object of property values to match. * @returns {Function} Returns the new spec function. */ function baseMatches(source) { var matchData = getMatchData(source); if (matchData.length == 1 && matchData[0][2]) { return matchesStrictComparable(matchData[0][0], matchData[0][1]); } return function(object) { return object === source || baseIsMatch(object, source, matchData); }; } module.exports = baseMatches; /***/ }), /***/ "../../../node_modules/lodash/_baseMatchesProperty.js": /*!***************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseMatchesProperty.js ***! \***************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../../node_modules/lodash/_baseIsEqual.js"), get = __webpack_require__(/*! ./get */ "../../../node_modules/lodash/get.js"), hasIn = __webpack_require__(/*! ./hasIn */ "../../../node_modules/lodash/hasIn.js"), isKey = __webpack_require__(/*! ./_isKey */ "../../../node_modules/lodash/_isKey.js"), isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../../node_modules/lodash/_isStrictComparable.js"), matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../../node_modules/lodash/_matchesStrictComparable.js"), toKey = __webpack_require__(/*! ./_toKey */ "../../../node_modules/lodash/_toKey.js"); /** Used to compose bitmasks for value comparisons. */ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; /** * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. * * @private * @param {string} path The path of the property to get. * @param {*} srcValue The value to match. * @returns {Function} Returns the new spec function. */ function baseMatchesProperty(path, srcValue) { if (isKey(path) && isStrictComparable(srcValue)) { return matchesStrictComparable(toKey(path), srcValue); } return function(object) { var objValue = get(object, path); return (objValue === undefined && objValue === srcValue) ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); }; } module.exports = baseMatchesProperty; /***/ }), /***/ "../../../node_modules/lodash/_baseOrderBy.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseOrderBy.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/lodash/_arrayMap.js"), baseGet = __webpack_require__(/*! ./_baseGet */ "../../../node_modules/lodash/_baseGet.js"), baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/lodash/_baseIteratee.js"), baseMap = __webpack_require__(/*! ./_baseMap */ "../../../node_modules/lodash/_baseMap.js"), baseSortBy = __webpack_require__(/*! ./_baseSortBy */ "../../../node_modules/lodash/_baseSortBy.js"), baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../../node_modules/lodash/_baseUnary.js"), compareMultiple = __webpack_require__(/*! ./_compareMultiple */ "../../../node_modules/lodash/_compareMultiple.js"), identity = __webpack_require__(/*! ./identity */ "../../../node_modules/lodash/identity.js"), isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"); /** * The base implementation of `_.orderBy` without param guards. * * @private * @param {Array|Object} collection The collection to iterate over. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by. * @param {string[]} orders The sort orders of `iteratees`. * @returns {Array} Returns the new sorted array. */ function baseOrderBy(collection, iteratees, orders) { if (iteratees.length) { iteratees = arrayMap(iteratees, function(iteratee) { if (isArray(iteratee)) { return function(value) { return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee); } } return iteratee; }); } else { iteratees = [identity]; } var index = -1; iteratees = arrayMap(iteratees, baseUnary(baseIteratee)); var result = baseMap(collection, function(value, key, collection) { var criteria = arrayMap(iteratees, function(iteratee) { return iteratee(value); }); return { 'criteria': criteria, 'index': ++index, 'value': value }; }); return baseSortBy(result, function(object, other) { return compareMultiple(object, other, orders); }); } module.exports = baseOrderBy; /***/ }), /***/ "../../../node_modules/lodash/_basePick.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_basePick.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var basePickBy = __webpack_require__(/*! ./_basePickBy */ "../../../node_modules/lodash/_basePickBy.js"), hasIn = __webpack_require__(/*! ./hasIn */ "../../../node_modules/lodash/hasIn.js"); /** * The base implementation of `_.pick` without support for individual * property identifiers. * * @private * @param {Object} object The source object. * @param {string[]} paths The property paths to pick. * @returns {Object} Returns the new object. */ function basePick(object, paths) { return basePickBy(object, paths, function(value, path) { return hasIn(object, path); }); } module.exports = basePick; /***/ }), /***/ "../../../node_modules/lodash/_basePickBy.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_basePickBy.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseGet = __webpack_require__(/*! ./_baseGet */ "../../../node_modules/lodash/_baseGet.js"), baseSet = __webpack_require__(/*! ./_baseSet */ "../../../node_modules/lodash/_baseSet.js"), castPath = __webpack_require__(/*! ./_castPath */ "../../../node_modules/lodash/_castPath.js"); /** * The base implementation of `_.pickBy` without support for iteratee shorthands. * * @private * @param {Object} object The source object. * @param {string[]} paths The property paths to pick. * @param {Function} predicate The function invoked per property. * @returns {Object} Returns the new object. */ function basePickBy(object, paths, predicate) { var index = -1, length = paths.length, result = {}; while (++index < length) { var path = paths[index], value = baseGet(object, path); if (predicate(value, path)) { baseSet(result, castPath(path, object), value); } } return result; } module.exports = basePickBy; /***/ }), /***/ "../../../node_modules/lodash/_baseProperty.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseProperty.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * The base implementation of `_.property` without support for deep paths. * * @private * @param {string} key The key of the property to get. * @returns {Function} Returns the new accessor function. */ function baseProperty(key) { return function(object) { return object == null ? undefined : object[key]; }; } module.exports = baseProperty; /***/ }), /***/ "../../../node_modules/lodash/_basePropertyDeep.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_basePropertyDeep.js ***! \************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseGet = __webpack_require__(/*! ./_baseGet */ "../../../node_modules/lodash/_baseGet.js"); /** * A specialized version of `baseProperty` which supports deep paths. * * @private * @param {Array|string} path The path of the property to get. * @returns {Function} Returns the new accessor function. */ function basePropertyDeep(path) { return function(object) { return baseGet(object, path); }; } module.exports = basePropertyDeep; /***/ }), /***/ "../../../node_modules/lodash/_baseRange.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseRange.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeCeil = Math.ceil, nativeMax = Math.max; /** * The base implementation of `_.range` and `_.rangeRight` which doesn't * coerce arguments. * * @private * @param {number} start The start of the range. * @param {number} end The end of the range. * @param {number} step The value to increment or decrement by. * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Array} Returns the range of numbers. */ function baseRange(start, end, step, fromRight) { var index = -1, length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result = Array(length); while (length--) { result[fromRight ? length : ++index] = start; start += step; } return result; } module.exports = baseRange; /***/ }), /***/ "../../../node_modules/lodash/_baseRest.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseRest.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var identity = __webpack_require__(/*! ./identity */ "../../../node_modules/lodash/identity.js"), overRest = __webpack_require__(/*! ./_overRest */ "../../../node_modules/lodash/_overRest.js"), setToString = __webpack_require__(/*! ./_setToString */ "../../../node_modules/lodash/_setToString.js"); /** * The base implementation of `_.rest` which doesn't validate or coerce arguments. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @returns {Function} Returns the new function. */ function baseRest(func, start) { return setToString(overRest(func, start, identity), func + ''); } module.exports = baseRest; /***/ }), /***/ "../../../node_modules/lodash/_baseSet.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseSet.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var assignValue = __webpack_require__(/*! ./_assignValue */ "../../../node_modules/lodash/_assignValue.js"), castPath = __webpack_require__(/*! ./_castPath */ "../../../node_modules/lodash/_castPath.js"), isIndex = __webpack_require__(/*! ./_isIndex */ "../../../node_modules/lodash/_isIndex.js"), isObject = __webpack_require__(/*! ./isObject */ "../../../node_modules/lodash/isObject.js"), toKey = __webpack_require__(/*! ./_toKey */ "../../../node_modules/lodash/_toKey.js"); /** * The base implementation of `_.set`. * * @private * @param {Object} object The object to modify. * @param {Array|string} path The path of the property to set. * @param {*} value The value to set. * @param {Function} [customizer] The function to customize path creation. * @returns {Object} Returns `object`. */ function baseSet(object, path, value, customizer) { if (!isObject(object)) { return object; } path = castPath(path, object); var index = -1, length = path.length, lastIndex = length - 1, nested = object; while (nested != null && ++index < length) { var key = toKey(path[index]), newValue = value; if (key === '__proto__' || key === 'constructor' || key === 'prototype') { return object; } if (index != lastIndex) { var objValue = nested[key]; newValue = customizer ? customizer(objValue, key, nested) : undefined; if (newValue === undefined) { newValue = isObject(objValue) ? objValue : (isIndex(path[index + 1]) ? [] : {}); } } assignValue(nested, key, newValue); nested = nested[key]; } return object; } module.exports = baseSet; /***/ }), /***/ "../../../node_modules/lodash/_baseSortBy.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseSortBy.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * The base implementation of `_.sortBy` which uses `comparer` to define the * sort order of `array` and replaces criteria objects with their corresponding * values. * * @private * @param {Array} array The array to sort. * @param {Function} comparer The function to define sort order. * @returns {Array} Returns `array`. */ function baseSortBy(array, comparer) { var length = array.length; array.sort(comparer); while (length--) { array[length] = array[length].value; } return array; } module.exports = baseSortBy; /***/ }), /***/ "../../../node_modules/lodash/_baseSortedUniq.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseSortedUniq.js ***! \**********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var eq = __webpack_require__(/*! ./eq */ "../../../node_modules/lodash/eq.js"); /** * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without * support for iteratee shorthands. * * @private * @param {Array} array The array to inspect. * @param {Function} [iteratee] The iteratee invoked per element. * @returns {Array} Returns the new duplicate free array. */ function baseSortedUniq(array, iteratee) { var index = -1, length = array.length, resIndex = 0, result = []; while (++index < length) { var value = array[index], computed = iteratee ? iteratee(value) : value; if (!index || !eq(computed, seen)) { var seen = computed; result[resIndex++] = value === 0 ? 0 : value; } } return result; } module.exports = baseSortedUniq; /***/ }), /***/ "../../../node_modules/lodash/_baseSum.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseSum.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * The base implementation of `_.sum` and `_.sumBy` without support for * iteratee shorthands. * * @private * @param {Array} array The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {number} Returns the sum. */ function baseSum(array, iteratee) { var result, index = -1, length = array.length; while (++index < length) { var current = iteratee(array[index]); if (current !== undefined) { result = result === undefined ? current : (result + current); } } return result; } module.exports = baseSum; /***/ }), /***/ "../../../node_modules/lodash/_baseToPairs.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseToPairs.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/lodash/_arrayMap.js"); /** * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array * of key-value pairs for `object` corresponding to the property names of `props`. * * @private * @param {Object} object The object to query. * @param {Array} props The property names to get values for. * @returns {Object} Returns the key-value pairs. */ function baseToPairs(object, props) { return arrayMap(props, function(key) { return [key, object[key]]; }); } module.exports = baseToPairs; /***/ }), /***/ "../../../node_modules/lodash/_baseToString.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseToString.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(/*! ./_Symbol */ "../../../node_modules/lodash/_Symbol.js"), arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/lodash/_arrayMap.js"), isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"), isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/lodash/isSymbol.js"); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolToString = symbolProto ? symbolProto.toString : undefined; /** * The base implementation of `_.toString` which doesn't convert nullish * values to empty strings. * * @private * @param {*} value The value to process. * @returns {string} Returns the string. */ function baseToString(value) { // Exit early for strings to avoid a performance hit in some environments. if (typeof value == 'string') { return value; } if (isArray(value)) { // Recursively convert values (susceptible to call stack limits). return arrayMap(value, baseToString) + ''; } if (isSymbol(value)) { return symbolToString ? symbolToString.call(value) : ''; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = baseToString; /***/ }), /***/ "../../../node_modules/lodash/_baseTrim.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseTrim.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var trimmedEndIndex = __webpack_require__(/*! ./_trimmedEndIndex */ "../../../node_modules/lodash/_trimmedEndIndex.js"); /** Used to match leading whitespace. */ var reTrimStart = /^\s+/; /** * The base implementation of `_.trim`. * * @private * @param {string} string The string to trim. * @returns {string} Returns the trimmed string. */ function baseTrim(string) { return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '') : string; } module.exports = baseTrim; /***/ }), /***/ "../../../node_modules/lodash/_baseUnary.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseUnary.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * The base implementation of `_.unary` without support for storing metadata. * * @private * @param {Function} func The function to cap arguments for. * @returns {Function} Returns the new capped function. */ function baseUnary(func) { return function(value) { return func(value); }; } module.exports = baseUnary; /***/ }), /***/ "../../../node_modules/lodash/_baseUniq.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseUniq.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var SetCache = __webpack_require__(/*! ./_SetCache */ "../../../node_modules/lodash/_SetCache.js"), arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../../node_modules/lodash/_arrayIncludes.js"), arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "../../../node_modules/lodash/_arrayIncludesWith.js"), cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../../node_modules/lodash/_cacheHas.js"), createSet = __webpack_require__(/*! ./_createSet */ "../../../node_modules/lodash/_createSet.js"), setToArray = __webpack_require__(/*! ./_setToArray */ "../../../node_modules/lodash/_setToArray.js"); /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** * The base implementation of `_.uniqBy` without support for iteratee shorthands. * * @private * @param {Array} array The array to inspect. * @param {Function} [iteratee] The iteratee invoked per element. * @param {Function} [comparator] The comparator invoked per element. * @returns {Array} Returns the new duplicate free array. */ function baseUniq(array, iteratee, comparator) { var index = -1, includes = arrayIncludes, length = array.length, isCommon = true, result = [], seen = result; if (comparator) { isCommon = false; includes = arrayIncludesWith; } else if (length >= LARGE_ARRAY_SIZE) { var set = iteratee ? null : createSet(array); if (set) { return setToArray(set); } isCommon = false; includes = cacheHas; seen = new SetCache; } else { seen = iteratee ? [] : result; } outer: while (++index < length) { var value = array[index], computed = iteratee ? iteratee(value) : value; value = (comparator || value !== 0) ? value : 0; if (isCommon && computed === computed) { var seenIndex = seen.length; while (seenIndex--) { if (seen[seenIndex] === computed) { continue outer; } } if (iteratee) { seen.push(computed); } result.push(value); } else if (!includes(seen, computed, comparator)) { if (seen !== result) { seen.push(computed); } result.push(value); } } return result; } module.exports = baseUniq; /***/ }), /***/ "../../../node_modules/lodash/_baseValues.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_baseValues.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/lodash/_arrayMap.js"); /** * The base implementation of `_.values` and `_.valuesIn` which creates an * array of `object` property values corresponding to the property names * of `props`. * * @private * @param {Object} object The object to query. * @param {Array} props The property names to get values for. * @returns {Object} Returns the array of property values. */ function baseValues(object, props) { return arrayMap(props, function(key) { return object[key]; }); } module.exports = baseValues; /***/ }), /***/ "../../../node_modules/lodash/_cacheHas.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_cacheHas.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "../../../node_modules/lodash/_baseIndexOf.js"); /** * A specialized version of `_.includes` for arrays without support for * specifying an index to search from. * * @private * @param {Array} [array] The array to inspect. * @param {*} target The value to search for. * @returns {boolean} Returns `true` if `target` is found, else `false`. */ function arrayIncludes(array, value) { var length = array == null ? 0 : array.length; return !!length && baseIndexOf(array, value, 0) > -1; } module.exports = arrayIncludes; /***/ }), /***/ "../../../node_modules/lodash/_castFunction.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_castFunction.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns the first argument it receives. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {*} value Any value. * @returns {*} Returns `value`. * @example * * var object = { 'a': 1 }; * * console.log(_.identity(object) === object); * // => true */ function identity(value) { return value; } module.exports = identity; /***/ }), /***/ "../../../node_modules/lodash/_castPath.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_castPath.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"), isKey = __webpack_require__(/*! ./_isKey */ "../../../node_modules/lodash/_isKey.js"), stringToPath = __webpack_require__(/*! ./_stringToPath */ "../../../node_modules/lodash/_stringToPath.js"), toString = __webpack_require__(/*! ./toString */ "../../../node_modules/lodash/toString.js"); /** * Casts `value` to a path array if it's not one. * * @private * @param {*} value The value to inspect. * @param {Object} [object] The object to query keys on. * @returns {Array} Returns the cast property path array. */ function castPath(value, object) { if (isArray(value)) { return value; } return isKey(value, object) ? [value] : stringToPath(toString(value)); } module.exports = castPath; /***/ }), /***/ "../../../node_modules/lodash/_compareAscending.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_compareAscending.js ***! \************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/lodash/isSymbol.js"); /** * Compares values to sort them in ascending order. * * @private * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {number} Returns the sort order indicator for `value`. */ function compareAscending(value, other) { if (value !== other) { var valIsDefined = value !== undefined, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value); var othIsDefined = other !== undefined, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other); if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) || (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) || (valIsNull && othIsDefined && othIsReflexive) || (!valIsDefined && othIsReflexive) || !valIsReflexive) { return 1; } if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) || (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) || (othIsNull && valIsDefined && valIsReflexive) || (!othIsDefined && valIsReflexive) || !othIsReflexive) { return -1; } } return 0; } module.exports = compareAscending; /***/ }), /***/ "../../../node_modules/lodash/_compareMultiple.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_compareMultiple.js ***! \***********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var compareAscending = __webpack_require__(/*! ./_compareAscending */ "../../../node_modules/lodash/_compareAscending.js"); /** * Used by `_.orderBy` to compare multiple properties of a value to another * and stable sort them. * * If `orders` is unspecified, all values are sorted in ascending order. Otherwise, * specify an order of "desc" for descending or "asc" for ascending sort order * of corresponding values. * * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @param {boolean[]|string[]} orders The order to sort by for each property. * @returns {number} Returns the sort order indicator for `object`. */ function compareMultiple(object, other, orders) { var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length; while (++index < length) { var result = compareAscending(objCriteria[index], othCriteria[index]); if (result) { if (index >= ordersLength) { return result; } var order = orders[index]; return result * (order == 'desc' ? -1 : 1); } } // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications // that causes it, under certain circumstances, to provide the same value for // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247 // for more details. // // This also ensures a stable sort in V8 and other engines. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details. return object.index - other.index; } module.exports = compareMultiple; /***/ }), /***/ "../../../node_modules/lodash/_copyObject.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_copyObject.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var assignValue = __webpack_require__(/*! ./_assignValue */ "../../../node_modules/lodash/_assignValue.js"), baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../../node_modules/lodash/_baseAssignValue.js"); /** * Copies properties of `source` to `object`. * * @private * @param {Object} source The object to copy properties from. * @param {Array} props The property identifiers to copy. * @param {Object} [object={}] The object to copy properties to. * @param {Function} [customizer] The function to customize copied values. * @returns {Object} Returns `object`. */ function copyObject(source, props, object, customizer) { var isNew = !object; object || (object = {}); var index = -1, length = props.length; while (++index < length) { var key = props[index]; var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined; if (newValue === undefined) { newValue = source[key]; } if (isNew) { baseAssignValue(object, key, newValue); } else { assignValue(object, key, newValue); } } return object; } module.exports = copyObject; /***/ }), /***/ "../../../node_modules/lodash/_createAggregator.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_createAggregator.js ***! \************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var arrayAggregator = __webpack_require__(/*! ./_arrayAggregator */ "../../../node_modules/lodash/_arrayAggregator.js"), baseAggregator = __webpack_require__(/*! ./_baseAggregator */ "../../../node_modules/lodash/_baseAggregator.js"), baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/lodash/_baseIteratee.js"), isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"); /** * Creates a function like `_.groupBy`. * * @private * @param {Function} setter The function to set accumulator values. * @param {Function} [initializer] The accumulator object initializer. * @returns {Function} Returns the new aggregator function. */ function createAggregator(setter, initializer) { return function(collection, iteratee) { var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {}; return func(collection, setter, baseIteratee(iteratee, 2), accumulator); }; } module.exports = createAggregator; /***/ }), /***/ "../../../node_modules/lodash/_createAssigner.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_createAssigner.js ***! \**********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/lodash/_baseRest.js"), isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../../node_modules/lodash/_isIterateeCall.js"); /** * Creates a function like `_.assign`. * * @private * @param {Function} assigner The function to assign values. * @returns {Function} Returns the new assigner function. */ function createAssigner(assigner) { return baseRest(function(object, sources) { var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined, guard = length > 2 ? sources[2] : undefined; customizer = (assigner.length > 3 && typeof customizer == 'function') ? (length--, customizer) : undefined; if (guard && isIterateeCall(sources[0], sources[1], guard)) { customizer = length < 3 ? undefined : customizer; length = 1; } object = Object(object); while (++index < length) { var source = sources[index]; if (source) { assigner(object, source, index, customizer); } } return object; }); } module.exports = createAssigner; /***/ }), /***/ "../../../node_modules/lodash/_createBaseFor.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_createBaseFor.js ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Creates a base function for methods like `_.forIn` and `_.forOwn`. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the new base function. */ function createBaseFor(fromRight) { return function(object, iteratee, keysFunc) { var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; while (length--) { var key = props[fromRight ? length : ++index]; if (iteratee(iterable[key], key, iterable) === false) { break; } } return object; }; } module.exports = createBaseFor; /***/ }), /***/ "../../../node_modules/lodash/_createFind.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_createFind.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/lodash/_baseIteratee.js"), isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/lodash/isArrayLike.js"), keys = __webpack_require__(/*! ./keys */ "../../../node_modules/lodash/keys.js"); /** * Creates a `_.find` or `_.findLast` function. * * @private * @param {Function} findIndexFunc The function to find the collection index. * @returns {Function} Returns the new find function. */ function createFind(findIndexFunc) { return function(collection, predicate, fromIndex) { var iterable = Object(collection); if (!isArrayLike(collection)) { var iteratee = baseIteratee(predicate, 3); collection = keys(collection); predicate = function(key) { return iteratee(iterable[key], key, iterable); }; } var index = findIndexFunc(collection, predicate, fromIndex); return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined; }; } module.exports = createFind; /***/ }), /***/ "../../../node_modules/lodash/_createFlow.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_createFlow.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var LodashWrapper = __webpack_require__(/*! ./_LodashWrapper */ "../../../node_modules/lodash/_LodashWrapper.js"), flatRest = __webpack_require__(/*! ./_flatRest */ "../../../node_modules/lodash/_flatRest.js"), getData = __webpack_require__(/*! ./_getData */ "../../../node_modules/lodash/_getData.js"), getFuncName = __webpack_require__(/*! ./_getFuncName */ "../../../node_modules/lodash/_getFuncName.js"), isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"), isLaziable = __webpack_require__(/*! ./_isLaziable */ "../../../node_modules/lodash/_isLaziable.js"); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** Used to compose bitmasks for function metadata. */ var WRAP_CURRY_FLAG = 8, WRAP_PARTIAL_FLAG = 32, WRAP_ARY_FLAG = 128, WRAP_REARG_FLAG = 256; /** * Creates a `_.flow` or `_.flowRight` function. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the new flow function. */ function createFlow(fromRight) { return flatRest(function(funcs) { var length = funcs.length, index = length, prereq = LodashWrapper.prototype.thru; if (fromRight) { funcs.reverse(); } while (index--) { var func = funcs[index]; if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } if (prereq && !wrapper && getFuncName(func) == 'wrapper') { var wrapper = new LodashWrapper([], true); } } index = wrapper ? index : length; while (++index < length) { func = funcs[index]; var funcName = getFuncName(func), data = funcName == 'wrapper' ? getData(func) : undefined; if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1 ) { wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]); } else { wrapper = (func.length == 1 && isLaziable(func)) ? wrapper[funcName]() : wrapper.thru(func); } } return function() { var args = arguments, value = args[0]; if (wrapper && args.length == 1 && isArray(value)) { return wrapper.plant(value).value(); } var index = 0, result = length ? funcs[index].apply(this, args) : value; while (++index < length) { result = funcs[index].call(this, result); } return result; }; }); } module.exports = createFlow; /***/ }), /***/ "../../../node_modules/lodash/_createInverter.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_createInverter.js ***! \**********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseInverter = __webpack_require__(/*! ./_baseInverter */ "../../../node_modules/lodash/_baseInverter.js"); /** * Creates a function like `_.invertBy`. * * @private * @param {Function} setter The function to set accumulator values. * @param {Function} toIteratee The function to resolve iteratees. * @returns {Function} Returns the new inverter function. */ function createInverter(setter, toIteratee) { return function(object, iteratee) { return baseInverter(object, setter, toIteratee(iteratee), {}); }; } module.exports = createInverter; /***/ }), /***/ "../../../node_modules/lodash/_createRange.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_createRange.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseRange = __webpack_require__(/*! ./_baseRange */ "../../../node_modules/lodash/_baseRange.js"), isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../../node_modules/lodash/_isIterateeCall.js"), toFinite = __webpack_require__(/*! ./toFinite */ "../../../node_modules/lodash/toFinite.js"); /** * Creates a `_.range` or `_.rangeRight` function. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the new range function. */ function createRange(fromRight) { return function(start, end, step) { if (step && typeof step != 'number' && isIterateeCall(start, end, step)) { end = step = undefined; } // Ensure the sign of `-0` is preserved. start = toFinite(start); if (end === undefined) { end = start; start = 0; } else { end = toFinite(end); } step = step === undefined ? (start < end ? 1 : -1) : toFinite(step); return baseRange(start, end, step, fromRight); }; } module.exports = createRange; /***/ }), /***/ "../../../node_modules/lodash/_createSet.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_createSet.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns `undefined`. * * @static * @memberOf _ * @since 2.3.0 * @category Util * @example * * _.times(2, _.noop); * // => [undefined, undefined] */ function noop() { // No operation performed. } module.exports = noop; /***/ }), /***/ "../../../node_modules/lodash/_createToPairs.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_createToPairs.js ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseToPairs = __webpack_require__(/*! ./_baseToPairs */ "../../../node_modules/lodash/_baseToPairs.js"), getTag = __webpack_require__(/*! ./_getTag */ "../../../node_modules/lodash/_getTag.js"), mapToArray = __webpack_require__(/*! ./_mapToArray */ "../../../node_modules/lodash/_mapToArray.js"), setToPairs = __webpack_require__(/*! ./_setToPairs */ "../../../node_modules/lodash/_setToPairs.js"); /** `Object#toString` result references. */ var mapTag = '[object Map]', setTag = '[object Set]'; /** * Creates a `_.toPairs` or `_.toPairsIn` function. * * @private * @param {Function} keysFunc The function to get the keys of a given object. * @returns {Function} Returns the new pairs function. */ function createToPairs(keysFunc) { return function(object) { var tag = getTag(object); if (tag == mapTag) { return mapToArray(object); } if (tag == setTag) { return setToPairs(object); } return baseToPairs(object, keysFunc(object)); }; } module.exports = createToPairs; /***/ }), /***/ "../../../node_modules/lodash/_defineProperty.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_defineProperty.js ***! \**********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__(/*! ./_getNative */ "../../../node_modules/lodash/_getNative.js"); var defineProperty = (function() { try { var func = getNative(Object, 'defineProperty'); func({}, '', {}); return func; } catch (e) {} }()); module.exports = defineProperty; /***/ }), /***/ "../../../node_modules/lodash/_equalArrays.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_equalArrays.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var SetCache = __webpack_require__(/*! ./_SetCache */ "../../../node_modules/lodash/_SetCache.js"), arraySome = __webpack_require__(/*! ./_arraySome */ "../../../node_modules/lodash/_arraySome.js"), cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../../node_modules/lodash/_cacheHas.js"); /** Used to compose bitmasks for value comparisons. */ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; /** * A specialized version of `baseIsEqualDeep` for arrays with support for * partial deep comparisons. * * @private * @param {Array} array The array to compare. * @param {Array} other The other array to compare. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} stack Tracks traversed `array` and `other` objects. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. */ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; if (arrLength != othLength && !(isPartial && othLength > arrLength)) { return false; } // Check that cyclic values are equal. var arrStacked = stack.get(array); var othStacked = stack.get(other); if (arrStacked && othStacked) { return arrStacked == other && othStacked == array; } var index = -1, result = true, seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined; stack.set(array, other); stack.set(other, array); // Ignore non-index properties. while (++index < arrLength) { var arrValue = array[index], othValue = other[index]; if (customizer) { var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack); } if (compared !== undefined) { if (compared) { continue; } result = false; break; } // Recursively compare arrays (susceptible to call stack limits). if (seen) { if (!arraySome(other, function(othValue, othIndex) { if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { return seen.push(othIndex); } })) { result = false; break; } } else if (!( arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack) )) { result = false; break; } } stack['delete'](array); stack['delete'](other); return result; } module.exports = equalArrays; /***/ }), /***/ "../../../node_modules/lodash/_equalByTag.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_equalByTag.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Performs a * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.eq(object, object); * // => true * * _.eq(object, other); * // => false * * _.eq('a', 'a'); * // => true * * _.eq('a', Object('a')); * // => false * * _.eq(NaN, NaN); * // => true */ function eq(value, other) { return value === other || (value !== value && other !== other); } module.exports = eq; /***/ }), /***/ "../../../node_modules/lodash/_equalObjects.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_equalObjects.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../../node_modules/lodash/_getAllKeys.js"); /** Used to compose bitmasks for value comparisons. */ var COMPARE_PARTIAL_FLAG = 1; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * A specialized version of `baseIsEqualDeep` for objects with support for * partial deep comparisons. * * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} stack Tracks traversed `object` and `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length; if (objLength != othLength && !isPartial) { return false; } var index = objLength; while (index--) { var key = objProps[index]; if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { return false; } } // Check that cyclic values are equal. var objStacked = stack.get(object); var othStacked = stack.get(other); if (objStacked && othStacked) { return objStacked == other && othStacked == object; } var result = true; stack.set(object, other); stack.set(other, object); var skipCtor = isPartial; while (++index < objLength) { key = objProps[index]; var objValue = object[key], othValue = other[key]; if (customizer) { var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); } // Recursively compare objects (susceptible to call stack limits). if (!(compared === undefined ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack)) : compared )) { result = false; break; } skipCtor || (skipCtor = key == 'constructor'); } if (result && !skipCtor) { var objCtor = object.constructor, othCtor = other.constructor; // Non `Object` object instances with different constructors are not equal. if (objCtor != othCtor && ('constructor' in object && 'constructor' in other) && !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) { result = false; } } stack['delete'](object); stack['delete'](other); return result; } module.exports = equalObjects; /***/ }), /***/ "../../../node_modules/lodash/_flatRest.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_flatRest.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var flatten = __webpack_require__(/*! ./flatten */ "../../../node_modules/lodash/flatten.js"), overRest = __webpack_require__(/*! ./_overRest */ "../../../node_modules/lodash/_overRest.js"), setToString = __webpack_require__(/*! ./_setToString */ "../../../node_modules/lodash/_setToString.js"); /** * A specialized version of `baseRest` which flattens the rest array. * * @private * @param {Function} func The function to apply a rest parameter to. * @returns {Function} Returns the new function. */ function flatRest(func) { return setToString(overRest(func, undefined, flatten), func + ''); } module.exports = flatRest; /***/ }), /***/ "../../../node_modules/lodash/_freeGlobal.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_freeGlobal.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; module.exports = freeGlobal; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../../node_modules/webpack/buildin/global.js"))) /***/ }), /***/ "../../../node_modules/lodash/_getAllKeys.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_getAllKeys.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__(/*! ./_overArg */ "../../../node_modules/lodash/_overArg.js"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys = overArg(Object.keys, Object); module.exports = nativeKeys; /***/ }), /***/ "../../../node_modules/lodash/_getAllKeysIn.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_getAllKeysIn.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This function is like * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * except that it includes inherited enumerable properties. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function nativeKeysIn(object) { var result = []; if (object != null) { for (var key in Object(object)) { result.push(key); } } return result; } module.exports = nativeKeysIn; /***/ }), /***/ "../../../node_modules/lodash/_getData.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_getData.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns `undefined`. * * @static * @memberOf _ * @since 2.3.0 * @category Util * @example * * _.times(2, _.noop); * // => [undefined, undefined] */ function noop() { // No operation performed. } module.exports = noop; /***/ }), /***/ "../../../node_modules/lodash/_getFuncName.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_getFuncName.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns an empty string. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {string} Returns the empty string. * @example * * _.times(2, _.stubString); * // => ['', ''] */ function stubString() { return ''; } module.exports = stubString; /***/ }), /***/ "../../../node_modules/lodash/_getMatchData.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_getMatchData.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../../node_modules/lodash/_isStrictComparable.js"), keys = __webpack_require__(/*! ./keys */ "../../../node_modules/lodash/keys.js"); /** * Gets the property names, values, and compare flags of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the match data of `object`. */ function getMatchData(object) { var result = keys(object), length = result.length; while (length--) { var key = result[length], value = object[key]; result[length] = [key, value, isStrictComparable(value)]; } return result; } module.exports = getMatchData; /***/ }), /***/ "../../../node_modules/lodash/_getNative.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_getNative.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Gets the value at `key` of `object`. * * @private * @param {Object} [object] The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function getValue(object, key) { return object == null ? undefined : object[key]; } module.exports = getValue; /***/ }), /***/ "../../../node_modules/lodash/_getPrototype.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_getPrototype.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__(/*! ./_overArg */ "../../../node_modules/lodash/_overArg.js"); /** Built-in value references. */ var getPrototype = overArg(Object.getPrototypeOf, Object); module.exports = getPrototype; /***/ }), /***/ "../../../node_modules/lodash/_getTag.js": /*!**************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_getTag.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** * Converts `value` to a string using `Object.prototype.toString`. * * @private * @param {*} value The value to convert. * @returns {string} Returns the converted string. */ function objectToString(value) { return nativeObjectToString.call(value); } module.exports = objectToString; /***/ }), /***/ "../../../node_modules/lodash/_hasPath.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_hasPath.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var castPath = __webpack_require__(/*! ./_castPath */ "../../../node_modules/lodash/_castPath.js"), isArguments = __webpack_require__(/*! ./isArguments */ "../../../node_modules/lodash/isArguments.js"), isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"), isIndex = __webpack_require__(/*! ./_isIndex */ "../../../node_modules/lodash/_isIndex.js"), isLength = __webpack_require__(/*! ./isLength */ "../../../node_modules/lodash/isLength.js"), toKey = __webpack_require__(/*! ./_toKey */ "../../../node_modules/lodash/_toKey.js"); /** * Checks if `path` exists on `object`. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @param {Function} hasFunc The function to check properties. * @returns {boolean} Returns `true` if `path` exists, else `false`. */ function hasPath(object, path, hasFunc) { path = castPath(path, object); var index = -1, length = path.length, result = false; while (++index < length) { var key = toKey(path[index]); if (!(result = object != null && hasFunc(object, key))) { break; } object = object[key]; } if (result || ++index != length) { return result; } length = object == null ? 0 : object.length; return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); } module.exports = hasPath; /***/ }), /***/ "../../../node_modules/lodash/_isFlattenable.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_isFlattenable.js ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(/*! ./_Symbol */ "../../../node_modules/lodash/_Symbol.js"), isArguments = __webpack_require__(/*! ./isArguments */ "../../../node_modules/lodash/isArguments.js"), isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"); /** Built-in value references. */ var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; /** * Checks if `value` is a flattenable `arguments` object or array. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. */ function isFlattenable(value) { return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); } module.exports = isFlattenable; /***/ }), /***/ "../../../node_modules/lodash/_isIndex.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_isIndex.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\d*)$/; /** * Checks if `value` is a valid array-like index. * * @private * @param {*} value The value to check. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ function isIndex(value, length) { var type = typeof value; length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (type == 'number' || (type != 'symbol' && reIsUint.test(value))) && (value > -1 && value % 1 == 0 && value < length); } module.exports = isIndex; /***/ }), /***/ "../../../node_modules/lodash/_isIterateeCall.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_isIterateeCall.js ***! \**********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } module.exports = stubFalse; /***/ }), /***/ "../../../node_modules/lodash/_isKey.js": /*!*************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_isKey.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"), isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/lodash/isSymbol.js"); /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; /** * Checks if `value` is a property name and not a property path. * * @private * @param {*} value The value to check. * @param {Object} [object] The object to query keys on. * @returns {boolean} Returns `true` if `value` is a property name, else `false`. */ function isKey(value, object) { if (isArray(value)) { return false; } var type = typeof value; if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) { return true; } return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || (object != null && value in Object(object)); } module.exports = isKey; /***/ }), /***/ "../../../node_modules/lodash/_isLaziable.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_isLaziable.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } module.exports = stubFalse; /***/ }), /***/ "../../../node_modules/lodash/_isPrototype.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_isPrototype.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } module.exports = stubFalse; /***/ }), /***/ "../../../node_modules/lodash/_isStrictComparable.js": /*!**************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_isStrictComparable.js ***! \**************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(/*! ./isObject */ "../../../node_modules/lodash/isObject.js"); /** * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` if suitable for strict * equality comparisons, else `false`. */ function isStrictComparable(value) { return value === value && !isObject(value); } module.exports = isStrictComparable; /***/ }), /***/ "../../../node_modules/lodash/_listCacheClear.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_listCacheClear.js ***! \**********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Removes all key-value entries from the list cache. * * @private * @name clear * @memberOf ListCache */ function listCacheClear() { this.__data__ = []; this.size = 0; } module.exports = listCacheClear; /***/ }), /***/ "../../../node_modules/lodash/_listCacheDelete.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_listCacheDelete.js ***! \***********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../../node_modules/lodash/_assocIndexOf.js"); /** Used for built-in method references. */ var arrayProto = Array.prototype; /** Built-in value references. */ var splice = arrayProto.splice; /** * Removes `key` and its value from the list cache. * * @private * @name delete * @memberOf ListCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function listCacheDelete(key) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { return false; } var lastIndex = data.length - 1; if (index == lastIndex) { data.pop(); } else { splice.call(data, index, 1); } --this.size; return true; } module.exports = listCacheDelete; /***/ }), /***/ "../../../node_modules/lodash/_listCacheGet.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_listCacheGet.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../../node_modules/lodash/_assocIndexOf.js"); /** * Gets the list cache value for `key`. * * @private * @name get * @memberOf ListCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function listCacheGet(key) { var data = this.__data__, index = assocIndexOf(data, key); return index < 0 ? undefined : data[index][1]; } module.exports = listCacheGet; /***/ }), /***/ "../../../node_modules/lodash/_listCacheHas.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_listCacheHas.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../../node_modules/lodash/_assocIndexOf.js"); /** * Checks if a list cache value for `key` exists. * * @private * @name has * @memberOf ListCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas(key) { return assocIndexOf(this.__data__, key) > -1; } module.exports = listCacheHas; /***/ }), /***/ "../../../node_modules/lodash/_listCacheSet.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_listCacheSet.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../../node_modules/lodash/_assocIndexOf.js"); /** * Sets the list cache `key` to `value`. * * @private * @name set * @memberOf ListCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the list cache instance. */ function listCacheSet(key, value) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { ++this.size; data.push([key, value]); } else { data[index][1] = value; } return this; } module.exports = listCacheSet; /***/ }), /***/ "../../../node_modules/lodash/_mapToArray.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_mapToArray.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns a new empty array. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {Array} Returns the new empty array. * @example * * var arrays = _.times(2, _.stubArray); * * console.log(arrays); * // => [[], []] * * console.log(arrays[0] === arrays[1]); * // => false */ function stubArray() { return []; } module.exports = stubArray; /***/ }), /***/ "../../../node_modules/lodash/_matchesStrictComparable.js": /*!*******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_matchesStrictComparable.js ***! \*******************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * A specialized version of `matchesProperty` for source values suitable * for strict equality comparisons, i.e. `===`. * * @private * @param {string} key The key of the property to get. * @param {*} srcValue The value to match. * @returns {Function} Returns the new spec function. */ function matchesStrictComparable(key, srcValue) { return function(object) { if (object == null) { return false; } return object[key] === srcValue && (srcValue !== undefined || (key in Object(object))); }; } module.exports = matchesStrictComparable; /***/ }), /***/ "../../../node_modules/lodash/_memoizeCapped.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_memoizeCapped.js ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns the first argument it receives. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {*} value Any value. * @returns {*} Returns `value`. * @example * * var object = { 'a': 1 }; * * console.log(_.identity(object) === object); * // => true */ function identity(value) { return value; } module.exports = identity; /***/ }), /***/ "../../../node_modules/lodash/_nodeUtil.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_nodeUtil.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../../node_modules/lodash/_freeGlobal.js"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Detect free variable `process` from Node.js. */ var freeProcess = moduleExports && freeGlobal.process; /** Used to access faster Node.js helpers. */ var nodeUtil = (function() { try { // Use `util.types` for Node.js 10+. var types = freeModule && freeModule.require && freeModule.require('util').types; if (types) { return types; } // Legacy `process.binding('util')` for Node.js < 10. return freeProcess && freeProcess.binding && freeProcess.binding('util'); } catch (e) {} }()); module.exports = nodeUtil; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../../node_modules/webpack/buildin/module.js")(module))) /***/ }), /***/ "../../../node_modules/lodash/_overArg.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_overArg.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Creates a unary function that invokes `func` with its argument transformed. * * @private * @param {Function} func The function to wrap. * @param {Function} transform The argument transform. * @returns {Function} Returns the new function. */ function overArg(func, transform) { return function(arg) { return func(transform(arg)); }; } module.exports = overArg; /***/ }), /***/ "../../../node_modules/lodash/_overRest.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_overRest.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var apply = __webpack_require__(/*! ./_apply */ "../../../node_modules/lodash/_apply.js"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max; /** * A specialized version of `baseRest` which transforms the rest array. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @param {Function} transform The rest array transform. * @returns {Function} Returns the new function. */ function overRest(func, start, transform) { start = nativeMax(start === undefined ? (func.length - 1) : start, 0); return function() { var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); while (++index < length) { array[index] = args[start + index]; } index = -1; var otherArgs = Array(start + 1); while (++index < start) { otherArgs[index] = args[index]; } otherArgs[start] = transform(array); return apply(func, this, otherArgs); }; } module.exports = overRest; /***/ }), /***/ "../../../node_modules/lodash/_root.js": /*!************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_root.js ***! \************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../../node_modules/lodash/_freeGlobal.js"); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ var root = freeGlobal || freeSelf || Function('return this')(); module.exports = root; /***/ }), /***/ "../../../node_modules/lodash/_setToArray.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_setToArray.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns a new empty array. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {Array} Returns the new empty array. * @example * * var arrays = _.times(2, _.stubArray); * * console.log(arrays); * // => [[], []] * * console.log(arrays[0] === arrays[1]); * // => false */ function stubArray() { return []; } module.exports = stubArray; /***/ }), /***/ "../../../node_modules/lodash/_setToPairs.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_setToPairs.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns a new empty array. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {Array} Returns the new empty array. * @example * * var arrays = _.times(2, _.stubArray); * * console.log(arrays); * // => [[], []] * * console.log(arrays[0] === arrays[1]); * // => false */ function stubArray() { return []; } module.exports = stubArray; /***/ }), /***/ "../../../node_modules/lodash/_setToString.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_setToString.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns the first argument it receives. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {*} value Any value. * @returns {*} Returns `value`. * @example * * var object = { 'a': 1 }; * * console.log(_.identity(object) === object); * // => true */ function identity(value) { return value; } module.exports = identity; /***/ }), /***/ "../../../node_modules/lodash/_stringToPath.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_stringToPath.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "../../../node_modules/lodash/_memoizeCapped.js"); /** Used to match property names within property paths. */ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; /** Used to match backslashes in property paths. */ var reEscapeChar = /\\(\\)?/g; /** * Converts `string` to a property path array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the property path array. */ var stringToPath = memoizeCapped(function(string) { var result = []; if (string.charCodeAt(0) === 46 /* . */) { result.push(''); } string.replace(rePropName, function(match, number, quote, subString) { result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); }); return result; }); module.exports = stringToPath; /***/ }), /***/ "../../../node_modules/lodash/_toKey.js": /*!*************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_toKey.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/lodash/isSymbol.js"); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** * Converts `value` to a string key if it's not a string or symbol. * * @private * @param {*} value The value to inspect. * @returns {string|symbol} Returns the key. */ function toKey(value) { if (typeof value == 'string' || isSymbol(value)) { return value; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = toKey; /***/ }), /***/ "../../../node_modules/lodash/_trimmedEndIndex.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/_trimmedEndIndex.js ***! \***********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** Used to match a single whitespace character. */ var reWhitespace = /\s/; /** * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace * character of `string`. * * @private * @param {string} string The string to inspect. * @returns {number} Returns the index of the last non-whitespace character. */ function trimmedEndIndex(string) { var index = string.length; while (index-- && reWhitespace.test(string.charAt(index))) {} return index; } module.exports = trimmedEndIndex; /***/ }), /***/ "../../../node_modules/lodash/assign.js": /*!*************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/assign.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var assignValue = __webpack_require__(/*! ./_assignValue */ "../../../node_modules/lodash/_assignValue.js"), copyObject = __webpack_require__(/*! ./_copyObject */ "../../../node_modules/lodash/_copyObject.js"), createAssigner = __webpack_require__(/*! ./_createAssigner */ "../../../node_modules/lodash/_createAssigner.js"), isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/lodash/isArrayLike.js"), isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../../node_modules/lodash/_isPrototype.js"), keys = __webpack_require__(/*! ./keys */ "../../../node_modules/lodash/keys.js"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Assigns own enumerable string keyed properties of source objects to the * destination object. Source objects are applied from left to right. * Subsequent sources overwrite property assignments of previous sources. * * **Note:** This method mutates `object` and is loosely based on * [`Object.assign`](https://mdn.io/Object/assign). * * @static * @memberOf _ * @since 0.10.0 * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. * @see _.assignIn * @example * * function Foo() { * this.a = 1; * } * * function Bar() { * this.c = 3; * } * * Foo.prototype.b = 2; * Bar.prototype.d = 4; * * _.assign({ 'a': 0 }, new Foo, new Bar); * // => { 'a': 1, 'c': 3 } */ var assign = createAssigner(function(object, source) { if (isPrototype(source) || isArrayLike(source)) { copyObject(source, keys(source), object); return; } for (var key in source) { if (hasOwnProperty.call(source, key)) { assignValue(object, key, source[key]); } } }); module.exports = assign; /***/ }), /***/ "../../../node_modules/lodash/constant.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/constant.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Creates a function that returns `value`. * * @static * @memberOf _ * @since 2.4.0 * @category Util * @param {*} value The value to return from the new function. * @returns {Function} Returns the new constant function. * @example * * var objects = _.times(2, _.constant({ 'a': 1 })); * * console.log(objects); * // => [{ 'a': 1 }, { 'a': 1 }] * * console.log(objects[0] === objects[1]); * // => true */ function constant(value) { return function() { return value; }; } module.exports = constant; /***/ }), /***/ "../../../node_modules/lodash/debounce.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/debounce.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(/*! ./isObject */ "../../../node_modules/lodash/isObject.js"), now = __webpack_require__(/*! ./now */ "../../../node_modules/lodash/now.js"), toNumber = __webpack_require__(/*! ./toNumber */ "../../../node_modules/lodash/toNumber.js"); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max, nativeMin = Math.min; /** * Creates a debounced function that delays invoking `func` until after `wait` * milliseconds have elapsed since the last time the debounced function was * invoked. The debounced function comes with a `cancel` method to cancel * delayed `func` invocations and a `flush` method to immediately invoke them. * Provide `options` to indicate whether `func` should be invoked on the * leading and/or trailing edge of the `wait` timeout. The `func` is invoked * with the last arguments provided to the debounced function. Subsequent * calls to the debounced function return the result of the last `func` * invocation. * * **Note:** If `leading` and `trailing` options are `true`, `func` is * invoked on the trailing edge of the timeout only if the debounced function * is invoked more than once during the `wait` timeout. * * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred * until to the next tick, similar to `setTimeout` with a timeout of `0`. * * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) * for details over the differences between `_.debounce` and `_.throttle`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to debounce. * @param {number} [wait=0] The number of milliseconds to delay. * @param {Object} [options={}] The options object. * @param {boolean} [options.leading=false] * Specify invoking on the leading edge of the timeout. * @param {number} [options.maxWait] * The maximum time `func` is allowed to be delayed before it's invoked. * @param {boolean} [options.trailing=true] * Specify invoking on the trailing edge of the timeout. * @returns {Function} Returns the new debounced function. * @example * * // Avoid costly calculations while the window size is in flux. * jQuery(window).on('resize', _.debounce(calculateLayout, 150)); * * // Invoke `sendMail` when clicked, debouncing subsequent calls. * jQuery(element).on('click', _.debounce(sendMail, 300, { * 'leading': true, * 'trailing': false * })); * * // Ensure `batchLog` is invoked once after 1 second of debounced calls. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 }); * var source = new EventSource('/stream'); * jQuery(source).on('message', debounced); * * // Cancel the trailing debounced invocation. * jQuery(window).on('popstate', debounced.cancel); */ function debounce(func, wait, options) { var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true; if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } wait = toNumber(wait) || 0; if (isObject(options)) { leading = !!options.leading; maxing = 'maxWait' in options; maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; trailing = 'trailing' in options ? !!options.trailing : trailing; } function invokeFunc(time) { var args = lastArgs, thisArg = lastThis; lastArgs = lastThis = undefined; lastInvokeTime = time; result = func.apply(thisArg, args); return result; } function leadingEdge(time) { // Reset any `maxWait` timer. lastInvokeTime = time; // Start the timer for the trailing edge. timerId = setTimeout(timerExpired, wait); // Invoke the leading edge. return leading ? invokeFunc(time) : result; } function remainingWait(time) { var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall; return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting; } function shouldInvoke(time) { var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime; // Either this is the first call, activity has stopped and we're at the // trailing edge, the system time has gone backwards and we're treating // it as the trailing edge, or we've hit the `maxWait` limit. return (lastCallTime === undefined || (timeSinceLastCall >= wait) || (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait)); } function timerExpired() { var time = now(); if (shouldInvoke(time)) { return trailingEdge(time); } // Restart the timer. timerId = setTimeout(timerExpired, remainingWait(time)); } function trailingEdge(time) { timerId = undefined; // Only invoke if we have `lastArgs` which means `func` has been // debounced at least once. if (trailing && lastArgs) { return invokeFunc(time); } lastArgs = lastThis = undefined; return result; } function cancel() { if (timerId !== undefined) { clearTimeout(timerId); } lastInvokeTime = 0; lastArgs = lastCallTime = lastThis = timerId = undefined; } function flush() { return timerId === undefined ? result : trailingEdge(now()); } function debounced() { var time = now(), isInvoking = shouldInvoke(time); lastArgs = arguments; lastThis = this; lastCallTime = time; if (isInvoking) { if (timerId === undefined) { return leadingEdge(lastCallTime); } if (maxing) { // Handle invocations in a tight loop. clearTimeout(timerId); timerId = setTimeout(timerExpired, wait); return invokeFunc(lastCallTime); } } if (timerId === undefined) { timerId = setTimeout(timerExpired, wait); } return result; } debounced.cancel = cancel; debounced.flush = flush; return debounced; } module.exports = debounce; /***/ }), /***/ "../../../node_modules/lodash/defaults.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/defaults.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/lodash/_baseRest.js"), eq = __webpack_require__(/*! ./eq */ "../../../node_modules/lodash/eq.js"), isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../../node_modules/lodash/_isIterateeCall.js"), keysIn = __webpack_require__(/*! ./keysIn */ "../../../node_modules/lodash/keysIn.js"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Assigns own and inherited enumerable string keyed properties of source * objects to the destination object for all destination properties that * resolve to `undefined`. Source objects are applied from left to right. * Once a property is set, additional values of the same property are ignored. * * **Note:** This method mutates `object`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. * @see _.defaultsDeep * @example * * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); * // => { 'a': 1, 'b': 2 } */ var defaults = baseRest(function(object, sources) { object = Object(object); var index = -1; var length = sources.length; var guard = length > 2 ? sources[2] : undefined; if (guard && isIterateeCall(sources[0], sources[1], guard)) { length = 1; } while (++index < length) { var source = sources[index]; var props = keysIn(source); var propsIndex = -1; var propsLength = props.length; while (++propsIndex < propsLength) { var key = props[propsIndex]; var value = object[key]; if (value === undefined || (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) { object[key] = source[key]; } } } return object; }); module.exports = defaults; /***/ }), /***/ "../../../node_modules/lodash/delay.js": /*!************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/delay.js ***! \************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseDelay = __webpack_require__(/*! ./_baseDelay */ "../../../node_modules/lodash/_baseDelay.js"), baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/lodash/_baseRest.js"), toNumber = __webpack_require__(/*! ./toNumber */ "../../../node_modules/lodash/toNumber.js"); /** * Invokes `func` after `wait` milliseconds. Any additional arguments are * provided to `func` when it's invoked. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to delay. * @param {number} wait The number of milliseconds to delay invocation. * @param {...*} [args] The arguments to invoke `func` with. * @returns {number} Returns the timer id. * @example * * _.delay(function(text) { * console.log(text); * }, 1000, 'later'); * // => Logs 'later' after one second. */ var delay = baseRest(function(func, wait, args) { return baseDelay(func, toNumber(wait) || 0, args); }); module.exports = delay; /***/ }), /***/ "../../../node_modules/lodash/difference.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/difference.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseDifference = __webpack_require__(/*! ./_baseDifference */ "../../../node_modules/lodash/_baseDifference.js"), baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../../node_modules/lodash/_baseFlatten.js"), baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/lodash/_baseRest.js"), isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../../node_modules/lodash/isArrayLikeObject.js"); /** * Creates an array of `array` values not included in the other given arrays * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. The order and references of result values are * determined by the first array. * * **Note:** Unlike `_.pullAll`, this method returns a new array. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to inspect. * @param {...Array} [values] The values to exclude. * @returns {Array} Returns the new array of filtered values. * @see _.without, _.xor * @example * * _.difference([2, 1], [2, 3]); * // => [1] */ var difference = baseRest(function(array, values) { return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) : []; }); module.exports = difference; /***/ }), /***/ "../../../node_modules/lodash/eq.js": /*!*********************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/eq.js ***! \*********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Performs a * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.eq(object, object); * // => true * * _.eq(object, other); * // => false * * _.eq('a', 'a'); * // => true * * _.eq('a', Object('a')); * // => false * * _.eq(NaN, NaN); * // => true */ function eq(value, other) { return value === other || (value !== value && other !== other); } module.exports = eq; /***/ }), /***/ "../../../node_modules/lodash/find.js": /*!***********************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/find.js ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var createFind = __webpack_require__(/*! ./_createFind */ "../../../node_modules/lodash/_createFind.js"), findIndex = __webpack_require__(/*! ./findIndex */ "../../../node_modules/lodash/findIndex.js"); /** * Iterates over elements of `collection`, returning the first element * `predicate` returns truthy for. The predicate is invoked with three * arguments: (value, index|key, collection). * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to inspect. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param {number} [fromIndex=0] The index to search from. * @returns {*} Returns the matched element, else `undefined`. * @example * * var users = [ * { 'user': 'barney', 'age': 36, 'active': true }, * { 'user': 'fred', 'age': 40, 'active': false }, * { 'user': 'pebbles', 'age': 1, 'active': true } * ]; * * _.find(users, function(o) { return o.age < 40; }); * // => object for 'barney' * * // The `_.matches` iteratee shorthand. * _.find(users, { 'age': 1, 'active': true }); * // => object for 'pebbles' * * // The `_.matchesProperty` iteratee shorthand. * _.find(users, ['active', false]); * // => object for 'fred' * * // The `_.property` iteratee shorthand. * _.find(users, 'active'); * // => object for 'barney' */ var find = createFind(findIndex); module.exports = find; /***/ }), /***/ "../../../node_modules/lodash/findIndex.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/findIndex.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../../node_modules/lodash/_baseFindIndex.js"), baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/lodash/_baseIteratee.js"), toInteger = __webpack_require__(/*! ./toInteger */ "../../../node_modules/lodash/toInteger.js"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max; /** * This method is like `_.find` except that it returns the index of the first * element `predicate` returns truthy for instead of the element itself. * * @static * @memberOf _ * @since 1.1.0 * @category Array * @param {Array} array The array to inspect. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param {number} [fromIndex=0] The index to search from. * @returns {number} Returns the index of the found element, else `-1`. * @example * * var users = [ * { 'user': 'barney', 'active': false }, * { 'user': 'fred', 'active': false }, * { 'user': 'pebbles', 'active': true } * ]; * * _.findIndex(users, function(o) { return o.user == 'barney'; }); * // => 0 * * // The `_.matches` iteratee shorthand. * _.findIndex(users, { 'user': 'fred', 'active': false }); * // => 1 * * // The `_.matchesProperty` iteratee shorthand. * _.findIndex(users, ['active', false]); * // => 0 * * // The `_.property` iteratee shorthand. * _.findIndex(users, 'active'); * // => 2 */ function findIndex(array, predicate, fromIndex) { var length = array == null ? 0 : array.length; if (!length) { return -1; } var index = fromIndex == null ? 0 : toInteger(fromIndex); if (index < 0) { index = nativeMax(length + index, 0); } return baseFindIndex(array, baseIteratee(predicate, 3), index); } module.exports = findIndex; /***/ }), /***/ "../../../node_modules/lodash/flatten.js": /*!**************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/flatten.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../../node_modules/lodash/_baseFlatten.js"); /** * Flattens `array` a single level deep. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to flatten. * @returns {Array} Returns the new flattened array. * @example * * _.flatten([1, [2, [3, [4]], 5]]); * // => [1, 2, [3, [4]], 5] */ function flatten(array) { var length = array == null ? 0 : array.length; return length ? baseFlatten(array, 1) : []; } module.exports = flatten; /***/ }), /***/ "../../../node_modules/lodash/flow.js": /*!***********************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/flow.js ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var createFlow = __webpack_require__(/*! ./_createFlow */ "../../../node_modules/lodash/_createFlow.js"); /** * Creates a function that returns the result of invoking the given functions * with the `this` binding of the created function, where each successive * invocation is supplied the return value of the previous. * * @static * @memberOf _ * @since 3.0.0 * @category Util * @param {...(Function|Function[])} [funcs] The functions to invoke. * @returns {Function} Returns the new composite function. * @see _.flowRight * @example * * function square(n) { * return n * n; * } * * var addSquare = _.flow([_.add, square]); * addSquare(1, 2); * // => 9 */ var flow = createFlow(); module.exports = flow; /***/ }), /***/ "../../../node_modules/lodash/forOwn.js": /*!*************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/forOwn.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../../node_modules/lodash/_baseForOwn.js"), castFunction = __webpack_require__(/*! ./_castFunction */ "../../../node_modules/lodash/_castFunction.js"); /** * Iterates over own enumerable string keyed properties of an object and * invokes `iteratee` for each property. The iteratee is invoked with three * arguments: (value, key, object). Iteratee functions may exit iteration * early by explicitly returning `false`. * * @static * @memberOf _ * @since 0.3.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Object} Returns `object`. * @see _.forOwnRight * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.forOwn(new Foo, function(value, key) { * console.log(key); * }); * // => Logs 'a' then 'b' (iteration order is not guaranteed). */ function forOwn(object, iteratee) { return object && baseForOwn(object, castFunction(iteratee)); } module.exports = forOwn; /***/ }), /***/ "../../../node_modules/lodash/fromPairs.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/fromPairs.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * The inverse of `_.toPairs`; this method returns an object composed * from key-value `pairs`. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} pairs The key-value pairs. * @returns {Object} Returns the new object. * @example * * _.fromPairs([['a', 1], ['b', 2]]); * // => { 'a': 1, 'b': 2 } */ function fromPairs(pairs) { var index = -1, length = pairs == null ? 0 : pairs.length, result = {}; while (++index < length) { var pair = pairs[index]; result[pair[0]] = pair[1]; } return result; } module.exports = fromPairs; /***/ }), /***/ "../../../node_modules/lodash/get.js": /*!**********************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/get.js ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseGet = __webpack_require__(/*! ./_baseGet */ "../../../node_modules/lodash/_baseGet.js"); /** * Gets the value at `path` of `object`. If the resolved value is * `undefined`, the `defaultValue` is returned in its place. * * @static * @memberOf _ * @since 3.7.0 * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path of the property to get. * @param {*} [defaultValue] The value returned for `undefined` resolved values. * @returns {*} Returns the resolved value. * @example * * var object = { 'a': [{ 'b': { 'c': 3 } }] }; * * _.get(object, 'a[0].b.c'); * // => 3 * * _.get(object, ['a', '0', 'b', 'c']); * // => 3 * * _.get(object, 'a.b.c', 'default'); * // => 'default' */ function get(object, path, defaultValue) { var result = object == null ? undefined : baseGet(object, path); return result === undefined ? defaultValue : result; } module.exports = get; /***/ }), /***/ "../../../node_modules/lodash/groupBy.js": /*!**************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/groupBy.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../../node_modules/lodash/_baseAssignValue.js"), createAggregator = __webpack_require__(/*! ./_createAggregator */ "../../../node_modules/lodash/_createAggregator.js"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Creates an object composed of keys generated from the results of running * each element of `collection` thru `iteratee`. The order of grouped values * is determined by the order they occur in `collection`. The corresponding * value of each key is an array of elements responsible for generating the * key. The iteratee is invoked with one argument: (value). * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [iteratee=_.identity] The iteratee to transform keys. * @returns {Object} Returns the composed aggregate object. * @example * * _.groupBy([6.1, 4.2, 6.3], Math.floor); * // => { '4': [4.2], '6': [6.1, 6.3] } * * // The `_.property` iteratee shorthand. * _.groupBy(['one', 'two', 'three'], 'length'); * // => { '3': ['one', 'two'], '5': ['three'] } */ var groupBy = createAggregator(function(result, value, key) { if (hasOwnProperty.call(result, key)) { result[key].push(value); } else { baseAssignValue(result, key, [value]); } }); module.exports = groupBy; /***/ }), /***/ "../../../node_modules/lodash/hasIn.js": /*!************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/hasIn.js ***! \************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "../../../node_modules/lodash/_baseHasIn.js"), hasPath = __webpack_require__(/*! ./_hasPath */ "../../../node_modules/lodash/_hasPath.js"); /** * Checks if `path` is a direct or inherited property of `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @returns {boolean} Returns `true` if `path` exists, else `false`. * @example * * var object = _.create({ 'a': _.create({ 'b': 2 }) }); * * _.hasIn(object, 'a'); * // => true * * _.hasIn(object, 'a.b'); * // => true * * _.hasIn(object, ['a', 'b']); * // => true * * _.hasIn(object, 'b'); * // => false */ function hasIn(object, path) { return object != null && hasPath(object, path, baseHasIn); } module.exports = hasIn; /***/ }), /***/ "../../../node_modules/lodash/identity.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/identity.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns the first argument it receives. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {*} value Any value. * @returns {*} Returns `value`. * @example * * var object = { 'a': 1 }; * * console.log(_.identity(object) === object); * // => true */ function identity(value) { return value; } module.exports = identity; /***/ }), /***/ "../../../node_modules/lodash/includes.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/includes.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "../../../node_modules/lodash/_baseIndexOf.js"); /** * A specialized version of `_.includes` for arrays without support for * specifying an index to search from. * * @private * @param {Array} [array] The array to inspect. * @param {*} target The value to search for. * @returns {boolean} Returns `true` if `target` is found, else `false`. */ function arrayIncludes(array, value) { var length = array == null ? 0 : array.length; return !!length && baseIndexOf(array, value, 0) > -1; } module.exports = arrayIncludes; /***/ }), /***/ "../../../node_modules/lodash/invert.js": /*!*************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/invert.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var constant = __webpack_require__(/*! ./constant */ "../../../node_modules/lodash/constant.js"), createInverter = __webpack_require__(/*! ./_createInverter */ "../../../node_modules/lodash/_createInverter.js"), identity = __webpack_require__(/*! ./identity */ "../../../node_modules/lodash/identity.js"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** * Creates an object composed of the inverted keys and values of `object`. * If `object` contains duplicate values, subsequent values overwrite * property assignments of previous values. * * @static * @memberOf _ * @since 0.7.0 * @category Object * @param {Object} object The object to invert. * @returns {Object} Returns the new inverted object. * @example * * var object = { 'a': 1, 'b': 2, 'c': 1 }; * * _.invert(object); * // => { '1': 'c', '2': 'b' } */ var invert = createInverter(function(result, value, key) { if (value != null && typeof value.toString != 'function') { value = nativeObjectToString.call(value); } result[value] = key; }, constant(identity)); module.exports = invert; /***/ }), /***/ "../../../node_modules/lodash/isArguments.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isArguments.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } module.exports = stubFalse; /***/ }), /***/ "../../../node_modules/lodash/isArray.js": /*!**************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isArray.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Checks if `value` is classified as an `Array` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); * // => true * * _.isArray(document.body.children); * // => false * * _.isArray('abc'); * // => false * * _.isArray(_.noop); * // => false */ var isArray = Array.isArray; module.exports = isArray; /***/ }), /***/ "../../../node_modules/lodash/isArrayLike.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isArrayLike.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__(/*! ./isFunction */ "../../../node_modules/lodash/isFunction.js"), isLength = __webpack_require__(/*! ./isLength */ "../../../node_modules/lodash/isLength.js"); /** * Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * * _.isArrayLike([1, 2, 3]); * // => true * * _.isArrayLike(document.body.children); * // => true * * _.isArrayLike('abc'); * // => true * * _.isArrayLike(_.noop); * // => false */ function isArrayLike(value) { return value != null && isLength(value.length) && !isFunction(value); } module.exports = isArrayLike; /***/ }), /***/ "../../../node_modules/lodash/isArrayLikeObject.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isArrayLikeObject.js ***! \************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/lodash/isArrayLike.js"), isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/lodash/isObjectLike.js"); /** * This method is like `_.isArrayLike` except that it also checks if `value` * is an object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array-like object, * else `false`. * @example * * _.isArrayLikeObject([1, 2, 3]); * // => true * * _.isArrayLikeObject(document.body.children); * // => true * * _.isArrayLikeObject('abc'); * // => false * * _.isArrayLikeObject(_.noop); * // => false */ function isArrayLikeObject(value) { return isObjectLike(value) && isArrayLike(value); } module.exports = isArrayLikeObject; /***/ }), /***/ "../../../node_modules/lodash/isBuffer.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isBuffer.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } module.exports = stubFalse; /***/ }), /***/ "../../../node_modules/lodash/isDate.js": /*!*************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isDate.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseIsDate = __webpack_require__(/*! ./_baseIsDate */ "../../../node_modules/lodash/_baseIsDate.js"), baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../../node_modules/lodash/_baseUnary.js"), nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../../node_modules/lodash/_nodeUtil.js"); /* Node.js helper references. */ var nodeIsDate = nodeUtil && nodeUtil.isDate; /** * Checks if `value` is classified as a `Date` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. * @example * * _.isDate(new Date); * // => true * * _.isDate('Mon April 23 2012'); * // => false */ var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; module.exports = isDate; /***/ }), /***/ "../../../node_modules/lodash/isEmpty.js": /*!**************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isEmpty.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../../node_modules/lodash/_baseKeys.js"), getTag = __webpack_require__(/*! ./_getTag */ "../../../node_modules/lodash/_getTag.js"), isArguments = __webpack_require__(/*! ./isArguments */ "../../../node_modules/lodash/isArguments.js"), isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"), isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/lodash/isArrayLike.js"), isBuffer = __webpack_require__(/*! ./isBuffer */ "../../../node_modules/lodash/isBuffer.js"), isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../../node_modules/lodash/_isPrototype.js"), isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../../node_modules/lodash/isTypedArray.js"); /** `Object#toString` result references. */ var mapTag = '[object Map]', setTag = '[object Set]'; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Checks if `value` is an empty object, collection, map, or set. * * Objects are considered empty if they have no own enumerable string keyed * properties. * * Array-like values such as `arguments` objects, arrays, buffers, strings, or * jQuery-like collections are considered empty if they have a `length` of `0`. * Similarly, maps and sets are considered empty if they have a `size` of `0`. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is empty, else `false`. * @example * * _.isEmpty(null); * // => true * * _.isEmpty(true); * // => true * * _.isEmpty(1); * // => true * * _.isEmpty([1, 2, 3]); * // => false * * _.isEmpty({ 'a': 1 }); * // => false */ function isEmpty(value) { if (value == null) { return true; } if (isArrayLike(value) && (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || isBuffer(value) || isTypedArray(value) || isArguments(value))) { return !value.length; } var tag = getTag(value); if (tag == mapTag || tag == setTag) { return !value.size; } if (isPrototype(value)) { return !baseKeys(value).length; } for (var key in value) { if (hasOwnProperty.call(value, key)) { return false; } } return true; } module.exports = isEmpty; /***/ }), /***/ "../../../node_modules/lodash/isEqual.js": /*!**************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isEqual.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../../node_modules/lodash/_baseIsEqual.js"); /** * Performs a deep comparison between two values to determine if they are * equivalent. * * **Note:** This method supports comparing arrays, array buffers, booleans, * date objects, error objects, maps, numbers, `Object` objects, regexes, * sets, strings, symbols, and typed arrays. `Object` objects are compared * by their own, not inherited, enumerable properties. Functions and DOM * nodes are compared by strict equality, i.e. `===`. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.isEqual(object, other); * // => true * * object === other; * // => false */ function isEqual(value, other) { return baseIsEqual(value, other); } module.exports = isEqual; /***/ }), /***/ "../../../node_modules/lodash/isFunction.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isFunction.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../../node_modules/lodash/_baseGetTag.js"), isObject = __webpack_require__(/*! ./isObject */ "../../../node_modules/lodash/isObject.js"); /** `Object#toString` result references. */ var asyncTag = '[object AsyncFunction]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', proxyTag = '[object Proxy]'; /** * Checks if `value` is classified as a `Function` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.isFunction(_); * // => true * * _.isFunction(/abc/); * // => false */ function isFunction(value) { if (!isObject(value)) { return false; } // The use of `Object#toString` avoids issues with the `typeof` operator // in Safari 9 which returns 'object' for typed arrays and other constructors. var tag = baseGetTag(value); return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } module.exports = isFunction; /***/ }), /***/ "../../../node_modules/lodash/isLength.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isLength.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** * Checks if `value` is a valid array-like length. * * **Note:** This method is loosely based on * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. * @example * * _.isLength(3); * // => true * * _.isLength(Number.MIN_VALUE); * // => false * * _.isLength(Infinity); * // => false * * _.isLength('3'); * // => false */ function isLength(value) { return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } module.exports = isLength; /***/ }), /***/ "../../../node_modules/lodash/isNaN.js": /*!************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isNaN.js ***! \************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isNumber = __webpack_require__(/*! ./isNumber */ "../../../node_modules/lodash/isNumber.js"); /** * Checks if `value` is `NaN`. * * **Note:** This method is based on * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for * `undefined` and other non-number values. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. * @example * * _.isNaN(NaN); * // => true * * _.isNaN(new Number(NaN)); * // => true * * isNaN(undefined); * // => true * * _.isNaN(undefined); * // => false */ function isNaN(value) { // An `NaN` primitive is the only value that is not equal to itself. // Perform the `toStringTag` check first to avoid errors with some // ActiveX objects in IE. return isNumber(value) && value != +value; } module.exports = isNaN; /***/ }), /***/ "../../../node_modules/lodash/isNil.js": /*!************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isNil.js ***! \************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Checks if `value` is `null` or `undefined`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is nullish, else `false`. * @example * * _.isNil(null); * // => true * * _.isNil(void 0); * // => true * * _.isNil(NaN); * // => false */ function isNil(value) { return value == null; } module.exports = isNil; /***/ }), /***/ "../../../node_modules/lodash/isNumber.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isNumber.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../../node_modules/lodash/_baseGetTag.js"), isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/lodash/isObjectLike.js"); /** `Object#toString` result references. */ var numberTag = '[object Number]'; /** * Checks if `value` is classified as a `Number` primitive or object. * * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are * classified as numbers, use the `_.isFinite` method. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a number, else `false`. * @example * * _.isNumber(3); * // => true * * _.isNumber(Number.MIN_VALUE); * // => true * * _.isNumber(Infinity); * // => true * * _.isNumber('3'); * // => false */ function isNumber(value) { return typeof value == 'number' || (isObjectLike(value) && baseGetTag(value) == numberTag); } module.exports = isNumber; /***/ }), /***/ "../../../node_modules/lodash/isObject.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isObject.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } module.exports = isObject; /***/ }), /***/ "../../../node_modules/lodash/isObjectLike.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isObjectLike.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * _.isObjectLike({}); * // => true * * _.isObjectLike([1, 2, 3]); * // => true * * _.isObjectLike(_.noop); * // => false * * _.isObjectLike(null); * // => false */ function isObjectLike(value) { return value != null && typeof value == 'object'; } module.exports = isObjectLike; /***/ }), /***/ "../../../node_modules/lodash/isPlainObject.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isPlainObject.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../../node_modules/lodash/_baseGetTag.js"), getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../../node_modules/lodash/_getPrototype.js"), isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/lodash/isObjectLike.js"); /** `Object#toString` result references. */ var objectTag = '[object Object]'; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to infer the `Object` constructor. */ var objectCtorString = funcToString.call(Object); /** * Checks if `value` is a plain object, that is, an object created by the * `Object` constructor or one with a `[[Prototype]]` of `null`. * * @static * @memberOf _ * @since 0.8.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. * @example * * function Foo() { * this.a = 1; * } * * _.isPlainObject(new Foo); * // => false * * _.isPlainObject([1, 2, 3]); * // => false * * _.isPlainObject({ 'x': 0, 'y': 0 }); * // => true * * _.isPlainObject(Object.create(null)); * // => true */ function isPlainObject(value) { if (!isObjectLike(value) || baseGetTag(value) != objectTag) { return false; } var proto = getPrototype(value); if (proto === null) { return true; } var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; } module.exports = isPlainObject; /***/ }), /***/ "../../../node_modules/lodash/isRegExp.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isRegExp.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseIsRegExp = __webpack_require__(/*! ./_baseIsRegExp */ "../../../node_modules/lodash/_baseIsRegExp.js"), baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../../node_modules/lodash/_baseUnary.js"), nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../../node_modules/lodash/_nodeUtil.js"); /* Node.js helper references. */ var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp; /** * Checks if `value` is classified as a `RegExp` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. * @example * * _.isRegExp(/abc/); * // => true * * _.isRegExp('/abc/'); * // => false */ var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp; module.exports = isRegExp; /***/ }), /***/ "../../../node_modules/lodash/isString.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isString.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../../node_modules/lodash/_baseGetTag.js"), isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"), isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/lodash/isObjectLike.js"); /** `Object#toString` result references. */ var stringTag = '[object String]'; /** * Checks if `value` is classified as a `String` primitive or object. * * @static * @since 0.1.0 * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a string, else `false`. * @example * * _.isString('abc'); * // => true * * _.isString(1); * // => false */ function isString(value) { return typeof value == 'string' || (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag); } module.exports = isString; /***/ }), /***/ "../../../node_modules/lodash/isSymbol.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isSymbol.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } module.exports = stubFalse; /***/ }), /***/ "../../../node_modules/lodash/isTypedArray.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isTypedArray.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } module.exports = stubFalse; /***/ }), /***/ "../../../node_modules/lodash/isUndefined.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isUndefined.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Checks if `value` is `undefined`. * * @static * @since 0.1.0 * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`. * @example * * _.isUndefined(void 0); * // => true * * _.isUndefined(null); * // => false */ function isUndefined(value) { return value === undefined; } module.exports = isUndefined; /***/ }), /***/ "../../../node_modules/lodash/keys.js": /*!***********************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/keys.js ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__(/*! ./_overArg */ "../../../node_modules/lodash/_overArg.js"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys = overArg(Object.keys, Object); module.exports = nativeKeys; /***/ }), /***/ "../../../node_modules/lodash/keysIn.js": /*!*************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/keysIn.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This function is like * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * except that it includes inherited enumerable properties. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function nativeKeysIn(object) { var result = []; if (object != null) { for (var key in Object(object)) { result.push(key); } } return result; } module.exports = nativeKeysIn; /***/ }), /***/ "../../../node_modules/lodash/last.js": /*!***********************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/last.js ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Gets the last element of `array`. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to query. * @returns {*} Returns the last element of `array`. * @example * * _.last([1, 2, 3]); * // => 3 */ function last(array) { var length = array == null ? 0 : array.length; return length ? array[length - 1] : undefined; } module.exports = last; /***/ }), /***/ "../../../node_modules/lodash/mapValues.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/mapValues.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../../node_modules/lodash/_baseAssignValue.js"), baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../../node_modules/lodash/_baseForOwn.js"), baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/lodash/_baseIteratee.js"); /** * Creates an object with the same keys as `object` and values generated * by running each own enumerable string keyed property of `object` thru * `iteratee`. The iteratee is invoked with three arguments: * (value, key, object). * * @static * @memberOf _ * @since 2.4.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Object} Returns the new mapped object. * @see _.mapKeys * @example * * var users = { * 'fred': { 'user': 'fred', 'age': 40 }, * 'pebbles': { 'user': 'pebbles', 'age': 1 } * }; * * _.mapValues(users, function(o) { return o.age; }); * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) * * // The `_.property` iteratee shorthand. * _.mapValues(users, 'age'); * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) */ function mapValues(object, iteratee) { var result = {}; iteratee = baseIteratee(iteratee, 3); baseForOwn(object, function(value, key, object) { baseAssignValue(result, key, iteratee(value, key, object)); }); return result; } module.exports = mapValues; /***/ }), /***/ "../../../node_modules/lodash/negate.js": /*!*************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/negate.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** * Creates a function that negates the result of the predicate `func`. The * `func` predicate is invoked with the `this` binding and arguments of the * created function. * * @static * @memberOf _ * @since 3.0.0 * @category Function * @param {Function} predicate The predicate to negate. * @returns {Function} Returns the new negated function. * @example * * function isEven(n) { * return n % 2 == 0; * } * * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven)); * // => [1, 3, 5] */ function negate(predicate) { if (typeof predicate != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } return function() { var args = arguments; switch (args.length) { case 0: return !predicate.call(this); case 1: return !predicate.call(this, args[0]); case 2: return !predicate.call(this, args[0], args[1]); case 3: return !predicate.call(this, args[0], args[1], args[2]); } return !predicate.apply(this, args); }; } module.exports = negate; /***/ }), /***/ "../../../node_modules/lodash/now.js": /*!**********************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/now.js ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__(/*! ./_root */ "../../../node_modules/lodash/_root.js"); /** * Gets the timestamp of the number of milliseconds that have elapsed since * the Unix epoch (1 January 1970 00:00:00 UTC). * * @static * @memberOf _ * @since 2.4.0 * @category Date * @returns {number} Returns the timestamp. * @example * * _.defer(function(stamp) { * console.log(_.now() - stamp); * }, _.now()); * // => Logs the number of milliseconds it took for the deferred invocation. */ var now = function() { return root.Date.now(); }; module.exports = now; /***/ }), /***/ "../../../node_modules/lodash/omitBy.js": /*!*************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/omitBy.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/lodash/_baseIteratee.js"), negate = __webpack_require__(/*! ./negate */ "../../../node_modules/lodash/negate.js"), pickBy = __webpack_require__(/*! ./pickBy */ "../../../node_modules/lodash/pickBy.js"); /** * The opposite of `_.pickBy`; this method creates an object composed of * the own and inherited enumerable string keyed properties of `object` that * `predicate` doesn't return truthy for. The predicate is invoked with two * arguments: (value, key). * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The source object. * @param {Function} [predicate=_.identity] The function invoked per property. * @returns {Object} Returns the new object. * @example * * var object = { 'a': 1, 'b': '2', 'c': 3 }; * * _.omitBy(object, _.isNumber); * // => { 'b': '2' } */ function omitBy(object, predicate) { return pickBy(object, negate(baseIteratee(predicate))); } module.exports = omitBy; /***/ }), /***/ "../../../node_modules/lodash/orderBy.js": /*!**************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/orderBy.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ "../../../node_modules/lodash/_baseOrderBy.js"), isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"); /** * This method is like `_.sortBy` except that it allows specifying the sort * orders of the iteratees to sort by. If `orders` is unspecified, all values * are sorted in ascending order. Otherwise, specify an order of "desc" for * descending or "asc" for ascending sort order of corresponding values. * * @static * @memberOf _ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]] * The iteratees to sort by. * @param {string[]} [orders] The sort orders of `iteratees`. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. * @returns {Array} Returns the new sorted array. * @example * * var users = [ * { 'user': 'fred', 'age': 48 }, * { 'user': 'barney', 'age': 34 }, * { 'user': 'fred', 'age': 40 }, * { 'user': 'barney', 'age': 36 } * ]; * * // Sort by `user` in ascending order and by `age` in descending order. * _.orderBy(users, ['user', 'age'], ['asc', 'desc']); * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]] */ function orderBy(collection, iteratees, orders, guard) { if (collection == null) { return []; } if (!isArray(iteratees)) { iteratees = iteratees == null ? [] : [iteratees]; } orders = guard ? undefined : orders; if (!isArray(orders)) { orders = orders == null ? [] : [orders]; } return baseOrderBy(collection, iteratees, orders); } module.exports = orderBy; /***/ }), /***/ "../../../node_modules/lodash/pick.js": /*!***********************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/pick.js ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var basePick = __webpack_require__(/*! ./_basePick */ "../../../node_modules/lodash/_basePick.js"), flatRest = __webpack_require__(/*! ./_flatRest */ "../../../node_modules/lodash/_flatRest.js"); /** * Creates an object composed of the picked `object` properties. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The source object. * @param {...(string|string[])} [paths] The property paths to pick. * @returns {Object} Returns the new object. * @example * * var object = { 'a': 1, 'b': '2', 'c': 3 }; * * _.pick(object, ['a', 'c']); * // => { 'a': 1, 'c': 3 } */ var pick = flatRest(function(object, paths) { return object == null ? {} : basePick(object, paths); }); module.exports = pick; /***/ }), /***/ "../../../node_modules/lodash/pickBy.js": /*!*************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/pickBy.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/lodash/_arrayMap.js"), baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/lodash/_baseIteratee.js"), basePickBy = __webpack_require__(/*! ./_basePickBy */ "../../../node_modules/lodash/_basePickBy.js"), getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "../../../node_modules/lodash/_getAllKeysIn.js"); /** * Creates an object composed of the `object` properties `predicate` returns * truthy for. The predicate is invoked with two arguments: (value, key). * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The source object. * @param {Function} [predicate=_.identity] The function invoked per property. * @returns {Object} Returns the new object. * @example * * var object = { 'a': 1, 'b': '2', 'c': 3 }; * * _.pickBy(object, _.isNumber); * // => { 'a': 1, 'c': 3 } */ function pickBy(object, predicate) { if (object == null) { return {}; } var props = arrayMap(getAllKeysIn(object), function(prop) { return [prop]; }); predicate = baseIteratee(predicate); return basePickBy(object, props, function(value, path) { return predicate(value, path[0]); }); } module.exports = pickBy; /***/ }), /***/ "../../../node_modules/lodash/property.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/property.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../../node_modules/lodash/_baseProperty.js"), basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "../../../node_modules/lodash/_basePropertyDeep.js"), isKey = __webpack_require__(/*! ./_isKey */ "../../../node_modules/lodash/_isKey.js"), toKey = __webpack_require__(/*! ./_toKey */ "../../../node_modules/lodash/_toKey.js"); /** * Creates a function that returns the value at `path` of a given object. * * @static * @memberOf _ * @since 2.4.0 * @category Util * @param {Array|string} path The path of the property to get. * @returns {Function} Returns the new accessor function. * @example * * var objects = [ * { 'a': { 'b': 2 } }, * { 'a': { 'b': 1 } } * ]; * * _.map(objects, _.property('a.b')); * // => [2, 1] * * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b'); * // => [1, 2] */ function property(path) { return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); } module.exports = property; /***/ }), /***/ "../../../node_modules/lodash/range.js": /*!************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/range.js ***! \************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var createRange = __webpack_require__(/*! ./_createRange */ "../../../node_modules/lodash/_createRange.js"); /** * Creates an array of numbers (positive and/or negative) progressing from * `start` up to, but not including, `end`. A step of `-1` is used if a negative * `start` is specified without an `end` or `step`. If `end` is not specified, * it's set to `start` with `start` then set to `0`. * * **Note:** JavaScript follows the IEEE-754 standard for resolving * floating-point values which can produce unexpected results. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {number} [start=0] The start of the range. * @param {number} end The end of the range. * @param {number} [step=1] The value to increment or decrement by. * @returns {Array} Returns the range of numbers. * @see _.inRange, _.rangeRight * @example * * _.range(4); * // => [0, 1, 2, 3] * * _.range(-4); * // => [0, -1, -2, -3] * * _.range(1, 5); * // => [1, 2, 3, 4] * * _.range(0, 20, 5); * // => [0, 5, 10, 15] * * _.range(0, -4, -1); * // => [0, -1, -2, -3] * * _.range(1, 4, 0); * // => [1, 1, 1] * * _.range(0); * // => [] */ var range = createRange(); module.exports = range; /***/ }), /***/ "../../../node_modules/lodash/some.js": /*!***********************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/some.js ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * A specialized version of `_.some` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {boolean} Returns `true` if any element passes the predicate check, * else `false`. */ function arraySome(array, predicate) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (predicate(array[index], index, array)) { return true; } } return false; } module.exports = arraySome; /***/ }), /***/ "../../../node_modules/lodash/sortedUniq.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/sortedUniq.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseSortedUniq = __webpack_require__(/*! ./_baseSortedUniq */ "../../../node_modules/lodash/_baseSortedUniq.js"); /** * This method is like `_.uniq` except that it's designed and optimized * for sorted arrays. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. * @returns {Array} Returns the new duplicate free array. * @example * * _.sortedUniq([1, 1, 2]); * // => [1, 2] */ function sortedUniq(array) { return (array && array.length) ? baseSortedUniq(array) : []; } module.exports = sortedUniq; /***/ }), /***/ "../../../node_modules/lodash/sum.js": /*!**********************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/sum.js ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseSum = __webpack_require__(/*! ./_baseSum */ "../../../node_modules/lodash/_baseSum.js"), identity = __webpack_require__(/*! ./identity */ "../../../node_modules/lodash/identity.js"); /** * Computes the sum of the values in `array`. * * @static * @memberOf _ * @since 3.4.0 * @category Math * @param {Array} array The array to iterate over. * @returns {number} Returns the sum. * @example * * _.sum([4, 2, 8, 6]); * // => 20 */ function sum(array) { return (array && array.length) ? baseSum(array, identity) : 0; } module.exports = sum; /***/ }), /***/ "../../../node_modules/lodash/throttle.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/throttle.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var debounce = __webpack_require__(/*! ./debounce */ "../../../node_modules/lodash/debounce.js"), isObject = __webpack_require__(/*! ./isObject */ "../../../node_modules/lodash/isObject.js"); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** * Creates a throttled function that only invokes `func` at most once per * every `wait` milliseconds. The throttled function comes with a `cancel` * method to cancel delayed `func` invocations and a `flush` method to * immediately invoke them. Provide `options` to indicate whether `func` * should be invoked on the leading and/or trailing edge of the `wait` * timeout. The `func` is invoked with the last arguments provided to the * throttled function. Subsequent calls to the throttled function return the * result of the last `func` invocation. * * **Note:** If `leading` and `trailing` options are `true`, `func` is * invoked on the trailing edge of the timeout only if the throttled function * is invoked more than once during the `wait` timeout. * * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred * until to the next tick, similar to `setTimeout` with a timeout of `0`. * * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) * for details over the differences between `_.throttle` and `_.debounce`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to throttle. * @param {number} [wait=0] The number of milliseconds to throttle invocations to. * @param {Object} [options={}] The options object. * @param {boolean} [options.leading=true] * Specify invoking on the leading edge of the timeout. * @param {boolean} [options.trailing=true] * Specify invoking on the trailing edge of the timeout. * @returns {Function} Returns the new throttled function. * @example * * // Avoid excessively updating the position while scrolling. * jQuery(window).on('scroll', _.throttle(updatePosition, 100)); * * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false }); * jQuery(element).on('click', throttled); * * // Cancel the trailing throttled invocation. * jQuery(window).on('popstate', throttled.cancel); */ function throttle(func, wait, options) { var leading = true, trailing = true; if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } if (isObject(options)) { leading = 'leading' in options ? !!options.leading : leading; trailing = 'trailing' in options ? !!options.trailing : trailing; } return debounce(func, wait, { 'leading': leading, 'maxWait': wait, 'trailing': trailing }); } module.exports = throttle; /***/ }), /***/ "../../../node_modules/lodash/toFinite.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/toFinite.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var toNumber = __webpack_require__(/*! ./toNumber */ "../../../node_modules/lodash/toNumber.js"); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0, MAX_INTEGER = 1.7976931348623157e+308; /** * Converts `value` to a finite number. * * @static * @memberOf _ * @since 4.12.0 * @category Lang * @param {*} value The value to convert. * @returns {number} Returns the converted number. * @example * * _.toFinite(3.2); * // => 3.2 * * _.toFinite(Number.MIN_VALUE); * // => 5e-324 * * _.toFinite(Infinity); * // => 1.7976931348623157e+308 * * _.toFinite('3.2'); * // => 3.2 */ function toFinite(value) { if (!value) { return value === 0 ? value : 0; } value = toNumber(value); if (value === INFINITY || value === -INFINITY) { var sign = (value < 0 ? -1 : 1); return sign * MAX_INTEGER; } return value === value ? value : 0; } module.exports = toFinite; /***/ }), /***/ "../../../node_modules/lodash/toInteger.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/toInteger.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var toFinite = __webpack_require__(/*! ./toFinite */ "../../../node_modules/lodash/toFinite.js"); /** * Converts `value` to an integer. * * **Note:** This method is loosely based on * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {number} Returns the converted integer. * @example * * _.toInteger(3.2); * // => 3 * * _.toInteger(Number.MIN_VALUE); * // => 0 * * _.toInteger(Infinity); * // => 1.7976931348623157e+308 * * _.toInteger('3.2'); * // => 3 */ function toInteger(value) { var result = toFinite(value), remainder = result % 1; return result === result ? (remainder ? result - remainder : result) : 0; } module.exports = toInteger; /***/ }), /***/ "../../../node_modules/lodash/toNumber.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/toNumber.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseTrim = __webpack_require__(/*! ./_baseTrim */ "../../../node_modules/lodash/_baseTrim.js"), isObject = __webpack_require__(/*! ./isObject */ "../../../node_modules/lodash/isObject.js"), isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/lodash/isSymbol.js"); /** Used as references for various `Number` constants. */ var NAN = 0 / 0; /** Used to detect bad signed hexadecimal string values. */ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; /** Used to detect binary string values. */ var reIsBinary = /^0b[01]+$/i; /** Used to detect octal string values. */ var reIsOctal = /^0o[0-7]+$/i; /** Built-in method references without a dependency on `root`. */ var freeParseInt = parseInt; /** * Converts `value` to a number. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to process. * @returns {number} Returns the number. * @example * * _.toNumber(3.2); * // => 3.2 * * _.toNumber(Number.MIN_VALUE); * // => 5e-324 * * _.toNumber(Infinity); * // => Infinity * * _.toNumber('3.2'); * // => 3.2 */ function toNumber(value) { if (typeof value == 'number') { return value; } if (isSymbol(value)) { return NAN; } if (isObject(value)) { var other = typeof value.valueOf == 'function' ? value.valueOf() : value; value = isObject(other) ? (other + '') : other; } if (typeof value != 'string') { return value === 0 ? value : +value; } value = baseTrim(value); var isBinary = reIsBinary.test(value); return (isBinary || reIsOctal.test(value)) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : (reIsBadHex.test(value) ? NAN : +value); } module.exports = toNumber; /***/ }), /***/ "../../../node_modules/lodash/toPairs.js": /*!**************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/toPairs.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var createToPairs = __webpack_require__(/*! ./_createToPairs */ "../../../node_modules/lodash/_createToPairs.js"), keys = __webpack_require__(/*! ./keys */ "../../../node_modules/lodash/keys.js"); /** * Creates an array of own enumerable string keyed-value pairs for `object` * which can be consumed by `_.fromPairs`. If `object` is a map or set, its * entries are returned. * * @static * @memberOf _ * @since 4.0.0 * @alias entries * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the key-value pairs. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.toPairs(new Foo); * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed) */ var toPairs = createToPairs(keys); module.exports = toPairs; /***/ }), /***/ "../../../node_modules/lodash/toString.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/toString.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/lodash/_baseToString.js"); /** * Converts `value` to a string. An empty string is returned for `null` * and `undefined` values. The sign of `-0` is preserved. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {string} Returns the converted string. * @example * * _.toString(null); * // => '' * * _.toString(-0); * // => '-0' * * _.toString([1, 2, 3]); * // => '1,2,3' */ function toString(value) { return value == null ? '' : baseToString(value); } module.exports = toString; /***/ }), /***/ "../../../node_modules/lodash/uniq.js": /*!***********************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/uniq.js ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/lodash/_baseUniq.js"); /** * Creates a duplicate-free version of an array, using * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons, in which only the first occurrence of each element * is kept. The order of result values is determined by the order they occur * in the array. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to inspect. * @returns {Array} Returns the new duplicate free array. * @example * * _.uniq([2, 1, 2]); * // => [2, 1] */ function uniq(array) { return (array && array.length) ? baseUniq(array) : []; } module.exports = uniq; /***/ }), /***/ "../../../node_modules/lodash/uniqBy.js": /*!*************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/uniqBy.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../../node_modules/lodash/_baseIteratee.js"), baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../../node_modules/lodash/_baseUniq.js"); /** * This method is like `_.uniq` except that it accepts `iteratee` which is * invoked for each element in `array` to generate the criterion by which * uniqueness is computed. The order of result values is determined by the * order they occur in the array. The iteratee is invoked with one argument: * (value). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns the new duplicate free array. * @example * * _.uniqBy([2.1, 1.2, 2.3], Math.floor); * // => [2.1, 1.2] * * // The `_.property` iteratee shorthand. * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x'); * // => [{ 'x': 1 }, { 'x': 2 }] */ function uniqBy(array, iteratee) { return (array && array.length) ? baseUniq(array, baseIteratee(iteratee, 2)) : []; } module.exports = uniqBy; /***/ }), /***/ "../../../node_modules/lodash/uniqueId.js": /*!***************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/uniqueId.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var toString = __webpack_require__(/*! ./toString */ "../../../node_modules/lodash/toString.js"); /** Used to generate unique IDs. */ var idCounter = 0; /** * Generates a unique ID. If `prefix` is given, the ID is appended to it. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {string} [prefix=''] The value to prefix the ID with. * @returns {string} Returns the unique ID. * @example * * _.uniqueId('contact_'); * // => 'contact_104' * * _.uniqueId(); * // => '105' */ function uniqueId(prefix) { var id = ++idCounter; return toString(prefix) + id; } module.exports = uniqueId; /***/ }), /***/ "../../../node_modules/lodash/values.js": /*!*************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/values.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseValues = __webpack_require__(/*! ./_baseValues */ "../../../node_modules/lodash/_baseValues.js"), keys = __webpack_require__(/*! ./keys */ "../../../node_modules/lodash/keys.js"); /** * Creates an array of the own enumerable string keyed property values of `object`. * * **Note:** Non-object values are coerced to objects. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property values. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.values(new Foo); * // => [1, 2] (iteration order is not guaranteed) * * _.values('hi'); * // => ['h', 'i'] */ function values(object) { return object == null ? [] : baseValues(object, keys(object)); } module.exports = values; /***/ }), /***/ "../../../node_modules/lodash/without.js": /*!**************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/without.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseDifference = __webpack_require__(/*! ./_baseDifference */ "../../../node_modules/lodash/_baseDifference.js"), baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/lodash/_baseRest.js"), isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../../node_modules/lodash/isArrayLikeObject.js"); /** * Creates an array excluding all given values using * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * **Note:** Unlike `_.pull`, this method returns a new array. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to inspect. * @param {...*} [values] The values to exclude. * @returns {Array} Returns the new array of filtered values. * @see _.difference, _.xor * @example * * _.without([2, 1, 2, 3], 1, 2); * // => [3] */ var without = baseRest(function(array, values) { return isArrayLikeObject(array) ? baseDifference(array, values) : []; }); module.exports = without; /***/ }), /***/ "../../../node_modules/object-assign/index.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/object-assign/index.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* object-assign (c) Sindre Sorhus @license MIT */ /* eslint-disable no-unused-vars */ var getOwnPropertySymbols = Object.getOwnPropertySymbols; var hasOwnProperty = Object.prototype.hasOwnProperty; var propIsEnumerable = Object.prototype.propertyIsEnumerable; function toObject(val) { if (val === null || val === undefined) { throw new TypeError('Object.assign cannot be called with null or undefined'); } return Object(val); } function shouldUseNative() { try { if (!Object.assign) { return false; } // Detect buggy property enumeration order in older V8 versions. // https://bugs.chromium.org/p/v8/issues/detail?id=4118 var test1 = new String('abc'); // eslint-disable-line no-new-wrappers test1[5] = 'de'; if (Object.getOwnPropertyNames(test1)[0] === '5') { return false; } // https://bugs.chromium.org/p/v8/issues/detail?id=3056 var test2 = {}; for (var i = 0; i < 10; i++) { test2['_' + String.fromCharCode(i)] = i; } var order2 = Object.getOwnPropertyNames(test2).map(function (n) { return test2[n]; }); if (order2.join('') !== '0123456789') { return false; } // https://bugs.chromium.org/p/v8/issues/detail?id=3056 var test3 = {}; 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { test3[letter] = letter; }); if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') { return false; } return true; } catch (err) { // We don't expect any of the above to throw, but better to be safe. return false; } } module.exports = shouldUseNative() ? Object.assign : function (target, source) { var from; var to = toObject(target); var symbols; for (var s = 1; s < arguments.length; s++) { from = Object(arguments[s]); for (var key in from) { if (hasOwnProperty.call(from, key)) { to[key] = from[key]; } } if (getOwnPropertySymbols) { symbols = getOwnPropertySymbols(from); for (var i = 0; i < symbols.length; i++) { if (propIsEnumerable.call(from, symbols[i])) { to[symbols[i]] = from[symbols[i]]; } } } } return to; }; /***/ }), /***/ "../../../node_modules/prop-types/checkPropTypes.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/prop-types/checkPropTypes.js ***! \*************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var printWarning = function() {}; if (true) { var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js"); var loggedTypeFailures = {}; var has = Function.call.bind(Object.prototype.hasOwnProperty); printWarning = function(text) { var message = 'Warning: ' + text; if (typeof console !== 'undefined') { console.error(message); } try { // --- Welcome to debugging React --- // This error was thrown as a convenience so that you can use this stack // to find the callsite that caused this warning to fire. throw new Error(message); } catch (x) {} }; } /** * Assert that the values match with the type specs. * Error messages are memorized and will only be shown once. * * @param {object} typeSpecs Map of name to a ReactPropType * @param {object} values Runtime values that need to be type-checked * @param {string} location e.g. "prop", "context", "child context" * @param {string} componentName Name of the component for error messages. * @param {?Function} getStack Returns the component stack. * @private */ function checkPropTypes(typeSpecs, values, location, componentName, getStack) { if (true) { for (var typeSpecName in typeSpecs) { if (has(typeSpecs, typeSpecName)) { var error; // Prop type validation may throw. In case they do, we don't want to // fail the render phase where it didn't fail before. So we log it. // After these have been cleaned up, we'll let them throw. try { // This is intentionally an invariant that gets caught. It's the same // behavior as without this statement except with a better message. if (typeof typeSpecs[typeSpecName] !== 'function') { var err = Error( (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' ); err.name = 'Invariant Violation'; throw err; } error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); } catch (ex) { error = ex; } if (error && !(error instanceof Error)) { printWarning( (componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).' ); } if (error instanceof Error && !(error.message in loggedTypeFailures)) { // Only monitor this failure once because there tends to be a lot of the // same error. loggedTypeFailures[error.message] = true; var stack = getStack ? getStack() : ''; printWarning( 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') ); } } } } } /** * Resets warning cache when testing. * * @private */ checkPropTypes.resetWarningCache = function() { if (true) { loggedTypeFailures = {}; } } module.exports = checkPropTypes; /***/ }), /***/ "../../../node_modules/prop-types/factoryWithTypeCheckers.js": /*!**********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/prop-types/factoryWithTypeCheckers.js ***! \**********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js"); var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js"); var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js"); var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/prop-types/checkPropTypes.js"); var has = Function.call.bind(Object.prototype.hasOwnProperty); var printWarning = function() {}; if (true) { printWarning = function(text) { var message = 'Warning: ' + text; if (typeof console !== 'undefined') { console.error(message); } try { // --- Welcome to debugging React --- // This error was thrown as a convenience so that you can use this stack // to find the callsite that caused this warning to fire. throw new Error(message); } catch (x) {} }; } function emptyFunctionThatReturnsNull() { return null; } module.exports = function(isValidElement, throwOnDirectAccess) { /* global Symbol */ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. /** * Returns the iterator method function contained on the iterable object. * * Be sure to invoke the function with the iterable as context: * * var iteratorFn = getIteratorFn(myIterable); * if (iteratorFn) { * var iterator = iteratorFn.call(myIterable); * ... * } * * @param {?object} maybeIterable * @return {?function} */ function getIteratorFn(maybeIterable) { var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); if (typeof iteratorFn === 'function') { return iteratorFn; } } /** * Collection of methods that allow declaration and validation of props that are * supplied to React components. Example usage: * * var Props = require('ReactPropTypes'); * var MyArticle = React.createClass({ * propTypes: { * // An optional string prop named "description". * description: Props.string, * * // A required enum prop named "category". * category: Props.oneOf(['News','Photos']).isRequired, * * // A prop named "dialog" that requires an instance of Dialog. * dialog: Props.instanceOf(Dialog).isRequired * }, * render: function() { ... } * }); * * A more formal specification of how these methods are used: * * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) * decl := ReactPropTypes.{type}(.isRequired)? * * Each and every declaration produces a function with the same signature. This * allows the creation of custom validation functions. For example: * * var MyLink = React.createClass({ * propTypes: { * // An optional string or URI prop named "href". * href: function(props, propName, componentName) { * var propValue = props[propName]; * if (propValue != null && typeof propValue !== 'string' && * !(propValue instanceof URI)) { * return new Error( * 'Expected a string or an URI for ' + propName + ' in ' + * componentName * ); * } * } * }, * render: function() {...} * }); * * @internal */ var ANONYMOUS = '<>'; // Important! // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. var ReactPropTypes = { array: createPrimitiveTypeChecker('array'), bool: createPrimitiveTypeChecker('boolean'), func: createPrimitiveTypeChecker('function'), number: createPrimitiveTypeChecker('number'), object: createPrimitiveTypeChecker('object'), string: createPrimitiveTypeChecker('string'), symbol: createPrimitiveTypeChecker('symbol'), any: createAnyTypeChecker(), arrayOf: createArrayOfTypeChecker, element: createElementTypeChecker(), elementType: createElementTypeTypeChecker(), instanceOf: createInstanceTypeChecker, node: createNodeChecker(), objectOf: createObjectOfTypeChecker, oneOf: createEnumTypeChecker, oneOfType: createUnionTypeChecker, shape: createShapeTypeChecker, exact: createStrictShapeTypeChecker, }; /** * inlined Object.is polyfill to avoid requiring consumers ship their own * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is */ /*eslint-disable no-self-compare*/ function is(x, y) { // SameValue algorithm if (x === y) { // Steps 1-5, 7-10 // Steps 6.b-6.e: +0 != -0 return x !== 0 || 1 / x === 1 / y; } else { // Step 6.a: NaN == NaN return x !== x && y !== y; } } /*eslint-enable no-self-compare*/ /** * We use an Error-like object for backward compatibility as people may call * PropTypes directly and inspect their output. However, we don't use real * Errors anymore. We don't inspect their stack anyway, and creating them * is prohibitively expensive if they are created too often, such as what * happens in oneOfType() for any type before the one that matched. */ function PropTypeError(message) { this.message = message; this.stack = ''; } // Make `instanceof Error` still work for returned errors. PropTypeError.prototype = Error.prototype; function createChainableTypeChecker(validate) { if (true) { var manualPropTypeCallCache = {}; var manualPropTypeWarningCount = 0; } function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { componentName = componentName || ANONYMOUS; propFullName = propFullName || propName; if (secret !== ReactPropTypesSecret) { if (throwOnDirectAccess) { // New behavior only for users of `prop-types` package var err = 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' ); err.name = 'Invariant Violation'; throw err; } else if ( true && typeof console !== 'undefined') { // Old behavior for people using React.PropTypes var cacheKey = componentName + ':' + propName; if ( !manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors manualPropTypeWarningCount < 3 ) { printWarning( 'You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.' ); manualPropTypeCallCache[cacheKey] = true; manualPropTypeWarningCount++; } } } if (props[propName] == null) { if (isRequired) { if (props[propName] === null) { return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); } return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); } return null; } else { return validate(props, propName, componentName, location, propFullName); } } var chainedCheckType = checkType.bind(null, false); chainedCheckType.isRequired = checkType.bind(null, true); return chainedCheckType; } function createPrimitiveTypeChecker(expectedType) { function validate(props, propName, componentName, location, propFullName, secret) { var propValue = props[propName]; var propType = getPropType(propValue); if (propType !== expectedType) { // `propValue` being instance of, say, date/regexp, pass the 'object' // check, but we can offer a more precise error message here rather than // 'of type `object`'. var preciseType = getPreciseType(propValue); return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.')); } return null; } return createChainableTypeChecker(validate); } function createAnyTypeChecker() { return createChainableTypeChecker(emptyFunctionThatReturnsNull); } function createArrayOfTypeChecker(typeChecker) { function validate(props, propName, componentName, location, propFullName) { if (typeof typeChecker !== 'function') { return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); } var propValue = props[propName]; if (!Array.isArray(propValue)) { var propType = getPropType(propValue); return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); } for (var i = 0; i < propValue.length; i++) { var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); if (error instanceof Error) { return error; } } return null; } return createChainableTypeChecker(validate); } function createElementTypeChecker() { function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; if (!isValidElement(propValue)) { var propType = getPropType(propValue); return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); } return null; } return createChainableTypeChecker(validate); } function createElementTypeTypeChecker() { function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; if (!ReactIs.isValidElementType(propValue)) { var propType = getPropType(propValue); return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.')); } return null; } return createChainableTypeChecker(validate); } function createInstanceTypeChecker(expectedClass) { function validate(props, propName, componentName, location, propFullName) { if (!(props[propName] instanceof expectedClass)) { var expectedClassName = expectedClass.name || ANONYMOUS; var actualClassName = getClassName(props[propName]); return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); } return null; } return createChainableTypeChecker(validate); } function createEnumTypeChecker(expectedValues) { if (!Array.isArray(expectedValues)) { if (true) { if (arguments.length > 1) { printWarning( 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).' ); } else { printWarning('Invalid argument supplied to oneOf, expected an array.'); } } return emptyFunctionThatReturnsNull; } function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; for (var i = 0; i < expectedValues.length; i++) { if (is(propValue, expectedValues[i])) { return null; } } var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { var type = getPreciseType(value); if (type === 'symbol') { return String(value); } return value; }); return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); } return createChainableTypeChecker(validate); } function createObjectOfTypeChecker(typeChecker) { function validate(props, propName, componentName, location, propFullName) { if (typeof typeChecker !== 'function') { return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); } var propValue = props[propName]; var propType = getPropType(propValue); if (propType !== 'object') { return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); } for (var key in propValue) { if (has(propValue, key)) { var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); if (error instanceof Error) { return error; } } } return null; } return createChainableTypeChecker(validate); } function createUnionTypeChecker(arrayOfTypeCheckers) { if (!Array.isArray(arrayOfTypeCheckers)) { true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined; return emptyFunctionThatReturnsNull; } for (var i = 0; i < arrayOfTypeCheckers.length; i++) { var checker = arrayOfTypeCheckers[i]; if (typeof checker !== 'function') { printWarning( 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.' ); return emptyFunctionThatReturnsNull; } } function validate(props, propName, componentName, location, propFullName) { for (var i = 0; i < arrayOfTypeCheckers.length; i++) { var checker = arrayOfTypeCheckers[i]; if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) { return null; } } return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.')); } return createChainableTypeChecker(validate); } function createNodeChecker() { function validate(props, propName, componentName, location, propFullName) { if (!isNode(props[propName])) { return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); } return null; } return createChainableTypeChecker(validate); } function createShapeTypeChecker(shapeTypes) { function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; var propType = getPropType(propValue); if (propType !== 'object') { return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); } for (var key in shapeTypes) { var checker = shapeTypes[key]; if (!checker) { continue; } var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); if (error) { return error; } } return null; } return createChainableTypeChecker(validate); } function createStrictShapeTypeChecker(shapeTypes) { function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; var propType = getPropType(propValue); if (propType !== 'object') { return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); } // We need to check all keys in case some are required but missing from // props. var allKeys = assign({}, props[propName], shapeTypes); for (var key in allKeys) { var checker = shapeTypes[key]; if (!checker) { return new PropTypeError( 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') ); } var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); if (error) { return error; } } return null; } return createChainableTypeChecker(validate); } function isNode(propValue) { switch (typeof propValue) { case 'number': case 'string': case 'undefined': return true; case 'boolean': return !propValue; case 'object': if (Array.isArray(propValue)) { return propValue.every(isNode); } if (propValue === null || isValidElement(propValue)) { return true; } var iteratorFn = getIteratorFn(propValue); if (iteratorFn) { var iterator = iteratorFn.call(propValue); var step; if (iteratorFn !== propValue.entries) { while (!(step = iterator.next()).done) { if (!isNode(step.value)) { return false; } } } else { // Iterator will provide entry [k,v] tuples rather than values. while (!(step = iterator.next()).done) { var entry = step.value; if (entry) { if (!isNode(entry[1])) { return false; } } } } } else { return false; } return true; default: return false; } } function isSymbol(propType, propValue) { // Native Symbol. if (propType === 'symbol') { return true; } // falsy value can't be a Symbol if (!propValue) { return false; } // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' if (propValue['@@toStringTag'] === 'Symbol') { return true; } // Fallback for non-spec compliant Symbols which are polyfilled. if (typeof Symbol === 'function' && propValue instanceof Symbol) { return true; } return false; } // Equivalent of `typeof` but with special handling for array and regexp. function getPropType(propValue) { var propType = typeof propValue; if (Array.isArray(propValue)) { return 'array'; } if (propValue instanceof RegExp) { // Old webkits (at least until Android 4.0) return 'function' rather than // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ // passes PropTypes.object. return 'object'; } if (isSymbol(propType, propValue)) { return 'symbol'; } return propType; } // This handles more types than `getPropType`. Only used for error messages. // See `createPrimitiveTypeChecker`. function getPreciseType(propValue) { if (typeof propValue === 'undefined' || propValue === null) { return '' + propValue; } var propType = getPropType(propValue); if (propType === 'object') { if (propValue instanceof Date) { return 'date'; } else if (propValue instanceof RegExp) { return 'regexp'; } } return propType; } // Returns a string that is postfixed to a warning about an invalid type. // For example, "undefined" or "of type array" function getPostfixForTypeWarning(value) { var type = getPreciseType(value); switch (type) { case 'array': case 'object': return 'an ' + type; case 'boolean': case 'date': case 'regexp': return 'a ' + type; default: return type; } } // Returns class name of the object, if any. function getClassName(propValue) { if (!propValue.constructor || !propValue.constructor.name) { return ANONYMOUS; } return propValue.constructor.name; } ReactPropTypes.checkPropTypes = checkPropTypes; ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; ReactPropTypes.PropTypes = ReactPropTypes; return ReactPropTypes; }; /***/ }), /***/ "../../../node_modules/prop-types/index.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/prop-types/index.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ if (true) { var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js"); // By explicitly using `prop-types` you are opting into new development behavior. // http://fb.me/prop-types-in-prod var throwOnDirectAccess = true; module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess); } else {} /***/ }), /***/ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js": /*!***********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/prop-types/lib/ReactPropTypesSecret.js ***! \***********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; module.exports = ReactPropTypesSecret; /***/ }), /***/ "../../../node_modules/react-fast-compare/index.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/react-fast-compare/index.js ***! \************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var isArray = Array.isArray; var keyList = Object.keys; var hasProp = Object.prototype.hasOwnProperty; var hasElementType = typeof Element !== 'undefined'; function equal(a, b) { // fast-deep-equal index.js 2.0.1 if (a === b) return true; if (a && b && typeof a == 'object' && typeof b == 'object') { var arrA = isArray(a) , arrB = isArray(b) , i , length , key; if (arrA && arrB) { length = a.length; if (length != b.length) return false; for (i = length; i-- !== 0;) if (!equal(a[i], b[i])) return false; return true; } if (arrA != arrB) return false; var dateA = a instanceof Date , dateB = b instanceof Date; if (dateA != dateB) return false; if (dateA && dateB) return a.getTime() == b.getTime(); var regexpA = a instanceof RegExp , regexpB = b instanceof RegExp; if (regexpA != regexpB) return false; if (regexpA && regexpB) return a.toString() == b.toString(); var keys = keyList(a); length = keys.length; if (length !== keyList(b).length) return false; for (i = length; i-- !== 0;) if (!hasProp.call(b, keys[i])) return false; // end fast-deep-equal // start react-fast-compare // custom handling for DOM elements if (hasElementType && a instanceof Element && b instanceof Element) return a === b; // custom handling for React for (i = length; i-- !== 0;) { key = keys[i]; if (key === '_owner' && a.$$typeof) { // React-specific: avoid traversing React elements' _owner. // _owner contains circular references // and is not needed when comparing the actual elements (and not their owners) // .$$typeof and ._store on just reasonable markers of a react element continue; } else { // all other properties should be traversed as usual if (!equal(a[key], b[key])) return false; } } // end react-fast-compare // fast-deep-equal index.js 2.0.1 return true; } return a !== a && b !== b; } // end fast-deep-equal module.exports = function exportedEqual(a, b) { try { return equal(a, b); } catch (error) { if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) { // warn on circular references, don't crash // browsers give this different errors name and messages: // chrome/safari: "RangeError", "Maximum call stack size exceeded" // firefox: "InternalError", too much recursion" // edge: "Error", "Out of stack space" console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message); return false; } // some other error. we should definitely know about these throw error; } }; /***/ }), /***/ "../../../node_modules/react-is/cjs/react-is.development.js": /*!*********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/react-is/cjs/react-is.development.js ***! \*********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ if (true) { (function() { 'use strict'; // The Symbol used to tag the ReactElement-like types. If there is no native Symbol // nor polyfill, then a plain number is used for performance. var hasSymbol = typeof Symbol === 'function' && Symbol.for; var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary // (unstable) APIs that have been removed. Can we remove the symbols? var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf; var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; function isValidElementType(type) { return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); } function typeOf(object) { if (typeof object === 'object' && object !== null) { var $$typeof = object.$$typeof; switch ($$typeof) { case REACT_ELEMENT_TYPE: var type = object.type; switch (type) { case REACT_ASYNC_MODE_TYPE: case REACT_CONCURRENT_MODE_TYPE: case REACT_FRAGMENT_TYPE: case REACT_PROFILER_TYPE: case REACT_STRICT_MODE_TYPE: case REACT_SUSPENSE_TYPE: return type; default: var $$typeofType = type && type.$$typeof; switch ($$typeofType) { case REACT_CONTEXT_TYPE: case REACT_FORWARD_REF_TYPE: case REACT_LAZY_TYPE: case REACT_MEMO_TYPE: case REACT_PROVIDER_TYPE: return $$typeofType; default: return $$typeof; } } case REACT_PORTAL_TYPE: return $$typeof; } } return undefined; } // AsyncMode is deprecated along with isAsyncMode var AsyncMode = REACT_ASYNC_MODE_TYPE; var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; var ContextConsumer = REACT_CONTEXT_TYPE; var ContextProvider = REACT_PROVIDER_TYPE; var Element = REACT_ELEMENT_TYPE; var ForwardRef = REACT_FORWARD_REF_TYPE; var Fragment = REACT_FRAGMENT_TYPE; var Lazy = REACT_LAZY_TYPE; var Memo = REACT_MEMO_TYPE; var Portal = REACT_PORTAL_TYPE; var Profiler = REACT_PROFILER_TYPE; var StrictMode = REACT_STRICT_MODE_TYPE; var Suspense = REACT_SUSPENSE_TYPE; var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated function isAsyncMode(object) { { if (!hasWarnedAboutDeprecatedIsAsyncMode) { hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.'); } } return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; } function isConcurrentMode(object) { return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; } function isContextConsumer(object) { return typeOf(object) === REACT_CONTEXT_TYPE; } function isContextProvider(object) { return typeOf(object) === REACT_PROVIDER_TYPE; } function isElement(object) { return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; } function isForwardRef(object) { return typeOf(object) === REACT_FORWARD_REF_TYPE; } function isFragment(object) { return typeOf(object) === REACT_FRAGMENT_TYPE; } function isLazy(object) { return typeOf(object) === REACT_LAZY_TYPE; } function isMemo(object) { return typeOf(object) === REACT_MEMO_TYPE; } function isPortal(object) { return typeOf(object) === REACT_PORTAL_TYPE; } function isProfiler(object) { return typeOf(object) === REACT_PROFILER_TYPE; } function isStrictMode(object) { return typeOf(object) === REACT_STRICT_MODE_TYPE; } function isSuspense(object) { return typeOf(object) === REACT_SUSPENSE_TYPE; } exports.AsyncMode = AsyncMode; exports.ConcurrentMode = ConcurrentMode; exports.ContextConsumer = ContextConsumer; exports.ContextProvider = ContextProvider; exports.Element = Element; exports.ForwardRef = ForwardRef; exports.Fragment = Fragment; exports.Lazy = Lazy; exports.Memo = Memo; exports.Portal = Portal; exports.Profiler = Profiler; exports.StrictMode = StrictMode; exports.Suspense = Suspense; exports.isAsyncMode = isAsyncMode; exports.isConcurrentMode = isConcurrentMode; exports.isContextConsumer = isContextConsumer; exports.isContextProvider = isContextProvider; exports.isElement = isElement; exports.isForwardRef = isForwardRef; exports.isFragment = isFragment; exports.isLazy = isLazy; exports.isMemo = isMemo; exports.isPortal = isPortal; exports.isProfiler = isProfiler; exports.isStrictMode = isStrictMode; exports.isSuspense = isSuspense; exports.isValidElementType = isValidElementType; exports.typeOf = typeOf; })(); } /***/ }), /***/ "../../../node_modules/react-is/index.js": /*!**************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/node_modules/react-is/index.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; if (false) {} else { module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js"); } /***/ }), /***/ "../../../node_modules/webpack/buildin/global.js": /*!***********************************!*\ !*** (webpack)/buildin/global.js ***! \***********************************/ /*! no static exports found */ /***/ (function(module, exports) { var g; // This works in non-strict mode g = (function() { return this; })(); try { // This works if eval is allowed (see CSP) g = g || new Function("return this")(); } catch (e) { // This works if the window reference is available if (typeof window === "object") g = window; } // g can still be undefined, but nothing to do about it... // We return undefined, instead of nothing here, so it's // easier to handle this case. if(!global) { ...} module.exports = g; /***/ }), /***/ "../../../node_modules/webpack/buildin/module.js": /*!***********************************!*\ !*** (webpack)/buildin/module.js ***! \***********************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = function(module) { if (!module.webpackPolyfill) { module.deprecate = function() {}; module.paths = []; // module.parent = undefined by default if (!module.children) module.children = []; Object.defineProperty(module, "loaded", { enumerable: true, get: function() { return module.l; } }); Object.defineProperty(module, "id", { enumerable: true, get: function() { return module.i; } }); module.webpackPolyfill = 1; } return module; }; /***/ }), /***/ "../../victory-area/es/area.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-area/es/area.js ***! \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-shape */ "../../../node_modules/d3-shape/src/index.js"); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/ var defined = function (d) { var y = d._y1 !== undefined ? d._y1 : d._y; return y !== null && y !== undefined && d._y0 !== null; }; var getXAccessor = function (scale) { return function (d) { return scale.x(d._x1 !== undefined ? d._x1 : d._x); }; }; var getYAccessor = function (scale) { return function (d) { return scale.y(d._y1 !== undefined ? d._y1 : d._y); }; }; var getY0Accessor = function (scale) { return function (d) { return scale.y(d._y0); }; }; var getAngleAccessor = function (scale) { return function (d) { var x = scale.x(d._x1 !== undefined ? d._x1 : d._x); return -1 * x + Math.PI / 2; }; }; var toNewName = function (interpolation) { // d3 shape changed the naming scheme for interpolators from "basis" -> "curveBasis" etc. var capitalize = function (s) { return s && s[0].toUpperCase() + s.slice(1); }; return "curve".concat(capitalize(interpolation)); }; var getLineFunction = function (props) { var polar = props.polar, scale = props.scale, horizontal = props.horizontal; var interpolationFunction = typeof props.interpolation === "function" && props.interpolation; var interpolationName = typeof props.interpolation === "string" && toNewName(props.interpolation); return polar ? d3_shape__WEBPACK_IMPORTED_MODULE_3__["lineRadial"]().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_3__["".concat(interpolationName, "Closed")]).angle(getAngleAccessor(scale)).radius(getYAccessor(scale)) : d3_shape__WEBPACK_IMPORTED_MODULE_3__["line"]().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_3__[interpolationName]).x(horizontal ? getYAccessor(scale) : getXAccessor(scale)).y(horizontal ? getXAccessor(scale) : getYAccessor(scale)); }; var getCartesianArea = function (props, interpolation) { var horizontal = props.horizontal, scale = props.scale; var interpolationFunction = typeof interpolation === "function" && interpolation; var interpolationName = typeof interpolation === "string" && interpolation; return horizontal ? d3_shape__WEBPACK_IMPORTED_MODULE_3__["area"]().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_3__[interpolationName]).x0(getY0Accessor(scale)).x1(getYAccessor(scale)).y(getXAccessor(scale)) : d3_shape__WEBPACK_IMPORTED_MODULE_3__["area"]().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_3__[interpolationName]).x(getXAccessor(scale)).y1(getYAccessor(scale)).y0(getY0Accessor(scale)); }; var getAreaFunction = function (props) { var polar = props.polar, scale = props.scale; var interpolationFunction = typeof props.interpolation === "function" && props.interpolation; var interpolationName = typeof props.interpolation === "string" && toNewName(props.interpolation); var interpolation = interpolationFunction || interpolationName; return polar ? d3_shape__WEBPACK_IMPORTED_MODULE_3__["radialArea"]().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_3__["".concat(interpolationName, "Closed")]).angle(getAngleAccessor(scale)).outerRadius(getYAccessor(scale)).innerRadius(getY0Accessor(scale)) : getCartesianArea(props, interpolation); }; var evaluateProps = function (props) { /** * Potential evaluated props are: * `ariaLabel` * `desc` * `id` * `style` * `tabIndex` */ var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].evaluateProp(props.ariaLabel, props); var desc = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].evaluateProp(props.desc, props); var id = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].evaluateProp(props.id, props); var style = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ fill: "black" }, props.style), props); var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].evaluateProp(props.tabIndex, props); return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { ariaLabel: ariaLabel, desc: desc, id: id, style: style, tabIndex: tabIndex }); }; var Area = function (props) { props = evaluateProps(props); var _props = props, ariaLabel = _props.ariaLabel, role = _props.role, shapeRendering = _props.shapeRendering, className = _props.className, polar = _props.polar, origin = _props.origin, data = _props.data, pathComponent = _props.pathComponent, events = _props.events, groupComponent = _props.groupComponent, clipPath = _props.clipPath, id = _props.id, style = _props.style, desc = _props.desc, tabIndex = _props.tabIndex; var defaultTransform = polar && origin ? "translate(".concat(origin.x, ", ").concat(origin.y, ")") : undefined; var transform = props.transform || defaultTransform; var renderLine = style.stroke && style.stroke !== "none" && style.stroke !== "transparent"; var areaFunction = getAreaFunction(props); var lineFunction = renderLine && getLineFunction(props); var areaStroke = style.stroke ? "none" : style.fill; var sharedProps = _objectSpread({ "aria-label": ariaLabel, className: className, role: role, shapeRendering: shapeRendering, transform: transform }, events, { clipPath: clipPath, tabIndex: tabIndex }); var area = react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(pathComponent, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ key: "".concat(id, "-area"), style: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, style, { stroke: areaStroke }), d: areaFunction(data), desc: desc, tabIndex: tabIndex }, sharedProps)); var line = renderLine ? react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(pathComponent, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ key: "".concat(id, "-area-stroke"), style: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, style, { fill: "none" }), d: lineFunction(data) }, sharedProps)) : null; return renderLine ? react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(groupComponent, {}, [area, line]) : area; }; Area.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__["CommonProps"].primitiveProps, { groupComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, interpolation: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func]), pathComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element }); Area.defaultProps = { groupComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("g", null), pathComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["Path"], null), role: "presentation", shapeRendering: "auto" }; /* harmony default export */ __webpack_exports__["default"] = (Area); /***/ }), /***/ "../../victory-area/es/helper-methods.js": /*!**************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-area/es/helper-methods.js ***! \**************************************************************************************/ /*! exports provided: getBaseProps, getDataWithBaseline */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBaseProps", function() { return getBaseProps; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDataWithBaseline", function() { return getDataWithBaseline; }); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); var getDataWithBaseline = function (props, scale) { var data = victory_core__WEBPACK_IMPORTED_MODULE_2__["Data"].getData(props); if (data.length < 2) { data = []; } var getDefaultMin = function (axis) { var defaultZero = victory_core__WEBPACK_IMPORTED_MODULE_2__["Scale"].getType(scale[axis]) === "log" ? 1 / Number.MAX_SAFE_INTEGER : 0; var domain = scale[axis].domain(); var minY = victory_core__WEBPACK_IMPORTED_MODULE_2__["Collection"].getMinValue(domain); var maxY = victory_core__WEBPACK_IMPORTED_MODULE_2__["Collection"].getMaxValue(domain); var defaultMin = defaultZero; if (minY < 0 && maxY <= 0) { defaultMin = maxY; } else if (minY >= 0 && maxY > 0) { defaultMin = minY; } return victory_core__WEBPACK_IMPORTED_MODULE_2__["Collection"].containsDates(domain) ? new Date(defaultMin) : defaultMin; }; return data.map(function (datum) { var _y1 = datum._y1 !== undefined ? datum._y1 : datum._y; var _y0 = datum._y0 !== undefined ? datum._y0 : getDefaultMin("y"); var _x1 = datum._x1 !== undefined ? datum._x1 : datum._x; var _x0 = datum._x0 !== undefined ? datum._x0 : getDefaultMin("x"); return lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, datum, { _y0: _y0, _y1: _y1, _x0: _x0, _x1: _x1 }); }); }; var getCalculatedValues = function (props) { var polar = props.polar; var defaultStyles = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getDefaultStyles(props, "area"); var style = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getStyles(props.style, defaultStyles); var range = { x: victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getRange(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getRange(props, "y") }; var domain = { x: victory_core__WEBPACK_IMPORTED_MODULE_2__["Domain"].getDomainWithZero(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_2__["Domain"].getDomainWithZero(props, "y") }; var scale = { x: victory_core__WEBPACK_IMPORTED_MODULE_2__["Scale"].getBaseScale(props, "x").domain(domain.x).range(props.horizontal ? range.y : range.x), y: victory_core__WEBPACK_IMPORTED_MODULE_2__["Scale"].getBaseScale(props, "y").domain(domain.y).range(props.horizontal ? range.x : range.y) }; var origin = polar ? props.origin || victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getPolarOrigin(props) : undefined; var data = getDataWithBaseline(props, scale); return { style: style, data: data, scale: scale, domain: domain, origin: origin }; }; var getBaseProps = function (props, fallbackProps) { var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].modifyProps(props, fallbackProps, "area"); props = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, modifiedProps, getCalculatedValues(modifiedProps)); var _props = props, data = _props.data, domain = _props.domain, events = _props.events, groupComponent = _props.groupComponent, height = _props.height, horizontal = _props.horizontal, interpolation = _props.interpolation, origin = _props.origin, padding = _props.padding, polar = _props.polar, scale = _props.scale, sharedEvents = _props.sharedEvents, standalone = _props.standalone, style = _props.style, theme = _props.theme, width = _props.width, labels = _props.labels, name = _props.name; var initialChildProps = { parent: { style: style.parent, width: width, height: height, scale: scale, data: data, domain: domain, standalone: standalone, theme: theme, polar: polar, origin: origin, padding: padding, name: name, horizontal: horizontal }, all: { data: { horizontal: horizontal, polar: polar, origin: origin, scale: scale, data: data, interpolation: interpolation, groupComponent: groupComponent, style: style.data } } }; return data.reduce(function (childProps, datum, index) { var text = victory_core__WEBPACK_IMPORTED_MODULE_2__["LabelHelpers"].getText(props, datum, index); if (text !== undefined && text !== null || labels && (events || sharedEvents)) { var eventKey = !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum.eventKey) ? datum.eventKey : index; childProps[eventKey] = { labels: victory_core__WEBPACK_IMPORTED_MODULE_2__["LabelHelpers"].getProps(props, index) }; } return childProps; }, initialChildProps); }; /***/ }), /***/ "../../victory-area/es/index.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-area/es/index.js ***! \*****************************************************************************/ /*! exports provided: VictoryArea, Area */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_area__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-area */ "../../victory-area/es/victory-area.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryArea", function() { return _victory_area__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./area */ "../../victory-area/es/area.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Area", function() { return _area__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /***/ }), /***/ "../../victory-area/es/victory-area.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-area/es/victory-area.js ***! \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helper-methods */ "../../victory-area/es/helper-methods.js"); /* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./area */ "../../victory-area/es/area.js"); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var fallbackProps = { width: 450, height: 300, padding: 50, interpolation: "linear" }; var options = { components: [{ name: "parent", index: "parent" }, { name: "data", index: "all" }, { name: "labels" }] }; var VictoryArea = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryArea, _React$Component); function VictoryArea() { _classCallCheck(this, VictoryArea); return _possibleConstructorReturn(this, (VictoryArea.__proto__ || Object.getPrototypeOf(VictoryArea)).apply(this, arguments)); } _createClass(VictoryArea, [{ key: "shouldAnimate", // Overridden in native versions value: function shouldAnimate() { return !!this.props.animate; } }, { key: "render", value: function render() { var animationWhitelist = VictoryArea.animationWhitelist, role = VictoryArea.role; var props = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].modifyProps(this.props, fallbackProps, role); if (this.shouldAnimate()) { return this.animateComponent(props, animationWhitelist); } var children = this.renderContinuousData(props); return props.standalone ? this.renderContainer(props.containerComponent, children) : children; } }]); return VictoryArea; }(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); Object.defineProperty(VictoryArea, "animationWhitelist", { configurable: true, enumerable: true, writable: true, value: ["data", "domain", "height", "padding", "style", "width"] }); Object.defineProperty(VictoryArea, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__["CommonProps"].baseProps, victory_core__WEBPACK_IMPORTED_MODULE_4__["CommonProps"].dataProps, { interpolation: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(["basis", "cardinal", "catmullRom", "linear", "monotoneX", "monotoneY", "natural", "step", "stepAfter", "stepBefore"]), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func]), label: victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].deprecated(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, "Use `labels` instead for individual data labels") }) }); Object.defineProperty(VictoryArea, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { containerComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryContainer"], null), dataComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_area__WEBPACK_IMPORTED_MODULE_3__["default"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryClipContainer"], null), labelComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], { renderInPortal: true }), samples: 50, sortKey: "x", sortOrder: "ascending", standalone: true, theme: victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryTheme"].grayscale } }); Object.defineProperty(VictoryArea, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryArea" }); Object.defineProperty(VictoryArea, "role", { configurable: true, enumerable: true, writable: true, value: "area" }); Object.defineProperty(VictoryArea, "continuous", { configurable: true, enumerable: true, writable: true, value: true }); Object.defineProperty(VictoryArea, "defaultTransitions", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_4__["DefaultTransitions"].continuousTransitions() }); Object.defineProperty(VictoryArea, "defaultPolarTransitions", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_4__["DefaultTransitions"].continuousPolarTransitions() }); Object.defineProperty(VictoryArea, "getDomain", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_4__["Domain"].getDomainWithZero }); Object.defineProperty(VictoryArea, "getData", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_4__["Data"].getData }); Object.defineProperty(VictoryArea, "getBaseProps", { configurable: true, enumerable: true, writable: true, value: function (props) { return Object(_helper_methods__WEBPACK_IMPORTED_MODULE_2__["getBaseProps"])(props, fallbackProps); } }); Object.defineProperty(VictoryArea, "expectedComponents", { configurable: true, enumerable: true, writable: true, value: ["dataComponent", "labelComponent", "groupComponent", "containerComponent"] }); /* harmony default export */ __webpack_exports__["default"] = (Object(victory_core__WEBPACK_IMPORTED_MODULE_4__["addEvents"])(VictoryArea, options)); /***/ }), /***/ "../../victory-axis/es/helper-methods.js": /*!**************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-axis/es/helper-methods.js ***! \**************************************************************************************/ /*! exports provided: getBaseProps, getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBaseProps", function() { return getBaseProps; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } 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; } var orientationSign = { top: -1, left: -1, right: 1, bottom: 1 }; var exists = function (val) { return val !== null && val !== undefined; }; var getCurrentAxis = function (props, axis) { var orientation = props.orientation, horizontal = props.horizontal; if (orientation) { var dimensions = { top: "x", bottom: "x", left: "y", right: "y" }; return dimensions[orientation]; } var otherAxis = axis === "x" ? "y" : "x"; return horizontal ? otherAxis : axis; }; var getScale = function (props) { var axis = victory_core__WEBPACK_IMPORTED_MODULE_2__["Axis"].getAxis(props); var currentAxis = getCurrentAxis(props, axis); var scale = victory_core__WEBPACK_IMPORTED_MODULE_2__["Scale"].getBaseScale(props, axis); var propsDomain = props.domain && props.domain[axis]; var domain = propsDomain || victory_core__WEBPACK_IMPORTED_MODULE_2__["Axis"].getDomain(props) || scale.domain(); scale.range(victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getRange(props, currentAxis)); scale.domain(domain); return scale; }; var getStyleObject = function (props) { var theme = props.theme, dependentAxis = props.dependentAxis; var generalAxisStyle = theme && theme.axis && theme.axis.style; var axisType = dependentAxis ? "dependentAxis" : "independentAxis"; var specificAxisStyle = theme && theme[axisType] && theme[axisType].style; var mergeStyles = function () { var styleNamespaces = ["axis", "axisLabel", "grid", "parent", "tickLabels", "ticks"]; return styleNamespaces.reduce(function (memo, curr) { memo[curr] = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, specificAxisStyle[curr], generalAxisStyle[curr]); return memo; }, {}); }; return generalAxisStyle && specificAxisStyle ? mergeStyles() : specificAxisStyle || generalAxisStyle; }; var getStyles = function (props, styleObject) { var style = props.style || {}; styleObject = styleObject || {}; var parentStyleProps = { height: "100%", width: "100%" }; return { parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(style.parent, styleObject.parent, parentStyleProps), axis: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.axis, styleObject.axis), axisLabel: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.axisLabel, styleObject.axisLabel), grid: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.grid, styleObject.grid), ticks: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.ticks, styleObject.ticks), tickLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.tickLabels, styleObject.tickLabels) }; }; var getTickProps = function (layout, style, datum) { var position = layout.position, transform = layout.transform; return { x1: transform.x, y1: transform.y, x2: transform.x + position.x2, y2: transform.y + position.y2, style: style, datum: datum }; }; // eslint-disable-next-line max-params var getTickLabelProps = function (layout, style, anchors, datum, text) { var position = layout.position, transform = layout.transform; return { style: style, x: transform.x + position.x, y: transform.y + position.y, verticalAnchor: anchors.verticalAnchor, textAnchor: anchors.textAnchor, angle: style.angle, text: text, datum: datum }; }; var getGridProps = function (layout, style, datum) { var edge = layout.edge, transform = layout.transform; return { x1: transform.x, y1: transform.y, x2: edge.x + transform.x, y2: edge.y + transform.y, style: style, datum: datum }; }; var getAxisProps = function (modifiedProps, calculatedValues, globalTransform) { var style = calculatedValues.style, padding = calculatedValues.padding, isVertical = calculatedValues.isVertical; var width = modifiedProps.width, height = modifiedProps.height; return { style: style.axis, x1: isVertical ? globalTransform.x : padding.left + globalTransform.x, x2: isVertical ? globalTransform.x : width - padding.right + globalTransform.x, y1: isVertical ? padding.top + globalTransform.y : globalTransform.y, y2: isVertical ? height - padding.bottom + globalTransform.y : globalTransform.y }; }; var getEvaluatedStyles = function (style, props) { return { tickStyle: victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].evaluateStyle(style.ticks, props), labelStyle: victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].evaluateStyle(style.tickLabels, props), gridStyle: victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].evaluateStyle(style.grid, props) }; }; var getAxisLabelProps = function (props, calculatedValues, globalTransform) { var style = calculatedValues.style, orientation = calculatedValues.orientation, padding = calculatedValues.padding, labelPadding = calculatedValues.labelPadding, isVertical = calculatedValues.isVertical; var sign = orientationSign[orientation]; var hPadding = padding.left + padding.right; var vPadding = padding.top + padding.bottom; var verticalAnchor = sign < 0 ? "end" : "start"; var labelStyle = style.axisLabel; var angle = isVertical ? -90 : 0; // eslint-disable-line no-magic-numbers var x = isVertical ? globalTransform.x + sign * labelPadding : (props.width - hPadding) / 2 + padding.left + globalTransform.x; var y = isVertical ? (props.height - vPadding) / 2 + padding.top + globalTransform.y : sign * labelPadding + globalTransform.y; return { x: x, y: y, verticalAnchor: labelStyle.verticalAnchor || verticalAnchor, textAnchor: labelStyle.textAnchor || "middle", angle: labelStyle.angle === undefined ? angle : labelStyle.angle, style: labelStyle, text: props.label }; }; var getAnchors = function (orientation, isVertical) { var anchorOrientation = { top: "end", left: "end", right: "start", bottom: "start" }; var anchor = anchorOrientation[orientation]; return { textAnchor: isVertical ? anchor : "middle", verticalAnchor: isVertical ? "middle" : anchor }; }; var getLabelPadding = function (props, style) { var labelStyle = style.axisLabel || {}; if (labelStyle.padding !== undefined && labelStyle.padding !== null) { return labelStyle.padding; } var isVertical = victory_core__WEBPACK_IMPORTED_MODULE_2__["Axis"].isVertical(props); // TODO: magic numbers /*eslint-disable no-magic-numbers*/ var fontSize = labelStyle.fontSize || 14; return props.label ? fontSize * (isVertical ? 2.3 : 1.6) : 0; /*eslint-enable no-magic-numbers*/ }; var getDefaultOrientations = function (axis, originSign, horizontal) { var sign = originSign || "positive"; var orientations = { positive: { x: "bottom", y: "left" }, negative: { x: "top", y: "right" } }; var horizontalOrientations = { positive: { x: "left", y: "bottom" }, negative: { x: "right", y: "top" } }; return horizontal ? horizontalOrientations[sign][axis] : orientations[sign][axis]; }; var getStandaloneOffset = function (props, calculatedValues) { var style = calculatedValues.style, scale = calculatedValues.scale, orientation = calculatedValues.orientation, padding = calculatedValues.padding, axis = calculatedValues.axis, ticks = calculatedValues.ticks, stringTicks = calculatedValues.stringTicks, isVertical = calculatedValues.isVertical, labelPadding = calculatedValues.labelPadding; var polar = props.polar, horizontal = props.horizontal; var sharedProps = { scale: _defineProperty({}, axis, scale), polar: polar, horizontal: horizontal, ticks: ticks, stringTicks: stringTicks }; var xPadding = orientation === "right" ? padding.right : padding.left; var yPadding = orientation === "top" ? padding.top : padding.bottom; var offsetX = props.offsetX !== null && props.offsetX !== undefined ? props.offsetX : xPadding; var offsetY = props.offsetY !== null && props.offsetY !== undefined ? props.offsetY : yPadding; var fontSize = style.axisLabel.fontSize || 14; // eslint-disable-line no-magic-numbers var tickSizes = ticks.map(function (data, index) { var tick = stringTicks ? props.tickValues[data - 1] : data; var tickStyle = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].evaluateStyle(style.ticks, lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, sharedProps, { tick: tick, index: index })); return tickStyle.size || 0; }); var totalPadding = fontSize + 2 * Math.max.apply(Math, _toConsumableArray(tickSizes)) + labelPadding; var minimumPadding = 1.2 * fontSize; // eslint-disable-line no-magic-numbers var x = isVertical ? totalPadding : minimumPadding; var y = isVertical ? minimumPadding : totalPadding; return { x: offsetX !== null && offsetX !== undefined ? offsetX : x, y: offsetY !== null && offsetY !== undefined ? offsetY : y }; }; // eslint-disable-next-line complexity var getOffset = function (props, calculatedValues) { var scale = calculatedValues.scale, origin = calculatedValues.origin, orientation = calculatedValues.orientation, orientations = calculatedValues.orientations, domain = calculatedValues.domain, padding = calculatedValues.padding; var top = padding.top, bottom = padding.bottom, left = padding.left, right = padding.right; var calculatedOrientation = { x: orientation === "bottom" || orientation === "top" ? orientation : orientations.x, y: orientation === "left" || orientation === "right" ? orientation : orientations.y }; // make the axes line up, and cross when appropriate var orientationOffset = { x: calculatedOrientation.y === "left" ? left : right, y: calculatedOrientation.x === "bottom" ? bottom : top }; var originOffset = { x: calculatedOrientation.y === "left" ? 0 : props.width, y: calculatedOrientation.x === "bottom" ? props.height : 0 }; var originPosition = { x: origin.x === domain.x[0] || origin.x === domain.x[1] ? 0 : scale.x(origin.x), y: origin.y === domain.y[0] || origin.y === domain.y[1] ? 0 : scale.y(origin.y) }; var x = originPosition.x ? Math.abs(originOffset.x - originPosition.x) : orientationOffset.x; var y = originPosition.y ? Math.abs(originOffset.y - originPosition.y) : orientationOffset.y; var offsetX = exists(props.offsetX) ? props.offsetX : x; var offsetY = exists(props.offsetY) ? props.offsetY : y; return { x: offsetX, y: offsetY }; }; // eslint-disable-next-line complexity var getHorizontalOffset = function (props, calculatedValues) { var scale = calculatedValues.scale, origin = calculatedValues.origin, orientation = calculatedValues.orientation, orientations = calculatedValues.orientations, domain = calculatedValues.domain, padding = calculatedValues.padding; var top = padding.top, bottom = padding.bottom, left = padding.left, right = padding.right; var calculatedOrientation = { y: orientation === "bottom" || orientation === "top" ? orientation : orientations.x, x: orientation === "left" || orientation === "right" ? orientation : orientations.y }; // make the axes line up, and cross when appropriate var orientationOffset = { x: calculatedOrientation.y === "bottom" ? bottom : top, y: calculatedOrientation.x === "left" ? left : right }; var originOffset = { y: calculatedOrientation.x === "left" ? 0 : props.width, x: calculatedOrientation.y === "bottom" ? props.height : 0 }; var originPosition = { x: origin.x === domain.x[0] || origin.x === domain.x[1] ? 0 : scale.x(origin.x), y: origin.y === domain.y[0] || origin.y === domain.y[1] ? 0 : scale.y(origin.y) }; var y = originPosition.x ? Math.abs(originOffset.x - originPosition.x) : orientationOffset.x; var x = originPosition.y ? Math.abs(originOffset.y - originPosition.y) : orientationOffset.y; var offsetX = exists(props.offsetX) ? props.offsetX : x; var offsetY = exists(props.offsetY) ? props.offsetY : y; return { x: offsetX, y: offsetY }; }; var getTransform = function (props, calculatedValues, offset) { var orientation = calculatedValues.orientation, axis = calculatedValues.axis; var axisValue = victory_core__WEBPACK_IMPORTED_MODULE_2__["Axis"].getAxisValue(props, axis); return { top: { x: 0, y: axisValue !== undefined ? axisValue : offset.y }, bottom: { x: 0, y: axisValue !== undefined ? axisValue : props.height - offset.y }, left: { x: axisValue !== undefined ? axisValue : offset.x, y: 0 }, right: { x: axisValue !== undefined ? axisValue : props.width - offset.x, y: 0 } }[orientation]; }; var getTickPosition = function (style, orientation, isVertical) { var tickStyle = style.tickStyle, labelStyle = style.labelStyle; var size = tickStyle.size || 0; var tickPadding = tickStyle.padding || 0; var labelPadding = labelStyle.padding || 0; var tickSpacing = size + tickPadding + labelPadding; var sign = orientationSign[orientation]; return { x: isVertical ? sign * tickSpacing : 0, x2: isVertical ? sign * size : 0, y: isVertical ? 0 : sign * tickSpacing, y2: isVertical ? 0 : sign * size }; }; var getTickTransform = function (tick, globalTransform, isVertical) { return { x: isVertical ? globalTransform.x : tick + globalTransform.x, y: isVertical ? tick + globalTransform.y : globalTransform.y }; }; var getGridEdge = function (props, calculatedValues) { var orientation = calculatedValues.orientation, padding = calculatedValues.padding, isVertical = calculatedValues.isVertical; var sign = -orientationSign[orientation]; var x = isVertical ? sign * (props.width - (padding.left + padding.right)) : 0; var y = isVertical ? 0 : sign * (props.height - (padding.top + padding.bottom)); return { x: x, y: y }; }; var getGridOffset = function (calculatedValues, offset) { var padding = calculatedValues.padding, orientation = calculatedValues.orientation, crossAxis = calculatedValues.crossAxis; var xPadding = orientation === "right" ? padding.right : padding.left; var yPadding = orientation === "top" ? padding.top : padding.bottom; return { x: crossAxis ? offset.x - xPadding : 0, y: crossAxis ? offset.y - yPadding : 0 }; }; var getLayoutProps = function (modifiedProps, calculatedValues) { var offset; if (calculatedValues.domain.x && calculatedValues.domain.y) { offset = modifiedProps.horizontal ? getHorizontalOffset(modifiedProps, calculatedValues) : getOffset(modifiedProps, calculatedValues); } else { offset = getStandaloneOffset(modifiedProps, calculatedValues); } return { globalTransform: getTransform(modifiedProps, calculatedValues, offset), gridOffset: getGridOffset(calculatedValues, offset), gridEdge: getGridEdge(modifiedProps, calculatedValues) }; }; var getOrientation = function (props) { if (props.orientation) { return props.orientation; } var defaultOrientations = { dependent: props.horizontal ? "bottom" : "left", independent: props.horizontal ? "left" : "bottom" }; return props.dependentAxis ? defaultOrientations.dependent : defaultOrientations.independent; }; // eslint-disable-next-line complexity var getCalculatedValues = function (props) { var defaultStyles = getStyleObject(props); var style = getStyles(props, defaultStyles); var padding = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getPadding(props); var labelPadding = getLabelPadding(props, style); var stringTicks = victory_core__WEBPACK_IMPORTED_MODULE_2__["Axis"].stringTicks(props) ? props.tickValues : undefined; var axis = victory_core__WEBPACK_IMPORTED_MODULE_2__["Axis"].getAxis(props); var axisDomain = victory_core__WEBPACK_IMPORTED_MODULE_2__["Axis"].getDomain(props); var axisScale = getScale(props); var xAxisDomain = axis === "x" ? axisDomain : undefined; var yAxisDomain = axis === "y" ? axisDomain : undefined; var xAxisScale = axis === "x" ? axisScale : undefined; var yAxisScale = axis === "y" ? axisScale : undefined; var crossAxis = props.crossAxis === false || props.standalone === true ? false : true; var ticks = victory_core__WEBPACK_IMPORTED_MODULE_2__["Axis"].getTicks(props, axisScale, crossAxis); var tickFormat = victory_core__WEBPACK_IMPORTED_MODULE_2__["Axis"].getTickFormat(props, axisScale); var range = { x: victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getRange(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getRange(props, "y") }; // use full domain if passed in from parent, // otherwise use the just the one axis available var domain = { x: props.domain && props.domain.x ? props.domain.x : xAxisDomain, y: props.domain && props.domain.y ? props.domain.y : yAxisDomain }; // use full scale if passed in from parent, // otherwise use the just the one axis available var scale = { x: props.domain && props.domain.x ? victory_core__WEBPACK_IMPORTED_MODULE_2__["Scale"].getBaseScale(props, "x").domain(props.domain.x).range(props.horizontal ? range.y : range.x) : xAxisScale, y: props.domain && props.domain.y ? victory_core__WEBPACK_IMPORTED_MODULE_2__["Scale"].getBaseScale(props, "y").domain(props.domain.y).range(props.horizontal ? range.x : range.y) : yAxisScale }; var origin = domain.x && domain.y ? victory_core__WEBPACK_IMPORTED_MODULE_2__["Axis"].getOrigin(domain) : undefined; var originSign = origin ? { x: victory_core__WEBPACK_IMPORTED_MODULE_2__["Axis"].getOriginSign(origin.x, domain.x), y: victory_core__WEBPACK_IMPORTED_MODULE_2__["Axis"].getOriginSign(origin.y, domain.y) } : undefined; var orientations = originSign ? { x: getDefaultOrientations("x", originSign.y, props.horizontal), y: getDefaultOrientations("y", originSign.x, props.horizontal) } : undefined; var orientation = orientations ? props.orientation || orientations[axis] : getOrientation(props); var isVertical = victory_core__WEBPACK_IMPORTED_MODULE_2__["Axis"].isVertical(Object.assign({}, props, { orientation: orientation })); var anchors = getAnchors(orientation, isVertical); return { anchors: anchors, axis: axis, crossAxis: crossAxis, domain: domain, isVertical: isVertical, labelPadding: labelPadding, orientation: orientation, orientations: orientations, origin: origin, padding: padding, scale: scale, stringTicks: stringTicks, style: style, tickFormat: tickFormat, ticks: ticks }; }; var getBaseProps = function (props, fallbackProps) { props = victory_core__WEBPACK_IMPORTED_MODULE_2__["Axis"].modifyProps(props, fallbackProps); var calculatedValues = getCalculatedValues(props); var axis = calculatedValues.axis, style = calculatedValues.style, orientation = calculatedValues.orientation, isVertical = calculatedValues.isVertical, scale = calculatedValues.scale, ticks = calculatedValues.ticks, tickFormat = calculatedValues.tickFormat, anchors = calculatedValues.anchors, domain = calculatedValues.domain, stringTicks = calculatedValues.stringTicks, name = calculatedValues.name; var otherAxis = axis === "x" ? "y" : "x"; var _props = props, width = _props.width, height = _props.height, standalone = _props.standalone, theme = _props.theme, polar = _props.polar, padding = _props.padding, horizontal = _props.horizontal; var _getLayoutProps = getLayoutProps(props, calculatedValues), globalTransform = _getLayoutProps.globalTransform, gridOffset = _getLayoutProps.gridOffset, gridEdge = _getLayoutProps.gridEdge; var sharedProps = { scale: _defineProperty({}, axis, scale[axis]), polar: polar, horizontal: horizontal, ticks: ticks, stringTicks: stringTicks }; var axisProps = getAxisProps(props, calculatedValues, globalTransform); var axisLabelProps = getAxisLabelProps(props, calculatedValues, globalTransform); var initialChildProps = { parent: lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({ style: style.parent, ticks: ticks, standalone: standalone, theme: theme, width: width, height: height, padding: padding, domain: domain, name: name }, sharedProps) }; var gridProps = { dimension: otherAxis, range: _defineProperty({}, otherAxis, victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getRange(props, otherAxis)), scale: props.scale && props.scale[otherAxis] ? _defineProperty({}, otherAxis, props.scale[otherAxis]) : undefined }; return ticks.reduce(function (childProps, tickValue, index) { var tick = stringTicks ? stringTicks[index] : tickValue; var text = tickFormat(tickValue, index, ticks); var styles = getEvaluatedStyles(style, lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, sharedProps, { tick: tick, tickValue: tickValue, index: index, text: text })); var tickLayout = { position: getTickPosition(styles, orientation, isVertical), transform: getTickTransform(scale[axis](tickValue), globalTransform, isVertical) }; var gridLayout = { edge: gridEdge, transform: { x: isVertical ? -gridOffset.x + globalTransform.x : scale[axis](tickValue) + globalTransform.x, y: isVertical ? scale[axis](tickValue) + globalTransform.y : gridOffset.y + globalTransform.y } }; childProps[index] = { axis: lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({ dimension: axis }, sharedProps, axisProps), axisLabel: lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, sharedProps, axisLabelProps), ticks: lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, sharedProps, getTickProps(tickLayout, styles.tickStyle, tickValue)), tickLabels: lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, sharedProps, getTickLabelProps(tickLayout, styles.labelStyle, anchors, tickValue, text)), grid: lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, sharedProps, gridProps, getGridProps(gridLayout, styles.gridStyle, tickValue)) }; return childProps; }, initialChildProps); }; /***/ }), /***/ "../../victory-axis/es/index.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-axis/es/index.js ***! \*****************************************************************************/ /*! exports provided: VictoryAxis */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_axis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-axis */ "../../victory-axis/es/victory-axis.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryAxis", function() { return _victory_axis__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /***/ }), /***/ "../../victory-axis/es/victory-axis.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-axis/es/victory-axis.js ***! \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js"); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helper-methods */ "../../victory-axis/es/helper-methods.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var fallbackProps = { width: 450, height: 300, padding: 50 }; var options = { components: [{ name: "axis", index: 0 }, { name: "axisLabel", index: 0 }, { name: "grid" }, { name: "parent", index: "parent" }, { name: "ticks" }, { name: "tickLabels" }] }; var VictoryAxis = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryAxis, _React$Component); function VictoryAxis() { _classCallCheck(this, VictoryAxis); return _possibleConstructorReturn(this, (VictoryAxis.__proto__ || Object.getPrototypeOf(VictoryAxis)).apply(this, arguments)); } _createClass(VictoryAxis, [{ key: "renderLine", value: function renderLine(props) { var axisComponent = props.axisComponent; var axisProps = this.getComponentProps(axisComponent, "axis", 0); return react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(axisComponent, axisProps); } }, { key: "renderLabel", value: function renderLabel(props) { var axisLabelComponent = props.axisLabelComponent, label = props.label; if (!label) { return null; } var axisLabelProps = this.getComponentProps(axisLabelComponent, "axisLabel", 0); return react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(axisLabelComponent, axisLabelProps); } }, { key: "renderGridAndTicks", value: function renderGridAndTicks(props) { var _this = this; var tickComponent = props.tickComponent, tickLabelComponent = props.tickLabelComponent, gridComponent = props.gridComponent, name = props.name; var shouldRender = function (componentProps) { var _componentProps$style = componentProps.style, style = _componentProps$style === void 0 ? {} : _componentProps$style, _componentProps$event = componentProps.events, events = _componentProps$event === void 0 ? {} : _componentProps$event; var visible = style.stroke !== "transparent" && style.stroke !== "none" && style.strokeWidth !== 0; return visible || !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events); }; return this.dataKeys.map(function (key, index) { var tickProps = _this.getComponentProps(tickComponent, "ticks", index); var BaseTickComponent = react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(tickComponent, tickProps); var TickComponent = shouldRender(BaseTickComponent.props) ? BaseTickComponent : undefined; var gridProps = _this.getComponentProps(gridComponent, "grid", index); var BaseGridComponent = react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(gridComponent, gridProps); var GridComponent = shouldRender(BaseGridComponent.props) ? BaseGridComponent : undefined; var tickLabelProps = _this.getComponentProps(tickLabelComponent, "tickLabels", index); var TickLabel = react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(tickLabelComponent, tickLabelProps); var children = [GridComponent, TickComponent, TickLabel].filter(Boolean); return react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(props.groupComponent, { key: "".concat(name, "-tick-group-").concat(key) }, children); }); } }, { key: "fixLabelOverlap", value: function fixLabelOverlap(gridAndTicks, props) { var isVertical = victory_core__WEBPACK_IMPORTED_MODULE_4__["Axis"].isVertical(props); var size = isVertical ? props.height : props.width; var isVictoryLabel = function (child) { return child.type && child.type.role === "label"; }; var labels = gridAndTicks.map(function (gridAndTick) { return gridAndTick.props.children; }).reduce(function (accumulator, childArr) { return accumulator.concat(childArr); }, []).filter(isVictoryLabel).map(function (child) { return child.props; }); var paddingToObject = function (padding) { return typeof padding === "object" ? lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, { top: 0, right: 0, bottom: 0, left: 0 }, padding) : { top: padding, right: padding, bottom: padding, left: padding }; }; var labelsSumSize = labels.reduce(function (sum, label) { var padding = paddingToObject(label.style.padding); var labelSize = victory_core__WEBPACK_IMPORTED_MODULE_4__["TextSize"].approximateTextSize(label.text, { angle: label.angle, fontSize: label.style.fontSize, letterSpacing: label.style.letterSpacing, fontFamily: label.style.fontFamily }); return sum + (isVertical ? labelSize.height + padding.top + padding.bottom : labelSize.width + padding.right + padding.left); }, 0); var availiableLabelCount = Math.floor(size * gridAndTicks.length / labelsSumSize); var divider = Math.ceil(gridAndTicks.length / availiableLabelCount) || 1; var getLabelCoord = function (gridAndTick) { return gridAndTick.props.children.filter(isVictoryLabel).reduce(function (prev, child) { return (isVertical ? child.props.y : child.props.x) || 0; }, 0); }; var sorted = gridAndTicks.sort(function (a, b) { return isVertical ? getLabelCoord(b) - getLabelCoord(a) //ordinary axis has top-bottom orientation : getLabelCoord(a) - getLabelCoord(b); } //ordinary axis has left-right orientation ); return sorted.filter(function (gridAndTick, index) { return index % divider === 0; }); } // Overridden in native versions }, { key: "shouldAnimate", value: function shouldAnimate() { return !!this.props.animate; } }, { key: "render", value: function render() { var animationWhitelist = VictoryAxis.animationWhitelist; var props = victory_core__WEBPACK_IMPORTED_MODULE_4__["Axis"].modifyProps(this.props, fallbackProps); if (this.shouldAnimate()) { return this.animateComponent(props, animationWhitelist); } var gridAndTicks = this.renderGridAndTicks(props); var modifiedGridAndTicks = props.fixLabelOverlap ? this.fixLabelOverlap(gridAndTicks, props) : gridAndTicks; var children = [this.renderLine(props), this.renderLabel(props)].concat(_toConsumableArray(modifiedGridAndTicks)); return props.standalone ? this.renderContainer(props.containerComponent, children) : react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(props.groupComponent, {}, children); } }]); return VictoryAxis; }(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component); Object.defineProperty(VictoryAxis, "animationWhitelist", { configurable: true, enumerable: true, writable: true, value: ["style", "domain", "range", "tickCount", "tickValues", "offsetX", "offsetY", "padding", "width", "height"] }); Object.defineProperty(VictoryAxis, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryAxis" }); Object.defineProperty(VictoryAxis, "role", { configurable: true, enumerable: true, writable: true, value: "axis" }); Object.defineProperty(VictoryAxis, "defaultTransitions", { configurable: true, enumerable: true, writable: true, value: { onExit: { duration: 500 }, onEnter: { duration: 500 } } }); Object.defineProperty(VictoryAxis, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__["CommonProps"].baseProps, { axisComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, axisLabelComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, axisValue: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object]), categories: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string), y: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string) })]), crossAxis: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, dependentAxis: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, events: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({ target: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["axis", "axisLabel", "grid", "ticks", "tickLabels"]), eventKey: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string]), eventHandlers: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object })), fixLabelOverlap: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, gridComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, groupComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, invertAxis: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, label: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.any, offsetX: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, offsetY: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, orientation: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["top", "bottom", "left", "right"]), origin: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, y: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number }), stringMap: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, style: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({ parent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, axis: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, axisLabel: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, grid: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, ticks: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, tickLabels: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object }), tickComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, tickCount: victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].greaterThanZero]), tickFormat: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].homogeneousArray]), tickLabelComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, tickValues: victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].homogeneousArray }) }); Object.defineProperty(VictoryAxis, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { axisComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["LineSegment"], null), axisLabelComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], null), tickLabelComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], null), tickComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["LineSegment"], null), gridComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["LineSegment"], null), standalone: true, theme: victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryTheme"].grayscale, containerComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryContainer"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("g", { role: "presentation" }), fixLabelOverlap: false } }); Object.defineProperty(VictoryAxis, "getDomain", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_4__["Axis"].getDomain }); Object.defineProperty(VictoryAxis, "getAxis", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_4__["Axis"].getAxis }); Object.defineProperty(VictoryAxis, "getStyles", { configurable: true, enumerable: true, writable: true, value: function (props) { return Object(_helper_methods__WEBPACK_IMPORTED_MODULE_5__["getStyles"])(props, fallbackProps.style); } }); Object.defineProperty(VictoryAxis, "getBaseProps", { configurable: true, enumerable: true, writable: true, value: function (props) { return Object(_helper_methods__WEBPACK_IMPORTED_MODULE_5__["getBaseProps"])(props, fallbackProps); } }); Object.defineProperty(VictoryAxis, "expectedComponents", { configurable: true, enumerable: true, writable: true, value: ["axisComponent", "axisLabelComponent", "groupComponent", "containerComponent", "tickComponent", "tickLabelComponent", "gridComponent"] }); /* harmony default export */ __webpack_exports__["default"] = (Object(victory_core__WEBPACK_IMPORTED_MODULE_4__["addEvents"])(VictoryAxis, options)); /***/ }), /***/ "../../victory-bar/es/bar.js": /*!**************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-bar/es/bar.js ***! \**************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js"); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var _path_helper_methods__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./path-helper-methods */ "../../victory-bar/es/path-helper-methods.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } var getBarPath = function (props, width, cornerRadius) { if (props.getPath) { return Object(_path_helper_methods__WEBPACK_IMPORTED_MODULE_6__["getCustomBarPath"])(props, width); } return props.horizontal ? Object(_path_helper_methods__WEBPACK_IMPORTED_MODULE_6__["getHorizontalBarPath"])(props, width, cornerRadius) : Object(_path_helper_methods__WEBPACK_IMPORTED_MODULE_6__["getVerticalBarPath"])(props, width, cornerRadius); }; var getPolarBarPath = function (props, cornerRadius) { // TODO Radial bars return Object(_path_helper_methods__WEBPACK_IMPORTED_MODULE_6__["getVerticalPolarBarPath"])(props, cornerRadius); }; var getBarWidth = function (barWidth, props) { var scale = props.scale, data = props.data, defaultBarWidth = props.defaultBarWidth, style = props.style; if (barWidth) { return victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(barWidth, props); } else if (style.width) { return style.width; } var range = scale.x.range(); var extent = Math.abs(range[1] - range[0]); var bars = data.length + 2; var barRatio = props.barRatio || 0.5; var defaultWidth = barRatio * (data.length < 2 ? defaultBarWidth : extent / bars); return Math.max(1, defaultWidth); }; var getCornerRadiusFromObject = function (cornerRadius, props) { var realCornerRadius = { topLeft: 0, topRight: 0, bottomLeft: 0, bottomRight: 0 }; var updateCornerRadius = function (corner, fallback) { if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(cornerRadius[corner])) { realCornerRadius[corner] = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(cornerRadius[corner], props); } else if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(cornerRadius[fallback])) { realCornerRadius[corner] = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(cornerRadius[fallback], props); } }; updateCornerRadius("topLeft", "top"); updateCornerRadius("topRight", "top"); updateCornerRadius("bottomLeft", "bottom"); updateCornerRadius("bottomRight", "bottom"); return realCornerRadius; }; var getCornerRadius = function (cornerRadius, props) { var realCornerRadius = { topLeft: 0, topRight: 0, bottomLeft: 0, bottomRight: 0 }; if (!cornerRadius) { return realCornerRadius; } if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(cornerRadius)) { return getCornerRadiusFromObject(cornerRadius, props); } else { realCornerRadius.topLeft = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(cornerRadius, props); realCornerRadius.topRight = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(cornerRadius, props); return realCornerRadius; } }; var getStyle = function () { var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var props = arguments.length > 1 ? arguments[1] : undefined; var stroke = style.fill || "black"; var baseStyle = { fill: "black", stroke: stroke }; return victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()(baseStyle, style), props); }; var evaluateProps = function (props) { /** * Potential evaluated props of following must be evaluated in this order: * 1) `style` * 2) `barWidth` * 3) `cornerRadius` * * Everything else does not have to be evaluated in a particular order: * `ariaLabel` * `desc` * `id` * `tabIndex` */ var style = getStyle(props.style, props); var barWidth = getBarWidth(props.barWidth, lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { style: style })); var cornerRadius = getCornerRadius(props.cornerRadius, lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { style: style, barWidth: barWidth })); var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.ariaLabel, props); var desc = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.desc, props); var id = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.id, props); var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.tabIndex, props); return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { ariaLabel: ariaLabel, style: style, barWidth: barWidth, cornerRadius: cornerRadius, desc: desc, id: id, tabIndex: tabIndex }); }; var Bar = function (props) { props = evaluateProps(props); var _props = props, polar = _props.polar, origin = _props.origin, style = _props.style, barWidth = _props.barWidth, cornerRadius = _props.cornerRadius; var path = polar ? getPolarBarPath(props, cornerRadius) : getBarPath(props, barWidth, cornerRadius); var defaultTransform = polar && origin ? "translate(".concat(origin.x, ", ").concat(origin.y, ")") : undefined; return react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(props.pathComponent, _objectSpread({}, props.events, { "aria-label": props.ariaLabel, style: style, d: path, className: props.className, clipPath: props.clipPath, desc: props.desc, index: props.index, role: props.role, shapeRendering: props.shapeRendering, transform: props.transform || defaultTransform, tabIndex: props.tabIndex })); }; Bar.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__["CommonProps"].primitiveProps, { alignment: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(["start", "middle", "end"]), barRatio: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, barWidth: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.shape({ top: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), topLeft: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), topRight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), bottom: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), bottomLeft: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), bottomRight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]) })]), datum: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object, getPath: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func, horizontal: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, pathComponent: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.element, width: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, x: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, y: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, y0: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number }); Bar.defaultProps = { defaultBarWidth: 8, pathComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__["Path"], null), role: "presentation", shapeRendering: "auto" }; /* harmony default export */ __webpack_exports__["default"] = (Bar); /***/ }), /***/ "../../victory-bar/es/geometry-helper-methods.js": /*!**********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-bar/es/geometry-helper-methods.js ***! \**********************************************************************************************/ /*! exports provided: circle, point */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circle", function() { return circle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; }); /** * A point in the 2d plane * @param {number} x - x coordinate * @param {number} y - y coordinate * @returns {object} - point object */ var point = function (x, y) { return { x: x, y: y, distance: function (p1) { return Math.sqrt(Math.pow(this.x - p1.x, 2) + Math.pow(this.y - p1.y, 2)); }, // vector addition in 2d plane add: function (p1) { return point(this.x + p1.x, this.y + p1.y); }, // vector subtraction in 2d // returns p0 - p1 subtract: function (p1) { return point(this.x - p1.x, this.y - p1.y); }, // multiply a 2d point by a scalar scalarMult: function (n) { return point(this.x * n, this.y * n); }, scalarDivide: function (n) { if (n === 0) { throw new Error("Division by 0 error"); } return point(this.x / n, this.y / n); }, equals: function (p1) { return this.x === p1.x && this.y === p1.y; } }; }; /** * A circle in the 2d plane * @param {point} center - center of circle * @param {number} radius - radius of circle * @returns {object} - point object */ var circle = function (center, radius) { return { center: center, radius: radius, hasIntersection: function (circle1) { var P0 = this.center; var P1 = circle1.center; var r0 = this.radius; var r1 = circle1.radius; var d = P0.distance(P1); if (d > r0 + r1) { return false; // separate circles } if (d < Math.abs(r0 - r1)) { return false; // one circle contains another } return true; }, equals: function (circle1) { var P0 = this.center; var P1 = circle1.center; var r0 = this.radius; var r1 = circle1.radius; return r0 === r1 && P0.equals(P1); }, // Source: http://paulbourke.net/geometry/circlesphere/ // "Intersection of two circles" by Paul Bourke // Left-most point is returned as 0th element of array // Right-most point is returned as 1st elemennt of array intersection: function (circle1) { // eslint-disable-line max-statements var P0 = this.center; var P1 = circle1.center; var r0 = this.radius; var r1 = circle1.radius; var d = P0.distance(P1); if (!this.hasIntersection(circle1) || this.equals(circle1)) { return []; } var a = (Math.pow(r0, 2) - Math.pow(r1, 2) + Math.pow(d, 2)) / (2 * d); var h = Math.sqrt(Math.pow(r0, 2) - Math.pow(a, 2)); var P2 = P0.add(P1.subtract(P0).scalarMult(a).scalarDivide(d)); var x0 = P0.x, y0 = P0.y; var x1 = P1.x, y1 = P1.y; var x2 = P2.x, y2 = P2.y; var P3s = [point(x2 - h * (y1 - y0) / d, y2 + h * (x1 - x0) / d), point(x2 + h * (y1 - y0) / d, y2 - h * (x1 - x0) / d)]; P3s.sort(function (Point1, Point2) { return Point1.x - Point2.x; }); return P3s; }, solveX: function (y) { var sqrt = Math.sqrt(Math.pow(this.radius, 2) - Math.pow(y - this.center.y, 2)); return [this.center.x - sqrt, this.center.x + sqrt]; }, solveY: function (x) { var sqrt = Math.sqrt(Math.pow(this.radius, 2) - Math.pow(x - this.center.x, 2)); return [this.center.y - sqrt, this.center.y + sqrt]; } }; }; /***/ }), /***/ "../../victory-bar/es/helper-methods.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-bar/es/helper-methods.js ***! \*************************************************************************************/ /*! exports provided: getBaseProps, getBarPosition */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBaseProps", function() { return getBaseProps; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBarPosition", function() { return getBarPosition; }); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); var getBarPosition = function (props, datum) { var getDefaultMin = function (axis) { var defaultZero = victory_core__WEBPACK_IMPORTED_MODULE_2__["Scale"].getType(props.scale[axis]) === "log" ? 1 / Number.MAX_SAFE_INTEGER : 0; var defaultMin = defaultZero; var minY = victory_core__WEBPACK_IMPORTED_MODULE_2__["Collection"].getMinValue(props.domain[axis]); var maxY = victory_core__WEBPACK_IMPORTED_MODULE_2__["Collection"].getMaxValue(props.domain[axis]); if (minY < 0 && maxY <= 0) { defaultMin = maxY; } else if (minY >= 0 && maxY > 0) { defaultMin = minY; } return datum["_".concat(axis)] instanceof Date ? new Date(defaultMin) : defaultMin; }; var _y0 = datum._y0 !== undefined ? datum._y0 : getDefaultMin("y"); var _x0 = datum._x0 !== undefined ? datum._x0 : getDefaultMin("x"); return victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].scalePoint(props, lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, datum, { _y0: _y0, _x0: _x0 })); }; var getCalculatedValues = function (props) { var polar = props.polar; var defaultStyles = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getDefaultStyles(props, "bar"); var style = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getStyles(props.style, defaultStyles); var range = props.range || { x: victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getRange(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getRange(props, "y") }; var domain = { x: victory_core__WEBPACK_IMPORTED_MODULE_2__["Domain"].getDomainWithZero(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_2__["Domain"].getDomainWithZero(props, "y") }; var scale = { x: victory_core__WEBPACK_IMPORTED_MODULE_2__["Scale"].getBaseScale(props, "x").domain(domain.x).range(props.horizontal ? range.y : range.x), y: victory_core__WEBPACK_IMPORTED_MODULE_2__["Scale"].getBaseScale(props, "y").domain(domain.y).range(props.horizontal ? range.x : range.y) }; var origin = polar ? props.origin || victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getPolarOrigin(props) : undefined; var data = victory_core__WEBPACK_IMPORTED_MODULE_2__["Data"].getData(props); data = victory_core__WEBPACK_IMPORTED_MODULE_2__["Data"].formatDataFromDomain(data, domain, 0); return { style: style, data: data, scale: scale, domain: domain, origin: origin }; }; var getBaseProps = function (props, fallbackProps) { var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].modifyProps(props, fallbackProps, "bar"); props = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, modifiedProps, getCalculatedValues(modifiedProps)); var _props = props, alignment = _props.alignment, barRatio = _props.barRatio, cornerRadius = _props.cornerRadius, data = _props.data, domain = _props.domain, events = _props.events, height = _props.height, horizontal = _props.horizontal, origin = _props.origin, padding = _props.padding, polar = _props.polar, scale = _props.scale, sharedEvents = _props.sharedEvents, standalone = _props.standalone, style = _props.style, theme = _props.theme, width = _props.width, labels = _props.labels, name = _props.name, barWidth = _props.barWidth, getPath = _props.getPath; var initialChildProps = { parent: { horizontal: horizontal, domain: domain, scale: scale, width: width, height: height, data: data, standalone: standalone, name: name, theme: theme, polar: polar, origin: origin, padding: padding, style: style.parent } }; return data.reduce(function (childProps, datum, index) { var eventKey = !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum.eventKey) ? datum.eventKey : index; var _getBarPosition = getBarPosition(props, datum), x = _getBarPosition.x, y = _getBarPosition.y, y0 = _getBarPosition.y0, x0 = _getBarPosition.x0; var dataProps = { alignment: alignment, barRatio: barRatio, barWidth: barWidth, cornerRadius: cornerRadius, data: data, datum: datum, getPath: getPath, horizontal: horizontal, index: index, polar: polar, origin: origin, scale: scale, style: style.data, width: width, height: height, x: x, y: y, y0: y0, x0: x0 }; childProps[eventKey] = { data: dataProps }; var text = victory_core__WEBPACK_IMPORTED_MODULE_2__["LabelHelpers"].getText(props, datum, index); if (text !== undefined && text !== null || labels && (events || sharedEvents)) { childProps[eventKey].labels = victory_core__WEBPACK_IMPORTED_MODULE_2__["LabelHelpers"].getProps(props, index); } return childProps; }, initialChildProps); }; /***/ }), /***/ "../../victory-bar/es/index.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-bar/es/index.js ***! \****************************************************************************/ /*! exports provided: VictoryBar, Bar, getBarPosition, getVerticalBarPath, getHorizontalBarPath, getVerticalPolarBarPath */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_bar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-bar */ "../../victory-bar/es/victory-bar.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryBar", function() { return _victory_bar__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _bar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bar */ "../../victory-bar/es/bar.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Bar", function() { return _bar__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helper-methods */ "../../victory-bar/es/helper-methods.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getBarPosition", function() { return _helper_methods__WEBPACK_IMPORTED_MODULE_2__["getBarPosition"]; }); /* harmony import */ var _path_helper_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./path-helper-methods */ "../../victory-bar/es/path-helper-methods.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getVerticalBarPath", function() { return _path_helper_methods__WEBPACK_IMPORTED_MODULE_3__["getVerticalBarPath"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getHorizontalBarPath", function() { return _path_helper_methods__WEBPACK_IMPORTED_MODULE_3__["getHorizontalBarPath"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getVerticalPolarBarPath", function() { return _path_helper_methods__WEBPACK_IMPORTED_MODULE_3__["getVerticalPolarBarPath"]; }); /***/ }), /***/ "../../victory-bar/es/path-helper-methods.js": /*!******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-bar/es/path-helper-methods.js ***! \******************************************************************************************/ /*! exports provided: getCustomBarPath, getVerticalBarPath, getHorizontalBarPath, getVerticalPolarBarPath */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCustomBarPath", function() { return getCustomBarPath; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getVerticalBarPath", function() { return getVerticalBarPath; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getHorizontalBarPath", function() { return getHorizontalBarPath; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getVerticalPolarBarPath", function() { return getVerticalPolarBarPath; }); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-shape */ "../../../node_modules/d3-shape/src/index.js"); /* harmony import */ var _geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./geometry-helper-methods */ "../../victory-bar/es/geometry-helper-methods.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } var getPosition = function (props, width) { var x = props.x, x0 = props.x0, y = props.y, y0 = props.y0, horizontal = props.horizontal; var alignment = props.alignment || "middle"; var size = alignment === "middle" ? width / 2 : width; var sign = horizontal ? -1 : 1; if (horizontal) { return { x0: x0, x1: x, y0: alignment === "start" ? y : y - sign * size, y1: alignment === "end" ? y : y + sign * size }; } return { x0: alignment === "start" ? x : x - sign * size, x1: alignment === "end" ? x : x + sign * size, y0: y0, y1: y }; }; var getAngle = function (props, index) { var data = props.data, scale = props.scale; var x = data[index]._x1 === undefined ? "_x" : "_x1"; return scale.x(data[index][x]); }; var getAngularWidth = function (props, width) { var scale = props.scale; var range = scale.y.range(); var r = Math.max.apply(Math, _toConsumableArray(range)); var angularRange = Math.abs(scale.x.range()[1] - scale.x.range()[0]); return width / (2 * Math.PI * r) * angularRange; }; var transformAngle = function (angle) { return -1 * angle + Math.PI / 2; }; var getCustomBarPath = function (props, width) { var getPath = props.getPath; var propsWithCalculatedValues = _objectSpread({}, props, getPosition(props, width)); return getPath(propsWithCalculatedValues); }; var getStartAngle = function (props, index) { var data = props.data, scale = props.scale, alignment = props.alignment; var currentAngle = getAngle(props, index); var angularRange = Math.abs(scale.x.range()[1] - scale.x.range()[0]); var previousAngle = index === 0 ? getAngle(props, data.length - 1) - Math.PI * 2 : getAngle(props, index - 1); if (index === 0 && angularRange < 2 * Math.PI) { return scale.x.range()[0]; } else if (alignment === "start" || alignment === "end") { return alignment === "start" ? previousAngle : currentAngle; } else { return (currentAngle + previousAngle) / 2; } }; var getEndAngle = function (props, index) { var data = props.data, scale = props.scale, alignment = props.alignment; var currentAngle = getAngle(props, index); var angularRange = Math.abs(scale.x.range()[1] - scale.x.range()[0]); var lastAngle = scale.x.range()[1] === 2 * Math.PI ? getAngle(props, 0) + Math.PI * 2 : scale.x.range()[1]; var nextAngle = index === data.length - 1 ? getAngle(props, 0) + Math.PI * 2 : getAngle(props, index + 1); if (index === data.length - 1 && angularRange < 2 * Math.PI) { return lastAngle; } else if (alignment === "start" || alignment === "end") { return alignment === "start" ? currentAngle : nextAngle; } else { return (currentAngle + nextAngle) / 2; } }; var mapPointsToPath = function (coords, cornerRadius, direction) { var topLeftPath = "".concat(cornerRadius.topLeft, " ").concat(cornerRadius.topLeft, " ").concat(direction); var topRightPath = "".concat(cornerRadius.topRight, " ").concat(cornerRadius.topRight, " ").concat(direction); var bottomLeftPath = "".concat(cornerRadius.bottomLeft, " ").concat(cornerRadius.bottomLeft, " ").concat(direction); var bottomRightPath = "".concat(cornerRadius.bottomRight, " ").concat(cornerRadius.bottomRight, " ").concat(direction); var commands = ["M", "A ".concat(bottomLeftPath, ","), "L", "A ".concat(topLeftPath, ","), "L", "A ".concat(topRightPath, ","), "L", "A ".concat(bottomRightPath, ",")]; var path = commands.reduce(function (acc, command, i) { acc += "".concat(command, " ").concat(coords[i].x, ", ").concat(coords[i].y, " \n"); return acc; }, ""); return "".concat(path, " z"); }; var getVerticalBarPoints = function (position, sign, cr) { var x0 = position.x0, x1 = position.x1, y0 = position.y0, y1 = position.y1; // eslint-disable-next-line max-statements, max-len var getHalfPoints = function (side) { var isLeft = side === "Left"; var signL = isLeft ? 1 : -1; var x = isLeft ? x0 : x1; var bottomPoint = { x: x + signL * cr["bottom".concat(side)], y: y0 }; var bottomMiddlePoint = { x: x, y: y0 - sign * cr["bottom".concat(side)] }; var topMiddlePoint = { x: x, y: y1 + sign * cr["top".concat(side)] }; var topPoint = { x: x + signL * cr["top".concat(side)], y: y1 }; var hasIntersection = sign === 1 ? y0 - cr["bottom".concat(side)] < y1 + cr["top".concat(side)] : y0 + cr["bottom".concat(side)] > y1 - cr["top".concat(side)]; if (hasIntersection) { var topCenter = Object(_geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__["point"])(x + signL * cr["top".concat(side)], y1 + sign * cr["top".concat(side)]); var topCircle = Object(_geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__["circle"])(topCenter, cr["top".concat(side)]); var bottomCenter = Object(_geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__["point"])(x + signL * cr["bottom".concat(side)], y0 - sign * cr["bottom".concat(side)]); var bottomCircle = Object(_geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__["circle"])(bottomCenter, cr["bottom".concat(side)]); var circleIntersection = topCircle.intersection(bottomCircle); var hasArcIntersection = circleIntersection.length > 0; if (hasArcIntersection) { var arcIntersection = circleIntersection[isLeft ? 0 : 1]; bottomMiddlePoint = { x: arcIntersection.x, y: arcIntersection.y }; topMiddlePoint = { x: arcIntersection.x, y: arcIntersection.y }; } else { var hasBottomLineTopArcIntersection = cr["top".concat(side)] > cr["bottom".concat(side)]; if (hasBottomLineTopArcIntersection) { var newX = topCircle.solveX(y0)[isLeft ? 0 : 1]; bottomPoint = { x: newX, y: y0 }; bottomMiddlePoint = { x: newX, y: y0 }; topMiddlePoint = { x: newX, y: y0 }; } else { var _newX = bottomCircle.solveX(y1)[isLeft ? 0 : 1]; bottomMiddlePoint = { x: _newX, y: y1 }; topMiddlePoint = { x: _newX, y: y1 }; topPoint = { x: _newX, y: y1 }; } } } var points = [bottomPoint, bottomMiddlePoint, topMiddlePoint, topPoint]; return isLeft ? points : points.reverse(); }; return getHalfPoints("Left").concat(getHalfPoints("Right")); }; var getHorizontalBarPoints = function (position, sign, cr) { var y0 = position.y0, y1 = position.y1; var x0 = position.x0 < position.x1 ? position.x0 : position.x1; var x1 = position.x0 < position.x1 ? position.x1 : position.x0; // eslint-disable-next-line max-statements, max-len var getHalfPoints = function (side) { var isTop = side === "top"; var signL = isTop ? -1 : 1; var y = isTop ? y1 : y0; var leftPoint = { x: x0, y: y - signL * cr["".concat(side, "Left")] }; var leftMiddlePoint = { x: x0 + cr["".concat(side, "Left")], y: y }; var rightMiddlePoint = { x: x1 - cr["".concat(side, "Right")], y: y }; var rightPoint = { x: x1, y: y - signL * cr["".concat(side, "Right")] }; var hasIntersection = leftMiddlePoint.x > rightMiddlePoint.x; if (hasIntersection) { var leftCenter = Object(_geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__["point"])(x0 + cr["".concat(side, "Left")], y - signL * cr["".concat(side, "Left")]); var leftCircle = Object(_geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__["circle"])(leftCenter, cr["".concat(side, "Left")]); var rightCenter = Object(_geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__["point"])(x1 - cr["".concat(side, "Right")], y - signL * cr["".concat(side, "Right")]); var rightCircle = Object(_geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__["circle"])(rightCenter, cr["".concat(side, "Right")]); var circleIntersection = leftCircle.intersection(rightCircle); var hasArcIntersection = circleIntersection.length > 0; if (hasArcIntersection) { var arcIntersection = circleIntersection[sign > 0 ? 1 : 0]; leftMiddlePoint = { x: arcIntersection.x, y: arcIntersection.y }; rightMiddlePoint = { x: arcIntersection.x, y: arcIntersection.y }; } else { var hasLeftLineRightArcIntersection = cr["".concat(side, "Right")] > cr["".concat(side, "Left")]; if (hasLeftLineRightArcIntersection) { var newY = rightCircle.solveY(x0)[isTop ? 0 : 1]; leftPoint = { x: x0, y: newY }; leftMiddlePoint = { x: x0, y: newY }; rightMiddlePoint = { x: x0, y: newY }; } else { var _newY = leftCircle.solveY(x1)[isTop ? 0 : 1]; rightPoint = { x: x1, y: _newY }; rightMiddlePoint = { x: x1, y: _newY }; leftMiddlePoint = { x: x1, y: _newY }; } } } return [leftPoint, leftMiddlePoint, rightMiddlePoint, rightPoint]; }; var topPoints = getHalfPoints("top"); var bottomPoints = getHalfPoints("bottom"); // eslint-disable-next-line no-magic-numbers return [bottomPoints[1], bottomPoints[0]].concat(_toConsumableArray(topPoints), [bottomPoints[3], bottomPoints[2]]); }; // eslint-disable-next-line max-params var getVerticalBarPath = function (props, width, cornerRadius) { var position = getPosition(props, width); var sign = position.y0 > position.y1 ? 1 : -1; var direction = sign > 0 ? "0 0 1" : "0 0 0"; var points = getVerticalBarPoints(position, sign, cornerRadius); return mapPointsToPath(points, cornerRadius, direction); }; // eslint-disable-next-line max-params var getHorizontalBarPath = function (props, width, cornerRadius) { var position = getPosition(props, width); var sign = position.x0 < position.x1 ? 1 : -1; var direction = "0 0 1"; var cr = { topRight: sign > 0 ? cornerRadius.topLeft : cornerRadius.bottomLeft, bottomRight: sign > 0 ? cornerRadius.topRight : cornerRadius.bottomRight, bottomLeft: sign > 0 ? cornerRadius.bottomRight : cornerRadius.topRight, topLeft: sign > 0 ? cornerRadius.bottomLeft : cornerRadius.topLeft }; var points = getHorizontalBarPoints(position, sign, cr); return mapPointsToPath(points, cr, direction); }; var getVerticalPolarBarPath = function (props, cornerRadius) { var datum = props.datum, scale = props.scale, index = props.index, alignment = props.alignment, style = props.style; var r1 = scale.y(datum._y0 || 0); var r2 = scale.y(datum._y1 !== undefined ? datum._y1 : datum._y); var currentAngle = scale.x(datum._x1 !== undefined ? datum._x1 : datum._x); var start; var end; if (style.width) { var width = getAngularWidth(props, style.width); var size = alignment === "middle" ? width / 2 : width; start = alignment === "start" ? currentAngle : currentAngle - size; end = alignment === "end" ? currentAngle : currentAngle + size; } else { start = getStartAngle(props, index); end = getEndAngle(props, index); } var getPath = function (edge) { var pathFunction = d3_shape__WEBPACK_IMPORTED_MODULE_0__["arc"]().innerRadius(r1).outerRadius(r2).startAngle(transformAngle(start)).endAngle(transformAngle(end)).cornerRadius(cornerRadius[edge]); return pathFunction(); }; var getPathData = function (edge) { var rightPath = getPath("".concat(edge, "Right")); var rightMoves = rightPath.match(/[A-Z]/g); var rightCoords = rightPath.split(/[A-Z]/).slice(1); var rightMiddle = rightMoves.indexOf("L"); var leftPath = getPath("".concat(edge, "Left")); var leftMoves = leftPath.match(/[A-Z]/g); var leftCoords = leftPath.split(/[A-Z]/).slice(1); var leftMiddle = leftMoves.indexOf("L"); return { rightMoves: rightMoves, rightCoords: rightCoords, rightMiddle: rightMiddle, leftMoves: leftMoves, leftCoords: leftCoords, leftMiddle: leftMiddle }; }; // eslint-disable-next-line max-statements var getTopPath = function () { var topRight = cornerRadius.topRight, topLeft = cornerRadius.topLeft; var arcLength = r2 * Math.abs(end - start); var _getPathData = getPathData("top"), rightMoves = _getPathData.rightMoves, rightCoords = _getPathData.rightCoords, rightMiddle = _getPathData.rightMiddle, leftMoves = _getPathData.leftMoves, leftCoords = _getPathData.leftCoords, leftMiddle = _getPathData.leftMiddle; var moves; var coords; if (topRight === topLeft || arcLength < 2 * topRight + 2 * topLeft) { moves = topRight > topLeft ? rightMoves : leftMoves; coords = topRight > topLeft ? rightCoords : leftCoords; } else { // eslint-disable-next-line no-magic-numbers var isShort = function (middle) { return middle < 3; }; var rightOffset = topLeft > topRight && isShort(rightMiddle) ? 1 : 2; var leftOffset; if (topRight > topLeft) { var defaultOffset = isShort(rightMiddle) ? leftMiddle : leftMiddle - 2; leftOffset = isShort(leftMiddle) ? leftMiddle - 1 : defaultOffset; } else { var _defaultOffset = isShort(leftMiddle) ? 1 : 2; leftOffset = isShort(rightMiddle) ? _defaultOffset : leftMiddle - 2; } moves = _toConsumableArray(rightMoves.slice(0, rightOffset)).concat(_toConsumableArray(leftMoves.slice(leftOffset))); coords = _toConsumableArray(rightCoords.slice(0, rightOffset)).concat(_toConsumableArray(leftCoords.slice(leftOffset))); } var middle = moves.indexOf("L"); var subMoves = moves.slice(0, middle); var subCoords = coords.slice(0, middle); return subMoves.map(function (m, i) { return { command: m, coords: subCoords[i].split(",") }; }); }; // eslint-disable-next-line max-statements var getBottomPath = function () { var bottomRight = cornerRadius.bottomRight, bottomLeft = cornerRadius.bottomLeft; var arcLength = r1 * Math.abs(end - start); var _getPathData2 = getPathData("bottom"), rightMoves = _getPathData2.rightMoves, rightCoords = _getPathData2.rightCoords, rightMiddle = _getPathData2.rightMiddle, leftMoves = _getPathData2.leftMoves, leftCoords = _getPathData2.leftCoords, leftMiddle = _getPathData2.leftMiddle; var moves; var coords; if (bottomRight === bottomLeft || arcLength < 2 * bottomRight + 2 * bottomLeft) { moves = bottomRight > bottomLeft ? rightMoves : leftMoves; coords = bottomRight > bottomLeft ? rightCoords : leftCoords; } else { // eslint-disable-next-line no-magic-numbers var isShort = function (m, middle) { return m.length - middle < 4; }; var shortPath = bottomRight > bottomLeft ? isShort(rightMoves, rightMiddle) : isShort(leftMoves, leftMiddle); // eslint-disable-next-line no-magic-numbers var rightOffset = shortPath ? -1 : -3; moves = _toConsumableArray(leftMoves.slice(0, leftMiddle + 2)).concat(_toConsumableArray(rightMoves.slice(rightOffset))); coords = _toConsumableArray(leftCoords.slice(0, leftMiddle + 2)).concat(_toConsumableArray(rightCoords.slice(rightOffset))); } var middle = moves.indexOf("L"); var subMoves = moves.slice(middle, -1); var subCoords = coords.slice(middle, -1); return subMoves.map(function (m, i) { return { command: m, coords: subCoords[i].split(",") }; }); }; var topPath = getTopPath(); var bottomPath = getBottomPath(); var moves = _toConsumableArray(topPath).concat(_toConsumableArray(bottomPath)); var path = moves.reduce(function (memo, move) { memo += "".concat(move.command, " ").concat(move.coords.join()); return memo; }, ""); return "".concat(path, " z"); }; /***/ }), /***/ "../../victory-bar/es/victory-bar.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-bar/es/victory-bar.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helper-methods */ "../../victory-bar/es/helper-methods.js"); /* harmony import */ var _bar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bar */ "../../victory-bar/es/bar.js"); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var fallbackProps = { width: 450, height: 300, padding: 50 }; var defaultData = [{ x: 1, y: 1 }, { x: 2, y: 2 }, { x: 3, y: 3 }, { x: 4, y: 4 }]; var VictoryBar = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryBar, _React$Component); function VictoryBar() { _classCallCheck(this, VictoryBar); return _possibleConstructorReturn(this, (VictoryBar.__proto__ || Object.getPrototypeOf(VictoryBar)).apply(this, arguments)); } _createClass(VictoryBar, [{ key: "shouldAnimate", // Overridden in native versions value: function shouldAnimate() { return !!this.props.animate; } }, { key: "render", value: function render() { var animationWhitelist = VictoryBar.animationWhitelist, role = VictoryBar.role; var props = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].modifyProps(this.props, fallbackProps, role); if (this.shouldAnimate()) { return this.animateComponent(props, animationWhitelist); } var children = this.renderData(props); return props.standalone ? this.renderContainer(props.containerComponent, children) : children; } }]); return VictoryBar; }(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); Object.defineProperty(VictoryBar, "animationWhitelist", { configurable: true, enumerable: true, writable: true, value: ["data", "domain", "height", "padding", "style", "width"] }); Object.defineProperty(VictoryBar, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryBar" }); Object.defineProperty(VictoryBar, "role", { configurable: true, enumerable: true, writable: true, value: "bar" }); Object.defineProperty(VictoryBar, "defaultTransitions", { configurable: true, enumerable: true, writable: true, value: { onLoad: { duration: 2000, before: function () { return { _y: 0, _y1: 0, _y0: 0 }; }, after: function (datum) { return { _y: datum._y, _y1: datum._y1, _y0: datum._y0 }; } }, onExit: { duration: 500, before: function () { return { _y: 0, yOffset: 0 }; } }, onEnter: { duration: 500, before: function () { return { _y: 0, _y1: 0, _y0: 0 }; }, after: function (datum) { return { _y: datum._y, _y1: datum._y1, _y0: datum._y0 }; } } } }); Object.defineProperty(VictoryBar, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__["CommonProps"].baseProps, victory_core__WEBPACK_IMPORTED_MODULE_4__["CommonProps"].dataProps, { alignment: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(["start", "middle", "end"]), barRatio: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, barWidth: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func]), cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ top: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func]), topLeft: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func]), topRight: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func]), bottom: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func]), bottomLeft: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func]), bottomRight: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func]) })]), getPath: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func, horizontal: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool }) }); Object.defineProperty(VictoryBar, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { containerComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryContainer"], null), data: defaultData, dataComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_bar__WEBPACK_IMPORTED_MODULE_3__["default"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("g", { role: "presentation" }), labelComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], null), samples: 50, sortOrder: "ascending", standalone: true, theme: victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryTheme"].grayscale } }); Object.defineProperty(VictoryBar, "getDomain", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_4__["Domain"].getDomainWithZero }); Object.defineProperty(VictoryBar, "getData", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_4__["Data"].getData }); Object.defineProperty(VictoryBar, "getBaseProps", { configurable: true, enumerable: true, writable: true, value: function (props) { return Object(_helper_methods__WEBPACK_IMPORTED_MODULE_2__["getBaseProps"])(props, fallbackProps); } }); Object.defineProperty(VictoryBar, "expectedComponents", { configurable: true, enumerable: true, writable: true, value: ["dataComponent", "labelComponent", "groupComponent", "containerComponent"] }); /* harmony default export */ __webpack_exports__["default"] = (Object(victory_core__WEBPACK_IMPORTED_MODULE_4__["addEvents"])(VictoryBar)); /***/ }), /***/ "../../victory-box-plot/es/helper-methods.js": /*!******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-box-plot/es/helper-methods.js ***! \******************************************************************************************/ /*! exports provided: getDomain, getData, getBaseProps */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDomain", function() { return getDomain; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getData", function() { return getData; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBaseProps", function() { return getBaseProps; }); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isNaN__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNaN */ "../../../node_modules/lodash/isNaN.js"); /* harmony import */ var lodash_isNaN__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNaN__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js"); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/groupBy */ "../../../node_modules/lodash/groupBy.js"); /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_groupBy__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/lodash/uniq.js"); /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js"); /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! d3-array */ "../../../node_modules/d3-array/src/index.js"); 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; } var TYPES = ["max", "min", "median", "q1", "q3"]; var checkProcessedData = function (data) { /* check if the data is pre-processed. start by checking that it has all required quartile attributes. */ var hasQuartileAttributes = data.every(function (datum) { return TYPES.every(function (val) { return typeof datum["_".concat(val)] !== "undefined"; }); }); if (hasQuartileAttributes) { // check that the independent variable is distinct var values = data.map(function (d) { return d._x; }); if (!lodash_uniq__WEBPACK_IMPORTED_MODULE_4___default()(values).length === values.length) { throw new Error("\n data prop may only take an array of objects with a unique\n independent variable. Make sure your x values are distinct.\n "); } return true; } return false; }; var nanToNull = function (val) { return lodash_isNaN__WEBPACK_IMPORTED_MODULE_1___default()(val) ? null : val; }; var getSummaryStatistics = function (data) { var dependentVars = data.map(function (datum) { return datum._y; }); var quartiles = { _q1: nanToNull(Object(d3_array__WEBPACK_IMPORTED_MODULE_9__["quantile"])(dependentVars, 0.25)), // eslint-disable-line no-magic-numbers _q3: nanToNull(Object(d3_array__WEBPACK_IMPORTED_MODULE_9__["quantile"])(dependentVars, 0.75)), // eslint-disable-line no-magic-numbers _min: nanToNull(Object(d3_array__WEBPACK_IMPORTED_MODULE_9__["min"])(dependentVars)), _median: nanToNull(Object(d3_array__WEBPACK_IMPORTED_MODULE_9__["quantile"])(dependentVars, 0.5)), _max: nanToNull(Object(d3_array__WEBPACK_IMPORTED_MODULE_9__["max"])(dependentVars)) }; return lodash_assign__WEBPACK_IMPORTED_MODULE_5___default()({}, data[0], quartiles, { _y: data[0]._y }); }; var processData = function (data) { /* check if the data is coming in a pre-processed form, i.e. { x || y, min, max, q1, q3, median }. if not, process it. */ var isProcessed = checkProcessedData(data); if (!isProcessed) { // check if the data is coming with x or y values as an array var arrayX = data.every(function (datum) { return Array.isArray(datum._x); }); var arrayY = data.every(function (datum) { return Array.isArray(datum._y); }); var sortKey = "_y"; var groupKey = "_x"; if (arrayX) { throw new Error("\n data should not be given as in array for x\n "); } else if (arrayY) { /* generate summary statistics for each datum. to do this, flatten the depedentVarArray and process each datum separately */ return data.map(function (datum) { var dataArray = datum[sortKey].map(function (d) { return lodash_assign__WEBPACK_IMPORTED_MODULE_5___default()({}, datum, _defineProperty({}, sortKey, d)); }); var sortedData = lodash_orderBy__WEBPACK_IMPORTED_MODULE_7___default()(dataArray, sortKey); return getSummaryStatistics(sortedData); }); } else { /* Group data by independent variable and generate summary statistics for each group */ var groupedData = lodash_groupBy__WEBPACK_IMPORTED_MODULE_3___default()(data, groupKey); return lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(groupedData).map(function (key) { var datum = groupedData[key]; var sortedData = lodash_orderBy__WEBPACK_IMPORTED_MODULE_7___default()(datum, sortKey); return getSummaryStatistics(sortedData); }); } } else { return data; } }; var getData = function (props) { var accessorTypes = TYPES.concat("x", "y"); var formattedData = victory_core__WEBPACK_IMPORTED_MODULE_8__["Data"].formatData(props.data, props, accessorTypes); return formattedData.length ? processData(formattedData) : []; }; var reduceDataset = function (dataset, props, axis) { var minDomain = victory_core__WEBPACK_IMPORTED_MODULE_8__["Domain"].getMinFromProps(props, axis); var maxDomain = victory_core__WEBPACK_IMPORTED_MODULE_8__["Domain"].getMaxFromProps(props, axis); var minData = minDomain !== undefined ? minDomain : dataset.reduce(function (memo, datum) { return memo < datum["_".concat(axis)] ? memo : datum["_".concat(axis)]; }, Infinity); var maxData = maxDomain !== undefined ? maxDomain : dataset.reduce(function (memo, datum) { return memo > datum["_".concat(axis)] ? memo : datum["_".concat(axis)]; }, -Infinity); return victory_core__WEBPACK_IMPORTED_MODULE_8__["Domain"].getDomainFromMinMax(minData, maxData); }; var getDomainFromMinMaxValues = function (dataset, props, axis) { var minDomain = victory_core__WEBPACK_IMPORTED_MODULE_8__["Domain"].getMinFromProps(props, axis); var maxDomain = victory_core__WEBPACK_IMPORTED_MODULE_8__["Domain"].getMaxFromProps(props, axis); var minData = minDomain !== undefined ? minDomain : dataset.reduce(function (memo, datum) { return memo < datum._min ? memo : datum._min; }, Infinity); var maxData = maxDomain !== undefined ? maxDomain : dataset.reduce(function (memo, datum) { return memo > datum._max ? memo : datum._max; }, -Infinity); return victory_core__WEBPACK_IMPORTED_MODULE_8__["Domain"].getDomainFromMinMax(minData, maxData); }; var getDomainFromData = function (props, axis) { var minDomain = victory_core__WEBPACK_IMPORTED_MODULE_8__["Domain"].getMinFromProps(props, axis); var maxDomain = victory_core__WEBPACK_IMPORTED_MODULE_8__["Domain"].getMaxFromProps(props, axis); var dataset = getData(props); if (dataset.length < 1) { return minDomain !== undefined && maxDomain !== undefined ? victory_core__WEBPACK_IMPORTED_MODULE_8__["Domain"].getDomainFromMinMax(minDomain, maxDomain) : undefined; } return axis === "y" ? getDomainFromMinMaxValues(dataset, props, axis) : reduceDataset(dataset, props, axis); }; var getDomain = function (props, axis) { return victory_core__WEBPACK_IMPORTED_MODULE_8__["Domain"].createDomainFunction(getDomainFromData)(props, axis); }; var getLabelStyle = function (props, styleObject, namespace) { var component = props["".concat(namespace, "LabelComponent")] || props.labelComponent; var baseStyle = styleObject["".concat(namespace, "Labels")] || styleObject.labels; if (!victory_core__WEBPACK_IMPORTED_MODULE_8__["Helpers"].isTooltip(component)) { return baseStyle; } var tooltipTheme = props.theme && props.theme.tooltip || {}; return lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, tooltipTheme.style, baseStyle); }; var getStyles = function (props, styleObject) { var style = props.style || {}; styleObject = styleObject || {}; var parentStyles = { height: "100%", width: "100%" }; var labelStyles = lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.labels, getLabelStyle(props, styleObject)); var boxStyles = lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.boxes, styleObject.boxes); var whiskerStyles = lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.whiskers, styleObject.whiskers); return { boxes: boxStyles, labels: labelStyles, parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.parent, styleObject.parent, parentStyles), max: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.max, styleObject.max, whiskerStyles), maxLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.maxLabels, getLabelStyle(props, styleObject, "max"), labelStyles), median: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.median, styleObject.median, whiskerStyles), medianLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.medianLabels, getLabelStyle(props, styleObject, "median"), labelStyles), min: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.min, styleObject.min, whiskerStyles), minLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.minLabels, getLabelStyle(props, styleObject, "min"), labelStyles), q1: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.q1, styleObject.q1, boxStyles), q1Labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.q1Labels, getLabelStyle(props, styleObject, "q1"), labelStyles), q3: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.q3, styleObject.q3, boxStyles), q3Labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.q3Labels, getLabelStyle(props, styleObject, "q3"), labelStyles), whiskers: whiskerStyles }; }; var getCalculatedValues = function (props) { var theme = props.theme, horizontal = props.horizontal; var data = getData(props); var range = { x: victory_core__WEBPACK_IMPORTED_MODULE_8__["Helpers"].getRange(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_8__["Helpers"].getRange(props, "y") }; var domain = { x: getDomain(props, "x"), y: getDomain(props, "y") }; var scale = { x: victory_core__WEBPACK_IMPORTED_MODULE_8__["Scale"].getBaseScale(props, "x").domain(domain.x).range(props.horizontal ? range.y : range.x), y: victory_core__WEBPACK_IMPORTED_MODULE_8__["Scale"].getBaseScale(props, "y").domain(domain.y).range(props.horizontal ? range.x : range.y) }; var defaultStyles = theme && theme.boxplot && theme.boxplot.style ? theme.boxplot.style : {}; var style = getStyles(props, defaultStyles); var defaultOrientation = props.horizontal ? "top" : "right"; var labelOrientation = props.labelOrientation || defaultOrientation; var boxWidth = props.boxWidth || 1; return { data: data, horizontal: horizontal, domain: domain, scale: scale, style: style, labelOrientation: labelOrientation, boxWidth: boxWidth }; }; // eslint-disable-next-line complexity var getWhiskerProps = function (props, type) { var horizontal = props.horizontal, style = props.style, boxWidth = props.boxWidth, whiskerWidth = props.whiskerWidth, datum = props.datum, scale = props.scale, index = props.index; var _props$positions = props.positions, min = _props$positions.min, max = _props$positions.max, q1 = _props$positions.q1, q3 = _props$positions.q3, x = _props$positions.x, y = _props$positions.y; var boxValue = type === "min" ? q1 : q3; var whiskerValue = type === "min" ? min : max; var width = typeof whiskerWidth === "number" ? whiskerWidth : boxWidth; return { datum: datum, index: index, scale: scale, majorWhisker: { x1: horizontal ? boxValue : x, y1: horizontal ? y : boxValue, x2: horizontal ? whiskerValue : x, y2: horizontal ? y : whiskerValue }, minorWhisker: { x1: horizontal ? whiskerValue : x - width / 2, y1: horizontal ? y - width / 2 : whiskerValue, x2: horizontal ? whiskerValue : x + width / 2, y2: horizontal ? y + width / 2 : whiskerValue }, style: style[type] || style.whisker }; }; var getBoxProps = function (props, type) { var horizontal = props.horizontal, boxWidth = props.boxWidth, style = props.style, scale = props.scale, datum = props.datum, index = props.index; var _props$positions2 = props.positions, median = _props$positions2.median, q1 = _props$positions2.q1, q3 = _props$positions2.q3, x = _props$positions2.x, y = _props$positions2.y; var defaultX = type === "q1" ? q1 : median; var defaultY = type === "q1" ? median : q3; var defaultWidth = type === "q1" ? median - q1 : q3 - median; var defaultHeight = type === "q1" ? q1 - median : median - q3; return { datum: datum, scale: scale, index: index, x: horizontal ? defaultX : x - boxWidth / 2, y: horizontal ? y - boxWidth / 2 : defaultY, width: horizontal ? defaultWidth : boxWidth, height: horizontal ? boxWidth : defaultHeight, style: style[type] || style.boxes }; }; var getMedianProps = function (props) { var boxWidth = props.boxWidth, horizontal = props.horizontal, style = props.style, datum = props.datum, scale = props.scale, index = props.index; var _props$positions3 = props.positions, median = _props$positions3.median, x = _props$positions3.x, y = _props$positions3.y; return { datum: datum, scale: scale, index: index, x1: horizontal ? median : x - boxWidth / 2, y1: horizontal ? y - boxWidth / 2 : median, x2: horizontal ? median : x + boxWidth / 2, y2: horizontal ? y + boxWidth / 2 : median, style: style.median }; }; var getText = function (props, type) { var datum = props.datum, index = props.index, labels = props.labels; var propName = "".concat(type, "Labels"); var labelProp = props[propName]; if (!labelProp && !labels) { return null; } else if (labelProp === true || labels === true) { var dataName = "_".concat(type); return "".concat(datum[dataName]); } return Array.isArray(labelProp) ? labelProp[index] : labelProp; }; var getOrientation = function (labelOrientation, type) { return typeof labelOrientation === "object" && labelOrientation[type] || labelOrientation; }; var getLabelProps = function (props, text, type) { var datum = props.datum, positions = props.positions, index = props.index, boxWidth = props.boxWidth, horizontal = props.horizontal, labelOrientation = props.labelOrientation, style = props.style, theme = props.theme; var orientation = getOrientation(labelOrientation, type); var namespace = "".concat(type, "Labels"); var labelStyle = style[namespace] || style.labels; var defaultVerticalAnchors = { top: "end", bottom: "start", left: "middle", right: "middle" }; var defaultTextAnchors = { left: "end", right: "start", top: "middle", bottom: "middle" }; var whiskerWidth = typeof props.whiskerWidth === "number" ? props.whiskerWidth : boxWidth; var width = type === "min" || type === "max" ? whiskerWidth : boxWidth; var getOffset = function (coord) { var sign = { x: orientation === "left" ? -1 : 1, y: orientation === "top" ? -1 : 1 }; return sign[coord] * width / 2 + sign[coord] * (labelStyle.padding || 0); }; var labelProps = { text: text, datum: datum, index: index, orientation: orientation, style: labelStyle, y: horizontal ? positions.y : positions[type], x: horizontal ? positions[type] : positions.x, dy: horizontal ? getOffset("y") : 0, dx: horizontal ? 0 : getOffset("x"), textAnchor: labelStyle.textAnchor || defaultTextAnchors[orientation], verticalAnchor: labelStyle.verticalAnchor || defaultVerticalAnchors[orientation], angle: labelStyle.angle, horizontal: horizontal }; var component = props["".concat(type, "LabelComponent")]; if (!victory_core__WEBPACK_IMPORTED_MODULE_8__["Helpers"].isTooltip(component)) { return labelProps; } var tooltipTheme = theme && theme.tooltip || {}; return lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, labelProps, victory_core__WEBPACK_IMPORTED_MODULE_8__["Helpers"].omit(tooltipTheme, ["style"])); }; var getDataProps = function (props, type) { if (type === "median") { return getMedianProps(props); } else if (type === "min" || type === "max") { return getWhiskerProps(props, type); } return getBoxProps(props, type); }; // if all data points on an axis are out of bound of the domain, filter out this datum var isDatumOutOfBounds = function (datum, domain) { var exists = function (val) { return val !== undefined; }; var _x = datum._x, _min = datum._min, _max = datum._max; var minDomainX = victory_core__WEBPACK_IMPORTED_MODULE_8__["Collection"].getMinValue(domain.x); var maxDomainX = victory_core__WEBPACK_IMPORTED_MODULE_8__["Collection"].getMaxValue(domain.x); var minDomainY = victory_core__WEBPACK_IMPORTED_MODULE_8__["Collection"].getMinValue(domain.y); var maxDomainY = victory_core__WEBPACK_IMPORTED_MODULE_8__["Collection"].getMaxValue(domain.y); var underMin = function (min) { return function (val) { return exists(val) && val < min; }; }; var overMax = function (max) { return function (val) { return exists(val) && val > max; }; }; var isUnderMinX = underMin(minDomainX); var isUnderMinY = underMin(minDomainY); var isOverMaxX = overMax(maxDomainX); var isOverMaxY = overMax(maxDomainY); var yOutOfBounds; var xOutOfBounds; // if x is out of the bounds of the domain if (isUnderMinX(_x) || isOverMaxX(_x)) xOutOfBounds = true; // if min/max are out of the bounds of the domain if (isUnderMinY(_min) && isUnderMinY(_max) || isOverMaxY(_min) && isOverMaxY(_max)) yOutOfBounds = true; return yOutOfBounds || xOutOfBounds; }; var getBaseProps = function (props, fallbackProps) { var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_8__["Helpers"].modifyProps(props, fallbackProps, "boxplot"); props = lodash_assign__WEBPACK_IMPORTED_MODULE_5___default()({}, modifiedProps, getCalculatedValues(modifiedProps)); var _props = props, groupComponent = _props.groupComponent, width = _props.width, height = _props.height, padding = _props.padding, standalone = _props.standalone, theme = _props.theme, events = _props.events, sharedEvents = _props.sharedEvents, scale = _props.scale, horizontal = _props.horizontal, data = _props.data, style = _props.style, domain = _props.domain, name = _props.name; var initialChildProps = { parent: { domain: domain, scale: scale, width: width, height: height, data: data, standalone: standalone, name: name, theme: theme, style: style.parent || {}, padding: padding, groupComponent: groupComponent, horizontal: horizontal } }; var boxScale = scale.y; return data.reduce(function (acc, datum, index) { var eventKey = !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum.eventKey) ? datum.eventKey : index; if (isDatumOutOfBounds(datum, domain)) return acc; var positions = { x: horizontal ? scale.y(datum._y) : scale.x(datum._x), y: horizontal ? scale.x(datum._x) : scale.y(datum._y), min: boxScale(datum._min), max: boxScale(datum._max), median: boxScale(datum._median), q1: boxScale(datum._q1), q3: boxScale(datum._q3) }; var dataProps = lodash_assign__WEBPACK_IMPORTED_MODULE_5___default()({ index: index, datum: datum, positions: positions }, props); var dataObj = TYPES.reduce(function (memo, type) { memo[type] = getDataProps(dataProps, type); return memo; }, {}); acc[eventKey] = dataObj; TYPES.forEach(function (type) { var labelText = getText(dataProps, type); var labelProp = props.labels || props["".concat(type, "Labels")]; if (labelText !== null && labelText !== undefined || labelProp && (events || sharedEvents)) { var target = "".concat(type, "Labels"); acc[eventKey][target] = getLabelProps(lodash_assign__WEBPACK_IMPORTED_MODULE_5___default()({}, props, dataProps), labelText, type); } }); return acc; }, initialChildProps); }; /***/ }), /***/ "../../victory-box-plot/es/index.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-box-plot/es/index.js ***! \*********************************************************************************/ /*! exports provided: VictoryBoxPlot */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_box_plot__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-box-plot */ "../../victory-box-plot/es/victory-box-plot.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryBoxPlot", function() { return _victory_box_plot__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /***/ }), /***/ "../../victory-box-plot/es/victory-box-plot.js": /*!********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-box-plot/es/victory-box-plot.js ***! \********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/flatten */ "../../../node_modules/lodash/flatten.js"); /* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_flatten__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helper-methods */ "../../victory-box-plot/es/helper-methods.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var fallbackProps = { width: 450, height: 300, padding: { top: 20, right: 20, bottom: 20, left: 20 } }; var defaultData = [{ x: 1, min: 5, q1: 7, median: 12, q3: 18, max: 20 }, { x: 2, min: 2, q1: 5, median: 8, q3: 12, max: 15 }]; var options = { components: [{ name: "min" }, { name: "minLabels" }, { name: "max" }, { name: "maxLabels" }, { name: "median" }, { name: "medianLabels" }, { name: "q1" }, { name: "q1Labels" }, { name: "q3" }, { name: "q3Labels" }, { name: "parent", index: "parent" }] }; var VictoryBoxPlot = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryBoxPlot, _React$Component); function VictoryBoxPlot() { _classCallCheck(this, VictoryBoxPlot); return _possibleConstructorReturn(this, (VictoryBoxPlot.__proto__ || Object.getPrototypeOf(VictoryBoxPlot)).apply(this, arguments)); } _createClass(VictoryBoxPlot, [{ key: "renderBoxPlot", value: function renderBoxPlot(props) { var _this = this; var types = ["q1", "q3", "max", "min", "median"]; var dataComponents = lodash_flatten__WEBPACK_IMPORTED_MODULE_1___default()(types.map(function (type) { return _this.dataKeys.reduce(function (validDataComponents, _key, index) { var baseComponent = props["".concat(type, "Component")]; var componentProps = _this.getComponentProps(baseComponent, type, index); if (_this.shouldRenderDatum(componentProps.datum)) { validDataComponents.push(react__WEBPACK_IMPORTED_MODULE_2___default.a.cloneElement(baseComponent, componentProps)); } return validDataComponents; }, []); })); var labelComponents = lodash_flatten__WEBPACK_IMPORTED_MODULE_1___default()(types.map(function (type) { var components = _this.dataKeys.map(function (key, index) { var name = "".concat(type, "Labels"); var baseComponent = props["".concat(type, "LabelComponent")]; var labelProps = _this.getComponentProps(baseComponent, name, index); if (labelProps.text !== undefined && labelProps.text !== null) { return react__WEBPACK_IMPORTED_MODULE_2___default.a.cloneElement(baseComponent, labelProps); } return undefined; }); return components.filter(Boolean); })); var children = _toConsumableArray(dataComponents).concat(_toConsumableArray(labelComponents)); return this.renderContainer(props.groupComponent, children); } // Overridden in native versions }, { key: "shouldAnimate", value: function shouldAnimate() { return !!this.props.animate; } }, { key: "shouldRenderDatum", value: function shouldRenderDatum(datum) { var hasX = !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum._x); var hasY = !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum._y); var hasSummaryStatistics = !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum._min) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum._max) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum._median) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum._q1) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum._q3); return hasSummaryStatistics && (this.props.horizontal ? hasY : hasX); } }, { key: "render", value: function render() { var animationWhitelist = VictoryBoxPlot.animationWhitelist, role = VictoryBoxPlot.role; var props = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].modifyProps(this.props, fallbackProps, role); if (this.shouldAnimate()) { return this.animateComponent(props, animationWhitelist); } var children = this.renderBoxPlot(props); return props.standalone ? this.renderContainer(props.containerComponent, children) : children; } }]); return VictoryBoxPlot; }(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component); Object.defineProperty(VictoryBoxPlot, "animationWhitelist", { configurable: true, enumerable: true, writable: true, value: ["data", "domain", "height", "padding", "style", "width"] }); Object.defineProperty(VictoryBoxPlot, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryBoxPlot" }); Object.defineProperty(VictoryBoxPlot, "role", { configurable: true, enumerable: true, writable: true, value: "boxplot" }); Object.defineProperty(VictoryBoxPlot, "defaultTransitions", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_4__["DefaultTransitions"].discreteTransitions() }); Object.defineProperty(VictoryBoxPlot, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__["CommonProps"].baseProps, victory_core__WEBPACK_IMPORTED_MODULE_4__["CommonProps"].dataProps, { boxWidth: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, events: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({ target: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(["max", "maxLabels", "median", "medianLabels", "min", "minLabels", "q1", "q1Labels", "q3", "q3Labels", "parent"]), eventKey: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string]), eventHandlers: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object })), horizontal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, labelOrientation: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(["top", "bottom", "left", "right"]), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({ q1: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(["top", "bottom", "left", "right"]), q3: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(["top", "bottom", "left", "right"]), min: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(["top", "bottom", "left", "right"]), max: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(["top", "bottom", "left", "right"]), median: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(["top", "bottom", "left", "right"]) })]), labels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, max: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string)]), maxComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, maxLabelComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, maxLabels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool]), median: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string)]), medianComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, medianLabelComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, medianLabels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool]), min: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string)]), minComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, minLabelComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, minLabels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool]), q1: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string)]), q1Component: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, q1LabelComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, q1Labels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool]), q3: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string)]), q3Component: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, q3LabelComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, q3Labels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool]), style: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({ boxes: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, labels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, parent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, max: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, maxLabels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, median: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, medianLabels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, min: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, minLabels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, q1: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, q1Labels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, q3: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, q3Labels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, whiskers: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object }), whiskerWidth: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number }) }); Object.defineProperty(VictoryBoxPlot, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { containerComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryContainer"], null), data: defaultData, dataComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["Box"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("g", { role: "presentation" }), maxComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["Whisker"], null), maxLabelComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], null), medianComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["LineSegment"], null), medianLabelComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], null), minComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["Whisker"], null), minLabelComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], null), q1Component: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["Box"], null), q1LabelComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], null), q3Component: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["Box"], null), q3LabelComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], null), samples: 50, sortKey: "x", sortOrder: "ascending", standalone: true, theme: victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryTheme"].grayscale } }); Object.defineProperty(VictoryBoxPlot, "getDomain", { configurable: true, enumerable: true, writable: true, value: _helper_methods__WEBPACK_IMPORTED_MODULE_5__["getDomain"] }); Object.defineProperty(VictoryBoxPlot, "getData", { configurable: true, enumerable: true, writable: true, value: _helper_methods__WEBPACK_IMPORTED_MODULE_5__["getData"] }); Object.defineProperty(VictoryBoxPlot, "getBaseProps", { configurable: true, enumerable: true, writable: true, value: function (props) { return Object(_helper_methods__WEBPACK_IMPORTED_MODULE_5__["getBaseProps"])(props, fallbackProps); } }); Object.defineProperty(VictoryBoxPlot, "expectedComponents", { configurable: true, enumerable: true, writable: true, value: ["maxComponent", "maxLabelComponent", "medianComponent", "medianLabelComponent", "minComponent", "minLabelComponent", "q1Component", "q1LabelComponent", "q3Component", "q3LabelComponent", "groupComponent", "containerComponent"] }); /* harmony default export */ __webpack_exports__["default"] = (Object(victory_core__WEBPACK_IMPORTED_MODULE_4__["addEvents"])(VictoryBoxPlot, options)); /***/ }), /***/ "../../victory-brush-container/es/brush-helpers.js": /*!************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-brush-container/es/brush-helpers.js ***! \************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_mapValues__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/mapValues */ "../../../node_modules/lodash/mapValues.js"); /* harmony import */ var lodash_mapValues__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_mapValues__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/throttle */ "../../../node_modules/lodash/throttle.js"); /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_6__); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } var Helpers = { getDimension: function (props) { var horizontal = props.horizontal, brushDimension = props.brushDimension; if (!horizontal || !brushDimension) { return brushDimension; } return brushDimension === "x" ? "y" : "x"; }, withinBounds: function (point, bounds, padding) { var _mapValues2 = lodash_mapValues__WEBPACK_IMPORTED_MODULE_0___default()(bounds, Number), x1 = _mapValues2.x1, x2 = _mapValues2.x2, y1 = _mapValues2.y1, y2 = _mapValues2.y2; var _mapValues3 = lodash_mapValues__WEBPACK_IMPORTED_MODULE_0___default()(point, Number), x = _mapValues3.x, y = _mapValues3.y; padding = padding ? padding / 2 : 0; return x + padding >= Math.min(x1, x2) && x - padding <= Math.max(x1, x2) && y + padding >= Math.min(y1, y2) && y - padding <= Math.max(y1, y2); }, getDomainBox: function (props, fullDomain, selectedDomain) { var brushDimension = this.getDimension(props); fullDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, fullDomain, props.domain); selectedDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, selectedDomain, fullDomain); var fullCoords = victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getDomainCoordinates(props, fullDomain); var selectedCoords = victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getDomainCoordinates(props, selectedDomain); return { x1: brushDimension !== "y" ? Math.min.apply(Math, _toConsumableArray(selectedCoords.x)) : Math.min.apply(Math, _toConsumableArray(fullCoords.x)), x2: brushDimension !== "y" ? Math.max.apply(Math, _toConsumableArray(selectedCoords.x)) : Math.max.apply(Math, _toConsumableArray(fullCoords.x)), y1: brushDimension !== "x" ? Math.min.apply(Math, _toConsumableArray(selectedCoords.y)) : Math.min.apply(Math, _toConsumableArray(fullCoords.y)), y2: brushDimension !== "x" ? Math.max.apply(Math, _toConsumableArray(selectedCoords.y)) : Math.max.apply(Math, _toConsumableArray(fullCoords.y)) }; }, getHandles: function (props, domainBox) { var brushDimension = this.getDimension(props); var x1 = domainBox.x1, x2 = domainBox.x2, y1 = domainBox.y1, y2 = domainBox.y2; var minX = Math.min(x1, x2); var maxX = Math.max(x1, x2); var minY = Math.min(y1, y2); var maxY = Math.max(y1, y2); var handleWidth = props.handleWidth / 2; return { left: brushDimension !== "y" && { x1: minX - handleWidth, x2: minX + handleWidth, y1: y1, y2: y2 }, right: brushDimension !== "y" && { x1: maxX - handleWidth, x2: maxX + handleWidth, y1: y1, y2: y2 }, top: brushDimension !== "x" && { x1: x1, x2: x2, y1: minY - handleWidth, y2: minY + handleWidth }, bottom: brushDimension !== "x" && { x1: x1, x2: x2, y1: maxY - handleWidth, y2: maxY + handleWidth } }; }, getActiveHandles: function (point, props, domainBox) { var _this = this; var handles = this.getHandles(props, domainBox); var activeHandles = ["top", "bottom", "left", "right"].reduce(function (memo, opt) { memo = handles[opt] && _this.withinBounds(point, handles[opt]) ? memo.concat(opt) : memo; return memo; }, []); return activeHandles.length && activeHandles; }, getResizeMutation: function (box, handles) { var x1 = box.x1, y1 = box.y1, x2 = box.x2, y2 = box.y2; var mutations = { left: { x1: Math.max(x1, x2), x2: Math.min(x1, x2), y1: y1, y2: y2 }, right: { x1: Math.min(x1, x2), x2: Math.max(x1, x2), y1: y1, y2: y2 }, top: { y1: Math.max(y1, y2), y2: Math.min(y1, y2), x1: x1, x2: x2 }, bottom: { y1: Math.min(y1, y2), y2: Math.max(y1, y2), x1: x1, x2: x2 } }; return handles.reduce(function (memo, current) { return lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()(memo, mutations[current]); }, {}); }, getMinimumDomain: function () { return { x: [0, 1 / Number.MAX_SAFE_INTEGER], y: [0, 1 / Number.MAX_SAFE_INTEGER] }; }, getDefaultBrushArea: function (targetProps, cachedDomain, evt) { var domain = targetProps.domain, fullDomain = targetProps.fullDomain, scale = targetProps.scale, horizontal = targetProps.horizontal, allowResize = targetProps.allowResize; var defaultBrushArea = !allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea; if (defaultBrushArea === "none") { return this.getMinimumDomain(); } else if (defaultBrushArea === "disable") { return cachedDomain; } else if (defaultBrushArea === "move") { var brushBox = this.getDomainBox(targetProps, fullDomain, cachedDomain); var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getParentSVG(evt); var pannedBox = this.panBox(_objectSpread({}, targetProps, brushBox, { brushDomain: cachedDomain, startX: (brushBox.x1 + brushBox.x2) / 2, startY: (brushBox.y1 + brushBox.y2) / 2 }), victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getSVGEventCoordinates(evt, parentSVG)); var fullDomainBox = targetProps.fullDomainBox || this.getDomainBox(targetProps, fullDomain); var constrainedBox = this.constrainBox(pannedBox, fullDomainBox); return victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getBounds(_objectSpread({}, constrainedBox, { scale: scale, horizontal: horizontal })); } else { return domain; } }, getSelectionMutation: function (point, box, brushDimension) { var x = point.x, y = point.y; var x1 = box.x1, x2 = box.x2, y1 = box.y1, y2 = box.y2; return { x1: brushDimension !== "y" ? x : x1, y1: brushDimension !== "x" ? y : y1, x2: brushDimension !== "y" ? x : x2, y2: brushDimension !== "x" ? y : y2 }; }, panBox: function (props, point) { var domain = props.domain, startX = props.startX, startY = props.startY; var brushDimension = this.getDimension(props); var brushDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, props.brushDomain, domain); var fullDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, props.fullDomain, domain); var _ref = props.x1 ? props : this.getDomainBox(props, fullDomain, brushDomain), x1 = _ref.x1, x2 = _ref.x2, y1 = _ref.y1, y2 = _ref.y2; var x = point.x, y = point.y; var delta = { x: startX ? startX - x : 0, y: startY ? startY - y : 0 }; return { x1: brushDimension !== "y" ? Math.min(x1, x2) - delta.x : Math.min(x1, x2), x2: brushDimension !== "y" ? Math.max(x1, x2) - delta.x : Math.max(x1, x2), y1: brushDimension !== "x" ? Math.min(y1, y2) - delta.y : Math.min(y1, y2), y2: brushDimension !== "x" ? Math.max(y1, y2) - delta.y : Math.max(y1, y2) }; }, constrainBox: function (box, fullDomainBox) { var _mapValues4 = lodash_mapValues__WEBPACK_IMPORTED_MODULE_0___default()(fullDomainBox, Number), x1 = _mapValues4.x1, y1 = _mapValues4.y1, x2 = _mapValues4.x2, y2 = _mapValues4.y2; return { x1: box.x2 > x2 ? x2 - Math.abs(box.x2 - box.x1) : Math.max(box.x1, x1), y1: box.y2 > y2 ? y2 - Math.abs(box.y2 - box.y1) : Math.max(box.y1, y1), x2: box.x1 < x1 ? x1 + Math.abs(box.x2 - box.x1) : Math.min(box.x2, x2), y2: box.y1 < y1 ? y1 + Math.abs(box.y2 - box.y1) : Math.min(box.y2, y2) }; }, constrainPoint: function (point, fullDomainBox) { var _mapValues5 = lodash_mapValues__WEBPACK_IMPORTED_MODULE_0___default()(fullDomainBox, Number), x1 = _mapValues5.x1, y1 = _mapValues5.y1, x2 = _mapValues5.x2, y2 = _mapValues5.y2; return { x: Math.min(Math.max(point.x, x1), x2), y: Math.min(Math.max(point.y, y1), y2) }; }, hasMoved: function (props) { var x1 = props.x1, x2 = props.x2, y1 = props.y1, y2 = props.y2, mouseMoveThreshold = props.mouseMoveThreshold; var brushDimension = this.getDimension(props); var xMoved = Math.abs(x1 - x2) >= mouseMoveThreshold; var yMoved = Math.abs(y1 - y2) >= mouseMoveThreshold; switch (brushDimension) { case "x": return xMoved; case "y": return yMoved; default: return xMoved || yMoved; } }, // eslint-disable-next-line max-statements, complexity onMouseDown: function (evt, targetProps) { var _this2 = this; evt.preventDefault(); var handleWidth = targetProps.handleWidth, cachedBrushDomain = targetProps.cachedBrushDomain, domain = targetProps.domain, allowResize = targetProps.allowResize, allowDrag = targetProps.allowDrag, allowDraw = targetProps.allowDraw; var brushDimension = this.getDimension(targetProps); var defaultBrushArea = !allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea; // Don't trigger events for static brushes if (!allowResize && !allowDrag) { return {}; } var fullDomainBox = targetProps.fullDomainBox || this.getDomainBox(targetProps, domain); var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getParentSVG(evt); var _Selection$getSVGEven = victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getSVGEventCoordinates(evt, parentSVG), x = _Selection$getSVGEven.x, y = _Selection$getSVGEven.y; // Ignore events that occur outside of the maximum domain region if (!this.withinBounds({ x: x, y: y }, fullDomainBox, handleWidth)) { return {}; } var brushDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, targetProps.brushDomain, domain); var currentDomain = react_fast_compare__WEBPACK_IMPORTED_MODULE_6___default()(brushDomain, cachedBrushDomain) ? targetProps.currentDomain || brushDomain || domain : brushDomain || domain; var domainBox = this.getDomainBox(targetProps, domain, currentDomain); var activeHandles = allowResize && this.getActiveHandles({ x: x, y: y }, targetProps, domainBox); // If the event occurs in any of the handle regions, start a resize if (activeHandles) { return [{ target: "parent", mutation: function () { return _objectSpread({ isSelecting: true, domainBox: domainBox, fullDomainBox: fullDomainBox, cachedBrushDomain: brushDomain, currentDomain: currentDomain, parentSVG: parentSVG }, _this2.getResizeMutation(domainBox, activeHandles)); } }]; } else if (this.withinBounds({ x: x, y: y }, domainBox) && !react_fast_compare__WEBPACK_IMPORTED_MODULE_6___default()(domain, currentDomain)) { // if the event occurs within a selected region start a panning event, unless the whole // domain is selected return [{ target: "parent", mutation: function () { return _objectSpread({ isPanning: allowDrag, startX: x, startY: y, domainBox: domainBox, fullDomainBox: fullDomainBox, currentDomain: currentDomain, cachedBrushDomain: brushDomain, parentSVG: parentSVG }, domainBox); } }]; } else { // if the event occurs outside the region, or if the whole domain is selected, // start a new selection return allowDraw ? [{ target: "parent", mutation: function () { return _objectSpread({ isSelecting: allowResize || defaultBrushArea === "move", domainBox: domainBox, fullDomainBox: fullDomainBox, parentSVG: parentSVG, cachedBrushDomain: brushDomain, cachedCurrentDomain: currentDomain, currentDomain: _this2.getMinimumDomain() }, _this2.getSelectionMutation({ x: x, y: y }, domainBox, brushDimension)); } }] : {}; } }, // eslint-disable-next-line max-statements, complexity onGlobalMouseMove: function (evt, targetProps) { var scale = targetProps.scale, isPanning = targetProps.isPanning, isSelecting = targetProps.isSelecting, fullDomainBox = targetProps.fullDomainBox, onBrushDomainChange = targetProps.onBrushDomainChange, allowResize = targetProps.allowResize, allowDrag = targetProps.allowDrag, horizontal = targetProps.horizontal, mouseMoveThreshold = targetProps.mouseMoveThreshold, parentSVG = targetProps.parentSVG; var brushDimension = this.getDimension(targetProps); var _Selection$getSVGEven2 = victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getSVGEventCoordinates(evt, parentSVG), x = _Selection$getSVGEven2.x, y = _Selection$getSVGEven2.y; if (!allowResize && !allowDrag || mouseMoveThreshold > 0 && !this.hasMoved(_objectSpread({}, targetProps, { x2: x, y2: y }))) { return {}; } if (allowDrag && isPanning) { var startX = targetProps.startX, startY = targetProps.startY; var pannedBox = this.panBox(targetProps, { x: x, y: y }); var constrainedBox = this.constrainBox(pannedBox, fullDomainBox); var currentDomain = victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getBounds(_objectSpread({}, constrainedBox, { scale: scale, horizontal: horizontal })); var mutatedProps = _objectSpread({ currentDomain: currentDomain, parentSVG: parentSVG, startX: pannedBox.x2 >= fullDomainBox.x2 || pannedBox.x1 <= fullDomainBox.x1 ? startX : x, startY: pannedBox.y2 >= fullDomainBox.y2 || pannedBox.y1 <= fullDomainBox.y1 ? startY : y }, constrainedBox); if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(onBrushDomainChange)) { onBrushDomainChange(currentDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, mutatedProps, targetProps)); } return [{ target: "parent", mutation: function () { return mutatedProps; } }]; } else if (allowResize && isSelecting) { var _constrainPoint = this.constrainPoint({ x: brushDimension !== "y" ? x : targetProps.x2, y: brushDimension !== "x" ? y : targetProps.y2 }, fullDomainBox), x2 = _constrainPoint.x, y2 = _constrainPoint.y; var _currentDomain = victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getBounds({ x2: x2, y2: y2, x1: targetProps.x1, y1: targetProps.y1, scale: scale, horizontal: horizontal }); var _mutatedProps = { x2: x2, y2: y2, currentDomain: _currentDomain, parentSVG: parentSVG }; if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(onBrushDomainChange)) { onBrushDomainChange(_currentDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, _mutatedProps, targetProps)); } return [{ target: "parent", mutation: function () { return _mutatedProps; } }]; } return {}; }, // eslint-disable-next-line complexity onGlobalMouseUp: function (evt, targetProps) { // if a panning or selection has not been started, ignore the event if (!targetProps.isPanning && !targetProps.isSelecting) { return {}; } // eslint-disable-line max-statements, complexity var x1 = targetProps.x1, y1 = targetProps.y1, x2 = targetProps.x2, y2 = targetProps.y2, isPanning = targetProps.isPanning, isSelecting = targetProps.isSelecting, onBrushDomainChange = targetProps.onBrushDomainChange, onBrushDomainChangeEnd = targetProps.onBrushDomainChangeEnd, onBrushCleared = targetProps.onBrushCleared, currentDomain = targetProps.currentDomain, allowResize = targetProps.allowResize, allowDrag = targetProps.allowDrag; var defaultBrushArea = !allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea; var defaultBrushHasArea = defaultBrushArea !== undefined && defaultBrushArea !== "none"; var mutatedProps = { isPanning: false, isSelecting: false }; // if the mouse hasn't moved since a mouseDown event, select the default brush area if ((allowResize || defaultBrushHasArea) && (x1 === x2 || y1 === y2)) { var cachedDomain = targetProps.cachedCurrentDomain || currentDomain; var defaultDomain = this.getDefaultBrushArea(targetProps, cachedDomain, evt); mutatedProps.currentDomain = defaultDomain; if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(onBrushDomainChange)) { onBrushDomainChange(defaultDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, mutatedProps, targetProps)); } if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(onBrushDomainChangeEnd)) { onBrushDomainChangeEnd(defaultDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, mutatedProps, targetProps)); } if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(onBrushCleared)) { onBrushCleared(defaultDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, mutatedProps, targetProps)); } } else if (allowDrag && isPanning || allowResize && isSelecting) { if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(onBrushDomainChangeEnd)) { onBrushDomainChangeEnd(currentDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, mutatedProps, targetProps)); } } return [{ target: "parent", mutation: function () { return mutatedProps; } }]; } }; /* harmony default export */ __webpack_exports__["default"] = (_objectSpread({}, Helpers, { onMouseDown: Helpers.onMouseDown.bind(Helpers), onGlobalMouseUp: Helpers.onGlobalMouseUp.bind(Helpers), onGlobalMouseMove: lodash_throttle__WEBPACK_IMPORTED_MODULE_3___default()(Helpers.onGlobalMouseMove.bind(Helpers), 16, // eslint-disable-line no-magic-numbers { leading: true, trailing: false }) })); /***/ }), /***/ "../../victory-brush-container/es/index.js": /*!****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-brush-container/es/index.js ***! \****************************************************************************************/ /*! exports provided: brushContainerMixin, VictoryBrushContainer, BrushHelpers */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_brush_container__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-brush-container */ "../../victory-brush-container/es/victory-brush-container.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushContainerMixin", function() { return _victory_brush_container__WEBPACK_IMPORTED_MODULE_0__["brushContainerMixin"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryBrushContainer", function() { return _victory_brush_container__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _brush_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./brush-helpers */ "../../victory-brush-container/es/brush-helpers.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BrushHelpers", function() { return _brush_helpers__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /***/ }), /***/ "../../victory-brush-container/es/victory-brush-container.js": /*!**********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-brush-container/es/victory-brush-container.js ***! \**********************************************************************************************************/ /*! exports provided: brushContainerMixin, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brushContainerMixin", function() { return brushContainerMixin; }); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var _brush_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./brush-helpers */ "../../victory-brush-container/es/brush-helpers.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_6__); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var brushContainerMixin = function (base) { var _class, _temp; return _temp = _class = /*#__PURE__*/ function (_base) { _inherits(VictoryBrushContainer, _base); function VictoryBrushContainer() { _classCallCheck(this, VictoryBrushContainer); return _possibleConstructorReturn(this, (VictoryBrushContainer.__proto__ || Object.getPrototypeOf(VictoryBrushContainer)).apply(this, arguments)); } _createClass(VictoryBrushContainer, [{ key: "getSelectBox", value: function getSelectBox(props, coordinates) { var x = coordinates.x, y = coordinates.y; var brushStyle = props.brushStyle, brushComponent = props.brushComponent, name = props.name; var brushComponentStyle = brushComponent.props && brushComponent.props.style; var cursor = !props.allowDrag && !props.allowResize ? "auto" : "move"; return x[0] !== x[1] && y[0] !== y[1] ? react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(brushComponent, { key: "".concat(name, "-brush"), width: Math.abs(x[1] - x[0]) || 1, height: Math.abs(y[1] - y[0]) || 1, x: Math.min(x[0], x[1]), y: Math.min(y[0], y[1]), cursor: cursor, style: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, brushComponentStyle, brushStyle) }) : null; } }, { key: "getCursorPointers", value: function getCursorPointers(props) { var cursors = { yProps: "ns-resize", xProps: "ew-resize" }; if (!props.allowResize && props.allowDrag) { cursors.xProps = "move"; cursors.yProps = "move"; } else if (!props.allowResize && !props.allowDrag) { cursors.xProps = "auto"; cursors.yProps = "auto"; } return cursors; } }, { key: "getHandles", value: function getHandles(props, domain) { var handleWidth = props.handleWidth, handleStyle = props.handleStyle, handleComponent = props.handleComponent, name = props.name; var domainBox = _brush_helpers__WEBPACK_IMPORTED_MODULE_5__["default"].getDomainBox(props, domain); var x1 = domainBox.x1, x2 = domainBox.x2, y1 = domainBox.y1, y2 = domainBox.y2; var _BrushHelpers$getHand = _brush_helpers__WEBPACK_IMPORTED_MODULE_5__["default"].getHandles(props, domainBox), top = _BrushHelpers$getHand.top, bottom = _BrushHelpers$getHand.bottom, left = _BrushHelpers$getHand.left, right = _BrushHelpers$getHand.right; var width = Math.abs(x2 - x1) || 1; var height = Math.abs(y2 - y1) || 1; var handleComponentStyle = handleComponent.props && handleComponent.props.style || {}; var style = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, handleComponentStyle, handleStyle); var cursors = this.getCursorPointers(props); var yProps = { style: style, width: width, height: handleWidth, cursor: cursors.yProps }; var xProps = { style: style, width: handleWidth, height: height, cursor: cursors.xProps }; var handleProps = { top: top && lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({ x: top.x1, y: top.y1 }, yProps), bottom: bottom && lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({ x: bottom.x1, y: bottom.y1 }, yProps), left: left && lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({ y: left.y1, x: left.x1 }, xProps), right: right && lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({ y: right.y1, x: right.x1 }, xProps) }; var handles = ["top", "bottom", "left", "right"].reduce(function (memo, curr) { memo = handleProps[curr] ? memo.concat(react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(handleComponent, lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({ key: "".concat(name, "-handle-").concat(curr) }, handleProps[curr]))) : memo; return memo; }, []); return handles.length ? handles : null; } }, { key: "getRect", value: function getRect(props) { var currentDomain = props.currentDomain, cachedBrushDomain = props.cachedBrushDomain; var brushDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props.brushDomain, props.domain); var domain = react_fast_compare__WEBPACK_IMPORTED_MODULE_6___default()(brushDomain, cachedBrushDomain) ? lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, currentDomain, brushDomain) : brushDomain; var coordinates = victory_core__WEBPACK_IMPORTED_MODULE_4__["Selection"].getDomainCoordinates(props, domain); var selectBox = this.getSelectBox(props, coordinates); return selectBox ? [selectBox, this.getHandles(props, domain)] : []; } // Overrides method in VictoryContainer }, { key: "getChildren", value: function getChildren(props) { return _toConsumableArray(react__WEBPACK_IMPORTED_MODULE_3___default.a.Children.toArray(props.children)).concat(_toConsumableArray(this.getRect(props))); } }]); return VictoryBrushContainer; }(base), Object.defineProperty(_class, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryBrushContainer" }), Object.defineProperty(_class, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryContainer"].propTypes, { allowDrag: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, allowDraw: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, allowResize: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, brushComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, brushDimension: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["x", "y"]), brushDomain: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array, y: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array }), brushStyle: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, defaultBrushArea: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["all", "disable", "none", "move"]), disable: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, handleComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, handleStyle: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, handleWidth: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, onBrushCleared: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func, onBrushDomainChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func, onBrushDomainChangeEnd: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func }) }), Object.defineProperty(_class, "defaultProps", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryContainer"].defaultProps, { allowDrag: true, allowDraw: true, allowResize: true, brushComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["Rect"], null), brushStyle: { stroke: "transparent", fill: "black", fillOpacity: 0.1 }, handleComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["Rect"], null), handleStyle: { stroke: "transparent", fill: "transparent" }, handleWidth: 8, mouseMoveThreshold: 0 }) }), Object.defineProperty(_class, "defaultEvents", { configurable: true, enumerable: true, writable: true, value: function (props) { return [{ target: "parent", eventHandlers: { onMouseDown: function (evt, targetProps) { return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__["default"].onMouseDown(evt, targetProps); }, onTouchStart: function (evt, targetProps) { return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__["default"].onMouseDown(evt, targetProps); }, onGlobalMouseMove: function (evt, targetProps) { return props.disable || !targetProps.isPanning && !targetProps.isSelecting ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__["default"].onGlobalMouseMove(evt, targetProps); }, onGlobalTouchMove: function (evt, targetProps) { return props.disable || !targetProps.isPanning && !targetProps.isSelecting ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__["default"].onGlobalMouseMove(evt, targetProps); }, onGlobalMouseUp: function (evt, targetProps) { return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__["default"].onGlobalMouseUp(evt, targetProps); }, onGlobalTouchEnd: function (evt, targetProps) { return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__["default"].onGlobalMouseUp(evt, targetProps); }, onGlobalTouchCancel: function (evt, targetProps) { return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__["default"].onGlobalMouseUp(evt, targetProps); } } }]; } }), _temp; }; /* harmony default export */ __webpack_exports__["default"] = (brushContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryContainer"])); /***/ }), /***/ "../../victory-brush-line/es/index.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-brush-line/es/index.js ***! \***********************************************************************************/ /*! exports provided: VictoryBrushLine */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_brush_line__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-brush-line */ "../../victory-brush-line/es/victory-brush-line.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryBrushLine", function() { return _victory_brush_line__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /***/ }), /***/ "../../victory-brush-line/es/victory-brush-line.js": /*!************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-brush-line/es/victory-brush-line.js ***! \************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return VictoryBrushLine; }); /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js"); /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_7__); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } var SMALL_NUMBER = 1 / Number.MAX_SAFE_INTEGER; var getScale = function (props) { var _props$scale = props.scale, scale = _props$scale === void 0 ? {} : _props$scale, _props$dimension = props.dimension, dimension = _props$dimension === void 0 ? "x" : _props$dimension; if (scale[dimension]) { return scale[dimension]; } var fallbackScale = victory_core__WEBPACK_IMPORTED_MODULE_6__["Scale"].getBaseScale(props, dimension); var range = victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].getRange(props, dimension); var domain = victory_core__WEBPACK_IMPORTED_MODULE_6__["Domain"].getDomainFromProps(props, dimension) || [0, 1]; fallbackScale.range(range).domain(domain); return fallbackScale; }; var getDimension = function (props) { var horizontal = props.horizontal, _props$dimension2 = props.dimension, dimension = _props$dimension2 === void 0 ? "x" : _props$dimension2; if (!horizontal) { return dimension; } return dimension === "x" ? "y" : "x"; }; var toRange = function (props, domain) { var scale = getScale(props); return [scale(Math.min.apply(Math, _toConsumableArray(domain))), scale(Math.max.apply(Math, _toConsumableArray(domain)))]; }; var toDomain = function (props, range) { var scale = getScale(props); return [scale.invert(Math.min.apply(Math, _toConsumableArray(range))), scale.invert(Math.max.apply(Math, _toConsumableArray(range)))]; }; var getFullRange = function (props) { var scale = getScale(props); return scale.range(); }; var getFullDomain = function (props) { var scale = getScale(props); return scale.domain(); }; var withinBound = function (value, bound) { return value >= victory_core__WEBPACK_IMPORTED_MODULE_6__["Collection"].getMinValue(bound) && value <= victory_core__WEBPACK_IMPORTED_MODULE_6__["Collection"].getMaxValue(bound); }; var getBrushDomain = function (brushDomain, fullDomain) { if (brushDomain) { var brushMin = victory_core__WEBPACK_IMPORTED_MODULE_6__["Collection"].getMinValue(brushDomain); var brushMax = victory_core__WEBPACK_IMPORTED_MODULE_6__["Collection"].getMaxValue(brushDomain); var domainMin = victory_core__WEBPACK_IMPORTED_MODULE_6__["Collection"].getMinValue(fullDomain); var domainMax = victory_core__WEBPACK_IMPORTED_MODULE_6__["Collection"].getMaxValue(fullDomain); var defaultMin = brushMin < domainMin ? domainMin : domainMax - SMALL_NUMBER; var defaultMax = brushMax > domainMax ? domainMax : domainMin + SMALL_NUMBER; var min = withinBound(brushMin, fullDomain) ? brushMin : defaultMin; var max = withinBound(brushMax, fullDomain) ? brushMax : defaultMax; return [min, max]; } return fullDomain; }; var getActiveHandle = function (props, position, range) { var width = props.handleWidth / 2; var dimension = getDimension(props); var getHandle = function (type) { var base = { min: dimension === "x" ? Math.min.apply(Math, _toConsumableArray(range)) : Math.max.apply(Math, _toConsumableArray(range)), max: dimension === "x" ? Math.max.apply(Math, _toConsumableArray(range)) : Math.min.apply(Math, _toConsumableArray(range)) }; return [base[type] - width, base[type] + width]; }; var active = ["min", "max"].reduce(function (memo, type) { memo[type] = withinBound(position, getHandle(type)) ? type : undefined; return memo; }, {}); return active.min && active.max ? "both" : active.min || active.max; }; var getMinimumDomain = function () { return [0, SMALL_NUMBER]; }; var panBox = function (props, position) { var brushDomain = props.brushDomain, startPosition = props.startPosition; var range = toRange(props, brushDomain); var fullRange = getFullRange(props); var size = Math.abs(range[1] - range[0]); var globalMin = Math.min.apply(Math, _toConsumableArray(fullRange)); var globalMax = Math.max.apply(Math, _toConsumableArray(fullRange)); var delta = startPosition ? startPosition - position : 0; var min = Math.min.apply(Math, _toConsumableArray(range)) - delta; var max = Math.max.apply(Math, _toConsumableArray(range)) - delta; var constrainedMin = min > globalMax - size ? globalMax - size : Math.max(min, globalMin); var constrainedMax = max < globalMin + size ? globalMin + size : Math.min(max, globalMax); return [constrainedMin, constrainedMax]; }; var fallbackProps = { brushAreaStyle: { stroke: "none", fill: "black", opacity: function (_ref) { var active = _ref.active; return active ? 0.2 : 0.1; } // eslint-disable-line no-magic-numbers }, brushStyle: { pointerEvents: "none", stroke: "none", fill: "black", opacity: function (_ref2) { var active = _ref2.active; return active ? 0.4 : 0.3; } // eslint-disable-line no-magic-numbers }, handleStyle: { pointerEvents: "none", stroke: "none", fill: "none" } }; var VictoryBrushLine = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryBrushLine, _React$Component); function VictoryBrushLine() { _classCallCheck(this, VictoryBrushLine); return _possibleConstructorReturn(this, (VictoryBrushLine.__proto__ || Object.getPrototypeOf(VictoryBrushLine)).apply(this, arguments)); } _createClass(VictoryBrushLine, [{ key: "getRectDimensions", value: function getRectDimensions(props, brushWidth, domain) { var brushDomain = props.brushDomain; var dimension = getDimension(props); domain = domain || getBrushDomain(brushDomain, getFullDomain(props)); var range = toRange(props, domain); var coordinates = dimension === "x" ? { y1: props.y1, y2: props.y2, x1: Math.min.apply(Math, _toConsumableArray(range)), x2: Math.max.apply(Math, _toConsumableArray(range)) } : { x1: props.x1, x2: props.x2, y1: Math.min.apply(Math, _toConsumableArray(range)), y2: Math.max.apply(Math, _toConsumableArray(range)) }; var x1 = coordinates.x1, x2 = coordinates.x2, y1 = coordinates.y1, y2 = coordinates.y2; var offset = { x: dimension === "x" ? 0 : brushWidth / 2, y: dimension === "y" ? 0 : brushWidth / 2 }; var x = Math.min(x1, x2) - offset.x; var y = Math.min(y1, y2) - offset.y; var width = Math.max(x1, x2) + offset.x - x; var height = Math.max(y1, y2) + offset.y - y; return { x: x, y: y, width: width, height: height }; } }, { key: "getHandleDimensions", value: function getHandleDimensions(props) { var handleWidth = props.handleWidth, x1 = props.x1, x2 = props.x2, y1 = props.y1, y2 = props.y2, brushDomain = props.brushDomain; var dimension = getDimension(props); var brushWidth = props.brushWidth || props.width; var domain = getBrushDomain(brushDomain, getFullDomain(props)); var range = toRange(props, domain); var defaultX = Math.min(x1, x2) - brushWidth / 2; var defaultY = Math.min(y1, y2) - brushWidth / 2; var x = { min: dimension === "x" ? Math.min.apply(Math, _toConsumableArray(range)) - handleWidth / 2 : defaultX, max: dimension === "x" ? Math.max.apply(Math, _toConsumableArray(range)) - handleWidth / 2 : defaultX }; var y = { min: dimension === "y" ? Math.max.apply(Math, _toConsumableArray(range)) - handleWidth / 2 : defaultY, max: dimension === "y" ? Math.min.apply(Math, _toConsumableArray(range)) - handleWidth / 2 : defaultY }; var width = dimension === "x" ? handleWidth : brushWidth; var height = dimension === "x" ? brushWidth : handleWidth; return { min: { x: x.min, y: y.min, width: width, height: height }, max: { x: x.max, y: y.max, width: width, height: height } }; } }, { key: "getCursor", value: function getCursor(props) { var _props$activeBrushes = props.activeBrushes, activeBrushes = _props$activeBrushes === void 0 ? {} : _props$activeBrushes; var dimension = getDimension(props); if (activeBrushes.minHandle || activeBrushes.maxHandle) { return dimension === "x" ? "ew-resize" : "ns-resize"; } else if (activeBrushes.brush) { return "move"; } return "crosshair"; } }, { key: "renderHandles", value: function renderHandles(props) { var handleComponent = props.handleComponent, handleStyle = props.handleStyle, id = props.id, brushDomain = props.brushDomain, _props$datum = props.datum, datum = _props$datum === void 0 ? {} : _props$datum, _props$activeBrushes2 = props.activeBrushes, activeBrushes = _props$activeBrushes2 === void 0 ? {} : _props$activeBrushes2; if (!brushDomain) { return null; } var handleDimensions = this.getHandleDimensions(props); var style = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, fallbackProps.handleStyle, handleStyle); var minDatum = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({ handleValue: victory_core__WEBPACK_IMPORTED_MODULE_6__["Collection"].getMinValue(brushDomain) }, datum); var maxDatum = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({ handleValue: victory_core__WEBPACK_IMPORTED_MODULE_6__["Collection"].getMaxValue(brushDomain) }, datum); var minHandleProps = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({ key: "".concat(id, "-min"), style: victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].evaluateStyle(style, { datum: minDatum, active: activeBrushes.minHandle }) }, handleDimensions.min); var maxHandleProps = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({ key: "".concat(id, "-max"), style: victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].evaluateStyle(style, { datum: maxDatum, active: activeBrushes.maxHandle }) }, handleDimensions.max); return [react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(handleComponent, minHandleProps), react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(handleComponent, maxHandleProps)]; } }, { key: "renderBrush", value: function renderBrush(props) { var brushComponent = props.brushComponent, brushStyle = props.brushStyle, _props$activeBrushes3 = props.activeBrushes, activeBrushes = _props$activeBrushes3 === void 0 ? {} : _props$activeBrushes3, _props$datum2 = props.datum, datum = _props$datum2 === void 0 ? {} : _props$datum2, brushDomain = props.brushDomain; if (!brushDomain) { return null; } var brushWidth = props.brushWidth || props.width; var rectDimensions = this.getRectDimensions(props, brushWidth); var baseStyle = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, fallbackProps.brushStyle, brushStyle); var style = victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].evaluateStyle(baseStyle, { datum: datum, active: activeBrushes.brush }); var brushProps = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({ style: style }, rectDimensions); return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(brushComponent, brushProps); } }, { key: "renderBrushArea", value: function renderBrushArea(props) { var brushAreaComponent = props.brushAreaComponent, brushAreaStyle = props.brushAreaStyle, _props$activeBrushes4 = props.activeBrushes, activeBrushes = _props$activeBrushes4 === void 0 ? {} : _props$activeBrushes4, _props$datum3 = props.datum, datum = _props$datum3 === void 0 ? {} : _props$datum3; var brushAreaWidth = props.brushAreaWidth || props.width; var cursor = this.getCursor(props); var rectDimensions = this.getRectDimensions(props, brushAreaWidth, getFullDomain(props)); var baseStyle = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({ cursor: cursor }, fallbackProps.brushAreaStyle, brushAreaStyle); var style = victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].evaluateStyle(baseStyle, { datum: datum, active: activeBrushes.brushArea }); var brushAreaProps = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({ style: style }, rectDimensions); return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(brushAreaComponent, brushAreaProps); } }, { key: "renderLine", value: function renderLine(props) { var filteredProps = lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(props, ["x1", "x2", "y1", "y2", "datum", "scale", "active", "style"]); return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(props.lineComponent, filteredProps); } }, { key: "render", value: function render() { return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("g", this.props.events, this.renderLine(this.props), this.renderBrushArea(this.props), this.renderBrush(this.props), this.renderHandles(this.props)); } }]); return VictoryBrushLine; }(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component); Object.defineProperty(VictoryBrushLine, "propTypes", { configurable: true, enumerable: true, writable: true, value: { allowDrag: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool, allowDraw: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool, allowResize: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool, brushAreaComponent: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.element, brushAreaStyle: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object, brushAreaWidth: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, brushComponent: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.element, brushDimension: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(["x", "y"]), brushDomain: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.array, brushStyle: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object, brushWidth: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, className: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string, dimension: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(["x", "y"]), disable: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool, events: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object, groupComponent: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.element, handleComponent: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.element, handleStyle: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object, handleWidth: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, id: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]), lineComponent: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.element, name: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string, onBrushDomainChange: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func, scale: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object, style: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object, type: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string, width: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number } }); Object.defineProperty(VictoryBrushLine, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { allowDrag: true, allowDraw: true, allowResize: true, brushAreaComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__["Box"], null), brushComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__["Box"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("g", null), handleComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__["Box"], null), handleWidth: 10, lineComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__["LineSegment"], null), width: 10 } }); Object.defineProperty(VictoryBrushLine, "defaultEvents", { configurable: true, enumerable: true, writable: true, value: function (props) { return props.disable ? undefined : [{ target: props.type, eventHandlers: { onMouseEnter: function (evt, targetProps) { evt.preventDefault(); var allowResize = targetProps.allowResize, brushDomain = targetProps.brushDomain; var dimension = getDimension(targetProps); var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_6__["Selection"].getParentSVG(evt); var position = victory_core__WEBPACK_IMPORTED_MODULE_6__["Selection"].getSVGEventCoordinates(evt, parentSVG)[dimension]; var fullDomain = getFullDomain(targetProps); var currentDomain = getBrushDomain(brushDomain, fullDomain); var range = toRange(targetProps, currentDomain); var activeHandle = allowResize && getActiveHandle(targetProps, position, range); var activeBrushes = { brushArea: !targetProps.brushDomain, brush: withinBound(position, range) && !react_fast_compare__WEBPACK_IMPORTED_MODULE_7___default()(fullDomain, currentDomain), minHandle: activeHandle === "min" || activeHandle === "both", maxHandle: activeHandle === "min" || activeHandle === "both" }; return [{ mutation: function () { return { activeBrushes: activeBrushes, brushDomain: targetProps.brushDomain, parentSVG: parentSVG }; } }]; }, onMouseDown: function (evt, targetProps) { evt.preventDefault(); var allowResize = targetProps.allowResize, allowDrag = targetProps.allowDrag, allowDraw = targetProps.allowDraw, activeBrushes = targetProps.activeBrushes, brushDomain = targetProps.brushDomain; var dimension = getDimension(targetProps); // Don't trigger events for static brushes if (!allowResize && !allowDrag) { return []; } var fullDomain = getFullDomain(targetProps); var currentDomain = getBrushDomain(brushDomain, fullDomain); var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_6__["Selection"].getParentSVG(evt); var position = victory_core__WEBPACK_IMPORTED_MODULE_6__["Selection"].getSVGEventCoordinates(evt, parentSVG)[dimension]; var range = toRange(targetProps, currentDomain); var activeHandle = allowResize && getActiveHandle(targetProps, position, range); // If the event occurs in any of the handle regions, start a resize if (activeHandle) { return [{ mutation: function () { return { parentSVG: parentSVG, isSelecting: true, activeHandle: activeHandle, brushDomain: currentDomain, startPosition: position, activeBrushes: activeBrushes }; } }]; } else if (withinBound(position, range) && !react_fast_compare__WEBPACK_IMPORTED_MODULE_7___default()(fullDomain, currentDomain)) { // if the event occurs within a selected region start a panning event, unless the whole // domain is selected return [{ mutation: function () { return { isPanning: allowDrag, startPosition: position, brushDomain: currentDomain, activeBrushes: activeBrushes, parentSVG: parentSVG }; } }]; } else { // if the event occurs outside the region, or if the whole domain is selected, // start a new selection return allowDraw ? [{ mutation: function () { return { isSelecting: allowResize, brushDomain: null, startPosition: position, activeBrushes: activeBrushes, parentSVG: parentSVG }; } }] : []; } }, // eslint-disable-next-line max-statements, complexity onMouseMove: function (evt, targetProps) { var isPanning = targetProps.isPanning, isSelecting = targetProps.isSelecting, allowResize = targetProps.allowResize, allowDrag = targetProps.allowDrag, onBrushDomainChange = targetProps.onBrushDomainChange, brushDomain = targetProps.brushDomain; var dimension = getDimension(targetProps); if (isPanning || isSelecting) { evt.preventDefault(); evt.stopPropagation(); } var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_6__["Selection"].getParentSVG(evt); var position = victory_core__WEBPACK_IMPORTED_MODULE_6__["Selection"].getSVGEventCoordinates(evt, parentSVG)[dimension]; var fullDomain = getFullDomain(targetProps); var domain = getBrushDomain(brushDomain, fullDomain); var initialRange = toRange(targetProps, domain); var activeHandle = getActiveHandle(targetProps, position, initialRange); var activeBrushes = { brushArea: !targetProps.brushDomain, brush: withinBound(position, initialRange) && !react_fast_compare__WEBPACK_IMPORTED_MODULE_7___default()(fullDomain, domain), minHandle: activeHandle === "min" || activeHandle === "both", maxHandle: activeHandle === "max" || activeHandle === "both" }; if (!targetProps.isPanning && !targetProps.isSelecting) { return [{ mutation: function () { return { activeBrushes: activeBrushes, brushDomain: targetProps.brushDomain, parentSVG: parentSVG }; } }]; } if (allowDrag && isPanning) { var fullRange = getFullRange(targetProps); var range = panBox(targetProps, position); var currentDomain = toDomain(targetProps, range); var startPosition = Math.max.apply(Math, _toConsumableArray(range)) >= Math.max.apply(Math, _toConsumableArray(fullRange)) || Math.min.apply(Math, _toConsumableArray(range)) <= Math.min.apply(Math, _toConsumableArray(fullRange)) ? targetProps.startPosition : position; var mutatedProps = { startPosition: startPosition, isPanning: true, brushDomain: currentDomain, activeBrushes: { brush: true }, parentSVG: parentSVG }; if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(onBrushDomainChange)) { onBrushDomainChange(currentDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, mutatedProps, targetProps)); } return [{ mutation: function () { return mutatedProps; } }]; } else if (allowResize && isSelecting) { var _currentDomain = brushDomain || getMinimumDomain(); var _range = toRange(targetProps, _currentDomain); var oppositeHandle = targetProps.activeHandle === "min" ? "max" : "min"; var handle = targetProps.activeHandle && getActiveHandle(targetProps, position, _range) === "both" ? oppositeHandle : targetProps.activeHandle; if (!handle) { _currentDomain = toDomain(targetProps, [targetProps.startPosition, position]); } else { var rangeMax = dimension === "x" ? Math.max.apply(Math, _toConsumableArray(_range)) : Math.min.apply(Math, _toConsumableArray(_range)); var rangeMin = dimension === "x" ? Math.min.apply(Math, _toConsumableArray(_range)) : Math.max.apply(Math, _toConsumableArray(_range)); var min = handle === "max" ? rangeMin : position; var max = handle === "min" ? rangeMax : position; _currentDomain = toDomain(targetProps, [min, max]); } var _mutatedProps = { brushDomain: _currentDomain, startPosition: targetProps.startPosition, isSelecting: isSelecting, activeHandle: handle, parentSVG: parentSVG, activeBrushes: { brush: true, minHandle: activeHandle === "min", maxHandle: activeHandle === "max" } }; if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(onBrushDomainChange)) { onBrushDomainChange(_currentDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, _mutatedProps, targetProps)); } return [{ mutation: function () { return _mutatedProps; } }]; } return []; }, onMouseUp: function (evt, targetProps) { var onBrushDomainChange = targetProps.onBrushDomainChange, brushDomain = targetProps.brushDomain, allowResize = targetProps.allowResize, activeBrushes = targetProps.activeBrushes; // if the mouse hasn't moved since a mouseDown event, select the whole domain region var mutatedProps = { isPanning: false, isSelecting: false, activeHandle: null, startPosition: null, brushDomain: brushDomain, activeBrushes: activeBrushes }; if (allowResize && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(onBrushDomainChange)) { onBrushDomainChange(brushDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, mutatedProps, targetProps)); } return [{ mutation: function () { return mutatedProps; } }]; }, onMouseLeave: function (evt, targetProps) { var brushDomain = targetProps.brushDomain; return [{ mutation: function () { return { isPanning: false, isSelecting: false, activeHandle: null, startPosition: null, brushDomain: brushDomain, activeBrushes: {} }; } }]; } } }]; } }); /***/ }), /***/ "../../victory-candlestick/es/candle.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-candlestick/es/candle.js ***! \*************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } /*eslint no-magic-numbers: ["error", { "ignore": [0, 0.5, 1, 2] }]*/ var getCandleWidth = function (candleWidth, props) { var style = props.style; if (candleWidth) { return lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(candleWidth) ? victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(candleWidth, props) : candleWidth; } else if (style.width) { return style.width; } return candleWidth; }; var getCandleProps = function (props, style) { var id = props.id, x = props.x, close = props.close, open = props.open, horizontal = props.horizontal, candleWidth = props.candleWidth; var candleLength = Math.abs(close - open); return { key: "".concat(id, "-candle"), style: victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].omit(style, ["width"]), x: horizontal ? Math.min(open, close) : x - candleWidth / 2, y: horizontal ? x - candleWidth / 2 : Math.min(open, close), width: horizontal ? candleLength : candleWidth, height: horizontal ? candleWidth : candleLength }; }; var getHighWickProps = function (props, style) { var horizontal = props.horizontal, high = props.high, open = props.open, close = props.close, x = props.x, id = props.id; return { key: "".concat(id, "-highWick"), style: victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].omit(style, ["width"]), x1: horizontal ? high : x, x2: horizontal ? Math.max(open, close) : x, y1: horizontal ? x : high, y2: horizontal ? x : Math.min(open, close) }; }; var getLowWickProps = function (props, style) { var horizontal = props.horizontal, low = props.low, open = props.open, close = props.close, x = props.x, id = props.id; return { key: "".concat(id, "-lowWick"), style: victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].omit(style, ["width"]), x1: horizontal ? Math.min(open, close) : x, x2: horizontal ? low : x, y1: horizontal ? x : Math.max(open, close), y2: horizontal ? x : low }; }; var evaluateProps = function (props) { /** * Potential evaluated props of following must be evaluated in this order: * 1) `style` * 2) `cornerRadius` * * Everything else does not have to be evaluated in a particular order: * `ariaLabel` * `desc` * `id` * `tabIndex` */ var style = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({ stroke: "black" }, props.style), props); var candleWidth = getCandleWidth(props.candleWidth, lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { style: style })); var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.ariaLabel, props); var desc = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.desc, props); var id = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.id, props); var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.tabIndex, props); return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { ariaLabel: ariaLabel, style: style, candleWidth: candleWidth, desc: desc, id: id, tabIndex: tabIndex }); }; var Candle = function (props) { props = evaluateProps(props); var _props = props, ariaLabel = _props.ariaLabel, events = _props.events, groupComponent = _props.groupComponent, clipPath = _props.clipPath, rectComponent = _props.rectComponent, lineComponent = _props.lineComponent, role = _props.role, shapeRendering = _props.shapeRendering, className = _props.className, wickStrokeWidth = _props.wickStrokeWidth, transform = _props.transform, style = _props.style, desc = _props.desc, tabIndex = _props.tabIndex; var wickStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({ strokeWidth: wickStrokeWidth }, style); var sharedProps = _objectSpread({}, events, { "aria-label": ariaLabel, role: role, shapeRendering: shapeRendering, className: className, transform: transform, clipPath: clipPath, desc: desc, tabIndex: tabIndex }); var candleProps = lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()(getCandleProps(props, style), sharedProps); var highWickProps = lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()(getHighWickProps(props, wickStyle), sharedProps); var lowWickProps = lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()(getLowWickProps(props, wickStyle), sharedProps); return react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(groupComponent, {}, [react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(rectComponent, candleProps), react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(lineComponent, highWickProps), react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(lineComponent, lowWickProps)]); }; Candle.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__["CommonProps"].primitiveProps, { candleRatio: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, candleWidth: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), close: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, datum: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object, groupComponent: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.element, high: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, lineComponent: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.element, low: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, open: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, rectComponent: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.element, wickStrokeWidth: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, width: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, x: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number }); Candle.defaultProps = { groupComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("g", null), lineComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__["Line"], null), rectComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__["Rect"], null), role: "presentation", shapeRendering: "auto" }; /* harmony default export */ __webpack_exports__["default"] = (Candle); /***/ }), /***/ "../../victory-candlestick/es/helper-methods.js": /*!*********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-candlestick/es/helper-methods.js ***! \*********************************************************************************************/ /*! exports provided: getBaseProps, getDomain, getData */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBaseProps", function() { return getBaseProps; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDomain", function() { return getDomain; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getData", function() { return getData; }); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js"); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); var TYPES = ["close", "open", "high", "low"]; var getData = function (props) { var accessorTypes = ["x", "high", "low", "close", "open"]; return victory_core__WEBPACK_IMPORTED_MODULE_5__["Data"].formatData(props.data, props, accessorTypes); }; var reduceData = function (dataset, axis, type) { var yDataTypes = { min: "_low", max: "_high" }; var dataType = axis === "x" ? "_x" : yDataTypes[type]; var baseCondition = type === "min" ? Infinity : -Infinity; return dataset.reduce(function (memo, datum) { var current = datum[dataType]; return memo < current && type === "min" || memo > current && type === "max" ? memo : current; }, baseCondition); }; var getDomainFromData = function (props, axis) { var minDomain = victory_core__WEBPACK_IMPORTED_MODULE_5__["Domain"].getMinFromProps(props, axis); var maxDomain = victory_core__WEBPACK_IMPORTED_MODULE_5__["Domain"].getMaxFromProps(props, axis); var dataset = getData(props); if (dataset.length < 1) { return minDomain !== undefined && maxDomain !== undefined ? victory_core__WEBPACK_IMPORTED_MODULE_5__["Domain"].getDomainFromMinMax(minDomain, maxDomain) : undefined; } var min = minDomain !== undefined ? minDomain : reduceData(dataset, axis, "min"); var max = maxDomain !== undefined ? maxDomain : reduceData(dataset, axis, "max"); return victory_core__WEBPACK_IMPORTED_MODULE_5__["Domain"].getDomainFromMinMax(min, max); }; var getDomain = function (props, axis) { return victory_core__WEBPACK_IMPORTED_MODULE_5__["Domain"].createDomainFunction(getDomainFromData)(props, axis); }; var getLabelStyle = function (props, styleObject, namespace) { var component = props["".concat(namespace, "LabelComponent")]; var baseStyle = styleObject["".concat(namespace, "Labels")] || styleObject.labels; if (!victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].isTooltip(component)) { return baseStyle; } var tooltipTheme = props.theme && props.theme.tooltip || {}; return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, tooltipTheme.style, baseStyle); }; var getStyles = function (props, style) { var defaultStyles = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; var width = "100%"; var height = "100%"; if (!style) { return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({ parent: { height: height, width: width } }, defaultStyles); } var defaultParent = defaultStyles.parent || {}; var defaultLabels = defaultStyles.labels || {}; var defaultData = defaultStyles.data || {}; var labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, style.labels, defaultLabels); return { parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, style.parent, defaultParent, { width: width, height: height }), labels: labelStyle, data: lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, style.data, defaultData), openLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, style.openLabels, getLabelStyle(props, defaultStyles, "open"), labelStyle), closeLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, style.closeLabels, getLabelStyle(props, defaultStyles, "close"), labelStyle), lowLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, style.lowLabels, getLabelStyle(props, defaultStyles, "low"), labelStyle), highLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, style.highLabels, getLabelStyle(props, defaultStyles, "high"), labelStyle) }; }; // This method will edit or remove candlestick data points that fall outside of the desired domain // eslint-disable-next-line complexity var formatDataFromDomain = function (datum, domain) { var minDomainX = victory_core__WEBPACK_IMPORTED_MODULE_5__["Collection"].getMinValue(domain.x); var maxDomainX = victory_core__WEBPACK_IMPORTED_MODULE_5__["Collection"].getMaxValue(domain.x); var minDomainY = victory_core__WEBPACK_IMPORTED_MODULE_5__["Collection"].getMinValue(domain.y); var maxDomainY = victory_core__WEBPACK_IMPORTED_MODULE_5__["Collection"].getMaxValue(domain.y); var _x = datum._x, _low = datum._low, _open = datum._open, _close = datum._close, _high = datum._high; // if _x falls outside of min or max if (_x < minDomainX || _x > maxDomainX) _x = null; // if all values fall outside of domain, null the data point if (_low < minDomainY && _open < minDomainY && _close < minDomainY && _high < minDomainY) _low = _open = _close = _high = null; if (_low > maxDomainY && _open > maxDomainY && _close > maxDomainY && _high > maxDomainY) _low = _open = _close = _high = null; return Object.assign({}, datum, { _x: _x, _low: _low, _open: _open, _close: _close, _high: _high }); }; var getCalculatedValues = function (props) { var polar = props.polar; var defaultStyle = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].getDefaultStyles(props, "candlestick"); var style = getStyles(props, props.style, defaultStyle); var data = getData(props); var range = { x: victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].getRange(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].getRange(props, "y") }; var domain = { x: getDomain(props, "x"), y: getDomain(props, "y") }; var scale = { x: victory_core__WEBPACK_IMPORTED_MODULE_5__["Scale"].getBaseScale(props, "x").domain(domain.x).range(props.horizontal ? range.y : range.x), y: victory_core__WEBPACK_IMPORTED_MODULE_5__["Scale"].getBaseScale(props, "y").domain(domain.y).range(props.horizontal ? range.x : range.y) }; var origin = polar ? props.origin || victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].getPolarOrigin(props) : undefined; var defaultOrientation = props.horizontal ? "top" : "right"; var labelOrientation = props.labelOrientation || defaultOrientation; return { domain: domain, data: data, scale: scale, style: style, origin: origin, labelOrientation: labelOrientation }; }; var isTransparent = function (attr) { return attr === "none" || attr === "transparent"; }; var getDataStyles = function (datum, style, props) { style = style || {}; var candleColor = datum._open > datum._close ? props.candleColors.negative : props.candleColors.positive; var fill = style.fill || candleColor; var strokeColor = style.stroke; var stroke = isTransparent(strokeColor) ? fill : strokeColor || "black"; return lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, style, { stroke: stroke, fill: fill }); }; var getText = function (props, type) { var datum = props.datum, index = props.index, labels = props.labels; var propName = "".concat(type, "Labels"); var labelProp = props[propName]; if (!labelProp && !labels) { return null; } else if (labelProp === true || labels === true) { var dataName = "_".concat(type); return "".concat(datum[dataName]); } return Array.isArray(labelProp) ? labelProp[index] : labelProp; }; var getCandleWidth = function (props, style) { var data = props.data, candleWidth = props.candleWidth, scale = props.scale, defaultCandleWidth = props.defaultCandleWidth; if (candleWidth) { return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(candleWidth) ? victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(candleWidth, props) : candleWidth; } else if (style && style.width) { return style.width; } var range = scale.x.range(); var extent = Math.abs(range[1] - range[0]); var candles = data.length + 2; var candleRatio = props.candleRatio || 0.5; var defaultWidth = candleRatio * (data.length < 2 ? defaultCandleWidth : extent / candles); return Math.max(1, defaultWidth); }; var getOrientation = function (labelOrientation) { var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "labels"; return lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(labelOrientation) ? labelOrientation[type] : labelOrientation; }; /* eslint-disable complexity*/ var calculatePlotValues = function (props) { var positions = props.positions, labelStyle = props.labelStyle, x = props.x, horizontal = props.horizontal, computedType = props.computedType, candleWidth = props.candleWidth, orientation = props.orientation; positions.labels = (positions.open + positions.close) / 2; var signX = orientation === "left" ? -1 : 1; var signY = orientation === "top" ? -1 : 1; if (horizontal) { var yValue = x; var xValue = positions[computedType]; var dy = orientation === "top" || orientation === "bottom" ? signY * (candleWidth / 2) + signY * (labelStyle.padding || 0) : 0; var dx = orientation === "top" || orientation === "bottom" ? 0 : signX * (labelStyle.padding || 1); return { yValue: yValue, xValue: xValue, dx: dx, dy: dy }; } else { var _xValue = x; var _yValue = positions[computedType]; var _dy = orientation === "top" || orientation === "bottom" ? signY * (labelStyle.padding || 1) : 0; var _dx = orientation === "top" || orientation === "bottom" ? 0 : signX * (candleWidth / 2) + signX * (labelStyle.padding || 0); return { yValue: _yValue, xValue: _xValue, dx: _dx, dy: _dy }; } }; /* eslint-enable complexity*/ /* eslint-disable max-params*/ var getLabelProps = function (props, text, style, type) { var x = props.x, high = props.high, low = props.low, open = props.open, close = props.close, index = props.index, scale = props.scale, datum = props.datum, data = props.data, horizontal = props.horizontal, candleWidth = props.candleWidth, labelOrientation = props.labelOrientation, theme = props.theme; var component = props["".concat(type, "LabelComponent")] || props.labelComponent; var defaultOrientation = horizontal ? "top" : "right"; var orientation = component.props && component.props.orientation || getOrientation(labelOrientation, type) || defaultOrientation; var positions = { high: high, low: low, open: open, close: close }; var namespace = type ? "".concat(type, "Labels") : "labels"; var labelStyle = style[namespace] || style.labels; var defaultVerticalAnchors = { top: "end", bottom: "start", left: "middle", right: "middle" }; var defaultTextAnchors = { left: "end", right: "start", top: "middle", bottom: "middle" }; var computedType = type ? type : "labels"; var plotProps = { positions: positions, labelStyle: labelStyle, x: x, horizontal: horizontal, computedType: computedType, candleWidth: candleWidth, orientation: orientation }; var _calculatePlotValues = calculatePlotValues(plotProps), yValue = _calculatePlotValues.yValue, xValue = _calculatePlotValues.xValue, dx = _calculatePlotValues.dx, dy = _calculatePlotValues.dy; var labelProps = { style: labelStyle, y: yValue, x: xValue, dx: dx, dy: dy, text: text, index: index, scale: scale, datum: datum, data: data, orientation: orientation, textAnchor: labelStyle.textAnchor || defaultTextAnchors[orientation], verticalAnchor: labelStyle.verticalAnchor || defaultVerticalAnchors[orientation], angle: labelStyle.angle, horizontal: horizontal }; if (!victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].isTooltip(component)) { return labelProps; } var tooltipTheme = theme && theme.tooltip || {}; return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, labelProps, victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].omit(tooltipTheme, ["style"])); }; /* eslint-enable max-params*/ var getBaseProps = function (props, fallbackProps) { // eslint-disable-line max-statements props = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].modifyProps(props, fallbackProps, "candlestick"); var calculatedValues = getCalculatedValues(props); var data = calculatedValues.data, style = calculatedValues.style, scale = calculatedValues.scale, domain = calculatedValues.domain, origin = calculatedValues.origin, labelOrientation = calculatedValues.labelOrientation; var _props = props, groupComponent = _props.groupComponent, width = _props.width, height = _props.height, padding = _props.padding, standalone = _props.standalone, name = _props.name, candleWidth = _props.candleWidth, candleRatio = _props.candleRatio, theme = _props.theme, polar = _props.polar, wickStrokeWidth = _props.wickStrokeWidth, labels = _props.labels, events = _props.events, sharedEvents = _props.sharedEvents, horizontal = _props.horizontal; var initialChildProps = { parent: { domain: domain, scale: scale, width: width, height: height, data: data, standalone: standalone, theme: theme, polar: polar, origin: origin, name: name, style: style.parent, padding: padding, horizontal: horizontal } }; // eslint-disable-next-line complexity return data.reduce(function (childProps, datum, index) { var eventKey = !lodash_isNil__WEBPACK_IMPORTED_MODULE_2___default()(datum.eventKey) ? datum.eventKey : index; var x = scale.x(datum._x1 !== undefined ? datum._x1 : datum._x); datum = formatDataFromDomain(datum, domain); var _datum = datum, _low = _datum._low, _open = _datum._open, _close = _datum._close, _high = _datum._high; var high = scale.y(_high); var close = scale.y(_close); var open = scale.y(_open); var low = scale.y(_low); var dataStyle = getDataStyles(datum, style.data, props); var dataProps = { x: x, high: high, low: low, candleWidth: candleWidth, candleRatio: candleRatio, scale: scale, data: data, datum: datum, groupComponent: groupComponent, index: index, style: dataStyle, width: width, polar: polar, origin: origin, wickStrokeWidth: wickStrokeWidth, open: open, close: close, horizontal: horizontal, labelOrientation: labelOrientation }; dataProps.candleWidth = getCandleWidth(dataProps); var extendedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()(Object.assign({}, dataProps), props); childProps[eventKey] = { data: dataProps }; if (labels) { var text = victory_core__WEBPACK_IMPORTED_MODULE_5__["LabelHelpers"].getText(props, datum, index); if (text !== undefined && text !== null || labels && (events || sharedEvents)) { childProps[eventKey].labels = getLabelProps(extendedProps, text, style); } } TYPES.forEach(function (type) { var labelText = getText(extendedProps, type); var labelProp = props.labels || props["".concat(type, "Labels")]; if (labelText !== null && labelText !== undefined || labelProp && (events || sharedEvents)) { var target = "".concat(type, "Labels"); childProps[eventKey][target] = getLabelProps(extendedProps, labelText, style, type); } }); return childProps; }, initialChildProps); }; /***/ }), /***/ "../../victory-candlestick/es/index.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-candlestick/es/index.js ***! \************************************************************************************/ /*! exports provided: VictoryCandlestick, Candle */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_candlestick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-candlestick */ "../../victory-candlestick/es/victory-candlestick.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryCandlestick", function() { return _victory_candlestick__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _candle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./candle */ "../../victory-candlestick/es/candle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Candle", function() { return _candle__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /***/ }), /***/ "../../victory-candlestick/es/victory-candlestick.js": /*!**************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-candlestick/es/victory-candlestick.js ***! \**************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/flatten */ "../../../node_modules/lodash/flatten.js"); /* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_flatten__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var _candle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./candle */ "../../victory-candlestick/es/candle.js"); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helper-methods */ "../../victory-candlestick/es/helper-methods.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /*eslint-disable no-magic-numbers */ var fallbackProps = { width: 450, height: 300, padding: 50, candleColors: { positive: "#ffffff", negative: "#252525" } }; var options = { components: [{ name: "lowLabels" }, { name: "highLabels" }, { name: "openLabels" }, { name: "closeLabels" }, { name: "labels" }, { name: "data" }, { name: "parent", index: "parent" }] }; var defaultData = [{ x: new Date(2016, 6, 1), open: 5, close: 10, high: 15, low: 0 }, { x: new Date(2016, 6, 2), open: 10, close: 15, high: 20, low: 5 }, { x: new Date(2016, 6, 3), open: 15, close: 20, high: 25, low: 10 }, { x: new Date(2016, 6, 4), open: 20, close: 25, high: 30, low: 15 }, { x: new Date(2016, 6, 5), open: 25, close: 30, high: 35, low: 20 }, { x: new Date(2016, 6, 6), open: 30, close: 35, high: 40, low: 25 }, { x: new Date(2016, 6, 7), open: 35, close: 40, high: 45, low: 30 }, { x: new Date(2016, 6, 8), open: 40, close: 45, high: 50, low: 35 }]; /*eslint-enable no-magic-numbers */ var datumHasXandY = function (datum) { return !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._y); }; var VictoryCandlestick = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryCandlestick, _React$Component); function VictoryCandlestick() { _classCallCheck(this, VictoryCandlestick); return _possibleConstructorReturn(this, (VictoryCandlestick.__proto__ || Object.getPrototypeOf(VictoryCandlestick)).apply(this, arguments)); } _createClass(VictoryCandlestick, [{ key: "shouldAnimate", // Overridden in native versions value: function shouldAnimate() { return !!this.props.animate; } }, { key: "shouldRenderDatum", value: function shouldRenderDatum(datum) { return !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._high) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._low) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._close) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._open); } }, { key: "renderCandleData", value: function renderCandleData(props) { var _this = this; var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY; var dataComponent = props.dataComponent, labelComponent = props.labelComponent, groupComponent = props.groupComponent; var types = ["close", "open", "low", "high"]; var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) { var dataProps = _this.getComponentProps(dataComponent, "data", index); if (shouldRenderDatum(dataProps.datum)) { validDataComponents.push(react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(dataComponent, dataProps)); } return validDataComponents; }, []); var labelComponents = lodash_flatten__WEBPACK_IMPORTED_MODULE_0___default()(types.map(function (type) { var components = _this.dataKeys.map(function (key, index) { var name = "".concat(type, "Labels"); var baseComponent = props["".concat(type, "LabelComponent")]; var labelProps = _this.getComponentProps(baseComponent, name, index); if (labelProps.text !== undefined && labelProps.text !== null) { return react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(baseComponent, labelProps); } return undefined; }); return components.filter(Boolean); })); var labelsComponents = this.dataKeys.map(function (_dataKey, index) { var labelProps = _this.getComponentProps(labelComponent, "labels", index); if (labelProps.text !== undefined && labelProps.text !== null) { return react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(labelComponent, labelProps); } return undefined; }).filter(Boolean); var children = _toConsumableArray(dataComponents).concat(_toConsumableArray(labelComponents), _toConsumableArray(labelsComponents)); return this.renderContainer(groupComponent, children); } }, { key: "render", value: function render() { var animationWhitelist = VictoryCandlestick.animationWhitelist, role = VictoryCandlestick.role; var props = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].modifyProps(this.props, fallbackProps, role); if (this.shouldAnimate()) { return this.animateComponent(props, animationWhitelist); } var children = this.renderCandleData(props, this.shouldRenderDatum); return props.standalone ? this.renderContainer(props.containerComponent, children) : children; } }]); return VictoryCandlestick; }(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component); Object.defineProperty(VictoryCandlestick, "animationWhitelist", { configurable: true, enumerable: true, writable: true, value: ["data", "domain", "height", "padding", "samples", "size", "style", "width"] }); Object.defineProperty(VictoryCandlestick, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryCandlestick" }); Object.defineProperty(VictoryCandlestick, "role", { configurable: true, enumerable: true, writable: true, value: "candlestick" }); Object.defineProperty(VictoryCandlestick, "defaultTransitions", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_4__["DefaultTransitions"].discreteTransitions() }); Object.defineProperty(VictoryCandlestick, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__["CommonProps"].baseProps, victory_core__WEBPACK_IMPORTED_MODULE_4__["CommonProps"].dataProps, { candleColors: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({ positive: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, negative: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string }), candleRatio: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, candleWidth: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number]), close: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string)]), closeLabelComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, closeLabels: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool]), events: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({ target: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["data", "labels", "open", "openLabels", "close", "closeLabels", "low", "lowLabels", "high", "highLabels"]), eventKey: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string]), eventHandlers: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object })), high: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string)]), highLabelComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, highLabels: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool]), labelOrientation: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["top", "bottom", "left", "right"]), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({ open: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["top", "bottom", "left", "right"]), close: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["top", "bottom", "left", "right"]), low: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["top", "bottom", "left", "right"]), high: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["top", "bottom", "left", "right"]) })]), low: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string)]), lowLabelComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, lowLabels: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool]), open: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string)]), openLabelComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, openLabels: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool]), style: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({ data: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, labels: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, close: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, closeLabels: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, open: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, openLabels: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, high: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, highLabels: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, low: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, lowLabels: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object }), wickStrokeWidth: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number }) }); Object.defineProperty(VictoryCandlestick, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { defaultCandleWidth: 8, containerComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryContainer"], null), data: defaultData, dataComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_candle__WEBPACK_IMPORTED_MODULE_5__["default"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("g", { role: "presentation" }), labelComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], null), highLabelComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], null), lowLabelComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], null), openLabelComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], null), closeLabelComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], null), samples: 50, sortOrder: "ascending", standalone: true, theme: victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryTheme"].grayscale } }); Object.defineProperty(VictoryCandlestick, "getDomain", { configurable: true, enumerable: true, writable: true, value: _helper_methods__WEBPACK_IMPORTED_MODULE_6__["getDomain"] }); Object.defineProperty(VictoryCandlestick, "getData", { configurable: true, enumerable: true, writable: true, value: _helper_methods__WEBPACK_IMPORTED_MODULE_6__["getData"] }); Object.defineProperty(VictoryCandlestick, "getBaseProps", { configurable: true, enumerable: true, writable: true, value: function (props) { return Object(_helper_methods__WEBPACK_IMPORTED_MODULE_6__["getBaseProps"])(props, fallbackProps); } }); Object.defineProperty(VictoryCandlestick, "expectedComponents", { configurable: true, enumerable: true, writable: true, value: ["openLabelComponent", "closeLabelComponent", "highLabelComponent", "lowLabelComponent", "dataComponent", "labelComponent", "groupComponent", "containerComponent"] }); /* harmony default export */ __webpack_exports__["default"] = (Object(victory_core__WEBPACK_IMPORTED_MODULE_4__["addEvents"])(VictoryCandlestick, options)); /***/ }), /***/ "../../victory-chart/es/helper-methods.js": /*!***************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-chart/es/helper-methods.js ***! \***************************************************************************************/ /*! exports provided: getBackgroundWithProps, getChildren, getCalculatedProps, getChildComponents */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBackgroundWithProps", function() { return getBackgroundWithProps; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getChildren", function() { return getChildren; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCalculatedProps", function() { return getCalculatedProps; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getChildComponents", function() { return getChildComponents; }); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } /* eslint-disable func-style */ /* eslint-disable no-use-before-define */ var fallbackProps = { width: 450, height: 300, padding: 50 }; function getAxisProps(child, props, calculatedProps) { var domain = calculatedProps.domain, scale = calculatedProps.scale, stringMap = calculatedProps.stringMap, categories = calculatedProps.categories, horizontal = calculatedProps.horizontal; return { stringMap: stringMap, horizontal: horizontal, categories: categories, startAngle: props.startAngle, endAngle: props.endAngle, innerRadius: props.innerRadius, domain: domain, scale: scale }; } function getBackgroundWithProps(props, calculatedProps) { var backgroundElement = props.backgroundComponent; var height = props.polar ? calculatedProps.range.y[1] : calculatedProps.range.y[0] - calculatedProps.range.y[1]; var width = calculatedProps.range.x[1] - calculatedProps.range.x[0]; var xScale = props.horizontal ? calculatedProps.scale.y.range()[0] : calculatedProps.scale.x.range()[0]; var yScale = props.horizontal ? calculatedProps.scale.x.range()[1] : calculatedProps.scale.y.range()[1]; var xCoordinate = props.polar ? calculatedProps.origin.x : xScale; var yCoordinate = props.polar ? calculatedProps.origin.y : yScale; var parentName = props.name || "chart"; var backgroundProps = { height: height, polar: props.polar, scale: calculatedProps.scale, style: props.style.background, x: xCoordinate, y: yCoordinate, key: "".concat(parentName, "-background"), width: width }; return react__WEBPACK_IMPORTED_MODULE_2___default.a.cloneElement(backgroundElement, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundElement.props, backgroundProps)); } function getChildProps(child, props, calculatedProps) { var axisChild = victory_core__WEBPACK_IMPORTED_MODULE_3__["Axis"].findAxisComponents([child]); if (axisChild.length > 0) { return getAxisProps(axisChild[0], props, calculatedProps); } var categories = calculatedProps.categories, domain = calculatedProps.domain, range = calculatedProps.range, scale = calculatedProps.scale, stringMap = calculatedProps.stringMap, horizontal = calculatedProps.horizontal; return { categories: categories, domain: domain, range: range, scale: scale, stringMap: stringMap, horizontal: horizontal }; } function getStyles(props) { var styleProps = props.style && props.style.parent; return { parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, styleProps, { height: "100%", width: "100%", userSelect: "none" }) }; } function getCalculatedProps(props, childComponents) { var style = getStyles(props); props = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].modifyProps(props, fallbackProps, "chart"); var _props = props, horizontal = _props.horizontal, polar = _props.polar; var allStrings = victory_core__WEBPACK_IMPORTED_MODULE_3__["Wrapper"].getStringsFromChildren(props, childComponents); var categories = victory_core__WEBPACK_IMPORTED_MODULE_3__["Wrapper"].getCategories(props, childComponents, allStrings); var stringMap = createStringMap(props, childComponents, allStrings); var domain = { x: getDomain(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { categories: categories }), "x", childComponents), y: getDomain(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { categories: categories }), "y", childComponents) }; var range = { x: victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getRange(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getRange(props, "y") }; var baseScale = { x: victory_core__WEBPACK_IMPORTED_MODULE_3__["Scale"].getScaleFromProps(props, "x") || victory_core__WEBPACK_IMPORTED_MODULE_3__["Wrapper"].getScale(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_3__["Scale"].getScaleFromProps(props, "y") || victory_core__WEBPACK_IMPORTED_MODULE_3__["Wrapper"].getScale(props, "y") }; var scale = { x: baseScale.x.domain(domain.x).range(horizontal ? range.y : range.x), y: baseScale.y.domain(domain.y).range(horizontal ? range.x : range.y) }; var origin = polar ? victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getPolarOrigin(props) : victory_core__WEBPACK_IMPORTED_MODULE_3__["Axis"].getOrigin(domain); var padding = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getPadding(props); return { categories: categories, domain: domain, range: range, horizontal: horizontal, scale: scale, stringMap: stringMap, style: style, origin: origin, padding: padding }; } function getChildren(props, childComponents, calculatedProps) { childComponents = childComponents || getChildComponents(props); calculatedProps = calculatedProps || getCalculatedProps(props, childComponents); var baseStyle = calculatedProps.style.parent; var height = props.height, polar = props.polar, theme = props.theme, width = props.width; var _calculatedProps = calculatedProps, origin = _calculatedProps.origin, horizontal = _calculatedProps.horizontal; var parentName = props.name || "chart"; return childComponents.map(function (child, index) { var role = child.type && child.type.role; var style = Array.isArray(child.props.style) ? child.props.style : lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, child.props.style, { parent: baseStyle }); var childProps = getChildProps(child, props, calculatedProps); var name = child.props.name || "".concat(parentName, "-").concat(role, "-").concat(index); var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({ horizontal: horizontal, height: height, polar: polar, theme: theme, width: width, style: style, name: name, origin: polar ? origin : undefined, padding: calculatedProps.padding, key: "".concat(name, "-key-").concat(index), standalone: false }, childProps); return react__WEBPACK_IMPORTED_MODULE_2___default.a.cloneElement(child, newProps); }); } var getChildComponents = function (props, defaultAxes) { var childComponents = react__WEBPACK_IMPORTED_MODULE_2___default.a.Children.toArray(props.children); var newChildComponents = _toConsumableArray(childComponents); if (childComponents.length === 0) { newChildComponents.push(defaultAxes.independent, defaultAxes.dependent); } else { var axisComponents = { dependent: victory_core__WEBPACK_IMPORTED_MODULE_3__["Axis"].getAxisComponentsWithParent(childComponents, "dependent"), independent: victory_core__WEBPACK_IMPORTED_MODULE_3__["Axis"].getAxisComponentsWithParent(childComponents, "independent") }; if (axisComponents.dependent.length === 0 && axisComponents.independent.length === 0) { newChildComponents = props.prependDefaultAxes ? [defaultAxes.independent, defaultAxes.dependent].concat(newChildComponents) : newChildComponents.concat([defaultAxes.independent, defaultAxes.dependent]); } } return newChildComponents; }; var getDomain = function (props, axis, childComponents) { childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_2___default.a.Children.toArray(props.children); var domain = victory_core__WEBPACK_IMPORTED_MODULE_3__["Wrapper"].getDomain(props, axis, childComponents); var axisComponent = victory_core__WEBPACK_IMPORTED_MODULE_3__["Axis"].getAxisComponent(childComponents, axis); var invertDomain = axisComponent && axisComponent.props && axisComponent.props.invertAxis; return invertDomain ? domain.concat().reverse() : domain; }; var createStringMap = function (props, childComponents, allStrings) { var x = !allStrings.x || allStrings.x.length === 0 ? null : allStrings.x.reduce(function (memo, string, index) { memo[string] = index + 1; return memo; }, {}); var y = !allStrings.y || allStrings.y.length === 0 ? null : allStrings.y.reduce(function (memo, string, index) { memo[string] = index + 1; return memo; }, {}); return { x: x, y: y }; }; /***/ }), /***/ "../../victory-chart/es/index.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-chart/es/index.js ***! \******************************************************************************/ /*! exports provided: VictoryChart */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_chart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-chart */ "../../victory-chart/es/victory-chart.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryChart", function() { return _victory_chart__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /***/ }), /***/ "../../victory-chart/es/victory-chart.js": /*!**************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-chart/es/victory-chart.js ***! \**************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return VictoryChart; }); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js"); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var victory_shared_events__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-shared-events */ "../../victory-shared-events/es/index.js"); /* harmony import */ var victory_axis__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-axis */ "../../victory-axis/es/index.js"); /* harmony import */ var victory_polar_axis__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-polar-axis */ "../../victory-polar-axis/es/index.js"); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./helper-methods */ "../../victory-chart/es/helper-methods.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_10__); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } var fallbackProps = { width: 450, height: 300, padding: 50 }; var VictoryChart = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryChart, _React$Component); function VictoryChart(props) { var _this; _classCallCheck(this, VictoryChart); _this = _possibleConstructorReturn(this, (VictoryChart.__proto__ || Object.getPrototypeOf(VictoryChart)).call(this, props)); _this.state = {}; if (props.animate) { _this.state = { nodesShouldLoad: false, nodesDoneLoad: false, animating: true }; _this.setAnimationState = victory_core__WEBPACK_IMPORTED_MODULE_5__["Wrapper"].setAnimationState.bind(_assertThisInitialized(_this)); } return _this; } _createClass(VictoryChart, [{ key: "shouldComponentUpdate", value: function shouldComponentUpdate(nextProps) { if (this.props.animate) { if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(this.props, nextProps)) { this.setAnimationState(this.props, nextProps); return false; } } return true; } }, { key: "getNewChildren", value: function getNewChildren(props, childComponents, calculatedProps) { var children = Object(_helper_methods__WEBPACK_IMPORTED_MODULE_9__["getChildren"])(props, childComponents, calculatedProps); var getAnimationProps = victory_core__WEBPACK_IMPORTED_MODULE_5__["Wrapper"].getAnimationProps.bind(this); var newChildren = children.map(function (child, index) { var childProps = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({ animate: getAnimationProps(props, child, index) }, child.props); return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(child, childProps); }); if (props.style && props.style.background) { var backgroundComponent = Object(_helper_methods__WEBPACK_IMPORTED_MODULE_9__["getBackgroundWithProps"])(props, calculatedProps); newChildren.unshift(backgroundComponent); } return newChildren; } }, { key: "renderContainer", value: function renderContainer(containerComponent, props) { var containerProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, containerComponent.props, props); return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(containerComponent, containerProps); } }, { key: "getContainerProps", value: function getContainerProps(props, calculatedProps) { var width = props.width, height = props.height, standalone = props.standalone, theme = props.theme, polar = props.polar, name = props.name; var domain = calculatedProps.domain, scale = calculatedProps.scale, style = calculatedProps.style, origin = calculatedProps.origin, radius = calculatedProps.radius, horizontal = calculatedProps.horizontal; return { domain: domain, scale: scale, width: width, height: height, standalone: standalone, theme: theme, style: style.parent, horizontal: horizontal, name: name, polar: polar, radius: radius, origin: polar ? origin : undefined }; } }, { key: "render", value: function render() { var props = this.state && this.state.nodesWillExit ? this.state.oldProps || this.props : this.props; var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].modifyProps(props, fallbackProps, "chart"); var eventKey = modifiedProps.eventKey, containerComponent = modifiedProps.containerComponent, groupComponent = modifiedProps.groupComponent, standalone = modifiedProps.standalone, externalEventMutations = modifiedProps.externalEventMutations; var axes = props.polar ? modifiedProps.defaultPolarAxes : modifiedProps.defaultAxes; var childComponents = Object(_helper_methods__WEBPACK_IMPORTED_MODULE_9__["getChildComponents"])(modifiedProps, axes); var calculatedProps = Object(_helper_methods__WEBPACK_IMPORTED_MODULE_9__["getCalculatedProps"])(modifiedProps, childComponents); var newChildren = this.getNewChildren(modifiedProps, childComponents, calculatedProps); var containerProps = standalone ? this.getContainerProps(modifiedProps, calculatedProps) : {}; var container = standalone ? this.renderContainer(containerComponent, containerProps) : groupComponent; var events = victory_core__WEBPACK_IMPORTED_MODULE_5__["Wrapper"].getAllEvents(props); if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events)) { return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_shared_events__WEBPACK_IMPORTED_MODULE_6__["VictorySharedEvents"], { container: container, eventKey: eventKey, events: events, externalEventMutations: externalEventMutations }, newChildren); } return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(container, container.props, newChildren); } }]); return VictoryChart; }(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component); Object.defineProperty(VictoryChart, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryChart" }); Object.defineProperty(VictoryChart, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__["CommonProps"].baseProps, { backgroundComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node]), defaultAxes: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({ independent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, dependent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element }), defaultPolarAxes: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({ independent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, dependent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element }), endAngle: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, innerRadius: victory_core__WEBPACK_IMPORTED_MODULE_5__["PropTypes"].nonNegative, prependDefaultAxes: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, startAngle: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number }) }); Object.defineProperty(VictoryChart, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { backgroundComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__["Background"], null), containerComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__["VictoryContainer"], null), defaultAxes: { independent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_axis__WEBPACK_IMPORTED_MODULE_7__["VictoryAxis"], null), dependent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_axis__WEBPACK_IMPORTED_MODULE_7__["VictoryAxis"], { dependentAxis: true }) }, defaultPolarAxes: { independent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_polar_axis__WEBPACK_IMPORTED_MODULE_8__["VictoryPolarAxis"], null), dependent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_polar_axis__WEBPACK_IMPORTED_MODULE_8__["VictoryPolarAxis"], { dependentAxis: true }) }, groupComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("g", null), standalone: true, theme: victory_core__WEBPACK_IMPORTED_MODULE_5__["VictoryTheme"].grayscale } }); Object.defineProperty(VictoryChart, "expectedComponents", { configurable: true, enumerable: true, writable: true, value: ["groupComponent", "containerComponent"] }); /***/ }), /***/ "../../victory-core/es/index.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/index.js ***! \*****************************************************************************/ /*! exports provided: VictoryAccessibleGroup, VictoryAnimation, VictoryContainer, VictoryLabel, VictoryTransition, VictoryClipContainer, VictoryTheme, VictoryPortal, Portal, Arc, Background, Border, Box, Circle, ClipPath, Line, LineSegment, Path, Point, Rect, Text, TSpan, Whisker, addEvents, Collection, Data, DefaultTransitions, Domain, Events, Helpers, Immutable, LabelHelpers, Log, PropTypes, Scale, Selection, Style, TextSize, Timer, Transitions, CommonProps, Wrapper, Axis, TimerContext, PortalContext */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_accessible_group_victory_accessible_group__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-accessible-group/victory-accessible-group */ "../../victory-core/es/victory-accessible-group/victory-accessible-group.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryAccessibleGroup", function() { return _victory_accessible_group_victory_accessible_group__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryAnimation", function() { return _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _victory_container_victory_container__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./victory-container/victory-container */ "../../victory-core/es/victory-container/victory-container.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryContainer", function() { return _victory_container_victory_container__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _victory_label_victory_label__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./victory-label/victory-label */ "../../victory-core/es/victory-label/victory-label.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryLabel", function() { return _victory_label_victory_label__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./victory-transition/victory-transition */ "../../victory-core/es/victory-transition/victory-transition.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryTransition", function() { return _victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _victory_clip_container_victory_clip_container__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./victory-clip-container/victory-clip-container */ "../../victory-core/es/victory-clip-container/victory-clip-container.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryClipContainer", function() { return _victory_clip_container_victory_clip_container__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony import */ var _victory_theme_victory_theme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./victory-theme/victory-theme */ "../../victory-core/es/victory-theme/victory-theme.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryTheme", function() { return _victory_theme_victory_theme__WEBPACK_IMPORTED_MODULE_6__["default"]; }); /* harmony import */ var _victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./victory-portal/victory-portal */ "../../victory-core/es/victory-portal/victory-portal.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryPortal", function() { return _victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_7__["default"]; }); /* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Portal", function() { return _victory_portal_portal__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony import */ var _victory_primitives_arc__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./victory-primitives/arc */ "../../victory-core/es/victory-primitives/arc.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Arc", function() { return _victory_primitives_arc__WEBPACK_IMPORTED_MODULE_9__["default"]; }); /* harmony import */ var _victory_primitives_background__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./victory-primitives/background */ "../../victory-core/es/victory-primitives/background.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Background", function() { return _victory_primitives_background__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony import */ var _victory_primitives_border__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./victory-primitives/border */ "../../victory-core/es/victory-primitives/border.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Border", function() { return _victory_primitives_border__WEBPACK_IMPORTED_MODULE_11__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Box", function() { return _victory_primitives_border__WEBPACK_IMPORTED_MODULE_11__["default"]; }); /* harmony import */ var _victory_primitives_circle__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./victory-primitives/circle */ "../../victory-core/es/victory-primitives/circle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Circle", function() { return _victory_primitives_circle__WEBPACK_IMPORTED_MODULE_12__["default"]; }); /* harmony import */ var _victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./victory-primitives/clip-path */ "../../victory-core/es/victory-primitives/clip-path.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClipPath", function() { return _victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_13__["default"]; }); /* harmony import */ var _victory_primitives_line__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./victory-primitives/line */ "../../victory-core/es/victory-primitives/line.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Line", function() { return _victory_primitives_line__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /* harmony import */ var _victory_primitives_line_segment__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./victory-primitives/line-segment */ "../../victory-core/es/victory-primitives/line-segment.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LineSegment", function() { return _victory_primitives_line_segment__WEBPACK_IMPORTED_MODULE_15__["default"]; }); /* harmony import */ var _victory_primitives_path__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./victory-primitives/path */ "../../victory-core/es/victory-primitives/path.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Path", function() { return _victory_primitives_path__WEBPACK_IMPORTED_MODULE_16__["default"]; }); /* harmony import */ var _victory_primitives_point__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./victory-primitives/point */ "../../victory-core/es/victory-primitives/point.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Point", function() { return _victory_primitives_point__WEBPACK_IMPORTED_MODULE_17__["default"]; }); /* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Rect", function() { return _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_18__["default"]; }); /* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./victory-primitives/text */ "../../victory-core/es/victory-primitives/text.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Text", function() { return _victory_primitives_text__WEBPACK_IMPORTED_MODULE_19__["default"]; }); /* harmony import */ var _victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./victory-primitives/tspan */ "../../victory-core/es/victory-primitives/tspan.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TSpan", function() { return _victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_20__["default"]; }); /* harmony import */ var _victory_primitives_whisker__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./victory-primitives/whisker */ "../../victory-core/es/victory-primitives/whisker.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Whisker", function() { return _victory_primitives_whisker__WEBPACK_IMPORTED_MODULE_21__["default"]; }); /* harmony import */ var _victory_util_add_events__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./victory-util/add-events */ "../../victory-core/es/victory-util/add-events.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "addEvents", function() { return _victory_util_add_events__WEBPACK_IMPORTED_MODULE_22__["default"]; }); /* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./victory-util/collection */ "../../victory-core/es/victory-util/collection.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Collection", function() { return _victory_util_collection__WEBPACK_IMPORTED_MODULE_23__["default"]; }); /* harmony import */ var _victory_util_data__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./victory-util/data */ "../../victory-core/es/victory-util/data.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Data", function() { return _victory_util_data__WEBPACK_IMPORTED_MODULE_24__["default"]; }); /* harmony import */ var _victory_util_default_transitions__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./victory-util/default-transitions */ "../../victory-core/es/victory-util/default-transitions.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultTransitions", function() { return _victory_util_default_transitions__WEBPACK_IMPORTED_MODULE_25__["default"]; }); /* harmony import */ var _victory_util_domain__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./victory-util/domain */ "../../victory-core/es/victory-util/domain.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Domain", function() { return _victory_util_domain__WEBPACK_IMPORTED_MODULE_26__["default"]; }); /* harmony import */ var _victory_util_events__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./victory-util/events */ "../../victory-core/es/victory-util/events.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Events", function() { return _victory_util_events__WEBPACK_IMPORTED_MODULE_27__["default"]; }); /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Helpers", function() { return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_28__["default"]; }); /* harmony import */ var _victory_util_immutable__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./victory-util/immutable */ "../../victory-core/es/victory-util/immutable.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Immutable", function() { return _victory_util_immutable__WEBPACK_IMPORTED_MODULE_29__["default"]; }); /* harmony import */ var _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./victory-util/label-helpers */ "../../victory-core/es/victory-util/label-helpers.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LabelHelpers", function() { return _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_30__["default"]; }); /* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./victory-util/log */ "../../victory-core/es/victory-util/log.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Log", function() { return _victory_util_log__WEBPACK_IMPORTED_MODULE_31__["default"]; }); /* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropTypes", function() { return _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_32__["default"]; }); /* harmony import */ var _victory_util_scale__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./victory-util/scale */ "../../victory-core/es/victory-util/scale.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Scale", function() { return _victory_util_scale__WEBPACK_IMPORTED_MODULE_33__["default"]; }); /* harmony import */ var _victory_util_selection__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./victory-util/selection */ "../../victory-core/es/victory-util/selection.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Selection", function() { return _victory_util_selection__WEBPACK_IMPORTED_MODULE_34__["default"]; }); /* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./victory-util/style */ "../../victory-core/es/victory-util/style.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Style", function() { return _victory_util_style__WEBPACK_IMPORTED_MODULE_35__["default"]; }); /* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextSize", function() { return _victory_util_textsize__WEBPACK_IMPORTED_MODULE_36__["default"]; }); /* harmony import */ var _victory_util_timer__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./victory-util/timer */ "../../victory-core/es/victory-util/timer.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Timer", function() { return _victory_util_timer__WEBPACK_IMPORTED_MODULE_37__["default"]; }); /* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Transitions", function() { return _victory_util_transitions__WEBPACK_IMPORTED_MODULE_38__["default"]; }); /* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommonProps", function() { return _victory_util_common_props__WEBPACK_IMPORTED_MODULE_39__["default"]; }); /* harmony import */ var _victory_util_wrapper__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./victory-util/wrapper */ "../../victory-core/es/victory-util/wrapper.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Wrapper", function() { return _victory_util_wrapper__WEBPACK_IMPORTED_MODULE_40__["default"]; }); /* harmony import */ var _victory_util_axis__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./victory-util/axis */ "../../victory-core/es/victory-util/axis.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Axis", function() { return _victory_util_axis__WEBPACK_IMPORTED_MODULE_41__["default"]; }); /* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimerContext", function() { return _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_42__["default"]; }); /* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PortalContext", function() { return _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_43__["default"]; }); /***/ }), /***/ "../../victory-core/es/victory-accessible-group/victory-accessible-group.js": /*!*************************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-accessible-group/victory-accessible-group.js ***! \*************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var VictoryAccessibleGroup = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryAccessibleGroup, _React$Component); function VictoryAccessibleGroup() { _classCallCheck(this, VictoryAccessibleGroup); return _possibleConstructorReturn(this, (VictoryAccessibleGroup.__proto__ || Object.getPrototypeOf(VictoryAccessibleGroup)).apply(this, arguments)); } _createClass(VictoryAccessibleGroup, [{ key: "render", value: function render() { var _props = this.props, desc = _props.desc, children = _props.children, className = _props.className, tabIndex = _props.tabIndex; var descId = desc && (this.props["aria-describedby"] || desc.split(" ").join("-")); return desc ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("g", { "aria-label": this.props["aria-label"], "aria-describedby": descId, className: className, tabIndex: tabIndex }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("desc", { id: descId }, desc), children) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("g", { "aria-label": this.props["aria-label"], "aria-describedby": this.props["aria-describedby"], className: className, tabIndex: tabIndex }, children); } }]); return VictoryAccessibleGroup; }(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); Object.defineProperty(VictoryAccessibleGroup, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryAccessibleGroup" }); Object.defineProperty(VictoryAccessibleGroup, "propTypes", { configurable: true, enumerable: true, writable: true, value: { "aria-describedby": prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, "aria-label": prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node]), className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, desc: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number } }); Object.defineProperty(VictoryAccessibleGroup, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { className: "VictoryAccessibleGroup" } }); /* harmony default export */ __webpack_exports__["default"] = (VictoryAccessibleGroup); /***/ }), /***/ "../../victory-core/es/victory-animation/util.js": /*!**********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-animation/util.js ***! \**********************************************************************************************/ /*! exports provided: isInterpolatable, interpolateImmediate, interpolateFunction, interpolateObject, interpolateString, victoryInterpolator */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isInterpolatable", function() { return isInterpolatable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateImmediate", function() { return interpolateImmediate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateFunction", function() { return interpolateFunction; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateObject", function() { return interpolateObject; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateString", function() { return interpolateString; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "victoryInterpolator", function() { return victoryInterpolator; }); /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js"); /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js"); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../../node_modules/d3-interpolate/src/index.js"); var isInterpolatable = function (obj) { // d3 turns null into 0 and undefined into NaN, which we don't want. if (obj !== null) { switch (typeof obj) { case "undefined": return false; case "number": // The standard `isNaN` is fine in this case since we already know the // type is number. return !isNaN(obj) && obj !== Number.POSITIVE_INFINITY && obj !== Number.NEGATIVE_INFINITY; case "string": // d3 might not *actually* be able to interpolate the string, but it // won't cause any issues to let it try. return true; case "boolean": // d3 turns Booleans into integers, which we don't want. Sure, we could // interpolate from 0 -> 1, but we'd be sending a non-Boolean to // something expecting a Boolean. return false; case "object": // Don't try to interpolate class instances (except Date or Array). return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(obj); case "function": // Careful! There may be extra properties on function objects that the // component expects to access - for instance, it may be a `d3.scale()` // function, which has its own methods attached. We don't know if the // component is only going to call the function (in which case it's // safely interpolatable) or if it's going to access special properties // (in which case our function generated from `interpolateFunction` will // most likely cause an error. We could check for enumerable properties // on the function object here to see if it's a "plain" function, but // let's just require that components prevent such function props from // being animated in the first place. return true; } } return false; }; /** * Interpolate immediately to the end value at the given step `when`. * Some nicer default behavior might be to jump at the halfway point or return * `a` if `t` is 0 (instead of always returning `b`). But d3's default * interpolator does not do these things: * * d3.interpolate('aaa', 'bbb')(0) === 'bbb' * * ...and things might get wonky if we don't replicate that behavior. * * @param {any} a - Start value. * @param {any} b - End value. * @param {Number} when - Step value (0 to 1) at which to jump to `b`. * @returns {Function} An interpolation function. */ var interpolateImmediate = function (a, b) { var when = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; return function (t) { return t < when ? a : b; }; }; /** * Interpolate to or from a function. The interpolated value will be a function * that calls `a` (if it's a function) and `b` (if it's a function) and calls * `d3.interpolate` on the resulting values. Note that our function won't * necessarily be called (that's up to the component this eventually gets * passed to) - but if it does get called, it will return an appropriately * interpolated value. * * @param {any} a - Start value. * @param {any} b - End value. * @returns {Function} An interpolation function. */ var interpolateFunction = function (a, b) { return function (t) { if (t >= 1) { return b; } return function () { /* eslint-disable no-invalid-this */ var aval = typeof a === "function" ? a.apply(this, arguments) : a; var bval = typeof b === "function" ? b.apply(this, arguments) : b; return Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["interpolate"])(aval, bval)(t); }; }; }; /** * Interpolate to or from an object. This method is a modification of the object interpolator in * d3-interpolate https://github.com/d3/d3-interpolate/blob/master/src/object.js. This interpolator * differs in that it uses our custom interpolators when interpolating the value of each property in * an object. This allows the correct interpolation of nested objects, including styles * * @param {any} a - Start value. * @param {any} b - End value. * @returns {Function} An interpolation function. */ var interpolateObject = function (a, b) { var interpolateTypes = function (x, y) { if (x === y || !isInterpolatable(x) || !isInterpolatable(y)) { return interpolateImmediate(x, y); } if (typeof x === "function" || typeof y === "function") { return interpolateFunction(x, y); } if (typeof x === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(x) || typeof y === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(y)) { return interpolateObject(x, y); } return Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["interpolate"])(x, y); }; // When the value is an array, attempt to sort by "key" so that animating nodes may be identified // based on "key" instead of index var keyData = function (val) { return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(val, "key") : val; }; var i = {}; var c = {}; var k; if (a === null || typeof a !== "object") { a = {}; } if (b === null || typeof b !== "object") { b = {}; } for (k in b) { if (k in a) { i[k] = interpolateTypes(keyData(a[k]), keyData(b[k])); } else { c[k] = b[k]; } } return function (t) { for (k in i) { c[k] = i[k](t); } return c; }; }; var interpolateString = function (a, b) { var format = function (val) { return typeof val === "string" ? val.replace(/,/g, "") : val; }; return Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["interpolate"])(format(a), format(b)); }; /** * By default, the list of interpolators used by `d3.interpolate` has a few * downsides: * * - `null` values get turned into 0. * - `undefined`, `function`, and some other value types get turned into NaN. * - Boolean types get turned into numbers, which probably will be meaningless * to whatever is consuming them. * - It tries to interpolate between identical start and end values, doing * unnecessary calculations that sometimes result in floating point rounding * errors. * * If only the default interpolators are used, `VictoryAnimation` will happily * pass down NaN (and other bad) values as props to the wrapped component. * The component will then either use the incorrect values or complain that it * was passed props of the incorrect type. This custom interpolator is added * using the `d3.interpolators` API, and prevents such cases from happening * for most values. * * @param {any} a - Start value. * @param {any} b - End value. * @returns {Function|undefined} An interpolation function, if necessary. */ var victoryInterpolator = function (a, b) { // If the values are strictly equal, or either value is not interpolatable, // just use either the start value `a` or end value `b` at every step, as // there is no reasonable in-between value. if (a === b || !isInterpolatable(a) || !isInterpolatable(b)) { return interpolateImmediate(a, b); } if (typeof a === "function" || typeof b === "function") { return interpolateFunction(a, b); } if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) { return interpolateObject(a, b); } if (typeof a === "string" || typeof b === "string") { return interpolateString(a, b); } return Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["interpolate"])(a, b); }; /***/ }), /***/ "../../victory-core/es/victory-animation/victory-animation.js": /*!***********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-animation/victory-animation.js ***! \***********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return VictoryAnimation; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var d3_ease__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-ease */ "../../../node_modules/d3-ease/src/index.js"); /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "../../victory-core/es/victory-animation/util.js"); /* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_5__); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } /*global setTimeout:false */ var VictoryAnimation = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryAnimation, _React$Component); function VictoryAnimation(props, context) { var _this; _classCallCheck(this, VictoryAnimation); _this = _possibleConstructorReturn(this, (VictoryAnimation.__proto__ || Object.getPrototypeOf(VictoryAnimation)).call(this, props, context)); /* defaults */ _this.state = { data: Array.isArray(_this.props.data) ? _this.props.data[0] : _this.props.data, animationInfo: { progress: 0, animating: false } }; _this.interpolator = null; _this.queue = Array.isArray(_this.props.data) ? _this.props.data.slice(1) : []; /* build easing function */ _this.ease = d3_ease__WEBPACK_IMPORTED_MODULE_2__[_this.toNewName(_this.props.easing)]; /* There is no autobinding of this in ES6 classes so we bind functionToBeRunEachFrame to current instance of victory animation class */ _this.functionToBeRunEachFrame = _this.functionToBeRunEachFrame.bind(_assertThisInitialized(_this)); _this.timer = _this.context.animationTimer; return _this; } _createClass(VictoryAnimation, [{ key: "componentDidMount", value: function componentDidMount() { // Length check prevents us from triggering `onEnd` in `traverseQueue`. if (this.queue.length) { this.traverseQueue(); } } }, { key: "componentDidUpdate", value: function componentDidUpdate(prevProps) { var equalProps = react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default()(this.props, prevProps); if (!equalProps) { /* If the previous animation didn't finish, force it to complete before starting a new one */ if (this.interpolator && this.state.animationInfo && this.state.animationInfo.progress < 1) { // eslint-disable-next-line react/no-did-update-set-state this.setState({ data: this.interpolator(1), animationInfo: { progress: 1, animating: false, terminating: true } }); } else { /* cancel existing loop if it exists */ this.timer.unsubscribe(this.loopID); /* If an object was supplied */ if (!Array.isArray(this.props.data)) { // Replace the tween queue. Could set `this.queue = [nextProps.data]`, // but let's reuse the same array. this.queue.length = 0; this.queue.push(this.props.data); /* If an array was supplied */ } else { var _queue; /* Extend the tween queue */ (_queue = this.queue).push.apply(_queue, _toConsumableArray(this.props.data)); } /* Start traversing the tween queue */ this.traverseQueue(); } } } }, { key: "componentWillUnmount", value: function componentWillUnmount() { if (this.loopID) { this.timer.unsubscribe(this.loopID); } else { this.timer.stop(); } } }, { key: "toNewName", value: function toNewName(ease) { // d3-ease changed the naming scheme for ease from "linear" -> "easeLinear" etc. var capitalize = function (s) { return s && s[0].toUpperCase() + s.slice(1); }; return "ease".concat(capitalize(ease)); } /* Traverse the tween queue */ }, { key: "traverseQueue", value: function traverseQueue() { var _this2 = this; if (this.queue.length) { /* Get the next index */ var data = this.queue[0]; /* compare cached version to next props */ this.interpolator = Object(_util__WEBPACK_IMPORTED_MODULE_3__["victoryInterpolator"])(this.state.data, data); /* reset step to zero */ if (this.props.delay) { setTimeout(function () { _this2.loopID = _this2.timer.subscribe(_this2.functionToBeRunEachFrame, _this2.props.duration); }, this.props.delay); } else { this.loopID = this.timer.subscribe(this.functionToBeRunEachFrame, this.props.duration); } } else if (this.props.onEnd) { this.props.onEnd(); } } /* every frame we... */ }, { key: "functionToBeRunEachFrame", value: function functionToBeRunEachFrame(elapsed, duration) { /* step can generate imprecise values, sometimes greater than 1 if this happens set the state to 1 and return, cancelling the timer */ duration = duration !== undefined ? duration : this.props.duration; var step = duration ? elapsed / duration : 1; if (step >= 1) { this.setState({ data: this.interpolator(1), animationInfo: { progress: 1, animating: false, terminating: true } }); if (this.loopID) { this.timer.unsubscribe(this.loopID); } this.queue.shift(); this.traverseQueue(); return; } /* if we're not at the end of the timer, set the state by passing current step value that's transformed by the ease function to the interpolator, which is cached for performance whenever props are received */ this.setState({ data: this.interpolator(this.ease(step)), animationInfo: { progress: step, animating: step < 1 } }); } }, { key: "render", value: function render() { return this.props.children(this.state.data, this.state.animationInfo); } }]); return VictoryAnimation; }(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); Object.defineProperty(VictoryAnimation, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryAnimation" }); Object.defineProperty(VictoryAnimation, "propTypes", { configurable: true, enumerable: true, writable: true, value: { children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array]), delay: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, duration: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, easing: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(["back", "backIn", "backOut", "backInOut", "bounce", "bounceIn", "bounceOut", "bounceInOut", "circle", "circleIn", "circleOut", "circleInOut", "linear", "linearIn", "linearOut", "linearInOut", "cubic", "cubicIn", "cubicOut", "cubicInOut", "elastic", "elasticIn", "elasticOut", "elasticInOut", "exp", "expIn", "expOut", "expInOut", "poly", "polyIn", "polyOut", "polyInOut", "quad", "quadIn", "quadOut", "quadInOut", "sin", "sinIn", "sinOut", "sinInOut"]), onEnd: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func } }); Object.defineProperty(VictoryAnimation, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { data: {}, delay: 0, duration: 1000, easing: "quadInOut" } }); Object.defineProperty(VictoryAnimation, "contextType", { configurable: true, enumerable: true, writable: true, value: _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__["default"] }); /***/ }), /***/ "../../victory-core/es/victory-clip-container/victory-clip-container.js": /*!*********************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-clip-container/victory-clip-container.js ***! \*********************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return VictoryClipContainer; }); /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/lodash/uniqueId.js"); /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/lodash/isObject.js"); /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js"); /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js"); /* harmony import */ var _victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-primitives/clip-path */ "../../victory-core/es/victory-primitives/clip-path.js"); /* harmony import */ var _victory_primitives_circle__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-primitives/circle */ "../../victory-core/es/victory-primitives/circle.js"); /* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var VictoryClipContainer = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryClipContainer, _React$Component); function VictoryClipContainer(props) { var _this; _classCallCheck(this, VictoryClipContainer); _this = _possibleConstructorReturn(this, (VictoryClipContainer.__proto__ || Object.getPrototypeOf(VictoryClipContainer)).call(this, props)); _this.clipId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.clipId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()("victory-clip-") : props.clipId; return _this; } _createClass(VictoryClipContainer, [{ key: "calculateAttributes", value: function calculateAttributes(props) { var polar = props.polar, origin = props.origin, _props$clipWidth = props.clipWidth, clipWidth = _props$clipWidth === void 0 ? 0 : _props$clipWidth, _props$clipHeight = props.clipHeight, clipHeight = _props$clipHeight === void 0 ? 0 : _props$clipHeight, _props$translateX = props.translateX, translateX = _props$translateX === void 0 ? 0 : _props$translateX, _props$translateY = props.translateY, translateY = _props$translateY === void 0 ? 0 : _props$translateY; var clipPadding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__["default"].getPadding({ padding: props.clipPadding }); var radius = props.radius || _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__["default"].getRadius(props); return { x: (polar ? origin.x : translateX) - clipPadding.left, y: (polar ? origin.y : translateY) - clipPadding.top, width: Math.max((polar ? radius : clipWidth) + clipPadding.left + clipPadding.right, 0), height: Math.max((polar ? radius : clipHeight) + clipPadding.top + clipPadding.bottom, 0) }; } }, { key: "renderClippedGroup", value: function renderClippedGroup(props, clipId) { var style = props.style, events = props.events, transform = props.transform, children = props.children, className = props.className, groupComponent = props.groupComponent, tabIndex = props.tabIndex; var clipComponent = this.renderClipComponent(props, clipId); var groupProps = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({ className: className, style: style, transform: transform, key: "clipped-group-".concat(clipId), clipPath: "url(#".concat(clipId, ")") }, events); return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(groupComponent, _objectSpread({}, groupProps, { "aria-label": props["aria-label"], tabIndex: tabIndex }), [clipComponent].concat(_toConsumableArray(react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.toArray(children)))); } }, { key: "renderGroup", value: function renderGroup(props) { var style = props.style, events = props.events, transform = props.transform, children = props.children, className = props.className, groupComponent = props.groupComponent, tabIndex = props.tabIndex; return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(groupComponent, lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({ className: className, style: style, transform: transform, "aria-label": props["aria-label"], tabIndex: tabIndex }, events), children); } }, { key: "renderClipComponent", value: function renderClipComponent(props, clipId) { var polar = props.polar, origin = props.origin, _props$clipWidth2 = props.clipWidth, clipWidth = _props$clipWidth2 === void 0 ? 0 : _props$clipWidth2, _props$clipHeight2 = props.clipHeight, clipHeight = _props$clipHeight2 === void 0 ? 0 : _props$clipHeight2, _props$translateX2 = props.translateX, translateX = _props$translateX2 === void 0 ? 0 : _props$translateX2, _props$translateY2 = props.translateY, translateY = _props$translateY2 === void 0 ? 0 : _props$translateY2, circleComponent = props.circleComponent, rectComponent = props.rectComponent, clipPathComponent = props.clipPathComponent; var _Helpers$getPadding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__["default"].getPadding({ padding: props.clipPadding }), top = _Helpers$getPadding.top, bottom = _Helpers$getPadding.bottom, left = _Helpers$getPadding.left, right = _Helpers$getPadding.right; var child; if (polar) { var radius = props.radius || _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__["default"].getRadius(props); var circleProps = { r: Math.max(radius + left + right, radius + top + bottom, 0), cx: origin.x - left, cy: origin.y - top }; child = react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(circleComponent, circleProps); } else { var rectProps = { x: translateX - left, y: translateY - top, width: Math.max(clipWidth + left + right, 0), height: Math.max(clipHeight + top + bottom, 0) }; child = react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(rectComponent, rectProps); } return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(clipPathComponent, lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({ key: "clip-path-".concat(clipId) }, props, { clipId: clipId }), child); } }, { key: "getClipValue", value: function getClipValue(props, axis) { var clipValues = { x: props.clipWidth, y: props.clipHeight }; if (clipValues[axis] !== undefined) { return clipValues[axis]; } var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__["default"].getRange(props, axis); return range ? Math.abs(range[0] - range[1]) || undefined : undefined; } }, { key: "getTranslateValue", value: function getTranslateValue(props, axis) { var translateValues = { x: props.translateX, y: props.translateY }; if (translateValues[axis] !== undefined) { return translateValues[axis]; } var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__["default"].getRange(props, axis); return range ? Math.min.apply(Math, _toConsumableArray(range)) : undefined; } }, { key: "render", value: function render() { var clipHeight = this.getClipValue(this.props, "y"); var clipWidth = this.getClipValue(this.props, "x"); if (clipWidth === undefined || clipHeight === undefined) { return this.renderGroup(this.props); } var translateX = this.getTranslateValue(this.props, "x"); var translateY = this.getTranslateValue(this.props, "y"); var clipProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.props, { clipHeight: clipHeight, clipWidth: clipWidth, translateX: translateX, translateY: translateY }); return this.renderClippedGroup(clipProps, this.clipId); } }]); return VictoryClipContainer; }(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component); Object.defineProperty(VictoryClipContainer, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryClipContainer" }); Object.defineProperty(VictoryClipContainer, "role", { configurable: true, enumerable: true, writable: true, value: "container" }); Object.defineProperty(VictoryClipContainer, "propTypes", { configurable: true, enumerable: true, writable: true, value: { "aria-label": prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string, children: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.node), prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.node]), circleComponent: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.element, className: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string, clipHeight: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_6__["default"].nonNegative, clipId: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]), clipPadding: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.shape({ top: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, bottom: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, left: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, right: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number }), clipPathComponent: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.element, clipWidth: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_6__["default"].nonNegative, events: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object, groupComponent: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.element, origin: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.shape({ x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_6__["default"].nonNegative, y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_6__["default"].nonNegative }), polar: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool, radius: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_6__["default"].nonNegative, style: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object, tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, transform: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string, translateX: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, translateY: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number } }); Object.defineProperty(VictoryClipContainer, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { circleComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_victory_primitives_circle__WEBPACK_IMPORTED_MODULE_9__["default"], null), rectComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_10__["default"], null), clipPathComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_8__["default"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("g", null) } }); /***/ }), /***/ "../../victory-core/es/victory-container/victory-container.js": /*!***********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-container/victory-container.js ***! \***********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return VictoryContainer; }); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/lodash/isObject.js"); /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/lodash/uniqueId.js"); /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js"); /* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js"); /* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js"); /* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js"); /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js"); 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); } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var VictoryContainer = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryContainer, _React$Component); function VictoryContainer(props) { var _this; _classCallCheck(this, VictoryContainer); _this = _possibleConstructorReturn(this, (VictoryContainer.__proto__ || Object.getPrototypeOf(VictoryContainer)).call(this, props)); _this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId; _this.savePortalRef = function (portal) { _this.portalRef = portal; return portal; }; _this.portalUpdate = function (key, el) { return _this.portalRef.portalUpdate(key, el); }; _this.portalRegister = function () { return _this.portalRef.portalRegister(); }; _this.portalDeregister = function (key) { return _this.portalRef.portalDeregister(key); }; _this.saveContainerRef = props && lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(props.containerRef) ? props.containerRef : function (container) { _this.containerRef = container; return container; }; _this.shouldHandleWheel = props && props.events && props.events.onWheel; if (_this.shouldHandleWheel) { _this.handleWheel = function (e) { return e.preventDefault(); }; } return _this; } _createClass(VictoryContainer, [{ key: "componentDidMount", value: function componentDidMount() { if (this.shouldHandleWheel && this.containerRef) { this.containerRef.addEventListener("wheel", this.handleWheel); } } }, { key: "componentWillUnmount", value: function componentWillUnmount() { if (this.shouldHandleWheel && this.containerRef) { this.containerRef.removeEventListener("wheel", this.handleWheel); } } }, { key: "getIdForElement", value: function getIdForElement(elementName) { return "".concat(this.containerId, "-").concat(elementName); } // overridden in custom containers }, { key: "getChildren", value: function getChildren(props) { return props.children; } // Get props defined by the Open UI Automation (OUIA) 1.0-RC spec // See https://ouia.readthedocs.io/en/latest/README.html#ouia-component }, { key: "getOUIAProps", value: function getOUIAProps(props) { var ouiaId = props.ouiaId, ouiaSafe = props.ouiaSafe, ouiaType = props.ouiaType; return _objectSpread({}, ouiaId && { "data-ouia-component-id": ouiaId }, ouiaType && { "data-ouia-component-type": ouiaType }, ouiaSafe !== undefined && { "data-ouia-safe": ouiaSafe }); } }, { key: "renderContainer", value: function renderContainer(props, svgProps, style) { var title = props.title, desc = props.desc, portalComponent = props.portalComponent, className = props.className, width = props.width, height = props.height, portalZIndex = props.portalZIndex, responsive = props.responsive; var children = this.getChildren(props); var dimensions = responsive ? { width: "100%", height: "100%" } : { width: width, height: height }; var divStyle = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({ pointerEvents: "none", touchAction: "none", position: "relative" }, dimensions); var portalDivStyle = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({ zIndex: portalZIndex, position: "absolute", top: 0, left: 0 }, dimensions); var svgStyle = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({ pointerEvents: "all" }, dimensions); var portalSvgStyle = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({ overflow: "visible" }, dimensions); var portalProps = { width: width, height: height, viewBox: svgProps.viewBox, preserveAspectRatio: svgProps.preserveAspectRatio, style: portalSvgStyle }; return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_9__["default"].Provider, { value: { portalUpdate: this.portalUpdate, portalRegister: this.portalRegister, portalDeregister: this.portalDeregister } }, react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", _extends({ style: lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, style, divStyle), className: className, ref: this.saveContainerRef }, this.getOUIAProps(props)), react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("svg", _extends({}, svgProps, { style: svgStyle }), title ? react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("title", { id: this.getIdForElement("title") }, title) : null, desc ? react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("desc", { id: this.getIdForElement("desc") }, desc) : null, children), react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", { style: portalDivStyle }, react__WEBPACK_IMPORTED_MODULE_5___default.a.cloneElement(portalComponent, _objectSpread({}, portalProps, { ref: this.savePortalRef }))))); } }, { key: "render", value: function render() { var _props = this.props, width = _props.width, height = _props.height, responsive = _props.responsive, events = _props.events, title = _props.title, desc = _props.desc, tabIndex = _props.tabIndex, preserveAspectRatio = _props.preserveAspectRatio, role = _props.role; var style = responsive ? this.props.style : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_11__["default"].omit(this.props.style, ["height", "width"]); var svgProps = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({ width: width, height: height, tabIndex: tabIndex, role: role, "aria-labelledby": [title && this.getIdForElement("title"), this.props["aria-labelledby"]].filter(Boolean).join(" ") || undefined, "aria-describedby": [desc && this.getIdForElement("desc"), this.props["aria-describedby"]].filter(Boolean).join(" ") || undefined, viewBox: responsive ? "0 0 ".concat(width, " ").concat(height) : undefined, preserveAspectRatio: responsive ? preserveAspectRatio : undefined }, events); return this.renderContainer(this.props, svgProps, style); } }]); return VictoryContainer; }(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component); Object.defineProperty(VictoryContainer, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryContainer" }); Object.defineProperty(VictoryContainer, "role", { configurable: true, enumerable: true, writable: true, value: "container" }); Object.defineProperty(VictoryContainer, "propTypes", { configurable: true, enumerable: true, writable: true, value: { "aria-describedby": prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string, "aria-labelledby": prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string, children: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.node), prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.node]), className: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string, containerId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string]), containerRef: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func, desc: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string, events: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object, height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__["default"].nonNegative, name: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string, origin: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({ x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__["default"].nonNegative, y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__["default"].nonNegative }), ouiaId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string]), ouiaSafe: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, ouiaType: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string, polar: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, portalComponent: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.element, portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__["default"].integer, preserveAspectRatio: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string, responsive: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, role: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string, style: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object, tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, theme: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object, title: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string, width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__["default"].nonNegative } }); Object.defineProperty(VictoryContainer, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { className: "VictoryContainer", portalComponent: react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_8__["default"], null), portalZIndex: 99, responsive: true, role: "img" } }); Object.defineProperty(VictoryContainer, "contextType", { configurable: true, enumerable: true, writable: true, value: _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"] }); /***/ }), /***/ "../../victory-core/es/victory-label/victory-label.js": /*!***************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-label/victory-label.js ***! \***************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js"); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-portal/victory-portal */ "../../victory-core/es/victory-portal/victory-portal.js"); /* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js"); /* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js"); /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js"); /* harmony import */ var _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/label-helpers */ "../../victory-core/es/victory-util/label-helpers.js"); /* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js"); /* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js"); /* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js"); /* harmony import */ var _victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../victory-primitives/tspan */ "../../victory-core/es/victory-primitives/tspan.js"); /* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../victory-primitives/text */ "../../victory-core/es/victory-primitives/text.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } /*eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/ var defaultStyles = { fill: "#252525", fontSize: 14, fontFamily: "'Gill Sans', 'Gill Sans MT', 'Ser­avek', 'Trebuchet MS', sans-serif", stroke: "transparent" }; var getPosition = function (props, dimension) { if (!props.datum) { return 0; } var scaledPoint = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].scalePoint(props, props.datum); return scaledPoint[dimension]; }; var getFontSize = function (style) { var baseSize = style && style.fontSize; if (typeof baseSize === "number") { return baseSize; } else if (baseSize === undefined || baseSize === null) { return defaultStyles.fontSize; } else if (typeof baseSize === "string") { var fontSize = +baseSize.replace("px", ""); if (!isNaN(fontSize)) { return fontSize; } else { _victory_util_log__WEBPACK_IMPORTED_MODULE_11__["default"].warn("fontSize should be expressed as a number of pixels"); return defaultStyles.fontSize; } } return defaultStyles.fontSize; }; var getSingleValue = function (prop) { var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; return Array.isArray(prop) ? prop[index] || prop[0] : prop; }; var useMultiLineBackgrounds = function (props) { var backgroundStyle = props.backgroundStyle, backgroundPadding = props.backgroundPadding; return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundPadding); }; var getStyles = function (style, props) { var getSingleStyle = function (s) { s = s ? lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, s, defaultStyles) : defaultStyles; var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateStyle(s, props); return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, baseStyles, { fontSize: getFontSize(baseStyles) }); }; return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(function (s) { return getSingleStyle(s); }) : getSingleStyle(style); }; var getBackgroundStyles = function (style, props) { if (!style) { return undefined; } return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(function (s) { return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateStyle(s, props); }) : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateStyle(style, props); }; var getBackgroundPadding = function (props) { if (props.backgroundPadding && Array.isArray(props.backgroundPadding)) { return props.backgroundPadding.map(function (backgroundPadding) { var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(backgroundPadding, props); return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].getPadding({ padding: padding }); }); } else { var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(props.backgroundPadding, props); return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].getPadding({ padding: padding }); } }; var getLineHeight = function (props) { var lineHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(props.lineHeight, props); if (Array.isArray(lineHeight)) { return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(lineHeight) ? [1] : lineHeight; } else { return lineHeight; } }; var getContent = function (text, props) { if (text === undefined || text === null) { return undefined; } if (Array.isArray(text)) { return text.map(function (line) { return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(line, props); }); } var child = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(text, props); if (child === undefined || child === null) { return undefined; } return Array.isArray(child) ? child : "".concat(child).split("\n"); }; var getDy = function (props, verticalAnchor, lineHeight) { var dy = props.dy ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(props.dy, props) : 0; var length = props.inline ? 1 : props.text.length; var capHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(props.capHeight, props); var anchor = verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(verticalAnchor, props) : "middle"; var fontSizes = _toConsumableArray(Array(length).keys()).map(function (i) { return getSingleValue(props.style, i).fontSize; }); var lineHeights = _toConsumableArray(Array(length).keys()).map(function (i) { return getSingleValue(lineHeight, i); }); if (anchor === "start") { return dy + (capHeight / 2 + lineHeights[0] / 2) * fontSizes[0]; } else if (props.inline) { return anchor === "end" ? dy + (capHeight / 2 - lineHeights[0] / 2) * fontSizes[0] : dy + capHeight / 2 * fontSizes[0]; } else if (length === 1) { return anchor === "end" ? dy + (capHeight / 2 + (0.5 - length) * lineHeights[0]) * fontSizes[0] : dy + (capHeight / 2 + (0.5 - length / 2) * lineHeights[0]) * fontSizes[0]; } else { var allHeights = _toConsumableArray(Array(length).keys()).reduce(function (memo, i) { return memo + (capHeight / 2 + (0.5 - length) * lineHeights[i]) * fontSizes[i] / length; }, 0); return anchor === "end" ? dy + allHeights : dy + allHeights / 2 + capHeight / 2 * lineHeights[length - 1] * fontSizes[length - 1]; } }; var getTransform = function (props, x, y) { var polar = props.polar; var style = getSingleValue(props.style); var defaultAngle = polar ? _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_9__["default"].getPolarAngle(props) : 0; var baseAngle = style.angle === undefined ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(props.angle, props) : style.angle; var angle = baseAngle === undefined ? defaultAngle : baseAngle; var transform = props.transform || style.transform; var transformPart = transform && _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(transform, props); var rotatePart = angle && { rotate: [angle, x, y] }; return transformPart || angle ? _victory_util_style__WEBPACK_IMPORTED_MODULE_10__["default"].toTransformString(transformPart, rotatePart) : undefined; }; var getXCoordinate = function (calculatedProps, labelSizeWidth) { var direction = calculatedProps.direction, textAnchor = calculatedProps.textAnchor, x = calculatedProps.x, dx = calculatedProps.dx; if (direction === "rtl") { return x - labelSizeWidth; } switch (textAnchor) { case "middle": return Math.round(x - labelSizeWidth / 2); case "end": return Math.round(x - labelSizeWidth); default: // start return x + (dx || 0); } }; var getYCoordinate = function (calculatedProps, textHeight) { var verticalAnchor = calculatedProps.verticalAnchor, y = calculatedProps.y, _calculatedProps$orig = calculatedProps.originalDy, originalDy = _calculatedProps$orig === void 0 ? 0 : _calculatedProps$orig; var offset = y + originalDy; switch (verticalAnchor) { case "start": return Math.floor(offset); case "end": return Math.ceil(offset - textHeight); default: // middle return Math.floor(offset - textHeight / 2); } }; var getFullBackground = function (calculatedProps, tspanValues) { var _calculatedProps$dx = calculatedProps.dx, dx = _calculatedProps$dx === void 0 ? 0 : _calculatedProps$dx, transform = calculatedProps.transform, backgroundComponent = calculatedProps.backgroundComponent, backgroundStyle = calculatedProps.backgroundStyle, inline = calculatedProps.inline, backgroundPadding = calculatedProps.backgroundPadding, capHeight = calculatedProps.capHeight; var textSizes = tspanValues.map(function (tspan) { return tspan.textSize; }); var height = inline ? Math.max.apply(Math, _toConsumableArray(textSizes.map(function (size) { return size.height; }))) : textSizes.reduce(function (memo, size, i) { var capHeightAdjustment = i ? 0 : capHeight / 2; return memo + size.height * (tspanValues[i].lineHeight - capHeightAdjustment); }, 0); var width = inline ? textSizes.reduce(function (memo, size, index) { var offset = index ? dx : 0; return memo + size.width + offset; }, 0) : Math.max.apply(Math, _toConsumableArray(textSizes.map(function (size) { return size.width; }))); var xCoordinate = getXCoordinate(calculatedProps, width); var yCoordinate = getYCoordinate(calculatedProps, height); var backgroundProps = { key: "background", height: height + backgroundPadding.top + backgroundPadding.bottom, style: backgroundStyle, transform: transform, width: width + backgroundPadding.left + backgroundPadding.right, x: inline ? xCoordinate - backgroundPadding.left : xCoordinate + dx - backgroundPadding.left, y: yCoordinate }; return react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps)); }; var getInlineXOffset = function (calculatedProps, textElements, index) { var textAnchor = calculatedProps.textAnchor; var widths = textElements.map(function (t) { return t.widthWithPadding; }); var totalWidth = widths.reduce(function (memo, width) { return memo + width; }, 0); var centerOffset = -totalWidth / 2; switch (textAnchor) { case "start": return widths.reduce(function (memo, width, i) { memo = i < index ? memo + width : memo; return memo; }, 0); case "end": return widths.reduce(function (memo, width, i) { memo = i > index ? memo - width : memo; return memo; }, 0); default: // middle return widths.reduce(function (memo, width, i) { var offsetWidth = i < index ? width : 0; memo = i === index ? memo + width / 2 : memo + offsetWidth; return memo; }, centerOffset); } }; var getChildBackgrounds = function (calculatedProps, tspanValues) { var dy = calculatedProps.dy, dx = calculatedProps.dx, transform = calculatedProps.transform, backgroundStyle = calculatedProps.backgroundStyle, backgroundPadding = calculatedProps.backgroundPadding, backgroundComponent = calculatedProps.backgroundComponent, inline = calculatedProps.inline, y = calculatedProps.y; var textElements = tspanValues.map(function (current, i) { var previous = getSingleValue(tspanValues, i - 1); var labelSize = current.textSize; var totalLineHeight = current.fontSize * current.lineHeight; var textHeight = Math.ceil(totalLineHeight); var padding = getSingleValue(backgroundPadding, i); var prevPadding = getSingleValue(backgroundPadding, i - 1); var xOffset = inline ? dx || 0 : 0; var childDy = i && !inline ? previous.fontSize * previous.lineHeight + prevPadding.top + prevPadding.bottom : dy - totalLineHeight * 0.5 - (current.fontSize - current.capHeight); return { textHeight: textHeight, labelSize: labelSize, heightWithPadding: textHeight + padding.top + padding.bottom, widthWithPadding: labelSize.width + padding.left + padding.right + xOffset, y: y, fontSize: current.fontSize, dy: childDy }; }); return textElements.map(function (textElement, i) { var xCoordinate = getXCoordinate(calculatedProps, textElement.labelSize.width); var yCoordinate = textElements.slice(0, i + 1).reduce(function (prev, curr) { return prev + curr.dy; }, y); var padding = getSingleValue(backgroundPadding, i); var height = textElement.heightWithPadding; var xCoord = inline ? getInlineXOffset(calculatedProps, textElements, i) + xCoordinate - padding.left : xCoordinate; var yCoord = inline ? getYCoordinate(calculatedProps, height) - padding.top : yCoordinate; var backgroundProps = { key: "tspan-background-".concat(i), height: height, style: getSingleValue(backgroundStyle, i), width: textElement.widthWithPadding, transform: transform, x: xCoord - padding.left, y: yCoord }; return react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps)); }); }; var getBackgroundElement = function (calculatedProps, tspanValues) { return useMultiLineBackgrounds(calculatedProps) ? getChildBackgrounds(calculatedProps, tspanValues) : getFullBackground(calculatedProps, tspanValues); }; var calculateSpanDy = function (tspanValues, i, calculatedProps) { var current = getSingleValue(tspanValues, i); var previous = getSingleValue(tspanValues, i - 1); var previousHeight = previous.fontSize * previous.lineHeight; var currentHeight = current.fontSize * current.lineHeight; var previousCaps = previous.fontSize - previous.capHeight; var currentCaps = current.fontSize - current.capHeight; var textHeight = previousHeight - previous.fontSize / 2 + current.fontSize / 2 - previousHeight / 2 + currentHeight / 2 - currentCaps / 2 + previousCaps / 2; return useMultiLineBackgrounds(calculatedProps) ? textHeight + current.backgroundPadding.top + previous.backgroundPadding.bottom : textHeight; }; var getTSpanDy = function (tspanValues, calculatedProps, i) { var inline = calculatedProps.inline; var current = getSingleValue(tspanValues, i); if (i && !inline) { return calculateSpanDy(tspanValues, i, calculatedProps); } else if (inline) { return i === 0 ? current.backgroundPadding.top : undefined; } else { return current.backgroundPadding.top; } }; var evaluateProps = function (props) { /* Potential evaluated props are 1) text 2) style 3) everything else */ var text = getContent(props.text, props); var style = getStyles(props.style, lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { text: text })); var backgroundStyle = getBackgroundStyles(props.backgroundStyle, lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { text: text, style: style })); var backgroundPadding = getBackgroundPadding(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { text: text, style: style, backgroundStyle: backgroundStyle })); var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(props.id, props); return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { backgroundStyle: backgroundStyle, backgroundPadding: backgroundPadding, style: style, text: text, id: id }); }; var getCalculatedProps = function (props) { var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(props.ariaLabel, props); var style = getSingleValue(props.style); var lineHeight = getLineHeight(props); var direction = props.direction ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(props.direction, props) : "inherit"; var textAnchor = props.textAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(props.textAnchor, props) : style.textAnchor || "start"; var verticalAnchor = props.verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(props.verticalAnchor, props) : style.verticalAnchor || "middle"; var dx = props.dx ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(props.dx, props) : 0; var dy = getDy(props, verticalAnchor, lineHeight); var x = props.x !== undefined ? props.x : getPosition(props, "x"); var y = props.y !== undefined ? props.y : getPosition(props, "y"); var transform = getTransform(props, x, y); return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { ariaLabel: ariaLabel, lineHeight: lineHeight, direction: direction, textAnchor: textAnchor, verticalAnchor: verticalAnchor, dx: dx, dy: dy, originalDy: props.dy, transform: transform, x: x, y: y }); }; var renderLabel = function (calculatedProps, tspanValues) { var ariaLabel = calculatedProps.ariaLabel, inline = calculatedProps.inline, className = calculatedProps.className, title = calculatedProps.title, events = calculatedProps.events, direction = calculatedProps.direction, text = calculatedProps.text, textAnchor = calculatedProps.textAnchor, dx = calculatedProps.dx, dy = calculatedProps.dy, transform = calculatedProps.transform, x = calculatedProps.x, y = calculatedProps.y, desc = calculatedProps.desc, id = calculatedProps.id, tabIndex = calculatedProps.tabIndex, tspanComponent = calculatedProps.tspanComponent, textComponent = calculatedProps.textComponent; var textProps = _objectSpread({ "aria-label": ariaLabel, key: "text" }, events, { direction: direction, dx: dx, x: x, y: y + dy, transform: transform, className: className, title: title, desc: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(desc, calculatedProps), tabIndex: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].evaluateProp(tabIndex, calculatedProps), id: id }); var tspans = text.map(function (line, i) { var currentStyle = tspanValues[i].style; var tspanProps = { key: "".concat(id, "-key-").concat(i), x: !inline ? x : undefined, dx: inline ? dx + tspanValues[i].backgroundPadding.left : dx, dy: getTSpanDy(tspanValues, calculatedProps, i), textAnchor: currentStyle.textAnchor || textAnchor, style: currentStyle, children: line }; return react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(tspanComponent, tspanProps); }); return react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(textComponent, textProps, tspans); }; var VictoryLabel = function (props) { props = evaluateProps(props); if (props.text === null || props.text === undefined) { return null; } var calculatedProps = getCalculatedProps(props); var text = calculatedProps.text, style = calculatedProps.style, capHeight = calculatedProps.capHeight, backgroundPadding = calculatedProps.backgroundPadding, lineHeight = calculatedProps.lineHeight; var tspanValues = text.map(function (line, i) { var currentStyle = getSingleValue(style, i); var capHeightPx = _victory_util_textsize__WEBPACK_IMPORTED_MODULE_12__["default"].convertLengthToPixels("".concat(capHeight, "em"), currentStyle.fontSize); var currentLineHeight = getSingleValue(lineHeight, i); return { style: currentStyle, fontSize: currentStyle.fontSize || defaultStyles.fontSize, capHeight: capHeightPx, text: line, textSize: _victory_util_textsize__WEBPACK_IMPORTED_MODULE_12__["default"].approximateTextSize(line, currentStyle), lineHeight: currentLineHeight, backgroundPadding: getSingleValue(backgroundPadding, i) }; }); var label = renderLabel(calculatedProps, tspanValues); if (props.backgroundStyle) { var backgroundElement = getBackgroundElement(calculatedProps, tspanValues); var children = [backgroundElement, label]; var backgroundWithLabel = react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(props.groupComponent, {}, children); return props.renderInPortal ? react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_5__["default"], null, backgroundWithLabel) : backgroundWithLabel; } return props.renderInPortal ? react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_5__["default"], null, label) : label; }; VictoryLabel.displayName = "VictoryLabel"; VictoryLabel.role = "label"; VictoryLabel.defaultStyles = defaultStyles; VictoryLabel.propTypes = { active: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, angle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), backgroundComponent: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.element, backgroundPadding: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array]), backgroundStyle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array]), capHeight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__["default"].nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, data: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array, datum: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.any, desc: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), direction: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(["rtl", "ltr", "inherit"]), dx: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), dy: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), events: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object, groupComponent: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.element, id: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), index: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string]), inline: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(["parallel", "perpendicular", "vertical"]), lineHeight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__["default"].nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array]), origin: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.shape({ x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__["default"].nonNegative, y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__["default"].nonNegative }), polar: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, renderInPortal: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, scale: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.shape({ x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__["default"].scale, y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__["default"].scale }), style: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array]), tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), text: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array]), textAnchor: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(["start", "middle", "end", "inherit"]), prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), textComponent: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.element, title: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, transform: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), tspanComponent: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.element, verticalAnchor: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(["start", "middle", "end"]), prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), x: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string]), y: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string]) }; VictoryLabel.defaultProps = { backgroundComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_6__["default"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("g", null), direction: "inherit", textComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__["default"], null), tspanComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_13__["default"], null), capHeight: 0.71, // Magic number from d3. lineHeight: 1 }; /* harmony default export */ __webpack_exports__["default"] = (VictoryLabel); /***/ }), /***/ "../../victory-core/es/victory-portal/portal-context.js": /*!*****************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-portal/portal-context.js ***! \*****************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /** * The React context object consumers may use to access the context of the * portal. */ var PortalContext = react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext({}); PortalContext.displayName = "PortalContext"; /* harmony default export */ __webpack_exports__["default"] = (PortalContext); /***/ }), /***/ "../../victory-core/es/victory-portal/portal.js": /*!*********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-portal/portal.js ***! \*********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Portal; }); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js"); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js"); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } var Portal = /*#__PURE__*/ function (_React$Component) { _inherits(Portal, _React$Component); function Portal(props) { var _this; _classCallCheck(this, Portal); _this = _possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).call(this, props)); _this.map = {}; _this.index = 1; _this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this)); _this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this)); _this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this)); return _this; } _createClass(Portal, [{ key: "portalRegister", value: function portalRegister() { return ++this.index; } }, { key: "portalUpdate", value: function portalUpdate(key, element) { this.map[key] = element; this.forceUpdate(); } }, { key: "portalDeregister", value: function portalDeregister(key) { delete this.map[key]; this.forceUpdate(); } }, { key: "getChildren", value: function getChildren() { var _this2 = this; return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(this.map).map(function (key) { var el = _this2.map[key]; return el ? react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(el, { key: key }) : el; }); } // Overridden in victory-core-native }, { key: "render", value: function render() { return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("svg", this.props, this.getChildren()); } }]); return Portal; }(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); Object.defineProperty(Portal, "displayName", { configurable: true, enumerable: true, writable: true, value: "Portal" }); Object.defineProperty(Portal, "propTypes", { configurable: true, enumerable: true, writable: true, value: { className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__["default"].nonNegative, style: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, viewBox: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__["default"].nonNegative } }); /***/ }), /***/ "../../victory-core/es/victory-portal/victory-portal.js": /*!*****************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-portal/victory-portal.js ***! \*****************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return VictoryPortal; }); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js"); /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js"); /* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js"); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var VictoryPortal = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryPortal, _React$Component); function VictoryPortal() { _classCallCheck(this, VictoryPortal); return _possibleConstructorReturn(this, (VictoryPortal.__proto__ || Object.getPrototypeOf(VictoryPortal)).apply(this, arguments)); } _createClass(VictoryPortal, [{ key: "componentDidMount", value: function componentDidMount() { if (!this.checkedContext) { if (typeof this.context.portalUpdate !== "function") { var msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place"; _victory_util_log__WEBPACK_IMPORTED_MODULE_3__["default"].warn(msg); this.renderInPlace = true; } this.checkedContext = true; } this.forceUpdate(); } }, { key: "componentDidUpdate", value: function componentDidUpdate() { if (!this.renderInPlace) { this.portalKey = this.portalKey || this.context.portalRegister(); this.context.portalUpdate(this.portalKey, this.element); } } }, { key: "componentWillUnmount", value: function componentWillUnmount() { if (this.context && this.context.portalDeregister) { this.context.portalDeregister(this.portalKey); } } // Overridden in victory-core-native }, { key: "renderPortal", value: function renderPortal(child) { if (this.renderInPlace) { return child; } this.element = child; return null; } }, { key: "render", value: function render() { var children = Array.isArray(this.props.children) ? this.props.children[0] : this.props.children; var groupComponent = this.props.groupComponent; var childProps = children && children.props || {}; var standardProps = childProps.groupComponent ? { groupComponent: groupComponent, standalone: false } : {}; var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].omit(this.props, ["children", "groupComponent"])); var child = children && react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(children, newProps); return this.renderPortal(child); } }]); return VictoryPortal; }(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); Object.defineProperty(VictoryPortal, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryPortal" }); Object.defineProperty(VictoryPortal, "role", { configurable: true, enumerable: true, writable: true, value: "portal" }); Object.defineProperty(VictoryPortal, "propTypes", { configurable: true, enumerable: true, writable: true, value: { children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node, groupComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element } }); Object.defineProperty(VictoryPortal, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { groupComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("g", null) } }); Object.defineProperty(VictoryPortal, "contextType", { configurable: true, enumerable: true, writable: true, value: _portal_context__WEBPACK_IMPORTED_MODULE_5__["default"] }); /***/ }), /***/ "../../victory-core/es/victory-primitives/arc.js": /*!**********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-primitives/arc.js ***! \**********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js"); /* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js"); /* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./path */ "../../victory-core/es/victory-primitives/path.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } /*eslint no-magic-numbers: ["error", { "ignore": [0, 1, 2, 180] }]*/ var getArcPath = function (props) { var cx = props.cx, cy = props.cy, r = props.r, startAngle = props.startAngle, endAngle = props.endAngle, closedPath = props.closedPath; // Always draw the path as two arcs so that complete circles may be rendered. var halfAngle = Math.abs(endAngle - startAngle) / 2 + startAngle; var x1 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].degreesToRadians(startAngle)); var y1 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].degreesToRadians(startAngle)); var x2 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].degreesToRadians(halfAngle)); var y2 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].degreesToRadians(halfAngle)); var x3 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].degreesToRadians(endAngle)); var y3 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].degreesToRadians(endAngle)); var largerArcFlag1 = halfAngle - startAngle <= 180 ? 0 : 1; var largerArcFlag2 = endAngle - halfAngle <= 180 ? 0 : 1; var arcStart = closedPath ? " M ".concat(cx, ", ").concat(cy, " L ").concat(x1, ", ").concat(y1) : "M ".concat(x1, ", ").concat(y1); var arc1 = "A ".concat(r, ", ").concat(r, ", 0, ").concat(largerArcFlag1, ", 0, ").concat(x2, ", ").concat(y2); var arc2 = "A ".concat(r, ", ").concat(r, ", 0, ").concat(largerArcFlag2, ", 0, ").concat(x3, ", ").concat(y3); var arcEnd = closedPath ? "Z" : ""; return "".concat(arcStart, " ").concat(arc1, " ").concat(arc2, " ").concat(arcEnd); }; var evaluateProps = function (props) { /** * Potential evaluated props are: * `ariaLabel` * `desc` * `id` * `style` * `tabIndex` */ var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.ariaLabel, props); var desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.desc, props); var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.id, props); var style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ stroke: "black", fill: "none" }, props.style), props); var tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.tabIndex, props); return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { ariaLabel: ariaLabel, desc: desc, id: id, style: style, tabIndex: tabIndex }); }; var Arc = function (props) { props = evaluateProps(props); return react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(props.pathComponent, _objectSpread({}, props.events, { "aria-label": props.ariaLabel, d: getArcPath(props), style: props.style, desc: props.desc, tabIndex: props.tabIndex, className: props.className, role: props.role, shapeRendering: props.shapeRendering, transform: props.transform, clipPath: props.clipPath })); }; Arc.propTypes = _objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_4__["default"].primitiveProps, { closedPath: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, cx: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, cy: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, datum: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.any, endAngle: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, pathComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, r: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, startAngle: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number }); Arc.defaultProps = { pathComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_path__WEBPACK_IMPORTED_MODULE_5__["default"], null), role: "presentation", shapeRendering: "auto" }; /* harmony default export */ __webpack_exports__["default"] = (Arc); /***/ }), /***/ "../../victory-core/es/victory-primitives/background.js": /*!*****************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-primitives/background.js ***! \*****************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js"); /* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js"); /* harmony import */ var _rect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./rect */ "../../victory-core/es/victory-primitives/rect.js"); /* harmony import */ var _circle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./circle */ "../../victory-core/es/victory-primitives/circle.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } var evaluateProps = function (props) { /** * Potential evaluated prop is: * `id` */ var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.id, props); return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { id: id }); }; var Background = function (props) { props = evaluateProps(props); return props.polar ? react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(props.circleComponent, _objectSpread({}, props.events, { style: props.style, role: props.role, shapeRendering: props.shapeRendering, cx: props.x, cy: props.y, r: props.height, className: props.className })) : react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(props.rectComponent, _objectSpread({}, props.events, { style: props.style, role: props.role, shapeRendering: props.shapeRendering, x: props.x, y: props.y, rx: props.rx, ry: props.ry, width: props.width, height: props.height, className: props.className })); }; Background.propTypes = _objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_4__["default"].primitiveProps, { circleComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, height: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, rectComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, rx: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, ry: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, width: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, x: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, y: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number }); Background.defaultProps = { circleComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_circle__WEBPACK_IMPORTED_MODULE_6__["default"], null), rectComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_rect__WEBPACK_IMPORTED_MODULE_5__["default"], null), role: "presentation", shapeRendering: "auto" }; /* harmony default export */ __webpack_exports__["default"] = (Background); /***/ }), /***/ "../../victory-core/es/victory-primitives/border.js": /*!*************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-primitives/border.js ***! \*************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js"); /* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js"); /* harmony import */ var _rect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./rect */ "../../victory-core/es/victory-primitives/rect.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } var evaluateProps = function (props) { /** * Potential evaluated props are: * `ariaLabel` * `desc` * `id` * `style` * `tabIndex` */ var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.ariaLabel, props); var desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.desc, props); var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.id, props); var style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ fill: "none" }, props.style), props); var tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.tabIndex, props); return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { ariaLabel: ariaLabel, desc: desc, id: id, style: style, tabIndex: tabIndex }); }; var Border = function (props) { props = evaluateProps(props); return react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(props.rectComponent, _objectSpread({}, props.events, { "aria-label": props.ariaLabel, style: props.style, desc: props.desc, tabIndex: props.tabIndex, transform: props.transform, className: props.className, role: props.role, shapeRendering: props.shapeRendering, x: props.x, y: props.y, width: props.width, height: props.height, clipPath: props.clipPath })); }; Border.propTypes = _objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_4__["default"].primitiveProps, { height: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, rectComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, width: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, x: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, y: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number }); Border.defaultProps = { rectComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_rect__WEBPACK_IMPORTED_MODULE_5__["default"], null), role: "presentation", shapeRendering: "auto" }; /* harmony default export */ __webpack_exports__["default"] = (Border); /***/ }), /***/ "../../victory-core/es/victory-primitives/circle.js": /*!*************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-primitives/circle.js ***! \*************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 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); } function _objectWithoutProperties(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]; } 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; } var Circle = function (props) { // eslint-disable-next-line react/prop-types var desc = props.desc, rest = _objectWithoutProperties(props, ["desc"]); return desc ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("circle", _extends({ vectorEffect: "non-scaling-stroke" }, rest), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("desc", null, desc)) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("circle", _extends({ vectorEffect: "non-scaling-stroke" }, rest)); }; /* harmony default export */ __webpack_exports__["default"] = (Circle); /***/ }), /***/ "../../victory-core/es/victory-primitives/clip-path.js": /*!****************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-primitives/clip-path.js ***! \****************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__); var ClipPath = function (props) { return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("defs", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("clipPath", { id: props.clipId }, props.children)); }; ClipPath.propTypes = { children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node]), clipId: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]) }; /* harmony default export */ __webpack_exports__["default"] = (ClipPath); /***/ }), /***/ "../../victory-core/es/victory-primitives/line-segment.js": /*!*******************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-primitives/line-segment.js ***! \*******************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js"); /* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js"); /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } var evaluateProps = function (props) { /** * Potential evaluated props are: * `ariaLabel` * `desc` * `id` * `style` * `tabIndex` */ var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.ariaLabel, props); var desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.desc, props); var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.id, props); var style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ stroke: "black" }, props.style), props); var tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.tabIndex, props); return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { ariaLabel: ariaLabel, desc: desc, id: id, style: style, tabIndex: tabIndex }); }; var LineSegment = function (props) { props = evaluateProps(props); return react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(props.lineComponent, _objectSpread({}, props.events, { "aria-label": props.ariaLabel, style: props.style, desc: props.desc, tabIndex: props.tabIndex, className: props.className, role: props.role, shapeRendering: props.shapeRendering, x1: props.x1, x2: props.x2, y1: props.y1, y2: props.y2, transform: props.transform, clipPath: props.clipPath })); }; LineSegment.propTypes = _objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_4__["default"].primitiveProps, { datum: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.any, lineComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, x1: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, x2: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, y1: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, y2: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number }); LineSegment.defaultProps = { lineComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_line__WEBPACK_IMPORTED_MODULE_5__["default"], null), role: "presentation", shapeRendering: "auto" }; /* harmony default export */ __webpack_exports__["default"] = (LineSegment); /***/ }), /***/ "../../victory-core/es/victory-primitives/line.js": /*!***********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-primitives/line.js ***! \***********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 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); } function _objectWithoutProperties(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]; } 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; } var Line = function (props) { // eslint-disable-next-line react/prop-types var desc = props.desc, rest = _objectWithoutProperties(props, ["desc"]); return desc ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("line", _extends({ vectorEffect: "non-scaling-stroke" }, rest), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("desc", null, desc)) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("line", _extends({ vectorEffect: "non-scaling-stroke" }, rest)); }; /* harmony default export */ __webpack_exports__["default"] = (Line); /***/ }), /***/ "../../victory-core/es/victory-primitives/path-helpers.js": /*!*******************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-primitives/path-helpers.js ***! \*******************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/range */ "../../../node_modules/lodash/range.js"); /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_0__); /* harmony default export */ __webpack_exports__["default"] = ({ circle: function (x, y, size) { return "M ".concat(x, ", ").concat(y, "\n m ").concat(-size, ", 0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(size * 2, ",0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(-size * 2, ",0"); }, square: function (x, y, size) { var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers var x0 = x - baseSize; var y1 = y + baseSize; var distance = x + baseSize - x0; return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(distance, "\n h-").concat(distance, "\n z"); }, diamond: function (x, y, size) { var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers var length = Math.sqrt(2 * (baseSize * baseSize)); return "M ".concat(x, ", ").concat(y + length, "\n l ").concat(length, ", -").concat(length, "\n l -").concat(length, ", -").concat(length, "\n l -").concat(length, ", ").concat(length, "\n l ").concat(length, ", ").concat(length, "\n z"); }, triangleDown: function (x, y, size) { var height = size / 2 * Math.sqrt(3); var x0 = x - size; var x1 = x + size; var y0 = y - size; var y1 = y + height; return "M ".concat(x0, ", ").concat(y0, "\n L ").concat(x1, ", ").concat(y0, "\n L ").concat(x, ", ").concat(y1, "\n z"); }, triangleUp: function (x, y, size) { var height = size / 2 * Math.sqrt(3); var x0 = x - size; var x1 = x + size; var y0 = y - height; var y1 = y + size; return "M ".concat(x0, ", ").concat(y1, "\n L ").concat(x1, ", ").concat(y1, "\n L ").concat(x, ", ").concat(y0, "\n z"); }, plus: function (x, y, size) { var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize, "\n v-").concat(distance, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance, "\n z"); }, cross: function (x, y, size) { var baseSize = 0.8 * size; // eslint-disable-line no-magic-numbers var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize + distance, "\n v-").concat(distance * 2, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance * 2, "\n z"); }, minus: function (x, y, size) { var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers var lineHeight = baseSize - baseSize * 0.3; // eslint-disable-line no-magic-numbers var x0 = x - baseSize; var y1 = y + lineHeight / 2; var distance = x + baseSize - x0; return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(lineHeight, "\n h-").concat(distance, "\n z"); }, star: function (x, y, size) { var baseSize = 1.35 * size; // eslint-disable-line no-magic-numbers var angle = Math.PI / 5; // eslint-disable-line no-magic-numbers // eslint-disable-next-line no-magic-numbers var starCoords = lodash_range__WEBPACK_IMPORTED_MODULE_0___default()(10).map(function (index) { var length = index % 2 === 0 ? baseSize : baseSize / 2; return "".concat(length * Math.sin(angle * (index + 1)) + x, ",\n ").concat(length * Math.cos(angle * (index + 1)) + y); }); return "M ".concat(starCoords.join("L"), " z"); } }); /***/ }), /***/ "../../victory-core/es/victory-primitives/path.js": /*!***********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-primitives/path.js ***! \***********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); function _objectWithoutProperties(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]; } 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; } var Path = function (props) { // eslint-disable-next-line react/prop-types var desc = props.desc, rest = _objectWithoutProperties(props, ["desc"]); return desc ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path", rest, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("desc", null, desc)) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path", rest); }; /* harmony default export */ __webpack_exports__["default"] = (Path); /***/ }), /***/ "../../victory-core/es/victory-primitives/point.js": /*!************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-primitives/point.js ***! \************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js"); /* harmony import */ var _path_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./path-helpers */ "../../victory-core/es/victory-primitives/path-helpers.js"); /* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js"); /* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./path */ "../../victory-core/es/victory-primitives/path.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } var getPath = function (props) { var x = props.x, y = props.y, size = props.size, symbol = props.symbol; if (props.getPath) { return props.getPath(x, y, size); } var pathFunctions = { circle: _path_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].circle, square: _path_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].square, diamond: _path_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].diamond, triangleDown: _path_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].triangleDown, triangleUp: _path_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].triangleUp, plus: _path_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].plus, minus: _path_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].minus, star: _path_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].star, cross: _path_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].cross }; var symbolFunction = typeof pathFunctions[symbol] === "function" ? pathFunctions[symbol] : pathFunctions.circle; return symbolFunction(x, y, size); }; var evaluateProps = function (props) { /** * Potential evaluated props are: * `ariaLabel` * `desc` * `id` * `size` * `style` * `symbol` * `tabIndex` */ var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.ariaLabel, props); var desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.desc, props); var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.id, props); var size = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.size, props); var style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateStyle(props.style, props); var symbol = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.symbol, props); var tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.tabIndex, props); return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { ariaLabel: ariaLabel, desc: desc, id: id, size: size, style: style, symbol: symbol, tabIndex: tabIndex }); }; var Point = function (props) { props = evaluateProps(props); return react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(props.pathComponent, _objectSpread({}, props.events, { "aria-label": props.ariaLabel, d: getPath(props), style: props.style, desc: props.desc, tabIndex: props.tabIndex, role: props.role, shapeRendering: props.shapeRendering, className: props.className, transform: props.transform, clipPath: props.clipPath })); }; Point.propTypes = _objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_5__["default"].primitiveProps, { datum: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, getPath: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func, pathComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, size: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func]), symbol: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["circle", "cross", "diamond", "plus", "minus", "square", "star", "triangleDown", "triangleUp"]), prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func]), x: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, y: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number }); Point.defaultProps = { pathComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_path__WEBPACK_IMPORTED_MODULE_6__["default"], null), role: "presentation", shapeRendering: "auto" }; /* harmony default export */ __webpack_exports__["default"] = (Point); /***/ }), /***/ "../../victory-core/es/victory-primitives/rect.js": /*!***********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-primitives/rect.js ***! \***********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 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); } function _objectWithoutProperties(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]; } 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; } var Rect = function (props) { // eslint-disable-next-line react/prop-types var desc = props.desc, rest = _objectWithoutProperties(props, ["desc"]); return desc ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("rect", _extends({ vectorEffect: "non-scaling-stroke" }, rest), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("desc", null, desc)) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("rect", _extends({ vectorEffect: "non-scaling-stroke" }, rest)); }; /* harmony default export */ __webpack_exports__["default"] = (Rect); /***/ }), /***/ "../../victory-core/es/victory-primitives/text.js": /*!***********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-primitives/text.js ***! \***********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__); function _objectWithoutProperties(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]; } 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; } var Text = function (props) { var children = props.children, title = props.title, desc = props.desc, rest = _objectWithoutProperties(props, ["children", "title", "desc"]); return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("text", rest, title && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("title", null, title), desc && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("desc", null, desc), children); }; Text.propTypes = { children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node, desc: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string }; /* harmony default export */ __webpack_exports__["default"] = (Text); /***/ }), /***/ "../../victory-core/es/victory-primitives/tspan.js": /*!************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-primitives/tspan.js ***! \************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); var TSpan = function (props) { return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tspan", props); }; /* harmony default export */ __webpack_exports__["default"] = (TSpan); /***/ }), /***/ "../../victory-core/es/victory-primitives/whisker.js": /*!**************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-primitives/whisker.js ***! \**************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js"); /* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js"); /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } var evaluateProps = function (props) { /** * Potential evaluated props are: * `ariaLabel` * `desc` * `id` * `style` * `tabIndex` */ var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.ariaLabel, props); var desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.desc, props); var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.id, props); var style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateStyle(props.style, props); var tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].evaluateProp(props.tabIndex, props); return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { ariaLabel: ariaLabel, desc: desc, id: id, style: style, tabIndex: tabIndex }); }; var Whisker = function (props) { props = evaluateProps(props); var _props = props, ariaLabel = _props.ariaLabel, groupComponent = _props.groupComponent, lineComponent = _props.lineComponent, events = _props.events, className = _props.className, majorWhisker = _props.majorWhisker, minorWhisker = _props.minorWhisker, transform = _props.transform, clipPath = _props.clipPath, role = _props.role, shapeRendering = _props.shapeRendering, style = _props.style, desc = _props.desc, tabIndex = _props.tabIndex; var baseProps = _objectSpread({}, events, { style: style, desc: desc, tabIndex: tabIndex, className: className, transform: transform, clipPath: clipPath, role: role, shapeRendering: shapeRendering }); return react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(groupComponent, {}, [react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(lineComponent, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ key: "major-whisker", "aria-label": ariaLabel }, baseProps, majorWhisker)), react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(lineComponent, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ key: "minor-whisker", "aria-label": ariaLabel }, baseProps, minorWhisker))]); }; Whisker.propTypes = _objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_4__["default"].primitiveProps, { groupComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, lineComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, majorWhisker: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({ x1: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, x2: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, y1: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, y2: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number }), minorWhisker: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({ x1: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, x2: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, y1: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, y2: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number }) }); Whisker.defaultProps = { groupComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("g", null), lineComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_line__WEBPACK_IMPORTED_MODULE_5__["default"], null), role: "presentation", shapeRendering: "auto" }; /* harmony default export */ __webpack_exports__["default"] = (Whisker); /***/ }), /***/ "../../victory-core/es/victory-theme/grayscale.js": /*!***********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-theme/grayscale.js ***! \***********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__); // * // * Colors // * var colors = ["#252525", "#525252", "#737373", "#969696", "#bdbdbd", "#d9d9d9", "#f0f0f0"]; var charcoal = "#252525"; var grey = "#969696"; // * // * Typography // * var sansSerif = "'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif"; var letterSpacing = "normal"; var fontSize = 14; // * // * Layout // * var baseProps = { width: 450, height: 300, padding: 50, colorScale: colors }; // * // * Labels // * var baseLabelStyles = { fontFamily: sansSerif, fontSize: fontSize, letterSpacing: letterSpacing, padding: 10, fill: charcoal, stroke: "transparent" }; var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ textAnchor: "middle" }, baseLabelStyles); // * // * Strokes // * var strokeLinecap = "round"; var strokeLinejoin = "round"; /* harmony default export */ __webpack_exports__["default"] = ({ area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { data: { fill: charcoal }, labels: baseLabelStyles } }, baseProps), axis: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { axis: { fill: "transparent", stroke: charcoal, strokeWidth: 1, strokeLinecap: strokeLinecap, strokeLinejoin: strokeLinejoin }, axisLabel: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, centeredLabelStyles, { padding: 25 }), grid: { fill: "none", stroke: "none", pointerEvents: "painted" }, ticks: { fill: "transparent", size: 1, stroke: "transparent" }, tickLabels: baseLabelStyles } }, baseProps), bar: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { data: { fill: charcoal, padding: 8, strokeWidth: 0 }, labels: baseLabelStyles } }, baseProps), boxplot: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { max: { padding: 8, stroke: charcoal, strokeWidth: 1 }, maxLabels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 3 }), median: { padding: 8, stroke: charcoal, strokeWidth: 1 }, medianLabels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 3 }), min: { padding: 8, stroke: charcoal, strokeWidth: 1 }, minLabels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 3 }), q1: { padding: 8, fill: grey }, q1Labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 3 }), q3: { padding: 8, fill: grey }, q3Labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 3 }) }, boxWidth: 20 }, baseProps), candlestick: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { data: { stroke: charcoal, strokeWidth: 1 }, labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 5 }) }, candleColors: { positive: "#ffffff", negative: charcoal } }, baseProps), chart: baseProps, errorbar: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ borderWidth: 8, style: { data: { fill: "transparent", stroke: charcoal, strokeWidth: 2 }, labels: baseLabelStyles } }, baseProps), group: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ colorScale: colors }, baseProps), histogram: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { data: { fill: grey, stroke: charcoal, strokeWidth: 2 }, labels: baseLabelStyles } }, baseProps), legend: { colorScale: colors, gutter: 10, orientation: "vertical", titleOrientation: "top", style: { data: { type: "circle" }, labels: baseLabelStyles, title: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 5 }) } }, line: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { data: { fill: "transparent", stroke: charcoal, strokeWidth: 2 }, labels: baseLabelStyles } }, baseProps), pie: { style: { data: { padding: 10, stroke: "transparent", strokeWidth: 1 }, labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 20 }) }, colorScale: colors, width: 400, height: 400, padding: 50 }, scatter: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { data: { fill: charcoal, stroke: "transparent", strokeWidth: 0 }, labels: baseLabelStyles } }, baseProps), stack: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ colorScale: colors }, baseProps), tooltip: { style: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 0, pointerEvents: "none" }), flyoutStyle: { stroke: charcoal, strokeWidth: 1, fill: "#f0f0f0", pointerEvents: "none" }, flyoutPadding: 5, cornerRadius: 5, pointerLength: 10 }, voronoi: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { data: { fill: "transparent", stroke: "transparent", strokeWidth: 0 }, labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 5, pointerEvents: "none" }), flyout: { stroke: charcoal, strokeWidth: 1, fill: "#f0f0f0", pointerEvents: "none" } } }, baseProps) }); /***/ }), /***/ "../../victory-core/es/victory-theme/material.js": /*!**********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-theme/material.js ***! \**********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__); // * // * Colors // * var yellow200 = "#FFF59D"; var deepOrange600 = "#F4511E"; var lime300 = "#DCE775"; var lightGreen500 = "#8BC34A"; var teal700 = "#00796B"; var cyan900 = "#006064"; var colors = [deepOrange600, yellow200, lime300, lightGreen500, teal700, cyan900]; var blueGrey50 = "#ECEFF1"; var blueGrey300 = "#90A4AE"; var blueGrey700 = "#455A64"; var grey900 = "#212121"; // * // * Typography // * var sansSerif = "'Helvetica Neue', 'Helvetica', sans-serif"; var letterSpacing = "normal"; var fontSize = 12; // * // * Layout // * var padding = 8; var baseProps = { width: 350, height: 350, padding: 50 }; // * // * Labels // * var baseLabelStyles = { fontFamily: sansSerif, fontSize: fontSize, letterSpacing: letterSpacing, padding: padding, fill: blueGrey700, stroke: "transparent", strokeWidth: 0 }; var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ textAnchor: "middle" }, baseLabelStyles); // * // * Strokes // * var strokeDasharray = "10, 5"; var strokeLinecap = "round"; var strokeLinejoin = "round"; /* harmony default export */ __webpack_exports__["default"] = ({ area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { data: { fill: grey900 }, labels: baseLabelStyles } }, baseProps), axis: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { axis: { fill: "transparent", stroke: blueGrey300, strokeWidth: 2, strokeLinecap: strokeLinecap, strokeLinejoin: strokeLinejoin }, axisLabel: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, centeredLabelStyles, { padding: padding, stroke: "transparent" }), grid: { fill: "none", stroke: blueGrey50, strokeDasharray: strokeDasharray, strokeLinecap: strokeLinecap, strokeLinejoin: strokeLinejoin, pointerEvents: "painted" }, ticks: { fill: "transparent", size: 5, stroke: blueGrey300, strokeWidth: 1, strokeLinecap: strokeLinecap, strokeLinejoin: strokeLinejoin }, tickLabels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { fill: blueGrey700 }) } }, baseProps), polarDependentAxis: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { ticks: { fill: "transparent", size: 1, stroke: "transparent" } } }), bar: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { data: { fill: blueGrey700, padding: padding, strokeWidth: 0 }, labels: baseLabelStyles } }, baseProps), boxplot: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { max: { padding: padding, stroke: blueGrey700, strokeWidth: 1 }, maxLabels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 3 }), median: { padding: padding, stroke: blueGrey700, strokeWidth: 1 }, medianLabels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 3 }), min: { padding: padding, stroke: blueGrey700, strokeWidth: 1 }, minLabels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 3 }), q1: { padding: padding, fill: blueGrey700 }, q1Labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 3 }), q3: { padding: padding, fill: blueGrey700 }, q3Labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 3 }) }, boxWidth: 20 }, baseProps), candlestick: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { data: { stroke: blueGrey700 }, labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 5 }) }, candleColors: { positive: "#ffffff", negative: blueGrey700 } }, baseProps), chart: baseProps, errorbar: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ borderWidth: 8, style: { data: { fill: "transparent", opacity: 1, stroke: blueGrey700, strokeWidth: 2 }, labels: baseLabelStyles } }, baseProps), group: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ colorScale: colors }, baseProps), histogram: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { data: { fill: blueGrey700, stroke: grey900, strokeWidth: 2 }, labels: baseLabelStyles } }, baseProps), legend: { colorScale: colors, gutter: 10, orientation: "vertical", titleOrientation: "top", style: { data: { type: "circle" }, labels: baseLabelStyles, title: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 5 }) } }, line: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { data: { fill: "transparent", opacity: 1, stroke: blueGrey700, strokeWidth: 2 }, labels: baseLabelStyles } }, baseProps), pie: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ colorScale: colors, style: { data: { padding: padding, stroke: blueGrey50, strokeWidth: 1 }, labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 20 }) } }, baseProps), scatter: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { data: { fill: blueGrey700, opacity: 1, stroke: "transparent", strokeWidth: 0 }, labels: baseLabelStyles } }, baseProps), stack: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ colorScale: colors }, baseProps), tooltip: { style: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 0, pointerEvents: "none" }), flyoutStyle: { stroke: grey900, strokeWidth: 1, fill: "#f0f0f0", pointerEvents: "none" }, flyoutPadding: 5, cornerRadius: 5, pointerLength: 10 }, voronoi: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ style: { data: { fill: "transparent", stroke: "transparent", strokeWidth: 0 }, labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, { padding: 5, pointerEvents: "none" }), flyout: { stroke: grey900, strokeWidth: 1, fill: "#f0f0f0", pointerEvents: "none" } } }, baseProps) }); /***/ }), /***/ "../../victory-core/es/victory-theme/victory-theme.js": /*!***************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-theme/victory-theme.js ***! \***************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js"); /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js"); /* harmony default export */ __webpack_exports__["default"] = ({ material: _material__WEBPACK_IMPORTED_MODULE_0__["default"], grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_1__["default"] }); /***/ }), /***/ "../../victory-core/es/victory-transition/victory-transition.js": /*!*************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-transition/victory-transition.js ***! \*************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return VictoryTransition; }); /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/lodash/isObject.js"); /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js"); /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js"); /* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js"); /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js"); /* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js"); /* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_11__); 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); } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } var VictoryTransition = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryTransition, _React$Component); function VictoryTransition(props, context) { var _this; _classCallCheck(this, VictoryTransition); _this = _possibleConstructorReturn(this, (VictoryTransition.__proto__ || Object.getPrototypeOf(VictoryTransition)).call(this, props, context)); _this.state = { nodesShouldLoad: false, nodesDoneLoad: false }; var child = _this.props.children; var polar = child.props.polar; _this.continuous = !polar && child.type && child.type.continuous === true; _this.getTransitionState = _this.getTransitionState.bind(_assertThisInitialized(_this)); _this.timer = _this.context.transitionTimer; return _this; } _createClass(VictoryTransition, [{ key: "componentDidMount", value: function componentDidMount() { this.setState({ nodesShouldLoad: true }); //eslint-disable-line react/no-did-mount-set-state } }, { key: "shouldComponentUpdate", value: function shouldComponentUpdate(nextProps) { var _this2 = this; if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_11___default()(this.props, nextProps)) { this.timer.bypassAnimation(); this.setState(this.getTransitionState(this.props, nextProps), function () { return _this2.timer.resumeAnimation(); }); } return true; } }, { key: "componentWillUnmount", value: function componentWillUnmount() { this.timer.stop(); } }, { key: "getTransitionState", value: function getTransitionState(props, nextProps) { var animate = props.animate; if (!animate) { return {}; } else if (animate.parentState) { var state = animate.parentState; var oldProps = state.nodesWillExit ? props : null; return { oldProps: oldProps, nextProps: nextProps }; } else { var oldChildren = react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.toArray(props.children); var nextChildren = react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.toArray(nextProps.children); var _Transitions$getIniti = _victory_util_transitions__WEBPACK_IMPORTED_MODULE_10__["default"].getInitialTransitionState(oldChildren, nextChildren), nodesWillExit = _Transitions$getIniti.nodesWillExit, nodesWillEnter = _Transitions$getIniti.nodesWillEnter, childrenTransitions = _Transitions$getIniti.childrenTransitions, nodesShouldEnter = _Transitions$getIniti.nodesShouldEnter; return { nodesWillExit: nodesWillExit, nodesWillEnter: nodesWillEnter, childrenTransitions: childrenTransitions, nodesShouldEnter: nodesShouldEnter, oldProps: nodesWillExit ? props : null, nextProps: nextProps }; } } }, { key: "getDomainFromChildren", value: function getDomainFromChildren(props, axis) { var getChildDomains = function (children) { return children.reduce(function (memo, child) { if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(child.type.getDomain)) { var childDomain = child.props && child.type.getDomain(child.props, axis); return childDomain ? memo.concat(childDomain) : memo; } else if (child.props && child.props.children) { return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.toArray(child.props.children))); } return memo; }, []); }; var child = react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.toArray(props.children)[0]; var childProps = child.props || {}; var domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis]; if (!childProps.children && domain) { return domain; } else { var childDomains = getChildDomains([child]); return childDomains.length === 0 ? [0, 1] : [_victory_util_collection__WEBPACK_IMPORTED_MODULE_7__["default"].getMinValue(childDomains), _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__["default"].getMaxValue(childDomains)]; } } }, { key: "pickProps", value: function pickProps() { if (!this.state) { return this.props; } return this.state.nodesWillExit ? this.state.oldProps || this.props : this.props; } }, { key: "pickDomainProps", value: function pickDomainProps(props) { var parentState = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(props.animate) && props.animate.parentState; if (parentState && parentState.nodesWillExit) { return this.continous || parentState.continuous ? parentState.nextProps || this.state.nextProps || props : props; } return this.continuous && this.state.nodesWillExit ? this.state.nextProps || props : props; } }, { key: "getClipWidth", value: function getClipWidth(props, child) { var getDefaultClipWidth = function () { var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__["default"].getRange(child.props, "x"); return range ? Math.abs(range[1] - range[0]) : props.width; }; var clipWidth = this.transitionProps ? this.transitionProps.clipWidth : undefined; return clipWidth !== undefined ? clipWidth : getDefaultClipWidth(); } }, { key: "render", value: function render() { var _this3 = this; var props = this.pickProps(); var getTransitionProps = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(this.props.animate) && this.props.animate.getTransitions ? this.props.animate.getTransitions : _victory_util_transitions__WEBPACK_IMPORTED_MODULE_10__["default"].getTransitionPropsFactory(props, this.state, function (newState) { return _this3.setState(newState); }); var child = react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.toArray(props.children)[0]; var transitionProps = getTransitionProps(child); this.transitionProps = transitionProps; var domain = { x: this.getDomainFromChildren(this.pickDomainProps(props), "x"), y: this.getDomainFromChildren(props, "y") }; var clipWidth = this.getClipWidth(props, child); var combinedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({ domain: domain, clipWidth: clipWidth }, transitionProps, child.props); var animationWhitelist = props.animationWhitelist || []; var whitelist = animationWhitelist.concat(["clipWidth"]); var propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(combinedProps, whitelist) : combinedProps; return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_6__["default"], _extends({}, combinedProps.animate, { data: propsToAnimate }), function (newProps) { if (child.props.groupComponent) { var groupComponent = _this3.continuous ? react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(child.props.groupComponent, { clipWidth: newProps.clipWidth || 0 }) : child.props.groupComponent; return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({ animate: null, animating: true, groupComponent: groupComponent }, newProps, combinedProps)); } return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({ animate: null, animating: true }, newProps, combinedProps)); }); } }]); return VictoryTransition; }(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component); Object.defineProperty(VictoryTransition, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryTransition" }); Object.defineProperty(VictoryTransition, "propTypes", { configurable: true, enumerable: true, writable: true, value: { animate: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object]), animationWhitelist: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.array, children: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.node } }); Object.defineProperty(VictoryTransition, "contextType", { configurable: true, enumerable: true, writable: true, value: _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_9__["default"] }); /***/ }), /***/ "../../victory-core/es/victory-util/add-events.js": /*!***********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/add-events.js ***! \***********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js"); /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js"); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js"); /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js"); /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js"); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-transition/victory-transition */ "../../victory-core/es/victory-transition/victory-transition.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } /*global window:false */ var datumHasXandY = function (datum) { return !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._y); }; // used for checking state changes. Expected components can be passed in via options var defaultComponents = [{ name: "parent", index: "parent" }, { name: "data" }, { name: "labels" }]; /* harmony default export */ __webpack_exports__["default"] = (function (WrappedComponent, options) { return ( /*#__PURE__*/ function (_WrappedComponent) { _inherits(addEvents, _WrappedComponent); function addEvents(props) { var _this; _classCallCheck(this, addEvents); _this = _possibleConstructorReturn(this, (addEvents.__proto__ || Object.getPrototypeOf(addEvents)).call(this, props)); var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_10__["default"].getScopedEvents.bind(_assertThisInitialized(_this)); var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_10__["default"].getEvents.bind(_assertThisInitialized(_this)); _this.state = {}; _this.getEvents = function (p, target, eventKey) { return boundGetEvents(p, target, eventKey, getScopedEvents); }; _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_10__["default"].getEventState.bind(_assertThisInitialized(_this)); var calculatedValues = _this.getCalculatedValues(props); _this.cacheValues(calculatedValues); _this.externalMutations = _this.getExternalMutations(props); _this.calculatedState = _this.getStateChanges(props); _this.globalEvents = {}; _this.prevGlobalEventKeys = []; _this.boundGlobalEvents = {}; return _this; } _createClass(addEvents, [{ key: "shouldComponentUpdate", value: function shouldComponentUpdate(nextProps) { var externalMutations = this.getExternalMutations(nextProps); var animating = this.props.animating || this.props.animate; var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_11___default()(externalMutations, this.externalMutations); if (animating || newMutation) { this.cacheValues(this.getCalculatedValues(nextProps)); this.externalMutations = externalMutations; this.applyExternalMutations(nextProps, externalMutations); return true; } var calculatedState = this.getStateChanges(nextProps); if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_11___default()(this.calculatedState, calculatedState)) { this.cacheValues(this.getCalculatedValues(nextProps)); return true; } if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_11___default()(this.props, nextProps)) { this.cacheValues(this.getCalculatedValues(nextProps)); return true; } return false; } }, { key: "componentDidMount", value: function componentDidMount() { var _this2 = this; var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents); globalEventKeys.forEach(function (key) { return _this2.addGlobalListener(key); }); this.prevGlobalEventKeys = globalEventKeys; } }, { key: "componentDidUpdate", value: function componentDidUpdate(prevProps) { var _this3 = this; var calculatedState = this.getStateChanges(prevProps); this.calculatedState = calculatedState; var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents); var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys); removedGlobalEventKeys.forEach(function (key) { return _this3.removeGlobalListener(key); }); var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys); addedGlobalEventKeys.forEach(function (key) { return _this3.addGlobalListener(key); }); this.prevGlobalEventKeys = globalEventKeys; } }, { key: "componentWillUnmount", value: function componentWillUnmount() { var _this4 = this; this.prevGlobalEventKeys.forEach(function (key) { return _this4.removeGlobalListener(key); }); } }, { key: "addGlobalListener", value: function addGlobalListener(key) { var _this5 = this; var boundListener = function (event) { var listener = _this5.globalEvents[key]; return listener && listener(_events__WEBPACK_IMPORTED_MODULE_10__["default"].emulateReactEvent(event)); }; this.boundGlobalEvents[key] = boundListener; window.addEventListener(_events__WEBPACK_IMPORTED_MODULE_10__["default"].getGlobalEventNameFromKey(key), boundListener); } }, { key: "removeGlobalListener", value: function removeGlobalListener(key) { window.removeEventListener(_events__WEBPACK_IMPORTED_MODULE_10__["default"].getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]); } // compile all state changes from own and parent state. Order doesn't matter, as any state // state change should trigger a re-render }, { key: "getStateChanges", value: function getStateChanges(props) { var _this6 = this; if (!this.hasEvents) { return {}; } var getState = function (key, type) { var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type)); return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result; }; options = options || {}; var components = options.components || defaultComponents; var stateChanges = components.map(function (component) { if (!props.standalone && component.name === "parent") { // don't check for changes on parent props for non-standalone components return undefined; } else { return component.index !== undefined ? getState(component.index, component.name) : _this6.dataKeys.map(function (key) { return getState(key, component.name); }).filter(Boolean); } }).filter(Boolean); return stateChanges; } }, { key: "applyExternalMutations", value: function applyExternalMutations(props, externalMutations) { if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) { var callbacks = props.externalEventMutations.reduce(function (memo, mutation) { memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo; return memo; }, []); var compiledCallbacks = callbacks.length ? function () { callbacks.forEach(function (c) { return c(); }); } : undefined; this.setState(externalMutations, compiledCallbacks); } } }, { key: "getCalculatedValues", value: function getCalculatedValues(props) { var sharedEvents = props.sharedEvents; var components = WrappedComponent.expectedComponents; var componentEvents = _events__WEBPACK_IMPORTED_MODULE_10__["default"].getComponentEvents(props, components); var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () { return undefined; }; var baseProps = this.getBaseProps(props, getSharedEventState); var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(baseProps).filter(function (key) { return key !== "parent"; }); var hasEvents = props.events || props.sharedEvents || componentEvents; var events = this.getAllEvents(props); return { componentEvents: componentEvents, getSharedEventState: getSharedEventState, baseProps: baseProps, dataKeys: dataKeys, hasEvents: hasEvents, events: events }; } }, { key: "getExternalMutations", value: function getExternalMutations(props) { var sharedEvents = props.sharedEvents, externalEventMutations = props.externalEventMutations; return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_10__["default"].getExternalMutations(externalEventMutations, this.baseProps, this.state); } }, { key: "cacheValues", value: function cacheValues(obj) { var _this7 = this; lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).forEach(function (key) { _this7[key] = obj[key]; }); } }, { key: "getBaseProps", value: function getBaseProps(props, getSharedEventState) { getSharedEventState = getSharedEventState || this.getSharedEventState; var sharedParentState = getSharedEventState("parent", "parent"); var parentState = this.getEventState("parent", "parent"); var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentState, sharedParentState); var parentPropsList = baseParentProps.parentControlledProps; var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_4___default()(baseParentProps, parentPropsList) : {}; var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentProps, props); return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(WrappedComponent.getBaseProps) ? WrappedComponent.getBaseProps(modifiedProps) : {}; } }, { key: "getAllEvents", value: function getAllEvents(props) { if (Array.isArray(this.componentEvents)) { var _componentEvents; return Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents; } return props.events; } }, { key: "getComponentProps", value: function getComponentProps(component, type, index) { var name = this.props.name || WrappedComponent.role; var key = this.dataKeys && this.dataKeys[index] || index; var id = "".concat(name, "-").concat(type, "-").concat(key); var baseProps = this.baseProps[key] && this.baseProps[key][type] || this.baseProps[key]; if (!baseProps && !this.hasEvents) { return undefined; } if (this.hasEvents) { var baseEvents = this.getEvents(this.props, type, key); var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({ index: index, key: id }, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, { id: id }); var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _events__WEBPACK_IMPORTED_MODULE_10__["default"].getPartialEvents(baseEvents, key, componentProps), componentProps.events); return lodash_assign__WEBPACK_IMPORTED_MODULE_7___default()({}, componentProps, { events: events }); } return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({ index: index, key: id }, component.props, baseProps, { id: id }); } }, { key: "renderContainer", value: function renderContainer(component, children) { var isContainer = component.type && component.type.role === "container"; var parentProps = isContainer ? this.getComponentProps(component, "parent", "parent") : {}; if (parentProps.events) { this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_10__["default"].getGlobalEvents(parentProps.events); parentProps.events = _events__WEBPACK_IMPORTED_MODULE_10__["default"].omitGlobalEvents(parentProps.events); } return react__WEBPACK_IMPORTED_MODULE_9___default.a.cloneElement(component, parentProps, children); } }, { key: "animateComponent", value: function animateComponent(props, defaultAnimationWhitelist) { var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist; return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__["default"], { animate: props.animate, animationWhitelist: animationWhitelist }, react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(this.constructor, props)); } // Used by `VictoryLine` and `VictoryArea` }, { key: "renderContinuousData", value: function renderContinuousData(props) { var _this8 = this; var dataComponent = props.dataComponent, labelComponent = props.labelComponent, groupComponent = props.groupComponent; var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all"); var labelComponents = dataKeys.reduce(function (memo, key) { var labelProps = _this8.getComponentProps(labelComponent, "labels", key); if (labelProps && labelProps.text !== undefined && labelProps.text !== null) { memo = memo.concat(react__WEBPACK_IMPORTED_MODULE_9___default.a.cloneElement(labelComponent, labelProps)); } return memo; }, []); var dataProps = this.getComponentProps(dataComponent, "data", "all"); var children = [react__WEBPACK_IMPORTED_MODULE_9___default.a.cloneElement(dataComponent, dataProps)].concat(_toConsumableArray(labelComponents)); return this.renderContainer(groupComponent, children); } }, { key: "renderData", value: function renderData(props) { var _this9 = this; var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY; var dataComponent = props.dataComponent, labelComponent = props.labelComponent, groupComponent = props.groupComponent; var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) { var dataProps = _this9.getComponentProps(dataComponent, "data", index); if (shouldRenderDatum(dataProps.datum)) { validDataComponents.push(react__WEBPACK_IMPORTED_MODULE_9___default.a.cloneElement(dataComponent, dataProps)); } return validDataComponents; }, []); var labelComponents = this.dataKeys.map(function (_dataKey, index) { var labelProps = _this9.getComponentProps(labelComponent, "labels", index); if (labelProps.text !== undefined && labelProps.text !== null) { return react__WEBPACK_IMPORTED_MODULE_9___default.a.cloneElement(labelComponent, labelProps); } return undefined; }).filter(Boolean); var children = _toConsumableArray(dataComponents).concat(_toConsumableArray(labelComponents)); return this.renderContainer(groupComponent, children); } }]); return addEvents; }(WrappedComponent) ); }); /***/ }), /***/ "../../victory-core/es/victory-util/axis.js": /*!*****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/axis.js ***! \*****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js"); /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/includes */ "../../../node_modules/lodash/includes.js"); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/values */ "../../../node_modules/lodash/values.js"); /* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_values__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js"); /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/range */ "../../../node_modules/lodash/range.js"); /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/lodash/uniq.js"); /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/invert */ "../../../node_modules/lodash/invert.js"); /* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_invert__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/lodash/isObject.js"); /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/identity */ "../../../node_modules/lodash/identity.js"); /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_10__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__); /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js"); /* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./domain */ "../../victory-core/es/victory-util/domain.js"); /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } /* eslint-disable func-style */ /** * Returns the axis (x or y) of a particular axis component * @param {Object} props: the props object. * @param {Boolean} horizontal: true for horizontal charts * @returns {String} the dimension appropriate for the axis given its props */ function getAxis(props) { var dependentAxis = props.dependentAxis; return dependentAxis ? "y" : "x"; } /** * Returns all axis components that pass a given predicate * @param {Array} childComponents: an array of children * @param {Function} predicate: a predicate function that will be called with each * @returns {Array} all axis components that pass the given predicate or [] */ function findAxisComponents(childComponents, predicate) { predicate = predicate || lodash_identity__WEBPACK_IMPORTED_MODULE_9___default.a; var findAxes = function (children) { return children.reduce(function (memo, child) { if (child.type && child.type.role === "axis" && predicate(child)) { return memo.concat(child); } else if (child.props && child.props.children) { return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_12___default.a.Children.toArray(child.props.children))); } return memo; }, []); }; return findAxes(childComponents); } /** * Returns a single axis component of the desired axis type (x or y) * @param {Array} childComponents: an array of children * @param {String} axis: desired axis either "x" or "y". * @returns {ReactComponent} an axis component of the desired axis or undefined */ function getAxisComponent(childComponents, axis) { var matchesAxis = function (component) { var type = component.type.getAxis(component.props); return type === axis; }; return findAxisComponents(childComponents, matchesAxis)[0]; } /** * Returns all axis components of the desired axis type (x or y) along with any * parent components excluding VictoryChart * @param {Array} childComponents: an optional array of children. * @param {String} type: desired axis either "dependent" or "independent". * @returns {ReactComponent} an axis component of the desired type or undefined */ function getAxisComponentsWithParent(childComponents, type) { var matchesType = function (child) { return type === "dependent" ? child.props.dependentAxis : !child.props.dependentAxis; }; var findComponents = function (children) { return children.reduce(function (memo, child) { if (child.type && child.type.role === "axis" && matchesType(child)) { return memo.concat(child); } else if (child.props && child.props.children) { var childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_12___default.a.Children.toArray(child.props.children)); return childAxis.length > 0 ? memo.concat(child) : memo; } return memo; }, []); }; return findComponents(childComponents); } function getOrigin(domain) { var getSingleOrigin = function (d) { var domainMin = Math.min.apply(Math, _toConsumableArray(d)); var domainMax = Math.max.apply(Math, _toConsumableArray(d)); return domainMax < 0 ? domainMax : Math.max(0, domainMin); }; return { x: _collection__WEBPACK_IMPORTED_MODULE_13__["default"].containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x), y: _collection__WEBPACK_IMPORTED_MODULE_13__["default"].containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y) }; } function getOriginSign(origin, domain) { var getSign = function () { return origin <= 0 && Math.max.apply(Math, _toConsumableArray(domain)) <= 0 ? "negative" : "positive"; }; return _collection__WEBPACK_IMPORTED_MODULE_13__["default"].containsDates(domain) ? "positive" : getSign(); } /** * @param {Object} props: axis component props * @returns {Boolean} true when the axis is vertical */ function isVertical(props) { var orientation = props.orientation || (props.dependentAxis ? "left" : "bottom"); var vertical = { top: false, bottom: false, left: true, right: true }; return vertical[orientation]; } /** * @param {Object} props: axis component props * @returns {Boolean} true when tickValues contain strings */ function stringTicks(props) { return props.tickValues !== undefined && _collection__WEBPACK_IMPORTED_MODULE_13__["default"].containsStrings(props.tickValues); } function getDefaultTickFormat(props) { var tickValues = props.tickValues; var axis = getAxis(props); var stringMap = props.stringMap && props.stringMap[axis]; var fallbackFormat = tickValues && !_collection__WEBPACK_IMPORTED_MODULE_13__["default"].containsDates(tickValues) ? function (x) { return x; } : undefined; if (!stringMap) { return stringTicks(props) ? function (x, index) { return tickValues[index]; } : fallbackFormat; } else { var invertedStringMap = stringMap && lodash_invert__WEBPACK_IMPORTED_MODULE_6___default()(stringMap); var tickValueArray = lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default()(lodash_values__WEBPACK_IMPORTED_MODULE_2___default()(stringMap), function (n) { return n; }); var dataNames = tickValueArray.map(function (tick) { return invertedStringMap[tick]; }); // string ticks should have one tick of padding at the beginning var dataTicks = [""].concat(_toConsumableArray(dataNames), [""]); return function (x) { return dataTicks[x]; }; } } function getStringTicks(props) { var axis = getAxis(props); var stringMap = props.stringMap && props.stringMap[axis]; var categories = Array.isArray(props.categories) ? props.categories : props.categories && props.categories[axis]; var ticksFromCategories = categories && _collection__WEBPACK_IMPORTED_MODULE_13__["default"].containsOnlyStrings(categories) ? categories.map(function (tick) { return stringMap[tick]; }) : undefined; var ticksFromStringMap = stringMap && lodash_values__WEBPACK_IMPORTED_MODULE_2___default()(stringMap); return ticksFromCategories && ticksFromCategories.length !== 0 ? ticksFromCategories : ticksFromStringMap; } function getTickArray(props) { var tickValues = props.tickValues, tickFormat = props.tickFormat; var axis = getAxis(props); var stringMap = props.stringMap && props.stringMap[axis]; var getTicksFromFormat = function () { if (!tickFormat || !Array.isArray(tickFormat)) { return undefined; } return _collection__WEBPACK_IMPORTED_MODULE_13__["default"].containsStrings(tickFormat) ? tickFormat.map(function (t, i) { return i; }) : tickFormat; }; var ticks = tickValues; if (stringMap) { ticks = getStringTicks(props); } if (tickValues && _collection__WEBPACK_IMPORTED_MODULE_13__["default"].containsStrings(tickValues)) { ticks = stringMap ? tickValues.map(function (tick) { return stringMap[tick]; }) : lodash_range__WEBPACK_IMPORTED_MODULE_4___default()(1, tickValues.length + 1); } var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat(props); var buildTickArray = function (arr) { var newTickArray = []; var domain = props.domain && props.domain[axis] || props.domain; if (arr) { arr.forEach(function (t, index) { if (Array.isArray(domain)) { if (t >= _collection__WEBPACK_IMPORTED_MODULE_13__["default"].getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_13__["default"].getMaxValue(domain)) { newTickArray.push({ value: t, index: index }); } } else { newTickArray.push({ value: t, index: index }); } }); return newTickArray; } else return undefined; }; return Array.isArray(tickArray) && tickArray.length ? buildTickArray(tickArray) : undefined; } function getTickFormat(props, scale) { var tickFormat = props.tickFormat; var axis = getAxis(props); var stringMap = props.stringMap && props.stringMap[axis]; if (!tickFormat) { var defaultTickFormat = getDefaultTickFormat(props); var scaleTickFormat = scale.tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(scale.tickFormat) ? scale.tickFormat() : function (x) { return x; }; return defaultTickFormat || scaleTickFormat; } else if (tickFormat && Array.isArray(tickFormat)) { var tickArray = getTickArray(props); var tickArrayIndices = tickArray ? tickArray.map(function (v) { return v.index; }) : undefined; var filteredTickFormat = tickFormat.filter(function (t, index) { return tickArrayIndices.includes(index); }); return function (x, index) { return filteredTickFormat[index]; }; } else if (tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(tickFormat)) { var applyStringTicks = function (tick, index, ticks) { var invertedStringMap = lodash_invert__WEBPACK_IMPORTED_MODULE_6___default()(stringMap); var stringTickArray = ticks.map(function (t) { return invertedStringMap[t]; }); return props.tickFormat(invertedStringMap[tick], index, stringTickArray); }; return stringMap ? applyStringTicks : tickFormat; } else { return function (x) { return x; }; } } function downsampleTicks(ticks, tickCount) { if (!tickCount || !Array.isArray(ticks) || ticks.length <= tickCount) { return ticks; } var k = Math.floor(ticks.length / tickCount); return ticks.filter(function (d, i) { return i % k === 0; }); } function getTicks(props, scale, filterZero) { var tickCount = props.tickCount; var tickArray = getTickArray(props); var tickValues = tickArray ? tickArray.map(function (v) { return v.value; }) : undefined; if (tickValues) { return downsampleTicks(tickValues, tickCount); } else if (scale.ticks && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(scale.ticks)) { // eslint-disable-next-line no-magic-numbers var defaultTickCount = tickCount || 5; var scaleTicks = scale.ticks(defaultTickCount); var scaledTickArray = Array.isArray(scaleTicks) && scaleTicks.length ? scaleTicks : scale.domain(); var ticks = downsampleTicks(scaledTickArray, tickCount); if (filterZero) { var filteredTicks = lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(ticks, 0) ? lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(ticks, 0) : ticks; return filteredTicks.length ? filteredTicks : ticks; } return ticks; } return scale.domain(); } /** * Returns a domain based tickValues * @param {Object} props: the props object * @param {String} axis: either x or y * @returns {Array} returns a domain from tickValues */ //eslint-disable-next-line max-statements function getDomainFromData(props, axis) { var polar = props.polar, _props$startAngle = props.startAngle, startAngle = _props$startAngle === void 0 ? 0 : _props$startAngle, _props$endAngle = props.endAngle, endAngle = _props$endAngle === void 0 ? 360 : _props$endAngle; var tickArray = getTickArray(props); var tickValues = tickArray ? tickArray.map(function (v) { return v.value; }) : undefined; if (!Array.isArray(tickValues)) { return undefined; } var minDomain = _domain__WEBPACK_IMPORTED_MODULE_14__["default"].getMinFromProps(props, axis); var maxDomain = _domain__WEBPACK_IMPORTED_MODULE_14__["default"].getMaxFromProps(props, axis); var tickStrings = stringTicks(props); var ticks = tickValues.map(function (value) { return +value; }); var defaultMin = tickStrings ? 1 : _collection__WEBPACK_IMPORTED_MODULE_13__["default"].getMinValue(ticks); var defaultMax = tickStrings ? tickValues.length : _collection__WEBPACK_IMPORTED_MODULE_13__["default"].getMaxValue(ticks); var min = minDomain !== undefined ? minDomain : defaultMin; var max = maxDomain !== undefined ? maxDomain : defaultMax; var initialDomain = _domain__WEBPACK_IMPORTED_MODULE_14__["default"].getDomainFromMinMax(min, max); var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ? _domain__WEBPACK_IMPORTED_MODULE_14__["default"].getSymmetricDomain(initialDomain, ticks) : initialDomain; if (isVertical(props) && !polar) { domain.reverse(); } return domain; } // exposed for use by VictoryChart function getDomain(props, axis) { var inherentAxis = getAxis(props); if (axis && axis !== inherentAxis) { return undefined; } return _domain__WEBPACK_IMPORTED_MODULE_14__["default"].createDomainFunction(getDomainFromData)(props, inherentAxis); } function getAxisValue(props, axis) { if (!props.axisValue) { return undefined; } var scaleAxis = axis === "x" ? "y" : "x"; var scale = lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default()(props.scale) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(props.scale[scaleAxis]) ? props.scale[scaleAxis] : undefined; if (!scale) { return undefined; } var stringMapAxis = axis === "x" ? "y" : "x"; var stringMap = lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default()(props.stringMap) && props.stringMap[stringMapAxis]; var axisValue = stringMap && typeof props.axisValue === "string" ? stringMap[props.axisValue] : props.axisValue; return scale(axisValue); } function modifyProps(props, fallbackProps) { if (!lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default()(props.theme)) { return _helpers__WEBPACK_IMPORTED_MODULE_15__["default"].modifyProps(props, fallbackProps, "axis"); } var role = "axis"; if (props.dependentAxis && props.theme.dependentAxis) { role = "dependentAxis"; } else if (!props.dependentAxis && props.theme.independentAxis) { role = "independentAxis"; } if (role === "axis") { return _helpers__WEBPACK_IMPORTED_MODULE_15__["default"].modifyProps(props, fallbackProps, "axis"); } var axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_10___default()({}, props.theme[role], props.theme.axis); var theme = lodash_assign__WEBPACK_IMPORTED_MODULE_11___default()({}, props.theme, { axis: axisTheme }); return _helpers__WEBPACK_IMPORTED_MODULE_15__["default"].modifyProps(lodash_assign__WEBPACK_IMPORTED_MODULE_11___default()({}, props, { theme: theme }), fallbackProps, "axis"); } /* harmony default export */ __webpack_exports__["default"] = ({ getTicks: getTicks, getTickFormat: getTickFormat, getAxis: getAxis, getAxisComponent: getAxisComponent, getAxisComponentsWithParent: getAxisComponentsWithParent, getAxisValue: getAxisValue, findAxisComponents: findAxisComponents, getOrigin: getOrigin, getOriginSign: getOriginSign, getDomain: getDomain, isVertical: isVertical, modifyProps: modifyProps, stringTicks: stringTicks }); /***/ }), /***/ "../../victory-core/es/victory-util/collection.js": /*!***********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/collection.js ***! \***********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } /* eslint-disable func-style */ /* eslint-disable no-use-before-define */ function isNonEmptyArray(collection) { return Array.isArray(collection) && collection.length > 0; } function containsStrings(collection) { return Array.isArray(collection) && collection.some(function (value) { return typeof value === "string"; }); } function containsDates(collection) { return Array.isArray(collection) && collection.some(function (value) { return value instanceof Date; }); } function containsNumbers(collection) { return Array.isArray(collection) && collection.some(function (value) { return typeof value === "number"; }); } function containsOnlyStrings(collection) { return isNonEmptyArray(collection) && collection.every(function (value) { return typeof value === "string"; }); } function isArrayOfArrays(collection) { return isNonEmptyArray(collection) && collection.every(Array.isArray); } function removeUndefined(arr) { return arr.filter(function (el) { return el !== undefined; }); } function getMaxValue(arr) { for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { values[_key - 1] = arguments[_key]; } var array = arr.concat(values); return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) : Math.max.apply(Math, _toConsumableArray(array)); } function getMinValue(arr) { for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { values[_key2 - 1] = arguments[_key2]; } var array = arr.concat(values); return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) : Math.min.apply(Math, _toConsumableArray(array)); } /* harmony default export */ __webpack_exports__["default"] = ({ containsDates: containsDates, containsNumbers: containsNumbers, containsOnlyStrings: containsOnlyStrings, containsStrings: containsStrings, getMaxValue: getMaxValue, getMinValue: getMinValue, isArrayOfArrays: isArrayOfArrays, removeUndefined: removeUndefined }); /***/ }), /***/ "../../victory-core/es/victory-util/common-props.js": /*!*************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/common-props.js ***! \*************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./prop-types */ "../../victory-core/es/victory-util/prop-types.js"); var dataProps = { categories: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string), y: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string) })]), data: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object]), dataComponent: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.element, labelComponent: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.element, labels: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.array]), samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].nonNegative, sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func, _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string)]), sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(["ascending", "descending"]), style: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ parent: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object, data: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object, labels: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object }), x: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func, _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string)]), y: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func, _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string)]), y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func, _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string)]) }; var baseProps = { animate: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object]), containerComponent: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.element, domain: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].domain, y: _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].domain })]), maxDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.instanceOf(Date)]), y: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.instanceOf(Date)]) })]), minDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.instanceOf(Date)]), y: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.instanceOf(Date)]) })]), domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number)]), y: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number)]) }), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number)]), eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func, _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string]), events: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ target: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(["data", "labels", "parent"]), eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.array, _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string]), eventHandlers: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object })), externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ callback: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.function, childName: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.array]), eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.array, _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string]), mutation: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.function, target: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.array]) })), groupComponent: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.element, height: _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].nonNegative, name: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, y: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number }), padding: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ top: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, bottom: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, left: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, right: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number })]), polar: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool, range: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].domain, y: _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].domain })]), scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].scale, y: _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].scale })]), sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ events: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.array, getEventState: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func }), singleQuadrantDomainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool]), y: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool]) })]), standalone: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool, theme: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object, width: _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].nonNegative }; var primitiveProps = { active: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool, ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func]), className: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, clipPath: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, data: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object]), desc: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func]), events: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object, id: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func]), index: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string]), origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, y: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number }), polar: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool, role: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].scale, y: _prop_types__WEBPACK_IMPORTED_MODULE_1__["default"].scale })]), shapeRendering: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, style: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object, tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func]), transform: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string }; /* harmony default export */ __webpack_exports__["default"] = ({ baseProps: baseProps, dataProps: dataProps, primitiveProps: primitiveProps }); /***/ }), /***/ "../../victory-core/es/victory-util/data.js": /*!*****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/data.js ***! \*****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omitBy */ "../../../node_modules/lodash/omitBy.js"); /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isUndefined */ "../../../node_modules/lodash/isUndefined.js"); /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/includes */ "../../../node_modules/lodash/includes.js"); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isEqual */ "../../../node_modules/lodash/isEqual.js"); /* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js"); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js"); /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/property */ "../../../node_modules/lodash/property.js"); /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js"); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/last */ "../../../node_modules/lodash/last.js"); /* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_last__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/range */ "../../../node_modules/lodash/range.js"); /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_10__); /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/lodash/uniq.js"); /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_12__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__); /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js"); /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js"); /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js"); /* harmony import */ var _immutable__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./immutable */ "../../victory-core/es/victory-util/immutable.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } /* eslint-disable func-style */ /* eslint-disable no-use-before-define */ // Private Functions function parseDatum(datum) { var immutableDatumWhitelist = { errorX: true, errorY: true }; return _immutable__WEBPACK_IMPORTED_MODULE_17__["default"].isImmutable(datum) ? _immutable__WEBPACK_IMPORTED_MODULE_17__["default"].shallowToJS(datum, immutableDatumWhitelist) : datum; } function getLength(data) { return _immutable__WEBPACK_IMPORTED_MODULE_17__["default"].isIterable(data) ? data.size : data.length; } // Returns generated data for a given axis based on domain and sample from props function generateDataArray(props, axis) { var propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_7___default()(props.domain) ? props.domain[axis] : props.domain; var domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_16__["default"].getBaseScale(props, axis).domain(); var samples = props.samples || 1; var domainMax = Math.max.apply(Math, _toConsumableArray(domain)); var domainMin = Math.min.apply(Math, _toConsumableArray(domain)); var step = (domainMax - domainMin) / samples; var values = lodash_range__WEBPACK_IMPORTED_MODULE_10___default()(domainMin, domainMax, step); return lodash_last__WEBPACK_IMPORTED_MODULE_9___default()(values) === domainMax ? values : values.concat(domainMax); } // Returns sorted data. If no sort keys are provided, data is returned unaltered. function sortData(dataset, sortKey) { var sortOrder = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "ascending"; if (!sortKey) { return dataset; } // Ensures previous VictoryLine api for sortKey prop stays consistent if (sortKey === "x" || sortKey === "y") { sortKey = "_".concat(sortKey); } var order = sortOrder === "ascending" ? "asc" : "desc"; return lodash_orderBy__WEBPACK_IMPORTED_MODULE_5___default()(dataset, sortKey, order); } // This method will remove data points that break certain scales. (log scale only) function cleanData(dataset, props) { var smallNumber = 1 / Number.MAX_SAFE_INTEGER; var scaleType = { x: _scale__WEBPACK_IMPORTED_MODULE_16__["default"].getScaleType(props, "x"), y: _scale__WEBPACK_IMPORTED_MODULE_16__["default"].getScaleType(props, "y") }; if (scaleType.x !== "log" && scaleType.y !== "log") { return dataset; } var rules = function (datum, axis) { return scaleType[axis] === "log" ? datum["_".concat(axis)] !== 0 : true; }; var sanitize = function (datum) { var _x = rules(datum, "x") ? datum._x : smallNumber; var _y = rules(datum, "y") ? datum._y : smallNumber; var _y0 = rules(datum, "y0") ? datum._y0 : smallNumber; return lodash_assign__WEBPACK_IMPORTED_MODULE_12___default()({}, datum, { _x: _x, _y: _y, _y0: _y0 }); }; return dataset.map(function (datum) { if (rules(datum, "x") && rules(datum, "y") && rules(datum, "y0")) { return datum; } return sanitize(datum); }); } // This method will remove data points that fall outside of the desired domain (non-continuous charts only) function formatDataFromDomain(dataset, domain, defaultBaseline) { var exists = function (val) { return val !== undefined; }; var minDomainX = _collection__WEBPACK_IMPORTED_MODULE_15__["default"].getMinValue(domain.x); var maxDomainX = _collection__WEBPACK_IMPORTED_MODULE_15__["default"].getMaxValue(domain.x); var minDomainY = _collection__WEBPACK_IMPORTED_MODULE_15__["default"].getMinValue(domain.y); var maxDomainY = _collection__WEBPACK_IMPORTED_MODULE_15__["default"].getMaxValue(domain.y); var underMin = function (min) { return function (val) { return exists(val) && val < min; }; }; var overMax = function (max) { return function (val) { return exists(val) && val > max; }; }; var isUnderMinX = underMin(minDomainX); var isUnderMinY = underMin(minDomainY); var isOverMaxX = overMax(maxDomainX); var isOverMaxY = overMax(maxDomainY); // eslint-disable-next-line complexity return dataset.map(function (datum) { var _x = datum._x, _y = datum._y, _y0 = datum._y0, _y1 = datum._y1; // single x point less than min domain if (isUnderMinX(_x) || isOverMaxX(_x)) _x = null; var baseline = exists(_y0) ? _y0 : defaultBaseline; var value = exists(_y1) ? _y1 : _y; if (!exists(value)) return datum; // value only and less than min domain or greater than max domain if (!exists(baseline) && (isUnderMinY(value) || isOverMaxY(value))) _y = null; // baseline and value are both less than min domain or both greater than max domain if (isUnderMinY(baseline) && isUnderMinY(value) || isOverMaxY(baseline) && isOverMaxY(value)) _y = _y0 = _y1 = null; // baseline and value with only baseline below min, set baseline to minDomainY if (isUnderMinY(baseline) && !isUnderMinY(value)) _y0 = minDomainY; // baseline and value with only baseline above max, set baseline to maxDomainY if (isOverMaxY(baseline) && !isOverMaxY(value)) _y0 = maxDomainY; return lodash_assign__WEBPACK_IMPORTED_MODULE_12___default()({}, datum, lodash_omitBy__WEBPACK_IMPORTED_MODULE_0___default()({ _x: _x, _y: _y, _y0: _y0, _y1: _y1 }, lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1___default.a)); }); } // Returns a data accessor given an eventKey prop function getEventKey(key) { // creates a data accessor function // given a property key, path, array index, or null for identity. if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(key)) { return key; } else if (key === null || key === undefined) { return function () { return undefined; }; } // otherwise, assume it is an array index, property key or path (_.property handles all three) return lodash_property__WEBPACK_IMPORTED_MODULE_6___default()(key); } // Returns data with an eventKey prop added to each datum function addEventKeys(props, data) { var hasEventKeyAccessor = !!props.eventKey; var eventKeyAccessor = getEventKey(props.eventKey); return data.map(function (datum, index) { if (datum.eventKey !== undefined) { return datum; } else if (hasEventKeyAccessor) { var eventKey = eventKeyAccessor(datum, index); return eventKey !== undefined ? lodash_assign__WEBPACK_IMPORTED_MODULE_12___default()({ eventKey: eventKey }, datum) : datum; } else { return datum; } }); } // Exported Functions /** * Returns an object mapping string data to numeric data * @param {Object} props: the props object * @param {String} axis: the current axis * @returns {Object} an object mapping string data to numeric data */ function createStringMap(props, axis) { var stringsFromAxes = getStringsFromAxes(props, axis); var stringsFromCategories = getStringsFromCategories(props, axis); var stringsFromData = getStringsFromData(props, axis); var allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_11___default()(_toConsumableArray(stringsFromAxes).concat(_toConsumableArray(stringsFromCategories), _toConsumableArray(stringsFromData))); return allStrings.length === 0 ? null : allStrings.reduce(function (memo, string, index) { memo[string] = index + 1; return memo; }, {}); } /** * Reduces the size of a data array, such that it is <= maxPoints. * @param {Array} data: an array of data; must be sorted * @param {Number} maxPoints: maximum number of data points to return * @param {Number} startingIndex: the index of the data[0] *in the entire dataset*; this function assumes `data` param is a subset of larger dataset that has been zoommed * @returns {Array} an array of data, a subset of data param */ function downsample(data, maxPoints) { var startingIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; // ensures that the downampling of data while zooming looks good. var dataLength = getLength(data); if (dataLength > maxPoints) { // limit k to powers of 2, e.g. 64, 128, 256 // so that the same points will be chosen reliably, reducing flicker on zoom var k = Math.pow(2, Math.ceil(Math.log2(dataLength / maxPoints))); return data.filter( // ensure modulo is always calculated from same reference: i + startingIndex function (d, i) { return (i + startingIndex) % k === 0; }); } return data; } /** * Returns formatted data. Data accessors are applied, and string values are replaced. * @param {Array} dataset: the original domain * @param {Object} props: the props object * @param {Array} expectedKeys: an array of expected data keys * @returns {Array} the formatted data */ function formatData(dataset, props, expectedKeys) { var isArrayOrIterable = Array.isArray(dataset) || _immutable__WEBPACK_IMPORTED_MODULE_17__["default"].isIterable(dataset); if (!isArrayOrIterable || getLength(dataset) < 1) { return []; } var defaultKeys = ["x", "y", "y0"]; expectedKeys = Array.isArray(expectedKeys) ? expectedKeys : defaultKeys; var createAccessor = function (name) { return _helpers__WEBPACK_IMPORTED_MODULE_14__["default"].createAccessor(props[name] !== undefined ? props[name] : name); }; var accessor = expectedKeys.reduce(function (memo, type) { memo[type] = createAccessor(type); return memo; }, {}); var preformattedData = lodash_isEqual__WEBPACK_IMPORTED_MODULE_3___default()(expectedKeys, defaultKeys) && props.x === "_x" && props.y === "_y" && props.y0 === "_y0"; var stringMap; if (preformattedData === false) { // stringMap is not required if the data is preformatted stringMap = { x: expectedKeys.indexOf("x") !== -1 ? createStringMap(props, "x") : undefined, y: expectedKeys.indexOf("y") !== -1 ? createStringMap(props, "y") : undefined, y0: expectedKeys.indexOf("y0") !== -1 ? createStringMap(props, "y") : undefined }; } var data = preformattedData ? dataset : dataset.reduce(function (dataArr, datum, index) { // eslint-disable-line complexity datum = parseDatum(datum); var fallbackValues = { x: index, y: datum }; var processedValues = expectedKeys.reduce(function (memo, type) { var processedValue = accessor[type](datum); var value = processedValue !== undefined ? processedValue : fallbackValues[type]; if (value !== undefined) { if (typeof value === "string" && stringMap[type]) { memo["".concat(type, "Name")] = value; memo["_".concat(type)] = stringMap[type][value]; } else { memo["_".concat(type)] = value; } } return memo; }, {}); var formattedDatum = lodash_assign__WEBPACK_IMPORTED_MODULE_12___default()({}, processedValues, datum); if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(formattedDatum)) { dataArr.push(formattedDatum); } return dataArr; }, []); var sortedData = sortData(data, props.sortKey, props.sortOrder); var cleanedData = cleanData(sortedData, props); return addEventKeys(props, cleanedData); } /** * Returns generated x and y data based on domain and sample from props * @param {Object} props: the props object * @returns {Array} an array of data */ function generateData(props) { var xValues = generateDataArray(props, "x"); var yValues = generateDataArray(props, "y"); var values = xValues.map(function (x, i) { return { x: x, y: yValues[i] }; }); return values; } /** * Returns an array of categories for a given axis * @param {Object} props: the props object * @param {String} axis: the current axis * @returns {Array} an array of categories */ function getCategories(props, axis) { return props.categories && !Array.isArray(props.categories) ? props.categories[axis] : props.categories; } /** * Returns an array of formatted data * @param {Object} props: the props object * @returns {Array} an array of data */ function getData(props) { return props.data ? formatData(props.data, props) : formatData(generateData(props), props); } /** * Returns an array of strings from axis tickValues for a given axis * @param {Object} props: the props object * @param {String} axis: the current axis * @returns {Array} an array of strings */ function getStringsFromAxes(props, axis) { var tickValues = props.tickValues, tickFormat = props.tickFormat; var tickValueArray; if (!tickValues || !Array.isArray(tickValues) && !tickValues[axis]) { tickValueArray = tickFormat && Array.isArray(tickFormat) ? tickFormat : []; } else { tickValueArray = tickValues[axis] || tickValues; } return tickValueArray.filter(function (val) { return typeof val === "string"; }); } /** * Returns an array of strings from categories for a given axis * @param {Object} props: the props object * @param {String} axis: the current axis * @returns {Array} an array of strings */ function getStringsFromCategories(props, axis) { if (!props.categories) { return []; } var categories = getCategories(props, axis); var categoryStrings = categories && categories.filter(function (val) { return typeof val === "string"; }); return categoryStrings ? _collection__WEBPACK_IMPORTED_MODULE_15__["default"].removeUndefined(categoryStrings) : []; } /** * Returns an array of strings from data * @param {Object} props: the props object * @param {String} axis: the current axis * @returns {Array} an array of strings */ function getStringsFromData(props, axis) { var isArrayOrIterable = Array.isArray(props.data) || _immutable__WEBPACK_IMPORTED_MODULE_17__["default"].isIterable(props.data); if (!isArrayOrIterable) { return []; } var key = props[axis] === undefined ? axis : props[axis]; var accessor = _helpers__WEBPACK_IMPORTED_MODULE_14__["default"].createAccessor(key); // support immutable data var data = props.data.reduce(function (memo, d) { memo.push(parseDatum(d)); return memo; }, []); var sortedData = sortData(data, props.sortKey, props.sortOrder); var dataStrings = sortedData.reduce(function (dataArr, datum) { datum = parseDatum(datum); dataArr.push(accessor(datum)); return dataArr; }, []).filter(function (datum) { return typeof datum === "string"; }); // return a unique set of strings return dataStrings.reduce(function (prev, curr) { if (curr !== undefined && curr !== null && prev.indexOf(curr) === -1) { prev.push(curr); } return prev; }, []); } /** * Checks whether a given component can be used to calculate data * @param {Component} component: a React component instance * @returns {Boolean} Returns true if the given component has a role included in the whitelist */ function isDataComponent(component) { var getRole = function (child) { return child && child.type ? child.type.role : ""; }; var role = getRole(component); if (role === "portal") { var children = react__WEBPACK_IMPORTED_MODULE_13___default.a.Children.toArray(component.props.children); role = children.length ? getRole(children[0]) : ""; } var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"]; return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role); } /* harmony default export */ __webpack_exports__["default"] = ({ createStringMap: createStringMap, downsample: downsample, formatData: formatData, formatDataFromDomain: formatDataFromDomain, generateData: generateData, getCategories: getCategories, getData: getData, getStringsFromAxes: getStringsFromAxes, getStringsFromCategories: getStringsFromCategories, getStringsFromData: getStringsFromData, isDataComponent: isDataComponent }); /***/ }), /***/ "../../victory-core/es/victory-util/default-transitions.js": /*!********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/default-transitions.js ***! \********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* eslint-disable func-style */ /* harmony default export */ __webpack_exports__["default"] = ({ continuousTransitions: function () { return { onLoad: { duration: 2000 }, onExit: { duration: 500 }, onEnter: { duration: 500 } }; }, continuousPolarTransitions: function () { return { onLoad: { duration: 2000, before: function () { return { _y: 0, _y1: 0, _y0: 0 }; }, after: function (datum) { return { _y: datum._y, _y1: datum._y1, _y0: datum._y0 }; } }, onExit: { duration: 500, before: function (datum, index, data) { var adjacent = function (attr) { var adj = index === 0 ? data[index + 1] : data[index - 1]; return adj[attr]; }; return { _x: adjacent("_x"), _y: adjacent("_y"), _y0: adjacent("_y0") }; } }, onEnter: { duration: 500, before: function (datum, index, data) { var adjacent = function (attr) { var adj = index === 0 ? data[index + 1] : data[index - 1]; return adj[attr]; }; return { _x: adjacent("_x"), _y: adjacent("_y"), _y0: adjacent("_y0") }; }, after: function (datum) { return { _x: datum._x, _y: datum._y, _y1: datum._y1, _y0: datum._y0 }; } } }; }, discreteTransitions: function () { return { onLoad: { duration: 2000, before: function () { return { opacity: 0 }; }, after: function (datum) { return datum; } }, onExit: { duration: 600, before: function () { return { opacity: 0 }; } }, onEnter: { duration: 600, before: function () { return { opacity: 0 }; }, after: function (datum) { return datum; } } }; } }); /***/ }), /***/ "../../victory-core/es/victory-util/domain.js": /*!*******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/domain.js ***! \*******************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isDate */ "../../../node_modules/lodash/isDate.js"); /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isDate__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/includes */ "../../../node_modules/lodash/includes.js"); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/sortedUniq */ "../../../node_modules/lodash/sortedUniq.js"); /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js"); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/flatten */ "../../../node_modules/lodash/flatten.js"); /* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_flatten__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./data */ "../../victory-core/es/victory-util/data.js"); /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js"); /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js"); /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } /* eslint-disable func-style */ /* eslint-disable no-use-before-define */ // Private Methods function cleanDomain(domain, props, axis) { var scaleType = _scale__WEBPACK_IMPORTED_MODULE_8__["default"].getScaleType(props, axis); if (scaleType !== "log") { return domain; } var rules = function (dom) { var almostZero = dom[0] < 0 || dom[1] < 0 ? -1 / Number.MAX_SAFE_INTEGER : 1 / Number.MAX_SAFE_INTEGER; var domainOne = dom[0] === 0 ? almostZero : dom[0]; var domainTwo = dom[1] === 0 ? almostZero : dom[1]; return [domainOne, domainTwo]; }; return rules(domain); } function getDomainPadding(props, axis) { var formatPadding = function (padding) { return Array.isArray(padding) ? { left: padding[0], right: padding[1] } : { left: padding, right: padding }; }; return lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4___default()(props.domainPadding) ? formatPadding(props.domainPadding[axis]) : formatPadding(props.domainPadding); } function getFlatData(dataset, axis) { return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) { return datum["_".concat(axis)] && datum["_".concat(axis)][1] !== undefined ? datum["_".concat(axis)][1] : datum["_".concat(axis)]; }); } function getExtremeFromData(dataset, axis) { var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "min"; var getExtreme = function (arr) { return type === "max" ? Math.max.apply(Math, _toConsumableArray(arr)) : Math.min.apply(Math, _toConsumableArray(arr)); }; var initialValue = type === "max" ? -Infinity : Infinity; var containsDate = false; var result = lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).reduce(function (memo, datum) { var current0 = datum["_".concat(axis, "0")] !== undefined ? datum["_".concat(axis, "0")] : datum["_".concat(axis)]; var current1 = datum["_".concat(axis, "1")] !== undefined ? datum["_".concat(axis, "1")] : datum["_".concat(axis)]; var current = getExtreme([current0, current1]); containsDate = containsDate || current0 instanceof Date || current1 instanceof Date; return getExtreme([memo, current]); }, initialValue); return containsDate ? new Date(result) : result; } //eslint-disable-next-line max-statements function padDomain(domain, props, axis) { if (!props.domainPadding) { return domain; } var minDomain = getMinFromProps(props, axis); var maxDomain = getMaxFromProps(props, axis); var padding = getDomainPadding(props, axis); if (!padding.left && !padding.right) { return domain; } var min = _collection__WEBPACK_IMPORTED_MODULE_10__["default"].getMinValue(domain); var max = _collection__WEBPACK_IMPORTED_MODULE_10__["default"].getMaxValue(domain); var currentAxis = _helpers__WEBPACK_IMPORTED_MODULE_9__["default"].getCurrentAxis(axis, props.horizontal); var range = _helpers__WEBPACK_IMPORTED_MODULE_9__["default"].getRange(props, currentAxis); var rangeExtent = Math.abs(range[0] - range[1]); var paddedRangeExtent = Math.max(rangeExtent - padding.left - padding.right, 1); var paddedDomainExtent = Math.abs(max.valueOf() - min.valueOf()) / paddedRangeExtent * rangeExtent; var simplePadding = { left: paddedDomainExtent * padding.left / rangeExtent, right: paddedDomainExtent * padding.right / rangeExtent }; var paddedDomain = { min: min.valueOf() - simplePadding.left, max: max.valueOf() + simplePadding.right }; var singleQuadrantDomainPadding = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4___default()(props.singleQuadrantDomainPadding) ? props.singleQuadrantDomainPadding[axis] : props.singleQuadrantDomainPadding; var addsQuadrants = min >= 0 && paddedDomain.min <= 0 || max <= 0 && paddedDomain.max >= 0; var adjust = function (val, type) { var coerce = type === "min" && min >= 0 && val <= 0 || type === "max" && max <= 0 && val >= 0; return coerce ? 0 : val; }; if (addsQuadrants && singleQuadrantDomainPadding !== false) { // Naive initial padding calculation var initialPadding = { left: Math.abs(max - min) * padding.left / rangeExtent, right: Math.abs(max - min) * padding.right / rangeExtent }; // Adjust the domain by the initial padding var adjustedDomain = { min: adjust(min.valueOf() - initialPadding.left, "min"), max: adjust(max.valueOf() + initialPadding.right, "max") }; // re-calculate padding, taking the adjusted domain into account var finalPadding = { left: Math.abs(adjustedDomain.max - adjustedDomain.min) * padding.left / rangeExtent, right: Math.abs(adjustedDomain.max - adjustedDomain.min) * padding.right / rangeExtent }; // Adjust the domain by the final padding paddedDomain = { min: adjust(min.valueOf() - finalPadding.left, "min"), max: adjust(max.valueOf() + finalPadding.right, "max") }; } // default to minDomain / maxDomain if they exist var finalDomain = { min: minDomain !== undefined ? minDomain : paddedDomain.min, max: maxDomain !== undefined ? maxDomain : paddedDomain.max }; return min instanceof Date || max instanceof Date ? getDomainFromMinMax(new Date(finalDomain.min), new Date(finalDomain.max)) : getDomainFromMinMax(finalDomain.min, finalDomain.max); } // Public Methods /** * Returns a getDomain function * @param {Function} getDomainFromDataFunction: a function that takes props and axis and * returns a domain based on data * @param {Function} formatDomainFunction: a function that takes domain, props, and axis and * returns a formatted domain * @returns {Function} a function that takes props and axis and returns a formatted domain */ function createDomainFunction(getDomainFromDataFunction, formatDomainFunction) { getDomainFromDataFunction = lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(getDomainFromDataFunction) ? getDomainFromDataFunction : getDomainFromData; formatDomainFunction = lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(formatDomainFunction) ? formatDomainFunction : formatDomain; return function (props, axis) { var propsDomain = getDomainFromProps(props, axis); if (propsDomain) { return formatDomainFunction(propsDomain, props, axis); } var categories = _data__WEBPACK_IMPORTED_MODULE_7__["default"].getCategories(props, axis); var domain = categories ? getDomainFromCategories(props, axis, categories) : getDomainFromDataFunction(props, axis); return domain ? formatDomainFunction(domain, props, axis) : undefined; }; } /** * Returns a formatted domain. * @param {Array} domain: a domain in the form of a two element array * @param {Object} props: the props object * @param {String} axis: the current axis * @returns {Array} a domain in the form of a two element array */ function formatDomain(domain, props, axis) { return cleanDomain(padDomain(domain, props, axis), props, axis); } /** * Returns a domain for a given axis based on props, category, or data * @param {Object} props: the props object * @param {String} axis: the current axis * @returns {Array} the domain for the given axis */ function getDomain(props, axis) { return createDomainFunction()(props, axis); } /** * Returns a domain based on categories if they exist * @param {Object} props: the props object * @param {String} axis: the current axis * @param {Array} categories: an array of categories corresponding to a given axis * @returns {Array|undefined} returns a domain from categories or undefined */ function getDomainFromCategories(props, axis, categories) { categories = categories || _data__WEBPACK_IMPORTED_MODULE_7__["default"].getCategories(props, axis); var polar = props.polar, _props$startAngle = props.startAngle, startAngle = _props$startAngle === void 0 ? 0 : _props$startAngle, _props$endAngle = props.endAngle, endAngle = _props$endAngle === void 0 ? 360 : _props$endAngle; if (!categories) { return undefined; } var minDomain = getMinFromProps(props, axis); var maxDomain = getMaxFromProps(props, axis); var stringArray = _collection__WEBPACK_IMPORTED_MODULE_10__["default"].containsStrings(categories) ? _data__WEBPACK_IMPORTED_MODULE_7__["default"].getStringsFromCategories(props, axis) : []; var stringMap = stringArray.length === 0 ? null : stringArray.reduce(function (memo, string, index) { memo[string] = index + 1; return memo; }, {}); var categoryValues = stringMap ? categories.map(function (value) { return stringMap[value]; }) : categories; var min = minDomain !== undefined ? minDomain : _collection__WEBPACK_IMPORTED_MODULE_10__["default"].getMinValue(categoryValues); var max = maxDomain !== undefined ? maxDomain : _collection__WEBPACK_IMPORTED_MODULE_10__["default"].getMaxValue(categoryValues); var categoryDomain = getDomainFromMinMax(min, max); return polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ? getSymmetricDomain(categoryDomain, categoryValues) : categoryDomain; } /** * Returns a domain from a dataset for a given axis * @param {Object} props: the props object * @param {String} axis: the current axis * @param {Array} dataset: an array of data * @returns {Array} the domain based on data */ function getDomainFromData(props, axis, dataset) { dataset = dataset || _data__WEBPACK_IMPORTED_MODULE_7__["default"].getData(props); var polar = props.polar, _props$startAngle2 = props.startAngle, startAngle = _props$startAngle2 === void 0 ? 0 : _props$startAngle2, _props$endAngle2 = props.endAngle, endAngle = _props$endAngle2 === void 0 ? 360 : _props$endAngle2; var minDomain = getMinFromProps(props, axis); var maxDomain = getMaxFromProps(props, axis); if (dataset.length < 1) { return minDomain !== undefined && maxDomain !== undefined ? getDomainFromMinMax(minDomain, maxDomain) : undefined; } var min = minDomain !== undefined ? minDomain : getExtremeFromData(dataset, axis, "min"); var max = maxDomain !== undefined ? maxDomain : getExtremeFromData(dataset, axis, "max"); var domain = getDomainFromMinMax(min, max); return polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ? getSymmetricDomain(domain, getFlatData(dataset, axis)) : domain; } /** * Returns a domain in the form of a two element array given a min and max value. * @param {Number|Date} min: the props object * @param {Number|Date} max: the current axis * @returns {Array} the minDomain based on props */ function getDomainFromMinMax(min, max) { var getSinglePointDomain = function (val) { // d3-scale does not properly resolve very small differences. // eslint-disable-next-line no-magic-numbers var verySmallNumber = val === 0 ? 2 * Math.pow(10, -10) : Math.pow(10, -10); var verySmallDate = 1; var minVal = val instanceof Date ? new Date(+val - verySmallDate) : +val - verySmallNumber; var maxVal = val instanceof Date ? new Date(+val + verySmallDate) : +val + verySmallNumber; return val === 0 ? [0, maxVal] : [minVal, maxVal]; }; return +min === +max ? getSinglePointDomain(max) : [min, max]; } /** * Returns a the domain for a given axis if domain is given in props * @param {Object} props: the props object * @param {String} axis: the current axis * @returns {Array|undefined} the domain based on props */ function getDomainFromProps(props, axis) { var minDomain = getMinFromProps(props, axis); var maxDomain = getMaxFromProps(props, axis); if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4___default()(props.domain) && props.domain[axis]) { return props.domain[axis]; } else if (Array.isArray(props.domain)) { return props.domain; } else if (minDomain !== undefined && maxDomain !== undefined) { return getDomainFromMinMax(minDomain, maxDomain); } return undefined; } /** * Returns a domain for a given axis. This method forces the domain to include * zero unless the domain is explicitly specified in props. * @param {Object} props: the props object * @param {String} axis: the current axis * @returns {Array} the domain for the given axis */ function getDomainWithZero(props, axis) { var propsDomain = getDomainFromProps(props, axis); if (propsDomain) { return propsDomain; } var dataset = _data__WEBPACK_IMPORTED_MODULE_7__["default"].getData(props); var y0Min = dataset.reduce(function (min, datum) { return datum._y0 < min ? datum._y0 : min; }, Infinity); var ensureZero = function (domain) { if (axis === "x") { return domain; } var defaultMin = y0Min !== Infinity ? y0Min : 0; var maxDomainProp = getMaxFromProps(props, axis); var minDomainProp = getMinFromProps(props, axis); var max = maxDomainProp !== undefined ? maxDomainProp : _collection__WEBPACK_IMPORTED_MODULE_10__["default"].getMaxValue(domain, defaultMin); var min = minDomainProp !== undefined ? minDomainProp : _collection__WEBPACK_IMPORTED_MODULE_10__["default"].getMinValue(domain, defaultMin); return getDomainFromMinMax(min, max); }; var getDomainFunction = function () { return getDomainFromData(props, axis, dataset); }; var formatDomainFunction = function (domain) { return formatDomain(ensureZero(domain), props, axis); }; return createDomainFunction(getDomainFunction, formatDomainFunction)(props, axis); } /** * Returns the maxDomain from props if it exists * @param {Object} props: the props object * @param {String} axis: the current axis * @returns {Number|Date|undefined} the maxDomain based on props */ function getMaxFromProps(props, axis) { if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4___default()(props.maxDomain) && props.maxDomain[axis] !== undefined) { return props.maxDomain[axis]; } return typeof props.maxDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default()(props.maxDomain) ? props.maxDomain : undefined; } /** * Returns the minDomain from props if it exists * @param {Object} props: the props object * @param {String} axis: the current axis * @returns {Number|Date|undefined} the minDomain based on props */ function getMinFromProps(props, axis) { if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4___default()(props.minDomain) && props.minDomain[axis] !== undefined) { return props.minDomain[axis]; } return typeof props.minDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default()(props.minDomain) ? props.minDomain : undefined; } /** * Returns a symmetrically padded domain for polar charts * @param {Array} domain: the original domain * @param {Array} values: a flat array of values corresponding to either tickValues, or data values * for a given dimension i.e. only x values. * @returns {Array} the symmetric domain */ function getSymmetricDomain(domain, values) { var processedData = lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3___default()(values.sort(function (a, b) { return a - b; })); var step = processedData[1] - processedData[0]; return [domain[0], domain[1] + step]; } /** * Checks whether a given component can be used to calculate domain * @param {Component} component: a React component instance * @returns {Boolean} Returns true if the given component has a role included in the whitelist */ function isDomainComponent(component) { var getRole = function (child) { return child && child.type ? child.type.role : ""; }; var role = getRole(component); if (role === "portal") { var children = react__WEBPACK_IMPORTED_MODULE_6___default.a.Children.toArray(component.props.children); role = children.length ? getRole(children[0]) : ""; } var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"]; return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role); } /* harmony default export */ __webpack_exports__["default"] = ({ createDomainFunction: createDomainFunction, formatDomain: formatDomain, getDomain: getDomain, getDomainFromCategories: getDomainFromCategories, getDomainFromData: getDomainFromData, getDomainFromMinMax: getDomainFromMinMax, getDomainFromProps: getDomainFromProps, getDomainWithZero: getDomainWithZero, getMaxFromProps: getMaxFromProps, getMinFromProps: getMinFromProps, getSymmetricDomain: getSymmetricDomain, isDomainComponent: isDomainComponent }); /***/ }), /***/ "../../victory-core/es/victory-util/events.js": /*!*******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/events.js ***! \*******************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js"); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/includes */ "../../../node_modules/lodash/includes.js"); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/lodash/uniq.js"); /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/omitBy */ "../../../node_modules/lodash/omitBy.js"); /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/pickBy */ "../../../node_modules/lodash/pickBy.js"); /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js"); /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js"); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_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; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/; /* harmony default export */ __webpack_exports__["default"] = ({ /* Returns all own and shared events that should be attached to a single target element, * i.e. an individual bar specified by target: "data", eventKey: [index]. * Returned events are scoped to the appropriate state. Either that of the component itself * (i.e. VictoryBar) in the case of own events, or that of the parent component * (i.e. VictoryChart) in the case of shared events */ // eslint-disable-next-line max-params getEvents: function (props, target, eventKey, getScopedEvents) { var _this = this; // Returns all events that apply to a particular target element var getEventsByTarget = function (events) { var getSelectedEvents = function () { var targetEvents = events.reduce(function (memo, event) { if (event.target !== undefined) { var matchesTarget = Array.isArray(event.target) ? lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(event.target, target) : "".concat(event.target) === "".concat(target); return matchesTarget ? memo.concat(event) : memo; } return memo.concat(event); }, []); if (eventKey !== undefined && target !== "parent") { return targetEvents.filter(function (obj) { var targetKeys = obj.eventKey; var useKey = function (key) { return key ? "".concat(key) === "".concat(eventKey) : true; }; return Array.isArray(targetKeys) ? targetKeys.some(function (k) { return useKey(k); }) : useKey(targetKeys); }); } return targetEvents; }; var selectedEvents = getSelectedEvents(); return Array.isArray(selectedEvents) && selectedEvents.reduce(function (memo, event) { return event ? lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(memo, event.eventHandlers) : memo; }, {}); }; /* Returns all events from props and defaultEvents from components. Events handlers * specified in props will override handlers for the same event if they are also * specified in defaultEvents of a sub-component */ var getAllEvents = function () { if (Array.isArray(_this.componentEvents)) { var _this$componentEvents; return Array.isArray(props.events) ? (_this$componentEvents = _this.componentEvents).concat.apply(_this$componentEvents, _toConsumableArray(props.events)) : _this.componentEvents; } return props.events; }; var allEvents = getAllEvents(); var ownEvents = allEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(getScopedEvents) ? getScopedEvents(getEventsByTarget(allEvents), target) : undefined; if (!props.sharedEvents) { return ownEvents; } var getSharedEvents = props.sharedEvents.getEvents; var sharedEvents = props.sharedEvents.events && getSharedEvents(getEventsByTarget(props.sharedEvents.events), target); return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, sharedEvents, ownEvents); }, /* Returns a modified events object where each event handler is replaced by a new * function that calls the original handler and then calls setState with the return * of the original event handler assigned to state property that maps to the target * element. */ // eslint-disable-next-line max-params getScopedEvents: function (events, namespace, childType, baseProps) { var _this2 = this; if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default()(events)) { return {}; } baseProps = baseProps || this.baseProps; // returns the original base props or base state of a given target element var getTargetProps = function (identifier, type) { var childName = identifier.childName, target = identifier.target, key = identifier.key; var baseType = type === "props" ? baseProps : _this2.state || {}; var base = childName === undefined || childName === null || !baseType[childName] ? baseType : baseType[childName]; return key === "parent" ? base.parent : base[key] && base[key][target]; }; // Returns the state object with the mutation caused by a given eventReturn // applied to the appropriate property on the state object var parseEvent = function (eventReturn, eventKey) { var childNames = namespace === "parent" ? eventReturn.childName : eventReturn.childName || childType; var target = eventReturn.target || namespace; // returns all eventKeys to modify for a targeted childName var getKeys = function (childName) { if (target === "parent") { return "parent"; } if (eventReturn.eventKey === "all") { return baseProps[childName] ? lodash_without__WEBPACK_IMPORTED_MODULE_5___default()(lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(baseProps[childName]), "parent") : lodash_without__WEBPACK_IMPORTED_MODULE_5___default()(lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(baseProps), "parent"); } else if (eventReturn.eventKey === undefined && eventKey === "parent") { return baseProps[childName] ? lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(baseProps[childName]) : lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(baseProps); } return eventReturn.eventKey !== undefined ? eventReturn.eventKey : eventKey; }; // returns the state object with mutated props applied for a single key var getMutationObject = function (key, childName) { var baseState = _this2.state || {}; if (!lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(eventReturn.mutation)) { return baseState; } var mutationTargetProps = getTargetProps({ childName: childName, key: key, target: target }, "props"); var mutationTargetState = getTargetProps({ childName: childName, key: key, target: target }, "state"); var mutatedProps = eventReturn.mutation(lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, mutationTargetProps, mutationTargetState), baseProps); var childState = baseState[childName] || {}; var filterState = function (state) { if (state[key] && state[key][target]) { delete state[key][target]; } if (state[key] && !lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(state[key]).length) { delete state[key]; } return state; }; var extendState = function (state) { return target === "parent" ? lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(state, _defineProperty({}, key, lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(state[key], mutatedProps))) : lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(state, _defineProperty({}, key, lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(state[key], _defineProperty({}, target, mutatedProps)))); }; var updateState = function (state) { return mutatedProps ? extendState(state) : filterState(state); }; return childName !== undefined && childName !== null ? lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(baseState, _defineProperty({}, childName, updateState(childState))) : updateState(baseState); }; // returns entire mutated state for a given childName var getReturnByChild = function (childName) { var mutationKeys = getKeys(childName); return Array.isArray(mutationKeys) ? mutationKeys.reduce(function (memo, key) { return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(memo, getMutationObject(key, childName)); }, {}) : getMutationObject(mutationKeys, childName); }; // returns an entire mutated state for all children var allChildNames = childNames === "all" ? lodash_without__WEBPACK_IMPORTED_MODULE_5___default()(lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(baseProps), "parent") : childNames; return Array.isArray(allChildNames) ? allChildNames.reduce(function (memo, childName) { return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(memo, getReturnByChild(childName)); }, {}) : getReturnByChild(allChildNames); }; // Parses an array of event returns into a single state mutation var parseEventReturn = function (eventReturn, eventKey) { return Array.isArray(eventReturn) ? eventReturn.reduce(function (memo, props) { memo = lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, memo, parseEvent(props, eventKey)); return memo; }, {}) : parseEvent(eventReturn, eventKey); }; var compileCallbacks = function (eventReturn) { var getCallback = function (obj) { return lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(obj.callback) && obj.callback; }; var callbacks = Array.isArray(eventReturn) ? eventReturn.map(function (evtObj) { return getCallback(evtObj); }) : [getCallback(eventReturn)]; var callbackArray = callbacks.filter(function (callback) { return callback !== false; }); return callbackArray.length ? function () { return callbackArray.forEach(function (callback) { return callback(); }); } : undefined; }; // A function that calls a particular event handler, parses its return // into a state mutation, and calls setState // eslint-disable-next-line max-params var onEvent = function (evt, childProps, eventKey, eventName) { var eventReturn = events[eventName](evt, childProps, eventKey, _this2); if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default()(eventReturn)) { var callbacks = compileCallbacks(eventReturn); _this2.setState(parseEventReturn(eventReturn, eventKey), callbacks); } }; // returns a new events object with enhanced event handlers return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, event) { memo[event] = onEvent; return memo; }, {}); }, /* Returns a partially applied event handler for a specific target element * This allows event handlers to have access to props controlling each element */ getPartialEvents: function (events, eventKey, childProps) { return events ? lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) { var appliedEvent = function (evt) { return events[eventName](evt, childProps, eventKey, eventName); }; memo[eventName] = appliedEvent; return memo; }, {}) : {}; }, /* Returns the property of the state object corresponding to event changes for * a particular element */ getEventState: function (eventKey, namespace, childType) { var state = this.state || {}; if (!childType) { return eventKey === "parent" ? state[eventKey] && state[eventKey][namespace] || state[eventKey] : state[eventKey] && state[eventKey][namespace]; } return state[childType] && state[childType][eventKey] && state[childType][eventKey][namespace]; }, /** * Returns a set of all mutations for shared events * * @param {Array} mutations an array of mutations objects * @param {Object} baseProps an object that describes all props for children of VictorySharedEvents * @param {Object} baseState an object that describes state for children of VictorySharedEvents * @param {Array} childNames an array of childNames * * @return {Object} a object describing all mutations for VictorySharedEvents */ // eslint-disable-next-line max-params getExternalMutationsWithChildren: function (mutations, baseProps, baseState, childNames) { var _this3 = this; baseProps = baseProps || {}; baseState = baseState || {}; return childNames.reduce(function (memo, childName) { var childState = baseState[childName]; var mutation = _this3.getExternalMutations(mutations, baseProps[childName], baseState[childName], childName); memo[childName] = mutation ? mutation : childState; return lodash_pickBy__WEBPACK_IMPORTED_MODULE_4___default()(memo, function (v) { return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default()(v); }); }, {}); }, /** * Returns a set of all mutations for a component * * @param {Array} mutations an array of mutations objects * @param {Object} baseProps a props object (scoped to a childName when used by shared events) * @param {Object} baseState a state object (scoped to a childName when used by shared events) * @param {String} childName an optional childName * * @return {Object} a object describing mutations for a given component */ // eslint-disable-next-line max-params getExternalMutations: function (mutations, baseProps, baseState, childName) { var _this4 = this; baseProps = baseProps || {}; baseState = baseState || {}; var eventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(baseProps); return eventKeys.reduce(function (memo, eventKey) { var keyState = baseState[eventKey] || {}; var keyProps = baseProps[eventKey] || {}; if (eventKey === "parent") { var identifier = { eventKey: eventKey, target: "parent" }; var mutation = _this4.getExternalMutation(mutations, keyProps, keyState, identifier); memo[eventKey] = mutation !== undefined ? lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, keyState, mutation) : keyState; } else { // use keys from both state and props so that elements not intially included in baseProps // will be used. (i.e. labels) var targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_2___default()(lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(keyProps).concat(lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(keyState))); memo[eventKey] = targets.reduce(function (m, target) { var identifier = { eventKey: eventKey, target: target, childName: childName }; var mutation = _this4.getExternalMutation(mutations, keyProps[target], keyState[target], identifier); m[target] = mutation !== undefined ? lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, keyState[target], mutation) : keyState[target]; return lodash_pickBy__WEBPACK_IMPORTED_MODULE_4___default()(m, function (v) { return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default()(v); }); }, {}); } return lodash_pickBy__WEBPACK_IMPORTED_MODULE_4___default()(memo, function (v) { return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default()(v); }); }, {}); }, /** * Returns a set of mutations for a particular element given scoped baseProps and baseState * * @param {Array} mutations an array of mutations objects * @param {Object} baseProps a props object (scoped the element specified by the identifier) * @param {Object} baseState a state object (scoped the element specified by the identifier) * @param {Object} identifier { eventKey, target, childName } * * @return {Object | undefined} a object describing mutations for a given element, or undefined */ // eslint-disable-next-line max-params getExternalMutation: function (mutations, baseProps, baseState, identifier) { var filterMutations = function (mutation, type) { if (typeof mutation[type] === "string") { return mutation[type] === "all" || mutation[type] === identifier[type]; } else if (Array.isArray(mutation[type])) { // coerce arrays to strings before matching var stringArray = mutation[type].map(function (m) { return "".concat(m); }); return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(stringArray, identifier[type]); } else { return false; } }; mutations = Array.isArray(mutations) ? mutations : [mutations]; var scopedMutations = mutations; if (identifier.childName) { scopedMutations = mutations.filter(function (m) { return filterMutations(m, "childName"); }); } // find any mutation objects that match the target var targetMutations = scopedMutations.filter(function (m) { return filterMutations(m, "target"); }); if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default()(targetMutations)) { return undefined; } var keyMutations = targetMutations.filter(function (m) { return filterMutations(m, "eventKey"); }); if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default()(keyMutations)) { return undefined; } return keyMutations.reduce(function (memo, curr) { var mutationFunction = curr && lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(curr.mutation) ? curr.mutation : function () { return undefined; }; var currentMutation = mutationFunction(lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, baseProps, baseState)); return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, memo, currentMutation); }, {}); }, /* Returns an array of defaultEvents from sub-components of a given component. * i.e. any static `defaultEvents` on `labelComponent` will be returned */ getComponentEvents: function (props, components) { var events = Array.isArray(components) && components.reduce(function (memo, componentName) { var _memo; var component = props[componentName]; var defaultEvents = component && component.type && component.type.defaultEvents; var componentEvents = lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(defaultEvents) ? defaultEvents(component.props) : defaultEvents; memo = Array.isArray(componentEvents) ? (_memo = memo).concat.apply(_memo, _toConsumableArray(componentEvents)) : memo; return memo; }, []); return events && events.length ? events : undefined; }, getGlobalEventNameFromKey: function (key) { var match = key.match(GLOBAL_EVENT_REGEX); return match && match[1] && match[1].toLowerCase(); }, getGlobalEvents: function (events) { return lodash_pickBy__WEBPACK_IMPORTED_MODULE_4___default()(events, function (_, key) { return GLOBAL_EVENT_REGEX.test(key); }); }, omitGlobalEvents: function (events) { return lodash_omitBy__WEBPACK_IMPORTED_MODULE_3___default()(events, function (_, key) { return GLOBAL_EVENT_REGEX.test(key); }); }, emulateReactEvent: function (event) { return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(event, { nativeEvent: event }); } }); /***/ }), /***/ "../../victory-core/es/victory-util/helpers.js": /*!********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/helpers.js ***! \********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js"); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js"); /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/property */ "../../../node_modules/lodash/property.js"); /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__); /* eslint-disable func-style */ /* eslint-disable no-use-before-define */ // Private Functions function getCartesianRange(props, axis) { // determine how to lay the axis and what direction positive and negative are var vertical = axis !== "x"; var padding = getPadding(props); if (vertical) { return [props.height - padding.bottom, padding.top]; } return [padding.left, props.width - padding.right]; } function getPolarRange(props, axis) { if (axis === "x") { var startAngle = degreesToRadians(props.startAngle || 0); var endAngle = degreesToRadians(props.endAngle || 360); return [startAngle, endAngle]; } return [props.innerRadius || 0, getRadius(props)]; } // Exported Functions /** * creates an object with some keys excluded * replacement for lodash.omit for performance. does not mimick the entire lodash.omit api * @param {Object} originalObject: created object will be based on this object * @param {Array} ks: an array of keys to omit from the new object * @returns {Object} new object with same properties as originalObject */ function omit(originalObject) { var ks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; // code based on babel's _objectWithoutProperties var newObject = {}; for (var key in originalObject) { if (ks.indexOf(key) >= 0) { continue; } if (!Object.prototype.hasOwnProperty.call(originalObject, key)) { continue; } newObject[key] = originalObject[key]; } return newObject; } function getPoint(datum) { var exists = function (val) { return val !== undefined; }; var _x = datum._x, _x1 = datum._x1, _x0 = datum._x0, _voronoiX = datum._voronoiX, _y = datum._y, _y1 = datum._y1, _y0 = datum._y0, _voronoiY = datum._voronoiY; var defaultX = exists(_x1) ? _x1 : _x; var defaultY = exists(_y1) ? _y1 : _y; var point = { x: exists(_voronoiX) ? _voronoiX : defaultX, x0: exists(_x0) ? _x0 : _x, y: exists(_voronoiY) ? _voronoiY : defaultY, y0: exists(_y0) ? _y0 : _y }; return lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, point, datum); } function scalePoint(props, datum) { var scale = props.scale, polar = props.polar, horizontal = props.horizontal; var d = getPoint(datum); var origin = props.origin || { x: 0, y: 0 }; var x = horizontal ? scale.y(d.y) : scale.x(d.x); var x0 = horizontal ? scale.y(d.y0) : scale.x(d.x0); var y = horizontal ? scale.x(d.x) : scale.y(d.y); var y0 = horizontal ? scale.x(d.x0) : scale.y(d.y0); return { x: polar ? y * Math.cos(x) + origin.x : x, x0: polar ? y0 * Math.cos(x0) + origin.x : x0, y: polar ? -y * Math.sin(x) + origin.y : y, y0: polar ? -y0 * Math.sin(x0) + origin.x : y0 }; } function getPadding(props) { var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "padding"; var padding = props[name]; var paddingVal = typeof padding === "number" ? padding : 0; var paddingObj = typeof padding === "object" ? padding : {}; return { top: paddingObj.top || paddingVal, bottom: paddingObj.bottom || paddingVal, left: paddingObj.left || paddingVal, right: paddingObj.right || paddingVal }; } function isTooltip(component) { var labelRole = component && component.type && component.type.role; return labelRole === "tooltip"; } function getDefaultStyles(props, role) { var _props$theme = props.theme, theme = _props$theme === void 0 ? {} : _props$theme, labelComponent = props.labelComponent; var defaultStyles = theme[role] && theme[role].style || {}; if (!isTooltip(labelComponent)) { return defaultStyles; } var tooltipStyle = theme.tooltip && theme.tooltip.style || {}; var labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, tooltipStyle, defaultStyles.labels); return lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, { labels: labelStyle }, defaultStyles); } function getStyles(style, defaultStyles) { var width = "100%"; var height = "100%"; if (!style) { return lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({ parent: { height: height, width: width } }, defaultStyles); } var data = style.data, labels = style.labels, parent = style.parent; var defaultParent = defaultStyles && defaultStyles.parent || {}; var defaultLabels = defaultStyles && defaultStyles.labels || {}; var defaultData = defaultStyles && defaultStyles.data || {}; return { parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, parent, defaultParent, { width: width, height: height }), labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, labels, defaultLabels), data: lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, data, defaultData) }; } function evaluateProp(prop, props) { return lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(prop) ? prop(props) : prop; } function evaluateStyle(style, props) { if (!style || !lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(style).some(function (value) { return lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(style[value]); })) { return style; } return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(style).reduce(function (prev, curr) { prev[curr] = evaluateProp(style[curr], props); return prev; }, {}); } function degreesToRadians(degrees) { return typeof degrees === "number" ? degrees * (Math.PI / 180) : degrees; } function radiansToDegrees(radians) { return typeof radians === "number" ? radians / (Math.PI / 180) : radians; } function getRadius(props) { var _getPadding = getPadding(props), left = _getPadding.left, right = _getPadding.right, top = _getPadding.top, bottom = _getPadding.bottom; var width = props.width, height = props.height; return Math.min(width - left - right, height - top - bottom) / 2; } function getPolarOrigin(props) { var width = props.width, height = props.height; var _getPadding2 = getPadding(props), top = _getPadding2.top, bottom = _getPadding2.bottom, left = _getPadding2.left, right = _getPadding2.right; var radius = Math.min(width - left - right, height - top - bottom) / 2; var offsetWidth = width / 2 + left - right; var offsetHeight = height / 2 + top - bottom; return { x: offsetWidth + radius > width ? radius + left - right : offsetWidth, y: offsetHeight + radius > height ? radius + top - bottom : offsetHeight }; } function getRange(props, axis) { if (props.range && props.range[axis]) { return props.range[axis]; } else if (props.range && Array.isArray(props.range)) { return props.range; } return props.polar ? getPolarRange(props, axis) : getCartesianRange(props, axis); } function createAccessor(key) { // creates a data accessor function // given a property key, path, array index, or null for identity. if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(key)) { return key; } else if (key === null || key === undefined) { // null/undefined means "return the data item itself" return function (x) { return x; }; } // otherwise, assume it is an array index, property key or path (_.property handles all three) return lodash_property__WEBPACK_IMPORTED_MODULE_3___default()(key); } function modifyProps(props, fallbackProps, role) { var theme = props.theme && props.theme[role] ? props.theme[role] : {}; var themeProps = omit(theme, ["style"]); var horizontal = isHorizontal(props); var defaultObject = horizontal === undefined ? {} : { horizontal: horizontal }; return lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()(defaultObject, props, themeProps, fallbackProps); } /** * Returns the given axis or the opposite axis when horizontal * @param {string} axis: the given axis, either "x" pr "y" * @param {Boolean} horizontal: true when the chart is flipped to the horizontal orientation * @returns {String} the dimension appropriate for the axis given its props "x" or "y" */ function getCurrentAxis(axis, horizontal) { var otherAxis = axis === "x" ? "y" : "x"; return horizontal ? otherAxis : axis; } /** * @param {Array} children: an array of child components * @param {Function} iteratee: a function with arguments "child", "childName", and "parent" * @param {Object} parentProps: props from the parent that are applied to children * @param {any} initialMemo: The object in which the iteration results are combined. * @param {Function} combine: Combines the result of the iteratee with the current memo * to the memo for the next iteration step * @returns {Array} returns an array of results from calling the iteratee on all nested children */ /* eslint-disable max-params */ function reduceChildren(children, iteratee) { var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) { return memo.concat(item); }; var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"]; var traverseChildren = function (childArray, names, parent) { return childArray.reduce(function (memo, child, index) { var childRole = child.type && child.type.role; var childName = child.props.name || "".concat(childRole, "-").concat(names[index]); if (child.props && child.props.children) { var childProps = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_2___default()(parentProps, sharedProps)); var nestedChildren = child.type && child.type.role === "stack" && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(child.type.getChildren) ? child.type.getChildren(childProps) : react__WEBPACK_IMPORTED_MODULE_6___default.a.Children.toArray(child.props.children).map(function (c) { var nestedChildProps = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_2___default()(childProps, sharedProps)); return react__WEBPACK_IMPORTED_MODULE_6___default.a.cloneElement(c, nestedChildProps); }); var _childNames = nestedChildren.map(function (c, i) { return "".concat(childName, "-").concat(i); }); var nestedResults = traverseChildren(nestedChildren, _childNames, child); memo = combine(memo, nestedResults); } else { var result = iteratee(child, childName, parent); if (result) { memo = combine(memo, result); } } return memo; }, initialMemo); }; var childNames = children.map(function (c, i) { return i; }); return traverseChildren(children, childNames); } /** * @param {Object} props: the props object * @returns {Boolean} returns true if the props object contains `horizontal: true` of if any * children or nested children are hoizontal */ function isHorizontal(props) { if (props.horizontal !== undefined || !props.children) { return props.horizontal; } var traverseChildren = function (childArray) { return childArray.reduce(function (memo, child) { var childProps = child.props || {}; if (memo || childProps.horizontal || !childProps.children) { memo = memo || childProps.horizontal; return memo; } return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default.a.Children.toArray(childProps.children)); }, false); }; return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default.a.Children.toArray(props.children)); } /* harmony default export */ __webpack_exports__["default"] = ({ omit: omit, getPoint: getPoint, scalePoint: scalePoint, getPadding: getPadding, getDefaultStyles: getDefaultStyles, getStyles: getStyles, evaluateProp: evaluateProp, evaluateStyle: evaluateStyle, degreesToRadians: degreesToRadians, radiansToDegrees: radiansToDegrees, getRadius: getRadius, getPolarOrigin: getPolarOrigin, getRange: getRange, createAccessor: createAccessor, modifyProps: modifyProps, getCurrentAxis: getCurrentAxis, reduceChildren: reduceChildren, isHorizontal: isHorizontal, isTooltip: isTooltip }); /***/ }), /***/ "../../victory-core/es/victory-util/immutable.js": /*!**********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/immutable.js ***! \**********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = ({ IMMUTABLE_ITERABLE: "@@__IMMUTABLE_ITERABLE__@@", IMMUTABLE_RECORD: "@@__IMMUTABLE_RECORD__@@", IMMUTABLE_LIST: "@@__IMMUTABLE_LIST__@@", IMMUTABLE_MAP: "@@__IMMUTABLE_MAP__@@", isImmutable: function (x) { return this.isIterable(x) || this.isRecord(x); }, isIterable: function (x) { return !!(x && x[this.IMMUTABLE_ITERABLE]); }, isRecord: function (x) { return !!(x && x[this.IMMUTABLE_RECORD]); }, isList: function (x) { return !!(x && x[this.IMMUTABLE_LIST]); }, isMap: function (x) { return !!(x && x[this.IMMUTABLE_MAP]); }, shallowToJS: function (x, whitelist) { var _this = this; return this.isIterable(x) ? x.reduce(function (prev, curr, key) { if (whitelist && whitelist[key]) { curr = _this.shallowToJS(curr); } prev[key] = curr; return prev; }, this.isList(x) ? [] : {}) : x; } }); /***/ }), /***/ "../../victory-core/es/victory-util/label-helpers.js": /*!**************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/label-helpers.js ***! \**************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js"); /* eslint-disable func-style */ /* eslint-disable no-use-before-define */ // Private Functions function getVerticalAnchor(props, datum) { datum = datum || {}; var sign = datum._y >= 0 ? 1 : -1; var labelStyle = props.style && props.style.labels || {}; if (datum.verticalAnchor || labelStyle.verticalAnchor) { return datum.verticalAnchor || labelStyle.verticalAnchor; } else if (!props.horizontal) { return sign >= 0 ? "end" : "start"; } else { return "middle"; } } function getTextAnchor(props, datum) { datum = datum || {}; var style = props.style, horizontal = props.horizontal; var sign = datum._y >= 0 ? 1 : -1; var labelStyle = style && style.labels || {}; if (datum.verticalAnchor || labelStyle.verticalAnchor) { return datum.verticalAnchor || labelStyle.verticalAnchor; } else if (!horizontal) { return "middle"; } else { return sign >= 0 ? "start" : "end"; } } function getAngle(props, datum) { datum = datum || {}; var labelStyle = props.style && props.style.labels || {}; return datum.angle === undefined ? labelStyle.angle : datum.angle; } function getPadding(props, datum) { datum = datum || {}; var horizontal = props.horizontal, style = props.style; var labelStyle = style.labels || {}; var defaultPadding = _helpers__WEBPACK_IMPORTED_MODULE_1__["default"].evaluateProp(labelStyle.padding, props) || 0; var sign = datum._y < 0 ? -1 : 1; return { x: horizontal ? sign * defaultPadding : 0, y: horizontal ? 0 : -1 * sign * defaultPadding }; } function getOffset(props, datum) { if (props.polar) { return {}; } var padding = getPadding(props, datum); return { dx: padding.x, dy: padding.y }; } function getPosition(props, datum) { var polar = props.polar; var _Helpers$scalePoint = _helpers__WEBPACK_IMPORTED_MODULE_1__["default"].scalePoint(props, datum), x = _Helpers$scalePoint.x, y = _Helpers$scalePoint.y; if (!polar) { return { x: x, y: y }; } else { var polarPadding = getPolarPadding(props, datum); return { x: x + polarPadding.x, y: y + polarPadding.y }; } } function getPolarPadding(props, datum) { var style = props.style; var degrees = getDegrees(props, datum); var labelStyle = style.labels || {}; var padding = _helpers__WEBPACK_IMPORTED_MODULE_1__["default"].evaluateProp(labelStyle.padding, props) || 0; var angle = _helpers__WEBPACK_IMPORTED_MODULE_1__["default"].degreesToRadians(degrees); return { x: padding * Math.cos(angle), y: -padding * Math.sin(angle) }; } function getLabelPlacement(props) { var labelComponent = props.labelComponent, labelPlacement = props.labelPlacement, polar = props.polar; var defaultLabelPlacement = polar ? "perpendicular" : "vertical"; return labelPlacement ? labelPlacement : labelComponent.props && labelComponent.props.labelPlacement || defaultLabelPlacement; } function getPolarOrientation(degrees) { // eslint-disable-next-line no-magic-numbers if (degrees < 45 || degrees > 315) { return "right"; // eslint-disable-next-line no-magic-numbers } else if (degrees >= 45 && degrees <= 135) { return "top"; // eslint-disable-next-line no-magic-numbers } else if (degrees > 135 && degrees < 225) { return "left"; } else { return "bottom"; } } // Exported Functions function getText(props, datum, index) { datum = datum || {}; if (datum.label !== undefined) { return datum.label; } return Array.isArray(props.labels) ? props.labels[index] : props.labels; } function getPolarTextAnchor(props, degrees) { var labelPlacement = getLabelPlacement(props); if (labelPlacement === "perpendicular" || labelPlacement === "vertical" && (degrees === 90 || degrees === 270)) { return "middle"; } return degrees <= 90 || degrees > 270 ? "start" : "end"; } function getPolarVerticalAnchor(props, degrees) { var labelPlacement = getLabelPlacement(props); var orientation = getPolarOrientation(degrees); if (labelPlacement === "parallel" || orientation === "left" || orientation === "right") { return "middle"; } return orientation === "top" ? "end" : "start"; } function getPolarAngle(props, baseAngle) { var labelPlacement = props.labelPlacement, datum = props.datum; if (!labelPlacement || labelPlacement === "vertical") { return 0; } var degrees = baseAngle !== undefined ? baseAngle % 360 : getDegrees(props, datum); var sign = degrees > 90 && degrees < 180 || degrees > 270 ? 1 : -1; var angle = 0; if (degrees === 0 || degrees === 180) { angle = 90; } else if (degrees > 0 && degrees < 180) { angle = 90 - degrees; } else if (degrees > 180 && degrees < 360) { angle = 270 - degrees; } var labelRotation = labelPlacement === "perpendicular" ? 0 : 90; return angle + sign * labelRotation; } function getDegrees(props, datum) { var _Helpers$getPoint = _helpers__WEBPACK_IMPORTED_MODULE_1__["default"].getPoint(datum), x = _Helpers$getPoint.x; return _helpers__WEBPACK_IMPORTED_MODULE_1__["default"].radiansToDegrees(props.scale.x(x)) % 360; } function getProps(props, index) { var scale = props.scale, data = props.data, style = props.style, horizontal = props.horizontal, polar = props.polar, width = props.width, height = props.height, theme = props.theme, labelComponent = props.labelComponent; var datum = data[index]; var degrees = getDegrees(props, datum); var textAnchor = polar ? getPolarTextAnchor(props, degrees) : getTextAnchor(props, datum); var verticalAnchor = polar ? getPolarVerticalAnchor(props, degrees) : getVerticalAnchor(props, datum); var angle = getAngle(props, datum); var text = getText(props, datum, index); var labelPlacement = getLabelPlacement(props); var _getPosition = getPosition(props, datum), x = _getPosition.x, y = _getPosition.y; var _getOffset = getOffset(props, datum), dx = _getOffset.dx, dy = _getOffset.dy; var labelProps = { angle: angle, data: data, datum: datum, horizontal: horizontal, index: index, polar: polar, scale: scale, labelPlacement: labelPlacement, text: text, textAnchor: textAnchor, verticalAnchor: verticalAnchor, x: x, y: y, dx: dx, dy: dy, width: width, height: height, style: style.labels }; if (!_helpers__WEBPACK_IMPORTED_MODULE_1__["default"].isTooltip(labelComponent)) { return labelProps; } var tooltipTheme = theme && theme.tooltip || {}; return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__["default"].omit(tooltipTheme, ["style"])); } /* harmony default export */ __webpack_exports__["default"] = ({ getText: getText, getPolarTextAnchor: getPolarTextAnchor, getPolarVerticalAnchor: getPolarVerticalAnchor, getPolarAngle: getPolarAngle, getDegrees: getDegrees, getProps: getProps }); /***/ }), /***/ "../../victory-core/es/victory-util/log.js": /*!****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/log.js ***! \****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* global console */ /* eslint-disable no-console */ // TODO: Use "warning" npm module like React is switching to. /* harmony default export */ __webpack_exports__["default"] = ({ warn: function (message) { if (true) { if (console && console.warn) { console.warn(message); } } } }); /***/ }), /***/ "../../victory-core/es/victory-util/prop-types.js": /*!***********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/prop-types.js ***! \***********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/lodash/isRegExp.js"); /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js"); /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); 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; } /** * Return a new validator based on `validator` but with the option to chain * `isRequired` onto the validation. This is nearly identical to how React * does it internally, but they don't expose their helper for us to use. * @param {Function} validator Validation function. * @returns {Function} Validator with `isRequired` option. */ var makeChainable = function (validator) { /* eslint-disable max-params */ var _chainable = function (isRequired, props, propName, componentName) { var value = props[propName]; if (value === undefined || value === null) { if (isRequired) { return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`.")); } return null; } for (var _len = arguments.length, rest = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) { rest[_key - 4] = arguments[_key]; } return validator.apply(void 0, [props, propName, componentName].concat(rest)); }; var chainable = _chainable.bind(null, false); chainable.isRequired = _chainable.bind(null, true); return chainable; }; var nullConstructor = function () { return null; }; var undefinedConstructor = function () { return undefined; }; /** * Get the constructor of `value`. If `value` is null or undefined, return the * special singletons `nullConstructor` or `undefinedConstructor`, respectively. * @param {*} value Instance to return the constructor of. * @returns {Function} Constructor of `value`. */ var getConstructor = function (value) { if (value === undefined) { return undefinedConstructor; } else if (value === null) { return nullConstructor; } else { return value.constructor; } }; /** * Get the name of the constructor used to create `value`, using * `Object.protoype.toString`. If the value is null or undefined, return * "null" or "undefined", respectively. * @param {*} value Instance to return the constructor name of. * @returns {String} Name of the constructor. */ var getConstructorName = function (value) { if (value === undefined) { return "undefined"; } else if (value === null) { return "null"; } return Object.prototype.toString.call(value).slice(8, -1); // eslint-disable-line no-magic-numbers }; /* harmony default export */ __webpack_exports__["default"] = ({ /** * Return a new validator based on `propType` but which logs a `console.error` * with `explanation` if used. * @param {Function} propType The old, deprecated propType. * @param {String} explanation The message to provide the user of the deprecated propType. * @returns {Function} Validator which logs usage of this propType */ deprecated: function (propType, explanation) { return function (props, propName, componentName) { var value = props[propName]; if (value !== null && value !== undefined) { _log__WEBPACK_IMPORTED_MODULE_3__["default"].warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation)); } return prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName); }; }, /** * Return a new validator which returns true * if and only if all validators passed as arguments return true. * Like React.propTypes.oneOfType, except "all" instead of "any" * @param {Array} validators Validation functions. * @returns {Function} Combined validator function */ allOfType: function (validators) { return makeChainable(function (props, propName, componentName) { for (var _len2 = arguments.length, rest = new Array(_len2 > 3 ? _len2 - 3 : 0), _key2 = 3; _key2 < _len2; _key2++) { rest[_key2 - 3] = arguments[_key2]; } return validators.reduce(function (result, validator) { return result || validator.apply(void 0, [props, propName, componentName].concat(rest)); }, undefined); }); }, /** * Check that the value is a non-negative number. */ nonNegative: makeChainable(function (props, propName, componentName) { var value = props[propName]; if (typeof value !== "number" || value < 0) { return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number.")); } return undefined; }), /** * Check that the value is an integer. */ integer: makeChainable(function (props, propName, componentName) { var value = props[propName]; if (typeof value !== "number" || value % 1 !== 0) { return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer.")); } return undefined; }), /** * Check that the value is greater than zero. */ greaterThanZero: makeChainable(function (props, propName, componentName) { var value = props[propName]; if (typeof value !== "number" || value <= 0) { return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero.")); } return undefined; }), /** * Check that the value is an Array of two unique values. */ domain: makeChainable(function (props, propName, componentName) { var value = props[propName]; if (!Array.isArray(value) || value.length !== 2 || value[1] === value[0]) { return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values.")); } return undefined; }), /** * Check that the value looks like a d3 `scale` function. */ scale: makeChainable(function (props, propName, componentName) { var supportedScaleStrings = ["linear", "time", "log", "sqrt"]; var validScale = function (scl) { if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) { return lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.copy) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.domain) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.range); } else if (typeof scl === "string") { return supportedScaleStrings.indexOf(scl) !== -1; } return false; }; var value = props[propName]; if (!validScale(value)) { return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale.")); } return undefined; }), /** * Check that an array contains items of the same type. */ homogeneousArray: makeChainable(function (props, propName, componentName) { var values = props[propName]; if (!Array.isArray(values)) { return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array.")); } if (values.length < 2) { return undefined; } var comparisonConstructor = getConstructor(values[0]); var typeMismatchedValue = lodash_find__WEBPACK_IMPORTED_MODULE_1___default()(values, function (value) { return comparisonConstructor !== getConstructor(value); }); if (typeMismatchedValue) { var constructorName = getConstructorName(values[0]); var otherConstructorName = getConstructorName(typeMismatchedValue); return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`.")); } return undefined; }), /** * Check that array prop length matches props.data.length */ matchDataLength: makeChainable(function (props, propName) { if (props[propName] && Array.isArray(props[propName]) && props[propName].length !== props.data.length) { return new Error("Length of data and ".concat(propName, " arrays must match.")); } return undefined; }), /** * Check that the value is a regular expression */ regExp: makeChainable(function (props, propName, componentName) { if (props[propName] && !lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default()(props[propName])) { return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression.")); } return undefined; }) }); /***/ }), /***/ "../../victory-core/es/victory-util/scale.js": /*!******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/scale.js ***! \******************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js"); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/includes */ "../../../node_modules/lodash/includes.js"); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js"); /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-scale */ "../../../node_modules/d3-scale/index.js"); var supportedScaleStrings = ["linear", "time", "log", "sqrt"]; // Private Functions function toNewName(scale) { // d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc. var capitalize = function (s) { return s && s[0].toUpperCase() + s.slice(1); }; return "scale".concat(capitalize(scale)); } function validScale(scale) { if (typeof scale === "function") { return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale.copy) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale.domain) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale.range); } else if (typeof scale === "string") { return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(supportedScaleStrings, scale); } return false; } function isScaleDefined(props, axis) { if (!props.scale) { return false; } else if (props.scale.x || props.scale.y) { return props.scale[axis] ? true : false; } return true; } function getScaleTypeFromProps(props, axis) { if (!isScaleDefined(props, axis)) { return undefined; } var scale = props.scale[axis] || props.scale; return typeof scale === "string" ? scale : getType(scale); } function getScaleFromDomain(props, axis) { var domain; if (props.domain && props.domain[axis]) { domain = props.domain[axis]; } else if (props.domain && Array.isArray(props.domain)) { domain = props.domain; } if (!domain) { return undefined; } return _collection__WEBPACK_IMPORTED_MODULE_4__["default"].containsDates(domain) ? "time" : "linear"; } function getScaleTypeFromData(props, axis) { if (!props.data) { return "linear"; } var accessor = _helpers__WEBPACK_IMPORTED_MODULE_3__["default"].createAccessor(props[axis]); var axisData = props.data.map(function (datum) { var processedData = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(accessor(datum)) ? accessor(datum)[axis] : accessor(datum); return processedData !== undefined ? processedData : datum[axis]; }); return _collection__WEBPACK_IMPORTED_MODULE_4__["default"].containsDates(axisData) ? "time" : "linear"; } // Exported Functions function getScaleFromName(name) { return validScale(name) ? d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(name)]() : d3_scale__WEBPACK_IMPORTED_MODULE_5__["scaleLinear"](); } function getBaseScale(props, axis) { var scale = getScaleFromProps(props, axis); if (scale) { return typeof scale === "string" ? getScaleFromName(scale) : scale; } var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis); return d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(defaultScale)](); } function getDefaultScale() { return d3_scale__WEBPACK_IMPORTED_MODULE_5__["scaleLinear"](); } function getScaleFromProps(props, axis) { if (!isScaleDefined(props, axis)) { return undefined; } var scale = props.scale[axis] || props.scale; if (validScale(scale)) { return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(scale)](); } return undefined; } function getScaleType(props, axis) { // if the scale was not given in props, it will be set to linear or time depending on data return getScaleTypeFromProps(props, axis) || getScaleTypeFromData(props, axis); } function getType(scale) { if (typeof scale === "string") { return scale; } var duckTypes = [{ name: "log", method: "base" }, { name: "ordinal", method: "unknown" }, { name: "pow-sqrt", method: "exponent" }, { name: "quantile", method: "quantiles" }, { name: "quantize-threshold", method: "invertExtent" }]; var scaleType = duckTypes.filter(function (type) { return scale[type.method] !== undefined; })[0]; return scaleType ? scaleType.name : undefined; } /* harmony default export */ __webpack_exports__["default"] = ({ getBaseScale: getBaseScale, getDefaultScale: getDefaultScale, getScaleFromProps: getScaleFromProps, getScaleType: getScaleType, getType: getType, getScaleFromName: getScaleFromName }); /***/ }), /***/ "../../victory-core/es/victory-util/selection.js": /*!**********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/selection.js ***! \**********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js"); /* eslint-disable func-style */ /* eslint-disable no-use-before-define */ // Private Functions function transformTarget(target, matrix, dimension) { var a = matrix.a, d = matrix.d, e = matrix.e, f = matrix.f; return dimension === "y" ? d * target + f : a * target + e; } function getTransformationMatrix(svg) { return svg.getScreenCTM().inverse(); } // Exported Functions function getParentSVG(evt) { if (evt.nativeEvent && evt.nativeEvent.identifier !== undefined) { return undefined; } var getParent = function (target) { if (target.nodeName === "svg") { return target; } else { return target.parentNode ? getParent(target.parentNode) : target; } }; return getParent(evt.target); } function getSVGEventCoordinates(evt, svg) { if (evt.nativeEvent && evt.nativeEvent.identifier !== undefined) { // react-native override. relies on the RN.View being the _exact_ same size as its child SVG. // this should be fine: the svg is the only child of View and the View shirks to its children return { x: evt.nativeEvent.locationX, y: evt.nativeEvent.locationY }; } evt = evt.changedTouches && evt.changedTouches.length ? evt.changedTouches[0] : evt; svg = svg || getParentSVG(evt); var matrix = getTransformationMatrix(svg); return { x: transformTarget(evt.clientX, matrix, "x"), y: transformTarget(evt.clientY, matrix, "y") }; } function getDomainCoordinates(props, domain) { var scale = props.scale, horizontal = props.horizontal; domain = domain || { x: scale.x.domain(), y: scale.y.domain() }; return { x: horizontal ? [scale.y(domain.y[0]), scale.y(domain.y[1])] : [scale.x(domain.x[0]), scale.x(domain.x[1])], y: horizontal ? [scale.x(domain.x[0]), scale.x(domain.x[1])] : [scale.y(domain.y[0]), scale.y(domain.y[1])] }; } // eslint-disable-next-line max-params function getDataCoordinates(props, scale, x, y) { var polar = props.polar, horizontal = props.horizontal; if (!polar) { return { x: horizontal ? scale.x.invert(y) : scale.x.invert(x), y: horizontal ? scale.y.invert(x) : scale.y.invert(y) }; } else { var origin = props.origin || { x: 0, y: 0 }; var baseX = x - origin.x; var baseY = y - origin.y; var radius = Math.abs(baseX * Math.sqrt(1 + Math.pow(-baseY / baseX, 2))); var angle = (-Math.atan2(baseY, baseX) + Math.PI * 2) % (Math.PI * 2); return { x: scale.x.invert(angle), y: scale.y.invert(radius) }; } } function getBounds(props) { var x1 = props.x1, x2 = props.x2, y1 = props.y1, y2 = props.y2, scale = props.scale; var point1 = getDataCoordinates(props, scale, x1, y1); var point2 = getDataCoordinates(props, scale, x2, y2); var makeBound = function (a, b) { return [_collection__WEBPACK_IMPORTED_MODULE_0__["default"].getMinValue([a, b]), _collection__WEBPACK_IMPORTED_MODULE_0__["default"].getMaxValue([a, b])]; }; return { x: makeBound(point1.x, point2.x), y: makeBound(point1.y, point2.y) }; } /* harmony default export */ __webpack_exports__["default"] = ({ getParentSVG: getParentSVG, getSVGEventCoordinates: getSVGEventCoordinates, getDomainCoordinates: getDomainCoordinates, getDataCoordinates: getDataCoordinates, getBounds: getBounds }); /***/ }), /***/ "../../victory-core/es/victory-util/style.js": /*!******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/style.js ***! \******************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /** * Given an object with CSS/SVG transform definitions, return the string value * for use with the `transform` CSS property or SVG attribute. Note that we * can't always guarantee the order will match the author's intended order, so * authors should only use the object notation if they know that their transform * is commutative or that there is only one. * @param {Object} obj An object of transform definitions. * @returns {String} The generated transform string. */ var toTransformString = function (obj) { for (var _len = arguments.length, more = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { more[_key - 1] = arguments[_key]; } if (more.length > 0) { return more.reduce(function (memo, currentObj) { return [memo, toTransformString(currentObj)].join(" "); }, toTransformString(obj)).trim(); } else { if (obj === undefined || obj === null || typeof obj === "string") { return obj; } var transforms = []; for (var key in obj) { if (obj.hasOwnProperty(key)) { var value = obj[key]; transforms.push("".concat(key, "(").concat(value, ")")); } } return transforms.join(" ").trim(); } }; /* harmony default export */ __webpack_exports__["default"] = ({ toTransformString: toTransformString, /** * Given the name of a color scale, getColorScale will return an array * of 5 hex string values in that color scale. If no 'name' parameter * is given, it will return the Victory default grayscale. * @param {String} name The name of the color scale to return (optional). * @returns {Array} An array of 5 hex string values composing a color scale. */ getColorScale: function (name) { var scales = { grayscale: ["#cccccc", "#969696", "#636363", "#252525"], qualitative: ["#334D5C", "#45B29D", "#EFC94C", "#E27A3F", "#DF5A49", "#4F7DA1", "#55DBC1", "#EFDA97", "#E2A37F", "#DF948A"], heatmap: ["#428517", "#77D200", "#D6D305", "#EC8E19", "#C92B05"], warm: ["#940031", "#C43343", "#DC5429", "#FF821D", "#FFAF55"], cool: ["#2746B9", "#0B69D4", "#2794DB", "#31BB76", "#60E83B"], red: ["#FCAE91", "#FB6A4A", "#DE2D26", "#A50F15", "#750B0E"], blue: ["#002C61", "#004B8F", "#006BC9", "#3795E5", "#65B4F4"], green: ["#354722", "#466631", "#649146", "#8AB25C", "#A9C97E"] }; return name ? scales[name] : scales.grayscale; } }); /***/ }), /***/ "../../victory-core/es/victory-util/textsize.js": /*!*********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/textsize.js ***! \*********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } // Based on measuring specific character widths // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf //prettier-ignore var fonts = { "American Typewriter": { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.25, 0.4203125, 0.3296875, 0.6, 0.6375, 0.8015625, 0.8203125, 0.1875, 0.45625, 0.45625, 0.6375, 0.5, 0.2734375, 0.309375, 0.2734375, 0.4390625, 0.6375, 0.6375, 0.6375, 0.6375, 0.6375, 0.6375, 0.6375, 0.6375, 0.6375, 0.6375, 0.2734375, 0.2734375, 0.5, 0.5, 0.5, 0.6, 0.6921875, 0.7640625, 0.6921875, 0.6375, 0.728125, 0.6734375, 0.6203125, 0.7109375, 0.784375, 0.3828125, 0.6421875, 0.7859375, 0.6375, 0.9484375, 0.7640625, 0.65625, 0.6375, 0.65625, 0.7296875, 0.6203125, 0.6375, 0.7109375, 0.740625, 0.940625, 0.784375, 0.7578125, 0.6203125, 0.4375, 0.5, 0.4375, 0.5, 0.5, 0.4921875, 0.5734375, 0.5890625, 0.5109375, 0.6, 0.528125, 0.43125, 0.5578125, 0.6375, 0.3109375, 0.40625, 0.6234375, 0.309375, 0.928125, 0.6375, 0.546875, 0.6, 0.58125, 0.4921875, 0.4921875, 0.4, 0.6203125, 0.625, 0.825, 0.6375, 0.640625, 0.528125, 0.5, 0.5, 0.5, 0.6671875], avg: 0.5793421052631578 }, Arial: { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.278125, 0.278125, 0.35625, 0.55625, 0.55625, 0.890625, 0.6671875, 0.1921875, 0.334375, 0.334375, 0.390625, 0.584375, 0.278125, 0.334375, 0.278125, 0.278125, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.278125, 0.278125, 0.584375, 0.584375, 0.584375, 0.55625, 1.015625, 0.6703125, 0.6671875, 0.7234375, 0.7234375, 0.6671875, 0.6109375, 0.778125, 0.7234375, 0.278125, 0.5, 0.6671875, 0.55625, 0.834375, 0.7234375, 0.778125, 0.6671875, 0.778125, 0.7234375, 0.6671875, 0.6109375, 0.7234375, 0.6671875, 0.9453125, 0.6671875, 0.6671875, 0.6109375, 0.278125, 0.278125, 0.278125, 0.4703125, 0.584375, 0.334375, 0.55625, 0.55625, 0.5, 0.55625, 0.55625, 0.3125, 0.55625, 0.55625, 0.2234375, 0.2703125, 0.5, 0.2234375, 0.834375, 0.55625, 0.55625, 0.55625, 0.55625, 0.346875, 0.5, 0.278125, 0.55625, 0.5, 0.7234375, 0.5, 0.5, 0.5, 0.334375, 0.2609375, 0.334375, 0.584375], avg: 0.528733552631579 }, "Arial Black": { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.33125, 0.334375, 0.5, 0.6609375, 0.6671875, 1, 0.890625, 0.278125, 0.390625, 0.390625, 0.55625, 0.6609375, 0.334375, 0.334375, 0.334375, 0.28125, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.334375, 0.334375, 0.6609375, 0.6609375, 0.6609375, 0.6109375, 0.7453125, 0.78125, 0.778125, 0.778125, 0.778125, 0.7234375, 0.6671875, 0.834375, 0.834375, 0.390625, 0.6671875, 0.834375, 0.6671875, 0.9453125, 0.834375, 0.834375, 0.7234375, 0.834375, 0.78125, 0.7234375, 0.7234375, 0.834375, 0.7796875, 1.003125, 0.78125, 0.78125, 0.7234375, 0.390625, 0.28125, 0.390625, 0.6609375, 0.5125, 0.334375, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.41875, 0.6671875, 0.6671875, 0.334375, 0.384375, 0.6671875, 0.334375, 1, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.4703125, 0.6109375, 0.4453125, 0.6671875, 0.6140625, 0.946875, 0.6671875, 0.615625, 0.55625, 0.390625, 0.278125, 0.390625, 0.6609375], avg: 0.6213157894736842 }, Baskerville: { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.25, 0.25, 0.40625, 0.6671875, 0.490625, 0.875, 0.7015625, 0.178125, 0.2453125, 0.246875, 0.4171875, 0.6671875, 0.25, 0.3125, 0.25, 0.521875, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.25, 0.25, 0.6671875, 0.6671875, 0.6671875, 0.396875, 0.9171875, 0.684375, 0.615625, 0.71875, 0.7609375, 0.625, 0.553125, 0.771875, 0.803125, 0.3546875, 0.515625, 0.78125, 0.6046875, 0.928125, 0.75, 0.8234375, 0.5625, 0.96875, 0.7296875, 0.5421875, 0.6984375, 0.771875, 0.7296875, 0.9484375, 0.771875, 0.678125, 0.6359375, 0.3640625, 0.521875, 0.3640625, 0.46875, 0.5125, 0.334375, 0.46875, 0.521875, 0.428125, 0.521875, 0.4375, 0.3890625, 0.4765625, 0.53125, 0.25, 0.359375, 0.4640625, 0.240625, 0.803125, 0.53125, 0.5, 0.521875, 0.521875, 0.365625, 0.334375, 0.2921875, 0.521875, 0.4640625, 0.678125, 0.4796875, 0.465625, 0.428125, 0.4796875, 0.5109375, 0.4796875, 0.6671875], avg: 0.5323519736842108 }, Courier: { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.5984375, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6078125, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.61875, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.615625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6140625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625], avg: 0.6020559210526316 }, "Courier New": { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.5984375, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625], avg: 0.6015296052631579 }, cursive: { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.1921875, 0.24375, 0.40625, 0.5671875, 0.3984375, 0.721875, 0.909375, 0.2328125, 0.434375, 0.365625, 0.4734375, 0.5578125, 0.19375, 0.3484375, 0.19375, 0.7734375, 0.503125, 0.4171875, 0.5453125, 0.45, 0.6046875, 0.4703125, 0.5984375, 0.55625, 0.503125, 0.5546875, 0.20625, 0.2, 0.5625, 0.5546875, 0.546875, 0.403125, 0.70625, 0.734375, 0.7078125, 0.64375, 0.85, 0.753125, 0.75, 0.6484375, 1.0765625, 0.44375, 0.5359375, 0.8359375, 0.653125, 1.0109375, 1.1515625, 0.6796875, 0.6984375, 1.0625, 0.8234375, 0.5125, 0.9234375, 0.8546875, 0.70625, 0.9109375, 0.7421875, 0.715625, 0.6015625, 0.4640625, 0.3359375, 0.4109375, 0.5421875, 0.5421875, 0.4328125, 0.5125, 0.5, 0.3859375, 0.7375, 0.359375, 0.75625, 0.540625, 0.5328125, 0.3203125, 0.5296875, 0.5015625, 0.484375, 0.7890625, 0.5640625, 0.4203125, 0.703125, 0.471875, 0.4734375, 0.35, 0.4125, 0.5640625, 0.471875, 0.6484375, 0.5296875, 0.575, 0.4140625, 0.415625, 0.20625, 0.3796875, 0.5421875], avg: 0.5604440789473684 }, fantasy: { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.215625, 0.2625, 0.3265625, 0.6109375, 0.534375, 0.7625, 0.7828125, 0.2, 0.4359375, 0.4359375, 0.3765625, 0.5109375, 0.2796875, 0.4609375, 0.2796875, 0.5296875, 0.6640625, 0.253125, 0.521875, 0.4765625, 0.6640625, 0.490625, 0.528125, 0.5546875, 0.496875, 0.5421875, 0.2796875, 0.2796875, 0.5625, 0.4609375, 0.5625, 0.4828125, 0.609375, 0.740625, 0.7234375, 0.740625, 0.8265625, 0.7234375, 0.6171875, 0.7359375, 0.765625, 0.240625, 0.5453125, 0.715625, 0.6078125, 0.8640625, 0.653125, 0.9125, 0.6484375, 0.946875, 0.6921875, 0.653125, 0.6953125, 0.8015625, 0.58125, 0.784375, 0.671875, 0.6265625, 0.690625, 0.4359375, 0.5296875, 0.4359375, 0.53125, 0.5, 0.2875, 0.5375, 0.603125, 0.4984375, 0.60625, 0.53125, 0.434375, 0.6421875, 0.56875, 0.209375, 0.4671875, 0.5484375, 0.2203125, 0.709375, 0.55, 0.5984375, 0.6140625, 0.5765625, 0.40625, 0.4734375, 0.3734375, 0.559375, 0.4421875, 0.6421875, 0.4890625, 0.578125, 0.4484375, 0.2546875, 0.2203125, 0.2546875, 0.55], avg: 0.536496710526316 }, Geneva: { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.3328125, 0.3046875, 0.5, 0.6671875, 0.6671875, 0.90625, 0.728125, 0.3046875, 0.446875, 0.446875, 0.5078125, 0.6671875, 0.3046875, 0.3796875, 0.3046875, 0.5390625, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.3046875, 0.3046875, 0.6671875, 0.6671875, 0.6671875, 0.56875, 0.871875, 0.728125, 0.6375, 0.6515625, 0.7015625, 0.5765625, 0.5546875, 0.675, 0.690625, 0.2421875, 0.4921875, 0.6640625, 0.584375, 0.7890625, 0.709375, 0.7359375, 0.584375, 0.78125, 0.60625, 0.60625, 0.640625, 0.6671875, 0.728125, 0.946875, 0.6109375, 0.6109375, 0.5765625, 0.446875, 0.5390625, 0.446875, 0.6671875, 0.6671875, 0.5921875, 0.5546875, 0.6109375, 0.546875, 0.603125, 0.5765625, 0.390625, 0.6109375, 0.584375, 0.2359375, 0.334375, 0.5390625, 0.2359375, 0.8953125, 0.584375, 0.60625, 0.603125, 0.603125, 0.3875, 0.509375, 0.44375, 0.584375, 0.565625, 0.78125, 0.53125, 0.571875, 0.5546875, 0.4515625, 0.246875, 0.4515625, 0.6671875], avg: 0.5762664473684211 }, Georgia: { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2421875, 0.33125, 0.4125, 0.64375, 0.6109375, 0.81875, 0.7109375, 0.215625, 0.375, 0.375, 0.4734375, 0.64375, 0.2703125, 0.375, 0.2703125, 0.46875, 0.6140625, 0.4296875, 0.559375, 0.553125, 0.565625, 0.5296875, 0.5671875, 0.503125, 0.596875, 0.5671875, 0.3125, 0.3125, 0.64375, 0.64375, 0.64375, 0.4796875, 0.9296875, 0.715625, 0.6546875, 0.6421875, 0.75, 0.6546875, 0.6, 0.7265625, 0.815625, 0.390625, 0.51875, 0.7203125, 0.6046875, 0.928125, 0.7671875, 0.7453125, 0.6109375, 0.7453125, 0.7234375, 0.5625, 0.61875, 0.7578125, 0.70625, 0.99375, 0.7125, 0.6640625, 0.6015625, 0.375, 0.46875, 0.375, 0.64375, 0.65, 0.5, 0.5046875, 0.56875, 0.4546875, 0.575, 0.484375, 0.39375, 0.509375, 0.5828125, 0.29375, 0.3671875, 0.546875, 0.2875, 0.88125, 0.5921875, 0.5390625, 0.571875, 0.5640625, 0.4109375, 0.4328125, 0.3453125, 0.5765625, 0.5203125, 0.75625, 0.50625, 0.5171875, 0.4453125, 0.43125, 0.375, 0.43125, 0.64375], avg: 0.5551809210526316 }, "Gill Sans": { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2765625, 0.271875, 0.3546875, 0.584375, 0.5421875, 0.6765625, 0.625, 0.1890625, 0.3234375, 0.3234375, 0.4171875, 0.584375, 0.2203125, 0.3234375, 0.2203125, 0.28125, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.2203125, 0.2296875, 0.584375, 0.584375, 0.584375, 0.334375, 1.0109375, 0.6671875, 0.5640625, 0.709375, 0.75, 0.5, 0.4703125, 0.740625, 0.7296875, 0.25, 0.3125, 0.65625, 0.490625, 0.78125, 0.78125, 0.8234375, 0.5109375, 0.8234375, 0.6046875, 0.459375, 0.6046875, 0.709375, 0.6046875, 1.0421875, 0.709375, 0.6046875, 0.646875, 0.334375, 0.28125, 0.334375, 0.4703125, 0.5828125, 0.334375, 0.428125, 0.5, 0.4390625, 0.5109375, 0.4796875, 0.296875, 0.428125, 0.5, 0.2203125, 0.2265625, 0.5, 0.2203125, 0.771875, 0.5, 0.553125, 0.5, 0.5, 0.3984375, 0.3859375, 0.334375, 0.5, 0.4390625, 0.7203125, 0.5, 0.4390625, 0.4171875, 0.334375, 0.2609375, 0.334375, 0.584375], avg: 0.4933717105263159 }, Helvetica: { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2796875, 0.2765625, 0.3546875, 0.5546875, 0.5546875, 0.8890625, 0.665625, 0.190625, 0.3328125, 0.3328125, 0.3890625, 0.5828125, 0.2765625, 0.3328125, 0.2765625, 0.3015625, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.2765625, 0.2765625, 0.584375, 0.5828125, 0.584375, 0.5546875, 1.0140625, 0.665625, 0.665625, 0.721875, 0.721875, 0.665625, 0.609375, 0.7765625, 0.721875, 0.2765625, 0.5, 0.665625, 0.5546875, 0.8328125, 0.721875, 0.7765625, 0.665625, 0.7765625, 0.721875, 0.665625, 0.609375, 0.721875, 0.665625, 0.94375, 0.665625, 0.665625, 0.609375, 0.2765625, 0.3546875, 0.2765625, 0.4765625, 0.5546875, 0.3328125, 0.5546875, 0.5546875, 0.5, 0.5546875, 0.5546875, 0.2765625, 0.5546875, 0.5546875, 0.221875, 0.240625, 0.5, 0.221875, 0.8328125, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.3328125, 0.5, 0.2765625, 0.5546875, 0.5, 0.721875, 0.5, 0.5, 0.5, 0.3546875, 0.259375, 0.353125, 0.5890625], avg: 0.5279276315789471 }, "Helvetica Neue": { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.278125, 0.259375, 0.4265625, 0.55625, 0.55625, 1, 0.6453125, 0.278125, 0.2703125, 0.26875, 0.353125, 0.6, 0.278125, 0.3890625, 0.278125, 0.36875, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.278125, 0.278125, 0.6, 0.6, 0.6, 0.55625, 0.8, 0.6625, 0.6859375, 0.7234375, 0.7046875, 0.6125, 0.575, 0.759375, 0.7234375, 0.259375, 0.5203125, 0.6703125, 0.55625, 0.871875, 0.7234375, 0.7609375, 0.6484375, 0.7609375, 0.6859375, 0.6484375, 0.575, 0.7234375, 0.6140625, 0.9265625, 0.6125, 0.6484375, 0.6125, 0.259375, 0.36875, 0.259375, 0.6, 0.5, 0.25625, 0.5375, 0.59375, 0.5375, 0.59375, 0.5375, 0.2984375, 0.575, 0.55625, 0.2234375, 0.2375, 0.5203125, 0.2234375, 0.853125, 0.55625, 0.575, 0.59375, 0.59375, 0.334375, 0.5, 0.315625, 0.55625, 0.5, 0.759375, 0.51875, 0.5, 0.48125, 0.334375, 0.2234375, 0.334375, 0.6], avg: 0.5279440789473684 }, "Hoefler Text": { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2359375, 0.2234375, 0.3921875, 0.7125, 0.49375, 0.8859375, 0.771875, 0.2125, 0.3078125, 0.309375, 0.375, 0.4234375, 0.234375, 0.3125, 0.234375, 0.3, 0.5828125, 0.365625, 0.434375, 0.3921875, 0.5234375, 0.3984375, 0.5125, 0.4328125, 0.46875, 0.5125, 0.234375, 0.234375, 0.515625, 0.4234375, 0.515625, 0.340625, 0.7609375, 0.7359375, 0.6359375, 0.721875, 0.8125, 0.6375, 0.5875, 0.8078125, 0.853125, 0.4296875, 0.503125, 0.78125, 0.609375, 0.9609375, 0.8515625, 0.8140625, 0.6125, 0.8140625, 0.71875, 0.49375, 0.7125, 0.76875, 0.771875, 1.125, 0.7765625, 0.7734375, 0.65625, 0.321875, 0.3078125, 0.321875, 0.3546875, 0.5, 0.3375, 0.446875, 0.5359375, 0.45, 0.5296875, 0.4546875, 0.425, 0.4921875, 0.54375, 0.2671875, 0.240625, 0.5390625, 0.25, 0.815625, 0.5375, 0.5234375, 0.5390625, 0.5421875, 0.365625, 0.36875, 0.35625, 0.5171875, 0.5015625, 0.75, 0.5, 0.509375, 0.44375, 0.2421875, 0.14375, 0.2421875, 0.35], avg: 0.5116447368421051 }, "Montserrat": { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2625, 0.2609375, 0.3734375, 0.696875, 0.615625, 0.8296875, 0.6703125, 0.203125, 0.3296875, 0.3296875, 0.3875, 0.575, 0.2125, 0.3828125, 0.2125, 0.3953125, 0.6625, 0.3625, 0.56875, 0.5640625, 0.6625, 0.5671875, 0.609375, 0.5890625, 0.6390625, 0.609375, 0.2125, 0.2125, 0.575, 0.575, 0.575, 0.5671875, 1.034375, 0.7171875, 0.7546875, 0.7203125, 0.8265625, 0.6703125, 0.634375, 0.7734375, 0.8140625, 0.303125, 0.5078125, 0.7125, 0.5890625, 0.95625, 0.8140625, 0.8390625, 0.71875, 0.8390625, 0.7234375, 0.615625, 0.575, 0.7921875, 0.6984375, 1.1125, 0.65625, 0.6359375, 0.6515625, 0.31875, 0.396875, 0.31875, 0.5765625, 0.5, 0.6, 0.590625, 0.678125, 0.5640625, 0.678125, 0.6046875, 0.375, 0.6875, 0.678125, 0.2703125, 0.365625, 0.6015625, 0.2703125, 1.0625, 0.678125, 0.628125, 0.678125, 0.678125, 0.4015625, 0.4890625, 0.40625, 0.6734375, 0.5421875, 0.8796875, 0.534375, 0.5671875, 0.5125, 0.334375, 0.2953125, 0.334375, 0.575], avg: 0.571792763157895 }, monospace: { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.5984375, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6078125, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.61875, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.615625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6140625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625], avg: 0.6020559210526316 }, Overpass: { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2296875, 0.2765625, 0.4203125, 0.68125, 0.584375, 0.8515625, 0.7015625, 0.2203125, 0.3453125, 0.3453125, 0.53125, 0.63125, 0.2234375, 0.3953125, 0.2234375, 0.509375, 0.65, 0.4046875, 0.6171875, 0.60625, 0.6484375, 0.60625, 0.6015625, 0.5375, 0.615625, 0.6015625, 0.2234375, 0.2234375, 0.63125, 0.63125, 0.63125, 0.5015625, 0.8203125, 0.696875, 0.6671875, 0.65, 0.6859375, 0.6015625, 0.559375, 0.690625, 0.7078125, 0.2953125, 0.565625, 0.678125, 0.58125, 0.8046875, 0.7109375, 0.740625, 0.6421875, 0.740625, 0.6765625, 0.6046875, 0.590625, 0.696875, 0.6640625, 0.853125, 0.65, 0.6671875, 0.6625, 0.3734375, 0.509375, 0.3734375, 0.63125, 0.5125, 0.4, 0.5328125, 0.5625, 0.51875, 0.5625, 0.546875, 0.3359375, 0.5625, 0.565625, 0.25625, 0.3203125, 0.55, 0.265625, 0.85, 0.565625, 0.5671875, 0.5625, 0.5625, 0.4046875, 0.4765625, 0.3796875, 0.565625, 0.521875, 0.7265625, 0.53125, 0.5390625, 0.5125, 0.3671875, 0.275, 0.3671875, 0.63125], avg: 0.5430756578947369 }, Palatino: { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.25, 0.278125, 0.371875, 0.60625, 0.5, 0.840625, 0.778125, 0.209375, 0.334375, 0.334375, 0.390625, 0.60625, 0.2578125, 0.334375, 0.25, 0.60625, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.25, 0.25, 0.60625, 0.60625, 0.60625, 0.4453125, 0.7484375, 0.778125, 0.6109375, 0.709375, 0.775, 0.6109375, 0.55625, 0.7640625, 0.8328125, 0.3375, 0.346875, 0.7265625, 0.6109375, 0.946875, 0.83125, 0.7875, 0.6046875, 0.7875, 0.66875, 0.525, 0.6140625, 0.778125, 0.7234375, 1, 0.6671875, 0.6671875, 0.6671875, 0.334375, 0.60625, 0.334375, 0.60625, 0.5, 0.334375, 0.5, 0.565625, 0.4453125, 0.6109375, 0.4796875, 0.340625, 0.55625, 0.5828125, 0.2921875, 0.2671875, 0.5640625, 0.2921875, 0.8828125, 0.5828125, 0.546875, 0.6015625, 0.5609375, 0.3953125, 0.425, 0.3265625, 0.603125, 0.565625, 0.834375, 0.5171875, 0.55625, 0.5, 0.334375, 0.60625, 0.334375, 0.60625], avg: 0.5408552631578947 }, "RedHatText": { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2328125, 0.2203125, 0.35625, 0.6890625, 0.55, 0.7390625, 0.6703125, 0.2140625, 0.4015625, 0.4015625, 0.4546875, 0.53125, 0.2203125, 0.45625, 0.2203125, 0.515625, 0.6609375, 0.3078125, 0.5484375, 0.5875, 0.61875, 0.5703125, 0.6203125, 0.559375, 0.6140625, 0.6203125, 0.2203125, 0.2234375, 0.465625, 0.534375, 0.465625, 0.5125, 0.7671875, 0.6609375, 0.6703125, 0.7265625, 0.728125, 0.6203125, 0.6109375, 0.8, 0.73125, 0.253125, 0.6, 0.6125, 0.6078125, 0.8625, 0.7390625, 0.8109375, 0.6546875, 0.809375, 0.6484375, 0.6234375, 0.6171875, 0.7125, 0.6609375, 0.8984375, 0.6546875, 0.646875, 0.60625, 0.3625, 0.5203125, 0.3625, 0.540625, 0.4609375, 0.5234375, 0.5265625, 0.584375, 0.509375, 0.5828125, 0.5578125, 0.3703125, 0.5828125, 0.553125, 0.2234375, 0.24375, 0.4890625, 0.2234375, 0.8453125, 0.553125, 0.58125, 0.584375, 0.5828125, 0.353125, 0.453125, 0.378125, 0.553125, 0.5015625, 0.6984375, 0.4875, 0.4984375, 0.459375, 0.3953125, 0.2921875, 0.3953125, 0.58125], avg: 0.5341940789473685 }, "sans-serif": { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.278125, 0.278125, 0.35625, 0.55625, 0.55625, 0.890625, 0.6671875, 0.1921875, 0.334375, 0.334375, 0.390625, 0.584375, 0.278125, 0.334375, 0.278125, 0.303125, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.278125, 0.278125, 0.5859375, 0.584375, 0.5859375, 0.55625, 1.015625, 0.6671875, 0.6671875, 0.7234375, 0.7234375, 0.6671875, 0.6109375, 0.778125, 0.7234375, 0.278125, 0.5, 0.6671875, 0.55625, 0.834375, 0.7234375, 0.778125, 0.6671875, 0.778125, 0.7234375, 0.6671875, 0.6109375, 0.7234375, 0.6671875, 0.9453125, 0.6671875, 0.6671875, 0.6109375, 0.278125, 0.35625, 0.278125, 0.478125, 0.55625, 0.334375, 0.55625, 0.55625, 0.5, 0.55625, 0.55625, 0.278125, 0.55625, 0.55625, 0.2234375, 0.2421875, 0.5, 0.2234375, 0.834375, 0.55625, 0.55625, 0.55625, 0.55625, 0.334375, 0.5, 0.278125, 0.55625, 0.5, 0.7234375, 0.5, 0.5, 0.5, 0.35625, 0.2609375, 0.3546875, 0.590625], avg: 0.5293256578947368 }, Seravek: { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.215625, 0.296875, 0.4171875, 0.6734375, 0.4953125, 0.9125, 0.740625, 0.2421875, 0.3375, 0.3375, 0.409375, 0.60625, 0.2609375, 0.35625, 0.25625, 0.41875, 0.5921875, 0.3515625, 0.475, 0.4875, 0.5375, 0.509375, 0.5484375, 0.4546875, 0.5421875, 0.5484375, 0.25625, 0.2546875, 0.5875, 0.6171875, 0.5875, 0.4578125, 0.8140625, 0.6765625, 0.5703125, 0.6109375, 0.684375, 0.5109375, 0.4953125, 0.678125, 0.6859375, 0.2625, 0.2625, 0.5859375, 0.4734375, 0.846875, 0.709375, 0.740625, 0.509375, 0.740625, 0.584375, 0.5015625, 0.528125, 0.675, 0.5953125, 0.9453125, 0.596875, 0.540625, 0.540625, 0.359375, 0.4203125, 0.359375, 0.5109375, 0.421875, 0.4046875, 0.5015625, 0.5421875, 0.446875, 0.5453125, 0.484375, 0.38125, 0.5140625, 0.5546875, 0.240625, 0.2640625, 0.490625, 0.2765625, 0.8625, 0.5546875, 0.546875, 0.5453125, 0.5453125, 0.3625, 0.41875, 0.3890625, 0.5453125, 0.4703125, 0.7546875, 0.4921875, 0.4609375, 0.453125, 0.4015625, 0.2640625, 0.4015625, 0.58125], avg: 0.5044078947368421 }, serif: { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2484375, 0.334375, 0.409375, 0.5, 0.5, 0.834375, 0.778125, 0.18125, 0.334375, 0.334375, 0.5, 0.5640625, 0.25, 0.334375, 0.25, 0.278125, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.278125, 0.278125, 0.5640625, 0.5640625, 0.5640625, 0.4453125, 0.921875, 0.7234375, 0.6671875, 0.6671875, 0.7234375, 0.6109375, 0.55625, 0.7234375, 0.7234375, 0.334375, 0.390625, 0.7234375, 0.6109375, 0.890625, 0.7234375, 0.7234375, 0.55625, 0.7234375, 0.6671875, 0.55625, 0.6109375, 0.7234375, 0.7234375, 0.9453125, 0.7234375, 0.7234375, 0.6109375, 0.334375, 0.340625, 0.334375, 0.4703125, 0.5, 0.3453125, 0.4453125, 0.5, 0.4453125, 0.5, 0.4453125, 0.3828125, 0.5, 0.5, 0.278125, 0.3359375, 0.5, 0.278125, 0.778125, 0.5, 0.5, 0.5, 0.5, 0.3375, 0.390625, 0.2796875, 0.5, 0.5, 0.7234375, 0.5, 0.5, 0.4453125, 0.48125, 0.2015625, 0.48125, 0.5421875], avg: 0.5126315789473684 }, Tahoma: { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.3109375, 0.3328125, 0.4015625, 0.728125, 0.546875, 0.9765625, 0.70625, 0.2109375, 0.3828125, 0.3828125, 0.546875, 0.728125, 0.303125, 0.3640625, 0.303125, 0.3953125, 0.546875, 0.546875, 0.546875, 0.546875, 0.546875, 0.546875, 0.546875, 0.546875, 0.546875, 0.546875, 0.3546875, 0.3546875, 0.728125, 0.728125, 0.728125, 0.475, 0.909375, 0.6109375, 0.590625, 0.6015625, 0.6796875, 0.5625, 0.521875, 0.66875, 0.6765625, 0.3734375, 0.4171875, 0.6046875, 0.4984375, 0.771875, 0.66875, 0.7078125, 0.5515625, 0.7078125, 0.6375, 0.5578125, 0.5875, 0.65625, 0.60625, 0.903125, 0.58125, 0.5890625, 0.559375, 0.3828125, 0.39375, 0.3828125, 0.728125, 0.5625, 0.546875, 0.525, 0.553125, 0.4625, 0.553125, 0.5265625, 0.3546875, 0.553125, 0.5578125, 0.2296875, 0.328125, 0.51875, 0.2296875, 0.840625, 0.5578125, 0.54375, 0.553125, 0.553125, 0.3609375, 0.446875, 0.3359375, 0.5578125, 0.4984375, 0.7421875, 0.4953125, 0.4984375, 0.4453125, 0.48125, 0.3828125, 0.48125, 0.728125], avg: 0.5384374999999998 }, "Times New Roman": { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2484375, 0.334375, 0.409375, 0.5, 0.5, 0.834375, 0.778125, 0.18125, 0.334375, 0.334375, 0.5, 0.5640625, 0.25, 0.334375, 0.25, 0.28125, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.278125, 0.278125, 0.5640625, 0.5640625, 0.5640625, 0.4453125, 0.921875, 0.7234375, 0.6671875, 0.6671875, 0.7234375, 0.6109375, 0.55625, 0.7234375, 0.7234375, 0.334375, 0.390625, 0.73125, 0.6109375, 0.890625, 0.7375, 0.7234375, 0.55625, 0.7234375, 0.6765625, 0.55625, 0.6109375, 0.7234375, 0.7234375, 0.9453125, 0.7234375, 0.7234375, 0.6109375, 0.334375, 0.28125, 0.334375, 0.4703125, 0.51875, 0.334375, 0.4453125, 0.503125, 0.4453125, 0.503125, 0.4453125, 0.4359375, 0.5, 0.5, 0.278125, 0.35625, 0.50625, 0.278125, 0.778125, 0.5, 0.5, 0.5046875, 0.5, 0.340625, 0.390625, 0.2796875, 0.5, 0.5, 0.7234375, 0.5, 0.5, 0.4453125, 0.48125, 0.2015625, 0.48125, 0.5421875], avg: 0.5134375 }, "Trebuchet MS": { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.3015625, 0.3671875, 0.325, 0.53125, 0.525, 0.6015625, 0.70625, 0.1609375, 0.3671875, 0.3671875, 0.3671875, 0.525, 0.3671875, 0.3671875, 0.3671875, 0.525, 0.525, 0.525, 0.525, 0.525, 0.525, 0.525, 0.525, 0.525, 0.525, 0.525, 0.3671875, 0.3671875, 0.525, 0.525, 0.525, 0.3671875, 0.771875, 0.590625, 0.5671875, 0.5984375, 0.6140625, 0.5359375, 0.525, 0.6765625, 0.6546875, 0.2796875, 0.4765625, 0.5765625, 0.5078125, 0.7109375, 0.6390625, 0.675, 0.5578125, 0.7421875, 0.5828125, 0.48125, 0.58125, 0.6484375, 0.5875, 0.853125, 0.5578125, 0.5703125, 0.5515625, 0.3671875, 0.3578125, 0.3671875, 0.525, 0.53125, 0.525, 0.5265625, 0.5578125, 0.4953125, 0.5578125, 0.546875, 0.375, 0.503125, 0.546875, 0.2859375, 0.3671875, 0.5046875, 0.2953125, 0.83125, 0.546875, 0.5375, 0.5578125, 0.5578125, 0.3890625, 0.40625, 0.396875, 0.546875, 0.490625, 0.7453125, 0.5015625, 0.49375, 0.475, 0.3671875, 0.525, 0.3671875, 0.525], avg: 0.5085197368421052 }, Verdana: { widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.35, 0.39375, 0.459375, 0.81875, 0.6359375, 1.0765625, 0.759375, 0.26875, 0.4546875, 0.4546875, 0.6359375, 0.81875, 0.3640625, 0.4546875, 0.3640625, 0.4703125, 0.6359375, 0.6359375, 0.6359375, 0.6359375, 0.6359375, 0.6359375, 0.6359375, 0.6359375, 0.6359375, 0.6359375, 0.4546875, 0.4546875, 0.81875, 0.81875, 0.81875, 0.546875, 1, 0.684375, 0.6859375, 0.6984375, 0.771875, 0.6328125, 0.575, 0.7765625, 0.7515625, 0.421875, 0.4546875, 0.69375, 0.5578125, 0.84375, 0.7484375, 0.7875, 0.603125, 0.7875, 0.7, 0.684375, 0.6171875, 0.7328125, 0.684375, 0.9890625, 0.6859375, 0.615625, 0.6859375, 0.4546875, 0.46875, 0.4546875, 0.81875, 0.6421875, 0.6359375, 0.6015625, 0.6234375, 0.521875, 0.6234375, 0.596875, 0.384375, 0.6234375, 0.6328125, 0.275, 0.3765625, 0.5921875, 0.275, 0.9734375, 0.6328125, 0.6078125, 0.6234375, 0.6234375, 0.43125, 0.521875, 0.3953125, 0.6328125, 0.5921875, 0.81875, 0.5921875, 0.5921875, 0.5265625, 0.6359375, 0.4546875, 0.6359375, 0.81875], avg: 0.6171875000000003 } //https://developer.mozilla.org/en/docs/Web/CSS/length // Absolute sizes in pixels for obsolete measurement units. }; var absoluteMeasurementUnitsToPixels = { mm: 3.8, sm: 38, pt: 1.33, pc: 16, in: 96, px: 1 }; var relativeMeasurementUnitsCoef = { em: 1, ex: 0.5 }; var coefficients = { heightOverlapCoef: 1.05, // Coefficient for height value to prevent overlap. lineCapitalCoef: 1.15 // Coefficient for height value. Reserve space for capital chars. }; var defaultStyle = { lineHeight: 1, letterSpacing: "0px", fontSize: 0, angle: 0, fontFamily: "" }; var _degreeToRadian = function (angle) { return angle * Math.PI / 180; }; var _getFontData = function (fontFamily) { var possibleFonts = fontFamily.split(",").map(function (f) { return f.replace(/'|"/g, ""); }); var fontMatch = possibleFonts.find(function (f) { return fonts[f]; }) || "Helvetica"; return fonts[fontMatch]; }; var _splitToLines = function (text) { return Array.isArray(text) ? text : text.toString().split(/\r\n|\r|\n/g); }; var _getSizeWithRotate = function (axisSize, dependentSize, angle) { var angleInRadian = _degreeToRadian(angle); return Math.abs(Math.cos(angleInRadian) * axisSize) + Math.abs(Math.sin(angleInRadian) * dependentSize); }; /** * Convert length-type parameters from specific measurement units to pixels * @param {string} length Css length string value. * @param {number} fontSize Current text font-size. * @returns {number} Approximate Css length in pixels. */ var convertLengthToPixels = function (length, fontSize) { var attribute = length.match(/[a-zA-Z%]+/) && length.match(/[a-zA-Z%]+/)[0]; var value = length.match(/[0-9.,]+/); var result; if (!attribute) { result = value || 0; } else if (absoluteMeasurementUnitsToPixels.hasOwnProperty(attribute)) { result = value * absoluteMeasurementUnitsToPixels[attribute]; } else if (relativeMeasurementUnitsCoef.hasOwnProperty(attribute)) { result = (fontSize ? value * fontSize : value * defaultStyle.fontSize) * relativeMeasurementUnitsCoef[attribute]; } else { result = value; } return result; }; var _prepareParams = function (inputStyle, index) { var lineStyle = Array.isArray(inputStyle) ? inputStyle[index] : inputStyle; var style = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, lineStyle, defaultStyle); return lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, style, { fontFamily: style.fontFamily, letterSpacing: typeof style.letterSpacing === "number" ? style.letterSpacing : convertLengthToPixels(String(style.letterSpacing), style.fontSize), fontSize: typeof style.fontSize === "number" ? style.fontSize : convertLengthToPixels(String(style.fontSize)) }); }; var _approximateTextWidthInternal = function (text, style) { if (text === undefined || text === "" || text === null) { return 0; } var widths = _splitToLines(text).map(function (line, index) { var len = line.toString().length; var _prepareParams2 = _prepareParams(style, index), fontSize = _prepareParams2.fontSize, letterSpacing = _prepareParams2.letterSpacing, fontFamily = _prepareParams2.fontFamily; var fontData = _getFontData(fontFamily); var width = line.toString().split("").map(function (c) { return c.charCodeAt(0) < fontData.widths.length ? fontData.widths[c.charCodeAt(0)] : fontData.avg; }).reduce(function (cur, acc) { return acc + cur; }, 0) * fontSize; return width + letterSpacing * Math.max(len - 1, 0); }); return Math.max.apply(Math, _toConsumableArray(widths)); }; var _approximateTextHeightInternal = function (text, style) { if (text === undefined || text === "" || text === null) { return 0; } return _splitToLines(text).reduce(function (total, line, index) { var lineStyle = _prepareParams(style, index); var containsCaps = line.toString().match(/[(A-Z)(0-9)]/); var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize; return total + lineStyle.lineHeight * height; }, 0); }; /** * Predict text size by font params. * @param {string} text Content for width calculation. * @param {Object} style Text styles, ,fontFamily, fontSize, etc. * @param {string} style.fontFamily Text fontFamily. * @param {(number|string)} style.fontSize Text fontSize. * @param {number} style.angle Text rotate angle. * @param {string} style.letterSpacing Text letterSpacing(space between letters). * @param {number} style.lineHeight Line height coefficient. * @returns {number} Approximate text label height. */ var approximateTextSize = function (text, style) { var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle; var height = _approximateTextHeightInternal(text, style); var width = _approximateTextWidthInternal(text, style); var widthWithRotate = angle ? _getSizeWithRotate(width, height, angle) : width; var heightWithRotate = angle ? _getSizeWithRotate(height, width, angle) : height; return { width: widthWithRotate, height: heightWithRotate * coefficients.heightOverlapCoef }; }; /* harmony default export */ __webpack_exports__["default"] = ({ approximateTextSize: approximateTextSize, convertLengthToPixels: convertLengthToPixels }); /***/ }), /***/ "../../victory-core/es/victory-util/timer-context.js": /*!**************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/timer-context.js ***! \**************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _timer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./timer */ "../../victory-core/es/victory-util/timer.js"); /** * The React context object consumers may use to access or override the global * timer. */ var TimerContext = react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext({ transitionTimer: new _timer__WEBPACK_IMPORTED_MODULE_1__["default"](), animationTimer: new _timer__WEBPACK_IMPORTED_MODULE_1__["default"]() }); TimerContext.displayName = "TimerContext"; /* harmony default export */ __webpack_exports__["default"] = (TimerContext); /***/ }), /***/ "../../victory-core/es/victory-util/timer.js": /*!******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/timer.js ***! \******************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Timer; }); /* harmony import */ var d3_timer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-timer */ "../../../node_modules/d3-timer/src/index.js"); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } var Timer = /*#__PURE__*/ function () { function Timer() { _classCallCheck(this, Timer); this.shouldAnimate = true; this.subscribers = []; this.loop = this.loop.bind(this); this.timer = null; this.activeSubscriptions = 0; } _createClass(Timer, [{ key: "bypassAnimation", value: function bypassAnimation() { this.shouldAnimate = false; } }, { key: "resumeAnimation", value: function resumeAnimation() { this.shouldAnimate = true; } }, { key: "loop", value: function loop() { this.subscribers.forEach(function (s) { s.callback(Object(d3_timer__WEBPACK_IMPORTED_MODULE_0__["now"])() - s.startTime, s.duration); }); } }, { key: "start", value: function start() { if (!this.timer) { this.timer = Object(d3_timer__WEBPACK_IMPORTED_MODULE_0__["timer"])(this.loop); } } }, { key: "stop", value: function stop() { if (this.timer) { this.timer.stop(); this.timer = null; } } }, { key: "subscribe", value: function subscribe(callback, duration) { duration = this.shouldAnimate ? duration : 0; var subscriptionID = this.subscribers.push({ startTime: Object(d3_timer__WEBPACK_IMPORTED_MODULE_0__["now"])(), callback: callback, duration: duration }); this.activeSubscriptions++; this.start(); return subscriptionID; } }, { key: "unsubscribe", value: function unsubscribe(id) { if (id !== null && this.subscribers[id - 1]) { delete this.subscribers[id - 1]; this.activeSubscriptions--; } if (this.activeSubscriptions === 0) { this.stop(); } } }]); return Timer; }(); /***/ }), /***/ "../../victory-core/es/victory-util/transitions.js": /*!************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/transitions.js ***! \************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js"); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/identity */ "../../../node_modules/lodash/identity.js"); /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); function getDatumKey(datum, idx) { return (datum.key || idx).toString(); } function getKeyedData(data) { return data.reduce(function (keyedData, datum, idx) { var key = getDatumKey(datum, idx); keyedData[key] = datum; return keyedData; }, {}); } function getKeyedDataDifference(a, b) { var hasDifference = false; var difference = lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(a).reduce(function (_difference, key) { if (!(key in b)) { hasDifference = true; _difference[key] = true; } return _difference; }, {}); return hasDifference && difference; } /** * Calculate which data-points exist in oldData and not nextData - * these are the `exiting` data-points. Also calculate which * data-points exist in nextData and not oldData - these are the * `entering` data-points. * * @param {Array} oldData this.props.data Array * @param {Array} nextData this.props.data Array * * @return {Object} Object with `entering` and `exiting` properties. * entering[datum.key] will be true if the data is * entering, and similarly for `exiting`. */ function getNodeTransitions(oldData, nextData) { var oldDataKeyed = oldData && getKeyedData(oldData); var nextDataKeyed = nextData && getKeyedData(nextData); return { entering: oldDataKeyed && getKeyedDataDifference(nextDataKeyed, oldDataKeyed), exiting: nextDataKeyed && getKeyedDataDifference(oldDataKeyed, nextDataKeyed) }; } function getChildData(child) { if (child.type && child.type.getData) { return child.type.getData(child.props); } return child.props && child.props.data || false; } /** * If a parent component has animation enabled, calculate the transitions * for any data of any child component that supports data transitions * Data transitions are defined as any two datasets where data nodes exist * in the first set and not the second, in the second and not the first, * or both. * * @param {Children} oldChildren this.props.children from old props * @param {Children} nextChildren this.props.children from next props * * @return {Object} Object with the following properties: * - nodesWillExit * - nodesWillEnter * - childrenTransitions * - nodesShouldEnter */ function getInitialTransitionState(oldChildren, nextChildren) { var nodesWillExit = false; var nodesWillEnter = false; var getTransition = function (oldChild, newChild) { if (!newChild || oldChild.type !== newChild.type) { return {}; } var _ref = getNodeTransitions(getChildData(oldChild), getChildData(newChild)) || {}, entering = _ref.entering, exiting = _ref.exiting; nodesWillExit = nodesWillExit || !!exiting; nodesWillEnter = nodesWillEnter || !!entering; return { entering: entering || false, exiting: exiting || false }; }; var getTransitionsFromChildren = function (old, next) { return old.map(function (child, idx) { if (child && child.props && child.props.children && next[idx]) { return getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.toArray(old[idx].props.children), react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.toArray(next[idx].props.children)); } // get Transition entering and exiting nodes return getTransition(child, next[idx]); }); }; var childrenTransitions = getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.toArray(oldChildren), react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.toArray(nextChildren)); return { nodesWillExit: nodesWillExit, nodesWillEnter: nodesWillEnter, childrenTransitions: childrenTransitions, // TODO: This may need to be refactored for the following situation. // The component receives new props, and the data provided // is a perfect match for the previous data and domain except // for new nodes. In this case, we wouldn't want a delay before // the new nodes appear. nodesShouldEnter: false }; } function getInitialChildProps(animate, data) { var after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : lodash_identity__WEBPACK_IMPORTED_MODULE_1___default.a; return { data: data.map(function (datum, idx) { return lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, datum, after(datum, idx, data)); }) }; } // eslint-disable-next-line max-params function getChildBeforeLoad(animate, child, data, cb) { animate = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, animate, { onEnd: cb }); if (animate && animate.onLoad && !animate.onLoad.duration) { return { animate: animate, data: data }; } var before = animate.onLoad && animate.onLoad.before ? animate.onLoad.before : lodash_identity__WEBPACK_IMPORTED_MODULE_1___default.a; // If nodes need to exit, transform them with the provided onLoad.before function. data = data.map(function (datum, idx) { return lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, datum, before(datum, idx, data)); }); return { animate: animate, data: data, clipWidth: 0 }; } // eslint-disable-next-line max-params function getChildOnLoad(animate, data, cb) { animate = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, animate, { onEnd: cb }); if (animate && animate.onLoad && !animate.onLoad.duration) { return { animate: animate, data: data }; } var after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : lodash_identity__WEBPACK_IMPORTED_MODULE_1___default.a; // If nodes need to exit, transform them with the provided onLoad.after function. data = data.map(function (datum, idx) { return lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, datum, after(datum, idx, data)); }); return { animate: animate, data: data }; } // eslint-disable-next-line max-params, max-len function getChildPropsOnExit(animate, child, data, exitingNodes, cb) { // Whether or not _this_ child has exiting nodes, we want the exit- // transition for all children to have the same duration, delay, etc. var onExit = animate && animate.onExit; animate = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, animate, onExit); if (exitingNodes) { // After the exit transition occurs, trigger the animations for // nodes that are neither exiting or entering. animate.onEnd = cb; var before = animate.onExit && animate.onExit.before ? animate.onExit.before : lodash_identity__WEBPACK_IMPORTED_MODULE_1___default.a; // If nodes need to exit, transform them with the provided onExit.before function. data = data.map(function (datum, idx) { var key = (datum.key || idx).toString(); return exitingNodes[key] ? lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, datum, before(datum, idx, data)) : datum; }); } return { animate: animate, data: data }; } // eslint-disable-next-line max-params,max-len function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) { if (enteringNodes) { // Perform a normal animation here, except - when it finishes - trigger // the transition for entering nodes. animate = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, animate, { onEnd: cb }); var before = animate.onEnter && animate.onEnter.before ? animate.onEnter.before : lodash_identity__WEBPACK_IMPORTED_MODULE_1___default.a; // We want the entering nodes to be included in the transition target // domain. However, we may not want these nodes to be displayed initially, // so perform the `onEnter.before` transformation on each node. data = data.map(function (datum, idx) { var key = (datum.key || idx).toString(); return enteringNodes[key] ? lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, datum, before(datum, idx, data)) : datum; }); } return { animate: animate, data: data }; } // eslint-disable-next-line max-params, max-len function getChildPropsOnEnter(animate, data, enteringNodes, cb) { // Whether or not _this_ child has entering nodes, we want the entering- // transition for all children to have the same duration, delay, etc. var onEnter = animate && animate.onEnter; animate = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, animate, onEnter); if (enteringNodes) { // Old nodes have been transitioned to their new values, and the // domain should encompass the nodes that will now enter. So perform // the `onEnter.after` transformation on each node. animate.onEnd = cb; var after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : lodash_identity__WEBPACK_IMPORTED_MODULE_1___default.a; data = data.map(function (datum, idx) { var key = getDatumKey(datum, idx); return enteringNodes[key] ? lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, datum, after(datum, idx, data)) : datum; }); } return { animate: animate, data: data }; } /** * getTransitionPropsFactory - putting the Java in JavaScript. This will return a * function that returns prop transformations for a child, given that child's props * and its index in the parent's children array. * * In particular, this will include an `animate` object that is set appropriately * so that each child will be synchoronized for each stage of a transition * animation. It will also include a transformed `data` object, where each datum * is transformed by `animate.onExit` and `animate.onEnter` `before` and `after` * functions. * * @param {Object} props `this.props` for the parent component. * @param {Object} state `this.state` for the parent component. * @param {Function} setState Function that, when called, will `this.setState` on * the parent component with the provided object. * * @return {Function} Child-prop transformation function. */ function getTransitionPropsFactory(props, state, setState) { var nodesWillExit = state && state.nodesWillExit; var nodesWillEnter = state && state.nodesWillEnter; var nodesShouldEnter = state && state.nodesShouldEnter; var nodesShouldLoad = state && state.nodesShouldLoad; var nodesDoneLoad = state && state.nodesDoneLoad; var childrenTransitions = state && state.childrenTransitions || []; var transitionDurations = { enter: props.animate && props.animate.onEnter && props.animate.onEnter.duration, exit: props.animate && props.animate.onExit && props.animate.onExit.duration, load: props.animate && props.animate.onLoad && props.animate.onLoad.duration, move: props.animate && props.animate.duration }; var onLoad = function (child, data, animate) { if (nodesShouldLoad) { return getChildOnLoad(animate, data, function () { setState({ nodesShouldLoad: false, nodesDoneLoad: true }); }); } return getChildBeforeLoad(animate, child, data, function () { setState({ nodesDoneLoad: true }); }); }; // eslint-disable-next-line max-params var onExit = function (nodes, child, data, animate) { return getChildPropsOnExit(animate, child, data, nodes, function () { setState({ nodesWillExit: false }); }); }; // eslint-disable-next-line max-params var onEnter = function (nodes, child, data, animate) { if (nodesShouldEnter) { return getChildPropsOnEnter(animate, data, nodes, function () { setState({ nodesWillEnter: false }); }); } return getChildPropsBeforeEnter(animate, child, data, nodes, function () { setState({ nodesShouldEnter: true }); }); }; var getChildTransitionDuration = function (child, type) { var animate = child.props.animate; if (!child.type) { return {}; } var defaultTransitions = child.props && child.props.polar ? child.type.defaultPolarTransitions || child.type.defaultTransitions : child.type.defaultTransitions; if (defaultTransitions) { var animationDuration = animate[type] && animate[type].duration; return animationDuration !== undefined ? animationDuration : defaultTransitions[type] && defaultTransitions[type].duration; } else { return {}; } }; // eslint-disable-next-line max-statements, complexity, max-len return function getTransitionProps(child, index) { var data = getChildData(child) || []; var animate = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, props.animate, child.props.animate); var defaultTransitions = child.props.polar ? child.type.defaultPolarTransitions || child.type.defaultTransitions : child.type.defaultTransitions; animate.onExit = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, animate.onExit, defaultTransitions && defaultTransitions.onExit); animate.onEnter = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, animate.onEnter, defaultTransitions && defaultTransitions.onEnter); animate.onLoad = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, animate.onLoad, defaultTransitions && defaultTransitions.onLoad); var childTransitions = childrenTransitions[index] || childrenTransitions[0]; if (!nodesDoneLoad) { // should do onLoad animation var load = transitionDurations.load !== undefined ? transitionDurations.load : getChildTransitionDuration(child, "onLoad"); var animation = { duration: load }; return onLoad(child, data, lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, animate, animation)); } else if (nodesWillExit) { var exitingNodes = childTransitions && childTransitions.exiting; var exit = transitionDurations.exit !== undefined ? transitionDurations.exit : getChildTransitionDuration(child, "onExit"); // if nodesWillExit, but this child has no exiting nodes, set a delay instead of a duration var _animation = exitingNodes ? { duration: exit } : { delay: exit }; return onExit(exitingNodes, child, data, lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, animate, _animation)); } else if (nodesWillEnter) { var enteringNodes = childTransitions && childTransitions.entering; var enter = transitionDurations.enter !== undefined ? transitionDurations.enter : getChildTransitionDuration(child, "onEnter"); var move = transitionDurations.move !== undefined ? transitionDurations.move : child.props.animate && child.props.animate.duration; var _animation2 = { duration: nodesShouldEnter && enteringNodes ? enter : move }; return onEnter(enteringNodes, child, data, lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, animate, _animation2)); } else if (!state && animate && animate.onExit) { // This is the initial render, and nodes may enter when props change. Because // animation interpolation is determined by old- and next- props, data may need // to be augmented with certain properties. // // For example, it may be desired that exiting nodes go from `opacity: 1` to // `opacity: 0`. Without setting this on a per-datum basis, the interpolation // might go from `opacity: undefined` to `opacity: 0`, which would result in // interpolated `opacity: NaN` values. // return getInitialChildProps(animate, data); } return { animate: animate, data: data }; }; } /* harmony default export */ __webpack_exports__["default"] = ({ getInitialTransitionState: getInitialTransitionState, getTransitionPropsFactory: getTransitionPropsFactory }); /***/ }), /***/ "../../victory-core/es/victory-util/wrapper.js": /*!********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/wrapper.js ***! \********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js"); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/values */ "../../../node_modules/lodash/values.js"); /* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_values__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/uniqBy */ "../../../node_modules/lodash/uniqBy.js"); /* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/groupBy */ "../../../node_modules/lodash/groupBy.js"); /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_groupBy__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_some__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/some */ "../../../node_modules/lodash/some.js"); /* harmony import */ var lodash_some__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_some__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/lodash/uniq.js"); /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/flatten */ "../../../node_modules/lodash/flatten.js"); /* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_flatten__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_10__); /* harmony import */ var _axis__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./axis */ "../../victory-core/es/victory-util/axis.js"); /* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./style */ "../../victory-core/es/victory-util/style.js"); /* harmony import */ var _transitions__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./transitions */ "../../victory-core/es/victory-util/transitions.js"); /* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./data */ "../../victory-core/es/victory-util/data.js"); /* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./domain */ "../../victory-core/es/victory-util/domain.js"); /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js"); /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js"); /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js"); /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js"); /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } /* harmony default export */ __webpack_exports__["default"] = ({ getData: function (props, childComponents) { if (props.data) { return _data__WEBPACK_IMPORTED_MODULE_14__["default"].getData(props); } childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_10___default.a.Children.toArray(props.children); return this.getDataFromChildren(childComponents); }, getDefaultDomainPadding: function (props, axis, childComponents) { if (props.polar || axis !== "x") { return undefined; } var groupComponent = childComponents.filter(function (child) { return child.type && child.type.role && child.type.role === "group"; }); if (groupComponent.length < 1) { return undefined; } var _groupComponent$0$pro = groupComponent[0].props, offset = _groupComponent$0$pro.offset, children = _groupComponent$0$pro.children; if (!offset) { return undefined; } var firstChild = Array.isArray(children) && children[0]; var barWidth = firstChild.props.barWidth; var dataLength = firstChild.props.data && firstChild.props.data.length || 1; if (firstChild && firstChild.type.role === "stack") { var nestedChild = firstChild.props.children && firstChild.props.children[0]; barWidth = nestedChild.props.barWidth; dataLength = firstChild.props.children.length; } var width = barWidth || this.getWidth(props, children.length, dataLength); return { x: width * children.length / 2 + (offset - width * ((children.length - 1) / 2)) }; }, getDomain: function (props, axis, childComponents) { childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_10___default.a.Children.toArray(props.children); var propsDomain = _domain__WEBPACK_IMPORTED_MODULE_15__["default"].getDomainFromProps(props, axis); var domainPadding = this.getDefaultDomainPadding(props, axis, childComponents); var domain; if (propsDomain) { domain = propsDomain; } else { var minDomain = _domain__WEBPACK_IMPORTED_MODULE_15__["default"].getMinFromProps(props, axis); var maxDomain = _domain__WEBPACK_IMPORTED_MODULE_15__["default"].getMaxFromProps(props, axis); var dataset = (props.data || props.y) && _data__WEBPACK_IMPORTED_MODULE_14__["default"].getData(props); var dataDomain = dataset ? _domain__WEBPACK_IMPORTED_MODULE_15__["default"].getDomainFromData(props, axis, dataset) : []; var childDomain = this.getDomainFromChildren(props, axis, childComponents); var min = minDomain || _collection__WEBPACK_IMPORTED_MODULE_17__["default"].getMinValue(_toConsumableArray(dataDomain).concat(_toConsumableArray(childDomain))); var max = maxDomain || _collection__WEBPACK_IMPORTED_MODULE_17__["default"].getMaxValue(_toConsumableArray(dataDomain).concat(_toConsumableArray(childDomain))); domain = _domain__WEBPACK_IMPORTED_MODULE_15__["default"].getDomainFromMinMax(min, max); } return _domain__WEBPACK_IMPORTED_MODULE_15__["default"].formatDomain(domain, lodash_assign__WEBPACK_IMPORTED_MODULE_9___default()({ domainPadding: domainPadding }, props), axis); }, getScale: function (props, axis, childComponents) { if (props.data) { return _scale__WEBPACK_IMPORTED_MODULE_19__["default"].getBaseScale(props, axis); } var children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_10___default.a.Children.toArray(props.children); var iteratee = function (child) { var sharedProps = lodash_assign__WEBPACK_IMPORTED_MODULE_9___default()({}, child.props, { horizontal: props.horizontal }); return _scale__WEBPACK_IMPORTED_MODULE_19__["default"].getScaleType(sharedProps, axis); }; var childScale = lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(_helpers__WEBPACK_IMPORTED_MODULE_18__["default"].reduceChildren(children, iteratee, props)); // default to linear scale if more than one uniq scale type is given by children return childScale.length > 1 ? _scale__WEBPACK_IMPORTED_MODULE_19__["default"].getScaleFromName("linear") : _scale__WEBPACK_IMPORTED_MODULE_19__["default"].getScaleFromName(childScale[0]); }, setAnimationState: function (props, nextProps) { if (!props.animate) { return; } if (props.animate.parentState) { var nodesWillExit = props.animate.parentState.nodesWillExit; var oldProps = nodesWillExit ? props : null; this.setState(lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({ oldProps: oldProps, nextProps: nextProps }, props.animate.parentState)); } else { var oldChildren = react__WEBPACK_IMPORTED_MODULE_10___default.a.Children.toArray(props.children); var nextChildren = react__WEBPACK_IMPORTED_MODULE_10___default.a.Children.toArray(nextProps.children); var isContinuous = function (child) { var check = function (c) { return c.type && c.type.continuous; }; return Array.isArray(child) ? lodash_some__WEBPACK_IMPORTED_MODULE_4___default()(child, check) : check(child); }; var continuous = !props.polar && lodash_some__WEBPACK_IMPORTED_MODULE_4___default()(oldChildren, function (child) { return isContinuous(child) || child.props.children && isContinuous(child.props.children); }); var _Transitions$getIniti = _transitions__WEBPACK_IMPORTED_MODULE_13__["default"].getInitialTransitionState(oldChildren, nextChildren), _nodesWillExit = _Transitions$getIniti.nodesWillExit, nodesWillEnter = _Transitions$getIniti.nodesWillEnter, childrenTransitions = _Transitions$getIniti.childrenTransitions, nodesShouldEnter = _Transitions$getIniti.nodesShouldEnter; this.setState({ nodesWillExit: _nodesWillExit, nodesWillEnter: nodesWillEnter, nodesShouldEnter: nodesShouldEnter, childrenTransitions: _collection__WEBPACK_IMPORTED_MODULE_17__["default"].isArrayOfArrays(childrenTransitions) ? childrenTransitions[0] : childrenTransitions, oldProps: _nodesWillExit ? props : null, nextProps: nextProps, continuous: continuous }); } }, getAllEvents: function (props) { var components = ["groupComponent", "containerComponent", "labelComponent"]; this.componentEvents = _events__WEBPACK_IMPORTED_MODULE_16__["default"].getComponentEvents(props, components); var events = props.events; if (Array.isArray(this.componentEvents)) { var _componentEvents; events = Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents; } return events || []; }, getAnimationProps: function (props, child, index) { var _this = this; if (!props.animate) { return child.props.animate; } var getFilteredState = function () { var childrenTransitions = _this.state && _this.state.childrenTransitions; childrenTransitions = _collection__WEBPACK_IMPORTED_MODULE_17__["default"].isArrayOfArrays(childrenTransitions) ? childrenTransitions[index] : childrenTransitions; return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({ childrenTransitions: childrenTransitions }, _this.state); }; var getTransitions = props.animate && props.animate.getTransitions; var state = getFilteredState(); var parentState = props.animate && props.animate.parentState || state; if (!getTransitions) { var getTransitionProps = _transitions__WEBPACK_IMPORTED_MODULE_13__["default"].getTransitionPropsFactory(props, state, function (newState) { return _this.setState(newState); }); getTransitions = function (childComponent) { return getTransitionProps(childComponent, index); }; } return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({ getTransitions: getTransitions, parentState: parentState }, props.animate, child.props.animate); }, getDomainFromChildren: function (props, axis, childComponents) { // eslint-disable-line max-statements, complexity, max-len var children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_10___default.a.Children.toArray(props.children); var parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_14__["default"].getData(props, axis) : undefined; var polar = props.polar, startAngle = props.startAngle, endAngle = props.endAngle, categories = props.categories, minDomain = props.minDomain, maxDomain = props.maxDomain, horizontal = props.horizontal; var baseParentProps = { horizontal: horizontal, polar: polar, startAngle: startAngle, endAngle: endAngle, minDomain: minDomain, maxDomain: maxDomain, categories: categories }; var parentProps = parentData ? lodash_assign__WEBPACK_IMPORTED_MODULE_9___default()(baseParentProps, { data: parentData }) : baseParentProps; var iteratee = function (child) { var sharedProps = lodash_assign__WEBPACK_IMPORTED_MODULE_9___default()({}, child.props, parentProps); if (!_domain__WEBPACK_IMPORTED_MODULE_15__["default"].isDomainComponent(child)) { return null; } else if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(child.type.getDomain)) { return child.props && child.type.getDomain(sharedProps, axis); } else { return _domain__WEBPACK_IMPORTED_MODULE_15__["default"].getDomain(sharedProps, axis); } }; var childDomains = _helpers__WEBPACK_IMPORTED_MODULE_18__["default"].reduceChildren(children, iteratee, props); var min = childDomains.length === 0 ? 0 : _collection__WEBPACK_IMPORTED_MODULE_17__["default"].getMinValue(childDomains); var max = childDomains.length === 0 ? 1 : _collection__WEBPACK_IMPORTED_MODULE_17__["default"].getMaxValue(childDomains); return [min, max]; }, addBinsToParentPropsIfHistogram: function (_ref) { var children = _ref.children, props = _ref.props, childComponents = _ref.childComponents, parentProps = _ref.parentProps; var someChildrenAreHistograms = children.some(function (child) { return child.type && child.type.role === "histogram"; }); var allChildrenAreHistograms = someChildrenAreHistograms && children.length && children.every(function (child) { return child.type && child.type.role === "histogram"; }); if (someChildrenAreHistograms && !allChildrenAreHistograms) { _log__WEBPACK_IMPORTED_MODULE_20__["default"].warn("VictoryHistogram only supports being stacked with other VictoryHistogram components. Check to make sure that you are only passing VictoryHistogram components to VictoryStack"); } // if we are stacking histograms, we need to generate explicit bins // or else each histogram may end up having different bins if (!allChildrenAreHistograms) { return parentProps; } var childBins = props.bins || childComponents[0].props.bins; // if we have explicit bins then we don't need to calculate them if (!Array.isArray(childBins)) { var combinedData = children.reduce(function (memo, child) { var xAccessor = _helpers__WEBPACK_IMPORTED_MODULE_18__["default"].createAccessor(child.props.x || "x"); return memo.concat(child.props.data.map(function (datum) { return { x: xAccessor(datum) }; })); }, []); // use the same function to generate bins as VictoryHistogram but with // the combined data from above, then get explicit bins from that var getFormattedHistogramData = children[0].type.getFormattedData; childBins = getFormattedHistogramData({ data: combinedData, bins: childBins }).reduce(function (memo, _ref2, index) { var x0 = _ref2.x0, x1 = _ref2.x1; return index === 0 ? memo.concat([x0, x1]) : memo.concat(x1); }, []); } return _objectSpread({}, parentProps, { bins: childBins }); }, getDataFromChildren: function (props, childComponents) { var polar = props.polar, startAngle = props.startAngle, endAngle = props.endAngle, categories = props.categories, minDomain = props.minDomain, maxDomain = props.maxDomain; var parentProps = { polar: polar, startAngle: startAngle, endAngle: endAngle, categories: categories, minDomain: minDomain, maxDomain: maxDomain }; var stack = 0; var children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_10___default.a.Children.toArray(props.children); parentProps = this.addBinsToParentPropsIfHistogram({ children: children, props: props, childComponents: childComponents, parentProps: parentProps }); var iteratee = function (child, childName, parent) { var childProps = lodash_assign__WEBPACK_IMPORTED_MODULE_9___default()({}, child.props, parentProps); var childData; if (!_data__WEBPACK_IMPORTED_MODULE_14__["default"].isDataComponent(child)) { return null; } else if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(child.type.getData)) { child = parent ? react__WEBPACK_IMPORTED_MODULE_10___default.a.cloneElement(child, parent.props) : child; childData = child.type.getData(childProps); } else { childData = _data__WEBPACK_IMPORTED_MODULE_14__["default"].getData(childProps); } stack += 1; return childData.map(function (datum, index) { return lodash_assign__WEBPACK_IMPORTED_MODULE_9___default()({ _stack: stack, _group: index }, datum); }); }; var stacked = children.filter(function (c) { return c.type && c.type.role === "stack"; }).length; var combine = function (memo, val) { return memo.concat(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_2___default()(val, "_group")); }; var datasets = _helpers__WEBPACK_IMPORTED_MODULE_18__["default"].reduceChildren(children, iteratee, props, [], combine); var group = stacked ? "_group" : "_stack"; return lodash_values__WEBPACK_IMPORTED_MODULE_1___default()(lodash_groupBy__WEBPACK_IMPORTED_MODULE_3___default()(datasets, group)); }, getColor: function (calculatedProps, child, index) { // check for styles first var style = calculatedProps.style; var colorScale = calculatedProps.colorScale, color = calculatedProps.color; if (style && style.data && style.data.fill) { return style.data.fill; } colorScale = child.props && child.props.colorScale ? child.props.colorScale : colorScale; color = child.props && child.props.color ? child.props.color : color; if (!colorScale && !color) { return undefined; } var colors = Array.isArray(colorScale) ? colorScale : _style__WEBPACK_IMPORTED_MODULE_12__["default"].getColorScale(colorScale); return color || colors[index % colors.length]; }, getWidth: function (props, groupLength, seriesLength) { var datasets = props.datasets, horizontal = props.horizontal; var range = horizontal ? _helpers__WEBPACK_IMPORTED_MODULE_18__["default"].getRange(props, "y") : _helpers__WEBPACK_IMPORTED_MODULE_18__["default"].getRange(props, "x"); var extent = Math.abs(range[1] - range[0]); seriesLength = seriesLength !== undefined ? seriesLength : Array.isArray(datasets[0]) && datasets[0].length || 1; groupLength = groupLength || datasets.length; var bars = groupLength * seriesLength; var barRatio = 0.5; return Math.round(barRatio * extent / bars); }, getStyle: function (theme, style, role) { var defaultStyle = theme && theme[role] && theme[role].style ? theme[role].style : {}; return _helpers__WEBPACK_IMPORTED_MODULE_18__["default"].getStyles(style, defaultStyle); }, getChildStyle: function (child, index, calculatedProps) { var style = calculatedProps.style, role = calculatedProps.role; var childStyle = child.props.style || {}; if (Array.isArray(childStyle)) { return childStyle; } var childRole = child.type && child.type.role; var defaultFill = childRole === "stack" ? undefined : this.getColor(calculatedProps, child, index); var defaultColor = childRole === "line" ? { fill: "none", stroke: defaultFill } : { fill: defaultFill }; var dataWidth = role === "stack" ? {} : { width: this.getWidth(calculatedProps) }; var dataStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, childStyle.data, lodash_assign__WEBPACK_IMPORTED_MODULE_9___default()({}, dataWidth, style.data, defaultColor)); var labelsStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, childStyle.labels, style.labels); return { parent: style.parent, data: dataStyle, labels: labelsStyle }; }, getStringsFromCategories: function (childComponents, axis) { var iteratee = function (child) { var childProps = child.props || {}; if (!_domain__WEBPACK_IMPORTED_MODULE_15__["default"].isDomainComponent(child) || !childProps.categories) { return null; } else { var categories = childProps.categories && !Array.isArray(childProps.categories) ? childProps.categories[axis] : childProps.props.categories; var categoryStrings = categories && categories.filter(function (val) { return typeof val === "string"; }); return categoryStrings ? _collection__WEBPACK_IMPORTED_MODULE_17__["default"].removeUndefined(categoryStrings) : []; } }; return _helpers__WEBPACK_IMPORTED_MODULE_18__["default"].reduceChildren(childComponents.slice(0), iteratee); }, getStringsFromData: function (childComponents) { var iteratee = function (child) { var childProps = child.props || {}; var data; if (!_data__WEBPACK_IMPORTED_MODULE_14__["default"].isDataComponent(child)) { return null; } else if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(child.type.getData)) { data = child.type.getData(childProps); } else { data = _data__WEBPACK_IMPORTED_MODULE_14__["default"].getData(childProps); } return data.map(function (d) { return { x: d.xName, y: d.yName }; }); }; var initialMemo = { x: [], y: [] }; var combine = function (memo, datum) { var x = Array.isArray(datum) ? datum.map(function (d) { return d.x; }).filter(Boolean) : datum.x; var y = Array.isArray(datum) ? datum.map(function (d) { return d.y; }).filter(Boolean) : datum.y; return { x: x !== undefined ? memo.x.concat(x) : memo.x, y: y !== undefined ? memo.y.concat(y) : memo.y }; }; return _helpers__WEBPACK_IMPORTED_MODULE_18__["default"].reduceChildren(childComponents.slice(0), iteratee, {}, initialMemo, combine); }, getCategoryAndAxisStringsFromChildren: function (props, axis, childComponents) { var categories = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(props.categories) ? props.categories[axis] : props.categories; var axisComponent = _axis__WEBPACK_IMPORTED_MODULE_11__["default"].getAxisComponent(childComponents, axis); var axisStrings = axisComponent ? _data__WEBPACK_IMPORTED_MODULE_14__["default"].getStringsFromAxes(axisComponent.props, axis) : []; var categoryStrings = categories || this.getStringsFromCategories(childComponents, axis); return lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(_toConsumableArray(categoryStrings).concat(_toConsumableArray(axisStrings)))); }, getStringsFromChildren: function (props, childComponents) { childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_10___default.a.Children.toArray(props.children); var xStrings = this.getCategoryAndAxisStringsFromChildren(props, "x", childComponents); var yStrings = this.getCategoryAndAxisStringsFromChildren(props, "y", childComponents); var dataStrings = this.getStringsFromData(childComponents); return { x: lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(_toConsumableArray(xStrings).concat(_toConsumableArray(dataStrings.x)))), y: lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(_toConsumableArray(yStrings).concat(_toConsumableArray(dataStrings.y)))) }; }, getCategories: function (props, childComponents, allStrings) { var xPropCategories = props.categories && !Array.isArray(props.categories) ? props.categories.x : props.categories; var yPropCategories = props.categories && !Array.isArray(props.categories) ? props.categories.y : props.categories; var fallbackRequired = !xPropCategories || !yPropCategories; var fallbackProps = fallbackRequired ? allStrings || this.getStringsFromChildren(props, childComponents) : {}; var xCategories = xPropCategories || fallbackProps.x; var yCategories = yPropCategories || fallbackProps.y; return { x: xCategories.length > 0 ? xCategories : undefined, y: yCategories.length > 0 ? yCategories : undefined }; } }); /***/ }), /***/ "../../victory-create-container/es/create-container.js": /*!****************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-create-container/es/create-container.js ***! \****************************************************************************************************/ /*! exports provided: createContainer, makeCreateContainerFunction, combineContainerMixins */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createContainer", function() { return createContainer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeCreateContainerFunction", function() { return makeCreateContainerFunction; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "combineContainerMixins", function() { return combineContainerMixins; }); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js"); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js"); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_flow__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/flow */ "../../../node_modules/lodash/flow.js"); /* harmony import */ var lodash_flow__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_flow__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/includes */ "../../../node_modules/lodash/includes.js"); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var lodash_forOwn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/forOwn */ "../../../node_modules/lodash/forOwn.js"); /* harmony import */ var lodash_forOwn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_forOwn__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/groupBy */ "../../../node_modules/lodash/groupBy.js"); /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_groupBy__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var lodash_toPairs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/toPairs */ "../../../node_modules/lodash/toPairs.js"); /* harmony import */ var lodash_toPairs__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_toPairs__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var victory_voronoi_container__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-voronoi-container */ "../../victory-voronoi-container/es/index.js"); /* harmony import */ var victory_zoom_container__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-zoom-container */ "../../victory-zoom-container/es/index.js"); /* harmony import */ var victory_selection_container__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-selection-container */ "../../victory-selection-container/es/index.js"); /* harmony import */ var victory_brush_container__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! victory-brush-container */ "../../victory-brush-container/es/index.js"); /* harmony import */ var victory_cursor_container__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-cursor-container */ "../../victory-cursor-container/es/index.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } var ensureArray = function (thing) { if (!thing) { return []; } else if (!Array.isArray(thing)) { return [thing]; } else { return thing; } }; var combineEventHandlers = function (eventHandlersArray) { // takes an array of event handler objects and produces one eventHandlers object // creates a custom combinedHandler() for events with multiple conflicting handlers return eventHandlersArray.reduce(function (localHandlers, finalHandlers) { lodash_forOwn__WEBPACK_IMPORTED_MODULE_5___default()(localHandlers, function (localHandler, eventName) { var existingHandler = finalHandlers[eventName]; if (existingHandler) { // create new handler for event that concats the existing handler's mutations with new ones finalHandlers[eventName] = function combinedHandler() { // named for debug clarity // sometimes handlers return undefined; use empty array instead, for concat() var existingMutations = ensureArray(existingHandler.apply(void 0, arguments)); var localMutations = ensureArray(localHandler.apply(void 0, arguments)); return existingMutations.concat(localMutations); }; } else { finalHandlers[eventName] = localHandler; } }); return finalHandlers; }); }; var combineDefaultEvents = function (defaultEvents) { // takes a defaultEvents array and returns one equal or lesser length, // by combining any events that have the same target var eventsByTarget = lodash_groupBy__WEBPACK_IMPORTED_MODULE_6___default()(defaultEvents, "target"); var events = lodash_toPairs__WEBPACK_IMPORTED_MODULE_7___default()(eventsByTarget).map(function (_ref) { var _ref2 = _slicedToArray(_ref, 2), target = _ref2[0], eventsArray = _ref2[1]; eventsArray = eventsArray.filter(Boolean); return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(eventsArray) ? null : { target: target, eventHandlers: combineEventHandlers(eventsArray.map(function (event) { return event.eventHandlers; })) // note: does not currently handle eventKey or childName }; }); return events.filter(Boolean); }; var combineContainerMixins = function (mixins, Container) { var _class, _temp; // similar to Object.assign(A, B), this function will decide conflicts in favor mixinB. // this applies to propTypes and defaultProps. // getChildren will call A's getChildren() and pass the resulting children to B's. // defaultEvents attempts to resolve any conflicts between A and B's defaultEvents. var Classes = mixins.map(function (mixin) { return mixin(Container); }); var instances = Classes.map(function (Class) { return new Class(); }); var NaiveCombinedContainer = lodash_flow__WEBPACK_IMPORTED_MODULE_3___default()(mixins)(Container); var displayType = Classes.map(function (Class) { var match = Class.displayName.match(/Victory(.*)Container/); return match[1] || ""; }).join(""); return _temp = _class = /*#__PURE__*/ function (_NaiveCombinedContain) { _inherits(VictoryCombinedContainer, _NaiveCombinedContain); function VictoryCombinedContainer() { _classCallCheck(this, VictoryCombinedContainer); return _possibleConstructorReturn(this, (VictoryCombinedContainer.__proto__ || Object.getPrototypeOf(VictoryCombinedContainer)).apply(this, arguments)); } _createClass(VictoryCombinedContainer, [{ key: "getChildren", value: function getChildren(props) { return instances.reduce(function (children, instance) { return instance.getChildren(_objectSpread({}, props, { children: children })); }, props.children); } }]); return VictoryCombinedContainer; }(NaiveCombinedContainer), Object.defineProperty(_class, "displayName", { configurable: true, enumerable: true, writable: true, value: "Victory".concat(displayType, "Container") }), Object.defineProperty(_class, "propTypes", { configurable: true, enumerable: true, writable: true, value: Classes.reduce(function (propTypes, Class) { return _objectSpread({}, propTypes, Class.propTypes); }, {}) }), Object.defineProperty(_class, "defaultProps", { configurable: true, enumerable: true, writable: true, value: Classes.reduce(function (defaultProps, Class) { return _objectSpread({}, defaultProps, Class.defaultProps); }, {}) }), Object.defineProperty(_class, "defaultEvents", { configurable: true, enumerable: true, writable: true, value: function (props) { return combineDefaultEvents(Classes.reduce(function (defaultEvents, Class) { var events = lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(Class.defaultEvents) ? Class.defaultEvents(props) : Class.defaultEvents; return _toConsumableArray(defaultEvents).concat(_toConsumableArray(events)); }, [])); } }), _temp; }; var checkBehaviorName = function (behavior, behaviors) { if (behavior && !lodash_includes__WEBPACK_IMPORTED_MODULE_4___default()(behaviors, behavior)) { victory_core__WEBPACK_IMPORTED_MODULE_8__["Log"].warn("\"".concat(behavior, "\" is not a valid behavior. Choose from [").concat(behaviors.join(", "), "].")); } }; var makeCreateContainerFunction = function (mixinMap, Container) { return function (behaviorA, behaviorB) { // eslint-disable-line var behaviors = lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(mixinMap); checkBehaviorName(behaviorA, behaviors); checkBehaviorName(behaviorB, behaviors); if (arguments.length <= 2 ? 0 : arguments.length - 2) { victory_core__WEBPACK_IMPORTED_MODULE_8__["Log"].warn("too many arguments given to createContainer (maximum accepted: 2)."); } var firstMixins = mixinMap[behaviorA]; var secondMixins = mixinMap[behaviorB] || []; if (!firstMixins) { return Container; } return combineContainerMixins(_toConsumableArray(firstMixins).concat(_toConsumableArray(secondMixins)), Container); }; }; var createContainer = makeCreateContainerFunction({ zoom: [victory_zoom_container__WEBPACK_IMPORTED_MODULE_10__["zoomContainerMixin"]], voronoi: [victory_voronoi_container__WEBPACK_IMPORTED_MODULE_9__["voronoiContainerMixin"]], selection: [victory_selection_container__WEBPACK_IMPORTED_MODULE_11__["selectionContainerMixin"]], cursor: [victory_cursor_container__WEBPACK_IMPORTED_MODULE_13__["cursorContainerMixin"]], brush: [victory_brush_container__WEBPACK_IMPORTED_MODULE_12__["brushContainerMixin"]] }, victory_core__WEBPACK_IMPORTED_MODULE_8__["VictoryContainer"]); /***/ }), /***/ "../../victory-create-container/es/index.js": /*!*****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-create-container/es/index.js ***! \*****************************************************************************************/ /*! exports provided: combineContainerMixins, makeCreateContainerFunction, createContainer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _create_container__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./create-container */ "../../victory-create-container/es/create-container.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "combineContainerMixins", function() { return _create_container__WEBPACK_IMPORTED_MODULE_0__["combineContainerMixins"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeCreateContainerFunction", function() { return _create_container__WEBPACK_IMPORTED_MODULE_0__["makeCreateContainerFunction"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createContainer", function() { return _create_container__WEBPACK_IMPORTED_MODULE_0__["createContainer"]; }); /***/ }), /***/ "../../victory-cursor-container/es/cursor-helpers.js": /*!**************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-cursor-container/es/cursor-helpers.js ***! \**************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_mapValues__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/mapValues */ "../../../node_modules/lodash/mapValues.js"); /* harmony import */ var lodash_mapValues__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_mapValues__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/throttle */ "../../../node_modules/lodash/throttle.js"); /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } var ON_MOUSE_MOVE_THROTTLE_MS = 16; var CursorHelpers = { getDimension: function (props) { var horizontal = props.horizontal, cursorDimension = props.cursorDimension; if (!horizontal || !cursorDimension) { return cursorDimension; } return cursorDimension === "x" ? "y" : "x"; }, withinBounds: function (point, bounds) { var _mapValues2 = lodash_mapValues__WEBPACK_IMPORTED_MODULE_0___default()(bounds, Number), x1 = _mapValues2.x1, x2 = _mapValues2.x2, y1 = _mapValues2.y1, y2 = _mapValues2.y2; var _mapValues3 = lodash_mapValues__WEBPACK_IMPORTED_MODULE_0___default()(point, Number), x = _mapValues3.x, y = _mapValues3.y; return x >= Math.min(x1, x2) && x <= Math.max(x1, x2) && y >= Math.min(y1, y2) && y <= Math.max(y1, y2); }, onMouseMove: function (evt, targetProps) { var onCursorChange = targetProps.onCursorChange, domain = targetProps.domain; var cursorDimension = this.getDimension(targetProps); var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_3__["Selection"].getParentSVG(evt); var cursorSVGPosition = victory_core__WEBPACK_IMPORTED_MODULE_3__["Selection"].getSVGEventCoordinates(evt, parentSVG); var cursorValue = victory_core__WEBPACK_IMPORTED_MODULE_3__["Selection"].getDataCoordinates(targetProps, targetProps.scale, cursorSVGPosition.x, cursorSVGPosition.y); var inBounds = this.withinBounds(cursorValue, { x1: domain.x[0], x2: domain.x[1], y1: domain.y[0], y2: domain.y[1] }); if (!inBounds) { cursorValue = null; } if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(onCursorChange)) { if (inBounds) { var value = cursorDimension ? cursorValue[cursorDimension] : cursorValue; onCursorChange(value, targetProps); } else if (cursorValue !== targetProps.cursorValue) { onCursorChange(targetProps.defaultCursorValue || null, targetProps); } } return [{ target: "parent", eventKey: "parent", mutation: function () { return { cursorValue: cursorValue, parentSVG: parentSVG }; } }]; }, onTouchEnd: function (evt, targetProps) { var onCursorChange = targetProps.onCursorChange; if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(targetProps.onCursorChange)) { onCursorChange(null, targetProps); } return [{ target: "parent", eventKey: "parent", mutation: function () { return { cursorValue: null }; } }]; } }; /* harmony default export */ __webpack_exports__["default"] = (_objectSpread({}, CursorHelpers, { onMouseMove: lodash_throttle__WEBPACK_IMPORTED_MODULE_2___default()(CursorHelpers.onMouseMove.bind(CursorHelpers), ON_MOUSE_MOVE_THROTTLE_MS, { leading: true, trailing: false }), onMouseLeave: CursorHelpers.onMouseMove.bind(CursorHelpers), onTouchEnd: CursorHelpers.onTouchEnd.bind(CursorHelpers) })); /***/ }), /***/ "../../victory-cursor-container/es/index.js": /*!*****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-cursor-container/es/index.js ***! \*****************************************************************************************/ /*! exports provided: cursorContainerMixin, VictoryCursorContainer, CursorHelpers */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_cursor_container__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-cursor-container */ "../../victory-cursor-container/es/victory-cursor-container.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cursorContainerMixin", function() { return _victory_cursor_container__WEBPACK_IMPORTED_MODULE_0__["cursorContainerMixin"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryCursorContainer", function() { return _victory_cursor_container__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _cursor_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cursor-helpers */ "../../victory-cursor-container/es/cursor-helpers.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CursorHelpers", function() { return _cursor_helpers__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /***/ }), /***/ "../../victory-cursor-container/es/victory-cursor-container.js": /*!************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-cursor-container/es/victory-cursor-container.js ***! \************************************************************************************************************/ /*! exports provided: cursorContainerMixin, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cursorContainerMixin", function() { return cursorContainerMixin; }); /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/lodash/isObject.js"); /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var _cursor_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cursor-helpers */ "../../victory-cursor-container/es/cursor-helpers.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } 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; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var cursorContainerMixin = function (base) { var _class, _temp; return _temp = _class = /*#__PURE__*/ function (_base) { _inherits(VictoryCursorContainer, _base); function VictoryCursorContainer() { _classCallCheck(this, VictoryCursorContainer); return _possibleConstructorReturn(this, (VictoryCursorContainer.__proto__ || Object.getPrototypeOf(VictoryCursorContainer)).apply(this, arguments)); } _createClass(VictoryCursorContainer, [{ key: "getCursorPosition", value: function getCursorPosition(props) { var cursorValue = props.cursorValue, defaultCursorValue = props.defaultCursorValue, domain = props.domain, cursorDimension = props.cursorDimension; if (cursorValue) { return cursorValue; } if (typeof defaultCursorValue === "number") { return _defineProperty({ x: (domain.x[0] + domain.x[1]) / 2, y: (domain.y[0] + domain.y[1]) / 2 }, cursorDimension, defaultCursorValue); } return defaultCursorValue; } }, { key: "getCursorLabelOffset", value: function getCursorLabelOffset(props) { var cursorLabelOffset = props.cursorLabelOffset; if (typeof cursorLabelOffset === "number") { return { x: cursorLabelOffset, y: cursorLabelOffset }; } return cursorLabelOffset; } }, { key: "getPadding", value: function getPadding(props) { if (props.padding === undefined) { var child = props.children.find(function (c) { return lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(c.props) && c.props.padding !== undefined; }); return victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].getPadding(child.props); } else { return victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].getPadding(props); } } }, { key: "getCursorElements", value: function getCursorElements(props) { // eslint-disable-line max-statements var scale = props.scale, cursorLabelComponent = props.cursorLabelComponent, cursorLabel = props.cursorLabel, cursorComponent = props.cursorComponent, width = props.width, height = props.height, name = props.name, horizontal = props.horizontal, theme = props.theme; var cursorDimension = _cursor_helpers__WEBPACK_IMPORTED_MODULE_6__["default"].getDimension(props); var cursorValue = this.getCursorPosition(props); var cursorLabelOffset = this.getCursorLabelOffset(props); if (!cursorValue) { return []; } var newElements = []; var padding = this.getPadding(props); var cursorCoordinates = { x: horizontal ? scale.y(cursorValue.y) : scale.x(cursorValue.x), y: horizontal ? scale.x(cursorValue.x) : scale.y(cursorValue.y) }; if (cursorLabel) { var labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({ active: true }, cursorLabelComponent.props, { x: cursorCoordinates.x + cursorLabelOffset.x, y: cursorCoordinates.y + cursorLabelOffset.y, datum: cursorValue, active: true, key: "".concat(name, "-cursor-label") }); if (victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].isTooltip(cursorLabelComponent)) { var tooltipTheme = theme && theme.tooltip || {}; labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labelProps, tooltipTheme); } newElements.push(react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(cursorLabelComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labelProps, { text: victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(cursorLabel, labelProps) }))); } var cursorStyle = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({ stroke: "black" }, cursorComponent.props.style); if (cursorDimension === "x" || cursorDimension === undefined) { newElements.push(react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(cursorComponent, { key: "".concat(name, "-x-cursor"), x1: cursorCoordinates.x, x2: cursorCoordinates.x, y1: padding.top, y2: height - padding.bottom, style: cursorStyle })); } if (cursorDimension === "y" || cursorDimension === undefined) { newElements.push(react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(cursorComponent, { key: "".concat(name, "-y-cursor"), x1: padding.left, x2: width - padding.right, y1: cursorCoordinates.y, y2: cursorCoordinates.y, style: cursorStyle })); } return newElements; } // Overrides method in VictoryContainer }, { key: "getChildren", value: function getChildren(props) { return _toConsumableArray(react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.toArray(props.children)).concat(_toConsumableArray(this.getCursorElements(props))); } }]); return VictoryCursorContainer; }(base), Object.defineProperty(_class, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryCursorContainer" }), Object.defineProperty(_class, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__["VictoryContainer"].propTypes, { cursorDimension: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(["x", "y"]), cursorLabel: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, cursorLabelComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, cursorLabelOffset: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, y: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number })]), defaultCursorValue: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, y: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number })]), disable: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, onCursorChange: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func }) }), Object.defineProperty(_class, "defaultProps", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__["VictoryContainer"].defaultProps, { cursorLabelComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__["VictoryLabel"], null), cursorLabelOffset: { x: 5, y: -10 }, cursorComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__["LineSegment"], null) }) }), Object.defineProperty(_class, "defaultEvents", { configurable: true, enumerable: true, writable: true, value: function (props) { return [{ target: "parent", eventHandlers: { onMouseLeave: function (evt, targetProps) { return props.disable ? {} : _cursor_helpers__WEBPACK_IMPORTED_MODULE_6__["default"].onMouseLeave(evt, targetProps); }, onTouchCancel: function () { return []; }, onMouseMove: function (evt, targetProps) { return props.disable ? {} : _cursor_helpers__WEBPACK_IMPORTED_MODULE_6__["default"].onMouseMove(evt, targetProps); }, onTouchMove: function (evt, targetProps) { return props.disable ? {} : _cursor_helpers__WEBPACK_IMPORTED_MODULE_6__["default"].onMouseMove(evt, targetProps); } } }]; } }), _temp; }; /* harmony default export */ __webpack_exports__["default"] = (cursorContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_5__["VictoryContainer"])); /***/ }), /***/ "../../victory-errorbar/es/error-bar.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-errorbar/es/error-bar.js ***! \*************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } /* eslint-disable max-statements */ var renderBorder = function (props, error, type) { var vertical = type === "right" || type === "left"; return react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(props.lineComponent, _objectSpread({}, props.events, { role: props.role, shapeRendering: props.shapeRendering, className: props.className, style: props.style, transform: props.transform, key: "".concat(props.id, "-border-").concat(type), x1: vertical ? error[type] : props.x - props.borderWidth, x2: vertical ? error[type] : props.x + props.borderWidth, y1: vertical ? props.y - props.borderWidth : error[type], y2: vertical ? props.y + props.borderWidth : error[type] })); }; var renderCross = function (props, error, type) { var vertical = type === "top" || type === "bottom"; return react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(props.lineComponent, _objectSpread({}, props.events, { role: props.role, shapeRendering: props.shapeRendering, className: props.className, style: props.style, transform: props.transform, key: "".concat(props.id, "-cross-").concat(type), x1: props.x, x2: vertical ? props.x : error[type], y1: props.y, y2: vertical ? error[type] : props.y })); }; var calculateError = function (props) { var errorX = props.errorX, errorY = props.errorY; var settings = { right: { error: errorX, errorIndex: 0 }, left: { error: errorX, errorIndex: 1 }, top: { error: errorY, errorIndex: 1 }, bottom: { error: errorY, errorIndex: 0 } }; var getError = function (direction) { var _settings$direction = settings[direction], error = _settings$direction.error, errorIndex = _settings$direction.errorIndex; return error ? error[errorIndex] : undefined; }; var result = ["right", "left", "top", "bottom"].reduce(function (memo, dir) { memo[dir] = getError(dir); return memo; }, {}); return result; }; var evaluateProps = function (props) { /** * Potential evaluated props are: * `ariaLabel` * `id` * `style` * `tabIndex` */ var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].evaluateProp(props.ariaLabel, props); var id = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].evaluateProp(props.id, props); var style = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ stroke: "black" }, props.style), props); var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].evaluateProp(props.tabIndex, props); return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { ariaLabel: ariaLabel, id: id, style: style, tabIndex: tabIndex }); }; var ErrorBar = function (props) { props = evaluateProps(props); var _props = props, ariaLabel = _props.ariaLabel, tabIndex = _props.tabIndex; var error = calculateError(props); var children = [error.right ? renderBorder(props, error, "right") : null, error.left ? renderBorder(props, error, "left") : null, error.bottom ? renderBorder(props, error, "bottom") : null, error.top ? renderBorder(props, error, "top") : null, error.right ? renderCross(props, error, "right") : null, error.left ? renderCross(props, error, "left") : null, error.bottom ? renderCross(props, error, "bottom") : null, error.top ? renderCross(props, error, "top") : null].filter(Boolean); return react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(props.groupComponent, { "aria-label": ariaLabel, tabIndex: tabIndex }, children); }; ErrorBar.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_3__["CommonProps"].primitiveProps, { borderWidth: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, datum: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, errorX: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool]), errorY: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool]), groupComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, lineComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, x: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, y: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number }); ErrorBar.defaultProps = { groupComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("g", null), lineComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__["Line"], null), role: "presentation", shapeRendering: "auto" }; /* harmony default export */ __webpack_exports__["default"] = (ErrorBar); /***/ }), /***/ "../../victory-errorbar/es/helper-methods.js": /*!******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-errorbar/es/helper-methods.js ***! \******************************************************************************************/ /*! exports provided: getBaseProps, getDomain, getData */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBaseProps", function() { return getBaseProps; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDomain", function() { return getDomain; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getData", function() { return getData; }); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); var getErrors = function (props, datum, axis) { /** * check if it is asymmetric error or symmetric error, asymmetric error should be an array * and the first value is the positive error, the second is the negative error * @param {Boolean} isArray(errorX) * @return {String or Array} */ var errorNames = { x: "_errorX", y: "_errorY" }; var errors = datum[errorNames[axis]]; if (errors === 0) { return false; } var scale = props.scale[axis]; return Array.isArray(errors) ? [errors[0] === 0 ? false : scale(errors[0] + datum["_".concat(axis)]), errors[1] === 0 ? false : scale(datum["_".concat(axis)] - errors[1])] : [scale(errors + datum["_".concat(axis)]), scale(datum["_".concat(axis)] - errors)]; }; var getData = function (props) { var accessorTypes = ["x", "y", "errorX", "errorY"]; if (props.data) { return victory_core__WEBPACK_IMPORTED_MODULE_3__["Data"].formatData(props.data, props, accessorTypes); } else { var generatedData = props.errorX || props.errorY ? victory_core__WEBPACK_IMPORTED_MODULE_3__["Data"].generateData(props) : []; return victory_core__WEBPACK_IMPORTED_MODULE_3__["Data"].formatData(generatedData, props, accessorTypes); } }; var getDomainFromData = function (props, axis) { var minDomain = victory_core__WEBPACK_IMPORTED_MODULE_3__["Domain"].getMinFromProps(props, axis); var maxDomain = victory_core__WEBPACK_IMPORTED_MODULE_3__["Domain"].getMaxFromProps(props, axis); var dataset = getData(props); if (dataset.length < 1) { return minDomain !== undefined && maxDomain !== undefined ? victory_core__WEBPACK_IMPORTED_MODULE_3__["Domain"].getDomainFromMinMax(minDomain, maxDomain) : undefined; } var error = axis === "x" ? "_errorX" : "_errorY"; var reduceErrorData = function (type) { var baseCondition = type === "min" ? Infinity : -Infinity; var errorIndex = type === "min" ? 1 : 0; var sign = type === "min" ? -1 : 1; return dataset.reduce(function (memo, datum) { var currentError = Array.isArray(datum[error]) ? datum[error][errorIndex] : datum[error]; var current = datum["_".concat(axis)] + sign * (currentError || 0); return memo < current && type === "min" || memo > current && type === "max" ? memo : current; }, baseCondition); }; var min = minDomain !== undefined ? minDomain : reduceErrorData("min"); var max = maxDomain !== undefined ? maxDomain : reduceErrorData("max"); return victory_core__WEBPACK_IMPORTED_MODULE_3__["Domain"].getDomainFromMinMax(min, max); }; var getDomain = function (props, axis) { return victory_core__WEBPACK_IMPORTED_MODULE_3__["Domain"].createDomainFunction(getDomainFromData)(props, axis); }; // This method will edit or remove errorbar data points that fall outside of the desired domain var formatDataFromDomain = function (datum, domain) { var minDomainX = victory_core__WEBPACK_IMPORTED_MODULE_3__["Collection"].getMinValue(domain.x); var maxDomainX = victory_core__WEBPACK_IMPORTED_MODULE_3__["Collection"].getMaxValue(domain.x); var minDomainY = victory_core__WEBPACK_IMPORTED_MODULE_3__["Collection"].getMinValue(domain.y); var maxDomainY = victory_core__WEBPACK_IMPORTED_MODULE_3__["Collection"].getMaxValue(domain.y); var _x = datum._x, _y = datum._y; // if either x or y center point is outside of the domain, null the entire data point if (_x < minDomainX || _x > maxDomainX || _y < minDomainY || _y > maxDomainY) _x = _y = null; return Object.assign({}, datum, { _x: _x, _y: _y }); }; var getCalculatedValues = function (props) { var defaultStyles = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getDefaultStyles(props, "errorbar"); var style = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getStyles(props.style, defaultStyles) || {}; var data = getData(props); var range = { x: victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getRange(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getRange(props, "y") }; var domain = { x: getDomain(props, "x"), y: getDomain(props, "y") }; var scale = { x: victory_core__WEBPACK_IMPORTED_MODULE_3__["Scale"].getBaseScale(props, "x").domain(domain.x).range(props.horizontal ? range.y : range.x), y: victory_core__WEBPACK_IMPORTED_MODULE_3__["Scale"].getBaseScale(props, "y").domain(domain.y).range(props.horizontal ? range.x : range.y) }; var origin = props.polar ? props.origin || victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getPolarOrigin(props) : undefined; return { domain: domain, data: data, scale: scale, style: style, origin: origin }; }; var getLabelProps = function (dataProps, text, style) { var x = dataProps.x, y = dataProps.y, index = dataProps.index, scale = dataProps.scale, errorY = dataProps.errorY, errorX = dataProps.errorX, horizontal = dataProps.horizontal, labelComponent = dataProps.labelComponent, theme = dataProps.theme; var getError = function () { var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "x"; var baseError = type === "y" ? errorY : errorX; var error = baseError && Array.isArray(baseError) ? baseError[0] : baseError; return error || dataProps[type]; }; var labelStyle = style.labels || {}; var padding = labelStyle.padding || 0; var textAnchor = horizontal ? "start" : "middle"; var verticalAnchor = horizontal ? "middle" : "end"; var labelProps = { style: labelStyle, y: horizontal ? y : getError("y"), x: horizontal ? getError("x") : x, dy: horizontal ? 0 : -padding, dx: horizontal ? padding : 0, text: text, index: index, scale: scale, datum: dataProps.datum, data: dataProps.data, textAnchor: labelStyle.textAnchor || textAnchor, verticalAnchor: labelStyle.verticalAnchor || verticalAnchor, angle: labelStyle.angle, horizontal: horizontal }; if (!victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].isTooltip(labelComponent)) { return labelProps; } var tooltipTheme = theme && theme.tooltip || {}; return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labelProps, victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].omit(tooltipTheme, ["style"])); }; var getBaseProps = function (props, fallbackProps) { var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].modifyProps(props, fallbackProps, "errorbar"); props = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, modifiedProps, getCalculatedValues(modifiedProps)); var _props = props, borderWidth = _props.borderWidth, data = _props.data, domain = _props.domain, events = _props.events, groupComponent = _props.groupComponent, height = _props.height, horizontal = _props.horizontal, labels = _props.labels, name = _props.name, origin = _props.origin, padding = _props.padding, polar = _props.polar, scale = _props.scale, sharedEvents = _props.sharedEvents, standalone = _props.standalone, style = _props.style, theme = _props.theme, width = _props.width; var initialChildProps = { parent: { data: data, domain: domain, height: height, horizontal: horizontal, name: name, origin: origin, padding: padding, polar: polar, scale: scale, standalone: standalone, style: style.parent, theme: theme, width: width } }; return data.reduce(function (childProps, datum, index) { var eventKey = !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum.eventKey) ? datum.eventKey : index; var _Helpers$scalePoint = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].scalePoint(lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, props, { scale: scale }), datum), x = _Helpers$scalePoint.x, y = _Helpers$scalePoint.y; datum = formatDataFromDomain(datum, domain); var errorX = getErrors(props, datum, "x"); var errorY = getErrors(props, datum, "y"); var dataProps = { borderWidth: borderWidth, data: data, datum: datum, errorX: horizontal ? errorY : errorX, errorY: horizontal ? errorX : errorY, groupComponent: groupComponent, horizontal: horizontal, index: index, scale: scale, style: style.data, x: x, y: y }; childProps[eventKey] = { data: dataProps }; var text = victory_core__WEBPACK_IMPORTED_MODULE_3__["LabelHelpers"].getText(props, datum, index); if (text !== undefined && text !== null || labels && (events || sharedEvents)) { childProps[eventKey].labels = getLabelProps(lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, props, dataProps), text, style); } return childProps; }, initialChildProps); }; /***/ }), /***/ "../../victory-errorbar/es/index.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-errorbar/es/index.js ***! \*********************************************************************************/ /*! exports provided: VictoryErrorBar, ErrorBar */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_errorbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-errorbar */ "../../victory-errorbar/es/victory-errorbar.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryErrorBar", function() { return _victory_errorbar__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _error_bar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./error-bar */ "../../victory-errorbar/es/error-bar.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ErrorBar", function() { return _error_bar__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /***/ }), /***/ "../../victory-errorbar/es/victory-errorbar.js": /*!********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-errorbar/es/victory-errorbar.js ***! \********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var _error_bar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./error-bar */ "../../victory-errorbar/es/error-bar.js"); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helper-methods */ "../../victory-errorbar/es/helper-methods.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var fallbackProps = { width: 450, height: 300, padding: 50 }; var defaultData = [{ x: 1, y: 1, errorX: 0.1, errorY: 0.1 }, { x: 2, y: 2, errorX: 0.2, errorY: 0.2 }, { x: 3, y: 3, errorX: 0.3, errorY: 0.3 }, { x: 4, y: 4, errorX: 0.4, errorY: 0.4 }]; var VictoryErrorBar = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryErrorBar, _React$Component); function VictoryErrorBar() { _classCallCheck(this, VictoryErrorBar); return _possibleConstructorReturn(this, (VictoryErrorBar.__proto__ || Object.getPrototypeOf(VictoryErrorBar)).apply(this, arguments)); } _createClass(VictoryErrorBar, [{ key: "shouldAnimate", // Overridden in native versions value: function shouldAnimate() { return !!this.props.animate; } }, { key: "render", value: function render() { var animationWhitelist = VictoryErrorBar.animationWhitelist, role = VictoryErrorBar.role; var props = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].modifyProps(this.props, fallbackProps, role); if (this.shouldAnimate()) { return this.animateComponent(props, animationWhitelist); } var children = this.renderData(props); return props.standalone ? this.renderContainer(props.containerComponent, children) : children; } }]); return VictoryErrorBar; }(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); Object.defineProperty(VictoryErrorBar, "animationWhitelist", { configurable: true, enumerable: true, writable: true, value: ["data", "domain", "height", "padding", "samples", "style", "width", "errorX", "errorY", "borderWidth"] }); Object.defineProperty(VictoryErrorBar, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryErrorBar" }); Object.defineProperty(VictoryErrorBar, "role", { configurable: true, enumerable: true, writable: true, value: "errorbar" }); Object.defineProperty(VictoryErrorBar, "defaultTransitions", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_2__["DefaultTransitions"].discreteTransitions() }); Object.defineProperty(VictoryErrorBar, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_2__["CommonProps"].baseProps, victory_core__WEBPACK_IMPORTED_MODULE_2__["CommonProps"].dataProps, { borderWidth: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, errorX: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string)]), errorY: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string)]), horizontal: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool }) }); Object.defineProperty(VictoryErrorBar, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { containerComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__["VictoryContainer"], null), data: defaultData, dataComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_error_bar__WEBPACK_IMPORTED_MODULE_3__["default"], null), labelComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__["VictoryLabel"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("g", { role: "presentation" }), samples: 50, sortOrder: "ascending", standalone: true, theme: victory_core__WEBPACK_IMPORTED_MODULE_2__["VictoryTheme"].grayscale } }); Object.defineProperty(VictoryErrorBar, "getDomain", { configurable: true, enumerable: true, writable: true, value: _helper_methods__WEBPACK_IMPORTED_MODULE_4__["getDomain"] }); Object.defineProperty(VictoryErrorBar, "getData", { configurable: true, enumerable: true, writable: true, value: _helper_methods__WEBPACK_IMPORTED_MODULE_4__["getData"] }); Object.defineProperty(VictoryErrorBar, "getBaseProps", { configurable: true, enumerable: true, writable: true, value: function (props) { return Object(_helper_methods__WEBPACK_IMPORTED_MODULE_4__["getBaseProps"])(props, fallbackProps); } }); Object.defineProperty(VictoryErrorBar, "expectedComponents", { configurable: true, enumerable: true, writable: true, value: ["dataComponent", "labelComponent", "groupComponent", "containerComponent"] }); /* harmony default export */ __webpack_exports__["default"] = (Object(victory_core__WEBPACK_IMPORTED_MODULE_2__["addEvents"])(VictoryErrorBar)); /***/ }), /***/ "../../victory-group/es/helper-methods.js": /*!***************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-group/es/helper-methods.js ***! \***************************************************************************************/ /*! exports provided: getChildren, getCalculatedProps */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getChildren", function() { return getChildren; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCalculatedProps", function() { return getCalculatedProps; }); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } var fallbackProps = { width: 450, height: 300, padding: 50, offset: 0 }; // eslint-disable-next-line max-statements function getCalculatedProps(props, childComponents) { var role = "group"; props = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].modifyProps(props, fallbackProps, role); var style = victory_core__WEBPACK_IMPORTED_MODULE_2__["Wrapper"].getStyle(props.theme, props.style, role); var _props = props, offset = _props.offset, colorScale = _props.colorScale, color = _props.color, polar = _props.polar, horizontal = _props.horizontal; var categories = props.categories || victory_core__WEBPACK_IMPORTED_MODULE_2__["Wrapper"].getCategories(props, childComponents); var datasets = props.datasets || victory_core__WEBPACK_IMPORTED_MODULE_2__["Wrapper"].getDataFromChildren(props); var domain = { x: victory_core__WEBPACK_IMPORTED_MODULE_2__["Wrapper"].getDomain(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { categories: categories }), "x", childComponents), y: victory_core__WEBPACK_IMPORTED_MODULE_2__["Wrapper"].getDomain(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { categories: categories }), "y", childComponents) }; var range = props.range || { x: victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getRange(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getRange(props, "y") }; var baseScale = { x: victory_core__WEBPACK_IMPORTED_MODULE_2__["Scale"].getScaleFromProps(props, "x") || victory_core__WEBPACK_IMPORTED_MODULE_2__["Wrapper"].getScale(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_2__["Scale"].getScaleFromProps(props, "y") || victory_core__WEBPACK_IMPORTED_MODULE_2__["Wrapper"].getScale(props, "y") }; var scale = { x: baseScale.x.domain(domain.x).range(props.horizontal ? range.y : range.x), y: baseScale.y.domain(domain.y).range(props.horizontal ? range.x : range.y) }; var origin = polar ? props.origin : victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getPolarOrigin(props); var padding = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getPadding(props); return { datasets: datasets, categories: categories, range: range, domain: domain, horizontal: horizontal, scale: scale, style: style, colorScale: colorScale, color: color, offset: offset, origin: origin, padding: padding }; } function pixelsToValue(props, axis, calculatedProps) { if (!props.offset) { return 0; } var currentAxis = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getCurrentAxis(axis, props.horizontal); var domain = calculatedProps.domain[axis]; var range = calculatedProps.range[currentAxis]; var domainExtent = Math.max.apply(Math, _toConsumableArray(domain)) - Math.min.apply(Math, _toConsumableArray(domain)); var rangeExtent = Math.max.apply(Math, _toConsumableArray(range)) - Math.min.apply(Math, _toConsumableArray(range)); return domainExtent / rangeExtent * props.offset; } // eslint-disable-next-line max-params function getX0(props, calculatedProps, index, role) { var groupLength = role === "stack" ? calculatedProps.datasets[0].length : calculatedProps.datasets.length; var center = (groupLength - 1) / 2; var totalWidth = pixelsToValue(props, "x", calculatedProps); return (index - center) * totalWidth; } // eslint-disable-next-line max-params function getPolarX0(props, calculatedProps, index, role) { var groupLength = role === "stack" ? calculatedProps.datasets[0].length : calculatedProps.datasets.length; var center = (groupLength - 1) / 2; var width = getAngularWidth(props, calculatedProps); return (index - center) * width; } function getAngularWidth(props, calculatedProps) { var range = calculatedProps.range; var angularRange = Math.abs(range.x[1] - range.x[0]); var r = Math.max.apply(Math, _toConsumableArray(range.y)); return props.offset / (2 * Math.PI * r) * angularRange; } function getLabels(props, datasets, index) { if (!props.labels) { return undefined; } return Math.floor(datasets.length / 2) === index ? props.labels : undefined; } function getChildProps(props, calculatedProps) { var categories = calculatedProps.categories, domain = calculatedProps.domain, range = calculatedProps.range, scale = calculatedProps.scale, horizontal = calculatedProps.horizontal, origin = calculatedProps.origin, padding = calculatedProps.padding; var width = props.width, height = props.height, theme = props.theme, polar = props.polar; return { height: height, width: width, theme: theme, polar: polar, origin: origin, categories: categories, domain: domain, range: range, scale: scale, horizontal: horizontal, padding: padding, standalone: false }; } function getColorScale(props, child) { var role = child.type && child.type.role; var colorScaleOptions = child.props.colorScale || props.colorScale; if (role !== "group" && role !== "stack") { return undefined; } return props.theme && props.theme.group ? colorScaleOptions || props.theme.group.colorScale : colorScaleOptions; } function getDataWithOffset(props) { var defaultDataset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; var offset = arguments.length > 2 ? arguments[2] : undefined; var dataset = props.data || props.y ? victory_core__WEBPACK_IMPORTED_MODULE_2__["Data"].getData(props) : defaultDataset; var xOffset = offset || 0; return dataset.map(function (datum) { var _x1 = datum._x instanceof Date ? new Date(datum._x.getTime() + xOffset) : datum._x + xOffset; return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, datum, { _x1: _x1 }); }); } function getChildren(props, childComponents, calculatedProps) { props = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].modifyProps(props, fallbackProps, "stack"); childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_1___default.a.Children.toArray(props.children); calculatedProps = calculatedProps || getCalculatedProps(props, childComponents); var _calculatedProps = calculatedProps, datasets = _calculatedProps.datasets; var _props2 = props, labelComponent = _props2.labelComponent, polar = _props2.polar; var childProps = getChildProps(props, calculatedProps); var parentName = props.name || "group"; return childComponents.map(function (child, index) { var role = child.type && child.type.role; var xOffset = polar ? getPolarX0(props, calculatedProps, index, role) : getX0(props, calculatedProps, index, role); var style = role === "voronoi" || role === "tooltip" || role === "label" ? child.props.style : victory_core__WEBPACK_IMPORTED_MODULE_2__["Wrapper"].getChildStyle(child, index, calculatedProps); var labels = props.labels ? getLabels(props, datasets, index) : child.props.labels; var name = child.props.name || "".concat(parentName, "-").concat(role, "-").concat(index); return react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(child, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ labels: labels, style: style, key: "".concat(name, "-key-").concat(index), name: name, data: getDataWithOffset(props, datasets[index], xOffset), colorScale: getColorScale(props, child), labelComponent: labelComponent || child.props.labelComponent, xOffset: xOffset }, childProps)); }); } /***/ }), /***/ "../../victory-group/es/index.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-group/es/index.js ***! \******************************************************************************/ /*! exports provided: VictoryGroup */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_group__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-group */ "../../victory-group/es/victory-group.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryGroup", function() { return _victory_group__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /***/ }), /***/ "../../victory-group/es/victory-group.js": /*!**************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-group/es/victory-group.js ***! \**************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return VictoryGroup; }); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js"); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var victory_shared_events__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-shared-events */ "../../victory-shared-events/es/index.js"); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./helper-methods */ "../../victory-group/es/helper-methods.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_8__); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } var fallbackProps = { width: 450, height: 300, padding: 50, offset: 0 }; var VictoryGroup = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryGroup, _React$Component); function VictoryGroup(props) { var _this; _classCallCheck(this, VictoryGroup); _this = _possibleConstructorReturn(this, (VictoryGroup.__proto__ || Object.getPrototypeOf(VictoryGroup)).call(this, props)); if (props.animate) { _this.state = { nodesShouldLoad: false, nodesDoneLoad: false, animating: true }; _this.setAnimationState = victory_core__WEBPACK_IMPORTED_MODULE_5__["Wrapper"].setAnimationState.bind(_assertThisInitialized(_this)); } return _this; } _createClass(VictoryGroup, [{ key: "shouldComponentUpdate", value: function shouldComponentUpdate(nextProps) { if (this.props.animate) { if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default()(this.props, nextProps)) { this.setAnimationState(this.props, nextProps); return false; } } return true; } }, { key: "getNewChildren", value: function getNewChildren(props, childComponents, calculatedProps) { var children = Object(_helper_methods__WEBPACK_IMPORTED_MODULE_7__["getChildren"])(props, childComponents, calculatedProps); var getAnimationProps = victory_core__WEBPACK_IMPORTED_MODULE_5__["Wrapper"].getAnimationProps.bind(this); return children.map(function (child, index) { var childProps = lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({ animate: getAnimationProps(props, child, index) }, child.props); return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(child, childProps); }); } }, { key: "renderContainer", value: function renderContainer(containerComponent, props) { var containerProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, containerComponent.props, props); return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(containerComponent, containerProps); } }, { key: "getContainerProps", value: function getContainerProps(props, calculatedProps) { var width = props.width, height = props.height, standalone = props.standalone, theme = props.theme, polar = props.polar, horizontal = props.horizontal, name = props.name; var domain = calculatedProps.domain, scale = calculatedProps.scale, style = calculatedProps.style, origin = calculatedProps.origin; return { domain: domain, scale: scale, width: width, height: height, standalone: standalone, theme: theme, style: style.parent, horizontal: horizontal, polar: polar, origin: origin, name: name }; } }, { key: "render", value: function render() { var role = this.constructor.role; var props = this.state && this.state.nodesWillExit ? this.state.oldProps || this.props : this.props; var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].modifyProps(props, fallbackProps, role); var eventKey = modifiedProps.eventKey, containerComponent = modifiedProps.containerComponent, standalone = modifiedProps.standalone, groupComponent = modifiedProps.groupComponent, externalEventMutations = modifiedProps.externalEventMutations; var childComponents = react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.toArray(modifiedProps.children); var calculatedProps = Object(_helper_methods__WEBPACK_IMPORTED_MODULE_7__["getCalculatedProps"])(modifiedProps, childComponents); var newChildren = this.getNewChildren(modifiedProps, childComponents, calculatedProps); var containerProps = standalone ? this.getContainerProps(modifiedProps, calculatedProps) : {}; var container = standalone ? this.renderContainer(containerComponent, containerProps) : groupComponent; var events = victory_core__WEBPACK_IMPORTED_MODULE_5__["Wrapper"].getAllEvents(props); if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events)) { return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_shared_events__WEBPACK_IMPORTED_MODULE_6__["VictorySharedEvents"], { container: container, eventKey: eventKey, events: events, externalEventMutations: externalEventMutations }, newChildren); } return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(container, container.props, newChildren); } }]); return VictoryGroup; }(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component); Object.defineProperty(VictoryGroup, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryGroup" }); Object.defineProperty(VictoryGroup, "role", { configurable: true, enumerable: true, writable: true, value: "group" }); Object.defineProperty(VictoryGroup, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__["CommonProps"].baseProps, victory_core__WEBPACK_IMPORTED_MODULE_5__["CommonProps"].dataProps, { children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node]), color: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func]), colorScale: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]), horizontal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, offset: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number }) }); Object.defineProperty(VictoryGroup, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { containerComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__["VictoryContainer"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("g", null), samples: 50, sortOrder: "ascending", standalone: true, theme: victory_core__WEBPACK_IMPORTED_MODULE_5__["VictoryTheme"].grayscale } }); Object.defineProperty(VictoryGroup, "expectedComponents", { configurable: true, enumerable: true, writable: true, value: ["groupComponent", "containerComponent", "labelComponent"] }); Object.defineProperty(VictoryGroup, "getChildren", { configurable: true, enumerable: true, writable: true, value: _helper_methods__WEBPACK_IMPORTED_MODULE_7__["getChildren"] }); /***/ }), /***/ "../../victory-histogram/es/helper-methods.js": /*!*******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/es/helper-methods.js ***! \*******************************************************************************************/ /*! exports provided: getFormattedData, getData, getDomain, getBaseProps */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFormattedData", function() { return getFormattedData; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getData", function() { return getData; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDomain", function() { return getDomain; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBaseProps", function() { return getBaseProps; }); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var victory_bar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-bar */ "../../victory-bar/es/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-array */ "../../victory-histogram/node_modules/d3-array/src/index.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! d3-scale */ "../../../node_modules/d3-scale/index.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } var cacheLastValue = function (func) { var called = false; var lastArgs; var lastReturnVal; return function () { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } if (called && react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(lastArgs, args)) { return lastReturnVal; } var value = func.apply(void 0, args); called = true; lastReturnVal = value; lastArgs = args; return value; }; }; var dataOrBinsContainDates = function (_ref) { var data = _ref.data, bins = _ref.bins, x = _ref.x; var xAccessor = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].createAccessor(x || "x"); var dataIsDates = data.some(function (datum) { return xAccessor(datum) instanceof Date; }); var binsHasDates = Array.isArray(bins) && bins.some(function (bin) { return bin instanceof Date; }); return dataIsDates || binsHasDates; }; var getBinningFunc = function (_ref2) { var data = _ref2.data, x = _ref2.x, bins = _ref2.bins, dataOrBinsContainsDates = _ref2.dataOrBinsContainsDates; var xAccessor = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].createAccessor(x || "x"); var bin = d3_array__WEBPACK_IMPORTED_MODULE_5__["bin"]().value(xAccessor); var niceScale = (dataOrBinsContainsDates ? d3_scale__WEBPACK_IMPORTED_MODULE_6__["scaleTime"]() : d3_scale__WEBPACK_IMPORTED_MODULE_6__["scaleLinear"]()).domain(d3_array__WEBPACK_IMPORTED_MODULE_5__["extent"](data, xAccessor)).nice(); if (Array.isArray(bins)) { bin.domain([bins[0], bins[bins.length - 1]]); bin.thresholds(bins.slice(1, bins.length - 1)); return bin; } if (Number.isInteger(bins)) { bin.domain(niceScale.domain()); bin.thresholds(bins); return bin; } if (dataOrBinsContainsDates) { bin.domain(niceScale.domain()); bin.thresholds(niceScale.ticks()); return bin; } bin.domain(niceScale.domain()); return bin; }; var getFormattedData = cacheLastValue(function (_ref3) { var _ref3$data = _ref3.data, data = _ref3$data === void 0 ? [] : _ref3$data, x = _ref3.x, bins = _ref3.bins; if ((!data || !data.length) && !Array.isArray(bins)) { return []; } var dataOrBinsContainsDates = dataOrBinsContainDates({ data: data, bins: bins, x: x }); var binFunc = getBinningFunc({ data: data, x: x, bins: bins, dataOrBinsContainsDates: dataOrBinsContainsDates }); var foo = binFunc(data); var binnedData = foo.filter(function (_ref4) { var x0 = _ref4.x0, x1 = _ref4.x1; if (dataOrBinsContainsDates) { return new Date(x0).getTime() !== new Date(x1).getTime(); } return x0 !== x1; }); var formattedData = binnedData.map(function (bin) { var x0 = dataOrBinsContainsDates ? new Date(bin.x0) : bin.x0; var x1 = dataOrBinsContainsDates ? new Date(bin.x1) : bin.x1; return { x0: x0, x1: x1, x: dataOrBinsContainsDates ? new Date((x0.getTime() + x1.getTime()) / 2) : (x0 + x1) / 2, y: bin.length, binnedData: _toConsumableArray(bin) }; }); return formattedData; }); var getData = function (props) { var bins = props.bins, data = props.data, x = props.x; var dataIsPreformatted = data.some(function (_ref5) { var _y = _ref5._y; return !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(_y); }); var formattedData = dataIsPreformatted ? data : getFormattedData({ data: data, x: x, bins: bins }); return victory_core__WEBPACK_IMPORTED_MODULE_2__["Data"].getData(_objectSpread({}, props, { data: formattedData, x: "x" })); }; var getDomain = function (props, axis) { var data = getData(props); if (!data.length) { return [0, 1]; } if (axis === "x") { var firstBin = data[0]; var lastBin = data[data.length - 1]; return victory_core__WEBPACK_IMPORTED_MODULE_2__["Domain"].getDomainWithZero(_objectSpread({}, props, { data: [{ x: firstBin.x0 }, { x: lastBin.x1 }], x: "x" }), "x"); } return props.data.length ? victory_core__WEBPACK_IMPORTED_MODULE_2__["Domain"].getDomainWithZero(_objectSpread({}, props, { data: data }), "y") : [0, 1]; }; var getCalculatedValues = function (props) { var defaultStyles = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getDefaultStyles(props, "histogram"); var style = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getStyles(props.style, defaultStyles); var range = props.range || { x: victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getRange(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getRange(props, "y") }; var domain = { x: getDomain(props, "x"), y: getDomain(props, "y") }; var data = getData(props); data = victory_core__WEBPACK_IMPORTED_MODULE_2__["Data"].formatDataFromDomain(data, domain, 0); var scale = { x: victory_core__WEBPACK_IMPORTED_MODULE_2__["Scale"].getBaseScale(props, "x").domain(domain.x).range(props.horizontal ? range.y : range.x), y: victory_core__WEBPACK_IMPORTED_MODULE_2__["Scale"].getBaseScale(props, "y").domain(domain.y).range(props.horizontal ? range.x : range.y) }; return { style: style, data: data, scale: scale, domain: domain }; }; var getBaseProps = function (props, fallbackProps) { var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].modifyProps(props, fallbackProps, "histogram"); props = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, modifiedProps, getCalculatedValues(modifiedProps)); var _props = props, binSpacing = _props.binSpacing, cornerRadius = _props.cornerRadius, data = _props.data, domain = _props.domain, events = _props.events, height = _props.height, horizontal = _props.horizontal, padding = _props.padding, scale = _props.scale, sharedEvents = _props.sharedEvents, standalone = _props.standalone, style = _props.style, theme = _props.theme, width = _props.width, labels = _props.labels, name = _props.name, getPath = _props.getPath; var initialChildProps = { parent: { horizontal: horizontal, domain: domain, scale: scale, width: width, height: height, data: data, standalone: standalone, name: name, theme: theme, padding: padding, style: style.parent } }; var getDistance = function (datum) { var current = scale.x(datum.x0); var next = scale.x(datum.x1); return Math.abs(next - current); }; var getBarWidth = function (datum) { if (binSpacing) { return getDistance(datum) - binSpacing; } return getDistance(datum); }; return data.reduce(function (childProps, datum, index) { var eventKey = !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum.eventKey) ? datum.eventKey : index; var _getBarPosition = Object(victory_bar__WEBPACK_IMPORTED_MODULE_3__["getBarPosition"])(props, datum), x = _getBarPosition.x, y = _getBarPosition.y, y0 = _getBarPosition.y0, x0 = _getBarPosition.x0; var barWidth = getBarWidth(datum); var dataProps = { alignment: "middle", barWidth: barWidth, cornerRadius: cornerRadius, data: data, datum: datum, horizontal: horizontal, index: index, scale: scale, style: style.data, width: width, height: height, x: x, y: y, y0: y0, x0: x0, getPath: getPath }; childProps[eventKey] = { data: dataProps }; var text = victory_core__WEBPACK_IMPORTED_MODULE_2__["LabelHelpers"].getText(props, datum, index); if (text !== undefined && text !== null || labels && (events || sharedEvents)) { childProps[eventKey].labels = victory_core__WEBPACK_IMPORTED_MODULE_2__["LabelHelpers"].getProps(props, index); } return childProps; }, initialChildProps); }; /***/ }), /***/ "../../victory-histogram/es/index.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/es/index.js ***! \**********************************************************************************/ /*! exports provided: VictoryHistogram */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_histogram__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-histogram */ "../../victory-histogram/es/victory-histogram.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryHistogram", function() { return _victory_histogram__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /***/ }), /***/ "../../victory-histogram/es/victory-histogram.js": /*!**********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/es/victory-histogram.js ***! \**********************************************************************************************/ /*! exports provided: VictoryHistogram, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VictoryHistogram", function() { return VictoryHistogram; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var victory_bar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-bar */ "../../victory-bar/es/index.js"); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helper-methods */ "../../victory-histogram/es/helper-methods.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var fallbackProps = { width: 450, height: 300, padding: 50 }; var defaultData = []; var VictoryHistogram = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryHistogram, _React$Component); function VictoryHistogram() { _classCallCheck(this, VictoryHistogram); return _possibleConstructorReturn(this, (VictoryHistogram.__proto__ || Object.getPrototypeOf(VictoryHistogram)).apply(this, arguments)); } _createClass(VictoryHistogram, [{ key: "shouldAnimate", // Overridden in native versions value: function shouldAnimate() { return !!this.props.animate; } }, { key: "render", value: function render() { var animationWhitelist = VictoryHistogram.animationWhitelist, role = VictoryHistogram.role; var props = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].modifyProps(this.props, fallbackProps, role); if (this.shouldAnimate()) { return this.animateComponent(props, animationWhitelist); } var children = this.renderData(props); return props.standalone ? this.renderContainer(props.containerComponent, children) : children; } }]); return VictoryHistogram; }(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); Object.defineProperty(VictoryHistogram, "animationWhitelist", { configurable: true, enumerable: true, writable: true, value: ["data", "domain", "height", "padding", "style", "width"] }); Object.defineProperty(VictoryHistogram, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryHistogram" }); Object.defineProperty(VictoryHistogram, "role", { configurable: true, enumerable: true, writable: true, value: "histogram" }); Object.defineProperty(VictoryHistogram, "defaultTransitions", { configurable: true, enumerable: true, writable: true, value: { onLoad: { duration: 2000, before: function () { return { _y: 0, _y1: 0, _y0: 0 }; }, after: function (datum) { return { _y: datum._y, _y1: datum._y1, _y0: datum._y0 }; } }, onExit: { duration: 500, before: function () { return { _y: 0, yOffset: 0 }; } }, onEnter: { duration: 500, before: function () { return { _y: 0, _y1: 0, _y0: 0 }; }, after: function (datum) { return { _y: datum._y, _y1: datum._y1, _y0: datum._y0 }; } } } }); Object.defineProperty(VictoryHistogram, "getFormattedData", { configurable: true, enumerable: true, writable: true, value: _helper_methods__WEBPACK_IMPORTED_MODULE_4__["getFormattedData"] }); Object.defineProperty(VictoryHistogram, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_3__["CommonProps"].baseProps, victory_core__WEBPACK_IMPORTED_MODULE_3__["CommonProps"].dataProps, { binSpacing: victory_core__WEBPACK_IMPORTED_MODULE_3__["PropTypes"].nonNegative, bins: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.instanceOf(Date)])), victory_core__WEBPACK_IMPORTED_MODULE_3__["PropTypes"].nonNegative]), cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({ top: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func]), topLeft: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func]), topRight: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func]), bottom: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func]), bottomLeft: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func]), bottomRight: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func]) })]), getPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, horizontal: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool }) }); Object.defineProperty(VictoryHistogram, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { containerComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__["VictoryContainer"], null), data: defaultData, dataComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(victory_bar__WEBPACK_IMPORTED_MODULE_2__["Bar"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("g", { role: "presentation" }), labelComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__["VictoryLabel"], null), samples: 50, sortOrder: "ascending", standalone: true, theme: victory_core__WEBPACK_IMPORTED_MODULE_3__["VictoryTheme"].grayscale } }); Object.defineProperty(VictoryHistogram, "getDomain", { configurable: true, enumerable: true, writable: true, value: _helper_methods__WEBPACK_IMPORTED_MODULE_4__["getDomain"] }); Object.defineProperty(VictoryHistogram, "getData", { configurable: true, enumerable: true, writable: true, value: _helper_methods__WEBPACK_IMPORTED_MODULE_4__["getData"] }); Object.defineProperty(VictoryHistogram, "getBaseProps", { configurable: true, enumerable: true, writable: true, value: function (props) { return Object(_helper_methods__WEBPACK_IMPORTED_MODULE_4__["getBaseProps"])(props, fallbackProps); } }); Object.defineProperty(VictoryHistogram, "expectedComponents", { configurable: true, enumerable: true, writable: true, value: ["dataComponent", "labelComponent", "groupComponent", "containerComponent"] }); /* harmony default export */ __webpack_exports__["default"] = (Object(victory_core__WEBPACK_IMPORTED_MODULE_3__["addEvents"])(VictoryHistogram)); /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/array.js": /*!*********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/array.js ***! \*********************************************************************************************************/ /*! exports provided: slice, map */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "map", function() { return map; }); var array = Array.prototype; var slice = array.slice; var map = array.map; /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/ascending.js": /*!*************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/ascending.js ***! \*************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; }); /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/bin.js": /*!*******************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/bin.js ***! \*******************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array.js */ "../../victory-histogram/node_modules/d3-array/src/array.js"); /* harmony import */ var _bisect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bisect.js */ "../../victory-histogram/node_modules/d3-array/src/bisect.js"); /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constant.js */ "../../victory-histogram/node_modules/d3-array/src/constant.js"); /* harmony import */ var _extent_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./extent.js */ "../../victory-histogram/node_modules/d3-array/src/extent.js"); /* harmony import */ var _identity_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./identity.js */ "../../victory-histogram/node_modules/d3-array/src/identity.js"); /* harmony import */ var _range_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./range.js */ "../../victory-histogram/node_modules/d3-array/src/range.js"); /* harmony import */ var _ticks_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ticks.js */ "../../victory-histogram/node_modules/d3-array/src/ticks.js"); /* harmony import */ var _threshold_sturges_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./threshold/sturges.js */ "../../victory-histogram/node_modules/d3-array/src/threshold/sturges.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var value = _identity_js__WEBPACK_IMPORTED_MODULE_4__["default"], domain = _extent_js__WEBPACK_IMPORTED_MODULE_3__["default"], threshold = _threshold_sturges_js__WEBPACK_IMPORTED_MODULE_7__["default"]; function histogram(data) { if (!Array.isArray(data)) data = Array.from(data); var i, n = data.length, x, values = new Array(n); for (i = 0; i < n; ++i) { values[i] = value(data[i], i, data); } var xz = domain(values), x0 = xz[0], x1 = xz[1], tz = threshold(values, x0, x1); // Convert number of thresholds into uniform thresholds. if (!Array.isArray(tz)) { tz = Object(_ticks_js__WEBPACK_IMPORTED_MODULE_6__["tickStep"])(x0, x1, tz); tz = Object(_range_js__WEBPACK_IMPORTED_MODULE_5__["default"])(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive } // Remove any thresholds outside the domain. var m = tz.length; while (tz[0] <= x0) tz.shift(), --m; while (tz[m - 1] > x1) tz.pop(), --m; var bins = new Array(m + 1), bin; // Initialize bins. for (i = 0; i <= m; ++i) { bin = bins[i] = []; bin.x0 = i > 0 ? tz[i - 1] : x0; bin.x1 = i < m ? tz[i] : x1; } // Assign data to bins by value, ignoring any outside the domain. for (i = 0; i < n; ++i) { x = values[i]; if (x0 <= x && x <= x1) { bins[Object(_bisect_js__WEBPACK_IMPORTED_MODULE_1__["default"])(tz, x, 0, m)].push(data[i]); } } return bins; } histogram.value = function(_) { return arguments.length ? (value = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_), histogram) : value; }; histogram.domain = function(_) { return arguments.length ? (domain = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_2__["default"])([_[0], _[1]]), histogram) : domain; }; histogram.thresholds = function(_) { return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? Object(_constant_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_array_js__WEBPACK_IMPORTED_MODULE_0__["slice"].call(_)) : Object(_constant_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_), histogram) : threshold; }; return histogram; }); /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/bisect.js": /*!**********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/bisect.js ***! \**********************************************************************************************************/ /*! exports provided: bisectRight, bisectLeft, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bisectRight", function() { return bisectRight; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bisectLeft", function() { return bisectLeft; }); /* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending.js */ "../../victory-histogram/node_modules/d3-array/src/ascending.js"); /* harmony import */ var _bisector_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bisector.js */ "../../victory-histogram/node_modules/d3-array/src/bisector.js"); var ascendingBisect = Object(_bisector_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_ascending_js__WEBPACK_IMPORTED_MODULE_0__["default"]); var bisectRight = ascendingBisect.right; var bisectLeft = ascendingBisect.left; /* harmony default export */ __webpack_exports__["default"] = (bisectRight); /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/bisector.js": /*!************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/bisector.js ***! \************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending.js */ "../../victory-histogram/node_modules/d3-array/src/ascending.js"); /* harmony default export */ __webpack_exports__["default"] = (function(compare) { if (compare.length === 1) compare = ascendingComparator(compare); return { left: function(a, x, lo, hi) { if (lo == null) lo = 0; if (hi == null) hi = a.length; while (lo < hi) { var mid = lo + hi >>> 1; if (compare(a[mid], x) < 0) lo = mid + 1; else hi = mid; } return lo; }, right: function(a, x, lo, hi) { if (lo == null) lo = 0; if (hi == null) hi = a.length; while (lo < hi) { var mid = lo + hi >>> 1; if (compare(a[mid], x) > 0) hi = mid; else lo = mid + 1; } return lo; } }; }); function ascendingComparator(f) { return function(d, x) { return Object(_ascending_js__WEBPACK_IMPORTED_MODULE_0__["default"])(f(d), x); }; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/constant.js": /*!************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/constant.js ***! \************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return function() { return x; }; }); /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/count.js": /*!*********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/count.js ***! \*********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return count; }); function count(values, valueof) { let count = 0; if (valueof === undefined) { for (let value of values) { if (value != null && (value = +value) >= value) { ++count; } } } else { let index = -1; for (let value of values) { if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) { ++count; } } } return count; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/cross.js": /*!*********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/cross.js ***! \*********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return cross; }); function length(array) { return array.length | 0; } function empty(length) { return !(length > 0); } function arrayify(values) { return typeof values !== "object" || "length" in values ? values : Array.from(values); } function reducer(reduce) { return values => reduce(...values); } function cross(...values) { const reduce = typeof values[values.length - 1] === "function" && reducer(values.pop()); values = values.map(arrayify); const lengths = values.map(length); const j = values.length - 1; const index = new Array(j + 1).fill(0); const product = []; if (j < 0 || lengths.some(empty)) return product; while (true) { product.push(index.map((j, i) => values[i][j])); let i = j; while (++index[i] === lengths[i]) { if (i === 0) return reduce ? product.map(reduce) : product; index[i--] = 0; } } } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/cumsum.js": /*!**********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/cumsum.js ***! \**********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return cumsum; }); function cumsum(values, valueof) { var sum = 0, index = 0; return Float64Array.from(values, valueof === undefined ? v => (sum += +v || 0) : v => (sum += +valueof(v, index++, values) || 0)); } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/descending.js": /*!**************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/descending.js ***! \**************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN; }); /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/deviation.js": /*!*************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/deviation.js ***! \*************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return deviation; }); /* harmony import */ var _variance_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./variance.js */ "../../victory-histogram/node_modules/d3-array/src/variance.js"); function deviation(values, valueof) { const v = Object(_variance_js__WEBPACK_IMPORTED_MODULE_0__["default"])(values, valueof); return v ? Math.sqrt(v) : v; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/extent.js": /*!**********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/extent.js ***! \**********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) { let min; let max; if (valueof === undefined) { for (const value of values) { if (value != null) { if (min === undefined) { if (value >= value) min = max = value; } else { if (min > value) min = value; if (max < value) max = value; } } } } else { let index = -1; for (let value of values) { if ((value = valueof(value, ++index, values)) != null) { if (min === undefined) { if (value >= value) min = max = value; } else { if (min > value) min = value; if (max < value) max = value; } } } } return [min, max]; }); /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/greatest.js": /*!************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/greatest.js ***! \************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return greatest; }); /* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending.js */ "../../victory-histogram/node_modules/d3-array/src/ascending.js"); function greatest(values, compare = _ascending_js__WEBPACK_IMPORTED_MODULE_0__["default"]) { let max; let defined = false; if (compare.length === 1) { let maxValue; for (const element of values) { const value = compare(element); if (defined ? Object(_ascending_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value, maxValue) > 0 : Object(_ascending_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value, value) === 0) { max = element; maxValue = value; defined = true; } } } else { for (const value of values) { if (defined ? compare(value, max) > 0 : compare(value, value) === 0) { max = value; defined = true; } } } return max; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/greatestIndex.js": /*!*****************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/greatestIndex.js ***! \*****************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return greatestIndex; }); /* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending.js */ "../../victory-histogram/node_modules/d3-array/src/ascending.js"); /* harmony import */ var _maxIndex_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./maxIndex.js */ "../../victory-histogram/node_modules/d3-array/src/maxIndex.js"); function greatestIndex(values, compare = _ascending_js__WEBPACK_IMPORTED_MODULE_0__["default"]) { if (compare.length === 1) return Object(_maxIndex_js__WEBPACK_IMPORTED_MODULE_1__["default"])(values, compare); let maxValue; let max = -1; let index = -1; for (const value of values) { ++index; if (max < 0 ? compare(value, value) === 0 : compare(value, maxValue) > 0) { maxValue = value; max = index; } } return max; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/group.js": /*!*********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/group.js ***! \*********************************************************************************************************/ /*! exports provided: default, groups, rollup, rollups */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return group; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "groups", function() { return groups; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rollup", function() { return rollup; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rollups", function() { return rollups; }); /* harmony import */ var _identity_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./identity.js */ "../../victory-histogram/node_modules/d3-array/src/identity.js"); function group(values, ...keys) { return nest(values, _identity_js__WEBPACK_IMPORTED_MODULE_0__["default"], _identity_js__WEBPACK_IMPORTED_MODULE_0__["default"], keys); } function groups(values, ...keys) { return nest(values, Array.from, _identity_js__WEBPACK_IMPORTED_MODULE_0__["default"], keys); } function rollup(values, reduce, ...keys) { return nest(values, _identity_js__WEBPACK_IMPORTED_MODULE_0__["default"], reduce, keys); } function rollups(values, reduce, ...keys) { return nest(values, Array.from, reduce, keys); } function nest(values, map, reduce, keys) { return (function regroup(values, i) { if (i >= keys.length) return reduce(values); const groups = new Map(); const keyof = keys[i++]; let index = -1; for (const value of values) { const key = keyof(value, ++index, values); const group = groups.get(key); if (group) group.push(value); else groups.set(key, [value]); } for (const [key, values] of groups) { groups.set(key, regroup(values, i)); } return map(groups); })(values, 0); } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/identity.js": /*!************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/identity.js ***! \************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return x; }); /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/index.js": /*!*********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/index.js ***! \*********************************************************************************************************/ /*! exports provided: bisect, bisectRight, bisectLeft, ascending, bisector, count, cross, cumsum, descending, deviation, extent, group, groups, rollup, rollups, bin, histogram, thresholdFreedmanDiaconis, thresholdScott, thresholdSturges, max, maxIndex, mean, median, merge, min, minIndex, pairs, permute, quantile, quantileSorted, quickselect, range, least, leastIndex, greatest, greatestIndex, scan, shuffle, sum, ticks, tickIncrement, tickStep, transpose, variance, zip */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _bisect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bisect.js */ "../../victory-histogram/node_modules/d3-array/src/bisect.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisect", function() { return _bisect_js__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisectRight", function() { return _bisect_js__WEBPACK_IMPORTED_MODULE_0__["bisectRight"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisectLeft", function() { return _bisect_js__WEBPACK_IMPORTED_MODULE_0__["bisectLeft"]; }); /* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-histogram/node_modules/d3-array/src/ascending.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ascending", function() { return _ascending_js__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _bisector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bisector.js */ "../../victory-histogram/node_modules/d3-array/src/bisector.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisector", function() { return _bisector_js__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _count_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./count.js */ "../../victory-histogram/node_modules/d3-array/src/count.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "count", function() { return _count_js__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _cross_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./cross.js */ "../../victory-histogram/node_modules/d3-array/src/cross.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cross", function() { return _cross_js__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _cumsum_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cumsum.js */ "../../victory-histogram/node_modules/d3-array/src/cumsum.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cumsum", function() { return _cumsum_js__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony import */ var _descending_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./descending.js */ "../../victory-histogram/node_modules/d3-array/src/descending.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "descending", function() { return _descending_js__WEBPACK_IMPORTED_MODULE_6__["default"]; }); /* harmony import */ var _deviation_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./deviation.js */ "../../victory-histogram/node_modules/d3-array/src/deviation.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "deviation", function() { return _deviation_js__WEBPACK_IMPORTED_MODULE_7__["default"]; }); /* harmony import */ var _extent_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./extent.js */ "../../victory-histogram/node_modules/d3-array/src/extent.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extent", function() { return _extent_js__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony import */ var _group_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./group.js */ "../../victory-histogram/node_modules/d3-array/src/group.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "group", function() { return _group_js__WEBPACK_IMPORTED_MODULE_9__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "groups", function() { return _group_js__WEBPACK_IMPORTED_MODULE_9__["groups"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rollup", function() { return _group_js__WEBPACK_IMPORTED_MODULE_9__["rollup"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rollups", function() { return _group_js__WEBPACK_IMPORTED_MODULE_9__["rollups"]; }); /* harmony import */ var _bin_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./bin.js */ "../../victory-histogram/node_modules/d3-array/src/bin.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bin", function() { return _bin_js__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "histogram", function() { return _bin_js__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony import */ var _threshold_freedmanDiaconis_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./threshold/freedmanDiaconis.js */ "../../victory-histogram/node_modules/d3-array/src/threshold/freedmanDiaconis.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdFreedmanDiaconis", function() { return _threshold_freedmanDiaconis_js__WEBPACK_IMPORTED_MODULE_11__["default"]; }); /* harmony import */ var _threshold_scott_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./threshold/scott.js */ "../../victory-histogram/node_modules/d3-array/src/threshold/scott.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdScott", function() { return _threshold_scott_js__WEBPACK_IMPORTED_MODULE_12__["default"]; }); /* harmony import */ var _threshold_sturges_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./threshold/sturges.js */ "../../victory-histogram/node_modules/d3-array/src/threshold/sturges.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdSturges", function() { return _threshold_sturges_js__WEBPACK_IMPORTED_MODULE_13__["default"]; }); /* harmony import */ var _max_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./max.js */ "../../victory-histogram/node_modules/d3-array/src/max.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "max", function() { return _max_js__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /* harmony import */ var _maxIndex_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./maxIndex.js */ "../../victory-histogram/node_modules/d3-array/src/maxIndex.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "maxIndex", function() { return _maxIndex_js__WEBPACK_IMPORTED_MODULE_15__["default"]; }); /* harmony import */ var _mean_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./mean.js */ "../../victory-histogram/node_modules/d3-array/src/mean.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mean", function() { return _mean_js__WEBPACK_IMPORTED_MODULE_16__["default"]; }); /* harmony import */ var _median_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./median.js */ "../../victory-histogram/node_modules/d3-array/src/median.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "median", function() { return _median_js__WEBPACK_IMPORTED_MODULE_17__["default"]; }); /* harmony import */ var _merge_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./merge.js */ "../../victory-histogram/node_modules/d3-array/src/merge.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return _merge_js__WEBPACK_IMPORTED_MODULE_18__["default"]; }); /* harmony import */ var _min_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./min.js */ "../../victory-histogram/node_modules/d3-array/src/min.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "min", function() { return _min_js__WEBPACK_IMPORTED_MODULE_19__["default"]; }); /* harmony import */ var _minIndex_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./minIndex.js */ "../../victory-histogram/node_modules/d3-array/src/minIndex.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "minIndex", function() { return _minIndex_js__WEBPACK_IMPORTED_MODULE_20__["default"]; }); /* harmony import */ var _pairs_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./pairs.js */ "../../victory-histogram/node_modules/d3-array/src/pairs.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pairs", function() { return _pairs_js__WEBPACK_IMPORTED_MODULE_21__["default"]; }); /* harmony import */ var _permute_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./permute.js */ "../../victory-histogram/node_modules/d3-array/src/permute.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "permute", function() { return _permute_js__WEBPACK_IMPORTED_MODULE_22__["default"]; }); /* harmony import */ var _quantile_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./quantile.js */ "../../victory-histogram/node_modules/d3-array/src/quantile.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantile", function() { return _quantile_js__WEBPACK_IMPORTED_MODULE_23__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantileSorted", function() { return _quantile_js__WEBPACK_IMPORTED_MODULE_23__["quantileSorted"]; }); /* harmony import */ var _quickselect_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./quickselect.js */ "../../victory-histogram/node_modules/d3-array/src/quickselect.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quickselect", function() { return _quickselect_js__WEBPACK_IMPORTED_MODULE_24__["default"]; }); /* harmony import */ var _range_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./range.js */ "../../victory-histogram/node_modules/d3-array/src/range.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "range", function() { return _range_js__WEBPACK_IMPORTED_MODULE_25__["default"]; }); /* harmony import */ var _least_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./least.js */ "../../victory-histogram/node_modules/d3-array/src/least.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "least", function() { return _least_js__WEBPACK_IMPORTED_MODULE_26__["default"]; }); /* harmony import */ var _leastIndex_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./leastIndex.js */ "../../victory-histogram/node_modules/d3-array/src/leastIndex.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "leastIndex", function() { return _leastIndex_js__WEBPACK_IMPORTED_MODULE_27__["default"]; }); /* harmony import */ var _greatest_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./greatest.js */ "../../victory-histogram/node_modules/d3-array/src/greatest.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "greatest", function() { return _greatest_js__WEBPACK_IMPORTED_MODULE_28__["default"]; }); /* harmony import */ var _greatestIndex_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./greatestIndex.js */ "../../victory-histogram/node_modules/d3-array/src/greatestIndex.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "greatestIndex", function() { return _greatestIndex_js__WEBPACK_IMPORTED_MODULE_29__["default"]; }); /* harmony import */ var _scan_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./scan.js */ "../../victory-histogram/node_modules/d3-array/src/scan.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scan", function() { return _scan_js__WEBPACK_IMPORTED_MODULE_30__["default"]; }); /* harmony import */ var _shuffle_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./shuffle.js */ "../../victory-histogram/node_modules/d3-array/src/shuffle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "shuffle", function() { return _shuffle_js__WEBPACK_IMPORTED_MODULE_31__["default"]; }); /* harmony import */ var _sum_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./sum.js */ "../../victory-histogram/node_modules/d3-array/src/sum.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sum", function() { return _sum_js__WEBPACK_IMPORTED_MODULE_32__["default"]; }); /* harmony import */ var _ticks_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./ticks.js */ "../../victory-histogram/node_modules/d3-array/src/ticks.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ticks", function() { return _ticks_js__WEBPACK_IMPORTED_MODULE_33__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tickIncrement", function() { return _ticks_js__WEBPACK_IMPORTED_MODULE_33__["tickIncrement"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tickStep", function() { return _ticks_js__WEBPACK_IMPORTED_MODULE_33__["tickStep"]; }); /* harmony import */ var _transpose_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./transpose.js */ "../../victory-histogram/node_modules/d3-array/src/transpose.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transpose", function() { return _transpose_js__WEBPACK_IMPORTED_MODULE_34__["default"]; }); /* harmony import */ var _variance_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./variance.js */ "../../victory-histogram/node_modules/d3-array/src/variance.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "variance", function() { return _variance_js__WEBPACK_IMPORTED_MODULE_35__["default"]; }); /* harmony import */ var _zip_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./zip.js */ "../../victory-histogram/node_modules/d3-array/src/zip.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return _zip_js__WEBPACK_IMPORTED_MODULE_36__["default"]; }); // Deprecated; use bin. // Deprecated; use leastIndex. /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/least.js": /*!*********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/least.js ***! \*********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return least; }); /* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending.js */ "../../victory-histogram/node_modules/d3-array/src/ascending.js"); function least(values, compare = _ascending_js__WEBPACK_IMPORTED_MODULE_0__["default"]) { let min; let defined = false; if (compare.length === 1) { let minValue; for (const element of values) { const value = compare(element); if (defined ? Object(_ascending_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value, minValue) < 0 : Object(_ascending_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value, value) === 0) { min = element; minValue = value; defined = true; } } } else { for (const value of values) { if (defined ? compare(value, min) < 0 : compare(value, value) === 0) { min = value; defined = true; } } } return min; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/leastIndex.js": /*!**************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/leastIndex.js ***! \**************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return leastIndex; }); /* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending.js */ "../../victory-histogram/node_modules/d3-array/src/ascending.js"); /* harmony import */ var _minIndex_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./minIndex.js */ "../../victory-histogram/node_modules/d3-array/src/minIndex.js"); function leastIndex(values, compare = _ascending_js__WEBPACK_IMPORTED_MODULE_0__["default"]) { if (compare.length === 1) return Object(_minIndex_js__WEBPACK_IMPORTED_MODULE_1__["default"])(values, compare); let minValue; let min = -1; let index = -1; for (const value of values) { ++index; if (min < 0 ? compare(value, value) === 0 : compare(value, minValue) < 0) { minValue = value; min = index; } } return min; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/max.js": /*!*******************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/max.js ***! \*******************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return max; }); function max(values, valueof) { let max; if (valueof === undefined) { for (const value of values) { if (value != null && (max < value || (max === undefined && value >= value))) { max = value; } } } else { let index = -1; for (let value of values) { if ((value = valueof(value, ++index, values)) != null && (max < value || (max === undefined && value >= value))) { max = value; } } } return max; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/maxIndex.js": /*!************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/maxIndex.js ***! \************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return maxIndex; }); function maxIndex(values, valueof) { let max; let maxIndex = -1; let index = -1; if (valueof === undefined) { for (const value of values) { ++index; if (value != null && (max < value || (max === undefined && value >= value))) { max = value, maxIndex = index; } } } else { for (let value of values) { if ((value = valueof(value, ++index, values)) != null && (max < value || (max === undefined && value >= value))) { max = value, maxIndex = index; } } } return maxIndex; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/mean.js": /*!********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/mean.js ***! \********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return mean; }); function mean(values, valueof) { let count = 0; let sum = 0; if (valueof === undefined) { for (let value of values) { if (value != null && (value = +value) >= value) { ++count, sum += value; } } } else { let index = -1; for (let value of values) { if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) { ++count, sum += value; } } } if (count) return sum / count; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/median.js": /*!**********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/median.js ***! \**********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _quantile_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./quantile.js */ "../../victory-histogram/node_modules/d3-array/src/quantile.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) { return Object(_quantile_js__WEBPACK_IMPORTED_MODULE_0__["default"])(values, 0.5, valueof); }); /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/merge.js": /*!*********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/merge.js ***! \*********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return merge; }); function* flatten(arrays) { for (const array of arrays) { yield* array; } } function merge(arrays) { return Array.from(flatten(arrays)); } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/min.js": /*!*******************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/min.js ***! \*******************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return min; }); function min(values, valueof) { let min; if (valueof === undefined) { for (const value of values) { if (value != null && (min > value || (min === undefined && value >= value))) { min = value; } } } else { let index = -1; for (let value of values) { if ((value = valueof(value, ++index, values)) != null && (min > value || (min === undefined && value >= value))) { min = value; } } } return min; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/minIndex.js": /*!************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/minIndex.js ***! \************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return minIndex; }); function minIndex(values, valueof) { let min; let minIndex = -1; let index = -1; if (valueof === undefined) { for (const value of values) { ++index; if (value != null && (min > value || (min === undefined && value >= value))) { min = value, minIndex = index; } } } else { for (let value of values) { if ((value = valueof(value, ++index, values)) != null && (min > value || (min === undefined && value >= value))) { min = value, minIndex = index; } } } return minIndex; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/number.js": /*!**********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/number.js ***! \**********************************************************************************************************/ /*! exports provided: default, numbers */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "numbers", function() { return numbers; }); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return x === null ? NaN : +x; }); function* numbers(values, valueof) { if (valueof === undefined) { for (let value of values) { if (value != null && (value = +value) >= value) { yield value; } } } else { let index = -1; for (let value of values) { if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) { yield value; } } } } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/pairs.js": /*!*********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/pairs.js ***! \*********************************************************************************************************/ /*! exports provided: default, pair */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return pairs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pair", function() { return pair; }); function pairs(values, pairof = pair) { const pairs = []; let previous; let first = false; for (const value of values) { if (first) pairs.push(pairof(previous, value)); previous = value; first = true; } return pairs; } function pair(a, b) { return [a, b]; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/permute.js": /*!***********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/permute.js ***! \***********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(source, keys) { return Array.from(keys, key => source[key]); }); /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/quantile.js": /*!************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/quantile.js ***! \************************************************************************************************************/ /*! exports provided: default, quantileSorted */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return quantile; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quantileSorted", function() { return quantileSorted; }); /* harmony import */ var _max_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./max.js */ "../../victory-histogram/node_modules/d3-array/src/max.js"); /* harmony import */ var _min_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./min.js */ "../../victory-histogram/node_modules/d3-array/src/min.js"); /* harmony import */ var _quickselect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./quickselect.js */ "../../victory-histogram/node_modules/d3-array/src/quickselect.js"); /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./number.js */ "../../victory-histogram/node_modules/d3-array/src/number.js"); function quantile(values, p, valueof) { values = Float64Array.from(Object(_number_js__WEBPACK_IMPORTED_MODULE_3__["numbers"])(values, valueof)); if (!(n = values.length)) return; if ((p = +p) <= 0 || n < 2) return Object(_min_js__WEBPACK_IMPORTED_MODULE_1__["default"])(values); if (p >= 1) return Object(_max_js__WEBPACK_IMPORTED_MODULE_0__["default"])(values); var n, i = (n - 1) * p, i0 = Math.floor(i), value0 = Object(_max_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_quickselect_js__WEBPACK_IMPORTED_MODULE_2__["default"])(values, i0).subarray(0, i0 + 1)), value1 = Object(_min_js__WEBPACK_IMPORTED_MODULE_1__["default"])(values.subarray(i0 + 1)); return value0 + (value1 - value0) * (i - i0); } function quantileSorted(values, p, valueof = _number_js__WEBPACK_IMPORTED_MODULE_3__["default"]) { if (!(n = values.length)) return; if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values); if (p >= 1) return +valueof(values[n - 1], n - 1, values); var n, i = (n - 1) * p, i0 = Math.floor(i), value0 = +valueof(values[i0], i0, values), value1 = +valueof(values[i0 + 1], i0 + 1, values); return value0 + (value1 - value0) * (i - i0); } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/quickselect.js": /*!***************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/quickselect.js ***! \***************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return quickselect; }); /* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending.js */ "../../victory-histogram/node_modules/d3-array/src/ascending.js"); // Based on https://github.com/mourner/quickselect // ISC license, Copyright 2018 Vladimir Agafonkin. function quickselect(array, k, left = 0, right = array.length - 1, compare = _ascending_js__WEBPACK_IMPORTED_MODULE_0__["default"]) { while (right > left) { if (right - left > 600) { const n = right - left + 1; const m = k - left + 1; const z = Math.log(n); const s = 0.5 * Math.exp(2 * z / 3); const sd = 0.5 * Math.sqrt(z * s * (n - s) / n) * (m - n / 2 < 0 ? -1 : 1); const newLeft = Math.max(left, Math.floor(k - m * s / n + sd)); const newRight = Math.min(right, Math.floor(k + (n - m) * s / n + sd)); quickselect(array, k, newLeft, newRight, compare); } const t = array[k]; let i = left; let j = right; swap(array, left, k); if (compare(array[right], t) > 0) swap(array, left, right); while (i < j) { swap(array, i, j), ++i, --j; while (compare(array[i], t) < 0) ++i; while (compare(array[j], t) > 0) --j; } if (compare(array[left], t) === 0) swap(array, left, j); else ++j, swap(array, j, right); if (j <= k) left = j + 1; if (k <= j) right = j - 1; } return array; } function swap(array, i, j) { const t = array[i]; array[i] = array[j]; array[j] = t; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/range.js": /*!*********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/range.js ***! \*********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(start, stop, step) { start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step; var i = -1, n = Math.max(0, Math.ceil((stop - start) / step)) | 0, range = new Array(n); while (++i < n) { range[i] = start + i * step; } return range; }); /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/scan.js": /*!********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/scan.js ***! \********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return scan; }); /* harmony import */ var _leastIndex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./leastIndex.js */ "../../victory-histogram/node_modules/d3-array/src/leastIndex.js"); function scan(values, compare) { const index = Object(_leastIndex_js__WEBPACK_IMPORTED_MODULE_0__["default"])(values, compare); return index < 0 ? undefined : index; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/shuffle.js": /*!***********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/shuffle.js ***! \***********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return shuffle; }); function shuffle(array, i0 = 0, i1 = array.length) { var m = i1 - (i0 = +i0), t, i; while (m) { i = Math.random() * m-- | 0; t = array[m + i0]; array[m + i0] = array[i + i0]; array[i + i0] = t; } return array; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/sum.js": /*!*******************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/sum.js ***! \*******************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return sum; }); function sum(values, valueof) { let sum = 0; if (valueof === undefined) { for (let value of values) { if (value = +value) { sum += value; } } } else { let index = -1; for (let value of values) { if (value = +valueof(value, ++index, values)) { sum += value; } } } return sum; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/threshold/freedmanDiaconis.js": /*!******************************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/threshold/freedmanDiaconis.js ***! \******************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _count_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../count.js */ "../../victory-histogram/node_modules/d3-array/src/count.js"); /* harmony import */ var _quantile_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../quantile.js */ "../../victory-histogram/node_modules/d3-array/src/quantile.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, min, max) { return Math.ceil((max - min) / (2 * (Object(_quantile_js__WEBPACK_IMPORTED_MODULE_1__["default"])(values, 0.75) - Object(_quantile_js__WEBPACK_IMPORTED_MODULE_1__["default"])(values, 0.25)) * Math.pow(Object(_count_js__WEBPACK_IMPORTED_MODULE_0__["default"])(values), -1 / 3))); }); /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/threshold/scott.js": /*!*******************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/threshold/scott.js ***! \*******************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _count_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../count.js */ "../../victory-histogram/node_modules/d3-array/src/count.js"); /* harmony import */ var _deviation_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../deviation.js */ "../../victory-histogram/node_modules/d3-array/src/deviation.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, min, max) { return Math.ceil((max - min) / (3.5 * Object(_deviation_js__WEBPACK_IMPORTED_MODULE_1__["default"])(values) * Math.pow(Object(_count_js__WEBPACK_IMPORTED_MODULE_0__["default"])(values), -1 / 3))); }); /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/threshold/sturges.js": /*!*********************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/threshold/sturges.js ***! \*********************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _count_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../count.js */ "../../victory-histogram/node_modules/d3-array/src/count.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values) { return Math.ceil(Math.log(Object(_count_js__WEBPACK_IMPORTED_MODULE_0__["default"])(values)) / Math.LN2) + 1; }); /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/ticks.js": /*!*********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/ticks.js ***! \*********************************************************************************************************/ /*! exports provided: default, tickIncrement, tickStep */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tickIncrement", function() { return tickIncrement; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tickStep", function() { return tickStep; }); var e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2); /* harmony default export */ __webpack_exports__["default"] = (function(start, stop, count) { var reverse, i = -1, n, ticks, step; stop = +stop, start = +start, count = +count; if (start === stop && count > 0) return [start]; if (reverse = stop < start) n = start, start = stop, stop = n; if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return []; if (step > 0) { start = Math.ceil(start / step); stop = Math.floor(stop / step); ticks = new Array(n = Math.ceil(stop - start + 1)); while (++i < n) ticks[i] = (start + i) * step; } else { start = Math.floor(start * step); stop = Math.ceil(stop * step); ticks = new Array(n = Math.ceil(start - stop + 1)); while (++i < n) ticks[i] = (start - i) / step; } if (reverse) ticks.reverse(); return ticks; }); function tickIncrement(start, stop, count) { var step = (stop - start) / Math.max(0, count), power = Math.floor(Math.log(step) / Math.LN10), error = step / Math.pow(10, power); return power >= 0 ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power) : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1); } function tickStep(start, stop, count) { var step0 = Math.abs(stop - start) / Math.max(0, count), step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)), error = step0 / step1; if (error >= e10) step1 *= 10; else if (error >= e5) step1 *= 5; else if (error >= e2) step1 *= 2; return stop < start ? -step1 : step1; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/transpose.js": /*!*************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/transpose.js ***! \*************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _min_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./min.js */ "../../victory-histogram/node_modules/d3-array/src/min.js"); /* harmony default export */ __webpack_exports__["default"] = (function(matrix) { if (!(n = matrix.length)) return []; for (var i = -1, m = Object(_min_js__WEBPACK_IMPORTED_MODULE_0__["default"])(matrix, length), transpose = new Array(m); ++i < m;) { for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) { row[j] = matrix[j][i]; } } return transpose; }); function length(d) { return d.length; } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/variance.js": /*!************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/variance.js ***! \************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return variance; }); function variance(values, valueof) { let count = 0; let delta; let mean = 0; let sum = 0; if (valueof === undefined) { for (let value of values) { if (value != null && (value = +value) >= value) { delta = value - mean; mean += delta / ++count; sum += delta * (value - mean); } } } else { let index = -1; for (let value of values) { if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) { delta = value - mean; mean += delta / ++count; sum += delta * (value - mean); } } } if (count > 1) return sum / (count - 1); } /***/ }), /***/ "../../victory-histogram/node_modules/d3-array/src/zip.js": /*!*******************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-histogram/node_modules/d3-array/src/zip.js ***! \*******************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _transpose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transpose.js */ "../../victory-histogram/node_modules/d3-array/src/transpose.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { return Object(_transpose_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arguments); }); /***/ }), /***/ "../../victory-legend/es/helper-methods.js": /*!****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-legend/es/helper-methods.js ***! \****************************************************************************************/ /*! exports provided: getBaseProps, getDimensions */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBaseProps", function() { return getBaseProps; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDimensions", function() { return getDimensions; }); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/range */ "../../../node_modules/lodash/range.js"); /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_sum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/sum */ "../../../node_modules/lodash/sum.js"); /* harmony import */ var lodash_sum__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_sum__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js"); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/groupBy */ "../../../node_modules/lodash/groupBy.js"); /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_groupBy__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } var getColorScale = function (props) { var colorScale = props.colorScale; return typeof colorScale === "string" ? victory_core__WEBPACK_IMPORTED_MODULE_7__["Style"].getColorScale(colorScale) : colorScale || []; }; var getLabelStyles = function (props) { var data = props.data, style = props.style; return data.map(function (datum, index) { var baseLabelStyles = lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, datum.labels, style.labels); return victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateStyle(baseLabelStyles, { datum: datum, index: index, data: data }); }); }; var getStyles = function (props, styleObject) { var style = props.style || {}; styleObject = styleObject || {}; var parentStyleProps = { height: "100%", width: "100%" }; return { parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()(style.parent, styleObject.parent, parentStyleProps), data: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.data, styleObject.data), labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.labels, styleObject.labels), border: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.border, styleObject.border), title: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.title, styleObject.title) }; }; var getCalculatedValues = function (props) { var orientation = props.orientation, theme = props.theme; var defaultStyles = theme && theme.legend && theme.legend.style ? theme.legend.style : {}; var style = getStyles(props, defaultStyles); var colorScale = getColorScale(props); var isHorizontal = orientation === "horizontal"; var borderPadding = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].getPadding({ padding: props.borderPadding }); return lodash_assign__WEBPACK_IMPORTED_MODULE_5___default()({}, props, { style: style, isHorizontal: isHorizontal, colorScale: colorScale, borderPadding: borderPadding }); }; var getColumn = function (props, index) { var itemsPerRow = props.itemsPerRow, isHorizontal = props.isHorizontal; if (!itemsPerRow) { return isHorizontal ? index : 0; } return isHorizontal ? index % itemsPerRow : Math.floor(index / itemsPerRow); }; var getRow = function (props, index) { var itemsPerRow = props.itemsPerRow, isHorizontal = props.isHorizontal; if (!itemsPerRow) { return isHorizontal ? 0 : index; } return isHorizontal ? Math.floor(index / itemsPerRow) : index % itemsPerRow; }; var groupData = function (props) { var data = props.data; var style = props.style && props.style.data || {}; var labelStyles = getLabelStyles(props); return data.map(function (datum, index) { var symbol = datum.symbol || {}; var fontSize = labelStyles[index].fontSize; // eslint-disable-next-line no-magic-numbers var size = symbol.size || style.size || fontSize / 2.5; var symbolSpacer = props.symbolSpacer || Math.max(size, fontSize); return _objectSpread({}, datum, { size: size, symbolSpacer: symbolSpacer, fontSize: fontSize, textSize: victory_core__WEBPACK_IMPORTED_MODULE_7__["TextSize"].approximateTextSize(datum.name, labelStyles[index]), column: getColumn(props, index), row: getRow(props, index) }); }); }; var getColumnWidths = function (props, data) { var gutter = props.gutter || {}; var gutterWidth = typeof gutter === "object" ? (gutter.left || 0) + (gutter.right || 0) : gutter || 0; var dataByColumn = lodash_groupBy__WEBPACK_IMPORTED_MODULE_4___default()(data, "column"); var columns = lodash_keys__WEBPACK_IMPORTED_MODULE_3___default()(dataByColumn); return columns.reduce(function (memo, curr, index) { var lengths = dataByColumn[curr].map(function (d) { return d.textSize.width + d.size + d.symbolSpacer + gutterWidth; }); memo[index] = Math.max.apply(Math, _toConsumableArray(lengths)); return memo; }, []); }; var getRowHeights = function (props, data) { var gutter = props.rowGutter || {}; var gutterHeight = typeof gutter === "object" ? (gutter.top || 0) + (gutter.bottom || 0) : gutter || 0; var dataByRow = lodash_groupBy__WEBPACK_IMPORTED_MODULE_4___default()(data, "row"); return lodash_keys__WEBPACK_IMPORTED_MODULE_3___default()(dataByRow).reduce(function (memo, curr, index) { var rows = dataByRow[curr]; var lengths = rows.map(function (d) { return d.textSize.height + d.symbolSpacer + gutterHeight; }); memo[index] = Math.max.apply(Math, _toConsumableArray(lengths)); return memo; }, []); }; var getTitleDimensions = function (props) { var style = props.style && props.style.title || {}; var textSize = victory_core__WEBPACK_IMPORTED_MODULE_7__["TextSize"].approximateTextSize(props.title, style); var padding = style.padding || 0; return { height: textSize.height + 2 * padding || 0, width: textSize.width + 2 * padding || 0 }; }; var getOffset = function (datum, rowHeights, columnWidths) { var column = datum.column, row = datum.row; return { x: lodash_range__WEBPACK_IMPORTED_MODULE_1___default()(column).reduce(function (memo, curr) { memo += columnWidths[curr]; return memo; }, 0), y: lodash_range__WEBPACK_IMPORTED_MODULE_1___default()(row).reduce(function (memo, curr) { memo += rowHeights[curr]; return memo; }, 0) }; }; var getAnchors = function (titleOrientation, centerTitle) { var standardAnchors = { textAnchor: titleOrientation === "right" ? "end" : "start", verticalAnchor: titleOrientation === "bottom" ? "end" : "start" }; if (centerTitle) { var horizontal = titleOrientation === "top" || titleOrientation === "bottom"; return { textAnchor: horizontal ? "middle" : standardAnchors.textAnchor, verticalAnchor: horizontal ? standardAnchors.verticalAnchor : "middle" }; } else { return standardAnchors; } }; var getTitleStyle = function (props) { var titleOrientation = props.titleOrientation, centerTitle = props.centerTitle, titleComponent = props.titleComponent; var baseStyle = props.style && props.style.title || {}; var componentStyle = titleComponent.props && titleComponent.props.style || {}; var anchors = getAnchors(titleOrientation, centerTitle); return Array.isArray(componentStyle) ? componentStyle.map(function (obj) { return lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, obj, baseStyle, anchors); }) : lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, componentStyle, baseStyle, anchors); }; // eslint-disable-next-line complexity var getTitleProps = function (props, borderProps) { var title = props.title, titleOrientation = props.titleOrientation, centerTitle = props.centerTitle, borderPadding = props.borderPadding; var height = borderProps.height, width = borderProps.width; var style = getTitleStyle(props); var padding = Array.isArray(style) ? style[0].padding : style.padding; var horizontal = titleOrientation === "top" || titleOrientation === "bottom"; var xOrientation = titleOrientation === "bottom" ? "bottom" : "top"; var yOrientation = titleOrientation === "right" ? "right" : "left"; var standardPadding = { x: centerTitle ? width / 2 : borderPadding[xOrientation] + (padding || 0), y: centerTitle ? height / 2 : borderPadding[yOrientation] + (padding || 0) }; var getPadding = function () { return borderPadding[titleOrientation] + (padding || 0); }; var xOffset = horizontal ? standardPadding.x : getPadding(); var yOffset = horizontal ? getPadding() : standardPadding.y; return { x: titleOrientation === "right" ? props.x + width - xOffset : props.x + xOffset, y: titleOrientation === "bottom" ? props.y + height - yOffset : props.y + yOffset, style: style, text: title }; }; var getBorderProps = function (props, contentHeight, contentWidth) { var x = props.x, y = props.y, borderPadding = props.borderPadding, style = props.style; var height = (contentHeight || 0) + borderPadding.top + borderPadding.bottom; var width = (contentWidth || 0) + borderPadding.left + borderPadding.right; return { x: x, y: y, height: height, width: width, style: lodash_assign__WEBPACK_IMPORTED_MODULE_5___default()({ fill: "none" }, style.border) }; }; var getDimensions = function (props, fallbackProps) { var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].modifyProps(props, fallbackProps, "legend"); props = lodash_assign__WEBPACK_IMPORTED_MODULE_5___default()({}, modifiedProps, getCalculatedValues(modifiedProps)); var _props = props, title = _props.title, titleOrientation = _props.titleOrientation; var groupedData = groupData(props); var columnWidths = getColumnWidths(props, groupedData); var rowHeights = getRowHeights(props, groupedData); var titleDimensions = title ? getTitleDimensions(props) : { height: 0, width: 0 }; return { height: titleOrientation === "left" || titleOrientation === "right" ? Math.max(lodash_sum__WEBPACK_IMPORTED_MODULE_2___default()(rowHeights), titleDimensions.height) : lodash_sum__WEBPACK_IMPORTED_MODULE_2___default()(rowHeights) + titleDimensions.height, width: titleOrientation === "left" || titleOrientation === "right" ? lodash_sum__WEBPACK_IMPORTED_MODULE_2___default()(columnWidths) + titleDimensions.width : Math.max(lodash_sum__WEBPACK_IMPORTED_MODULE_2___default()(columnWidths), titleDimensions.width) }; }; var getBaseProps = function (props, fallbackProps) { var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].modifyProps(props, fallbackProps, "legend"); props = lodash_assign__WEBPACK_IMPORTED_MODULE_5___default()({}, modifiedProps, getCalculatedValues(modifiedProps)); var _props2 = props, data = _props2.data, standalone = _props2.standalone, theme = _props2.theme, padding = _props2.padding, style = _props2.style, colorScale = _props2.colorScale, gutter = _props2.gutter, rowGutter = _props2.rowGutter, borderPadding = _props2.borderPadding, title = _props2.title, titleOrientation = _props2.titleOrientation, name = _props2.name, _props2$x = _props2.x, x = _props2$x === void 0 ? 0 : _props2$x, _props2$y = _props2.y, y = _props2$y === void 0 ? 0 : _props2$y; var groupedData = groupData(props); var columnWidths = getColumnWidths(props, groupedData); var rowHeights = getRowHeights(props, groupedData); var labelStyles = getLabelStyles(props); var titleDimensions = title ? getTitleDimensions(props) : { height: 0, width: 0 }; var titleOffset = { x: titleOrientation === "left" ? titleDimensions.width : 0, y: titleOrientation === "top" ? titleDimensions.height : 0 }; var gutterOffset = { x: gutter && typeof gutter === "object" ? gutter.left || 0 : 0, y: rowGutter && typeof rowGutter === "object" ? rowGutter.top || 0 : 0 }; var _getDimensions = getDimensions(props, fallbackProps), height = _getDimensions.height, width = _getDimensions.width; var borderProps = getBorderProps(props, height, width); var titleProps = getTitleProps(props, borderProps); var initialProps = { parent: { data: data, standalone: standalone, theme: theme, padding: padding, name: name, height: props.height, width: props.width, style: style.parent }, all: { border: borderProps, title: titleProps } }; return groupedData.reduce(function (childProps, datum, i) { var color = colorScale[i % colorScale.length]; var dataStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, datum.symbol, style.data, { fill: color }); var eventKey = !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum.eventKey) ? datum.eventKey : i; var offset = getOffset(datum, rowHeights, columnWidths); var originY = y + borderPadding.top + datum.symbolSpacer; var originX = x + borderPadding.left + datum.symbolSpacer; var dataProps = { index: i, data: data, datum: datum, symbol: dataStyle.type || dataStyle.symbol || "circle", size: datum.size, style: dataStyle, y: originY + offset.y + titleOffset.y + gutterOffset.y, x: originX + offset.x + titleOffset.x + gutterOffset.x }; var labelProps = { datum: datum, data: data, text: datum.name, style: labelStyles[i], y: dataProps.y, x: dataProps.x + datum.symbolSpacer + datum.size / 2 }; childProps[eventKey] = { data: dataProps, labels: labelProps }; return childProps; }, initialProps); }; /***/ }), /***/ "../../victory-legend/es/index.js": /*!*******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-legend/es/index.js ***! \*******************************************************************************/ /*! exports provided: VictoryLegend */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_legend__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-legend */ "../../victory-legend/es/victory-legend.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryLegend", function() { return _victory_legend__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /***/ }), /***/ "../../victory-legend/es/victory-legend.js": /*!****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-legend/es/victory-legend.js ***! \****************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helper-methods */ "../../victory-legend/es/helper-methods.js"); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var fallbackProps = { orientation: "vertical", titleOrientation: "top", width: 450, height: 300, x: 0, y: 0 }; var defaultLegendData = [{ name: "Series 1" }, { name: "Series 2" }]; var VictoryLegend = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryLegend, _React$Component); function VictoryLegend() { _classCallCheck(this, VictoryLegend); return _possibleConstructorReturn(this, (VictoryLegend.__proto__ || Object.getPrototypeOf(VictoryLegend)).apply(this, arguments)); } _createClass(VictoryLegend, [{ key: "renderChildren", value: function renderChildren(props) { var _this = this; var dataComponent = props.dataComponent, labelComponent = props.labelComponent, title = props.title; var dataComponents = this.dataKeys.map(function (_dataKey, index) { if (_dataKey === "all") { return undefined; } var dataProps = _this.getComponentProps(dataComponent, "data", index); return react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(dataComponent, dataProps); }).filter(Boolean); var labelComponents = this.dataKeys.map(function (_dataKey, index) { if (_dataKey === "all") { return undefined; } var labelProps = _this.getComponentProps(labelComponent, "labels", index); if (labelProps.text !== undefined && labelProps.text !== null) { return react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(labelComponent, labelProps); } return undefined; }).filter(Boolean); var borderProps = this.getComponentProps(props.borderComponent, "border", "all"); var borderComponent = react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(props.borderComponent, borderProps); if (title) { var titleProps = this.getComponentProps(props.title, "title", "all"); var titleComponent = react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(props.titleComponent, titleProps); return [borderComponent].concat(_toConsumableArray(dataComponents), [titleComponent], _toConsumableArray(labelComponents)); } return [borderComponent].concat(_toConsumableArray(dataComponents), _toConsumableArray(labelComponents)); } }, { key: "render", value: function render() { var role = this.constructor.role; var props = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].modifyProps(this.props, fallbackProps, role); var children = [this.renderChildren(props)]; return props.standalone ? this.renderContainer(props.containerComponent, children) : react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(props.groupComponent, {}, children); } }]); return VictoryLegend; }(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); Object.defineProperty(VictoryLegend, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryLegend" }); Object.defineProperty(VictoryLegend, "role", { configurable: true, enumerable: true, writable: true, value: "legend" }); Object.defineProperty(VictoryLegend, "propTypes", { configurable: true, enumerable: true, writable: true, value: { borderComponent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.element, borderPadding: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({ top: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, bottom: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, left: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, right: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number })]), centerTitle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool, colorScale: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]), containerComponent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.element, data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({ name: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired, label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, symbol: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object })), dataComponent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.element, eventKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_3__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_3__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_3__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]), events: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({ target: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(["data", "labels", "parent"]), eventKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, victory_core__WEBPACK_IMPORTED_MODULE_3__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_3__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_3__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]), eventHandlers: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object })), externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({ callback: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.function, childName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array]), eventKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, victory_core__WEBPACK_IMPORTED_MODULE_3__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_3__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_3__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]), mutation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.function, target: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array]) })), groupComponent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.element, gutter: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({ left: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, right: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number })]), height: victory_core__WEBPACK_IMPORTED_MODULE_3__["PropTypes"].nonNegative, itemsPerRow: victory_core__WEBPACK_IMPORTED_MODULE_3__["PropTypes"].nonNegative, labelComponent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.element, name: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, orientation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(["horizontal", "vertical"]), padding: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({ top: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, bottom: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, left: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, right: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number })]), rowGutter: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({ top: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, bottom: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number })]), sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({ events: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, getEventState: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func }), standalone: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool, style: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({ border: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, labels: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, parent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object }), symbolSpacer: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, theme: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array]), titleComponent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.element, titleOrientation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(["top", "bottom", "left", "right"]), width: victory_core__WEBPACK_IMPORTED_MODULE_3__["PropTypes"].nonNegative, x: victory_core__WEBPACK_IMPORTED_MODULE_3__["PropTypes"].nonNegative, y: victory_core__WEBPACK_IMPORTED_MODULE_3__["PropTypes"].nonNegative } }); Object.defineProperty(VictoryLegend, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { borderComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__["Border"], null), data: defaultLegendData, containerComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__["VictoryContainer"], null), dataComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__["Point"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("g", null), labelComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__["VictoryLabel"], null), standalone: true, theme: victory_core__WEBPACK_IMPORTED_MODULE_3__["VictoryTheme"].grayscale, titleComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__["VictoryLabel"], null) } }); Object.defineProperty(VictoryLegend, "getBaseProps", { configurable: true, enumerable: true, writable: true, value: function (props) { return Object(_helper_methods__WEBPACK_IMPORTED_MODULE_2__["getBaseProps"])(props, fallbackProps); } }); Object.defineProperty(VictoryLegend, "getDimensions", { configurable: true, enumerable: true, writable: true, value: function (props) { return Object(_helper_methods__WEBPACK_IMPORTED_MODULE_2__["getDimensions"])(props, fallbackProps); } }); Object.defineProperty(VictoryLegend, "expectedComponents", { configurable: true, enumerable: true, writable: true, value: ["borderComponent", "containerComponent", "dataComponent", "groupComponent", "labelComponent", "titleComponent"] }); /* harmony default export */ __webpack_exports__["default"] = (Object(victory_core__WEBPACK_IMPORTED_MODULE_3__["addEvents"])(VictoryLegend)); /***/ }), /***/ "../../victory-line/es/curve.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-line/es/curve.js ***! \*****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-shape */ "../../../node_modules/d3-shape/src/index.js"); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/ var defined = function (d) { var y = d._y1 !== undefined ? d._y1 : d._y; return y !== null && y !== undefined && d._y0 !== null; }; var getXAccessor = function (scale) { return function (d) { return scale.x(d._x1 !== undefined ? d._x1 : d._x); }; }; var getYAccessor = function (scale) { return function (d) { return scale.y(d._y1 !== undefined ? d._y1 : d._y); }; }; var getAngleAccessor = function (scale) { return function (d) { var x = scale.x(d._x1 !== undefined ? d._x1 : d._x); return -1 * x + Math.PI / 2; }; }; var toNewName = function (interpolation) { // d3 shape changed the naming scheme for interpolators from "basis" -> "curveBasis" etc. var capitalize = function (s) { return s && s[0].toUpperCase() + s.slice(1); }; return "curve".concat(capitalize(interpolation)); }; var getLineFunction = function (props) { var polar = props.polar, scale = props.scale, horizontal = props.horizontal; var defaultOpenCurve = polar ? false : true; var openCurve = props.openCurve === undefined ? defaultOpenCurve : props.openCurve; var interpolationFunction = typeof props.interpolation === "function" && props.interpolation; var interpolationName = typeof props.interpolation === "string" && (!openCurve ? "".concat(toNewName(props.interpolation), "Closed") : toNewName(props.interpolation)); return polar ? d3_shape__WEBPACK_IMPORTED_MODULE_3__["lineRadial"]().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_3__[interpolationName]).angle(getAngleAccessor(scale)).radius(getYAccessor(scale)) : d3_shape__WEBPACK_IMPORTED_MODULE_3__["line"]().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_3__[interpolationName]).x(horizontal ? getYAccessor(scale) : getXAccessor(scale)).y(horizontal ? getXAccessor(scale) : getYAccessor(scale)); }; var evaluateProps = function (props) { /** * Potential evaluated props are: * `ariaLabel` * `id` * `style` * `tabIndex` */ var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].evaluateProp(props.ariaLabel, props); var id = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].evaluateProp(props.id, props); var style = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({ fill: "none", stroke: "black" }, props.style), props); var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].evaluateProp(props.tabIndex, props); return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { ariaLabel: ariaLabel, id: id, style: style, tabIndex: tabIndex }); }; var Curve = function (props) { props = evaluateProps(props); var _props = props, polar = _props.polar, origin = _props.origin; var lineFunction = getLineFunction(props); var defaultTransform = polar && origin ? "translate(".concat(origin.x, ", ").concat(origin.y, ")") : undefined; return react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(props.pathComponent, _objectSpread({}, props.events, { "aria-label": props.ariaLabel, d: lineFunction(props.data), style: props.style, transform: props.transform || defaultTransform, className: props.className, role: props.role, shapeRendering: props.shapeRendering, clipPath: props.clipPath, tabIndex: props.tabIndex })); }; Curve.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__["CommonProps"].primitiveProps, { interpolation: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func]), openCurve: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, origin: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, pathComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, polar: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool }); Curve.defaultProps = { pathComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["Path"], null), role: "presentation", shapeRendering: "auto" }; /* harmony default export */ __webpack_exports__["default"] = (Curve); /***/ }), /***/ "../../victory-line/es/helper-methods.js": /*!**************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-line/es/helper-methods.js ***! \**************************************************************************************/ /*! exports provided: getBaseProps */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBaseProps", function() { return getBaseProps; }); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); var getCalculatedValues = function (props) { var data = victory_core__WEBPACK_IMPORTED_MODULE_2__["Data"].getData(props); if (data.length < 2) { data = []; } var range = { x: victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getRange(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getRange(props, "y") }; var domain = { x: victory_core__WEBPACK_IMPORTED_MODULE_2__["Domain"].getDomain(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_2__["Domain"].getDomain(props, "y") }; var scale = { x: victory_core__WEBPACK_IMPORTED_MODULE_2__["Scale"].getBaseScale(props, "x").domain(domain.x).range(props.horizontal ? range.y : range.x), y: victory_core__WEBPACK_IMPORTED_MODULE_2__["Scale"].getBaseScale(props, "y").domain(domain.y).range(props.horizontal ? range.x : range.y) }; var origin = props.polar ? props.origin || victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getPolarOrigin(props) : undefined; var defaultStyles = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getDefaultStyles(props, "line"); var style = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].getStyles(props.style, defaultStyles); return { domain: domain, data: data, scale: scale, style: style, origin: origin }; }; var getBaseProps = function (props, fallbackProps) { var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].modifyProps(props, fallbackProps, "line"); props = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, modifiedProps, getCalculatedValues(modifiedProps)); var _props = props, data = _props.data, domain = _props.domain, events = _props.events, groupComponent = _props.groupComponent, height = _props.height, horizontal = _props.horizontal, interpolation = _props.interpolation, origin = _props.origin, padding = _props.padding, polar = _props.polar, scale = _props.scale, sharedEvents = _props.sharedEvents, standalone = _props.standalone, style = _props.style, theme = _props.theme, width = _props.width, labels = _props.labels, name = _props.name; var initialChildProps = { parent: { style: style.parent, scale: scale, data: data, height: height, width: width, name: name, domain: domain, standalone: standalone, polar: polar, origin: origin, padding: padding, horizontal: horizontal }, all: { data: { horizontal: horizontal, polar: polar, origin: origin, scale: scale, data: data, interpolation: interpolation, groupComponent: groupComponent, style: style.data, theme: theme } } }; return data.reduce(function (childProps, datum, index) { var text = victory_core__WEBPACK_IMPORTED_MODULE_2__["LabelHelpers"].getText(props, datum, index); if (text !== undefined && text !== null || labels && (events || sharedEvents)) { var eventKey = !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum.eventKey) ? datum.eventKey : index; childProps[eventKey] = { labels: victory_core__WEBPACK_IMPORTED_MODULE_2__["LabelHelpers"].getProps(props, index) }; } return childProps; }, initialChildProps); }; /***/ }), /***/ "../../victory-line/es/index.js": /*!*****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-line/es/index.js ***! \*****************************************************************************/ /*! exports provided: VictoryLine, Curve */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_line__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-line */ "../../victory-line/es/victory-line.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryLine", function() { return _victory_line__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _curve__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./curve */ "../../victory-line/es/curve.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Curve", function() { return _curve__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /***/ }), /***/ "../../victory-line/es/victory-line.js": /*!************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-line/es/victory-line.js ***! \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helper-methods */ "../../victory-line/es/helper-methods.js"); /* harmony import */ var _curve__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./curve */ "../../victory-line/es/curve.js"); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var fallbackProps = { width: 450, height: 300, padding: 50, interpolation: "linear" }; var options = { components: [{ name: "parent", index: "parent" }, { name: "data", index: "all" }, { name: "labels" }] }; var VictoryLine = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryLine, _React$Component); function VictoryLine() { _classCallCheck(this, VictoryLine); return _possibleConstructorReturn(this, (VictoryLine.__proto__ || Object.getPrototypeOf(VictoryLine)).apply(this, arguments)); } _createClass(VictoryLine, [{ key: "shouldAnimate", // Overridden in native versions value: function shouldAnimate() { return !!this.props.animate; } }, { key: "render", value: function render() { var animationWhitelist = VictoryLine.animationWhitelist, role = VictoryLine.role; var props = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].modifyProps(this.props, fallbackProps, role); if (this.shouldAnimate()) { return this.animateComponent(props, animationWhitelist); } var children = this.renderContinuousData(props); return props.standalone ? this.renderContainer(props.containerComponent, children) : children; } }]); return VictoryLine; }(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); Object.defineProperty(VictoryLine, "animationWhitelist", { configurable: true, enumerable: true, writable: true, value: ["data", "domain", "height", "padding", "samples", "style", "width"] }); Object.defineProperty(VictoryLine, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryLine" }); Object.defineProperty(VictoryLine, "role", { configurable: true, enumerable: true, writable: true, value: "line" }); Object.defineProperty(VictoryLine, "defaultTransitions", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_4__["DefaultTransitions"].continuousTransitions() }); Object.defineProperty(VictoryLine, "defaultPolarTransitions", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_4__["DefaultTransitions"].continuousPolarTransitions() }); Object.defineProperty(VictoryLine, "continuous", { configurable: true, enumerable: true, writable: true, value: true }); Object.defineProperty(VictoryLine, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__["CommonProps"].baseProps, victory_core__WEBPACK_IMPORTED_MODULE_4__["CommonProps"].dataProps, { interpolation: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(["basis", "bundle", "cardinal", "catmullRom", "linear", "monotoneX", "monotoneY", "natural", "step", "stepAfter", "stepBefore"]), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func]), label: victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].deprecated(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, "Use `labels` instead for individual data labels") }) }); Object.defineProperty(VictoryLine, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { containerComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryContainer"], null), dataComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_curve__WEBPACK_IMPORTED_MODULE_3__["default"], null), labelComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], { renderInPortal: true }), groupComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryClipContainer"], null), samples: 50, sortKey: "x", sortOrder: "ascending", standalone: true, theme: victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryTheme"].grayscale } }); Object.defineProperty(VictoryLine, "getDomain", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_4__["Domain"].getDomain }); Object.defineProperty(VictoryLine, "getData", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_4__["Data"].getData }); Object.defineProperty(VictoryLine, "getBaseProps", { configurable: true, enumerable: true, writable: true, value: function (props) { return Object(_helper_methods__WEBPACK_IMPORTED_MODULE_2__["getBaseProps"])(props, fallbackProps); } }); Object.defineProperty(VictoryLine, "expectedComponents", { configurable: true, enumerable: true, writable: true, value: ["dataComponent", "labelComponent", "groupComponent", "containerComponent"] }); /* harmony default export */ __webpack_exports__["default"] = (Object(victory_core__WEBPACK_IMPORTED_MODULE_4__["addEvents"])(VictoryLine, options)); /***/ }), /***/ "../../victory-pie/es/helper-methods.js": /*!*************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-pie/es/helper-methods.js ***! \*************************************************************************************/ /*! exports provided: getBaseProps */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBaseProps", function() { return getBaseProps; }); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js"); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-shape */ "../../../node_modules/d3-shape/src/index.js"); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); var checkForValidText = function (text) { if (text === undefined || text === null || lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(text)) { return text; } else { return "".concat(text); } }; var getColor = function (style, colors, index) { if (style && style.data && style.data.fill) { return style.data.fill; } return colors && colors[index % colors.length]; }; var getRadius = function (props, padding) { if (typeof props.radius === "number") { return props.radius; } return Math.min(props.width - padding.left - padding.right, props.height - padding.top - padding.bottom) / 2; }; var getOrigin = function (props, padding) { var width = props.width, height = props.height; var origin = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(props.origin) ? props.origin : {}; return { x: origin.x !== undefined ? origin.x : (padding.left - padding.right + width) / 2, y: origin.y !== undefined ? origin.y : (padding.top - padding.bottom + height) / 2 }; }; var getSlices = function (props, data) { var padAngle = lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(props.padAngle) ? 0 : props.padAngle; var layoutFunction = d3_shape__WEBPACK_IMPORTED_MODULE_5__["pie"]().sort(null).startAngle(victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].degreesToRadians(props.startAngle)).endAngle(victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].degreesToRadians(props.endAngle)).padAngle(victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].degreesToRadians(padAngle)).value(function (datum) { return datum._y; }); return layoutFunction(data); }; var getCalculatedValues = function (props) { var colorScale = props.colorScale; var styleObject = victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].getDefaultStyles(props, "pie"); var style = victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].getStyles(props.style, styleObject, "auto", "100%"); var colors = Array.isArray(colorScale) ? colorScale : victory_core__WEBPACK_IMPORTED_MODULE_6__["Style"].getColorScale(colorScale); var padding = victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].getPadding(props); var defaultRadius = getRadius(props, padding); var origin = getOrigin(props, padding); var data = victory_core__WEBPACK_IMPORTED_MODULE_6__["Data"].getData(props); var slices = getSlices(props, data); return lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, { style: style, colors: colors, padding: padding, defaultRadius: defaultRadius, data: data, slices: slices, origin: origin }); }; var getSliceStyle = function (index, calculatedValues) { var style = calculatedValues.style, colors = calculatedValues.colors; var fill = getColor(style, colors, index); return lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({ fill: fill }, style.data); }; var getLabelText = function (props, datum, index) { var text; if (datum.label) { text = datum.label; } else if (Array.isArray(props.labels)) { text = props.labels[index]; } else { text = lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(props.labels) ? props.labels : datum.xName || datum._x; } return checkForValidText(text); }; var getLabelArc = function (radius, labelRadius, style) { var padding = style && style.padding || 0; var arcRadius = labelRadius || radius + padding; return d3_shape__WEBPACK_IMPORTED_MODULE_5__["arc"]().outerRadius(arcRadius).innerRadius(arcRadius); }; var getLabelPosition = function (arc, slice, position) { var construct = { startAngle: position === "startAngle" ? slice.startAngle : slice.endAngle, endAngle: position === "endAngle" ? slice.endAngle : slice.startAngle }; var clonedArc = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, slice, construct); return arc.centroid(clonedArc); }; var getLabelOrientation = function (degree, labelPlacement) { if (labelPlacement === "perpendicular") { return degree > 90 && degree < 270 ? "bottom" : "top"; } else if (labelPlacement === "parallel") { return degree >= 0 && degree <= 180 ? "right" : "left"; } if (degree < 45 || degree > 315) { return "top"; } else if (degree >= 45 && degree < 135) { return "right"; } else if (degree >= 135 && degree < 225) { return "bottom"; } else { return "left"; } }; var getTextAnchor = function (orientation) { if (orientation === "top" || orientation === "bottom") { return "middle"; } return orientation === "right" ? "start" : "end"; }; var getVerticalAnchor = function (orientation) { if (orientation === "left" || orientation === "right") { return "middle"; } return orientation === "bottom" ? "start" : "end"; }; var getBaseLabelAngle = function (slice, labelPosition, labelStyle) { var baseAngle = 0; if (labelPosition.angle !== undefined) { baseAngle = labelStyle.angle; } else if (labelPosition === "centroid") { baseAngle = victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].radiansToDegrees((slice.startAngle + slice.endAngle) / 2); } else { baseAngle = labelPosition === "startAngle" ? victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].radiansToDegrees(slice.startAngle) : victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].radiansToDegrees(slice.endAngle); } var positiveAngle = baseAngle < 0 ? 360 - baseAngle : baseAngle; return positiveAngle % 360; }; var getLabelAngle = function (baseAngle, labelPlacement) { if (labelPlacement === "vertical") { return 0; } if (labelPlacement === "parallel") { return baseAngle > 180 && baseAngle < 360 ? baseAngle + 90 : baseAngle - 90; } return baseAngle > 90 && baseAngle < 270 ? baseAngle - 180 : baseAngle; }; var getLabelProps = function (text, dataProps, calculatedValues) { var index = dataProps.index, datum = dataProps.datum, data = dataProps.data, slice = dataProps.slice, labelComponent = dataProps.labelComponent, theme = dataProps.theme; var style = calculatedValues.style, defaultRadius = calculatedValues.defaultRadius, origin = calculatedValues.origin, width = calculatedValues.width, height = calculatedValues.height; var labelRadius = victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].evaluateProp(calculatedValues.labelRadius, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({ text: text }, dataProps)); var labelPosition = victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].evaluateProp(calculatedValues.labelPosition, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({ text: text }, dataProps)) || "centroid"; var labelPlacement = victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].evaluateProp(calculatedValues.labelPlacement, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({ text: text }, dataProps)) || "vertical"; var labelStyle = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({ padding: 0 }, style.labels); var evaluatedStyle = victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].evaluateStyle(labelStyle, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({ labelRadius: labelRadius, text: text }, dataProps)); var labelArc = getLabelArc(defaultRadius, labelRadius, evaluatedStyle); var position = getLabelPosition(labelArc, slice, labelPosition); var baseAngle = getBaseLabelAngle(slice, labelPosition, labelStyle); var labelAngle = getLabelAngle(baseAngle, labelPlacement); var orientation = getLabelOrientation(baseAngle, labelPlacement); var textAnchor = labelStyle.textAnchor || getTextAnchor(orientation); var verticalAnchor = labelStyle.verticalAnchor || getVerticalAnchor(orientation); var labelProps = { width: width, height: height, index: index, datum: datum, data: data, slice: slice, orientation: orientation, text: text, style: labelStyle, x: Math.round(position[0]) + origin.x, y: Math.round(position[1]) + origin.y, textAnchor: textAnchor, verticalAnchor: verticalAnchor, angle: labelAngle }; if (!victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].isTooltip(labelComponent)) { return labelProps; } var tooltipTheme = theme && theme.tooltip || {}; return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, labelProps, victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].omit(tooltipTheme, ["style"])); }; var getBaseProps = function (props, fallbackProps) { props = victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].modifyProps(props, fallbackProps, "pie"); var calculatedValues = getCalculatedValues(props); var slices = calculatedValues.slices, style = calculatedValues.style, data = calculatedValues.data, origin = calculatedValues.origin, defaultRadius = calculatedValues.defaultRadius, labels = calculatedValues.labels, events = calculatedValues.events, sharedEvents = calculatedValues.sharedEvents, height = calculatedValues.height, width = calculatedValues.width, standalone = calculatedValues.standalone, name = calculatedValues.name, innerRadius = calculatedValues.innerRadius, cornerRadius = calculatedValues.cornerRadius, padAngle = calculatedValues.padAngle; var radius = props.radius || defaultRadius; var initialChildProps = { parent: { standalone: standalone, height: height, width: width, slices: slices, name: name, style: style.parent } }; return slices.reduce(function (childProps, slice, index) { var datum = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, data[index], { startAngle: victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].radiansToDegrees(slice.startAngle), endAngle: victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].radiansToDegrees(slice.endAngle), padAngle: victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].radiansToDegrees(slice.padAngle) }); var eventKey = !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum.eventKey) ? datum.eventKey : index; var dataProps = { index: index, slice: slice, datum: datum, data: data, origin: origin, innerRadius: innerRadius, radius: radius, cornerRadius: cornerRadius, padAngle: padAngle, style: getSliceStyle(index, calculatedValues) }; childProps[eventKey] = { data: dataProps }; var text = getLabelText(props, datum, index); if (text !== undefined && text !== null || labels && (events || sharedEvents)) { var evaluatedText = victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].evaluateProp(text, dataProps); childProps[eventKey].labels = getLabelProps(evaluatedText, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, dataProps), calculatedValues); } return childProps; }, initialChildProps); }; /***/ }), /***/ "../../victory-pie/es/index.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-pie/es/index.js ***! \****************************************************************************/ /*! exports provided: VictoryPie, Slice */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_pie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-pie */ "../../victory-pie/es/victory-pie.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryPie", function() { return _victory_pie__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _slice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slice */ "../../victory-pie/es/slice.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slice", function() { return _slice__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /***/ }), /***/ "../../victory-pie/es/slice.js": /*!****************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-pie/es/slice.js ***! \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! d3-shape */ "../../../node_modules/d3-shape/src/index.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } var getPath = function (props) { var slice = props.slice, radius = props.radius, innerRadius = props.innerRadius, cornerRadius = props.cornerRadius; if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(props.pathFunction)) { return props.pathFunction(slice); } var padAngle = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].degreesToRadians(props.padAngle); var startAngle = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].degreesToRadians(props.sliceStartAngle); var endAngle = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].degreesToRadians(props.sliceEndAngle); var pathFunction = d3_shape__WEBPACK_IMPORTED_MODULE_6__["arc"]().cornerRadius(cornerRadius).outerRadius(radius).innerRadius(innerRadius || 0); return pathFunction(lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({ startAngle: startAngle, endAngle: endAngle, padAngle: padAngle }, slice)); }; var evaluateProps = function (props) { /** * * Potential evaluated props of following must be evaluated in this order: * 1) `style` * 2) `radius` * 3) `innerRadius` * * Everything else does not have to be evaluated in a particular order: * `ariaLabel` * `id` * `cornerRadius` * `padAngle` * `sliceStartAngle` * `sliceEndAngle` * `tabIndex` */ var style = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateStyle(props.style, props); var radius = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.radius, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { style: style })); var innerRadius = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.innerRadius, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { style: style, radius: radius })); var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.ariaLabel, props); var id = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.id, props); var cornerRadius = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.cornerRadius, props); var padAngle = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.padAngle, props); var sliceStartAngle = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.sliceStartAngle, props); var sliceEndAngle = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.sliceEndAngle, props); var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].evaluateProp(props.tabIndex, props); return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { ariaLabel: ariaLabel, style: style, radius: radius, innerRadius: innerRadius, id: id, cornerRadius: cornerRadius, padAngle: padAngle, sliceStartAngle: sliceStartAngle, sliceEndAngle: sliceEndAngle, tabIndex: tabIndex }); }; var Slice = function (props) { props = evaluateProps(props); var defaultTransform = props.origin ? "translate(".concat(props.origin.x, ", ").concat(props.origin.y, ")") : undefined; return react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(props.pathComponent, _objectSpread({}, props.events, { "aria-label": props.ariaLabel, d: getPath(props), style: props.style, transform: props.transform || defaultTransform, className: props.className, role: props.role, shapeRendering: props.shapeRendering, clipPath: props.clipPath, tabIndex: props.tabIndex })); }; Slice.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__["CommonProps"].primitiveProps, { cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), datum: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object, innerRadius: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), padAngle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), pathComponent: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.element, pathFunction: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func, radius: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), slice: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object, sliceEndAngle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]), sliceStartAngle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]) }); Slice.defaultProps = { pathComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__["Path"], null), role: "presentation", shapeRendering: "auto" }; /* harmony default export */ __webpack_exports__["default"] = (Slice); /***/ }), /***/ "../../victory-pie/es/victory-pie.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-pie/es/victory-pie.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var _slice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./slice */ "../../victory-pie/es/slice.js"); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helper-methods */ "../../victory-pie/es/helper-methods.js"); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/ var fallbackProps = { endAngle: 360, height: 400, innerRadius: 0, cornerRadius: 0, padAngle: 0, padding: 30, width: 400, startAngle: 0, colorScale: ["#ffffff", "#f0f0f0", "#d9d9d9", "#bdbdbd", "#969696", "#737373", "#525252", "#252525", "#000000"], labelPosition: "centroid" }; var VictoryPie = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryPie, _React$Component); function VictoryPie() { _classCallCheck(this, VictoryPie); return _possibleConstructorReturn(this, (VictoryPie.__proto__ || Object.getPrototypeOf(VictoryPie)).apply(this, arguments)); } _createClass(VictoryPie, [{ key: "shouldAnimate", // Overridden in victory-native value: function shouldAnimate() { return Boolean(this.props.animate); } }, { key: "render", value: function render() { var animationWhitelist = VictoryPie.animationWhitelist, role = VictoryPie.role; var props = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].modifyProps(this.props, fallbackProps, role); if (this.shouldAnimate()) { return this.animateComponent(props, animationWhitelist); } var children = this.renderData(props); return props.standalone ? this.renderContainer(props.containerComponent, children) : children; } }]); return VictoryPie; }(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); Object.defineProperty(VictoryPie, "animationWhitelist", { configurable: true, enumerable: true, writable: true, value: ["data", "endAngle", "height", "innerRadius", "cornerRadius", "padAngle", "padding", "colorScale", "startAngle", "style", "width"] }); Object.defineProperty(VictoryPie, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryPie" }); Object.defineProperty(VictoryPie, "role", { configurable: true, enumerable: true, writable: true, value: "pie" }); Object.defineProperty(VictoryPie, "defaultTransitions", { configurable: true, enumerable: true, writable: true, value: { onExit: { duration: 500, before: function () { return { _y: 0, label: " " }; } }, onEnter: { duration: 500, before: function () { return { _y: 0, label: " " }; }, after: function (datum) { return { y_: datum._y, label: datum.label }; } } } }); Object.defineProperty(VictoryPie, "propTypes", { configurable: true, enumerable: true, writable: true, value: { animate: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object]), colorScale: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]), containerComponent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.element, cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func]), data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, dataComponent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.element, endAngle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, eventKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]), events: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({ target: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(["data", "labels", "parent"]), eventKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]), eventHandlers: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object })), externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({ callback: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.function, childName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array]), eventKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]), mutation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.function, target: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array]) })), groupComponent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.element, height: victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative, innerRadius: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func]), labelComponent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.element, labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(["parallel", "perpendicular", "vertical"])]), labelPosition: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(["startAngle", "centroid", "endAngle"])]), labelRadius: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func]), labels: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array]), name: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, origin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({ x: victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative, y: victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative }), padAngle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func]), padding: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({ top: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, bottom: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, left: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, right: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number })]), radius: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func]), sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({ events: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, getEventState: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func }), sortKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string)]), sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(["ascending", "descending"]), standalone: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool, startAngle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, style: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({ parent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, labels: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object }), theme: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, width: victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative, x: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string)]), y: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string)]) } }); Object.defineProperty(VictoryPie, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { data: [{ x: "A", y: 1 }, { x: "B", y: 2 }, { x: "C", y: 3 }, { x: "D", y: 1 }, { x: "E", y: 2 }], standalone: true, dataComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_slice__WEBPACK_IMPORTED_MODULE_3__["default"], null), labelComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__["VictoryLabel"], null), containerComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__["VictoryContainer"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("g", null), sortOrder: "ascending", theme: victory_core__WEBPACK_IMPORTED_MODULE_2__["VictoryTheme"].grayscale } }); Object.defineProperty(VictoryPie, "getBaseProps", { configurable: true, enumerable: true, writable: true, value: function (props) { return Object(_helper_methods__WEBPACK_IMPORTED_MODULE_4__["getBaseProps"])(props, fallbackProps); } }); Object.defineProperty(VictoryPie, "getData", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_2__["Data"].getData }); Object.defineProperty(VictoryPie, "expectedComponents", { configurable: true, enumerable: true, writable: true, value: ["dataComponent", "labelComponent", "groupComponent", "containerComponent"] }); /* harmony default export */ __webpack_exports__["default"] = (Object(victory_core__WEBPACK_IMPORTED_MODULE_2__["addEvents"])(VictoryPie)); /***/ }), /***/ "../../victory-polar-axis/es/helper-methods.js": /*!********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-polar-axis/es/helper-methods.js ***! \********************************************************************************************/ /*! exports provided: getScale, getStyles, getBaseProps */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getScale", function() { return getScale; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBaseProps", function() { return getBaseProps; }); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/uniqBy */ "../../../node_modules/lodash/uniqBy.js"); /* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); var getPosition = function (r, angle, axis) { return axis === "x" ? r * Math.cos(angle) : -r * Math.sin(angle); }; var getAxisType = function (props) { var typicalType = props.dependentAxis ? "radial" : "angular"; var invertedType = typicalType === "angular" ? "radial" : "angular"; return props.horizontal ? invertedType : typicalType; }; var filterTicks = function (ticks, scale) { var compareTicks = function (t) { return scale(t) % (2 * Math.PI); }; return lodash_uniqBy__WEBPACK_IMPORTED_MODULE_1___default()(ticks, compareTicks); }; var getEvaluatedStyles = function (style, props) { return { tickStyle: victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].evaluateStyle(style.ticks, props), labelStyle: victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].evaluateStyle(style.tickLabels, props), gridStyle: victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].evaluateStyle(style.grid, props) }; }; var getStyleObject = function (props) { var _props$theme = props.theme, theme = _props$theme === void 0 ? {} : _props$theme, dependentAxis = props.dependentAxis; var generalAxisStyle = theme.polarAxis && theme.polarAxis.style || theme.axis && theme.axis.style; var polarAxisType = dependentAxis ? "polarDependentAxis" : "polarIndependentAxis"; var standardAxisType = dependentAxis ? "dependentAxis" : "independentAxis"; var specificAxisStyle = theme[polarAxisType] && theme[polarAxisType].style || theme[standardAxisType] && theme[standardAxisType].style; var mergeStyles = function () { var styleNamespaces = ["axis", "axisLabel", "grid", "parent", "tickLabels", "ticks"]; return styleNamespaces.reduce(function (memo, curr) { memo[curr] = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, specificAxisStyle[curr], generalAxisStyle[curr]); return memo; }, {}); }; return generalAxisStyle && specificAxisStyle ? mergeStyles() : specificAxisStyle || generalAxisStyle; }; var getRadius = function (props) { var _Helpers$getPadding = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getPadding(props), left = _Helpers$getPadding.left, right = _Helpers$getPadding.right, top = _Helpers$getPadding.top, bottom = _Helpers$getPadding.bottom; var width = props.width, height = props.height; return Math.min(width - left - right, height - top - bottom) / 2; }; var getRange = function (props, axis) { // Return the range from props if one is given. if (props.range && props.range[axis]) { return props.range[axis]; } else if (props.range && Array.isArray(props.range)) { return props.range; } var axisType = getAxisType(props); if (axisType === "angular") { var startAngle = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].degreesToRadians(props.startAngle); var endAngle = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].degreesToRadians(props.endAngle); return [startAngle, endAngle]; } var radius = getRadius(props); return [props.innerRadius || 0, radius]; }; // exposed for use by VictoryChart (necessary?) var getScale = function (props) { var axis = victory_core__WEBPACK_IMPORTED_MODULE_3__["Axis"].getAxis(props); var scale = victory_core__WEBPACK_IMPORTED_MODULE_3__["Scale"].getBaseScale(props, axis); var domain = victory_core__WEBPACK_IMPORTED_MODULE_3__["Axis"].getDomain(props, axis) || scale.domain(); var range = getRange(props, axis); scale.range(range); scale.domain(domain); return scale; }; var getStyles = function (props, styleObject) { var style = props.style || {}; styleObject = styleObject || {}; var parentStyleProps = { height: "auto", width: "100%" }; return { parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(parentStyleProps, style.parent, styleObject.parent), axis: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.axis, styleObject.axis), axisLabel: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.axisLabel, styleObject.axisLabel), grid: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.grid, styleObject.grid), ticks: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.ticks, styleObject.ticks), tickLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.tickLabels, styleObject.tickLabels) }; }; var getAxisAngle = function (props) { var axisAngle = props.axisAngle, startAngle = props.startAngle, dependentAxis = props.dependentAxis; var axis = victory_core__WEBPACK_IMPORTED_MODULE_3__["Axis"].getAxis(props); var axisValue = victory_core__WEBPACK_IMPORTED_MODULE_3__["Axis"].getAxisValue(props, axis); if (axisValue === undefined || !dependentAxis) { return axisAngle === undefined ? startAngle : axisAngle; } return victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].radiansToDegrees(axisValue); }; //eslint-disable-next-line max-params var getTickProps = function (props, calculatedValues, tickValue, index) { var axisType = calculatedValues.axisType, radius = calculatedValues.radius, scale = calculatedValues.scale, style = calculatedValues.style, stringTicks = calculatedValues.stringTicks, ticks = calculatedValues.ticks, tickFormat = calculatedValues.tickFormat, origin = calculatedValues.origin; var text = tickFormat(tickValue, index, ticks); var tick = stringTicks ? stringTicks[index] : tickValue; var _getEvaluatedStyles = getEvaluatedStyles(style, { tick: tick, tickValue: tickValue, index: index, ticks: ticks, stringTicks: stringTicks, radius: radius, scale: scale, axisType: axisType, text: text }), tickStyle = _getEvaluatedStyles.tickStyle; var axisAngle = axisType === "radial" ? getAxisAngle(props, scale) : undefined; var tickPadding = tickStyle.padding || tickStyle.size || 0; var padAngle = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].degreesToRadians(90 - axisAngle); var tickAngle = axisType === "angular" ? scale(tickValue) : victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].degreesToRadians(-1 * axisAngle); var tickRadius = axisType === "angular" ? radius : scale(tickValue); return axisType === "angular" ? { index: index, datum: tick, style: tickStyle, x1: getPosition(tickRadius, tickAngle, "x") + origin.x, y1: getPosition(tickRadius, tickAngle, "y") + origin.y, x2: getPosition(tickRadius + tickPadding, tickAngle, "x") + origin.x, y2: getPosition(tickRadius + tickPadding, tickAngle, "y") + origin.y } : { index: index, datum: tick, style: tickStyle, x1: tickRadius * Math.cos(tickAngle) + Math.cos(padAngle) * tickPadding + origin.x, x2: tickRadius * Math.cos(tickAngle) - Math.cos(padAngle) * tickPadding + origin.x, y1: tickRadius * Math.sin(tickAngle) + Math.sin(padAngle) * tickPadding + origin.y, y2: tickRadius * Math.sin(tickAngle) - Math.sin(padAngle) * tickPadding + origin.y }; }; //eslint-disable-next-line max-params var getTickLabelProps = function (props, calculatedValues, tickValue, index) { var axisType = calculatedValues.axisType, radius = calculatedValues.radius, tickFormat = calculatedValues.tickFormat, style = calculatedValues.style, scale = calculatedValues.scale, ticks = calculatedValues.ticks, stringTicks = calculatedValues.stringTicks, origin = calculatedValues.origin; var text = tickFormat(tickValue, index, ticks); var tick = stringTicks ? stringTicks[index] : tickValue; var _getEvaluatedStyles2 = getEvaluatedStyles(style, { text: text, tick: tick, tickValue: tickValue, index: index, ticks: ticks, stringTicks: stringTicks, radius: radius, scale: scale, axisType: axisType }), labelStyle = _getEvaluatedStyles2.labelStyle; var tickLabelComponent = props.tickLabelComponent; var labelPlacement = tickLabelComponent.props && tickLabelComponent.props.labelPlacement ? tickLabelComponent.props.labelPlacement : props.labelPlacement; var tickPadding = labelStyle.padding || 0; var angularPadding = 0; // TODO: do some geometry var axisAngle = axisType === "radial" ? getAxisAngle(props, scale) : undefined; var labelAngle = axisType === "angular" ? victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].radiansToDegrees(scale(tickValue)) : axisAngle + angularPadding; var textAngle = labelStyle.angle === undefined ? victory_core__WEBPACK_IMPORTED_MODULE_3__["LabelHelpers"].getPolarAngle(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { labelPlacement: labelPlacement }), labelAngle) : labelStyle.angle; var labelRadius = axisType === "angular" ? radius + tickPadding : scale(tickValue); var textAnchor = labelStyle.textAnchor || victory_core__WEBPACK_IMPORTED_MODULE_3__["LabelHelpers"].getPolarTextAnchor(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { labelPlacement: labelPlacement }), labelAngle); return { index: index, datum: tick, style: labelStyle, angle: textAngle, textAnchor: textAnchor, text: text, x: labelRadius * Math.cos(victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].degreesToRadians(labelAngle)) + origin.x, y: -labelRadius * Math.sin(victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].degreesToRadians(labelAngle)) + origin.y }; }; //eslint-disable-next-line max-params var getGridProps = function (props, calculatedValues, tickValue, index) { var axisType = calculatedValues.axisType, radius = calculatedValues.radius, style = calculatedValues.style, scale = calculatedValues.scale, stringTicks = calculatedValues.stringTicks, ticks = calculatedValues.ticks, tickFormat = calculatedValues.tickFormat, origin = calculatedValues.origin; var text = tickFormat(tickValue, index, ticks); var startAngle = props.startAngle, endAngle = props.endAngle, _props$innerRadius = props.innerRadius, innerRadius = _props$innerRadius === void 0 ? 0 : _props$innerRadius; var tick = stringTicks ? stringTicks[index] : tickValue; var _getEvaluatedStyles3 = getEvaluatedStyles(style, { tick: tick, tickValue: tickValue, index: index, ticks: ticks, stringTicks: stringTicks, radius: radius, scale: scale, axisType: axisType, text: text }), gridStyle = _getEvaluatedStyles3.gridStyle; var angle = scale(tickValue); return axisType === "angular" ? { index: index, datum: tick, style: gridStyle, x1: getPosition(radius, angle, "x") + origin.x, y1: getPosition(radius, angle, "y") + origin.y, x2: getPosition(innerRadius, angle, "x") + origin.x, y2: getPosition(innerRadius, angle, "y") + origin.y } : { style: gridStyle, index: index, datum: tick, cx: origin.x, cy: origin.y, r: scale(tickValue), startAngle: startAngle, endAngle: endAngle }; }; var getAxisLabelProps = function (props, calculatedValues) { var axisType = calculatedValues.axisType, radius = calculatedValues.radius, style = calculatedValues.style, scale = calculatedValues.scale, origin = calculatedValues.origin; var axisLabelComponent = props.axisLabelComponent; if (axisType !== "radial") { return {}; } var labelPlacement = axisLabelComponent.props && axisLabelComponent.props.labelPlacement ? axisLabelComponent.props.labelPlacement : props.labelPlacement; var labelStyle = style && style.axisLabel || {}; var axisAngle = axisType === "radial" ? getAxisAngle(props, scale) : undefined; var textAngle = labelStyle.angle === undefined ? victory_core__WEBPACK_IMPORTED_MODULE_3__["LabelHelpers"].getPolarAngle(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { labelPlacement: labelPlacement }), axisAngle) : labelStyle.angle; var labelRadius = radius + (labelStyle.padding || 0); var textAnchor = labelStyle.textAnchor || victory_core__WEBPACK_IMPORTED_MODULE_3__["LabelHelpers"].getTextPolarAnchor(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { labelPlacement: labelPlacement }), axisAngle); var verticalAnchor = labelStyle.verticalAnchor || victory_core__WEBPACK_IMPORTED_MODULE_3__["LabelHelpers"].getPolarVerticalAnchor(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { labelPlacement: labelPlacement }), axisAngle); return { style: labelStyle, angle: textAngle, textAnchor: textAnchor, verticalAnchor: verticalAnchor, text: props.label, x: getPosition(labelRadius, victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].degreesToRadians(axisAngle), "x") + origin.x, y: getPosition(labelRadius, victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].degreesToRadians(axisAngle), "y") + origin.y }; }; var getAxisProps = function (modifiedProps, calculatedValues) { var style = calculatedValues.style, axisType = calculatedValues.axisType, radius = calculatedValues.radius, scale = calculatedValues.scale, origin = calculatedValues.origin; var startAngle = modifiedProps.startAngle, endAngle = modifiedProps.endAngle, _modifiedProps$innerR = modifiedProps.innerRadius, innerRadius = _modifiedProps$innerR === void 0 ? 0 : _modifiedProps$innerR; var axisAngle = axisType === "radial" ? victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].degreesToRadians(getAxisAngle(modifiedProps, scale)) : undefined; return axisType === "radial" ? { style: style.axis, x1: getPosition(innerRadius, axisAngle, "x") + origin.x, x2: getPosition(radius, axisAngle, "x") + origin.x, y1: getPosition(innerRadius, axisAngle, "y") + origin.y, y2: getPosition(radius, axisAngle, "y") + origin.y } : { style: style.axis, cx: origin.x, cy: origin.y, r: radius, startAngle: startAngle, endAngle: endAngle }; }; var getCalculatedValues = function (props) { props = lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({ polar: true }, props); var defaultStyles = getStyleObject(props); var style = getStyles(props, defaultStyles); var padding = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getPadding(props); var axis = victory_core__WEBPACK_IMPORTED_MODULE_3__["Axis"].getAxis(props); var axisType = getAxisType(props); var stringTicks = victory_core__WEBPACK_IMPORTED_MODULE_3__["Axis"].stringTicks(props) ? props.tickValues : undefined; var domain = victory_core__WEBPACK_IMPORTED_MODULE_3__["Axis"].getDomain(props, axis); var range = getRange(props, axis); var scale = getScale(props); var initialTicks = victory_core__WEBPACK_IMPORTED_MODULE_3__["Axis"].getTicks(props, scale); var ticks = axisType === "angular" ? filterTicks(initialTicks, scale) : initialTicks; var tickFormat = victory_core__WEBPACK_IMPORTED_MODULE_3__["Axis"].getTickFormat(props, scale); var radius = getRadius(props); var origin = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getPolarOrigin(props); return { axis: axis, style: style, padding: padding, stringTicks: stringTicks, axisType: axisType, scale: scale, ticks: ticks, tickFormat: tickFormat, domain: domain, range: range, radius: radius, origin: origin }; }; var getBaseProps = function (props, fallbackProps) { props = victory_core__WEBPACK_IMPORTED_MODULE_3__["Axis"].modifyProps(props, fallbackProps); var calculatedValues = getCalculatedValues(props); var style = calculatedValues.style, scale = calculatedValues.scale, ticks = calculatedValues.ticks, domain = calculatedValues.domain; var _props = props, width = _props.width, height = _props.height, standalone = _props.standalone, theme = _props.theme, name = _props.name; var axisProps = getAxisProps(props, calculatedValues); var axisLabelProps = getAxisLabelProps(props, calculatedValues); var initialChildProps = { parent: { style: style.parent, ticks: ticks, scale: scale, width: width, height: height, domain: domain, standalone: standalone, theme: theme, name: name } }; return ticks.reduce(function (childProps, tick, index) { childProps[index] = { axis: axisProps, axisLabel: axisLabelProps, ticks: getTickProps(props, calculatedValues, tick, index), tickLabels: getTickLabelProps(props, calculatedValues, tick, index), grid: getGridProps(props, calculatedValues, tick, index) }; return childProps; }, initialChildProps); }; /***/ }), /***/ "../../victory-polar-axis/es/index.js": /*!***********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-polar-axis/es/index.js ***! \***********************************************************************************/ /*! exports provided: VictoryPolarAxis */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_polar_axis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-polar-axis */ "../../victory-polar-axis/es/victory-polar-axis.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryPolarAxis", function() { return _victory_polar_axis__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /***/ }), /***/ "../../victory-polar-axis/es/victory-polar-axis.js": /*!************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-polar-axis/es/victory-polar-axis.js ***! \************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js"); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helper-methods */ "../../victory-polar-axis/es/helper-methods.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var fallbackProps = { width: 450, height: 300, padding: 50 }; var options = { components: [{ name: "axis", index: 0 }, { name: "axisLabel", index: 0 }, { name: "grid" }, { name: "parent", index: "parent" }, { name: "ticks" }, { name: "tickLabels" }] }; var VictoryPolarAxis = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryPolarAxis, _React$Component); function VictoryPolarAxis() { _classCallCheck(this, VictoryPolarAxis); return _possibleConstructorReturn(this, (VictoryPolarAxis.__proto__ || Object.getPrototypeOf(VictoryPolarAxis)).apply(this, arguments)); } _createClass(VictoryPolarAxis, [{ key: "renderAxisLine", value: function renderAxisLine(props) { var dependentAxis = props.dependentAxis; var axisComponent = dependentAxis ? props.axisComponent : props.circularAxisComponent; var axisProps = this.getComponentProps(axisComponent, "axis", 0); return react__WEBPACK_IMPORTED_MODULE_2___default.a.cloneElement(axisComponent, axisProps); } }, { key: "renderLabel", value: function renderLabel(props) { var axisLabelComponent = props.axisLabelComponent, dependentAxis = props.dependentAxis, label = props.label; if (!label || !dependentAxis) { return null; } var axisLabelProps = this.getComponentProps(axisLabelComponent, "axisLabel", 0); return react__WEBPACK_IMPORTED_MODULE_2___default.a.cloneElement(axisLabelComponent, axisLabelProps); } }, { key: "renderAxis", value: function renderAxis(props) { var _this = this; var tickComponent = props.tickComponent, tickLabelComponent = props.tickLabelComponent, name = props.name; var shouldRender = function (componentProps) { var _componentProps$style = componentProps.style, style = _componentProps$style === void 0 ? {} : _componentProps$style, _componentProps$event = componentProps.events, events = _componentProps$event === void 0 ? {} : _componentProps$event; var visible = style.stroke !== "transparent" && style.stroke !== "none" && style.strokeWidth !== 0; return visible || !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events); }; var axisType = props.dependentAxis ? "radial" : "angular"; var gridComponent = axisType === "radial" ? props.circularGridComponent : props.gridComponent; var tickComponents = this.dataKeys.map(function (key, index) { var tickProps = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({ key: "".concat(name, "-tick-").concat(key) }, _this.getComponentProps(tickComponent, "ticks", index)); var TickComponent = react__WEBPACK_IMPORTED_MODULE_2___default.a.cloneElement(tickComponent, tickProps); return shouldRender(TickComponent.props) ? TickComponent : undefined; }).filter(Boolean); var gridComponents = this.dataKeys.map(function (key, index) { var gridProps = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({ key: "".concat(name, "-grid-").concat(key) }, _this.getComponentProps(gridComponent, "grid", index)); var GridComponent = react__WEBPACK_IMPORTED_MODULE_2___default.a.cloneElement(gridComponent, gridProps); return shouldRender(GridComponent.props) ? GridComponent : undefined; }).filter(Boolean); var tickLabelComponents = this.dataKeys.map(function (key, index) { var tickLabelProps = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({ key: "".concat(name, "-tick-").concat(key) }, _this.getComponentProps(tickLabelComponent, "tickLabels", index)); return react__WEBPACK_IMPORTED_MODULE_2___default.a.cloneElement(tickLabelComponent, tickLabelProps); }); var axis = this.renderAxisLine(props); var axisLabel = this.renderLabel(props); var children = [axis, axisLabel].concat(_toConsumableArray(tickComponents), _toConsumableArray(gridComponents), _toConsumableArray(tickLabelComponents)); return this.renderGroup(props, children); } // Overridden in victory-native }, { key: "renderGroup", value: function renderGroup(props, children) { var groupComponent = props.groupComponent; return react__WEBPACK_IMPORTED_MODULE_2___default.a.cloneElement(groupComponent, {}, children); } }, { key: "shouldAnimate", value: function shouldAnimate() { return !!this.props.animate; } }, { key: "render", value: function render() { var animationWhitelist = VictoryPolarAxis.animationWhitelist; var props = victory_core__WEBPACK_IMPORTED_MODULE_4__["Axis"].modifyProps(this.props, fallbackProps); if (this.shouldAnimate()) { return this.animateComponent(props, animationWhitelist); } var children = this.renderAxis(props); return props.standalone ? this.renderContainer(props.containerComponent, children) : children; } }]); return VictoryPolarAxis; }(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component); Object.defineProperty(VictoryPolarAxis, "animationWhitelist", { configurable: true, enumerable: true, writable: true, value: ["style", "domain", "range", "tickCount", "tickValues", "padding", "width", "height"] }); Object.defineProperty(VictoryPolarAxis, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryAxis" }); Object.defineProperty(VictoryPolarAxis, "role", { configurable: true, enumerable: true, writable: true, value: "axis" }); Object.defineProperty(VictoryPolarAxis, "defaultTransitions", { configurable: true, enumerable: true, writable: true, value: { onExit: { duration: 500 }, onEnter: { duration: 500 } } }); Object.defineProperty(VictoryPolarAxis, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__["CommonProps"].baseProps, { axisAngle: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, axisComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, axisLabelComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, axisValue: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object]), categories: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string), y: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string) })]), circularAxisComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, circularGridComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, containerComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, dependentAxis: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, endAngle: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, events: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({ target: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(["axis", "axisLabel", "grid", "ticks", "tickLabels"]), eventKey: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string]), eventHandlers: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object })), gridComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, innerRadius: victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].nonNegative, labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(["parallel", "perpendicular", "vertical"]), startAngle: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, stringMap: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, style: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({ parent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, axis: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, axisLabel: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, grid: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, ticks: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, tickLabels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object }), tickComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, tickCount: victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].greaterThanZero]), tickFormat: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].homogeneousArray]), tickLabelComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, tickValues: victory_core__WEBPACK_IMPORTED_MODULE_4__["PropTypes"].homogeneousArray }) }); Object.defineProperty(VictoryPolarAxis, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { axisComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["LineSegment"], null), axisLabelComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], null), circularAxisComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["Arc"], null), circularGridComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["Arc"], null), containerComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryContainer"], null), endAngle: 360, gridComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["LineSegment"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("g", { role: "presentation" }), labelPlacement: "parallel", startAngle: 0, standalone: true, theme: victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryTheme"].grayscale, tickComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["LineSegment"], null), tickLabelComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["VictoryLabel"], null) } }); Object.defineProperty(VictoryPolarAxis, "getDomain", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_4__["Axis"].getDomain }); Object.defineProperty(VictoryPolarAxis, "getAxis", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_4__["Axis"].getAxis }); Object.defineProperty(VictoryPolarAxis, "getScale", { configurable: true, enumerable: true, writable: true, value: _helper_methods__WEBPACK_IMPORTED_MODULE_5__["getScale"] }); Object.defineProperty(VictoryPolarAxis, "getStyles", { configurable: true, enumerable: true, writable: true, value: function (props) { return Object(_helper_methods__WEBPACK_IMPORTED_MODULE_5__["getStyles"])(props, fallbackProps.style); } }); Object.defineProperty(VictoryPolarAxis, "getBaseProps", { configurable: true, enumerable: true, writable: true, value: function (props) { return Object(_helper_methods__WEBPACK_IMPORTED_MODULE_5__["getBaseProps"])(props, fallbackProps); } }); Object.defineProperty(VictoryPolarAxis, "expectedComponents", { configurable: true, enumerable: true, writable: true, value: ["axisComponent", "circularAxisComponent", "groupComponent", "containerComponent", "tickComponent", "tickLabelComponent", "gridComponent", "circularGridComponent"] }); /* harmony default export */ __webpack_exports__["default"] = (Object(victory_core__WEBPACK_IMPORTED_MODULE_4__["addEvents"])(VictoryPolarAxis, options)); /***/ }), /***/ "../../victory-scatter/es/helper-methods.js": /*!*****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-scatter/es/helper-methods.js ***! \*****************************************************************************************/ /*! exports provided: getBaseProps, getSize, getBubbleSize, getSymbol */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBaseProps", function() { return getBaseProps; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSize", function() { return getSize; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBubbleSize", function() { return getBubbleSize; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSymbol", function() { return getSymbol; }); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/values */ "../../../node_modules/lodash/values.js"); /* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_values__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } var getSymbol = function (data, props) { if (props.bubbleProperty) { return "circle"; } return data.symbol || props.symbol; }; var getBubbleSize = function (datum, props) { var data = props.data, z = props.z, maxBubbleSize = props.maxBubbleSize, minBubbleSize = props.minBubbleSize; var zData = data.map(function (point) { return point[z]; }); var zMin = Math.min.apply(Math, _toConsumableArray(zData)); var zMax = Math.max.apply(Math, _toConsumableArray(zData)); var getMaxRadius = function () { var minPadding = Math.min.apply(Math, _toConsumableArray(lodash_values__WEBPACK_IMPORTED_MODULE_1___default()(victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getPadding(props)))); return Math.max(minPadding, 5); // eslint-disable-line no-magic-numbers }; var maxRadius = maxBubbleSize || getMaxRadius(); var minRadius = minBubbleSize || maxRadius * 0.1; // eslint-disable-line no-magic-numbers if (zMax === zMin) { return Math.max(minRadius, 1); } var maxArea = Math.PI * Math.pow(maxRadius, 2); var minArea = Math.PI * Math.pow(minRadius, 2); var pointArea = (datum[z] - zMin) / (zMax - zMin) * maxArea; var area = Math.max(pointArea, minArea); var radius = Math.sqrt(area / Math.PI); return Math.max(radius, 1); }; var getSize = function (datum, props) { var size = props.size, z = props.z; if (datum.size) { return typeof datum.size === "function" ? datum.size : Math.max(datum.size, 1); } else if (typeof props.size === "function") { return size; } else if (datum[z]) { return getBubbleSize(datum, props); } else { return Math.max(size || 0, 1); } }; var getCalculatedValues = function (props) { var defaultStyles = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getDefaultStyles(props, "scatter"); var style = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getStyles(props.style, defaultStyles); var range = { x: victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getRange(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getRange(props, "y") }; var domain = { x: victory_core__WEBPACK_IMPORTED_MODULE_3__["Domain"].getDomain(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_3__["Domain"].getDomain(props, "y") }; var scale = { x: victory_core__WEBPACK_IMPORTED_MODULE_3__["Scale"].getBaseScale(props, "x").domain(domain.x).range(props.horizontal ? range.y : range.x), y: victory_core__WEBPACK_IMPORTED_MODULE_3__["Scale"].getBaseScale(props, "y").domain(domain.y).range(props.horizontal ? range.x : range.y) }; var origin = props.polar ? props.origin || victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].getPolarOrigin(props) : undefined; var z = props.bubbleProperty || "z"; var data = victory_core__WEBPACK_IMPORTED_MODULE_3__["Data"].getData(props); data = victory_core__WEBPACK_IMPORTED_MODULE_3__["Data"].formatDataFromDomain(data, domain); return { domain: domain, data: data, scale: scale, style: style, origin: origin, z: z }; }; var getBaseProps = function (props, fallbackProps) { var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].modifyProps(props, fallbackProps, "scatter"); props = lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, modifiedProps, getCalculatedValues(modifiedProps)); var _props = props, data = _props.data, domain = _props.domain, events = _props.events, height = _props.height, origin = _props.origin, padding = _props.padding, polar = _props.polar, scale = _props.scale, name = _props.name, sharedEvents = _props.sharedEvents, standalone = _props.standalone, style = _props.style, theme = _props.theme, width = _props.width, labels = _props.labels, horizontal = _props.horizontal; var initialChildProps = { parent: { style: style.parent, scale: scale, domain: domain, data: data, height: height, width: width, standalone: standalone, theme: theme, origin: origin, polar: polar, padding: padding, name: name, horizontal: horizontal } }; return data.reduce(function (childProps, datum, index) { var eventKey = !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum.eventKey) ? datum.eventKey : index; var _Helpers$scalePoint = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].scalePoint(props, datum), x = _Helpers$scalePoint.x, y = _Helpers$scalePoint.y; var dataProps = { x: x, y: y, datum: datum, data: data, index: index, scale: scale, polar: polar, origin: origin, horizontal: horizontal, size: getSize(datum, props), symbol: getSymbol(datum, props), style: style.data }; childProps[eventKey] = { data: dataProps }; var text = victory_core__WEBPACK_IMPORTED_MODULE_3__["LabelHelpers"].getText(props, datum, index); if (text !== undefined && text !== null || labels && (events || sharedEvents)) { childProps[eventKey].labels = victory_core__WEBPACK_IMPORTED_MODULE_3__["LabelHelpers"].getProps(props, index); } return childProps; }, initialChildProps); }; /***/ }), /***/ "../../victory-scatter/es/index.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-scatter/es/index.js ***! \********************************************************************************/ /*! exports provided: VictoryScatter */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_scatter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-scatter */ "../../victory-scatter/es/victory-scatter.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryScatter", function() { return _victory_scatter__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /***/ }), /***/ "../../victory-scatter/es/victory-scatter.js": /*!******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-scatter/es/victory-scatter.js ***! \******************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helper-methods */ "../../victory-scatter/es/helper-methods.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var fallbackProps = { width: 450, height: 300, padding: 50, size: 3, symbol: "circle" }; var VictoryScatter = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryScatter, _React$Component); function VictoryScatter() { _classCallCheck(this, VictoryScatter); return _possibleConstructorReturn(this, (VictoryScatter.__proto__ || Object.getPrototypeOf(VictoryScatter)).apply(this, arguments)); } _createClass(VictoryScatter, [{ key: "shouldAnimate", // Overridden in native versions value: function shouldAnimate() { return !!this.props.animate; } }, { key: "render", value: function render() { var animationWhitelist = VictoryScatter.animationWhitelist, role = VictoryScatter.role; var props = victory_core__WEBPACK_IMPORTED_MODULE_2__["Helpers"].modifyProps(this.props, fallbackProps, role); if (this.shouldAnimate()) { return this.animateComponent(props, animationWhitelist); } var children = this.renderData(props); return props.standalone ? this.renderContainer(props.containerComponent, children) : children; } }]); return VictoryScatter; }(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); Object.defineProperty(VictoryScatter, "animationWhitelist", { configurable: true, enumerable: true, writable: true, value: ["data", "domain", "height", "maxBubbleSize", "padding", "samples", "size", "style", "width"] }); Object.defineProperty(VictoryScatter, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryScatter" }); Object.defineProperty(VictoryScatter, "role", { configurable: true, enumerable: true, writable: true, value: "scatter" }); Object.defineProperty(VictoryScatter, "defaultTransitions", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_2__["DefaultTransitions"].discreteTransitions() }); Object.defineProperty(VictoryScatter, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_2__["CommonProps"].baseProps, victory_core__WEBPACK_IMPORTED_MODULE_2__["CommonProps"].dataProps, { bubbleProperty: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, maxBubbleSize: victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative, minBubbleSize: victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative, size: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_2__["PropTypes"].nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func]), symbol: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(["circle", "cross", "diamond", "plus", "minus", "square", "star", "triangleDown", "triangleUp"]), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func]) }) }); Object.defineProperty(VictoryScatter, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { containerComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__["VictoryContainer"], null), dataComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__["Point"], null), labelComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__["VictoryLabel"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("g", null), samples: 50, sortOrder: "ascending", standalone: true, theme: victory_core__WEBPACK_IMPORTED_MODULE_2__["VictoryTheme"].grayscale } }); Object.defineProperty(VictoryScatter, "getDomain", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_2__["Domain"].getDomain }); Object.defineProperty(VictoryScatter, "getData", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_2__["Data"].getData }); Object.defineProperty(VictoryScatter, "getBaseProps", { configurable: true, enumerable: true, writable: true, value: function (props) { return Object(_helper_methods__WEBPACK_IMPORTED_MODULE_3__["getBaseProps"])(props, fallbackProps); } }); Object.defineProperty(VictoryScatter, "expectedComponents", { configurable: true, enumerable: true, writable: true, value: ["dataComponent", "labelComponent", "groupComponent", "containerComponent"] }); /* harmony default export */ __webpack_exports__["default"] = (Object(victory_core__WEBPACK_IMPORTED_MODULE_2__["addEvents"])(VictoryScatter)); /***/ }), /***/ "../../victory-selection-container/es/index.js": /*!********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-selection-container/es/index.js ***! \********************************************************************************************/ /*! exports provided: selectionContainerMixin, VictorySelectionContainer, SelectionHelpers */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_selection_container__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-selection-container */ "../../victory-selection-container/es/victory-selection-container.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectionContainerMixin", function() { return _victory_selection_container__WEBPACK_IMPORTED_MODULE_0__["selectionContainerMixin"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictorySelectionContainer", function() { return _victory_selection_container__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _selection_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./selection-helpers */ "../../victory-selection-container/es/selection-helpers.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionHelpers", function() { return _selection_helpers__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /***/ }), /***/ "../../victory-selection-container/es/selection-helpers.js": /*!********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-selection-container/es/selection-helpers.js ***! \********************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/includes */ "../../../node_modules/lodash/includes.js"); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/throttle */ "../../../node_modules/lodash/throttle.js"); /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } var SelectionHelpers = { getDimension: function (props) { var horizontal = props.horizontal, selectionDimension = props.selectionDimension; if (!horizontal || !selectionDimension) { return selectionDimension; } return selectionDimension === "x" ? "y" : "x"; }, getDatasets: function (props) { if (props.data) { return [{ data: props.data }]; } var getData = function (childProps) { var data = victory_core__WEBPACK_IMPORTED_MODULE_5__["Data"].getData(childProps); return Array.isArray(data) && data.length > 0 ? data : undefined; }; var iteratee = function (child, childName, parent) { var blacklist = props.selectionBlacklist || []; if (!victory_core__WEBPACK_IMPORTED_MODULE_5__["Data"].isDataComponent(child) || lodash_includes__WEBPACK_IMPORTED_MODULE_0___default()(blacklist, childName)) { return null; } else if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(child.type.getData)) { child = parent ? react__WEBPACK_IMPORTED_MODULE_6___default.a.cloneElement(child, parent.props) : child; var childData = child.props && child.type.getData(child.props); return childData ? { childName: childName, data: childData } : null; } else { var _childData = getData(child.props); return _childData ? { childName: childName, data: _childData } : null; } }; return victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].reduceChildren(react__WEBPACK_IMPORTED_MODULE_6___default.a.Children.toArray(props.children), iteratee, props); }, filterDatasets: function (props, datasets, bounds) { var _this = this; var filtered = datasets.reduce(function (memo, dataset) { var selectedData = _this.getSelectedData(props, dataset.data, bounds); memo = selectedData ? memo.concat({ childName: dataset.childName, eventKey: selectedData.eventKey, data: selectedData.data }) : memo; return memo; }, []); return filtered.length ? filtered : null; }, getSelectedData: function (props, dataset) { var x1 = props.x1, y1 = props.y1, x2 = props.x2, y2 = props.y2; var withinBounds = function (d) { var scaledPoint = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].scalePoint(props, d); return scaledPoint.x >= Math.min(x1, x2) && scaledPoint.x <= Math.max(x1, x2) && scaledPoint.y >= Math.min(y1, y2) && scaledPoint.y <= Math.max(y1, y2); }; var eventKey = []; var data = []; var count = 0; for (var index = 0, len = dataset.length; index < len; index++) { var datum = dataset[index]; if (withinBounds(datum)) { data[count] = datum; eventKey[count] = datum.eventKey === undefined ? index : datum.eventKey; count++; } } return count > 0 ? { eventKey: eventKey, data: data } : null; }, // eslint-disable-next-line complexity, max-statements onMouseDown: function (evt, targetProps) { evt.preventDefault(); var activateSelectedData = targetProps.activateSelectedData, allowSelection = targetProps.allowSelection, polar = targetProps.polar, selectedData = targetProps.selectedData; if (!allowSelection) { return {}; } var dimension = this.getDimension(targetProps); var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getParentSVG(evt); var _Selection$getSVGEven = victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getSVGEventCoordinates(evt, parentSVG), x = _Selection$getSVGEven.x, y = _Selection$getSVGEven.y; var x1 = polar || dimension !== "y" ? x : victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getDomainCoordinates(targetProps).x[0]; var y1 = polar || dimension !== "x" ? y : victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getDomainCoordinates(targetProps).y[0]; var x2 = polar || dimension !== "y" ? x : victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getDomainCoordinates(targetProps).x[1]; var y2 = polar || dimension !== "x" ? y : victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getDomainCoordinates(targetProps).y[1]; var mutatedProps = { x1: x1, y1: y1, select: true, x2: x2, y2: y2, parentSVG: parentSVG }; if (selectedData && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(targetProps.onSelectionCleared)) { targetProps.onSelectionCleared(lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, mutatedProps, targetProps)); } var parentMutation = [{ target: "parent", mutation: function () { return mutatedProps; } }]; var dataMutation = selectedData && activateSelectedData ? selectedData.map(function (d) { return { childName: d.childName, eventKey: d.eventKey, target: "data", mutation: function () { return null; } }; }) : []; return parentMutation.concat.apply(parentMutation, _toConsumableArray(dataMutation)); }, onMouseMove: function (evt, targetProps) { var allowSelection = targetProps.allowSelection, select = targetProps.select, polar = targetProps.polar; var dimension = this.getDimension(targetProps); if (!allowSelection || !select) { return null; } else { var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getParentSVG(evt); var _Selection$getSVGEven2 = victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getSVGEventCoordinates(evt, parentSVG), x = _Selection$getSVGEven2.x, y = _Selection$getSVGEven2.y; var x2 = polar || dimension !== "y" ? x : victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getDomainCoordinates(targetProps).x[1]; var y2 = polar || dimension !== "x" ? y : victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getDomainCoordinates(targetProps).y[1]; return { target: "parent", mutation: function () { return { x2: x2, y2: y2, parentSVG: parentSVG }; } }; } }, onMouseUp: function (evt, targetProps) { var activateSelectedData = targetProps.activateSelectedData, allowSelection = targetProps.allowSelection, x2 = targetProps.x2, y2 = targetProps.y2; if (!allowSelection) { return null; } if (!x2 || !y2) { return [{ target: "parent", mutation: function () { return { select: false, x1: null, x2: null, y1: null, y2: null }; } }]; } var datasets = this.getDatasets(targetProps); var bounds = victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getBounds(targetProps); var selectedData = this.filterDatasets(targetProps, datasets, bounds); var mutatedProps = { selectedData: selectedData, datasets: datasets, select: false, x1: null, x2: null, y1: null, y2: null }; var callbackMutation = selectedData && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(targetProps.onSelection) ? targetProps.onSelection(selectedData, bounds, lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, mutatedProps, targetProps)) : {}; var parentMutation = [{ target: "parent", mutation: function () { return mutatedProps; } }]; var dataMutation = selectedData && activateSelectedData ? selectedData.map(function (d) { return { childName: d.childName, eventKey: d.eventKey, target: "data", mutation: function () { return lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({ active: true }, callbackMutation); } }; }) : []; return parentMutation.concat(dataMutation); } }; /* harmony default export */ __webpack_exports__["default"] = (_objectSpread({}, SelectionHelpers, { onMouseDown: SelectionHelpers.onMouseDown.bind(SelectionHelpers), onMouseUp: SelectionHelpers.onMouseUp.bind(SelectionHelpers), onMouseMove: lodash_throttle__WEBPACK_IMPORTED_MODULE_2___default()(SelectionHelpers.onMouseMove.bind(SelectionHelpers), 16, // eslint-disable-line no-magic-numbers { leading: true, trailing: false }) })); /***/ }), /***/ "../../victory-selection-container/es/victory-selection-container.js": /*!******************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-selection-container/es/victory-selection-container.js ***! \******************************************************************************************************************/ /*! exports provided: selectionContainerMixin, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "selectionContainerMixin", function() { return selectionContainerMixin; }); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var _selection_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./selection-helpers */ "../../victory-selection-container/es/selection-helpers.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var selectionContainerMixin = function (base) { var _class, _temp; return _temp = _class = /*#__PURE__*/ function (_base) { _inherits(VictorySelectionContainer, _base); function VictorySelectionContainer() { _classCallCheck(this, VictorySelectionContainer); return _possibleConstructorReturn(this, (VictorySelectionContainer.__proto__ || Object.getPrototypeOf(VictorySelectionContainer)).apply(this, arguments)); } _createClass(VictorySelectionContainer, [{ key: "getRect", value: function getRect(props) { var x1 = props.x1, x2 = props.x2, y1 = props.y1, y2 = props.y2, selectionStyle = props.selectionStyle, selectionComponent = props.selectionComponent, name = props.name; var width = Math.abs(x2 - x1) || 1; var height = Math.abs(y2 - y1) || 1; var x = Math.min(x1, x2); var y = Math.min(y1, y2); return y2 && x2 && x1 && y1 ? react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(selectionComponent, { key: "".concat(name, "-selection"), x: x, y: y, width: width, height: height, style: selectionStyle }) : null; } // Overrides method in VictoryContainer }, { key: "getChildren", value: function getChildren(props) { return _toConsumableArray(react__WEBPACK_IMPORTED_MODULE_1___default.a.Children.toArray(props.children)).concat([this.getRect(props)]); } }]); return VictorySelectionContainer; }(base), Object.defineProperty(_class, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictorySelectionContainer" }), Object.defineProperty(_class, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_2__["VictoryContainer"].propTypes, { activateSelectedData: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool, allowSelection: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool, disable: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool, onSelection: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func, onSelectionCleared: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func, selectionBlacklist: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string), selectionComponent: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.element, selectionDimension: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(["x", "y"]), selectionStyle: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object }) }), Object.defineProperty(_class, "defaultProps", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_2__["VictoryContainer"].defaultProps, { activateSelectedData: true, allowSelection: true, selectionComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__["Rect"], null), selectionStyle: { stroke: "transparent", fill: "black", fillOpacity: 0.1 } }) }), Object.defineProperty(_class, "defaultEvents", { configurable: true, enumerable: true, writable: true, value: function (props) { return [{ target: "parent", eventHandlers: { onMouseDown: function (evt, targetProps) { return props.disable ? {} : _selection_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].onMouseDown(evt, targetProps); }, onTouchStart: function (evt, targetProps) { return props.disable ? {} : _selection_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].onMouseDown(evt, targetProps); }, onMouseMove: function (evt, targetProps) { return props.disable ? {} : _selection_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].onMouseMove(evt, targetProps); }, onTouchMove: function (evt, targetProps) { return props.disable ? {} : _selection_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].onMouseMove(evt, targetProps); }, onMouseUp: function (evt, targetProps) { return props.disable ? {} : _selection_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].onMouseUp(evt, targetProps); }, onTouchEnd: function (evt, targetProps) { return props.disable ? {} : _selection_helpers__WEBPACK_IMPORTED_MODULE_3__["default"].onMouseUp(evt, targetProps); } } }]; } }), _temp; }; /* harmony default export */ __webpack_exports__["default"] = (selectionContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_2__["VictoryContainer"])); /***/ }), /***/ "../../victory-shared-events/es/index.js": /*!**************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-shared-events/es/index.js ***! \**************************************************************************************/ /*! exports provided: VictorySharedEvents */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_shared_events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-shared-events */ "../../victory-shared-events/es/victory-shared-events.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictorySharedEvents", function() { return _victory_shared_events__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /***/ }), /***/ "../../victory-shared-events/es/victory-shared-events.js": /*!******************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-shared-events/es/victory-shared-events.js ***! \******************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return VictorySharedEvents; }); /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js"); /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js"); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/fromPairs */ "../../../node_modules/lodash/fromPairs.js"); /* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_fromPairs__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js"); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_10__); /* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! json-stringify-safe */ "../../../node_modules/json-stringify-safe/stringify.js"); /* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(json_stringify_safe__WEBPACK_IMPORTED_MODULE_11__); function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } var VictorySharedEvents = /*#__PURE__*/ function (_React$Component) { _inherits(VictorySharedEvents, _React$Component); function VictorySharedEvents(props) { var _this; _classCallCheck(this, VictorySharedEvents); _this = _possibleConstructorReturn(this, (VictorySharedEvents.__proto__ || Object.getPrototypeOf(VictorySharedEvents)).call(this, props)); _this.state = _this.state || {}; _this.getScopedEvents = victory_core__WEBPACK_IMPORTED_MODULE_9__["Events"].getScopedEvents.bind(_assertThisInitialized(_this)); _this.getEventState = victory_core__WEBPACK_IMPORTED_MODULE_9__["Events"].getEventState.bind(_assertThisInitialized(_this)); _this.baseProps = _this.getBaseProps(props); _this.sharedEventsCache = {}; _this.globalEvents = {}; _this.prevGlobalEventKeys = []; _this.boundGlobalEvents = {}; return _this; } _createClass(VictorySharedEvents, [{ key: "shouldComponentUpdate", value: function shouldComponentUpdate(nextProps) { if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(this.props, nextProps)) { this.baseProps = this.getBaseProps(nextProps); var externalMutations = this.getExternalMutations(nextProps, this.baseProps); this.applyExternalMutations(nextProps, externalMutations); } return true; } }, { key: "componentDidMount", value: function componentDidMount() { var _this2 = this; var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_1___default()(this.globalEvents); globalEventKeys.forEach(function (key) { return _this2.addGlobalListener(key); }); this.prevGlobalEventKeys = globalEventKeys; } }, { key: "componentDidUpdate", value: function componentDidUpdate() { var _this3 = this; var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_1___default()(this.globalEvents); var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys); removedGlobalEventKeys.forEach(function (key) { return _this3.removeGlobalListener(key); }); var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys); addedGlobalEventKeys.forEach(function (key) { return _this3.addGlobalListener(key); }); this.prevGlobalEventKeys = globalEventKeys; } }, { key: "componentWillUnmount", value: function componentWillUnmount() { var _this4 = this; this.prevGlobalEventKeys.forEach(function (key) { return _this4.removeGlobalListener(key); }); } }, { key: "addGlobalListener", value: function addGlobalListener(key) { var _this5 = this; var boundListener = function (event) { var listener = _this5.globalEvents[key]; return listener && listener(victory_core__WEBPACK_IMPORTED_MODULE_9__["Events"].emulateReactEvent(event)); }; this.boundGlobalEvents[key] = boundListener; window.addEventListener(victory_core__WEBPACK_IMPORTED_MODULE_9__["Events"].getGlobalEventNameFromKey(key), boundListener); } }, { key: "removeGlobalListener", value: function removeGlobalListener(key) { window.removeEventListener(victory_core__WEBPACK_IMPORTED_MODULE_9__["Events"].getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]); } }, { key: "getAllEvents", value: function getAllEvents(props) { var components = ["container", "groupComponent"]; var componentEvents = victory_core__WEBPACK_IMPORTED_MODULE_9__["Events"].getComponentEvents(props, components); if (Array.isArray(componentEvents)) { return Array.isArray(props.events) ? componentEvents.concat.apply(componentEvents, _toConsumableArray(props.events)) : componentEvents; } return props.events; } }, { key: "applyExternalMutations", value: function applyExternalMutations(props, externalMutations) { if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(externalMutations)) { var callbacks = props.externalEventMutations.reduce(function (memo, mutation) { memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo; return memo; }, []); var compiledCallbacks = callbacks.length ? function () { callbacks.forEach(function (c) { return c(); }); } : undefined; this.setState(externalMutations, compiledCallbacks); } } }, { key: "getExternalMutations", value: function getExternalMutations(props, baseProps) { return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(props.externalEventMutations) ? victory_core__WEBPACK_IMPORTED_MODULE_9__["Events"].getExternalMutationsWithChildren(props.externalEventMutations, baseProps, this.state, lodash_keys__WEBPACK_IMPORTED_MODULE_1___default()(baseProps)) : undefined; } }, { key: "cacheSharedEvents", value: function cacheSharedEvents(name, sharedEvents, cacheValues) { this.sharedEventsCache[name] = [sharedEvents, cacheValues]; } }, { key: "getCachedSharedEvents", value: function getCachedSharedEvents(name, cacheValues) { var _ref = this.sharedEventsCache[name] || [], _ref2 = _slicedToArray(_ref, 2), sharedEvents = _ref2[0], prevCacheValues = _ref2[1]; if (sharedEvents && react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(cacheValues, prevCacheValues)) { return sharedEvents; } return undefined; } }, { key: "getBaseProps", value: function getBaseProps(props) { var container = props.container; var children = react__WEBPACK_IMPORTED_MODULE_7___default.a.Children.toArray(this.props.children); var childBaseProps = this.getBasePropsFromChildren(children); var parentBaseProps = container ? container.props : {}; return lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({}, childBaseProps, { parent: parentBaseProps }); } }, { key: "getBasePropsFromChildren", value: function getBasePropsFromChildren(childComponents) { var iteratee = function (child, childName) { if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(child.type.getBaseProps)) { var _baseProps = child.props && child.type.getBaseProps(child.props); return _baseProps ? [[childName, _baseProps]] : null; } else { return null; } }; var baseProps = victory_core__WEBPACK_IMPORTED_MODULE_9__["Helpers"].reduceChildren(childComponents, iteratee); return lodash_fromPairs__WEBPACK_IMPORTED_MODULE_2___default()(baseProps); } }, { key: "getNewChildren", value: function getNewChildren(props, baseProps) { var _this6 = this; var events = props.events, eventKey = props.eventKey; var alterChildren = function (children, childNames) { return children.reduce(function (memo, child, index) { if (child.props.children) { var newChildren = react__WEBPACK_IMPORTED_MODULE_7___default.a.Children.toArray(child.props.children); var names = childNames.slice(index, index + newChildren.length); var results = react__WEBPACK_IMPORTED_MODULE_7___default.a.cloneElement(child, child.props, alterChildren(newChildren, names)); return memo.concat(results); } else if (childNames[index] !== "parent" && child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(child.type.getBaseProps)) { var name = child.props.name || childNames[index]; var childEvents = Array.isArray(events) && events.filter(function (event) { if (event.target === "parent") { return false; } return Array.isArray(event.childName) ? event.childName.indexOf(name) > -1 : event.childName === name || event.childName === "all"; }); var sharedEventsCacheValues = [name, baseProps, childEvents, json_stringify_safe__WEBPACK_IMPORTED_MODULE_11___default()(_this6.state[name])]; var sharedEvents = _this6.getCachedSharedEvents(name, sharedEventsCacheValues) || { events: childEvents, // partially apply child name and baseProps, getEvents: function (evts, target) { return _this6.getScopedEvents(evts, target, name, baseProps); }, // partially apply child name getEventState: function (key, target) { return _this6.getEventState(key, target, name); } }; _this6.cacheSharedEvents(name, sharedEvents, sharedEventsCacheValues); return memo.concat(react__WEBPACK_IMPORTED_MODULE_7___default.a.cloneElement(child, lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({ key: "events-".concat(name), sharedEvents: sharedEvents, eventKey: eventKey, name: name }, child.props))); } else { return memo.concat(child); } }, []); }; var childNames = lodash_keys__WEBPACK_IMPORTED_MODULE_1___default()(baseProps); var childComponents = react__WEBPACK_IMPORTED_MODULE_7___default.a.Children.toArray(props.children); return alterChildren(childComponents, childNames); } }, { key: "getContainer", value: function getContainer(props, baseProps, events) { var _this7 = this; var children = this.getNewChildren(props, baseProps); var parents = Array.isArray(events) && events.filter(function (event) { return event.target === "parent"; }); var sharedEvents = parents.length > 0 ? { events: parents, // partially apply childName (null) and baseProps, getEvents: function (evts, target) { return _this7.getScopedEvents(evts, target, null, baseProps); }, getEventState: this.getEventState } : null; var container = props.container || props.groupComponent; var role = container.type && container.type.role; var containerProps = container.props || {}; var boundGetEvents = victory_core__WEBPACK_IMPORTED_MODULE_9__["Events"].getEvents.bind(this); var parentEvents = sharedEvents && boundGetEvents({ sharedEvents: sharedEvents }, "parent"); var parentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, this.getEventState("parent", "parent"), containerProps, baseProps.parent, { children: children }); var containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, victory_core__WEBPACK_IMPORTED_MODULE_9__["Events"].getPartialEvents(parentEvents, "parent", parentProps), containerProps.events); this.globalEvents = victory_core__WEBPACK_IMPORTED_MODULE_9__["Events"].getGlobalEvents(containerEvents); var localEvents = victory_core__WEBPACK_IMPORTED_MODULE_9__["Events"].omitGlobalEvents(containerEvents); return role === "container" ? react__WEBPACK_IMPORTED_MODULE_7___default.a.cloneElement(container, lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({}, parentProps, { events: localEvents })) : react__WEBPACK_IMPORTED_MODULE_7___default.a.cloneElement(container, localEvents, children); } }, { key: "render", value: function render() { var events = this.getAllEvents(this.props); if (events) { return this.getContainer(this.props, this.baseProps, events); } return react__WEBPACK_IMPORTED_MODULE_7___default.a.cloneElement(this.props.container, { children: this.props.children }); } }]); return VictorySharedEvents; }(react__WEBPACK_IMPORTED_MODULE_7___default.a.Component); Object.defineProperty(VictorySharedEvents, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictorySharedEvents" }); Object.defineProperty(VictorySharedEvents, "role", { configurable: true, enumerable: true, writable: true, value: "shared-event-wrapper" }); Object.defineProperty(VictorySharedEvents, "propTypes", { configurable: true, enumerable: true, writable: true, value: { children: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.node), prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.node]), container: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.node, eventKey: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_9__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_9__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_9__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.string]), events: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.shape({ childName: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.array]), eventHandlers: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.object, eventKey: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.func, victory_core__WEBPACK_IMPORTED_MODULE_9__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_9__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_9__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.string]), target: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.string })), externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.shape({ callback: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.function, childName: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.array]), eventKey: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.array, victory_core__WEBPACK_IMPORTED_MODULE_9__["PropTypes"].allOfType([victory_core__WEBPACK_IMPORTED_MODULE_9__["PropTypes"].integer, victory_core__WEBPACK_IMPORTED_MODULE_9__["PropTypes"].nonNegative]), prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.string]), mutation: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.function, target: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.array]) })), groupComponent: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.node } }); Object.defineProperty(VictorySharedEvents, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { groupComponent: react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("g", null) } }); Object.defineProperty(VictorySharedEvents, "contextType", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_9__["TimerContext"] }); /***/ }), /***/ "../../victory-stack/es/helper-methods.js": /*!***************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-stack/es/helper-methods.js ***! \***************************************************************************************/ /*! exports provided: getChildren, getCalculatedProps */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getChildren", function() { return getChildren; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCalculatedProps", function() { return getCalculatedProps; }); /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js"); /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js"); /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); var fallbackProps = { width: 450, height: 300, padding: 50 }; // Assumes data in `datasets` is sorted by `Data.getData`. function fillData(props, datasets) { var fillInMissingData = props.fillInMissingData; var xMap = datasets.reduce(function (prev, dataset) { dataset.forEach(function (datum) { prev[datum._x instanceof Date ? datum._x.getTime() : datum._x] = true; }); return prev; }, {}); var xKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_1___default()(xMap).map(function (k) { return +k; }); var xArr = lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(xKeys); return datasets.map(function (dataset) { var indexOffset = 0; var isDate = dataset[0] && dataset[0]._x instanceof Date; var filledInData = xArr.map(function (x, index) { x = +x; var datum = dataset[index - indexOffset]; if (datum) { var x1 = isDate ? datum._x.getTime() : datum._x; if (x1 === x) { return datum; } else { indexOffset++; var y = fillInMissingData ? 0 : null; x = isDate ? new Date(x) : x; return { x: x, y: y, _x: x, _y: y }; } } else { var _y = fillInMissingData ? 0 : null; x = isDate ? new Date(x) : x; return { x: x, y: _y, _x: x, _y: _y }; } }); return filledInData; }); } function getY0(datum, index, datasets) { if (datum.y0) { return datum.y0; } var y = datum._y; var group = datum._group; var firstDatasetBaseline = datasets[0].map(function (d) { return d.y0; }); var previousDatasets = datasets.slice(0, index); var previousPoints = previousDatasets.reduce(function (prev, dataset) { return prev.concat(dataset.filter(function (previousDatum) { return datum._x instanceof Date ? previousDatum._x.getTime() === datum._x.getTime() : previousDatum._x === datum._x; }).map(function (previousDatum) { return previousDatum._y || 0; })); }, []); var y0 = previousPoints.length && previousPoints.reduce(function (memo, value) { var sameSign = y < 0 && value < 0 || y >= 0 && value >= 0; return sameSign ? +value + memo : memo; }, firstDatasetBaseline[group] || 0); return previousPoints.some(function (point) { return point instanceof Date; }) ? new Date(y0) : y0; } /* eslint-disable no-nested-ternary */ function addLayoutData(props, datasets, index) { var xOffset = props.xOffset || 0; return datasets[index].map(function (datum) { var yOffset = getY0(datum, index, datasets) || 0; return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, datum, { _y0: !(datum._y instanceof Date) ? yOffset : yOffset ? new Date(yOffset) : datum._y, _y1: datum._y === null ? null : datum._y instanceof Date ? new Date(+datum._y + +yOffset) : datum._y + yOffset, _x1: datum._x === null ? null : datum._x instanceof Date ? new Date(+datum._x + +xOffset) : datum._x + xOffset }); }); } /* eslint-enable no-nested-ternary */ function stackData(props, childComponents) { var dataFromChildren = victory_core__WEBPACK_IMPORTED_MODULE_4__["Wrapper"].getDataFromChildren(props, childComponents); var filterNullChildData = dataFromChildren.map(function (dataset) { return dataset.filter(function (datum) { return datum._x !== null && datum._y !== null; }); }); var datasets = fillData(props, filterNullChildData); return datasets.map(function (d, i) { return addLayoutData(props, datasets, i); }); } function getCalculatedProps(props, childComponents) { childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_3___default.a.Children.toArray(props.children); var role = "stack"; props = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].modifyProps(props, fallbackProps, role); var style = victory_core__WEBPACK_IMPORTED_MODULE_4__["Wrapper"].getStyle(props.theme, props.style, role); var categories = props.categories || victory_core__WEBPACK_IMPORTED_MODULE_4__["Wrapper"].getCategories(props, childComponents); var datasets = props.datasets || stackData(props, childComponents); var children = childComponents.map(function (c, i) { return react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(c, { data: datasets[i] }); }); var domain = { x: victory_core__WEBPACK_IMPORTED_MODULE_4__["Wrapper"].getDomain(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { categories: categories }), "x", children), y: victory_core__WEBPACK_IMPORTED_MODULE_4__["Wrapper"].getDomain(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, { categories: categories }), "y", children) }; var range = props.range || { x: victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].getRange(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].getRange(props, "y") }; var baseScale = { x: victory_core__WEBPACK_IMPORTED_MODULE_4__["Scale"].getScaleFromProps(props, "x") || victory_core__WEBPACK_IMPORTED_MODULE_4__["Wrapper"].getScale(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_4__["Scale"].getScaleFromProps(props, "y") || victory_core__WEBPACK_IMPORTED_MODULE_4__["Wrapper"].getScale(props, "y") }; var scale = { x: baseScale.x.domain(domain.x).range(props.horizontal ? range.y : range.x), y: baseScale.y.domain(domain.y).range(props.horizontal ? range.x : range.y) }; var _props = props, colorScale = _props.colorScale, horizontal = _props.horizontal; return { datasets: datasets, categories: categories, range: range, domain: domain, horizontal: horizontal, scale: scale, style: style, colorScale: colorScale, role: role }; } function getLabels(props, datasets, index) { if (!props.labels) { return undefined; } return datasets.length === index + 1 ? props.labels : undefined; } function getChildProps(props, calculatedProps) { var categories = calculatedProps.categories, domain = calculatedProps.domain, range = calculatedProps.range, scale = calculatedProps.scale, horizontal = calculatedProps.horizontal; return { height: props.height, width: props.width, padding: victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].getPadding(props), standalone: false, theme: props.theme, categories: categories, domain: domain, range: range, scale: scale, horizontal: horizontal }; } function getColorScale(props, child) { var role = child.type && child.type.role; var colorScaleOptions = child.props.colorScale || props.colorScale; if (role !== "group" && role !== "stack") { return undefined; } return props.theme ? colorScaleOptions || props.theme.props.colorScale : colorScaleOptions; } function getChildren(props, childComponents, calculatedProps) { props = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].modifyProps(props, fallbackProps, "stack"); childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_3___default.a.Children.toArray(props.children); calculatedProps = calculatedProps || getCalculatedProps(props, childComponents); var _calculatedProps = calculatedProps, datasets = _calculatedProps.datasets; var childProps = getChildProps(props, calculatedProps); var parentName = props.name || "stack"; return childComponents.map(function (child, index) { var role = child.type && child.type.role; var data = datasets[index]; var style = victory_core__WEBPACK_IMPORTED_MODULE_4__["Wrapper"].getChildStyle(child, index, calculatedProps); var labels = props.labels ? getLabels(props, datasets, index) : child.props.labels; var name = child.props.name || "".concat(parentName, "-").concat(role, "-").concat(index); return react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(child, lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({ key: "".concat(name, "-key-").concat(index), labels: labels, name: name, domainPadding: child.props.domainPadding || props.domainPadding, theme: props.theme, labelComponent: props.labelComponent || child.props.labelComponent, style: style, colorScale: getColorScale(props, child), data: data, polar: props.polar }, childProps)); }); } /***/ }), /***/ "../../victory-stack/es/index.js": /*!******************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-stack/es/index.js ***! \******************************************************************************/ /*! exports provided: VictoryStack */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_stack__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-stack */ "../../victory-stack/es/victory-stack.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryStack", function() { return _victory_stack__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /***/ }), /***/ "../../victory-stack/es/victory-stack.js": /*!**************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-stack/es/victory-stack.js ***! \**************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return VictoryStack; }); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js"); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var victory_shared_events__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-shared-events */ "../../victory-shared-events/es/index.js"); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./helper-methods */ "../../victory-stack/es/helper-methods.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_8__); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } var fallbackProps = { width: 450, height: 300, padding: 50 }; var VictoryStack = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryStack, _React$Component); function VictoryStack(props) { var _this; _classCallCheck(this, VictoryStack); _this = _possibleConstructorReturn(this, (VictoryStack.__proto__ || Object.getPrototypeOf(VictoryStack)).call(this, props)); if (props.animate) { _this.state = { nodesShouldLoad: false, nodesDoneLoad: false, animating: true }; _this.setAnimationState = victory_core__WEBPACK_IMPORTED_MODULE_5__["Wrapper"].setAnimationState.bind(_assertThisInitialized(_this)); } return _this; } _createClass(VictoryStack, [{ key: "shouldComponentUpdate", value: function shouldComponentUpdate(nextProps) { if (this.props.animate) { if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default()(this.props, nextProps)) { this.setAnimationState(this.props, nextProps); return false; } } return true; } }, { key: "getNewChildren", value: function getNewChildren(props, childComponents, calculatedProps) { var children = Object(_helper_methods__WEBPACK_IMPORTED_MODULE_7__["getChildren"])(props, childComponents, calculatedProps); var getAnimationProps = victory_core__WEBPACK_IMPORTED_MODULE_5__["Wrapper"].getAnimationProps.bind(this); var newChildren = children.map(function (child, index) { var childProps = lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({ animate: getAnimationProps(props, child, index) }, child.props); return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(child, childProps); }); /* reverse render order for children of `VictoryStack` so that higher children in the stack are rendered behind lower children. This looks nicer for stacked bars with cornerRadius, and areas with strokes */ return newChildren.reverse(); } }, { key: "renderContainer", value: function renderContainer(containerComponent, props) { var containerProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, containerComponent.props, props); return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(containerComponent, containerProps); } }, { key: "getContainerProps", value: function getContainerProps(props, calculatedProps) { var width = props.width, height = props.height, standalone = props.standalone, theme = props.theme, polar = props.polar, horizontal = props.horizontal, name = props.name; var domain = calculatedProps.domain, scale = calculatedProps.scale, style = calculatedProps.style, origin = calculatedProps.origin; return { domain: domain, scale: scale, width: width, height: height, standalone: standalone, theme: theme, style: style.parent, horizontal: horizontal, polar: polar, origin: origin, name: name }; } }, { key: "render", value: function render() { var role = this.constructor.role; var props = this.state && this.state.nodesWillExit ? this.state.oldProps || this.props : this.props; var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_5__["Helpers"].modifyProps(props, fallbackProps, role); var eventKey = modifiedProps.eventKey, containerComponent = modifiedProps.containerComponent, standalone = modifiedProps.standalone, groupComponent = modifiedProps.groupComponent, externalEventMutations = modifiedProps.externalEventMutations; var childComponents = react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.toArray(modifiedProps.children); var calculatedProps = Object(_helper_methods__WEBPACK_IMPORTED_MODULE_7__["getCalculatedProps"])(modifiedProps, childComponents); var newChildren = this.getNewChildren(modifiedProps, childComponents, calculatedProps); var containerProps = standalone ? this.getContainerProps(modifiedProps, calculatedProps) : {}; var container = standalone ? this.renderContainer(containerComponent, containerProps) : groupComponent; var events = victory_core__WEBPACK_IMPORTED_MODULE_5__["Wrapper"].getAllEvents(props); if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events)) { return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_shared_events__WEBPACK_IMPORTED_MODULE_6__["VictorySharedEvents"], { container: container, eventKey: eventKey, events: events, externalEventMutations: externalEventMutations }, newChildren); } return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(container, container.props, newChildren); } }]); return VictoryStack; }(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component); Object.defineProperty(VictoryStack, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryStack" }); Object.defineProperty(VictoryStack, "role", { configurable: true, enumerable: true, writable: true, value: "stack" }); Object.defineProperty(VictoryStack, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__["CommonProps"].baseProps, { bins: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_5__["PropTypes"].nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.instanceOf(Date)])), victory_core__WEBPACK_IMPORTED_MODULE_5__["PropTypes"].nonNegative]), categories: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string), y: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string) })]), children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node]), colorScale: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string), prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]), fillInMissingData: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, horizontal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, labelComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, labels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array]), style: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({ parent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, data: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, labels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object }), xOffset: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number }) }); Object.defineProperty(VictoryStack, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { containerComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__["VictoryContainer"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("g", null), standalone: true, theme: victory_core__WEBPACK_IMPORTED_MODULE_5__["VictoryTheme"].grayscale, fillInMissingData: true } }); Object.defineProperty(VictoryStack, "expectedComponents", { configurable: true, enumerable: true, writable: true, value: ["groupComponent", "containerComponent", "labelComponent"] }); Object.defineProperty(VictoryStack, "getChildren", { configurable: true, enumerable: true, writable: true, value: _helper_methods__WEBPACK_IMPORTED_MODULE_7__["getChildren"] }); /***/ }), /***/ "../../victory-tooltip/es/flyout.js": /*!*********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-tooltip/es/flyout.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js"); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/ var getVerticalPath = function (props) { var pointerWidth = props.pointerWidth, cornerRadius = props.cornerRadius, orientation = props.orientation, width = props.width, height = props.height, center = props.center; var sign = orientation === "bottom" ? 1 : -1; var x = props.x + (props.dx || 0); var y = props.y + (props.dy || 0); var centerX = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(center) && center.x; var centerY = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(center) && center.y; var pointerEdge = centerY + sign * (height / 2); var oppositeEdge = centerY - sign * (height / 2); var rightEdge = centerX + width / 2; var leftEdge = centerX - width / 2; var pointerLength = sign * (y - pointerEdge) < 0 ? 0 : props.pointerLength; var direction = orientation === "bottom" ? "0 0 0" : "0 0 1"; var arc = "".concat(cornerRadius, " ").concat(cornerRadius, " ").concat(direction); return "M ".concat(centerX - pointerWidth / 2, ", ").concat(pointerEdge, "\n L ").concat(pointerLength ? x : centerX + pointerWidth / 2, ", ").concat(pointerLength ? y : pointerEdge, "\n L ").concat(centerX + pointerWidth / 2, ", ").concat(pointerEdge, "\n L ").concat(rightEdge - cornerRadius, ", ").concat(pointerEdge, "\n A ").concat(arc, " ").concat(rightEdge, ", ").concat(pointerEdge - sign * cornerRadius, "\n L ").concat(rightEdge, ", ").concat(oppositeEdge + sign * cornerRadius, "\n A ").concat(arc, " ").concat(rightEdge - cornerRadius, ", ").concat(oppositeEdge, "\n L ").concat(leftEdge + cornerRadius, ", ").concat(oppositeEdge, "\n A ").concat(arc, " ").concat(leftEdge, ", ").concat(oppositeEdge + sign * cornerRadius, "\n L ").concat(leftEdge, ", ").concat(pointerEdge - sign * cornerRadius, "\n A ").concat(arc, " ").concat(leftEdge + cornerRadius, ", ").concat(pointerEdge, "\n z"); }; var getHorizontalPath = function (props) { var pointerWidth = props.pointerWidth, cornerRadius = props.cornerRadius, orientation = props.orientation, width = props.width, height = props.height, center = props.center; var sign = orientation === "left" ? 1 : -1; var x = props.x + (props.dx || 0); var y = props.y + (props.dy || 0); var centerX = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(center) && center.x; var centerY = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(center) && center.y; var pointerEdge = centerX - sign * (width / 2); var oppositeEdge = centerX + sign * (width / 2); var bottomEdge = centerY + height / 2; var topEdge = centerY - height / 2; var pointerLength = sign * (x - pointerEdge) > 0 ? 0 : props.pointerLength; var direction = orientation === "left" ? "0 0 0" : "0 0 1"; var arc = "".concat(cornerRadius, " ").concat(cornerRadius, " ").concat(direction); return "M ".concat(pointerEdge, ", ").concat(centerY - pointerWidth / 2, "\n L ").concat(pointerLength ? x : pointerEdge, ", ").concat(pointerLength ? y : centerY + pointerWidth / 2, "\n L ").concat(pointerEdge, ", ").concat(centerY + pointerWidth / 2, "\n L ").concat(pointerEdge, ", ").concat(bottomEdge - cornerRadius, "\n A ").concat(arc, " ").concat(pointerEdge + sign * cornerRadius, ", ").concat(bottomEdge, "\n L ").concat(oppositeEdge - sign * cornerRadius, ", ").concat(bottomEdge, "\n A ").concat(arc, " ").concat(oppositeEdge, ", ").concat(bottomEdge - cornerRadius, "\n L ").concat(oppositeEdge, ", ").concat(topEdge + cornerRadius, "\n A ").concat(arc, " ").concat(oppositeEdge - sign * cornerRadius, ", ").concat(topEdge, "\n L ").concat(pointerEdge + sign * cornerRadius, ", ").concat(topEdge, "\n A ").concat(arc, " ").concat(pointerEdge, ", ").concat(topEdge + cornerRadius, "\n z"); }; var getFlyoutPath = function (props) { var orientation = props.orientation || "top"; return orientation === "left" || orientation === "right" ? getHorizontalPath(props) : getVerticalPath(props); }; var evaluateProps = function (props) { /** * Potential evaluated props are: * `id` * `style` */ var id = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].evaluateProp(props.id, props); var style = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].evaluateStyle(props.style, props); return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { id: id, style: style }); }; var Flyout = function (props) { props = evaluateProps(props); return react__WEBPACK_IMPORTED_MODULE_2___default.a.cloneElement(props.pathComponent, _objectSpread({}, props.events, { style: props.style, d: getFlyoutPath(props), className: props.className, shapeRendering: props.shapeRendering, role: props.role, transform: props.transform, clipPath: props.clipPath })); }; Flyout.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__["CommonProps"].primitiveProps, { center: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, y: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number }), cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, datum: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object, dx: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, dy: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, height: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, orientation: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(["top", "bottom", "left", "right"]), pathComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, pointerLength: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, pointerWidth: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, width: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, x: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, y: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number }); Flyout.defaultProps = { pathComponent: react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["Path"], null), role: "presentation", shapeRendering: "auto" }; /* harmony default export */ __webpack_exports__["default"] = (Flyout); /***/ }), /***/ "../../victory-tooltip/es/index.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-tooltip/es/index.js ***! \********************************************************************************/ /*! exports provided: VictoryTooltip, Flyout */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-tooltip */ "../../victory-tooltip/es/victory-tooltip.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryTooltip", function() { return _victory_tooltip__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _flyout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./flyout */ "../../victory-tooltip/es/flyout.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Flyout", function() { return _flyout__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /***/ }), /***/ "../../victory-tooltip/es/victory-tooltip.js": /*!******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-tooltip/es/victory-tooltip.js ***! \******************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return VictoryTooltip; }); /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js"); /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js"); /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/lodash/uniqueId.js"); /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var _flyout__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./flyout */ "../../victory-tooltip/es/flyout.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var fallbackProps = { cornerRadius: 5, pointerLength: 10, pointerWidth: 10 }; var VictoryTooltip = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryTooltip, _React$Component); function VictoryTooltip(props) { var _this; _classCallCheck(this, VictoryTooltip); _this = _possibleConstructorReturn(this, (VictoryTooltip.__proto__ || Object.getPrototypeOf(VictoryTooltip)).call(this, props)); _this.id = props.id === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("tooltip-") : props.id; return _this; } _createClass(VictoryTooltip, [{ key: "getDefaultOrientation", value: function getDefaultOrientation(props) { var datum = props.datum, horizontal = props.horizontal, polar = props.polar; if (!polar) { var positive = horizontal ? "right" : "top"; var negative = horizontal ? "left" : "bottom"; return datum && datum.y < 0 ? negative : positive; } else { return this.getPolarOrientation(props, datum); } } }, { key: "getPolarOrientation", value: function getPolarOrientation(props, datum) { var degrees = victory_core__WEBPACK_IMPORTED_MODULE_7__["LabelHelpers"].getDegrees(props, datum); var placement = props.labelPlacement || "vertical"; if (placement === " vertical") { return this.getVerticalOrientations(degrees); } else if (placement === "parallel") { return degrees < 90 || degrees > 270 ? "right" : "left"; } else { return degrees > 180 ? "bottom" : "top"; } } }, { key: "getVerticalOrientations", value: function getVerticalOrientations(degrees) { // eslint-disable-next-line no-magic-numbers if (degrees < 45 || degrees > 315) { return "right"; // eslint-disable-next-line no-magic-numbers } else if (degrees >= 45 && degrees <= 135) { return "top"; // eslint-disable-next-line no-magic-numbers } else if (degrees > 135 && degrees < 225) { return "left"; } else { return "bottom"; } } }, { key: "getStyles", value: function getStyles(props) { var theme = props.theme || victory_core__WEBPACK_IMPORTED_MODULE_7__["VictoryTheme"].grayscale; var defaultLabelStyles = theme && theme.tooltip && theme.tooltip.style ? theme.tooltip.style : {}; var baseLabelStyle = Array.isArray(props.style) ? props.style.map(function (s) { return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, s, defaultLabelStyles); }) : lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, props.style, defaultLabelStyles); var defaultFlyoutStyles = theme && theme.tooltip && theme.tooltip.flyoutStyle ? theme.tooltip.flyoutStyle : {}; var baseFlyoutStyle = props.flyoutStyle ? lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, props.flyoutStyle, defaultFlyoutStyles) : defaultFlyoutStyles; var style = Array.isArray(baseLabelStyle) ? baseLabelStyle.map(function (s) { return victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateStyle(s, props); }) : victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateStyle(baseLabelStyle, props); var flyoutStyle = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateStyle(baseFlyoutStyle, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, { style: style })); return { style: style, flyoutStyle: flyoutStyle }; } }, { key: "getEvaluatedProps", value: function getEvaluatedProps(props) { var cornerRadius = props.cornerRadius, centerOffset = props.centerOffset, dx = props.dx, dy = props.dy; var active = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateProp(props.active, props); var text = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateProp(props.text, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, { active: active })); var _getStyles = this.getStyles(lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, { active: active, text: text })), style = _getStyles.style, flyoutStyle = _getStyles.flyoutStyle; var orientation = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateProp(props.orientation, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, { active: active, text: text, style: style, flyoutStyle: flyoutStyle })) || this.getDefaultOrientation(props); var padding = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateProp(props.flyoutPadding, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, { active: active, text: text, style: style, flyoutStyle: flyoutStyle, orientation: orientation })) || this.getLabelPadding(style); var flyoutPadding = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].getPadding({ padding: padding }); var pointerWidth = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateProp(props.pointerWidth, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, { active: active, text: text, style: style, flyoutStyle: flyoutStyle, orientation: orientation })); var pointerLength = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateProp(props.pointerLength, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, { active: active, text: text, style: style, flyoutStyle: flyoutStyle, orientation: orientation })); var labelSize = victory_core__WEBPACK_IMPORTED_MODULE_7__["TextSize"].approximateTextSize(text, style); var _getDimensions = this.getDimensions(lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, { style: style, flyoutStyle: flyoutStyle, active: active, text: text, orientation: orientation, flyoutPadding: flyoutPadding, pointerWidth: pointerWidth, pointerLength: pointerLength }), labelSize), flyoutHeight = _getDimensions.flyoutHeight, flyoutWidth = _getDimensions.flyoutWidth; var evaluatedProps = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, { active: active, text: text, style: style, flyoutStyle: flyoutStyle, orientation: orientation, flyoutHeight: flyoutHeight, flyoutWidth: flyoutWidth, flyoutPadding: flyoutPadding, pointerWidth: pointerWidth, pointerLength: pointerLength }); var offsetX = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(centerOffset) && centerOffset.x !== undefined ? victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateProp(centerOffset.x, evaluatedProps) : 0; var offsetY = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(centerOffset) && centerOffset.y !== undefined ? victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateProp(centerOffset.y, evaluatedProps) : 0; return lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, evaluatedProps, { centerOffset: { x: offsetX, y: offsetY }, dx: dx !== undefined ? victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateProp(dx, evaluatedProps) : 0, dy: dy !== undefined ? victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateProp(dy, evaluatedProps) : 0, cornerRadius: victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateProp(cornerRadius, evaluatedProps) }); } }, { key: "getCalculatedValues", value: function getCalculatedValues(props) { var style = props.style, text = props.text, flyoutStyle = props.flyoutStyle, flyoutHeight = props.flyoutHeight, flyoutWidth = props.flyoutWidth; var labelSize = victory_core__WEBPACK_IMPORTED_MODULE_7__["TextSize"].approximateTextSize(text, style); var flyoutDimensions = { height: flyoutHeight, width: flyoutWidth }; var flyoutCenter = this.getFlyoutCenter(props, flyoutDimensions); var transform = this.getTransform(props); return { style: style, flyoutStyle: flyoutStyle, labelSize: labelSize, flyoutDimensions: flyoutDimensions, flyoutCenter: flyoutCenter, transform: transform }; } }, { key: "getTransform", value: function getTransform(props) { var x = props.x, y = props.y, style = props.style; var labelStyle = style || {}; var angle = labelStyle.angle || props.angle || this.getDefaultAngle(props); return angle ? "rotate(".concat(angle, " ").concat(x, " ").concat(y, ")") : undefined; } // eslint-disable-next-line complexity }, { key: "getDefaultAngle", value: function getDefaultAngle(props) { var polar = props.polar, labelPlacement = props.labelPlacement, orientation = props.orientation, datum = props.datum; if (!polar || !labelPlacement || labelPlacement === "vertical") { return 0; } var degrees = victory_core__WEBPACK_IMPORTED_MODULE_7__["LabelHelpers"].getDegrees(props, datum); var sign = degrees > 90 && degrees < 180 || degrees > 270 ? 1 : -1; var labelRotation = labelPlacement === "perpendicular" ? 0 : 90; var angle; if (degrees === 0 || degrees === 180) { angle = orientation === "top" && degrees === 180 ? 270 : 90; } else if (degrees > 0 && degrees < 180) { angle = 90 - degrees; } else if (degrees > 180 && degrees < 360) { angle = 270 - degrees; } return angle + sign * labelRotation; } }, { key: "constrainTooltip", value: function constrainTooltip(center, props, dimensions) { var x = center.x, y = center.y; var width = dimensions.width, height = dimensions.height; var extent = { x: [0, props.width], y: [0, props.height] }; var flyoutExtent = { x: [x - width / 2, x + width / 2], y: [y - height / 2, y + height / 2] }; var adjustments = { x: [flyoutExtent.x[0] < extent.x[0] ? extent.x[0] - flyoutExtent.x[0] : 0, flyoutExtent.x[1] > extent.x[1] ? flyoutExtent.x[1] - extent.x[1] : 0], y: [flyoutExtent.y[0] < extent.y[0] ? extent.y[0] - flyoutExtent.y[0] : 0, flyoutExtent.y[1] > extent.y[1] ? flyoutExtent.y[1] - extent.y[1] : 0] }; return { x: Math.round(x + adjustments.x[0] - adjustments.x[1]), y: Math.round(y + adjustments.y[0] - adjustments.y[1]) }; } // eslint-disable-next-line complexity }, { key: "getFlyoutCenter", value: function getFlyoutCenter(props, dimensions) { var x = props.x, y = props.y, dx = props.dx, dy = props.dy, pointerLength = props.pointerLength, orientation = props.orientation, constrainToVisibleArea = props.constrainToVisibleArea, centerOffset = props.centerOffset; var height = dimensions.height, width = dimensions.width; var xSign = orientation === "left" ? -1 : 1; var ySign = orientation === "bottom" ? -1 : 1; var flyoutCenter = { x: orientation === "left" || orientation === "right" ? x + xSign * (pointerLength + width / 2 + xSign * dx) : x + dx, y: orientation === "top" || orientation === "bottom" ? y - ySign * (pointerLength + height / 2 - ySign * dy) : y + dy }; var center = { x: lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(props.center) && props.center.x !== undefined ? props.center.x : flyoutCenter.x, y: lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(props.center) && props.center.y !== undefined ? props.center.y : flyoutCenter.y }; var centerWithOffset = { x: center.x + centerOffset.x, y: center.y + centerOffset.y }; return constrainToVisibleArea ? this.constrainTooltip(centerWithOffset, props, dimensions) : centerWithOffset; } }, { key: "getLabelPadding", value: function getLabelPadding(style) { if (!style) { return 0; } var paddings = Array.isArray(style) ? style.map(function (s) { return s.padding; }) : [style.padding]; return Math.max.apply(Math, _toConsumableArray(paddings).concat([0])); } }, { key: "getDimensions", value: function getDimensions(props, labelSize) { var orientation = props.orientation, pointerLength = props.pointerLength, pointerWidth = props.pointerWidth, flyoutHeight = props.flyoutHeight, flyoutWidth = props.flyoutWidth, flyoutPadding = props.flyoutPadding; var cornerRadius = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateProp(props.cornerRadius, props); var getHeight = function () { var calculatedHeight = labelSize.height + flyoutPadding.top + flyoutPadding.bottom; var minHeight = orientation === "top" || orientation === "bottom" ? 2 * cornerRadius : 2 * cornerRadius + pointerWidth; return Math.max(minHeight, calculatedHeight); }; var getWidth = function () { var calculatedWidth = labelSize.width + flyoutPadding.left + flyoutPadding.right; var minWidth = orientation === "left" || orientation === "right" ? 2 * cornerRadius + pointerLength : 2 * cornerRadius; return Math.max(minWidth, calculatedWidth); }; return { flyoutHeight: flyoutHeight ? victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateProp(flyoutHeight, props) : getHeight(props, labelSize, orientation), flyoutWidth: flyoutWidth ? victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateProp(flyoutWidth, props) : getWidth(props, labelSize, orientation) }; } }, { key: "getLabelProps", value: function getLabelProps(props, calculatedValues) { var flyoutCenter = calculatedValues.flyoutCenter, style = calculatedValues.style, labelSize = calculatedValues.labelSize, _calculatedValues$dy = calculatedValues.dy, dy = _calculatedValues$dy === void 0 ? 0 : _calculatedValues$dy, _calculatedValues$dx = calculatedValues.dx, dx = _calculatedValues$dx === void 0 ? 0 : _calculatedValues$dx; var text = props.text, datum = props.datum, activePoints = props.activePoints, labelComponent = props.labelComponent, index = props.index, flyoutPadding = props.flyoutPadding; var textAnchor = (Array.isArray(style) && style.length ? style[0].textAnchor : style.textAnchor) || "middle"; var getLabelX = function () { if (!textAnchor || textAnchor === "middle") { return flyoutCenter.x; } var sign = textAnchor === "end" ? -1 : 1; return flyoutCenter.x - sign * (labelSize.width / 2); }; return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, labelComponent.props, { key: "".concat(this.id, "-label-").concat(index), text: text, datum: datum, activePoints: activePoints, textAnchor: textAnchor, dy: dy, dx: dx, style: style, x: getLabelX() + (flyoutPadding.left - flyoutPadding.right) / 2, y: flyoutCenter.y + (flyoutPadding.top - flyoutPadding.bottom) / 2, verticalAnchor: "middle", angle: style.angle }); } }, { key: "getPointerOrientation", value: function getPointerOrientation(point, center, flyoutDimensions) { var edges = { bottom: center.y + flyoutDimensions.height / 2, top: center.y - flyoutDimensions.height / 2, left: center.x - flyoutDimensions.width / 2, right: center.x + flyoutDimensions.width / 2 }; var gaps = [{ side: "top", val: edges.top > point.y ? edges.top - point.y : -1 }, { side: "bottom", val: edges.bottom < point.y ? point.y - edges.bottom : -1 }, { side: "right", val: edges.right < point.x ? point.x - edges.right : -1 }, { side: "left", val: edges.left > point.x ? edges.left - point.x : -1 }]; return lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(gaps, "val", "desc")[0].side; } }, { key: "getFlyoutProps", value: function getFlyoutProps(props, calculatedValues) { var flyoutDimensions = calculatedValues.flyoutDimensions, flyoutStyle = calculatedValues.flyoutStyle, flyoutCenter = calculatedValues.flyoutCenter; var x = props.x, y = props.y, dx = props.dx, dy = props.dy, datum = props.datum, activePoints = props.activePoints, index = props.index, pointerLength = props.pointerLength, pointerWidth = props.pointerWidth, cornerRadius = props.cornerRadius, events = props.events, flyoutComponent = props.flyoutComponent; var pointerOrientation = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].evaluateProp(props.pointerOrientation, props); return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, flyoutComponent.props, { x: x, y: y, dx: dx, dy: dy, datum: datum, activePoints: activePoints, index: index, pointerLength: pointerLength, pointerWidth: pointerWidth, cornerRadius: cornerRadius, events: events, orientation: pointerOrientation || this.getPointerOrientation({ x: x, y: y }, flyoutCenter, flyoutDimensions), key: "".concat(this.id, "-tooltip-").concat(index), width: flyoutDimensions.width, height: flyoutDimensions.height, style: flyoutStyle, center: flyoutCenter }); } // Overridden in victory-core-native }, { key: "renderTooltip", value: function renderTooltip(props) { var evaluatedProps = this.getEvaluatedProps(props); var flyoutComponent = evaluatedProps.flyoutComponent, labelComponent = evaluatedProps.labelComponent, groupComponent = evaluatedProps.groupComponent, active = evaluatedProps.active, renderInPortal = evaluatedProps.renderInPortal; if (!active) { return renderInPortal ? react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__["VictoryPortal"], null, null) : null; } var calculatedValues = this.getCalculatedValues(evaluatedProps); var children = [react__WEBPACK_IMPORTED_MODULE_5___default.a.cloneElement(flyoutComponent, this.getFlyoutProps(evaluatedProps, calculatedValues)), react__WEBPACK_IMPORTED_MODULE_5___default.a.cloneElement(labelComponent, this.getLabelProps(evaluatedProps, calculatedValues))]; var tooltip = react__WEBPACK_IMPORTED_MODULE_5___default.a.cloneElement(groupComponent, { role: "presentation", transform: calculatedValues.transform }, children); return renderInPortal ? react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__["VictoryPortal"], null, tooltip) : tooltip; } }, { key: "render", value: function render() { var props = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].modifyProps(this.props, fallbackProps, "tooltip"); return this.renderTooltip(props); } }]); return VictoryTooltip; }(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component); Object.defineProperty(VictoryTooltip, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryTooltip" }); Object.defineProperty(VictoryTooltip, "role", { configurable: true, enumerable: true, writable: true, value: "tooltip" }); Object.defineProperty(VictoryTooltip, "propTypes", { configurable: true, enumerable: true, writable: true, value: { activateData: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, active: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func]), activePoints: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array, angle: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, center: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({ x: victory_core__WEBPACK_IMPORTED_MODULE_7__["PropTypes"].nonNegative, y: victory_core__WEBPACK_IMPORTED_MODULE_7__["PropTypes"].nonNegative }), centerOffset: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func]), y: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func]) }), constrainToVisibleArea: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_7__["PropTypes"].nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func]), data: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array, datum: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object, dx: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func]), dy: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func]), events: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object, flyoutComponent: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.element, flyoutHeight: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_7__["PropTypes"].nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func]), flyoutPadding: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({ top: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, bottom: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, left: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, right: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number })]), flyoutStyle: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object, flyoutWidth: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_7__["PropTypes"].nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func]), groupComponent: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.element, height: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, horizontal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, id: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string]), index: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string]), labelComponent: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.element, orientation: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOf(["top", "bottom", "left", "right"]), prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func]), pointerLength: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_7__["PropTypes"].nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func]), pointerOrientation: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOf(["top", "bottom", "left", "right"]), prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func]), pointerWidth: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_7__["PropTypes"].nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func]), polar: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, renderInPortal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, scale: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({ x: victory_core__WEBPACK_IMPORTED_MODULE_7__["PropTypes"].scale, y: victory_core__WEBPACK_IMPORTED_MODULE_7__["PropTypes"].scale }), style: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array]), text: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array]), theme: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object, width: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, x: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number, y: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number } }); Object.defineProperty(VictoryTooltip, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { active: false, renderInPortal: true, labelComponent: react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__["VictoryLabel"], null), flyoutComponent: react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_flyout__WEBPACK_IMPORTED_MODULE_8__["default"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("g", null) } }); Object.defineProperty(VictoryTooltip, "defaultEvents", { configurable: true, enumerable: true, writable: true, value: function (props) { var activate = props.activateData ? [{ target: "labels", mutation: function () { return { active: true }; } }, { target: "data", mutation: function () { return { active: true }; } }] : [{ target: "labels", mutation: function () { return { active: true }; } }]; var deactivate = props.activateData ? [{ target: "labels", mutation: function () { return { active: undefined }; } }, { target: "data", mutation: function () { return { active: undefined }; } }] : [{ target: "labels", mutation: function () { return { active: undefined }; } }]; return [{ target: "data", eventHandlers: { onMouseOver: function () { return activate; }, onFocus: function () { return activate; }, onTouchStart: function () { return activate; }, onMouseOut: function () { return deactivate; }, onBlur: function () { return deactivate; }, onTouchEnd: function () { return deactivate; } } }]; } }); /***/ }), /***/ "../../victory-voronoi-container/es/index.js": /*!******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-voronoi-container/es/index.js ***! \******************************************************************************************/ /*! exports provided: voronoiContainerMixin, VictoryVoronoiContainer, VoronoiHelpers */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_voronoi_container__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-voronoi-container */ "../../victory-voronoi-container/es/victory-voronoi-container.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "voronoiContainerMixin", function() { return _victory_voronoi_container__WEBPACK_IMPORTED_MODULE_0__["voronoiContainerMixin"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryVoronoiContainer", function() { return _victory_voronoi_container__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _voronoi_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./voronoi-helpers */ "../../victory-voronoi-container/es/voronoi-helpers.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoronoiHelpers", function() { return _voronoi_helpers__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /***/ }), /***/ "../../victory-voronoi-container/es/victory-voronoi-container.js": /*!**************************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-voronoi-container/es/victory-voronoi-container.js ***! \**************************************************************************************************************/ /*! exports provided: voronoiContainerMixin, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "voronoiContainerMixin", function() { return voronoiContainerMixin; }); /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js"); /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var victory_tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-tooltip */ "../../victory-tooltip/es/index.js"); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var _voronoi_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./voronoi-helpers */ "../../victory-voronoi-container/es/voronoi-helpers.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _objectWithoutProperties(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]; } 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; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var voronoiContainerMixin = function (base) { var _class, _temp; return _temp = _class = /*#__PURE__*/ function (_base) { _inherits(VictoryVoronoiContainer, _base); function VictoryVoronoiContainer() { _classCallCheck(this, VictoryVoronoiContainer); return _possibleConstructorReturn(this, (VictoryVoronoiContainer.__proto__ || Object.getPrototypeOf(VictoryVoronoiContainer)).apply(this, arguments)); } _createClass(VictoryVoronoiContainer, [{ key: "getDimension", value: function getDimension(props) { var horizontal = props.horizontal, voronoiDimension = props.voronoiDimension; if (!horizontal || !voronoiDimension) { return voronoiDimension; } return voronoiDimension === "x" ? "y" : "x"; } }, { key: "getPoint", value: function getPoint(point) { var whitelist = ["_x", "_x1", "_x0", "_y", "_y1", "_y0"]; return lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(point, whitelist); } }, { key: "getLabelPosition", value: function getLabelPosition(props, labelProps, points) { var mousePosition = props.mousePosition, mouseFollowTooltips = props.mouseFollowTooltips; var voronoiDimension = this.getDimension(props); var point = this.getPoint(points[0]); var basePosition = victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].scalePoint(props, point); var center = mouseFollowTooltips ? mousePosition : undefined; if (!voronoiDimension || points.length < 2) { return _objectSpread({}, basePosition, { center: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labelProps.center, center) }); } var x = voronoiDimension === "y" ? mousePosition.x : basePosition.x; var y = voronoiDimension === "x" ? mousePosition.y : basePosition.y; center = mouseFollowTooltips ? mousePosition : { x: x, y: y }; return { x: x, y: y, center: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labelProps.center, center) }; } }, { key: "getStyle", value: function getStyle(props, points, type) { var labels = props.labels, labelComponent = props.labelComponent, theme = props.theme; var componentProps = labelComponent.props || {}; var themeStyles = theme && theme.voronoi && theme.voronoi.style ? theme.voronoi.style : {}; var componentStyleArray = type === "flyout" ? componentProps.flyoutStyle : componentProps.style; return points.reduce(function (memo, datum, index) { var labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, componentProps, { datum: datum, active: true }); var text = lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(labels) ? labels(labelProps) : undefined; var textArray = text !== undefined ? "".concat(text).split("\n") : []; var baseStyle = datum.style && datum.style[type] || {}; var componentStyle = Array.isArray(componentStyleArray) ? componentStyleArray[index] : componentStyleArray; var style = victory_core__WEBPACK_IMPORTED_MODULE_6__["Helpers"].evaluateStyle(lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, componentStyle, baseStyle, themeStyles[type]), labelProps); var styleArray = textArray.length ? textArray.map(function () { return style; }) : [style]; memo = memo.concat(styleArray); return memo; }, []); } }, { key: "getDefaultLabelProps", value: function getDefaultLabelProps(props, points) { var voronoiDimension = props.voronoiDimension, horizontal = props.horizontal, mouseFollowTooltips = props.mouseFollowTooltips; var point = this.getPoint(points[0]); var multiPoint = voronoiDimension && points.length > 1; var y = point._y1 !== undefined ? point._y1 : point._y; var defaultHorizontalOrientation = y < 0 ? "left" : "right"; var defaultOrientation = y < 0 ? "bottom" : "top"; var labelOrientation = horizontal ? defaultHorizontalOrientation : defaultOrientation; var orientation = mouseFollowTooltips ? undefined : labelOrientation; return { orientation: orientation, pointerLength: multiPoint ? 0 : undefined, constrainToVisibleArea: multiPoint || mouseFollowTooltips ? true : undefined }; } }, { key: "getLabelProps", value: function getLabelProps(props, points) { var labels = props.labels, scale = props.scale, labelComponent = props.labelComponent, theme = props.theme, width = props.width, height = props.height; var componentProps = labelComponent.props || {}; var text = points.reduce(function (memo, datum) { var labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, componentProps, { datum: datum, active: true }); var t = lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(labels) ? labels(labelProps) : null; if (t === null || t === undefined) { return memo; } memo = memo.concat("".concat(t).split("\n")); return memo; }, []); // remove properties from first point to make datum // eslint-disable-next-line no-unused-vars var _points$ = points[0], childName = _points$.childName, eventKey = _points$.eventKey, style = _points$.style, continuous = _points$.continuous, datum = _objectWithoutProperties(_points$, ["childName", "eventKey", "style", "continuous"]); var name = props.name === childName ? childName : "".concat(props.name, "-").concat(childName); var labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({ key: "".concat(name, "-").concat(eventKey, "-voronoi-tooltip"), id: "".concat(name, "-").concat(eventKey, "-voronoi-tooltip"), active: true, renderInPortal: false, activePoints: points, datum: datum, scale: scale, theme: theme }, componentProps, { text: text, width: width, height: height, style: this.getStyle(props, points, "labels"), flyoutStyle: this.getStyle(props, points, "flyout")[0] }, this.getDefaultLabelProps(props, points)); var labelPosition = this.getLabelPosition(props, labelProps, points); return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labelPosition, labelProps); } }, { key: "getTooltip", value: function getTooltip(props) { var labels = props.labels, activePoints = props.activePoints, labelComponent = props.labelComponent; if (!labels) { return null; } if (Array.isArray(activePoints) && activePoints.length) { var labelProps = this.getLabelProps(props, activePoints); var text = labelProps.text; var showLabel = Array.isArray(text) ? text.filter(Boolean).length : text; return showLabel ? react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(labelComponent, labelProps) : null; } else { return null; } } // Overrides method in VictoryContainer }, { key: "getChildren", value: function getChildren(props) { return _toConsumableArray(react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.toArray(props.children)).concat([this.getTooltip(props)]); } }]); return VictoryVoronoiContainer; }(base), Object.defineProperty(_class, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryVoronoiContainer" }), Object.defineProperty(_class, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__["VictoryContainer"].propTypes, { activateData: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, activateLabels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, disable: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, labelComponent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.element, labels: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, mouseFollowTooltips: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool, onActivated: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, onDeactivated: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func, radius: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, voronoiBlacklist: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string, victory_core__WEBPACK_IMPORTED_MODULE_6__["PropTypes"].regExp])), voronoiDimension: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(["x", "y"]), voronoiPadding: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({ top: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, bottom: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, left: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number, right: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number })]) }) }), Object.defineProperty(_class, "defaultProps", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__["VictoryContainer"].defaultProps, { activateData: true, activateLabels: true, labelComponent: react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(victory_tooltip__WEBPACK_IMPORTED_MODULE_5__["VictoryTooltip"], null), voronoiPadding: 5 }) }), Object.defineProperty(_class, "defaultEvents", { configurable: true, enumerable: true, writable: true, value: function (props) { return [{ target: "parent", eventHandlers: { onMouseLeave: function (evt, targetProps) { return props.disable ? {} : _voronoi_helpers__WEBPACK_IMPORTED_MODULE_7__["default"].onMouseLeave(evt, targetProps); }, onTouchCancel: function (evt, targetProps) { return props.disable ? {} : _voronoi_helpers__WEBPACK_IMPORTED_MODULE_7__["default"].onMouseLeave(evt, targetProps); }, onMouseMove: function (evt, targetProps) { return props.disable ? {} : _voronoi_helpers__WEBPACK_IMPORTED_MODULE_7__["default"].onMouseMove(evt, targetProps); }, onTouchMove: function (evt, targetProps) { return props.disable ? {} : _voronoi_helpers__WEBPACK_IMPORTED_MODULE_7__["default"].onMouseMove(evt, targetProps); } } }, { target: "data", eventHandlers: props.disable ? {} : { onMouseOver: function () { return null; }, onMouseOut: function () { return null; }, onMouseMove: function () { return null; } } }]; } }), _temp; }; /* harmony default export */ __webpack_exports__["default"] = (voronoiContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_6__["VictoryContainer"])); /***/ }), /***/ "../../victory-voronoi-container/es/voronoi-helpers.js": /*!****************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-voronoi-container/es/voronoi-helpers.js ***! \****************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/lodash/isRegExp.js"); /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isString */ "../../../node_modules/lodash/isString.js"); /* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isString__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/includes */ "../../../node_modules/lodash/includes.js"); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js"); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/throttle */ "../../../node_modules/lodash/throttle.js"); /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js"); /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var delaunay_find_lib_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! delaunay-find/lib/index.js */ "../../../node_modules/delaunay-find/lib/index.js"); /* harmony import */ var delaunay_find_lib_index_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(delaunay_find_lib_index_js__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_10__); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } var VoronoiHelpers = { withinBounds: function (props, point) { var width = props.width, height = props.height, polar = props.polar, origin = props.origin, scale = props.scale; var padding = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].getPadding(props, "voronoiPadding"); var x = point.x, y = point.y; if (polar) { var distanceSquared = Math.pow(x - origin.x, 2) + Math.pow(y - origin.y, 2); var radius = Math.max.apply(Math, _toConsumableArray(scale.y.range())); return distanceSquared < Math.pow(radius, 2); } else { return x >= padding.left && x <= width - padding.right && y >= padding.top && y <= height - padding.bottom; } }, getDatasets: function (props) { var minDomain = { x: victory_core__WEBPACK_IMPORTED_MODULE_7__["Collection"].getMinValue(props.domain.x), y: victory_core__WEBPACK_IMPORTED_MODULE_7__["Collection"].getMinValue(props.domain.y) }; var children = react__WEBPACK_IMPORTED_MODULE_10___default.a.Children.toArray(props.children); var addMeta = function (data, name, child) { var continuous = child && child.type && child.type.continuous; var style = child ? child.props && child.props.style : props.style; return data.map(function (datum, index) { var _Helpers$getPoint = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].getPoint(datum), x = _Helpers$getPoint.x, y = _Helpers$getPoint.y, y0 = _Helpers$getPoint.y0, x0 = _Helpers$getPoint.x0; var voronoiX = (+x + +x0) / 2; var voronoiY = (+y + +y0) / 2; return lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({ _voronoiX: props.voronoiDimension === "y" ? minDomain.x : voronoiX, _voronoiY: props.voronoiDimension === "x" ? minDomain.y : voronoiY, eventKey: index, childName: name, continuous: continuous, style: style }, datum); }); }; if (props.data) { return addMeta(props.data); } var getData = function (childProps) { var data = victory_core__WEBPACK_IMPORTED_MODULE_7__["Data"].getData(childProps); return Array.isArray(data) && data.length > 0 ? data : undefined; }; var iteratee = function (child, childName) { var childProps = child.props || {}; var name = childProps.name || childName; var blacklist = props.voronoiBlacklist || []; var blacklistStr = blacklist.filter(lodash_isString__WEBPACK_IMPORTED_MODULE_1___default.a); var blacklistRegExp = blacklist.filter(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default.a); var isRegExpMatch = blacklistRegExp.some(function (regExp) { return regExp.test(name); }); if (!victory_core__WEBPACK_IMPORTED_MODULE_7__["Data"].isDataComponent(child) || lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(blacklistStr, name) || isRegExpMatch) { return null; } var getChildData = child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(child.type.getData) ? child.type.getData : getData; var childData = getChildData(child.props); return childData ? addMeta(childData, name, child) : null; }; return victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].reduceChildren(children, iteratee, props); }, findPoints: function (datasets, point) { return datasets.filter(function (d) { return point._voronoiX === d._voronoiX && point._voronoiY === d._voronoiY; }); }, withinRadius: function (point, mousePosition, radius) { if (!point) { return false; } if (!radius) { return true; } var x = mousePosition.x, y = mousePosition.y; var distanceSquared = Math.pow(x - point[0], 2) + Math.pow(y - point[1], 2); return distanceSquared < Math.pow(radius, 2); }, getVoronoiPoints: function (props, mousePosition) { var datasets = this.getDatasets(props); var scaledData = datasets.map(function (d) { var _Helpers$scalePoint = victory_core__WEBPACK_IMPORTED_MODULE_7__["Helpers"].scalePoint(props, d), x = _Helpers$scalePoint.x, y = _Helpers$scalePoint.y; return [x, y]; }); var delaunay = delaunay_find_lib_index_js__WEBPACK_IMPORTED_MODULE_9___default.a.from(scaledData); var index = delaunay.find(mousePosition.x, mousePosition.y); var withinRadius = this.withinRadius(scaledData[index], mousePosition, props.radius); var points = withinRadius ? this.findPoints(datasets, datasets[index]) : []; return { points: points, index: index }; }, getActiveMutations: function (props, point) { var childName = point.childName, continuous = point.continuous; var activateData = props.activateData, activateLabels = props.activateLabels, labels = props.labels; if (!activateData && !activateLabels) { return []; } var defaultTarget = activateData ? ["data"] : []; var targets = labels && !activateLabels ? defaultTarget : defaultTarget.concat("labels"); if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(targets)) { return []; } return targets.map(function (target) { var eventKey = continuous === true && target === "data" ? "all" : point.eventKey; return { childName: childName, eventKey: eventKey, target: target, mutation: function () { return { active: true }; } }; }); }, getInactiveMutations: function (props, point) { var childName = point.childName, continuous = point.continuous; var activateData = props.activateData, activateLabels = props.activateLabels, labels = props.labels; if (!activateData && !activateLabels) { return []; } var defaultTarget = activateData ? ["data"] : []; var targets = labels && !activateLabels ? defaultTarget : defaultTarget.concat("labels"); if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(targets)) { return []; } return targets.map(function (target) { var eventKey = continuous && target === "data" ? "all" : point.eventKey; return { childName: childName, eventKey: eventKey, target: target, mutation: function () { return null; } }; }); }, // eslint-disable-next-line max-params getParentMutation: function (activePoints, mousePosition, parentSVG, vIndex) { return [{ target: "parent", eventKey: "parent", mutation: function () { return { activePoints: activePoints, mousePosition: mousePosition, parentSVG: parentSVG, vIndex: vIndex }; } }]; }, onActivated: function (props, points) { if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(props.onActivated)) { props.onActivated(points, props); } }, onDeactivated: function (props, points) { if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(props.onDeactivated)) { props.onDeactivated(points, props); } }, onMouseLeave: function (evt, targetProps) { var _this = this, _getParentMutation; var activePoints = targetProps.activePoints || []; this.onDeactivated(targetProps, activePoints); var inactiveMutations = activePoints.length ? activePoints.map(function (point) { return _this.getInactiveMutations(targetProps, point); }) : []; return (_getParentMutation = this.getParentMutation([])).concat.apply(_getParentMutation, _toConsumableArray(inactiveMutations)); }, onMouseMove: function (evt, targetProps) { var _this2 = this; // eslint-disable-line max-statements var activePoints = targetProps.activePoints || []; var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_7__["Selection"].getParentSVG(evt); var mousePosition = victory_core__WEBPACK_IMPORTED_MODULE_7__["Selection"].getSVGEventCoordinates(evt, parentSVG); if (!this.withinBounds(targetProps, mousePosition)) { var _getParentMutation2; this.onDeactivated(targetProps, activePoints); var inactiveMutations = activePoints.length ? activePoints.map(function (point) { return _this2.getInactiveMutations(targetProps, point); }) : []; return (_getParentMutation2 = this.getParentMutation([], mousePosition, parentSVG)).concat.apply(_getParentMutation2, _toConsumableArray(inactiveMutations)); } var _getVoronoiPoints = this.getVoronoiPoints(targetProps, mousePosition), _getVoronoiPoints$poi = _getVoronoiPoints.points, points = _getVoronoiPoints$poi === void 0 ? [] : _getVoronoiPoints$poi, index = _getVoronoiPoints.index; var parentMutations = this.getParentMutation(points, mousePosition, parentSVG, index); if (activePoints.length && react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default()(points, activePoints)) { return parentMutations; } else { this.onActivated(targetProps, points); this.onDeactivated(targetProps, activePoints); var activeMutations = points.length ? points.map(function (point) { return _this2.getActiveMutations(targetProps, point); }) : []; var _inactiveMutations = activePoints.length ? activePoints.map(function (point) { return _this2.getInactiveMutations(targetProps, point); }) : []; return parentMutations.concat.apply(parentMutations, _toConsumableArray(_inactiveMutations).concat(_toConsumableArray(activeMutations))); } } }; /* harmony default export */ __webpack_exports__["default"] = ({ onMouseLeave: VoronoiHelpers.onMouseLeave.bind(VoronoiHelpers), onMouseMove: lodash_throttle__WEBPACK_IMPORTED_MODULE_5___default()(VoronoiHelpers.onMouseMove.bind(VoronoiHelpers), 32, // eslint-disable-line no-magic-numbers { leading: true, trailing: false }) }); /***/ }), /***/ "../../victory-voronoi/es/helper-methods.js": /*!*****************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-voronoi/es/helper-methods.js ***! \*****************************************************************************************/ /*! exports provided: getBaseProps */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBaseProps", function() { return getBaseProps; }); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js"); /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js"); /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var d3_voronoi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-voronoi */ "../../../node_modules/d3-voronoi/src/index.js"); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } var getVoronoi = function (props, range, scale) { var minRange = [Math.min.apply(Math, _toConsumableArray(range.x)), Math.min.apply(Math, _toConsumableArray(range.y))]; var maxRange = [Math.max.apply(Math, _toConsumableArray(range.x)), Math.max.apply(Math, _toConsumableArray(range.y))]; var angleAccessor = function (d) { var x = scale.x(d._x1 !== undefined ? d._x1 : d._x); return -1 * x + Math.PI / 2; }; var xAccessor = function (d) { return props.horizontal ? scale.y(d._y1 !== undefined ? d._y1 : d._y) : scale.x(d._x1 !== undefined ? d._x1 : d._x); }; var yAccessor = function (d) { return props.horizontal ? scale.x(d._x1 !== undefined ? d._x1 : d._x) : scale.y(d._y1 !== undefined ? d._y1 : d._y); }; return Object(d3_voronoi__WEBPACK_IMPORTED_MODULE_3__["voronoi"])().x(function (d) { return props.polar ? angleAccessor(d) : xAccessor(d); }).y(function (d) { return yAccessor(d); }).extent([minRange, maxRange]); }; var getCalculatedValues = function (props) { var defaultStyles = props.theme && props.theme.voronoi && props.theme.voronoi.style ? props.theme.voronoi.style : {}; var style = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].getStyles(props.style, defaultStyles); var range = { x: victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].getRange(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].getRange(props, "y") }; var domain = { x: victory_core__WEBPACK_IMPORTED_MODULE_4__["Domain"].getDomain(props, "x"), y: victory_core__WEBPACK_IMPORTED_MODULE_4__["Domain"].getDomain(props, "y") }; var scale = { x: victory_core__WEBPACK_IMPORTED_MODULE_4__["Scale"].getBaseScale(props, "x").domain(domain.x).range(props.horizontal ? range.y : range.x), y: victory_core__WEBPACK_IMPORTED_MODULE_4__["Scale"].getBaseScale(props, "y").domain(domain.y).range(props.horizontal ? range.x : range.y) }; var data = victory_core__WEBPACK_IMPORTED_MODULE_4__["Data"].getData(props); data = victory_core__WEBPACK_IMPORTED_MODULE_4__["Data"].formatDataFromDomain(data, domain); var voronoi = getVoronoi(props, range, scale); var polygons = voronoi.polygons(data); var origin = props.polar ? props.origin || victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].getPolarOrigin(props) : undefined; return { domain: domain, data: data, scale: scale, style: style, polygons: polygons, origin: origin }; }; var getBaseProps = function (props, fallbackProps) { var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].modifyProps(props, fallbackProps, "scatter"); props = lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, modifiedProps, getCalculatedValues(modifiedProps)); var _props = props, data = _props.data, domain = _props.domain, events = _props.events, height = _props.height, origin = _props.origin, padding = _props.padding, polar = _props.polar, polygons = _props.polygons, scale = _props.scale, sharedEvents = _props.sharedEvents, standalone = _props.standalone, style = _props.style, theme = _props.theme, width = _props.width, labels = _props.labels, name = _props.name; var initialChildProps = { parent: { style: style.parent, scale: scale, domain: domain, data: data, standalone: standalone, height: height, width: width, theme: theme, origin: origin, polar: polar, padding: padding, name: name } }; return data.reduce(function (childProps, datum, index) { var polygon = lodash_without__WEBPACK_IMPORTED_MODULE_1___default()(polygons[index], "data"); var eventKey = !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum.eventKey) ? datum.eventKey : index; var _Helpers$scalePoint = victory_core__WEBPACK_IMPORTED_MODULE_4__["Helpers"].scalePoint(props, datum), x = _Helpers$scalePoint.x, y = _Helpers$scalePoint.y; var dataProps = { x: x, y: y, datum: datum, data: data, index: index, scale: scale, polygon: polygon, origin: origin, size: props.size, style: style.data }; childProps[eventKey] = { data: dataProps }; var text = victory_core__WEBPACK_IMPORTED_MODULE_4__["LabelHelpers"].getText(props, datum, index); if (text !== undefined && text !== null || labels && (events || sharedEvents)) { childProps[eventKey].labels = victory_core__WEBPACK_IMPORTED_MODULE_4__["LabelHelpers"].getProps(props, index); } return childProps; }, initialChildProps); }; /***/ }), /***/ "../../victory-voronoi/es/index.js": /*!********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-voronoi/es/index.js ***! \********************************************************************************/ /*! exports provided: VictoryVoronoi, Voronoi */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_voronoi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-voronoi */ "../../victory-voronoi/es/victory-voronoi.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryVoronoi", function() { return _victory_voronoi__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _voronoi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./voronoi */ "../../victory-voronoi/es/voronoi.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Voronoi", function() { return _voronoi__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /***/ }), /***/ "../../victory-voronoi/es/victory-voronoi.js": /*!******************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-voronoi/es/victory-voronoi.js ***! \******************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony import */ var _voronoi__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./voronoi */ "../../victory-voronoi/es/voronoi.js"); /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helper-methods */ "../../victory-voronoi/es/helper-methods.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var fallbackProps = { width: 450, height: 300, padding: 50 }; var VictoryVoronoi = /*#__PURE__*/ function (_React$Component) { _inherits(VictoryVoronoi, _React$Component); function VictoryVoronoi() { _classCallCheck(this, VictoryVoronoi); return _possibleConstructorReturn(this, (VictoryVoronoi.__proto__ || Object.getPrototypeOf(VictoryVoronoi)).apply(this, arguments)); } _createClass(VictoryVoronoi, [{ key: "shouldAnimate", // Overridden in native versions value: function shouldAnimate() { return !!this.props.animate; } }, { key: "render", value: function render() { var animationWhitelist = VictoryVoronoi.animationWhitelist, role = VictoryVoronoi.role; var props = victory_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].modifyProps(this.props, fallbackProps, role); if (this.shouldAnimate()) { return this.animateComponent(props, animationWhitelist); } var children = this.renderData(props); return props.standalone ? this.renderContainer(props.containerComponent, children) : children; } }]); return VictoryVoronoi; }(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); Object.defineProperty(VictoryVoronoi, "animationWhitelist", { configurable: true, enumerable: true, writable: true, value: ["data", "domain", "height", "padding", "samples", "size", "style", "width"] }); Object.defineProperty(VictoryVoronoi, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryVoronoi" }); Object.defineProperty(VictoryVoronoi, "role", { configurable: true, enumerable: true, writable: true, value: "voronoi" }); Object.defineProperty(VictoryVoronoi, "defaultTransitions", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_1__["DefaultTransitions"].discreteTransitions() }); Object.defineProperty(VictoryVoronoi, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_1__["CommonProps"].baseProps, victory_core__WEBPACK_IMPORTED_MODULE_1__["CommonProps"].dataProps, { size: victory_core__WEBPACK_IMPORTED_MODULE_1__["PropTypes"].nonNegative }) }); Object.defineProperty(VictoryVoronoi, "defaultProps", { configurable: true, enumerable: true, writable: true, value: { containerComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_1__["VictoryContainer"], null), dataComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_voronoi__WEBPACK_IMPORTED_MODULE_2__["default"], null), labelComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_1__["VictoryLabel"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("g", { role: "presentation" }), samples: 50, sortOrder: "ascending", standalone: true, theme: victory_core__WEBPACK_IMPORTED_MODULE_1__["VictoryTheme"].grayscale } }); Object.defineProperty(VictoryVoronoi, "getDomain", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_1__["Domain"].getDomain }); Object.defineProperty(VictoryVoronoi, "getData", { configurable: true, enumerable: true, writable: true, value: victory_core__WEBPACK_IMPORTED_MODULE_1__["Data"].getData }); Object.defineProperty(VictoryVoronoi, "getBaseProps", { configurable: true, enumerable: true, writable: true, value: function (props) { return Object(_helper_methods__WEBPACK_IMPORTED_MODULE_3__["getBaseProps"])(props, fallbackProps); } }); Object.defineProperty(VictoryVoronoi, "expectedComponents", { configurable: true, enumerable: true, writable: true, value: ["dataComponent", "labelComponent", "groupComponent", "containerComponent"] }); /* harmony default export */ __webpack_exports__["default"] = (Object(victory_core__WEBPACK_IMPORTED_MODULE_1__["addEvents"])(VictoryVoronoi)); /***/ }), /***/ "../../victory-voronoi/es/voronoi.js": /*!**********************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-voronoi/es/voronoi.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js"); /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } /*eslint no-magic-numbers: ["error", { "ignore": [2] }]*/ var getVoronoiPath = function (props) { var polygon = props.polygon; return Array.isArray(polygon) && polygon.length ? "M ".concat(props.polygon.join("L"), " Z") : ""; }; var evaluateProps = function (props) { /** * Potential evaluated props are: * `aria-label` * `id` * `size` * `style` * `tabIndex */ var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].evaluateProp(props.ariaLabel, props); var id = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].evaluateProp(props.id, props); var size = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].evaluateProp(props.size, props); var style = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].evaluateStyle(props.style, props); var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_3__["Helpers"].evaluateProp(props.tabIndex, props); return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { ariaLabel: ariaLabel, id: id, size: size, style: style, tabIndex: tabIndex }); }; var Voronoi = function (props) { props = evaluateProps(props); var _props = props, ariaLabel = _props.ariaLabel, role = _props.role, shapeRendering = _props.shapeRendering, className = _props.className, events = _props.events, transform = _props.transform, style = _props.style, size = _props.size, tabIndex = _props.tabIndex; var voronoiPath = getVoronoiPath(props); var sharedProps = _objectSpread({ "aria-label": ariaLabel, className: className, role: role, shapeRendering: shapeRendering, style: style, tabIndex: tabIndex, transform: transform }, events); if (size) { var circle = react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(props.circleComponent, _objectSpread({}, sharedProps, { key: "".concat(props.id, "-circle-clip"), clipPath: "url(#".concat(props.clipId, ")"), cx: props.x, cy: props.y, r: size })); var voronoiClipPath = react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(props.clipPathComponent, { key: "".concat(props.id, "-voronoi-clip"), clipId: props.clipId }, react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(props.pathComponent, { d: voronoiPath, className: className })); return react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(props.groupComponent, {}, [voronoiClipPath, circle]); } return react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(props.pathComponent, _objectSpread({}, sharedProps, { d: voronoiPath })); }; Voronoi.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_3__["CommonProps"].primitiveProps, { circleComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, clipId: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string]), clipPathComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, datum: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, groupComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, pathComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, polygon: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array, size: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, x: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, y: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number }); Voronoi.defaultProps = { pathComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__["Path"], null), circleComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__["Circle"], null), clipPathComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__["ClipPath"], null), groupComponent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("g", null), role: "presentation", shapeRendering: "auto" }; /* harmony default export */ __webpack_exports__["default"] = (Voronoi); /***/ }), /***/ "../../victory-zoom-container/es/index.js": /*!***************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-zoom-container/es/index.js ***! \***************************************************************************************/ /*! exports provided: zoomContainerMixin, VictoryZoomContainer, ZoomHelpers, RawZoomHelpers */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _victory_zoom_container__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-zoom-container */ "../../victory-zoom-container/es/victory-zoom-container.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zoomContainerMixin", function() { return _victory_zoom_container__WEBPACK_IMPORTED_MODULE_0__["zoomContainerMixin"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryZoomContainer", function() { return _victory_zoom_container__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _zoom_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./zoom-helpers */ "../../victory-zoom-container/es/zoom-helpers.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ZoomHelpers", function() { return _zoom_helpers__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RawZoomHelpers", function() { return _zoom_helpers__WEBPACK_IMPORTED_MODULE_1__["RawZoomHelpers"]; }); /***/ }), /***/ "../../victory-zoom-container/es/victory-zoom-container.js": /*!********************************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-zoom-container/es/victory-zoom-container.js ***! \********************************************************************************************************/ /*! exports provided: zoomContainerMixin, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zoomContainerMixin", function() { return zoomContainerMixin; }); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js"); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./zoom-helpers */ "../../victory-zoom-container/es/zoom-helpers.js"); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } 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; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var DEFAULT_DOWNSAMPLE = 150; var zoomContainerMixin = function (base) { var _class, _temp; return _temp = _class = /*#__PURE__*/ function (_base) { _inherits(VictoryZoomContainer, _base); function VictoryZoomContainer() { _classCallCheck(this, VictoryZoomContainer); return _possibleConstructorReturn(this, (VictoryZoomContainer.__proto__ || Object.getPrototypeOf(VictoryZoomContainer)).apply(this, arguments)); } _createClass(VictoryZoomContainer, [{ key: "clipDataComponents", value: function clipDataComponents(children, props) { var scale = props.scale, clipContainerComponent = props.clipContainerComponent, polar = props.polar, origin = props.origin, horizontal = props.horizontal; var rangeX = horizontal ? scale.y.range() : scale.x.range(); var rangeY = horizontal ? scale.x.range() : scale.y.range(); var plottableWidth = Math.abs(rangeX[0] - rangeX[1]); var plottableHeight = Math.abs(rangeY[0] - rangeY[1]); var radius = Math.max.apply(Math, _toConsumableArray(rangeY)); var groupComponent = react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(clipContainerComponent, _objectSpread({ clipWidth: plottableWidth, clipHeight: plottableHeight, translateX: Math.min.apply(Math, _toConsumableArray(rangeX)), translateY: Math.min.apply(Math, _toConsumableArray(rangeY)), polar: polar, origin: polar ? origin : undefined, radius: polar ? radius : undefined }, clipContainerComponent.props)); return react__WEBPACK_IMPORTED_MODULE_3___default.a.Children.toArray(children).map(function (child) { if (!victory_core__WEBPACK_IMPORTED_MODULE_5__["Data"].isDataComponent(child)) { return child; } else { return react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(child, { groupComponent: groupComponent }); } }); } }, { key: "modifyPolarDomain", value: function modifyPolarDomain(domain, originalDomain) { // Only zoom the radius of polar charts. Zooming angles is very confusing return { x: originalDomain.x, y: [0, domain.y[1]] }; } }, { key: "downsampleZoomData", value: function downsampleZoomData(props, child, domain) { var downsample = props.downsample; var getData = function (childProps) { var data = childProps.data, x = childProps.x, y = childProps.y; var defaultGetData = child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(child.type.getData) ? child.type.getData : function () { return undefined; }; // skip costly data formatting if x and y accessors are not present return Array.isArray(data) && !x && !y ? data : defaultGetData(childProps); }; var data = getData(child.props); // return undefined if downsample is not run, then default() will replace with child.props.data if (!downsample || !domain || !data) { return undefined; } var maxPoints = downsample === true ? DEFAULT_DOWNSAMPLE : downsample; var dimension = props.zoomDimension || "x"; // important: assumes data is ordered by dimension // get the start and end of the data that is in the current visible domain var startIndex = data.findIndex(function (d) { return d[dimension] >= domain[dimension][0]; }); var endIndex = data.findIndex(function (d) { return d[dimension] > domain[dimension][1]; }); // pick one more point (if available) at each end so that VictoryLine, VictoryArea connect if (startIndex !== 0) { startIndex -= 1; } if (endIndex !== -1) { endIndex += 1; } var visibleData = data.slice(startIndex, endIndex); return victory_core__WEBPACK_IMPORTED_MODULE_5__["Data"].downsample(visibleData, maxPoints, startIndex); } }, { key: "modifyChildren", value: function modifyChildren(props) { var _this = this; var childComponents = react__WEBPACK_IMPORTED_MODULE_3___default.a.Children.toArray(props.children); // eslint-disable-next-line max-statements return childComponents.map(function (child) { var role = child.type && child.type.role; var isDataComponent = victory_core__WEBPACK_IMPORTED_MODULE_5__["Data"].isDataComponent(child); var currentDomain = props.currentDomain, zoomActive = props.zoomActive, allowZoom = props.allowZoom; var originalDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, props.originalDomain, props.domain); var zoomDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, props.zoomDomain, props.domain); var cachedZoomDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, props.cachedZoomDomain, props.domain); var domain; if (!_zoom_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].checkDomainEquality(zoomDomain, cachedZoomDomain)) { // if zoomDomain has been changed, use it domain = zoomDomain; } else if (allowZoom && !zoomActive) { // if user has zoomed all the way out, use the child domain domain = child.props.domain; } else { // default: use currentDomain, set by the event handlers domain = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, currentDomain, originalDomain); } var newDomain = props.polar ? _this.modifyPolarDomain(domain, originalDomain) : domain; if (newDomain && props.zoomDimension) { // if zooming is restricted to a dimension, don't squash changes to zoomDomain in other dim newDomain = _objectSpread({}, zoomDomain, _defineProperty({}, props.zoomDimension, newDomain[props.zoomDimension])); } // don't downsample stacked data var newProps = isDataComponent && role !== "stack" ? { domain: newDomain, data: _this.downsampleZoomData(props, child, newDomain) } : { domain: newDomain }; return react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(newProps, child.props)); }); } // Overrides method in VictoryContainer }, { key: "getChildren", value: function getChildren(props) { var children = this.modifyChildren(props); return this.clipDataComponents(children, props); } }]); return VictoryZoomContainer; }(base), Object.defineProperty(_class, "displayName", { configurable: true, enumerable: true, writable: true, value: "VictoryZoomContainer" }), Object.defineProperty(_class, "propTypes", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__["VictoryContainer"].propTypes, { allowPan: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, allowZoom: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, clipContainerComponent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element.isRequired, disable: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, downsample: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number]), minimumZoom: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({ x: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, y: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number }), onZoomDomainChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func, zoomDimension: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["x", "y"]), zoomDomain: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({ x: victory_core__WEBPACK_IMPORTED_MODULE_5__["PropTypes"].domain, y: victory_core__WEBPACK_IMPORTED_MODULE_5__["PropTypes"].domain }) }) }), Object.defineProperty(_class, "defaultProps", { configurable: true, enumerable: true, writable: true, value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__["VictoryContainer"].defaultProps, { clipContainerComponent: react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__["VictoryClipContainer"], null), allowPan: true, allowZoom: true, zoomActive: false }) }), Object.defineProperty(_class, "defaultEvents", { configurable: true, enumerable: true, writable: true, value: function (props) { return [{ target: "parent", eventHandlers: _objectSpread({ onMouseDown: function (evt, targetProps) { return props.disable ? {} : _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].onMouseDown(evt, targetProps); }, onTouchStart: function (evt, targetProps) { return props.disable ? {} : _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].onMouseDown(evt, targetProps); }, onMouseUp: function (evt, targetProps) { return props.disable ? {} : _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].onMouseUp(evt, targetProps); }, onTouchEnd: function (evt, targetProps) { return props.disable ? {} : _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].onMouseUp(evt, targetProps); }, onMouseLeave: function (evt, targetProps) { return props.disable ? {} : _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].onMouseLeave(evt, targetProps); }, onTouchCancel: function (evt, targetProps) { return props.disable ? {} : _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].onMouseLeave(evt, targetProps); }, // eslint-disable-next-line max-params onMouseMove: function (evt, targetProps, eventKey, ctx) { if (props.disable) { return {}; } return _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].onMouseMove(evt, targetProps, eventKey, ctx); }, // eslint-disable-next-line max-params onTouchMove: function (evt, targetProps, eventKey, ctx) { if (props.disable) { return {}; } evt.preventDefault(); return _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].onMouseMove(evt, targetProps, eventKey, ctx); } }, props.disable || !props.allowZoom ? {} : { onWheel: _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__["default"].onWheel }) }]; } }), _temp; }; /* harmony default export */ __webpack_exports__["default"] = (zoomContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_5__["VictoryContainer"])); /***/ }), /***/ "../../victory-zoom-container/es/zoom-helpers.js": /*!**********************************************************************************************!*\ !*** /Users/boygirl/formidable/v/victory/packages/victory-zoom-container/es/zoom-helpers.js ***! \**********************************************************************************************/ /*! exports provided: RawZoomHelpers, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RawZoomHelpers", function() { return RawZoomHelpers; }); /* harmony import */ var lodash_delay__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/delay */ "../../../node_modules/lodash/delay.js"); /* harmony import */ var lodash_delay__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_delay__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js"); /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js"); /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/throttle */ "../../../node_modules/lodash/throttle.js"); /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); 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; } function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2, 1000] }]*/ var RawZoomHelpers = { checkDomainEquality: function (a, b) { var checkDimension = function (dim) { var val1 = a && a[dim]; var val2 = b && b[dim]; if (!val1 && !val2) { return true; } else if (!val1 || !val2) { return false; } return +val1[0] === +val2[0] && +val1[1] === +val2[1]; }; return checkDimension("x") && checkDimension("y"); }, /** * Generates a new domain scaled by factor and constrained by the original domain. * @param {[Number, Number]} currentDomain The domain to be scaled. * @param {Object} evt the event object * @param {Object} props the props of the targeted component * @param {String} axis the desired dimension (either x or y) * @return {[Number, Number]} The scale domain */ // eslint-disable-next-line max-params scale: function (currentDomain, evt, props, axis) { var _currentDomain = _slicedToArray(currentDomain, 2), from = _currentDomain[0], to = _currentDomain[1]; var range = Math.abs(to - from); var minimumZoom = props.minimumZoom && props.minimumZoom[axis]; var factor = this.getScaleFactor(evt); if (minimumZoom && range <= minimumZoom && factor < 1) { return currentDomain; } var _getDomain$axis = _slicedToArray(this.getDomain(props)[axis], 2), fromBound = _getDomain$axis[0], toBound = _getDomain$axis[1]; var percent = this.getScalePercent(evt, props, axis); var point = factor * from + percent * (factor * range); var minDomain = this.getMinimumDomain(point, props, axis); var _getScaledDomain = this.getScaledDomain(currentDomain, factor, percent), _getScaledDomain2 = _slicedToArray(_getScaledDomain, 2), newMin = _getScaledDomain2[0], newMax = _getScaledDomain2[1]; var newDomain = [newMin > fromBound && newMin < toBound ? newMin : fromBound, newMax < toBound && newMax > fromBound ? newMax : toBound]; var domain = Math.abs(minDomain[1] - minDomain[0]) > Math.abs(newDomain[1] - newDomain[0]) ? minDomain : newDomain; return victory_core__WEBPACK_IMPORTED_MODULE_5__["Collection"].containsDates([fromBound, toBound]) ? [new Date(domain[0]), new Date(domain[1])] : domain; }, getScaledDomain: function (currentDomain, factor, percent) { var _currentDomain2 = _slicedToArray(currentDomain, 2), from = _currentDomain2[0], to = _currentDomain2[1]; var range = Math.abs(to - from); var diff = range - range * factor; var newMin = +from + diff * percent; var newMax = +to - diff * (1 - percent); return [Math.min(newMin, newMax), Math.max(newMin, newMax)]; }, getMinimumDomain: function (point, props, axis) { var minimumZoom = props.minimumZoom; var originalDomain = this.getDomain(props)[axis]; var _originalDomain = _slicedToArray(originalDomain, 2), from = _originalDomain[0], to = _originalDomain[1]; var defaultMin = Math.abs(from - to) / 1000; var extent = minimumZoom ? minimumZoom[axis] || defaultMin : defaultMin; var minExtent = point - extent / 2; var maxExtent = point + extent / 2; return [minExtent > from && minExtent < to ? minExtent : from, maxExtent < to && maxExtent > from ? maxExtent : +from + extent / 2]; }, zoommingOut: function (evt) { return evt.deltaY > 0; }, getScaleFactor: function (evt) { var sign = this.zoommingOut(evt) ? 1 : -1; // eslint-disable-next-line no-magic-numbers var delta = Math.min(Math.abs(evt.deltaY / 300), 0.5); // TODO: Check scale factor return Math.abs(1 + sign * delta); }, getScalePercent: function (evt, props, axis) { var originalDomain = this.getDomain(props); var _originalDomain$axis = _slicedToArray(originalDomain[axis], 2), from = _originalDomain$axis[0], to = _originalDomain$axis[1]; var position = this.getPosition(evt, props, originalDomain); return (position[axis] - from) / Math.abs(to - from); }, getPosition: function (evt, props, originalDomain) { var _Selection$getSVGEven = victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getSVGEventCoordinates(evt), x = _Selection$getSVGEven.x, y = _Selection$getSVGEven.y; var originalScale = { x: props.scale.x.domain(originalDomain.x), y: props.scale.y.domain(originalDomain.y) }; return victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getDataCoordinates(props, originalScale, x, y); }, /** * Generate a new domain translated by the delta and constrained by the original domain. * @param {[Number, Number]} currentDomain The domain to be translated. * @param {[Number, Number]} originalDomain The original domain for the data set. * @param {Number} delta The delta to translate by * @return {[Number, Number]} The translated domain */ pan: function (currentDomain, originalDomain, delta) { var _currentDomain$map = currentDomain.map(function (val) { return +val; }), _currentDomain$map2 = _slicedToArray(_currentDomain$map, 2), fromCurrent = _currentDomain$map2[0], toCurrent = _currentDomain$map2[1]; var _originalDomain$map = originalDomain.map(function (val) { return +val; }), _originalDomain$map2 = _slicedToArray(_originalDomain$map, 2), fromOriginal = _originalDomain$map2[0], toOriginal = _originalDomain$map2[1]; var lowerBound = fromCurrent + delta; var upperBound = toCurrent + delta; var newDomain; if (lowerBound > fromOriginal && upperBound < toOriginal) { newDomain = [lowerBound, upperBound]; } else if (lowerBound < fromOriginal) { // Clamp to lower limit var dx = toCurrent - fromCurrent; newDomain = [fromOriginal, fromOriginal + dx]; } else if (upperBound > toOriginal) { // Clamp to upper limit var _dx = toCurrent - fromCurrent; newDomain = [toOriginal - _dx, toOriginal]; } else { newDomain = currentDomain; } return victory_core__WEBPACK_IMPORTED_MODULE_5__["Collection"].containsDates(currentDomain) || victory_core__WEBPACK_IMPORTED_MODULE_5__["Collection"].containsDates(originalDomain) ? newDomain.map(function (val) { return new Date(val); }) : newDomain; }, // eslint-disable-next-line max-params getDomainScale: function (domain, scale, axis, horizontal) { var axisDomain = Array.isArray(domain) ? domain : domain[axis]; var _axisDomain = _slicedToArray(axisDomain, 2), from = _axisDomain[0], to = _axisDomain[1]; var otherAxis = axis === "x" ? "y" : "x"; var range = horizontal ? scale[otherAxis].range() : scale[axis].range(); var plottableWidth = Math.abs(range[0] - range[1]); return plottableWidth / (to - from); }, handleAnimation: function (ctx) { var animationTimer = ctx.context.animationTimer; var transitionTimer = ctx.context.transitionTimer; transitionTimer.bypassAnimation(); animationTimer.bypassAnimation(); var resumeAnimation = function () { animationTimer.resumeAnimation(); transitionTimer.resumeAnimation(); }; // delay the callback that resumes animation by ~1 frame so that animation does not interfere with wheel events return lodash_delay__WEBPACK_IMPORTED_MODULE_0___default()(resumeAnimation, 16); // eslint-disable-line no-magic-numbers }, getLastDomain: function (targetProps, originalDomain) { var zoomDomain = targetProps.zoomDomain, cachedZoomDomain = targetProps.cachedZoomDomain, currentDomain = targetProps.currentDomain, domain = targetProps.domain; if (zoomDomain && !this.checkDomainEquality(zoomDomain, cachedZoomDomain)) { return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, zoomDomain, domain); } return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, currentDomain || zoomDomain || originalDomain, domain); }, getDomain: function (props) { var originalDomain = props.originalDomain, domain = props.domain, children = props.children, zoomDimension = props.zoomDimension; var childComponents = react__WEBPACK_IMPORTED_MODULE_4__["Children"].toArray(children); var childrenDomain = {}; if (childComponents.length) { childrenDomain = zoomDimension ? _defineProperty({}, zoomDimension, victory_core__WEBPACK_IMPORTED_MODULE_5__["Wrapper"].getDomainFromChildren(props, zoomDimension, childComponents)) : { x: victory_core__WEBPACK_IMPORTED_MODULE_5__["Wrapper"].getDomainFromChildren(props, "x", childComponents), y: victory_core__WEBPACK_IMPORTED_MODULE_5__["Wrapper"].getDomainFromChildren(props, "y", childComponents) }; } return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, childrenDomain, originalDomain, domain); }, onMouseDown: function (evt, targetProps) { evt.preventDefault(); if (!targetProps.allowPan) { return undefined; } var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getParentSVG(evt); var _Selection$getSVGEven2 = victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getSVGEventCoordinates(evt, parentSVG), x = _Selection$getSVGEven2.x, y = _Selection$getSVGEven2.y; return [{ target: "parent", mutation: function () { return { startX: x, startY: y, panning: true, parentSVG: parentSVG, parentControlledProps: ["domain"] }; } }]; }, onMouseUp: function (evt, targetProps) { if (!targetProps.allowPan) { return undefined; } return [{ target: "parent", mutation: function () { return { panning: false }; } }]; }, onMouseLeave: function (evt, targetProps) { if (!targetProps.allowPan) { return undefined; } return [{ target: "parent", mutation: function () { return { panning: false }; } }]; }, // eslint-disable-next-line max-params, max-statements onMouseMove: function (evt, targetProps, eventKey, ctx) { if (targetProps.panning && targetProps.allowPan) { var scale = targetProps.scale, startX = targetProps.startX, startY = targetProps.startY, onZoomDomainChange = targetProps.onZoomDomainChange, zoomDomain = targetProps.zoomDomain, zoomDimension = targetProps.zoomDimension, horizontal = targetProps.horizontal; var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getParentSVG(evt); var _Selection$getSVGEven3 = victory_core__WEBPACK_IMPORTED_MODULE_5__["Selection"].getSVGEventCoordinates(evt, parentSVG), x = _Selection$getSVGEven3.x, y = _Selection$getSVGEven3.y; var originalDomain = this.getDomain(targetProps); var lastDomain = this.getLastDomain(targetProps, originalDomain); var deltaX = horizontal ? y - startY : startX - x; var deltaY = horizontal ? startX - x : y - startY; var dx = deltaX / this.getDomainScale(lastDomain, scale, "x", horizontal); var dy = deltaY / this.getDomainScale(lastDomain, scale, "y", horizontal); var currentDomain = { x: zoomDimension === "y" ? originalDomain.x : this.pan(lastDomain.x, originalDomain.x, dx), y: zoomDimension === "x" ? originalDomain.y : this.pan(lastDomain.y, originalDomain.y, dy) }; var resumeAnimation = this.handleAnimation(ctx); var zoomActive = !this.checkDomainEquality(originalDomain, lastDomain); var mutatedProps = { parentControlledProps: ["domain"], startX: x, startY: y, parentSVG: parentSVG, currentDomain: currentDomain, originalDomain: originalDomain, cachedZoomDomain: zoomDomain, zoomActive: zoomActive }; if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(onZoomDomainChange)) { onZoomDomainChange(currentDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, mutatedProps, targetProps)); } return [{ target: "parent", callback: resumeAnimation, mutation: function () { return mutatedProps; } }]; } return undefined; }, // eslint-disable-next-line max-params onWheel: function (evt, targetProps, eventKey, ctx) { if (!targetProps.allowZoom) { return undefined; } var onZoomDomainChange = targetProps.onZoomDomainChange, zoomDimension = targetProps.zoomDimension, zoomDomain = targetProps.zoomDomain; var originalDomain = this.getDomain(targetProps); var lastDomain = this.getLastDomain(targetProps, originalDomain); var x = lastDomain.x, y = lastDomain.y; var currentDomain = { x: zoomDimension === "y" ? lastDomain.x : this.scale(x, evt, targetProps, "x"), y: zoomDimension === "x" ? lastDomain.y : this.scale(y, evt, targetProps, "y") }; var resumeAnimation = this.handleAnimation(ctx); var zoomActive = !this.zoommingOut(evt) || // if zoomming in or // if zoomActive is already set AND user hasn't zoommed out all the way targetProps.zoomActive && !this.checkDomainEquality(originalDomain, lastDomain); var mutatedProps = { currentDomain: currentDomain, originalDomain: originalDomain, cachedZoomDomain: zoomDomain, parentControlledProps: ["domain"], panning: false, zoomActive: zoomActive }; if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(onZoomDomainChange)) { onZoomDomainChange(currentDomain, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, mutatedProps, targetProps)); } return [{ target: "parent", callback: resumeAnimation, mutation: function () { return mutatedProps; } }]; } }; // allow victory-native to extend these helpers /* harmony default export */ __webpack_exports__["default"] = ({ checkDomainEquality: RawZoomHelpers.checkDomainEquality.bind(RawZoomHelpers), onMouseDown: RawZoomHelpers.onMouseDown.bind(RawZoomHelpers), onMouseUp: RawZoomHelpers.onMouseUp.bind(RawZoomHelpers), onMouseLeave: RawZoomHelpers.onMouseLeave.bind(RawZoomHelpers), onMouseMove: lodash_throttle__WEBPACK_IMPORTED_MODULE_3___default()(RawZoomHelpers.onMouseMove.bind(RawZoomHelpers), 16, // eslint-disable-line no-magic-numbers { leading: true, trailing: false }), onWheel: lodash_throttle__WEBPACK_IMPORTED_MODULE_3___default()(RawZoomHelpers.onWheel.bind(RawZoomHelpers), 16, // eslint-disable-line no-magic-numbers { leading: true, trailing: false }) }); /***/ }), /***/ "./index.js": /*!******************!*\ !*** ./index.js ***! \******************/ /*! exports provided: Area, Background, Bar, Border, Box, Candle, ClipPath, Curve, ErrorBar, LineSegment, Point, Slice, Voronoi, Flyout, Whisker, Circle, Rect, Line, Path, TSpan, Text, VictoryAnimation, VictoryArea, VictoryAxis, VictoryPolarAxis, VictoryBar, VictoryBoxPlot, VictoryCandlestick, VictoryChart, VictoryErrorBar, VictoryHistogram, VictoryGroup, VictoryLine, VictoryLabel, VictoryLegend, VictoryPie, VictoryScatter, VictoryStack, VictoryTheme, VictoryTransition, VictorySharedEvents, VictoryTooltip, VictoryVoronoi, VictoryPortal, Portal, VictoryContainer, VictoryClipContainer, VictoryZoomContainer, ZoomHelpers, zoomContainerMixin, RawZoomHelpers, VictorySelectionContainer, SelectionHelpers, selectionContainerMixin, VictoryBrushContainer, BrushHelpers, brushContainerMixin, VictoryCursorContainer, CursorHelpers, cursorContainerMixin, VictoryVoronoiContainer, VoronoiHelpers, voronoiContainerMixin, combineContainerMixins, makeCreateContainerFunction, createContainer, VictoryBrushLine, addEvents, Collection, Data, DefaultTransitions, Domain, Events, Helpers, Log, PropTypes, Scale, Style, TextSize, Transitions, Selection, LabelHelpers, Axis, Wrapper, VictoryAccessibleGroup */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Background", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Background"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Border", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Border"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Box", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Box"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClipPath", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["ClipPath"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LineSegment", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["LineSegment"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Point", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Point"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Whisker", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Whisker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Circle", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Circle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Rect", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Rect"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Line", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Line"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Path", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Path"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TSpan", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["TSpan"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Text", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Text"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryAnimation", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["VictoryAnimation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryLabel", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["VictoryLabel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryTheme", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["VictoryTheme"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryTransition", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["VictoryTransition"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryPortal", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["VictoryPortal"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Portal", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Portal"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryContainer", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["VictoryContainer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryClipContainer", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["VictoryClipContainer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "addEvents", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["addEvents"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Collection", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Collection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Data", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Data"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultTransitions", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["DefaultTransitions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Domain", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Domain"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Events", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Events"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Helpers", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Helpers"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Log", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Log"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropTypes", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["PropTypes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Scale", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Scale"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Style", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Style"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextSize", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["TextSize"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Transitions", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Transitions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Selection", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Selection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LabelHelpers", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["LabelHelpers"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Axis", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Axis"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Wrapper", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["Wrapper"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryAccessibleGroup", function() { return victory_core__WEBPACK_IMPORTED_MODULE_0__["VictoryAccessibleGroup"]; }); /* harmony import */ var victory_chart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-chart */ "../../victory-chart/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryChart", function() { return victory_chart__WEBPACK_IMPORTED_MODULE_1__["VictoryChart"]; }); /* harmony import */ var victory_group__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-group */ "../../victory-group/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryGroup", function() { return victory_group__WEBPACK_IMPORTED_MODULE_2__["VictoryGroup"]; }); /* harmony import */ var victory_stack__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-stack */ "../../victory-stack/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryStack", function() { return victory_stack__WEBPACK_IMPORTED_MODULE_3__["VictoryStack"]; }); /* harmony import */ var victory_pie__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-pie */ "../../victory-pie/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slice", function() { return victory_pie__WEBPACK_IMPORTED_MODULE_4__["Slice"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryPie", function() { return victory_pie__WEBPACK_IMPORTED_MODULE_4__["VictoryPie"]; }); /* harmony import */ var victory_area__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-area */ "../../victory-area/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Area", function() { return victory_area__WEBPACK_IMPORTED_MODULE_5__["Area"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryArea", function() { return victory_area__WEBPACK_IMPORTED_MODULE_5__["VictoryArea"]; }); /* harmony import */ var victory_bar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-bar */ "../../victory-bar/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Bar", function() { return victory_bar__WEBPACK_IMPORTED_MODULE_6__["Bar"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryBar", function() { return victory_bar__WEBPACK_IMPORTED_MODULE_6__["VictoryBar"]; }); /* harmony import */ var victory_candlestick__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-candlestick */ "../../victory-candlestick/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Candle", function() { return victory_candlestick__WEBPACK_IMPORTED_MODULE_7__["Candle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryCandlestick", function() { return victory_candlestick__WEBPACK_IMPORTED_MODULE_7__["VictoryCandlestick"]; }); /* harmony import */ var victory_errorbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-errorbar */ "../../victory-errorbar/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ErrorBar", function() { return victory_errorbar__WEBPACK_IMPORTED_MODULE_8__["ErrorBar"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryErrorBar", function() { return victory_errorbar__WEBPACK_IMPORTED_MODULE_8__["VictoryErrorBar"]; }); /* harmony import */ var victory_histogram__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-histogram */ "../../victory-histogram/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryHistogram", function() { return victory_histogram__WEBPACK_IMPORTED_MODULE_9__["VictoryHistogram"]; }); /* harmony import */ var victory_line__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-line */ "../../victory-line/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Curve", function() { return victory_line__WEBPACK_IMPORTED_MODULE_10__["Curve"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryLine", function() { return victory_line__WEBPACK_IMPORTED_MODULE_10__["VictoryLine"]; }); /* harmony import */ var victory_scatter__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-scatter */ "../../victory-scatter/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryScatter", function() { return victory_scatter__WEBPACK_IMPORTED_MODULE_11__["VictoryScatter"]; }); /* harmony import */ var victory_box_plot__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! victory-box-plot */ "../../victory-box-plot/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryBoxPlot", function() { return victory_box_plot__WEBPACK_IMPORTED_MODULE_12__["VictoryBoxPlot"]; }); /* harmony import */ var victory_voronoi__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-voronoi */ "../../victory-voronoi/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Voronoi", function() { return victory_voronoi__WEBPACK_IMPORTED_MODULE_13__["Voronoi"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryVoronoi", function() { return victory_voronoi__WEBPACK_IMPORTED_MODULE_13__["VictoryVoronoi"]; }); /* harmony import */ var victory_brush_line__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! victory-brush-line */ "../../victory-brush-line/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryBrushLine", function() { return victory_brush_line__WEBPACK_IMPORTED_MODULE_14__["VictoryBrushLine"]; }); /* harmony import */ var victory_brush_container__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! victory-brush-container */ "../../victory-brush-container/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryBrushContainer", function() { return victory_brush_container__WEBPACK_IMPORTED_MODULE_15__["VictoryBrushContainer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BrushHelpers", function() { return victory_brush_container__WEBPACK_IMPORTED_MODULE_15__["BrushHelpers"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushContainerMixin", function() { return victory_brush_container__WEBPACK_IMPORTED_MODULE_15__["brushContainerMixin"]; }); /* harmony import */ var victory_cursor_container__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! victory-cursor-container */ "../../victory-cursor-container/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryCursorContainer", function() { return victory_cursor_container__WEBPACK_IMPORTED_MODULE_16__["VictoryCursorContainer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CursorHelpers", function() { return victory_cursor_container__WEBPACK_IMPORTED_MODULE_16__["CursorHelpers"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cursorContainerMixin", function() { return victory_cursor_container__WEBPACK_IMPORTED_MODULE_16__["cursorContainerMixin"]; }); /* harmony import */ var victory_selection_container__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! victory-selection-container */ "../../victory-selection-container/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictorySelectionContainer", function() { return victory_selection_container__WEBPACK_IMPORTED_MODULE_17__["VictorySelectionContainer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionHelpers", function() { return victory_selection_container__WEBPACK_IMPORTED_MODULE_17__["SelectionHelpers"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectionContainerMixin", function() { return victory_selection_container__WEBPACK_IMPORTED_MODULE_17__["selectionContainerMixin"]; }); /* harmony import */ var victory_voronoi_container__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! victory-voronoi-container */ "../../victory-voronoi-container/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryVoronoiContainer", function() { return victory_voronoi_container__WEBPACK_IMPORTED_MODULE_18__["VictoryVoronoiContainer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoronoiHelpers", function() { return victory_voronoi_container__WEBPACK_IMPORTED_MODULE_18__["VoronoiHelpers"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "voronoiContainerMixin", function() { return victory_voronoi_container__WEBPACK_IMPORTED_MODULE_18__["voronoiContainerMixin"]; }); /* harmony import */ var victory_zoom_container__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! victory-zoom-container */ "../../victory-zoom-container/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryZoomContainer", function() { return victory_zoom_container__WEBPACK_IMPORTED_MODULE_19__["VictoryZoomContainer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ZoomHelpers", function() { return victory_zoom_container__WEBPACK_IMPORTED_MODULE_19__["ZoomHelpers"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zoomContainerMixin", function() { return victory_zoom_container__WEBPACK_IMPORTED_MODULE_19__["zoomContainerMixin"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RawZoomHelpers", function() { return victory_zoom_container__WEBPACK_IMPORTED_MODULE_19__["RawZoomHelpers"]; }); /* harmony import */ var victory_create_container__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! victory-create-container */ "../../victory-create-container/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "combineContainerMixins", function() { return victory_create_container__WEBPACK_IMPORTED_MODULE_20__["combineContainerMixins"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeCreateContainerFunction", function() { return victory_create_container__WEBPACK_IMPORTED_MODULE_20__["makeCreateContainerFunction"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createContainer", function() { return victory_create_container__WEBPACK_IMPORTED_MODULE_20__["createContainer"]; }); /* harmony import */ var victory_tooltip__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! victory-tooltip */ "../../victory-tooltip/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Flyout", function() { return victory_tooltip__WEBPACK_IMPORTED_MODULE_21__["Flyout"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryTooltip", function() { return victory_tooltip__WEBPACK_IMPORTED_MODULE_21__["VictoryTooltip"]; }); /* harmony import */ var victory_legend__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! victory-legend */ "../../victory-legend/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryLegend", function() { return victory_legend__WEBPACK_IMPORTED_MODULE_22__["VictoryLegend"]; }); /* harmony import */ var victory_shared_events__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! victory-shared-events */ "../../victory-shared-events/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictorySharedEvents", function() { return victory_shared_events__WEBPACK_IMPORTED_MODULE_23__["VictorySharedEvents"]; }); /* harmony import */ var victory_axis__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! victory-axis */ "../../victory-axis/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryAxis", function() { return victory_axis__WEBPACK_IMPORTED_MODULE_24__["VictoryAxis"]; }); /* harmony import */ var victory_polar_axis__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! victory-polar-axis */ "../../victory-polar-axis/es/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VictoryPolarAxis", function() { return victory_polar_axis__WEBPACK_IMPORTED_MODULE_25__["VictoryPolarAxis"]; }); /***/ }), /***/ "react": /*!**************************************************************************************!*\ !*** external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} ***! \**************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE_react__; /***/ }) /******/ }); });