Leon4gr45 commited on
Commit
d43f2b4
·
verified ·
1 Parent(s): 6eeeba6

Upload folder using huggingface_hub (part 7)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/basisClosed.js +70 -0
  2. node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/basisOpen.js +54 -0
  3. node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/bump.js +80 -0
  4. node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/bundle.js +50 -0
  5. node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/cardinal.js +69 -0
  6. node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/cardinalClosed.js +76 -0
  7. node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/cardinalOpen.js +60 -0
  8. node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/catmullRom.js +92 -0
  9. node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/catmullRomClosed.js +83 -0
  10. node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/catmullRomOpen.js +67 -0
  11. node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/linear.js +42 -0
  12. node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/linearClosed.js +28 -0
  13. node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/monotone.js +121 -0
  14. node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/natural.js +67 -0
  15. node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/radial.js +37 -0
  16. node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/step.js +63 -0
  17. node_modules/victory-vendor/lib-vendor/d3-shape/src/descending.js +9 -0
  18. node_modules/victory-vendor/lib-vendor/d3-shape/src/identity.js +9 -0
  19. node_modules/victory-vendor/lib-vendor/d3-shape/src/index.js +430 -0
  20. node_modules/victory-vendor/lib-vendor/d3-shape/src/line.js +51 -0
  21. node_modules/victory-vendor/lib-vendor/d3-shape/src/lineRadial.js +24 -0
  22. node_modules/victory-vendor/lib-vendor/d3-shape/src/link.js +69 -0
  23. node_modules/victory-vendor/lib-vendor/d3-shape/src/math.js +26 -0
  24. node_modules/victory-vendor/lib-vendor/d3-shape/src/noop.js +7 -0
  25. node_modules/victory-vendor/lib-vendor/d3-shape/src/offset/diverging.js +20 -0
  26. node_modules/victory-vendor/lib-vendor/d3-shape/src/offset/expand.js +16 -0
  27. node_modules/victory-vendor/lib-vendor/d3-shape/src/offset/none.js +15 -0
  28. node_modules/victory-vendor/lib-vendor/d3-shape/src/offset/silhouette.js +16 -0
  29. node_modules/victory-vendor/lib-vendor/d3-shape/src/offset/wiggle.js +30 -0
  30. node_modules/victory-vendor/lib-vendor/d3-shape/src/order/appearance.js +23 -0
  31. node_modules/victory-vendor/lib-vendor/d3-shape/src/order/ascending.js +23 -0
  32. node_modules/victory-vendor/lib-vendor/d3-shape/src/order/descending.js +11 -0
  33. node_modules/victory-vendor/lib-vendor/d3-shape/src/order/insideOut.js +31 -0
  34. node_modules/victory-vendor/lib-vendor/d3-shape/src/order/none.js +12 -0
  35. node_modules/victory-vendor/lib-vendor/d3-shape/src/order/reverse.js +11 -0
  36. node_modules/victory-vendor/lib-vendor/d3-shape/src/pie.js +79 -0
  37. node_modules/victory-vendor/lib-vendor/d3-shape/src/point.js +13 -0
  38. node_modules/victory-vendor/lib-vendor/d3-shape/src/pointRadial.js +9 -0
  39. node_modules/victory-vendor/lib-vendor/d3-shape/src/stack.js +55 -0
  40. node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol.js +49 -0
  41. node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/asterisk.js +21 -0
  42. node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/circle.js +14 -0
  43. node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/cross.js +25 -0
  44. node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/diamond.js +20 -0
  45. node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/diamond2.js +17 -0
  46. node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/plus.js +16 -0
  47. node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/square.js +14 -0
  48. node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/square2.js +17 -0
  49. node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/star.js +28 -0
  50. node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/triangle.js +17 -0
node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/basisClosed.js ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ var _noop = _interopRequireDefault(require("../noop.js"));
8
+ var _basis = require("./basis.js");
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ function BasisClosed(context) {
11
+ this._context = context;
12
+ }
13
+ BasisClosed.prototype = {
14
+ areaStart: _noop.default,
15
+ areaEnd: _noop.default,
16
+ lineStart: function () {
17
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;
18
+ this._point = 0;
19
+ },
20
+ lineEnd: function () {
21
+ switch (this._point) {
22
+ case 1:
23
+ {
24
+ this._context.moveTo(this._x2, this._y2);
25
+ this._context.closePath();
26
+ break;
27
+ }
28
+ case 2:
29
+ {
30
+ this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);
31
+ this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);
32
+ this._context.closePath();
33
+ break;
34
+ }
35
+ case 3:
36
+ {
37
+ this.point(this._x2, this._y2);
38
+ this.point(this._x3, this._y3);
39
+ this.point(this._x4, this._y4);
40
+ break;
41
+ }
42
+ }
43
+ },
44
+ point: function (x, y) {
45
+ x = +x, y = +y;
46
+ switch (this._point) {
47
+ case 0:
48
+ this._point = 1;
49
+ this._x2 = x, this._y2 = y;
50
+ break;
51
+ case 1:
52
+ this._point = 2;
53
+ this._x3 = x, this._y3 = y;
54
+ break;
55
+ case 2:
56
+ this._point = 3;
57
+ this._x4 = x, this._y4 = y;
58
+ this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6);
59
+ break;
60
+ default:
61
+ (0, _basis.point)(this, x, y);
62
+ break;
63
+ }
64
+ this._x0 = this._x1, this._x1 = x;
65
+ this._y0 = this._y1, this._y1 = y;
66
+ }
67
+ };
68
+ function _default(context) {
69
+ return new BasisClosed(context);
70
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/basisOpen.js ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ var _basis = require("./basis.js");
8
+ function BasisOpen(context) {
9
+ this._context = context;
10
+ }
11
+ BasisOpen.prototype = {
12
+ areaStart: function () {
13
+ this._line = 0;
14
+ },
15
+ areaEnd: function () {
16
+ this._line = NaN;
17
+ },
18
+ lineStart: function () {
19
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN;
20
+ this._point = 0;
21
+ },
22
+ lineEnd: function () {
23
+ if (this._line || this._line !== 0 && this._point === 3) this._context.closePath();
24
+ this._line = 1 - this._line;
25
+ },
26
+ point: function (x, y) {
27
+ x = +x, y = +y;
28
+ switch (this._point) {
29
+ case 0:
30
+ this._point = 1;
31
+ break;
32
+ case 1:
33
+ this._point = 2;
34
+ break;
35
+ case 2:
36
+ this._point = 3;
37
+ var x0 = (this._x0 + 4 * this._x1 + x) / 6,
38
+ y0 = (this._y0 + 4 * this._y1 + y) / 6;
39
+ this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0);
40
+ break;
41
+ case 3:
42
+ this._point = 4;
43
+ // falls through
44
+ default:
45
+ (0, _basis.point)(this, x, y);
46
+ break;
47
+ }
48
+ this._x0 = this._x1, this._x1 = x;
49
+ this._y0 = this._y1, this._y1 = y;
50
+ }
51
+ };
52
+ function _default(context) {
53
+ return new BasisOpen(context);
54
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/bump.js ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.bumpRadial = bumpRadial;
7
+ exports.bumpX = bumpX;
8
+ exports.bumpY = bumpY;
9
+ var _pointRadial = _interopRequireDefault(require("../pointRadial.js"));
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ class Bump {
12
+ constructor(context, x) {
13
+ this._context = context;
14
+ this._x = x;
15
+ }
16
+ areaStart() {
17
+ this._line = 0;
18
+ }
19
+ areaEnd() {
20
+ this._line = NaN;
21
+ }
22
+ lineStart() {
23
+ this._point = 0;
24
+ }
25
+ lineEnd() {
26
+ if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
27
+ this._line = 1 - this._line;
28
+ }
29
+ point(x, y) {
30
+ x = +x, y = +y;
31
+ switch (this._point) {
32
+ case 0:
33
+ {
34
+ this._point = 1;
35
+ if (this._line) this._context.lineTo(x, y);else this._context.moveTo(x, y);
36
+ break;
37
+ }
38
+ case 1:
39
+ this._point = 2;
40
+ // falls through
41
+ default:
42
+ {
43
+ if (this._x) this._context.bezierCurveTo(this._x0 = (this._x0 + x) / 2, this._y0, this._x0, y, x, y);else this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + y) / 2, x, this._y0, x, y);
44
+ break;
45
+ }
46
+ }
47
+ this._x0 = x, this._y0 = y;
48
+ }
49
+ }
50
+ class BumpRadial {
51
+ constructor(context) {
52
+ this._context = context;
53
+ }
54
+ lineStart() {
55
+ this._point = 0;
56
+ }
57
+ lineEnd() {}
58
+ point(x, y) {
59
+ x = +x, y = +y;
60
+ if (this._point++ === 0) {
61
+ this._x0 = x, this._y0 = y;
62
+ } else {
63
+ const p0 = (0, _pointRadial.default)(this._x0, this._y0);
64
+ const p1 = (0, _pointRadial.default)(this._x0, this._y0 = (this._y0 + y) / 2);
65
+ const p2 = (0, _pointRadial.default)(x, this._y0);
66
+ const p3 = (0, _pointRadial.default)(x, y);
67
+ this._context.moveTo(...p0);
68
+ this._context.bezierCurveTo(...p1, ...p2, ...p3);
69
+ }
70
+ }
71
+ }
72
+ function bumpX(context) {
73
+ return new Bump(context, true);
74
+ }
75
+ function bumpY(context) {
76
+ return new Bump(context, false);
77
+ }
78
+ function bumpRadial(context) {
79
+ return new BumpRadial(context);
80
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/bundle.js ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _basis = require("./basis.js");
8
+ function Bundle(context, beta) {
9
+ this._basis = new _basis.Basis(context);
10
+ this._beta = beta;
11
+ }
12
+ Bundle.prototype = {
13
+ lineStart: function () {
14
+ this._x = [];
15
+ this._y = [];
16
+ this._basis.lineStart();
17
+ },
18
+ lineEnd: function () {
19
+ var x = this._x,
20
+ y = this._y,
21
+ j = x.length - 1;
22
+ if (j > 0) {
23
+ var x0 = x[0],
24
+ y0 = y[0],
25
+ dx = x[j] - x0,
26
+ dy = y[j] - y0,
27
+ i = -1,
28
+ t;
29
+ while (++i <= j) {
30
+ t = i / j;
31
+ this._basis.point(this._beta * x[i] + (1 - this._beta) * (x0 + t * dx), this._beta * y[i] + (1 - this._beta) * (y0 + t * dy));
32
+ }
33
+ }
34
+ this._x = this._y = null;
35
+ this._basis.lineEnd();
36
+ },
37
+ point: function (x, y) {
38
+ this._x.push(+x);
39
+ this._y.push(+y);
40
+ }
41
+ };
42
+ var _default = exports.default = function custom(beta) {
43
+ function bundle(context) {
44
+ return beta === 1 ? new _basis.Basis(context) : new Bundle(context, beta);
45
+ }
46
+ bundle.beta = function (beta) {
47
+ return custom(+beta);
48
+ };
49
+ return bundle;
50
+ }(0.85);
node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/cardinal.js ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Cardinal = Cardinal;
7
+ exports.default = void 0;
8
+ exports.point = point;
9
+ function point(that, x, y) {
10
+ 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);
11
+ }
12
+ function Cardinal(context, tension) {
13
+ this._context = context;
14
+ this._k = (1 - tension) / 6;
15
+ }
16
+ Cardinal.prototype = {
17
+ areaStart: function () {
18
+ this._line = 0;
19
+ },
20
+ areaEnd: function () {
21
+ this._line = NaN;
22
+ },
23
+ lineStart: function () {
24
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN;
25
+ this._point = 0;
26
+ },
27
+ lineEnd: function () {
28
+ switch (this._point) {
29
+ case 2:
30
+ this._context.lineTo(this._x2, this._y2);
31
+ break;
32
+ case 3:
33
+ point(this, this._x1, this._y1);
34
+ break;
35
+ }
36
+ if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
37
+ this._line = 1 - this._line;
38
+ },
39
+ point: function (x, y) {
40
+ x = +x, y = +y;
41
+ switch (this._point) {
42
+ case 0:
43
+ this._point = 1;
44
+ this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
45
+ break;
46
+ case 1:
47
+ this._point = 2;
48
+ this._x1 = x, this._y1 = y;
49
+ break;
50
+ case 2:
51
+ this._point = 3;
52
+ // falls through
53
+ default:
54
+ point(this, x, y);
55
+ break;
56
+ }
57
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
58
+ this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
59
+ }
60
+ };
61
+ var _default = exports.default = function custom(tension) {
62
+ function cardinal(context) {
63
+ return new Cardinal(context, tension);
64
+ }
65
+ cardinal.tension = function (tension) {
66
+ return custom(+tension);
67
+ };
68
+ return cardinal;
69
+ }(0);
node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/cardinalClosed.js ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CardinalClosed = CardinalClosed;
7
+ exports.default = void 0;
8
+ var _noop = _interopRequireDefault(require("../noop.js"));
9
+ var _cardinal = require("./cardinal.js");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ function CardinalClosed(context, tension) {
12
+ this._context = context;
13
+ this._k = (1 - tension) / 6;
14
+ }
15
+ CardinalClosed.prototype = {
16
+ areaStart: _noop.default,
17
+ areaEnd: _noop.default,
18
+ lineStart: function () {
19
+ 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;
20
+ this._point = 0;
21
+ },
22
+ lineEnd: function () {
23
+ switch (this._point) {
24
+ case 1:
25
+ {
26
+ this._context.moveTo(this._x3, this._y3);
27
+ this._context.closePath();
28
+ break;
29
+ }
30
+ case 2:
31
+ {
32
+ this._context.lineTo(this._x3, this._y3);
33
+ this._context.closePath();
34
+ break;
35
+ }
36
+ case 3:
37
+ {
38
+ this.point(this._x3, this._y3);
39
+ this.point(this._x4, this._y4);
40
+ this.point(this._x5, this._y5);
41
+ break;
42
+ }
43
+ }
44
+ },
45
+ point: function (x, y) {
46
+ x = +x, y = +y;
47
+ switch (this._point) {
48
+ case 0:
49
+ this._point = 1;
50
+ this._x3 = x, this._y3 = y;
51
+ break;
52
+ case 1:
53
+ this._point = 2;
54
+ this._context.moveTo(this._x4 = x, this._y4 = y);
55
+ break;
56
+ case 2:
57
+ this._point = 3;
58
+ this._x5 = x, this._y5 = y;
59
+ break;
60
+ default:
61
+ (0, _cardinal.point)(this, x, y);
62
+ break;
63
+ }
64
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
65
+ this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
66
+ }
67
+ };
68
+ var _default = exports.default = function custom(tension) {
69
+ function cardinal(context) {
70
+ return new CardinalClosed(context, tension);
71
+ }
72
+ cardinal.tension = function (tension) {
73
+ return custom(+tension);
74
+ };
75
+ return cardinal;
76
+ }(0);
node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/cardinalOpen.js ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CardinalOpen = CardinalOpen;
7
+ exports.default = void 0;
8
+ var _cardinal = require("./cardinal.js");
9
+ function CardinalOpen(context, tension) {
10
+ this._context = context;
11
+ this._k = (1 - tension) / 6;
12
+ }
13
+ CardinalOpen.prototype = {
14
+ areaStart: function () {
15
+ this._line = 0;
16
+ },
17
+ areaEnd: function () {
18
+ this._line = NaN;
19
+ },
20
+ lineStart: function () {
21
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN;
22
+ this._point = 0;
23
+ },
24
+ lineEnd: function () {
25
+ if (this._line || this._line !== 0 && this._point === 3) this._context.closePath();
26
+ this._line = 1 - this._line;
27
+ },
28
+ point: function (x, y) {
29
+ x = +x, y = +y;
30
+ switch (this._point) {
31
+ case 0:
32
+ this._point = 1;
33
+ break;
34
+ case 1:
35
+ this._point = 2;
36
+ break;
37
+ case 2:
38
+ this._point = 3;
39
+ this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
40
+ break;
41
+ case 3:
42
+ this._point = 4;
43
+ // falls through
44
+ default:
45
+ (0, _cardinal.point)(this, x, y);
46
+ break;
47
+ }
48
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
49
+ this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
50
+ }
51
+ };
52
+ var _default = exports.default = function custom(tension) {
53
+ function cardinal(context) {
54
+ return new CardinalOpen(context, tension);
55
+ }
56
+ cardinal.tension = function (tension) {
57
+ return custom(+tension);
58
+ };
59
+ return cardinal;
60
+ }(0);
node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/catmullRom.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ exports.point = point;
8
+ var _math = require("../math.js");
9
+ var _cardinal = require("./cardinal.js");
10
+ function point(that, x, y) {
11
+ var x1 = that._x1,
12
+ y1 = that._y1,
13
+ x2 = that._x2,
14
+ y2 = that._y2;
15
+ if (that._l01_a > _math.epsilon) {
16
+ var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a,
17
+ n = 3 * that._l01_a * (that._l01_a + that._l12_a);
18
+ x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n;
19
+ y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;
20
+ }
21
+ if (that._l23_a > _math.epsilon) {
22
+ var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a,
23
+ m = 3 * that._l23_a * (that._l23_a + that._l12_a);
24
+ x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m;
25
+ y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m;
26
+ }
27
+ that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2);
28
+ }
29
+ function CatmullRom(context, alpha) {
30
+ this._context = context;
31
+ this._alpha = alpha;
32
+ }
33
+ CatmullRom.prototype = {
34
+ areaStart: function () {
35
+ this._line = 0;
36
+ },
37
+ areaEnd: function () {
38
+ this._line = NaN;
39
+ },
40
+ lineStart: function () {
41
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN;
42
+ this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
43
+ },
44
+ lineEnd: function () {
45
+ switch (this._point) {
46
+ case 2:
47
+ this._context.lineTo(this._x2, this._y2);
48
+ break;
49
+ case 3:
50
+ this.point(this._x2, this._y2);
51
+ break;
52
+ }
53
+ if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
54
+ this._line = 1 - this._line;
55
+ },
56
+ point: function (x, y) {
57
+ x = +x, y = +y;
58
+ if (this._point) {
59
+ var x23 = this._x2 - x,
60
+ y23 = this._y2 - y;
61
+ this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
62
+ }
63
+ switch (this._point) {
64
+ case 0:
65
+ this._point = 1;
66
+ this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
67
+ break;
68
+ case 1:
69
+ this._point = 2;
70
+ break;
71
+ case 2:
72
+ this._point = 3;
73
+ // falls through
74
+ default:
75
+ point(this, x, y);
76
+ break;
77
+ }
78
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a;
79
+ this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
80
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
81
+ this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
82
+ }
83
+ };
84
+ var _default = exports.default = function custom(alpha) {
85
+ function catmullRom(context) {
86
+ return alpha ? new CatmullRom(context, alpha) : new _cardinal.Cardinal(context, 0);
87
+ }
88
+ catmullRom.alpha = function (alpha) {
89
+ return custom(+alpha);
90
+ };
91
+ return catmullRom;
92
+ }(0.5);
node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/catmullRomClosed.js ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _cardinalClosed = require("./cardinalClosed.js");
8
+ var _noop = _interopRequireDefault(require("../noop.js"));
9
+ var _catmullRom = require("./catmullRom.js");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ function CatmullRomClosed(context, alpha) {
12
+ this._context = context;
13
+ this._alpha = alpha;
14
+ }
15
+ CatmullRomClosed.prototype = {
16
+ areaStart: _noop.default,
17
+ areaEnd: _noop.default,
18
+ lineStart: function () {
19
+ 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;
20
+ this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
21
+ },
22
+ lineEnd: function () {
23
+ switch (this._point) {
24
+ case 1:
25
+ {
26
+ this._context.moveTo(this._x3, this._y3);
27
+ this._context.closePath();
28
+ break;
29
+ }
30
+ case 2:
31
+ {
32
+ this._context.lineTo(this._x3, this._y3);
33
+ this._context.closePath();
34
+ break;
35
+ }
36
+ case 3:
37
+ {
38
+ this.point(this._x3, this._y3);
39
+ this.point(this._x4, this._y4);
40
+ this.point(this._x5, this._y5);
41
+ break;
42
+ }
43
+ }
44
+ },
45
+ point: function (x, y) {
46
+ x = +x, y = +y;
47
+ if (this._point) {
48
+ var x23 = this._x2 - x,
49
+ y23 = this._y2 - y;
50
+ this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
51
+ }
52
+ switch (this._point) {
53
+ case 0:
54
+ this._point = 1;
55
+ this._x3 = x, this._y3 = y;
56
+ break;
57
+ case 1:
58
+ this._point = 2;
59
+ this._context.moveTo(this._x4 = x, this._y4 = y);
60
+ break;
61
+ case 2:
62
+ this._point = 3;
63
+ this._x5 = x, this._y5 = y;
64
+ break;
65
+ default:
66
+ (0, _catmullRom.point)(this, x, y);
67
+ break;
68
+ }
69
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a;
70
+ this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
71
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
72
+ this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
73
+ }
74
+ };
75
+ var _default = exports.default = function custom(alpha) {
76
+ function catmullRom(context) {
77
+ return alpha ? new CatmullRomClosed(context, alpha) : new _cardinalClosed.CardinalClosed(context, 0);
78
+ }
79
+ catmullRom.alpha = function (alpha) {
80
+ return custom(+alpha);
81
+ };
82
+ return catmullRom;
83
+ }(0.5);
node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/catmullRomOpen.js ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _cardinalOpen = require("./cardinalOpen.js");
8
+ var _catmullRom = require("./catmullRom.js");
9
+ function CatmullRomOpen(context, alpha) {
10
+ this._context = context;
11
+ this._alpha = alpha;
12
+ }
13
+ CatmullRomOpen.prototype = {
14
+ areaStart: function () {
15
+ this._line = 0;
16
+ },
17
+ areaEnd: function () {
18
+ this._line = NaN;
19
+ },
20
+ lineStart: function () {
21
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN;
22
+ this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
23
+ },
24
+ lineEnd: function () {
25
+ if (this._line || this._line !== 0 && this._point === 3) this._context.closePath();
26
+ this._line = 1 - this._line;
27
+ },
28
+ point: function (x, y) {
29
+ x = +x, y = +y;
30
+ if (this._point) {
31
+ var x23 = this._x2 - x,
32
+ y23 = this._y2 - y;
33
+ this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
34
+ }
35
+ switch (this._point) {
36
+ case 0:
37
+ this._point = 1;
38
+ break;
39
+ case 1:
40
+ this._point = 2;
41
+ break;
42
+ case 2:
43
+ this._point = 3;
44
+ this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
45
+ break;
46
+ case 3:
47
+ this._point = 4;
48
+ // falls through
49
+ default:
50
+ (0, _catmullRom.point)(this, x, y);
51
+ break;
52
+ }
53
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a;
54
+ this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
55
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
56
+ this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
57
+ }
58
+ };
59
+ var _default = exports.default = function custom(alpha) {
60
+ function catmullRom(context) {
61
+ return alpha ? new CatmullRomOpen(context, alpha) : new _cardinalOpen.CardinalOpen(context, 0);
62
+ }
63
+ catmullRom.alpha = function (alpha) {
64
+ return custom(+alpha);
65
+ };
66
+ return catmullRom;
67
+ }(0.5);
node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/linear.js ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ function Linear(context) {
8
+ this._context = context;
9
+ }
10
+ Linear.prototype = {
11
+ areaStart: function () {
12
+ this._line = 0;
13
+ },
14
+ areaEnd: function () {
15
+ this._line = NaN;
16
+ },
17
+ lineStart: function () {
18
+ this._point = 0;
19
+ },
20
+ lineEnd: function () {
21
+ if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
22
+ this._line = 1 - this._line;
23
+ },
24
+ point: function (x, y) {
25
+ x = +x, y = +y;
26
+ switch (this._point) {
27
+ case 0:
28
+ this._point = 1;
29
+ this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
30
+ break;
31
+ case 1:
32
+ this._point = 2;
33
+ // falls through
34
+ default:
35
+ this._context.lineTo(x, y);
36
+ break;
37
+ }
38
+ }
39
+ };
40
+ function _default(context) {
41
+ return new Linear(context);
42
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/linearClosed.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ var _noop = _interopRequireDefault(require("../noop.js"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ function LinearClosed(context) {
10
+ this._context = context;
11
+ }
12
+ LinearClosed.prototype = {
13
+ areaStart: _noop.default,
14
+ areaEnd: _noop.default,
15
+ lineStart: function () {
16
+ this._point = 0;
17
+ },
18
+ lineEnd: function () {
19
+ if (this._point) this._context.closePath();
20
+ },
21
+ point: function (x, y) {
22
+ x = +x, y = +y;
23
+ if (this._point) this._context.lineTo(x, y);else this._point = 1, this._context.moveTo(x, y);
24
+ }
25
+ };
26
+ function _default(context) {
27
+ return new LinearClosed(context);
28
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/monotone.js ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.monotoneX = monotoneX;
7
+ exports.monotoneY = monotoneY;
8
+ function sign(x) {
9
+ return x < 0 ? -1 : 1;
10
+ }
11
+
12
+ // Calculate the slopes of the tangents (Hermite-type interpolation) based on
13
+ // the following paper: Steffen, M. 1990. A Simple Method for Monotonic
14
+ // Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.
15
+ // NOV(II), P. 443, 1990.
16
+ function slope3(that, x2, y2) {
17
+ var h0 = that._x1 - that._x0,
18
+ h1 = x2 - that._x1,
19
+ s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),
20
+ s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),
21
+ p = (s0 * h1 + s1 * h0) / (h0 + h1);
22
+ return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;
23
+ }
24
+
25
+ // Calculate a one-sided slope.
26
+ function slope2(that, t) {
27
+ var h = that._x1 - that._x0;
28
+ return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;
29
+ }
30
+
31
+ // According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations
32
+ // "you can express cubic Hermite interpolation in terms of cubic Bézier curves
33
+ // with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1".
34
+ function point(that, t0, t1) {
35
+ var x0 = that._x0,
36
+ y0 = that._y0,
37
+ x1 = that._x1,
38
+ y1 = that._y1,
39
+ dx = (x1 - x0) / 3;
40
+ that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);
41
+ }
42
+ function MonotoneX(context) {
43
+ this._context = context;
44
+ }
45
+ MonotoneX.prototype = {
46
+ areaStart: function () {
47
+ this._line = 0;
48
+ },
49
+ areaEnd: function () {
50
+ this._line = NaN;
51
+ },
52
+ lineStart: function () {
53
+ this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN;
54
+ this._point = 0;
55
+ },
56
+ lineEnd: function () {
57
+ switch (this._point) {
58
+ case 2:
59
+ this._context.lineTo(this._x1, this._y1);
60
+ break;
61
+ case 3:
62
+ point(this, this._t0, slope2(this, this._t0));
63
+ break;
64
+ }
65
+ if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
66
+ this._line = 1 - this._line;
67
+ },
68
+ point: function (x, y) {
69
+ var t1 = NaN;
70
+ x = +x, y = +y;
71
+ if (x === this._x1 && y === this._y1) return; // Ignore coincident points.
72
+ switch (this._point) {
73
+ case 0:
74
+ this._point = 1;
75
+ this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
76
+ break;
77
+ case 1:
78
+ this._point = 2;
79
+ break;
80
+ case 2:
81
+ this._point = 3;
82
+ point(this, slope2(this, t1 = slope3(this, x, y)), t1);
83
+ break;
84
+ default:
85
+ point(this, this._t0, t1 = slope3(this, x, y));
86
+ break;
87
+ }
88
+ this._x0 = this._x1, this._x1 = x;
89
+ this._y0 = this._y1, this._y1 = y;
90
+ this._t0 = t1;
91
+ }
92
+ };
93
+ function MonotoneY(context) {
94
+ this._context = new ReflectContext(context);
95
+ }
96
+ (MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function (x, y) {
97
+ MonotoneX.prototype.point.call(this, y, x);
98
+ };
99
+ function ReflectContext(context) {
100
+ this._context = context;
101
+ }
102
+ ReflectContext.prototype = {
103
+ moveTo: function (x, y) {
104
+ this._context.moveTo(y, x);
105
+ },
106
+ closePath: function () {
107
+ this._context.closePath();
108
+ },
109
+ lineTo: function (x, y) {
110
+ this._context.lineTo(y, x);
111
+ },
112
+ bezierCurveTo: function (x1, y1, x2, y2, x, y) {
113
+ this._context.bezierCurveTo(y1, x1, y2, x2, y, x);
114
+ }
115
+ };
116
+ function monotoneX(context) {
117
+ return new MonotoneX(context);
118
+ }
119
+ function monotoneY(context) {
120
+ return new MonotoneY(context);
121
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/natural.js ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ function Natural(context) {
8
+ this._context = context;
9
+ }
10
+ Natural.prototype = {
11
+ areaStart: function () {
12
+ this._line = 0;
13
+ },
14
+ areaEnd: function () {
15
+ this._line = NaN;
16
+ },
17
+ lineStart: function () {
18
+ this._x = [];
19
+ this._y = [];
20
+ },
21
+ lineEnd: function () {
22
+ var x = this._x,
23
+ y = this._y,
24
+ n = x.length;
25
+ if (n) {
26
+ this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);
27
+ if (n === 2) {
28
+ this._context.lineTo(x[1], y[1]);
29
+ } else {
30
+ var px = controlPoints(x),
31
+ py = controlPoints(y);
32
+ for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) {
33
+ this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);
34
+ }
35
+ }
36
+ }
37
+ if (this._line || this._line !== 0 && n === 1) this._context.closePath();
38
+ this._line = 1 - this._line;
39
+ this._x = this._y = null;
40
+ },
41
+ point: function (x, y) {
42
+ this._x.push(+x);
43
+ this._y.push(+y);
44
+ }
45
+ };
46
+
47
+ // See https://www.particleincell.com/2012/bezier-splines/ for derivation.
48
+ function controlPoints(x) {
49
+ var i,
50
+ n = x.length - 1,
51
+ m,
52
+ a = new Array(n),
53
+ b = new Array(n),
54
+ r = new Array(n);
55
+ a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];
56
+ for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];
57
+ a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];
58
+ for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];
59
+ a[n - 1] = r[n - 1] / b[n - 1];
60
+ for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];
61
+ b[n - 1] = (x[n] + a[n - 1]) / 2;
62
+ for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];
63
+ return [a, b];
64
+ }
65
+ function _default(context) {
66
+ return new Natural(context);
67
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/radial.js ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.curveRadialLinear = void 0;
7
+ exports.default = curveRadial;
8
+ var _linear = _interopRequireDefault(require("./linear.js"));
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ var curveRadialLinear = exports.curveRadialLinear = curveRadial(_linear.default);
11
+ function Radial(curve) {
12
+ this._curve = curve;
13
+ }
14
+ Radial.prototype = {
15
+ areaStart: function () {
16
+ this._curve.areaStart();
17
+ },
18
+ areaEnd: function () {
19
+ this._curve.areaEnd();
20
+ },
21
+ lineStart: function () {
22
+ this._curve.lineStart();
23
+ },
24
+ lineEnd: function () {
25
+ this._curve.lineEnd();
26
+ },
27
+ point: function (a, r) {
28
+ this._curve.point(r * Math.sin(a), r * -Math.cos(a));
29
+ }
30
+ };
31
+ function curveRadial(curve) {
32
+ function radial(context) {
33
+ return new Radial(curve(context));
34
+ }
35
+ radial._curve = curve;
36
+ return radial;
37
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/step.js ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ exports.stepAfter = stepAfter;
8
+ exports.stepBefore = stepBefore;
9
+ function Step(context, t) {
10
+ this._context = context;
11
+ this._t = t;
12
+ }
13
+ Step.prototype = {
14
+ areaStart: function () {
15
+ this._line = 0;
16
+ },
17
+ areaEnd: function () {
18
+ this._line = NaN;
19
+ },
20
+ lineStart: function () {
21
+ this._x = this._y = NaN;
22
+ this._point = 0;
23
+ },
24
+ lineEnd: function () {
25
+ if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);
26
+ if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
27
+ if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;
28
+ },
29
+ point: function (x, y) {
30
+ x = +x, y = +y;
31
+ switch (this._point) {
32
+ case 0:
33
+ this._point = 1;
34
+ this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
35
+ break;
36
+ case 1:
37
+ this._point = 2;
38
+ // falls through
39
+ default:
40
+ {
41
+ if (this._t <= 0) {
42
+ this._context.lineTo(this._x, y);
43
+ this._context.lineTo(x, y);
44
+ } else {
45
+ var x1 = this._x * (1 - this._t) + x * this._t;
46
+ this._context.lineTo(x1, this._y);
47
+ this._context.lineTo(x1, y);
48
+ }
49
+ break;
50
+ }
51
+ }
52
+ this._x = x, this._y = y;
53
+ }
54
+ };
55
+ function _default(context) {
56
+ return new Step(context, 0.5);
57
+ }
58
+ function stepBefore(context) {
59
+ return new Step(context, 0);
60
+ }
61
+ function stepAfter(context) {
62
+ return new Step(context, 1);
63
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/descending.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ function _default(a, b) {
8
+ return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
9
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/identity.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ function _default(d) {
8
+ return d;
9
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/index.js ADDED
@@ -0,0 +1,430 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "arc", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _arc.default;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "area", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _area.default;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "areaRadial", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _areaRadial.default;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "curveBasis", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _basis.default;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "curveBasisClosed", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _basisClosed.default;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "curveBasisOpen", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _basisOpen.default;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "curveBumpX", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _bump.bumpX;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "curveBumpY", {
49
+ enumerable: true,
50
+ get: function () {
51
+ return _bump.bumpY;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "curveBundle", {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _bundle.default;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "curveCardinal", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _cardinal.default;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "curveCardinalClosed", {
67
+ enumerable: true,
68
+ get: function () {
69
+ return _cardinalClosed.default;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "curveCardinalOpen", {
73
+ enumerable: true,
74
+ get: function () {
75
+ return _cardinalOpen.default;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "curveCatmullRom", {
79
+ enumerable: true,
80
+ get: function () {
81
+ return _catmullRom.default;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "curveCatmullRomClosed", {
85
+ enumerable: true,
86
+ get: function () {
87
+ return _catmullRomClosed.default;
88
+ }
89
+ });
90
+ Object.defineProperty(exports, "curveCatmullRomOpen", {
91
+ enumerable: true,
92
+ get: function () {
93
+ return _catmullRomOpen.default;
94
+ }
95
+ });
96
+ Object.defineProperty(exports, "curveLinear", {
97
+ enumerable: true,
98
+ get: function () {
99
+ return _linear.default;
100
+ }
101
+ });
102
+ Object.defineProperty(exports, "curveLinearClosed", {
103
+ enumerable: true,
104
+ get: function () {
105
+ return _linearClosed.default;
106
+ }
107
+ });
108
+ Object.defineProperty(exports, "curveMonotoneX", {
109
+ enumerable: true,
110
+ get: function () {
111
+ return _monotone.monotoneX;
112
+ }
113
+ });
114
+ Object.defineProperty(exports, "curveMonotoneY", {
115
+ enumerable: true,
116
+ get: function () {
117
+ return _monotone.monotoneY;
118
+ }
119
+ });
120
+ Object.defineProperty(exports, "curveNatural", {
121
+ enumerable: true,
122
+ get: function () {
123
+ return _natural.default;
124
+ }
125
+ });
126
+ Object.defineProperty(exports, "curveStep", {
127
+ enumerable: true,
128
+ get: function () {
129
+ return _step.default;
130
+ }
131
+ });
132
+ Object.defineProperty(exports, "curveStepAfter", {
133
+ enumerable: true,
134
+ get: function () {
135
+ return _step.stepAfter;
136
+ }
137
+ });
138
+ Object.defineProperty(exports, "curveStepBefore", {
139
+ enumerable: true,
140
+ get: function () {
141
+ return _step.stepBefore;
142
+ }
143
+ });
144
+ Object.defineProperty(exports, "line", {
145
+ enumerable: true,
146
+ get: function () {
147
+ return _line.default;
148
+ }
149
+ });
150
+ Object.defineProperty(exports, "lineRadial", {
151
+ enumerable: true,
152
+ get: function () {
153
+ return _lineRadial.default;
154
+ }
155
+ });
156
+ Object.defineProperty(exports, "link", {
157
+ enumerable: true,
158
+ get: function () {
159
+ return _link.link;
160
+ }
161
+ });
162
+ Object.defineProperty(exports, "linkHorizontal", {
163
+ enumerable: true,
164
+ get: function () {
165
+ return _link.linkHorizontal;
166
+ }
167
+ });
168
+ Object.defineProperty(exports, "linkRadial", {
169
+ enumerable: true,
170
+ get: function () {
171
+ return _link.linkRadial;
172
+ }
173
+ });
174
+ Object.defineProperty(exports, "linkVertical", {
175
+ enumerable: true,
176
+ get: function () {
177
+ return _link.linkVertical;
178
+ }
179
+ });
180
+ Object.defineProperty(exports, "pie", {
181
+ enumerable: true,
182
+ get: function () {
183
+ return _pie.default;
184
+ }
185
+ });
186
+ Object.defineProperty(exports, "pointRadial", {
187
+ enumerable: true,
188
+ get: function () {
189
+ return _pointRadial.default;
190
+ }
191
+ });
192
+ Object.defineProperty(exports, "radialArea", {
193
+ enumerable: true,
194
+ get: function () {
195
+ return _areaRadial.default;
196
+ }
197
+ });
198
+ Object.defineProperty(exports, "radialLine", {
199
+ enumerable: true,
200
+ get: function () {
201
+ return _lineRadial.default;
202
+ }
203
+ });
204
+ Object.defineProperty(exports, "stack", {
205
+ enumerable: true,
206
+ get: function () {
207
+ return _stack.default;
208
+ }
209
+ });
210
+ Object.defineProperty(exports, "stackOffsetDiverging", {
211
+ enumerable: true,
212
+ get: function () {
213
+ return _diverging.default;
214
+ }
215
+ });
216
+ Object.defineProperty(exports, "stackOffsetExpand", {
217
+ enumerable: true,
218
+ get: function () {
219
+ return _expand.default;
220
+ }
221
+ });
222
+ Object.defineProperty(exports, "stackOffsetNone", {
223
+ enumerable: true,
224
+ get: function () {
225
+ return _none.default;
226
+ }
227
+ });
228
+ Object.defineProperty(exports, "stackOffsetSilhouette", {
229
+ enumerable: true,
230
+ get: function () {
231
+ return _silhouette.default;
232
+ }
233
+ });
234
+ Object.defineProperty(exports, "stackOffsetWiggle", {
235
+ enumerable: true,
236
+ get: function () {
237
+ return _wiggle.default;
238
+ }
239
+ });
240
+ Object.defineProperty(exports, "stackOrderAppearance", {
241
+ enumerable: true,
242
+ get: function () {
243
+ return _appearance.default;
244
+ }
245
+ });
246
+ Object.defineProperty(exports, "stackOrderAscending", {
247
+ enumerable: true,
248
+ get: function () {
249
+ return _ascending.default;
250
+ }
251
+ });
252
+ Object.defineProperty(exports, "stackOrderDescending", {
253
+ enumerable: true,
254
+ get: function () {
255
+ return _descending.default;
256
+ }
257
+ });
258
+ Object.defineProperty(exports, "stackOrderInsideOut", {
259
+ enumerable: true,
260
+ get: function () {
261
+ return _insideOut.default;
262
+ }
263
+ });
264
+ Object.defineProperty(exports, "stackOrderNone", {
265
+ enumerable: true,
266
+ get: function () {
267
+ return _none2.default;
268
+ }
269
+ });
270
+ Object.defineProperty(exports, "stackOrderReverse", {
271
+ enumerable: true,
272
+ get: function () {
273
+ return _reverse.default;
274
+ }
275
+ });
276
+ Object.defineProperty(exports, "symbol", {
277
+ enumerable: true,
278
+ get: function () {
279
+ return _symbol.default;
280
+ }
281
+ });
282
+ Object.defineProperty(exports, "symbolAsterisk", {
283
+ enumerable: true,
284
+ get: function () {
285
+ return _asterisk.default;
286
+ }
287
+ });
288
+ Object.defineProperty(exports, "symbolCircle", {
289
+ enumerable: true,
290
+ get: function () {
291
+ return _circle.default;
292
+ }
293
+ });
294
+ Object.defineProperty(exports, "symbolCross", {
295
+ enumerable: true,
296
+ get: function () {
297
+ return _cross.default;
298
+ }
299
+ });
300
+ Object.defineProperty(exports, "symbolDiamond", {
301
+ enumerable: true,
302
+ get: function () {
303
+ return _diamond.default;
304
+ }
305
+ });
306
+ Object.defineProperty(exports, "symbolDiamond2", {
307
+ enumerable: true,
308
+ get: function () {
309
+ return _diamond2.default;
310
+ }
311
+ });
312
+ Object.defineProperty(exports, "symbolPlus", {
313
+ enumerable: true,
314
+ get: function () {
315
+ return _plus.default;
316
+ }
317
+ });
318
+ Object.defineProperty(exports, "symbolSquare", {
319
+ enumerable: true,
320
+ get: function () {
321
+ return _square.default;
322
+ }
323
+ });
324
+ Object.defineProperty(exports, "symbolSquare2", {
325
+ enumerable: true,
326
+ get: function () {
327
+ return _square2.default;
328
+ }
329
+ });
330
+ Object.defineProperty(exports, "symbolStar", {
331
+ enumerable: true,
332
+ get: function () {
333
+ return _star.default;
334
+ }
335
+ });
336
+ Object.defineProperty(exports, "symbolTriangle", {
337
+ enumerable: true,
338
+ get: function () {
339
+ return _triangle.default;
340
+ }
341
+ });
342
+ Object.defineProperty(exports, "symbolTriangle2", {
343
+ enumerable: true,
344
+ get: function () {
345
+ return _triangle2.default;
346
+ }
347
+ });
348
+ Object.defineProperty(exports, "symbolWye", {
349
+ enumerable: true,
350
+ get: function () {
351
+ return _wye.default;
352
+ }
353
+ });
354
+ Object.defineProperty(exports, "symbolX", {
355
+ enumerable: true,
356
+ get: function () {
357
+ return _x.default;
358
+ }
359
+ });
360
+ Object.defineProperty(exports, "symbols", {
361
+ enumerable: true,
362
+ get: function () {
363
+ return _symbol.symbolsFill;
364
+ }
365
+ });
366
+ Object.defineProperty(exports, "symbolsFill", {
367
+ enumerable: true,
368
+ get: function () {
369
+ return _symbol.symbolsFill;
370
+ }
371
+ });
372
+ Object.defineProperty(exports, "symbolsStroke", {
373
+ enumerable: true,
374
+ get: function () {
375
+ return _symbol.symbolsStroke;
376
+ }
377
+ });
378
+ var _arc = _interopRequireDefault(require("./arc.js"));
379
+ var _area = _interopRequireDefault(require("./area.js"));
380
+ var _line = _interopRequireDefault(require("./line.js"));
381
+ var _pie = _interopRequireDefault(require("./pie.js"));
382
+ var _areaRadial = _interopRequireDefault(require("./areaRadial.js"));
383
+ var _lineRadial = _interopRequireDefault(require("./lineRadial.js"));
384
+ var _pointRadial = _interopRequireDefault(require("./pointRadial.js"));
385
+ var _link = require("./link.js");
386
+ var _symbol = _interopRequireWildcard(require("./symbol.js"));
387
+ var _asterisk = _interopRequireDefault(require("./symbol/asterisk.js"));
388
+ var _circle = _interopRequireDefault(require("./symbol/circle.js"));
389
+ var _cross = _interopRequireDefault(require("./symbol/cross.js"));
390
+ var _diamond = _interopRequireDefault(require("./symbol/diamond.js"));
391
+ var _diamond2 = _interopRequireDefault(require("./symbol/diamond2.js"));
392
+ var _plus = _interopRequireDefault(require("./symbol/plus.js"));
393
+ var _square = _interopRequireDefault(require("./symbol/square.js"));
394
+ var _square2 = _interopRequireDefault(require("./symbol/square2.js"));
395
+ var _star = _interopRequireDefault(require("./symbol/star.js"));
396
+ var _triangle = _interopRequireDefault(require("./symbol/triangle.js"));
397
+ var _triangle2 = _interopRequireDefault(require("./symbol/triangle2.js"));
398
+ var _wye = _interopRequireDefault(require("./symbol/wye.js"));
399
+ var _x = _interopRequireDefault(require("./symbol/x.js"));
400
+ var _basisClosed = _interopRequireDefault(require("./curve/basisClosed.js"));
401
+ var _basisOpen = _interopRequireDefault(require("./curve/basisOpen.js"));
402
+ var _basis = _interopRequireDefault(require("./curve/basis.js"));
403
+ var _bump = require("./curve/bump.js");
404
+ var _bundle = _interopRequireDefault(require("./curve/bundle.js"));
405
+ var _cardinalClosed = _interopRequireDefault(require("./curve/cardinalClosed.js"));
406
+ var _cardinalOpen = _interopRequireDefault(require("./curve/cardinalOpen.js"));
407
+ var _cardinal = _interopRequireDefault(require("./curve/cardinal.js"));
408
+ var _catmullRomClosed = _interopRequireDefault(require("./curve/catmullRomClosed.js"));
409
+ var _catmullRomOpen = _interopRequireDefault(require("./curve/catmullRomOpen.js"));
410
+ var _catmullRom = _interopRequireDefault(require("./curve/catmullRom.js"));
411
+ var _linearClosed = _interopRequireDefault(require("./curve/linearClosed.js"));
412
+ var _linear = _interopRequireDefault(require("./curve/linear.js"));
413
+ var _monotone = require("./curve/monotone.js");
414
+ var _natural = _interopRequireDefault(require("./curve/natural.js"));
415
+ var _step = _interopRequireWildcard(require("./curve/step.js"));
416
+ var _stack = _interopRequireDefault(require("./stack.js"));
417
+ var _expand = _interopRequireDefault(require("./offset/expand.js"));
418
+ var _diverging = _interopRequireDefault(require("./offset/diverging.js"));
419
+ var _none = _interopRequireDefault(require("./offset/none.js"));
420
+ var _silhouette = _interopRequireDefault(require("./offset/silhouette.js"));
421
+ var _wiggle = _interopRequireDefault(require("./offset/wiggle.js"));
422
+ var _appearance = _interopRequireDefault(require("./order/appearance.js"));
423
+ var _ascending = _interopRequireDefault(require("./order/ascending.js"));
424
+ var _descending = _interopRequireDefault(require("./order/descending.js"));
425
+ var _insideOut = _interopRequireDefault(require("./order/insideOut.js"));
426
+ var _none2 = _interopRequireDefault(require("./order/none.js"));
427
+ var _reverse = _interopRequireDefault(require("./order/reverse.js"));
428
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
429
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
430
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
node_modules/victory-vendor/lib-vendor/d3-shape/src/line.js ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ var _index = require("../../../lib-vendor/d3-path/src/index.js");
8
+ var _array = _interopRequireDefault(require("./array.js"));
9
+ var _constant = _interopRequireDefault(require("./constant.js"));
10
+ var _linear = _interopRequireDefault(require("./curve/linear.js"));
11
+ var _point = require("./point.js");
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+ function _default(x, y) {
14
+ var defined = (0, _constant.default)(true),
15
+ context = null,
16
+ curve = _linear.default,
17
+ output = null;
18
+ x = typeof x === "function" ? x : x === undefined ? _point.x : (0, _constant.default)(x);
19
+ y = typeof y === "function" ? y : y === undefined ? _point.y : (0, _constant.default)(y);
20
+ function line(data) {
21
+ var i,
22
+ n = (data = (0, _array.default)(data)).length,
23
+ d,
24
+ defined0 = false,
25
+ buffer;
26
+ if (context == null) output = curve(buffer = (0, _index.path)());
27
+ for (i = 0; i <= n; ++i) {
28
+ if (!(i < n && defined(d = data[i], i, data)) === defined0) {
29
+ if (defined0 = !defined0) output.lineStart();else output.lineEnd();
30
+ }
31
+ if (defined0) output.point(+x(d, i, data), +y(d, i, data));
32
+ }
33
+ if (buffer) return output = null, buffer + "" || null;
34
+ }
35
+ line.x = function (_) {
36
+ return arguments.length ? (x = typeof _ === "function" ? _ : (0, _constant.default)(+_), line) : x;
37
+ };
38
+ line.y = function (_) {
39
+ return arguments.length ? (y = typeof _ === "function" ? _ : (0, _constant.default)(+_), line) : y;
40
+ };
41
+ line.defined = function (_) {
42
+ return arguments.length ? (defined = typeof _ === "function" ? _ : (0, _constant.default)(!!_), line) : defined;
43
+ };
44
+ line.curve = function (_) {
45
+ return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;
46
+ };
47
+ line.context = function (_) {
48
+ return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;
49
+ };
50
+ return line;
51
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/lineRadial.js ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ exports.lineRadial = lineRadial;
8
+ var _radial = _interopRequireWildcard(require("./curve/radial.js"));
9
+ var _line = _interopRequireDefault(require("./line.js"));
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
+ function lineRadial(l) {
14
+ var c = l.curve;
15
+ l.angle = l.x, delete l.x;
16
+ l.radius = l.y, delete l.y;
17
+ l.curve = function (_) {
18
+ return arguments.length ? c((0, _radial.default)(_)) : c()._curve;
19
+ };
20
+ return l;
21
+ }
22
+ function _default() {
23
+ return lineRadial((0, _line.default)().curve(_radial.curveRadialLinear));
24
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/link.js ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.link = link;
7
+ exports.linkHorizontal = linkHorizontal;
8
+ exports.linkRadial = linkRadial;
9
+ exports.linkVertical = linkVertical;
10
+ var _index = require("../../../lib-vendor/d3-path/src/index.js");
11
+ var _array = require("./array.js");
12
+ var _constant = _interopRequireDefault(require("./constant.js"));
13
+ var _bump = require("./curve/bump.js");
14
+ var _point = require("./point.js");
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+ function linkSource(d) {
17
+ return d.source;
18
+ }
19
+ function linkTarget(d) {
20
+ return d.target;
21
+ }
22
+ function link(curve) {
23
+ let source = linkSource;
24
+ let target = linkTarget;
25
+ let x = _point.x;
26
+ let y = _point.y;
27
+ let context = null;
28
+ let output = null;
29
+ function link() {
30
+ let buffer;
31
+ const argv = _array.slice.call(arguments);
32
+ const s = source.apply(this, argv);
33
+ const t = target.apply(this, argv);
34
+ if (context == null) output = curve(buffer = (0, _index.path)());
35
+ output.lineStart();
36
+ argv[0] = s, output.point(+x.apply(this, argv), +y.apply(this, argv));
37
+ argv[0] = t, output.point(+x.apply(this, argv), +y.apply(this, argv));
38
+ output.lineEnd();
39
+ if (buffer) return output = null, buffer + "" || null;
40
+ }
41
+ link.source = function (_) {
42
+ return arguments.length ? (source = _, link) : source;
43
+ };
44
+ link.target = function (_) {
45
+ return arguments.length ? (target = _, link) : target;
46
+ };
47
+ link.x = function (_) {
48
+ return arguments.length ? (x = typeof _ === "function" ? _ : (0, _constant.default)(+_), link) : x;
49
+ };
50
+ link.y = function (_) {
51
+ return arguments.length ? (y = typeof _ === "function" ? _ : (0, _constant.default)(+_), link) : y;
52
+ };
53
+ link.context = function (_) {
54
+ return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), link) : context;
55
+ };
56
+ return link;
57
+ }
58
+ function linkHorizontal() {
59
+ return link(_bump.bumpX);
60
+ }
61
+ function linkVertical() {
62
+ return link(_bump.bumpY);
63
+ }
64
+ function linkRadial() {
65
+ const l = link(_bump.bumpRadial);
66
+ l.angle = l.x, delete l.x;
67
+ l.radius = l.y, delete l.y;
68
+ return l;
69
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/math.js ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.abs = void 0;
7
+ exports.acos = acos;
8
+ exports.asin = asin;
9
+ exports.tau = exports.sqrt = exports.sin = exports.pi = exports.min = exports.max = exports.halfPi = exports.epsilon = exports.cos = exports.atan2 = void 0;
10
+ const abs = exports.abs = Math.abs;
11
+ const atan2 = exports.atan2 = Math.atan2;
12
+ const cos = exports.cos = Math.cos;
13
+ const max = exports.max = Math.max;
14
+ const min = exports.min = Math.min;
15
+ const sin = exports.sin = Math.sin;
16
+ const sqrt = exports.sqrt = Math.sqrt;
17
+ const epsilon = exports.epsilon = 1e-12;
18
+ const pi = exports.pi = Math.PI;
19
+ const halfPi = exports.halfPi = pi / 2;
20
+ const tau = exports.tau = 2 * pi;
21
+ function acos(x) {
22
+ return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);
23
+ }
24
+ function asin(x) {
25
+ return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);
26
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/noop.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ function _default() {}
node_modules/victory-vendor/lib-vendor/d3-shape/src/offset/diverging.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ function _default(series, order) {
8
+ if (!((n = series.length) > 0)) return;
9
+ for (var i, j = 0, d, dy, yp, yn, n, m = series[order[0]].length; j < m; ++j) {
10
+ for (yp = yn = 0, i = 0; i < n; ++i) {
11
+ if ((dy = (d = series[order[i]][j])[1] - d[0]) > 0) {
12
+ d[0] = yp, d[1] = yp += dy;
13
+ } else if (dy < 0) {
14
+ d[1] = yn, d[0] = yn += dy;
15
+ } else {
16
+ d[0] = 0, d[1] = dy;
17
+ }
18
+ }
19
+ }
20
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/offset/expand.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ var _none = _interopRequireDefault(require("./none.js"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ function _default(series, order) {
10
+ if (!((n = series.length) > 0)) return;
11
+ for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {
12
+ for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;
13
+ if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;
14
+ }
15
+ (0, _none.default)(series, order);
16
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/offset/none.js ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ function _default(series, order) {
8
+ if (!((n = series.length) > 1)) return;
9
+ for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {
10
+ s0 = s1, s1 = series[order[i]];
11
+ for (j = 0; j < m; ++j) {
12
+ s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];
13
+ }
14
+ }
15
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/offset/silhouette.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ var _none = _interopRequireDefault(require("./none.js"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ function _default(series, order) {
10
+ if (!((n = series.length) > 0)) return;
11
+ for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {
12
+ for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;
13
+ s0[j][1] += s0[j][0] = -y / 2;
14
+ }
15
+ (0, _none.default)(series, order);
16
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/offset/wiggle.js ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ var _none = _interopRequireDefault(require("./none.js"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ function _default(series, order) {
10
+ if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;
11
+ for (var y = 0, j = 1, s0, m, n; j < m; ++j) {
12
+ for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {
13
+ var si = series[order[i]],
14
+ sij0 = si[j][1] || 0,
15
+ sij1 = si[j - 1][1] || 0,
16
+ s3 = (sij0 - sij1) / 2;
17
+ for (var k = 0; k < i; ++k) {
18
+ var sk = series[order[k]],
19
+ skj0 = sk[j][1] || 0,
20
+ skj1 = sk[j - 1][1] || 0;
21
+ s3 += skj0 - skj1;
22
+ }
23
+ s1 += sij0, s2 += s3 * sij0;
24
+ }
25
+ s0[j - 1][1] += s0[j - 1][0] = y;
26
+ if (s1) y -= s2 / s1;
27
+ }
28
+ s0[j - 1][1] += s0[j - 1][0] = y;
29
+ (0, _none.default)(series, order);
30
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/order/appearance.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ var _none = _interopRequireDefault(require("./none.js"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ function _default(series) {
10
+ var peaks = series.map(peak);
11
+ return (0, _none.default)(series).sort(function (a, b) {
12
+ return peaks[a] - peaks[b];
13
+ });
14
+ }
15
+ function peak(series) {
16
+ var i = -1,
17
+ j = 0,
18
+ n = series.length,
19
+ vi,
20
+ vj = -Infinity;
21
+ while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i;
22
+ return j;
23
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/order/ascending.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ exports.sum = sum;
8
+ var _none = _interopRequireDefault(require("./none.js"));
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ function _default(series) {
11
+ var sums = series.map(sum);
12
+ return (0, _none.default)(series).sort(function (a, b) {
13
+ return sums[a] - sums[b];
14
+ });
15
+ }
16
+ function sum(series) {
17
+ var s = 0,
18
+ i = -1,
19
+ n = series.length,
20
+ v;
21
+ while (++i < n) if (v = +series[i][1]) s += v;
22
+ return s;
23
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/order/descending.js ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ var _ascending = _interopRequireDefault(require("./ascending.js"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ function _default(series) {
10
+ return (0, _ascending.default)(series).reverse();
11
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/order/insideOut.js ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ var _appearance = _interopRequireDefault(require("./appearance.js"));
8
+ var _ascending = require("./ascending.js");
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ function _default(series) {
11
+ var n = series.length,
12
+ i,
13
+ j,
14
+ sums = series.map(_ascending.sum),
15
+ order = (0, _appearance.default)(series),
16
+ top = 0,
17
+ bottom = 0,
18
+ tops = [],
19
+ bottoms = [];
20
+ for (i = 0; i < n; ++i) {
21
+ j = order[i];
22
+ if (top < bottom) {
23
+ top += sums[j];
24
+ tops.push(j);
25
+ } else {
26
+ bottom += sums[j];
27
+ bottoms.push(j);
28
+ }
29
+ }
30
+ return bottoms.reverse().concat(tops);
31
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/order/none.js ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ function _default(series) {
8
+ var n = series.length,
9
+ o = new Array(n);
10
+ while (--n >= 0) o[n] = n;
11
+ return o;
12
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/order/reverse.js ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ var _none = _interopRequireDefault(require("./none.js"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ function _default(series) {
10
+ return (0, _none.default)(series).reverse();
11
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/pie.js ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ var _array = _interopRequireDefault(require("./array.js"));
8
+ var _constant = _interopRequireDefault(require("./constant.js"));
9
+ var _descending = _interopRequireDefault(require("./descending.js"));
10
+ var _identity = _interopRequireDefault(require("./identity.js"));
11
+ var _math = require("./math.js");
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+ function _default() {
14
+ var value = _identity.default,
15
+ sortValues = _descending.default,
16
+ sort = null,
17
+ startAngle = (0, _constant.default)(0),
18
+ endAngle = (0, _constant.default)(_math.tau),
19
+ padAngle = (0, _constant.default)(0);
20
+ function pie(data) {
21
+ var i,
22
+ n = (data = (0, _array.default)(data)).length,
23
+ j,
24
+ k,
25
+ sum = 0,
26
+ index = new Array(n),
27
+ arcs = new Array(n),
28
+ a0 = +startAngle.apply(this, arguments),
29
+ da = Math.min(_math.tau, Math.max(-_math.tau, endAngle.apply(this, arguments) - a0)),
30
+ a1,
31
+ p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),
32
+ pa = p * (da < 0 ? -1 : 1),
33
+ v;
34
+ for (i = 0; i < n; ++i) {
35
+ if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) {
36
+ sum += v;
37
+ }
38
+ }
39
+
40
+ // Optionally sort the arcs by previously-computed values or by data.
41
+ if (sortValues != null) index.sort(function (i, j) {
42
+ return sortValues(arcs[i], arcs[j]);
43
+ });else if (sort != null) index.sort(function (i, j) {
44
+ return sort(data[i], data[j]);
45
+ });
46
+
47
+ // Compute the arcs! They are stored in the original data's order.
48
+ for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {
49
+ j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = {
50
+ data: data[j],
51
+ index: i,
52
+ value: v,
53
+ startAngle: a0,
54
+ endAngle: a1,
55
+ padAngle: p
56
+ };
57
+ }
58
+ return arcs;
59
+ }
60
+ pie.value = function (_) {
61
+ return arguments.length ? (value = typeof _ === "function" ? _ : (0, _constant.default)(+_), pie) : value;
62
+ };
63
+ pie.sortValues = function (_) {
64
+ return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;
65
+ };
66
+ pie.sort = function (_) {
67
+ return arguments.length ? (sort = _, sortValues = null, pie) : sort;
68
+ };
69
+ pie.startAngle = function (_) {
70
+ return arguments.length ? (startAngle = typeof _ === "function" ? _ : (0, _constant.default)(+_), pie) : startAngle;
71
+ };
72
+ pie.endAngle = function (_) {
73
+ return arguments.length ? (endAngle = typeof _ === "function" ? _ : (0, _constant.default)(+_), pie) : endAngle;
74
+ };
75
+ pie.padAngle = function (_) {
76
+ return arguments.length ? (padAngle = typeof _ === "function" ? _ : (0, _constant.default)(+_), pie) : padAngle;
77
+ };
78
+ return pie;
79
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/point.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.x = x;
7
+ exports.y = y;
8
+ function x(p) {
9
+ return p[0];
10
+ }
11
+ function y(p) {
12
+ return p[1];
13
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/pointRadial.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ function _default(x, y) {
8
+ return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];
9
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/stack.js ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ var _array = _interopRequireDefault(require("./array.js"));
8
+ var _constant = _interopRequireDefault(require("./constant.js"));
9
+ var _none = _interopRequireDefault(require("./offset/none.js"));
10
+ var _none2 = _interopRequireDefault(require("./order/none.js"));
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ function stackValue(d, key) {
13
+ return d[key];
14
+ }
15
+ function stackSeries(key) {
16
+ const series = [];
17
+ series.key = key;
18
+ return series;
19
+ }
20
+ function _default() {
21
+ var keys = (0, _constant.default)([]),
22
+ order = _none2.default,
23
+ offset = _none.default,
24
+ value = stackValue;
25
+ function stack(data) {
26
+ var sz = Array.from(keys.apply(this, arguments), stackSeries),
27
+ i,
28
+ n = sz.length,
29
+ j = -1,
30
+ oz;
31
+ for (const d of data) {
32
+ for (i = 0, ++j; i < n; ++i) {
33
+ (sz[i][j] = [0, +value(d, sz[i].key, j, data)]).data = d;
34
+ }
35
+ }
36
+ for (i = 0, oz = (0, _array.default)(order(sz)); i < n; ++i) {
37
+ sz[oz[i]].index = i;
38
+ }
39
+ offset(sz, oz);
40
+ return sz;
41
+ }
42
+ stack.keys = function (_) {
43
+ return arguments.length ? (keys = typeof _ === "function" ? _ : (0, _constant.default)(Array.from(_)), stack) : keys;
44
+ };
45
+ stack.value = function (_) {
46
+ return arguments.length ? (value = typeof _ === "function" ? _ : (0, _constant.default)(+_), stack) : value;
47
+ };
48
+ stack.order = function (_) {
49
+ return arguments.length ? (order = _ == null ? _none2.default : typeof _ === "function" ? _ : (0, _constant.default)(Array.from(_)), stack) : order;
50
+ };
51
+ stack.offset = function (_) {
52
+ return arguments.length ? (offset = _ == null ? _none.default : _, stack) : offset;
53
+ };
54
+ return stack;
55
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol.js ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = Symbol;
7
+ exports.symbolsStroke = exports.symbolsFill = void 0;
8
+ var _index = require("../../../lib-vendor/d3-path/src/index.js");
9
+ var _constant = _interopRequireDefault(require("./constant.js"));
10
+ var _asterisk = _interopRequireDefault(require("./symbol/asterisk.js"));
11
+ var _circle = _interopRequireDefault(require("./symbol/circle.js"));
12
+ var _cross = _interopRequireDefault(require("./symbol/cross.js"));
13
+ var _diamond = _interopRequireDefault(require("./symbol/diamond.js"));
14
+ var _diamond2 = _interopRequireDefault(require("./symbol/diamond2.js"));
15
+ var _plus = _interopRequireDefault(require("./symbol/plus.js"));
16
+ var _square = _interopRequireDefault(require("./symbol/square.js"));
17
+ var _square2 = _interopRequireDefault(require("./symbol/square2.js"));
18
+ var _star = _interopRequireDefault(require("./symbol/star.js"));
19
+ var _triangle = _interopRequireDefault(require("./symbol/triangle.js"));
20
+ var _triangle2 = _interopRequireDefault(require("./symbol/triangle2.js"));
21
+ var _wye = _interopRequireDefault(require("./symbol/wye.js"));
22
+ var _x = _interopRequireDefault(require("./symbol/x.js"));
23
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
+ // These symbols are designed to be filled.
25
+ const symbolsFill = exports.symbolsFill = [_circle.default, _cross.default, _diamond.default, _square.default, _star.default, _triangle.default, _wye.default];
26
+
27
+ // These symbols are designed to be stroked (with a width of 1.5px and round caps).
28
+ const symbolsStroke = exports.symbolsStroke = [_circle.default, _plus.default, _x.default, _triangle2.default, _asterisk.default, _square2.default, _diamond2.default];
29
+ function Symbol(type, size) {
30
+ let context = null;
31
+ type = typeof type === "function" ? type : (0, _constant.default)(type || _circle.default);
32
+ size = typeof size === "function" ? size : (0, _constant.default)(size === undefined ? 64 : +size);
33
+ function symbol() {
34
+ let buffer;
35
+ if (!context) context = buffer = (0, _index.path)();
36
+ type.apply(this, arguments).draw(context, +size.apply(this, arguments));
37
+ if (buffer) return context = null, buffer + "" || null;
38
+ }
39
+ symbol.type = function (_) {
40
+ return arguments.length ? (type = typeof _ === "function" ? _ : (0, _constant.default)(_), symbol) : type;
41
+ };
42
+ symbol.size = function (_) {
43
+ return arguments.length ? (size = typeof _ === "function" ? _ : (0, _constant.default)(+_), symbol) : size;
44
+ };
45
+ symbol.context = function (_) {
46
+ return arguments.length ? (context = _ == null ? null : _, symbol) : context;
47
+ };
48
+ return symbol;
49
+ }
node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/asterisk.js ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _math = require("../math.js");
8
+ const sqrt3 = (0, _math.sqrt)(3);
9
+ var _default = exports.default = {
10
+ draw(context, size) {
11
+ const r = (0, _math.sqrt)(size + (0, _math.min)(size / 28, 0.75)) * 0.59436;
12
+ const t = r / 2;
13
+ const u = t * sqrt3;
14
+ context.moveTo(0, r);
15
+ context.lineTo(0, -r);
16
+ context.moveTo(-u, -t);
17
+ context.lineTo(u, t);
18
+ context.moveTo(-u, t);
19
+ context.lineTo(u, -t);
20
+ }
21
+ };
node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/circle.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _math = require("../math.js");
8
+ var _default = exports.default = {
9
+ draw(context, size) {
10
+ const r = (0, _math.sqrt)(size / _math.pi);
11
+ context.moveTo(r, 0);
12
+ context.arc(0, 0, r, 0, _math.tau);
13
+ }
14
+ };
node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/cross.js ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _math = require("../math.js");
8
+ var _default = exports.default = {
9
+ draw(context, size) {
10
+ const r = (0, _math.sqrt)(size / 5) / 2;
11
+ context.moveTo(-3 * r, -r);
12
+ context.lineTo(-r, -r);
13
+ context.lineTo(-r, -3 * r);
14
+ context.lineTo(r, -3 * r);
15
+ context.lineTo(r, -r);
16
+ context.lineTo(3 * r, -r);
17
+ context.lineTo(3 * r, r);
18
+ context.lineTo(r, r);
19
+ context.lineTo(r, 3 * r);
20
+ context.lineTo(-r, 3 * r);
21
+ context.lineTo(-r, r);
22
+ context.lineTo(-3 * r, r);
23
+ context.closePath();
24
+ }
25
+ };
node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/diamond.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _math = require("../math.js");
8
+ const tan30 = (0, _math.sqrt)(1 / 3);
9
+ const tan30_2 = tan30 * 2;
10
+ var _default = exports.default = {
11
+ draw(context, size) {
12
+ const y = (0, _math.sqrt)(size / tan30_2);
13
+ const x = y * tan30;
14
+ context.moveTo(0, -y);
15
+ context.lineTo(x, 0);
16
+ context.lineTo(0, y);
17
+ context.lineTo(-x, 0);
18
+ context.closePath();
19
+ }
20
+ };
node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/diamond2.js ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _math = require("../math.js");
8
+ var _default = exports.default = {
9
+ draw(context, size) {
10
+ const r = (0, _math.sqrt)(size) * 0.62625;
11
+ context.moveTo(0, -r);
12
+ context.lineTo(r, 0);
13
+ context.lineTo(0, r);
14
+ context.lineTo(-r, 0);
15
+ context.closePath();
16
+ }
17
+ };
node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/plus.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _math = require("../math.js");
8
+ var _default = exports.default = {
9
+ draw(context, size) {
10
+ const r = (0, _math.sqrt)(size - (0, _math.min)(size / 7, 2)) * 0.87559;
11
+ context.moveTo(-r, 0);
12
+ context.lineTo(r, 0);
13
+ context.moveTo(0, r);
14
+ context.lineTo(0, -r);
15
+ }
16
+ };
node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/square.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _math = require("../math.js");
8
+ var _default = exports.default = {
9
+ draw(context, size) {
10
+ const w = (0, _math.sqrt)(size);
11
+ const x = -w / 2;
12
+ context.rect(x, x, w, w);
13
+ }
14
+ };
node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/square2.js ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _math = require("../math.js");
8
+ var _default = exports.default = {
9
+ draw(context, size) {
10
+ const r = (0, _math.sqrt)(size) * 0.4431;
11
+ context.moveTo(r, r);
12
+ context.lineTo(r, -r);
13
+ context.lineTo(-r, -r);
14
+ context.lineTo(-r, r);
15
+ context.closePath();
16
+ }
17
+ };
node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/star.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _math = require("../math.js");
8
+ const ka = 0.89081309152928522810;
9
+ const kr = (0, _math.sin)(_math.pi / 10) / (0, _math.sin)(7 * _math.pi / 10);
10
+ const kx = (0, _math.sin)(_math.tau / 10) * kr;
11
+ const ky = -(0, _math.cos)(_math.tau / 10) * kr;
12
+ var _default = exports.default = {
13
+ draw(context, size) {
14
+ const r = (0, _math.sqrt)(size * ka);
15
+ const x = kx * r;
16
+ const y = ky * r;
17
+ context.moveTo(0, -r);
18
+ context.lineTo(x, y);
19
+ for (let i = 1; i < 5; ++i) {
20
+ const a = _math.tau * i / 5;
21
+ const c = (0, _math.cos)(a);
22
+ const s = (0, _math.sin)(a);
23
+ context.lineTo(s * r, -c * r);
24
+ context.lineTo(c * x - s * y, s * x + c * y);
25
+ }
26
+ context.closePath();
27
+ }
28
+ };
node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/triangle.js ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _math = require("../math.js");
8
+ const sqrt3 = (0, _math.sqrt)(3);
9
+ var _default = exports.default = {
10
+ draw(context, size) {
11
+ const y = -(0, _math.sqrt)(size / (sqrt3 * 3));
12
+ context.moveTo(0, y * 2);
13
+ context.lineTo(-sqrt3 * y, -y);
14
+ context.lineTo(sqrt3 * y, -y);
15
+ context.closePath();
16
+ }
17
+ };