@hpcc-js/chart 3.7.4 → 3.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +43 -43
- package/README.md +93 -93
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +5 -5
- package/src/Area.md +176 -176
- package/src/Area.ts +12 -12
- package/src/Axis.css +35 -35
- package/src/Axis.ts +781 -781
- package/src/Bar.md +90 -90
- package/src/Bar.ts +9 -9
- package/src/Bubble.css +16 -16
- package/src/Bubble.md +69 -69
- package/src/Bubble.ts +196 -196
- package/src/BubbleXY.ts +14 -14
- package/src/Bullet.css +59 -59
- package/src/Bullet.md +104 -104
- package/src/Bullet.ts +176 -176
- package/src/Column.css +44 -44
- package/src/Column.md +90 -90
- package/src/Column.ts +684 -684
- package/src/Contour.md +88 -88
- package/src/Contour.ts +97 -97
- package/src/D3Cloud.ts +403 -403
- package/src/Gantt.md +119 -119
- package/src/Gantt.ts +14 -14
- package/src/Gauge.md +148 -148
- package/src/Gauge.ts +368 -368
- package/src/HalfPie.md +62 -62
- package/src/HalfPie.ts +26 -26
- package/src/Heat.md +42 -42
- package/src/Heat.ts +283 -283
- package/src/HexBin.css +8 -8
- package/src/HexBin.md +88 -88
- package/src/HexBin.ts +144 -144
- package/src/Line.css +4 -4
- package/src/Line.md +170 -170
- package/src/Line.ts +14 -14
- package/src/Pie.css +50 -50
- package/src/Pie.md +88 -88
- package/src/Pie.ts +546 -546
- package/src/QuarterPie.md +61 -61
- package/src/QuarterPie.ts +35 -35
- package/src/QuartileCandlestick.md +129 -129
- package/src/QuartileCandlestick.ts +349 -349
- package/src/Radar.css +14 -14
- package/src/Radar.md +104 -104
- package/src/Radar.ts +336 -336
- package/src/RadialBar.css +25 -25
- package/src/RadialBar.md +91 -91
- package/src/RadialBar.ts +217 -217
- package/src/Scatter.css +42 -42
- package/src/Scatter.md +163 -163
- package/src/Scatter.ts +412 -412
- package/src/StatChart.md +117 -117
- package/src/StatChart.ts +261 -261
- package/src/Step.md +163 -163
- package/src/Step.ts +12 -12
- package/src/Summary.css +55 -55
- package/src/Summary.md +219 -219
- package/src/Summary.ts +322 -322
- package/src/SummaryC.md +154 -154
- package/src/SummaryC.ts +240 -240
- package/src/WordCloud.css +2 -2
- package/src/WordCloud.md +144 -144
- package/src/WordCloud.ts +268 -268
- package/src/XYAxis.css +40 -40
- package/src/XYAxis.md +149 -149
- package/src/XYAxis.ts +809 -809
- package/src/__package__.ts +3 -3
- package/src/__tests__/heat.ts +71 -71
- package/src/__tests__/index.ts +3 -3
- package/src/__tests__/pie.ts +20 -20
- package/src/__tests__/stat.ts +16 -16
- package/src/__tests__/test3.ts +68 -68
- package/src/index.ts +28 -28
- package/src/test.ts +70 -70
- package/src/timeFormats.ts +26 -26
package/LICENSE
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems.
|
|
2
|
-
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License.
|
|
5
|
-
You may obtain a copy of the License at
|
|
6
|
-
|
|
7
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
See the License for the specific language governing permissions and
|
|
13
|
-
limitations under the License.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Intersection Algorithms Provided by Kevin Lindsey
|
|
17
|
-
Copyright (c) 2000-2011, Kevin Lindsey
|
|
18
|
-
All rights reserved.
|
|
19
|
-
|
|
20
|
-
Redistribution and use in source and binary forms, with or without
|
|
21
|
-
modification, are permitted provided that the following conditions are met:
|
|
22
|
-
|
|
23
|
-
- Redistributions of source code must retain the above copyright notice,
|
|
24
|
-
this list of conditions and the following disclaimer.
|
|
25
|
-
|
|
26
|
-
- Redistributions in binary form must reproduce the above copyright
|
|
27
|
-
notice, this list of conditions and the following disclaimer in the
|
|
28
|
-
documentation and/or other materials provided with the distribution.
|
|
29
|
-
|
|
30
|
-
- Neither the name of this software nor the names of its contributors
|
|
31
|
-
may be used to endorse or promote products derived from this software
|
|
32
|
-
without specific prior written permission.
|
|
33
|
-
|
|
34
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
35
|
-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
36
|
-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
37
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
38
|
-
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
39
|
-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
40
|
-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
41
|
-
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
42
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
43
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1
|
+
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems.
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
Intersection Algorithms Provided by Kevin Lindsey
|
|
17
|
+
Copyright (c) 2000-2011, Kevin Lindsey
|
|
18
|
+
All rights reserved.
|
|
19
|
+
|
|
20
|
+
Redistribution and use in source and binary forms, with or without
|
|
21
|
+
modification, are permitted provided that the following conditions are met:
|
|
22
|
+
|
|
23
|
+
- Redistributions of source code must retain the above copyright notice,
|
|
24
|
+
this list of conditions and the following disclaimer.
|
|
25
|
+
|
|
26
|
+
- Redistributions in binary form must reproduce the above copyright
|
|
27
|
+
notice, this list of conditions and the following disclaimer in the
|
|
28
|
+
documentation and/or other materials provided with the distribution.
|
|
29
|
+
|
|
30
|
+
- Neither the name of this software nor the names of its contributors
|
|
31
|
+
may be used to endorse or promote products derived from this software
|
|
32
|
+
without specific prior written permission.
|
|
33
|
+
|
|
34
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
35
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
36
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
37
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
38
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
39
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
40
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
41
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
42
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
43
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
# @hpcc-js/chart
|
|
2
|
-
This package is part of the mono repository "@hpcc-js" (aka Visualization Framework), for more information including [Quick Start](https://github.com/hpcc-systems/Visualization/wiki/Quick-Start), [Gallery](https://raw.githack.com/hpcc-systems/Visualization/trunk/demos/gallery/gallery.html) and [Tutorials](https://github.com/hpcc-systems/Visualization/wiki/Tutorials), please visit the main page on GitHub: [hpcc-systems/Visualization](https://github.com/hpcc-systems/Visualization).
|
|
3
|
-
|
|
4
|
-
## Exported Widgets
|
|
5
|
-
* [Area](./src/Area)
|
|
6
|
-
* [Bar](./src/Bar)
|
|
7
|
-
* [Bubble](./src/Bubble)
|
|
8
|
-
* [Bullet](./src/Bullet)
|
|
9
|
-
* [Column](./src/Column)
|
|
10
|
-
* [Contour](./src/Contour)
|
|
11
|
-
* [Gantt](./src/Gantt)
|
|
12
|
-
* [Gauge](./src/Gauge)
|
|
13
|
-
* [Half Pie](./src/HalfPie)
|
|
14
|
-
* [Heat](./src/Heat)
|
|
15
|
-
* [Hex Bin](./src/HexBin)
|
|
16
|
-
* [Line](./src/Line)
|
|
17
|
-
* [Pie](./src/Pie)
|
|
18
|
-
* [Quarter Pie](./src/QuarterPie)
|
|
19
|
-
* [Quartile Candlestick](./src/QuartileCandlestick)
|
|
20
|
-
* [Radar](./src/Radar)
|
|
21
|
-
* [Radial Bar](./src/RadialBar)
|
|
22
|
-
* [Scatter](./src/Scatter)
|
|
23
|
-
* [Stat Chart](./src/StatChart)
|
|
24
|
-
* [Step](./src/Step)
|
|
25
|
-
* [Summary](./src/Summary)
|
|
26
|
-
* [Summary (Canvas)](./src/SummaryC)
|
|
27
|
-
* [Word Cloud](./src/WordCloud)
|
|
28
|
-
* [XYAxis](./src/XYAxis)
|
|
29
|
-
|
|
30
|
-
## Stand-alone HTML Example
|
|
31
|
-
|
|
32
|
-
<ClientOnly>
|
|
33
|
-
<hpcc-preview content_selector="pre > code" style="width:100%;height:600px">
|
|
34
|
-
<head>
|
|
35
|
-
<title>Simple Bar Chart</title>
|
|
36
|
-
<script src="https://cdn.jsdelivr.net/npm/@hpcc-js/common"></script>
|
|
37
|
-
<script src="https://cdn.jsdelivr.net/npm/@hpcc-js/api"></script>
|
|
38
|
-
<script src="https://cdn.jsdelivr.net/npm/@hpcc-js/chart"></script>
|
|
39
|
-
</head>
|
|
40
|
-
<body>
|
|
41
|
-
<div id="placeholder" style="height:300px;"></div>
|
|
42
|
-
<script>
|
|
43
|
-
var chart = new window["@hpcc-js/chart"].Bar()
|
|
44
|
-
.target("placeholder")
|
|
45
|
-
.columns(["Subject", "Year 1", "Year 2", "Year 3"])
|
|
46
|
-
.data([
|
|
47
|
-
["Geography", 75, 68, 65],
|
|
48
|
-
["English", 45, 55, -52],
|
|
49
|
-
["Math", 98, 92, 90],
|
|
50
|
-
["Science", 66, 60, 72]
|
|
51
|
-
])
|
|
52
|
-
.render();
|
|
53
|
-
</script>
|
|
54
|
-
</body>
|
|
55
|
-
</hpcc-preview>
|
|
56
|
-
</ClientOnly>
|
|
57
|
-
|
|
58
|
-
## Getting Started with @hpccjs
|
|
59
|
-
* _[Quick Start](https://github.com/hpcc-systems/Visualization/wiki/Quick-Start)_
|
|
60
|
-
* _[Tutorials](https://github.com/hpcc-systems/Visualization/wiki/Tutorials)_
|
|
61
|
-
* _[Gallery](https://raw.githack.com/hpcc-systems/Visualization/trunk/demos/gallery/gallery.html)_ ([alt](https://rawgit.com/hpcc-systems/Visualization/trunk/demos/gallery/gallery.html))
|
|
62
|
-
* _[Wiki](https://github.com/hpcc-systems/Visualization/wiki)_
|
|
63
|
-
|
|
64
|
-
<ClientOnly>
|
|
65
|
-
<hpcc-vitepress style="width:100%;height:600px">
|
|
66
|
-
<div id="placeholder" style="width:100%;height:400px">
|
|
67
|
-
</div>
|
|
68
|
-
<script type="module">
|
|
69
|
-
import { Contour } from "@hpcc-js/chart";
|
|
70
|
-
|
|
71
|
-
new Contour()
|
|
72
|
-
.target("placeholder")
|
|
73
|
-
.columns(["A", "B"])
|
|
74
|
-
.data([
|
|
75
|
-
[10, 10],
|
|
76
|
-
[20, 20],
|
|
77
|
-
[20, 30],
|
|
78
|
-
[30, 20],
|
|
79
|
-
[40, 30],
|
|
80
|
-
[30, 40],
|
|
81
|
-
[10, 20],
|
|
82
|
-
[20, 10]
|
|
83
|
-
])
|
|
84
|
-
.contourBandwidth(80)
|
|
85
|
-
.contourStrokeWidth(0)
|
|
86
|
-
.yAxisType("linear")
|
|
87
|
-
.xAxisType("ordinal")
|
|
88
|
-
.xAxisTitle("A")
|
|
89
|
-
.render()
|
|
90
|
-
;
|
|
91
|
-
</script>
|
|
92
|
-
</hpcc-vitepress>
|
|
93
|
-
</ClientOnly>
|
|
1
|
+
# @hpcc-js/chart
|
|
2
|
+
This package is part of the mono repository "@hpcc-js" (aka Visualization Framework), for more information including [Quick Start](https://github.com/hpcc-systems/Visualization/wiki/Quick-Start), [Gallery](https://raw.githack.com/hpcc-systems/Visualization/trunk/demos/gallery/gallery.html) and [Tutorials](https://github.com/hpcc-systems/Visualization/wiki/Tutorials), please visit the main page on GitHub: [hpcc-systems/Visualization](https://github.com/hpcc-systems/Visualization).
|
|
3
|
+
|
|
4
|
+
## Exported Widgets
|
|
5
|
+
* [Area](./src/Area)
|
|
6
|
+
* [Bar](./src/Bar)
|
|
7
|
+
* [Bubble](./src/Bubble)
|
|
8
|
+
* [Bullet](./src/Bullet)
|
|
9
|
+
* [Column](./src/Column)
|
|
10
|
+
* [Contour](./src/Contour)
|
|
11
|
+
* [Gantt](./src/Gantt)
|
|
12
|
+
* [Gauge](./src/Gauge)
|
|
13
|
+
* [Half Pie](./src/HalfPie)
|
|
14
|
+
* [Heat](./src/Heat)
|
|
15
|
+
* [Hex Bin](./src/HexBin)
|
|
16
|
+
* [Line](./src/Line)
|
|
17
|
+
* [Pie](./src/Pie)
|
|
18
|
+
* [Quarter Pie](./src/QuarterPie)
|
|
19
|
+
* [Quartile Candlestick](./src/QuartileCandlestick)
|
|
20
|
+
* [Radar](./src/Radar)
|
|
21
|
+
* [Radial Bar](./src/RadialBar)
|
|
22
|
+
* [Scatter](./src/Scatter)
|
|
23
|
+
* [Stat Chart](./src/StatChart)
|
|
24
|
+
* [Step](./src/Step)
|
|
25
|
+
* [Summary](./src/Summary)
|
|
26
|
+
* [Summary (Canvas)](./src/SummaryC)
|
|
27
|
+
* [Word Cloud](./src/WordCloud)
|
|
28
|
+
* [XYAxis](./src/XYAxis)
|
|
29
|
+
|
|
30
|
+
## Stand-alone HTML Example
|
|
31
|
+
|
|
32
|
+
<ClientOnly>
|
|
33
|
+
<hpcc-preview content_selector="pre > code" style="width:100%;height:600px">
|
|
34
|
+
<head>
|
|
35
|
+
<title>Simple Bar Chart</title>
|
|
36
|
+
<script src="https://cdn.jsdelivr.net/npm/@hpcc-js/common"></script>
|
|
37
|
+
<script src="https://cdn.jsdelivr.net/npm/@hpcc-js/api"></script>
|
|
38
|
+
<script src="https://cdn.jsdelivr.net/npm/@hpcc-js/chart"></script>
|
|
39
|
+
</head>
|
|
40
|
+
<body>
|
|
41
|
+
<div id="placeholder" style="height:300px;"></div>
|
|
42
|
+
<script>
|
|
43
|
+
var chart = new window["@hpcc-js/chart"].Bar()
|
|
44
|
+
.target("placeholder")
|
|
45
|
+
.columns(["Subject", "Year 1", "Year 2", "Year 3"])
|
|
46
|
+
.data([
|
|
47
|
+
["Geography", 75, 68, 65],
|
|
48
|
+
["English", 45, 55, -52],
|
|
49
|
+
["Math", 98, 92, 90],
|
|
50
|
+
["Science", 66, 60, 72]
|
|
51
|
+
])
|
|
52
|
+
.render();
|
|
53
|
+
</script>
|
|
54
|
+
</body>
|
|
55
|
+
</hpcc-preview>
|
|
56
|
+
</ClientOnly>
|
|
57
|
+
|
|
58
|
+
## Getting Started with @hpccjs
|
|
59
|
+
* _[Quick Start](https://github.com/hpcc-systems/Visualization/wiki/Quick-Start)_
|
|
60
|
+
* _[Tutorials](https://github.com/hpcc-systems/Visualization/wiki/Tutorials)_
|
|
61
|
+
* _[Gallery](https://raw.githack.com/hpcc-systems/Visualization/trunk/demos/gallery/gallery.html)_ ([alt](https://rawgit.com/hpcc-systems/Visualization/trunk/demos/gallery/gallery.html))
|
|
62
|
+
* _[Wiki](https://github.com/hpcc-systems/Visualization/wiki)_
|
|
63
|
+
|
|
64
|
+
<ClientOnly>
|
|
65
|
+
<hpcc-vitepress style="width:100%;height:600px">
|
|
66
|
+
<div id="placeholder" style="width:100%;height:400px">
|
|
67
|
+
</div>
|
|
68
|
+
<script type="module">
|
|
69
|
+
import { Contour } from "@hpcc-js/chart";
|
|
70
|
+
|
|
71
|
+
new Contour()
|
|
72
|
+
.target("placeholder")
|
|
73
|
+
.columns(["A", "B"])
|
|
74
|
+
.data([
|
|
75
|
+
[10, 10],
|
|
76
|
+
[20, 20],
|
|
77
|
+
[20, 30],
|
|
78
|
+
[30, 20],
|
|
79
|
+
[40, 30],
|
|
80
|
+
[30, 40],
|
|
81
|
+
[10, 20],
|
|
82
|
+
[20, 10]
|
|
83
|
+
])
|
|
84
|
+
.contourBandwidth(80)
|
|
85
|
+
.contourStrokeWidth(0)
|
|
86
|
+
.yAxisType("linear")
|
|
87
|
+
.xAxisType("ordinal")
|
|
88
|
+
.xAxisTitle("A")
|
|
89
|
+
.render()
|
|
90
|
+
;
|
|
91
|
+
</script>
|
|
92
|
+
</hpcc-vitepress>
|
|
93
|
+
</ClientOnly>
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var t=Object.defineProperty,e=(e,i)=>t(e,"name",{value:i,configurable:!0}),i=(e,i,n)=>((e,i,n)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n)(e,"symbol"!=typeof i?i+"":i,n);import{INDChart as n,ITooltip as o,I2DChart as a,I1DChart as s,I2DAggrChart as r}from"@hpcc-js/api";import{SVGWidget as l,select as h,scaleTime as c,timeParse as u,timeFormat as p,scaleLog as d,format as f,scalePow as y,scaleLinear as _,scaleBand as x,Utility as m,brush as g,brushX as b,brushY as v,brushSelection as w,d3Event as S,hsl as A,min as k,max as M,scaleSqrt as P,extent as T,local as C,Text as z,FAChar as F,descending as I,HTMLWidget as E,thresholdSturges as R,tickStep as D,range as O,drag as j,event as N,dispatch as L,interpolateHcl as B,interpolate as $,Palette as H,rgb as V,CanvasWidget as q,zoom as W}from"@hpcc-js/common";import{normalizeRadians as G,degreesToRadians as X}from"@hpcc-js/util";const Y="@hpcc-js/chart",U="3.7.
|
|
1
|
+
var t=Object.defineProperty,e=(e,i)=>t(e,"name",{value:i,configurable:!0}),i=(e,i,n)=>((e,i,n)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n)(e,"symbol"!=typeof i?i+"":i,n);import{INDChart as n,ITooltip as o,I2DChart as a,I1DChart as s,I2DAggrChart as r}from"@hpcc-js/api";import{SVGWidget as l,select as h,scaleTime as c,timeParse as u,timeFormat as p,scaleLog as d,format as f,scalePow as y,scaleLinear as _,scaleBand as x,Utility as m,brush as g,brushX as b,brushY as v,brushSelection as w,d3Event as S,hsl as A,min as k,max as M,scaleSqrt as P,extent as T,local as C,Text as z,FAChar as F,descending as I,HTMLWidget as E,thresholdSturges as R,tickStep as D,range as O,drag as j,event as N,dispatch as L,interpolateHcl as B,interpolate as $,Palette as H,rgb as V,CanvasWidget as q,zoom as W}from"@hpcc-js/common";import{normalizeRadians as G,degreesToRadians as X}from"@hpcc-js/util";const Y="@hpcc-js/chart",U="3.7.5",Q="3.21.5";var Z=Math.PI,J=2*Z,K=1e-6,tt=J-K;function et(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function it(){return new et}function nt(t){/* @__PURE__ */
|
|
2
2
|
return e(function(){return t},"constant")}e(et,"Path"),e(it,"path"),et.prototype=it.prototype={constructor:et,moveTo:/* @__PURE__ */e(function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},"moveTo"),closePath:/* @__PURE__ */e(function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:/* @__PURE__ */e(function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},"lineTo"),quadraticCurveTo:/* @__PURE__ */e(function(t,e,i,n){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+n)},"quadraticCurveTo"),bezierCurveTo:/* @__PURE__ */e(function(t,e,i,n,o,a){this._+="C"+ +t+","+ +e+","+ +i+","+ +n+","+(this._x1=+o)+","+(this._y1=+a)},"bezierCurveTo"),arcTo:/* @__PURE__ */e(function(t,e,i,n,o){t=+t,e=+e,i=+i,n=+n,o=+o;var a=this._x1,s=this._y1,r=i-t,l=n-e,h=a-t,c=s-e,u=h*h+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>K)if(Math.abs(c*r-l*h)>K&&o){var p=i-a,d=n-s,f=r*r+l*l,y=p*p+d*d,_=Math.sqrt(f),x=Math.sqrt(u),m=o*Math.tan((Z-Math.acos((f+u-y)/(2*_*x)))/2),g=m/x,b=m/_;Math.abs(g-1)>K&&(this._+="L"+(t+g*h)+","+(e+g*c)),this._+="A"+o+","+o+",0,0,"+ +(c*p>h*d)+","+(this._x1=t+b*r)+","+(this._y1=e+b*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},"arcTo"),arc:/* @__PURE__ */e(function(t,e,i,n,o,a){t=+t,e=+e,a=!!a;var s=(i=+i)*Math.cos(n),r=i*Math.sin(n),l=t+s,h=e+r,c=1^a,u=a?n-o:o-n;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+l+","+h:(Math.abs(this._x1-l)>K||Math.abs(this._y1-h)>K)&&(this._+="L"+l+","+h),i&&(u<0&&(u=u%J+J),u>tt?this._+="A"+i+","+i+",0,1,"+c+","+(t-s)+","+(e-r)+"A"+i+","+i+",0,1,"+c+","+(this._x1=l)+","+(this._y1=h):u>K&&(this._+="A"+i+","+i+",0,"+ +(u>=Z)+","+c+","+(this._x1=t+i*Math.cos(o))+","+(this._y1=e+i*Math.sin(o))))},"arc"),rect:/* @__PURE__ */e(function(t,e,i,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +n+"h"+-i+"Z"},"rect"),toString:/* @__PURE__ */e(function(){return this._},"toString")},e(nt,"constant$3");var ot=Math.abs,at=Math.atan2,st=Math.cos,rt=Math.max,lt=Math.min,ht=Math.sin,ct=Math.sqrt,ut=1e-12,pt=Math.PI,dt=pt/2,ft=2*pt;function yt(t){return t>1?0:t<-1?pt:Math.acos(t)}function _t(t){return t>=1?dt:t<=-1?-dt:Math.asin(t)}function xt(t){return t.innerRadius}function mt(t){return t.outerRadius}function gt(t){return t.startAngle}function bt(t){return t.endAngle}function vt(t){return t&&t.padAngle}function wt(t,e,i,n,o,a,s,r){var l=i-t,h=n-e,c=s-o,u=r-a,p=u*l-c*h;if(!(p*p<ut))return[t+(p=(c*(e-a)-u*(t-o))/p)*l,e+p*h]}function St(t,e,i,n,o,a,s){var r=t-i,l=e-n,h=(s?a:-a)/ct(r*r+l*l),c=h*l,u=-h*r,p=t+c,d=e+u,f=i+c,y=n+u,_=(p+f)/2,x=(d+y)/2,m=f-p,g=y-d,b=m*m+g*g,v=o-a,w=p*y-f*d,S=(g<0?-1:1)*ct(rt(0,v*v*b-w*w)),A=(w*g-m*S)/b,k=(-w*m-g*S)/b,M=(w*g+m*S)/b,P=(-w*m+g*S)/b,T=A-_,C=k-x,z=M-_,F=P-x;return T*T+C*C>z*z+F*F&&(A=M,k=P),{cx:A,cy:k,x01:-c,y01:-u,x11:A*(o/v-1),y11:k*(o/v-1)}}function At(){var t=xt,i=mt,n=nt(0),o=null,a=gt,s=bt,r=vt,l=null;function h(){var e,h,c=+t.apply(this,arguments),u=+i.apply(this,arguments),p=a.apply(this,arguments)-dt,d=s.apply(this,arguments)-dt,f=ot(d-p),y=d>p;if(l||(l=e=it()),u<c&&(h=u,u=c,c=h),u>ut)if(f>ft-ut)l.moveTo(u*st(p),u*ht(p)),l.arc(0,0,u,p,d,!y),c>ut&&(l.moveTo(c*st(d),c*ht(d)),l.arc(0,0,c,d,p,y));else{var _,x,m=p,g=d,b=p,v=d,w=f,S=f,A=r.apply(this,arguments)/2,k=A>ut&&(o?+o.apply(this,arguments):ct(c*c+u*u)),M=lt(ot(u-c)/2,+n.apply(this,arguments)),P=M,T=M;if(k>ut){var C=_t(k/c*ht(A)),z=_t(k/u*ht(A));(w-=2*C)>ut?(b+=C*=y?1:-1,v-=C):(w=0,b=v=(p+d)/2),(S-=2*z)>ut?(m+=z*=y?1:-1,g-=z):(S=0,m=g=(p+d)/2)}var F=u*st(m),I=u*ht(m),E=c*st(v),R=c*ht(v);if(M>ut){var D,O=u*st(g),j=u*ht(g),N=c*st(b),L=c*ht(b);if(f<pt&&(D=wt(F,I,N,L,O,j,E,R))){var B=F-D[0],$=I-D[1],H=O-D[0],V=j-D[1],q=1/ht(yt((B*H+$*V)/(ct(B*B+$*$)*ct(H*H+V*V)))/2),W=ct(D[0]*D[0]+D[1]*D[1]);P=lt(M,(c-W)/(q-1)),T=lt(M,(u-W)/(q+1))}}S>ut?T>ut?(_=St(N,L,F,I,u,T,y),x=St(O,j,E,R,u,T,y),l.moveTo(_.cx+_.x01,_.cy+_.y01),T<M?l.arc(_.cx,_.cy,T,at(_.y01,_.x01),at(x.y01,x.x01),!y):(l.arc(_.cx,_.cy,T,at(_.y01,_.x01),at(_.y11,_.x11),!y),l.arc(0,0,u,at(_.cy+_.y11,_.cx+_.x11),at(x.cy+x.y11,x.cx+x.x11),!y),l.arc(x.cx,x.cy,T,at(x.y11,x.x11),at(x.y01,x.x01),!y))):(l.moveTo(F,I),l.arc(0,0,u,m,g,!y)):l.moveTo(F,I),c>ut&&w>ut?P>ut?(_=St(E,R,O,j,c,-P,y),x=St(F,I,N,L,c,-P,y),l.lineTo(_.cx+_.x01,_.cy+_.y01),P<M?l.arc(_.cx,_.cy,P,at(_.y01,_.x01),at(x.y01,x.x01),!y):(l.arc(_.cx,_.cy,P,at(_.y01,_.x01),at(_.y11,_.x11),!y),l.arc(0,0,c,at(_.cy+_.y11,_.cx+_.x11),at(x.cy+x.y11,x.cx+x.x11),y),l.arc(x.cx,x.cy,P,at(x.y11,x.x11),at(x.y01,x.x01),!y))):l.arc(0,0,c,v,b,y):l.lineTo(E,R)}else l.moveTo(0,0);if(l.closePath(),e)return l=null,e+""||null}return e(h,"arc"),h.centroid=function(){var e=(+t.apply(this,arguments)+ +i.apply(this,arguments))/2,n=(+a.apply(this,arguments)+ +s.apply(this,arguments))/2-pt/2;return[st(n)*e,ht(n)*e]},h.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:nt(+e),h):t},h.outerRadius=function(t){return arguments.length?(i="function"==typeof t?t:nt(+t),h):i},h.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:nt(+t),h):n},h.padRadius=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:nt(+t),h):o},h.startAngle=function(t){return arguments.length?(a="function"==typeof t?t:nt(+t),h):a},h.endAngle=function(t){return arguments.length?(s="function"==typeof t?t:nt(+t),h):s},h.padAngle=function(t){return arguments.length?(r="function"==typeof t?t:nt(+t),h):r},h.context=function(t){return arguments.length?(l=null==t?null:t,h):l},h}function kt(t){this._context=t}function Mt(t){return new kt(t)}function Pt(t){return t[0]}function Tt(t){return t[1]}function Ct(){var t=Pt,i=Tt,n=nt(!0),o=null,a=Mt,s=null;function r(e){var r,l,h,c=e.length,u=!1;for(null==o&&(s=a(h=it())),r=0;r<=c;++r)!(r<c&&n(l=e[r],r,e))===u&&((u=!u)?s.lineStart():s.lineEnd()),u&&s.point(+t(l,r,e),+i(l,r,e));if(h)return s=null,h+""||null}return e(r,"line"),r.x=function(e){return arguments.length?(t="function"==typeof e?e:nt(+e),r):t},r.y=function(t){return arguments.length?(i="function"==typeof t?t:nt(+t),r):i},r.defined=function(t){return arguments.length?(n="function"==typeof t?t:nt(!!t),r):n},r.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),r):a},r.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),r):o},r}function zt(){var t=Pt,i=null,n=nt(0),o=Tt,a=nt(!0),s=null,r=Mt,l=null;function h(e){var h,c,u,p,d,f=e.length,y=!1,_=new Array(f),x=new Array(f);for(null==s&&(l=r(d=it())),h=0;h<=f;++h){if(!(h<f&&a(p=e[h],h,e))===y)if(y=!y)c=h,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),u=h-1;u>=c;--u)l.point(_[u],x[u]);l.lineEnd(),l.areaEnd()}y&&(_[h]=+t(p,h,e),x[h]=+n(p,h,e),l.point(i?+i(p,h,e):_[h],o?+o(p,h,e):x[h]))}if(d)return l=null,d+""||null}function c(){return Ct().defined(a).curve(r).context(s)}return e(h,"area"),e(c,"arealine"),h.x=function(e){return arguments.length?(t="function"==typeof e?e:nt(+e),i=null,h):t},h.x0=function(e){return arguments.length?(t="function"==typeof e?e:nt(+e),h):t},h.x1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:nt(+t),h):i},h.y=function(t){return arguments.length?(n="function"==typeof t?t:nt(+t),o=null,h):n},h.y0=function(t){return arguments.length?(n="function"==typeof t?t:nt(+t),h):n},h.y1=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:nt(+t),h):o},h.lineX0=h.lineY0=function(){return c().x(t).y(n)},h.lineY1=function(){return c().x(t).y(o)},h.lineX1=function(){return c().x(i).y(n)},h.defined=function(t){return arguments.length?(a="function"==typeof t?t:nt(!!t),h):a},h.curve=function(t){return arguments.length?(r=t,null!=s&&(l=r(s)),h):r},h.context=function(t){return arguments.length?(null==t?s=l=null:l=r(s=t),h):s},h}function Ft(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function It(t){return t}function Et(){var t=It,i=Ft,n=null,o=nt(0),a=nt(ft),s=nt(0);function r(e){var r,l,h,c,u,p=e.length,d=0,f=new Array(p),y=new Array(p),_=+o.apply(this,arguments),x=Math.min(ft,Math.max(-ft,a.apply(this,arguments)-_)),m=Math.min(Math.abs(x)/p,s.apply(this,arguments)),g=m*(x<0?-1:1);for(r=0;r<p;++r)(u=y[f[r]=r]=+t(e[r],r,e))>0&&(d+=u);for(null!=i?f.sort(function(t,e){return i(y[t],y[e])}):null!=n&&f.sort(function(t,i){return n(e[t],e[i])}),r=0,h=d?(x-p*g)/d:0;r<p;++r,_=c)l=f[r],c=_+((u=y[l])>0?u*h:0)+g,y[l]={data:e[l],index:r,value:u,startAngle:_,endAngle:c,padAngle:m};return y}return e(r,"pie"),r.value=function(e){return arguments.length?(t="function"==typeof e?e:nt(+e),r):t},r.sortValues=function(t){return arguments.length?(i=t,n=null,r):i},r.sort=function(t){return arguments.length?(n=t,i=null,r):n},r.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:nt(+t),r):o},r.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:nt(+t),r):a},r.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:nt(+t),r):s},r}function Rt(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function Dt(t){this._context=t}function Ot(t){return new Dt(t)}function jt(t,e){this._basis=new Dt(t),this._beta=e}e(yt,"acos"),e(_t,"asin$1"),e(xt,"arcInnerRadius$1"),e(mt,"arcOuterRadius$1"),e(gt,"arcStartAngle$1"),e(bt,"arcEndAngle$1"),e(vt,"arcPadAngle$1"),e(wt,"intersect$1"),e(St,"cornerTangents$1"),e(At,"d3Arc"),e(kt,"Linear$1"),kt.prototype={areaStart:/* @__PURE__ */e(function(){this._line=0},"areaStart"),areaEnd:/* @__PURE__ */e(function(){this._line=NaN},"areaEnd"),lineStart:/* @__PURE__ */e(function(){this._point=0},"lineStart"),lineEnd:/* @__PURE__ */e(function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:/* @__PURE__ */e(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}},"point")},e(Mt,"d3CurveLinear"),e(Pt,"x$1"),e(Tt,"y$1"),e(Ct,"d3Line"),e(zt,"d3Area"),e(Ft,"descending"),e(It,"identity$2"),e(Et,"d3Pie"),e(Rt,"point$7"),e(Dt,"Basis$1"),Dt.prototype={areaStart:/* @__PURE__ */e(function(){this._line=0},"areaStart"),areaEnd:/* @__PURE__ */e(function(){this._line=NaN},"areaEnd"),lineStart:/* @__PURE__ */e(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:/* @__PURE__ */e(function(){switch(this._point){case 3:Rt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:/* @__PURE__ */e(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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);default:Rt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")},e(Ot,"d3CurveBasis"),e(jt,"Bundle$1"),jt.prototype={lineStart:/* @__PURE__ */e(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:/* @__PURE__ */e(function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var n,o=t[0],a=e[0],s=t[i]-o,r=e[i]-a,l=-1;++l<=i;)n=l/i,this._basis.point(this._beta*t[l]+(1-this._beta)*(o+n*s),this._beta*e[l]+(1-this._beta)*(a+n*r));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:/* @__PURE__ */e(function(t,e){this._x.push(+t),this._y.push(+e)},"point")};const Nt=/* @__PURE__ */e(function t(i){function n(t){return 1===i?new Dt(t):new jt(t,i)}return e(n,"bundle"),n.beta=function(e){return t(+e)},n},"custom")(.85);function Lt(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function Bt(t,e){this._context=t,this._k=(1-e)/6}e(Lt,"point$6"),e(Bt,"Cardinal$1"),Bt.prototype={areaStart:/* @__PURE__ */e(function(){this._line=0},"areaStart"),areaEnd:/* @__PURE__ */e(function(){this._line=NaN},"areaEnd"),lineStart:/* @__PURE__ */e(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:/* @__PURE__ */e(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Lt(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:/* @__PURE__ */e(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Lt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};const $t=/* @__PURE__ */e(function t(i){function n(t){return new Bt(t,i)}return e(n,"cardinal"),n.tension=function(e){return t(+e)},n},"custom")(0);function Ht(t,e,i){var n=t._x1,o=t._y1,a=t._x2,s=t._y2;if(t._l01_a>ut){var r=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*r-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,o=(o*r-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>ut){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*h+t._x1*t._l23_2a-e*t._l12_2a)/c,s=(s*h+t._y1*t._l23_2a-i*t._l12_2a)/c}t._context.bezierCurveTo(n,o,a,s,t._x2,t._y2)}function Vt(t,e){this._context=t,this._alpha=e}e(Ht,"point$5"),e(Vt,"CatmullRom$1"),Vt.prototype={areaStart:/* @__PURE__ */e(function(){this._line=0},"areaStart"),areaEnd:/* @__PURE__ */e(function(){this._line=NaN},"areaEnd"),lineStart:/* @__PURE__ */e(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},"lineStart"),lineEnd:/* @__PURE__ */e(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:/* @__PURE__ */e(function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Ht(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};const qt=/* @__PURE__ */e(function t(i){function n(t){return i?new Vt(t,i):new Bt(t,0)}return e(n,"catmullRom"),n.alpha=function(e){return t(+e)},n},"custom")(.5);function Wt(t){return t<0?-1:1}function Gt(t,e,i){var n=t._x1-t._x0,o=e-t._x1,a=(t._y1-t._y0)/(n||o<0&&-0),s=(i-t._y1)/(o||n<0&&-0),r=(a*o+s*n)/(n+o);return(Wt(a)+Wt(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(r))||0}function Xt(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function Yt(t,e,i){var n=t._x0,o=t._y0,a=t._x1,s=t._y1,r=(a-n)/3;t._context.bezierCurveTo(n+r,o+r*e,a-r,s-r*i,a,s)}function Ut(t){this._context=t}function Qt(t){return new Ut(t)}function Zt(t){this._context=t}function Jt(t){var e,i,n=t.length-1,o=new Array(n),a=new Array(n),s=new Array(n);for(o[0]=0,a[0]=2,s[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,a[e]=4,s[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,a[n-1]=7,s[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=o[e]/a[e-1],a[e]-=i,s[e]-=i*s[e-1];for(o[n-1]=s[n-1]/a[n-1],e=n-2;e>=0;--e)o[e]=(s[e]-o[e+1])/a[e];for(a[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)a[e]=2*t[e+1]-o[e+1];return[o,a]}function Kt(t){return new Zt(t)}function te(t,e){this._context=t,this._t=e}function ee(t){return new te(t,.5)}function ie(t){return new te(t,0)}function ne(t){return new te(t,1)}e(Wt,"sign$1"),e(Gt,"slope3$1"),e(Xt,"slope2$1"),e(Yt,"point$4"),e(Ut,"MonotoneX$1"),Ut.prototype={areaStart:/* @__PURE__ */e(function(){this._line=0},"areaStart"),areaEnd:/* @__PURE__ */e(function(){this._line=NaN},"areaEnd"),lineStart:/* @__PURE__ */e(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:/* @__PURE__ */e(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Yt(this,this._t0,Xt(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:/* @__PURE__ */e(function(t,e){var i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Yt(this,Xt(this,i=Gt(this,t,e)),i);break;default:Yt(this,this._t0,i=Gt(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}},"point")},Object.create(Ut.prototype).point=function(t,e){Ut.prototype.point.call(this,e,t)},e(Qt,"monotoneX"),e(Zt,"Natural"),Zt.prototype={areaStart:/* @__PURE__ */e(function(){this._line=0},"areaStart"),areaEnd:/* @__PURE__ */e(function(){this._line=NaN},"areaEnd"),lineStart:/* @__PURE__ */e(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:/* @__PURE__ */e(function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===i)this._context.lineTo(t[1],e[1]);else for(var n=Jt(t),o=Jt(e),a=0,s=1;s<i;++a,++s)this._context.bezierCurveTo(n[0][a],o[0][a],n[1][a],o[1][a],t[s],e[s]);(this._line||0!==this._line&&1===i)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},"lineEnd"),point:/* @__PURE__ */e(function(t,e){this._x.push(+t),this._y.push(+e)},"point")},e(Jt,"controlPoints"),e(Kt,"d3CurveNatural"),e(te,"Step$1"),te.prototype={areaStart:/* @__PURE__ */e(function(){this._line=0},"areaStart"),areaEnd:/* @__PURE__ */e(function(){this._line=NaN},"areaEnd"),lineStart:/* @__PURE__ */e(function(){this._x=this._y=NaN,this._point=0},"lineStart"),lineEnd:/* @__PURE__ */e(function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:/* @__PURE__ */e(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e},"point")},e(ee,"d3CurveStep"),e(ie,"stepBefore"),e(ne,"stepAfter");var oe=Array.prototype.slice;function ae(t){return t}e(ae,"identity$1");var se=1e-6;function re(t){return"translate("+(t+.5)+",0)"}function le(t){return"translate(0,"+(t+.5)+")"}function he(t){return function(e){return+t(e)}}function ce(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(i){return+t(i)+e}}function ue(){return!this.__axis}function pe(t,i){var n=[],o=null,a=null,s=6,r=6,l=3,h=1===t||4===t?-1:1,c=4===t||2===t?"x":"y",u=1===t||3===t?re:le;function p(e){var p=null==o?i.ticks?i.ticks.apply(i,n):i.domain():o,d=null==a?i.tickFormat?i.tickFormat.apply(i,n):ae:a,f=Math.max(s,0)+l,y=i.range(),_=+y[0]+.5,x=+y[y.length-1]+.5,m=(i.bandwidth?ce:he)(i.copy()),g=e.selection?e.selection():e,b=g.selectAll(".domain").data([null]),v=g.selectAll(".tick").data(p,i).order(),w=v.exit(),S=v.enter().append("g").attr("class","tick"),A=v.select("line"),k=v.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),v=v.merge(S),A=A.merge(S.append("line").attr("stroke","currentColor").attr(c+"2",h*s)),k=k.merge(S.append("text").attr("fill","currentColor").attr(c,h*f).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),e!==g&&(b=b.transition(e),v=v.transition(e),A=A.transition(e),k=k.transition(e),w=w.transition(e).attr("opacity",se).attr("transform",function(t){return isFinite(t=m(t))?u(t):this.getAttribute("transform")}),S.attr("opacity",se).attr("transform",function(t){var e=this.parentNode.__axis;return u(e&&isFinite(e=e(t))?e:m(t))})),w.remove(),b.attr("d",4===t||2==t?r?"M"+h*r+","+_+"H0.5V"+x+"H"+h*r:"M0.5,"+_+"V"+x:r?"M"+_+","+h*r+"V0.5H"+x+"V"+h*r:"M"+_+",0.5H"+x),v.attr("opacity",1).attr("transform",function(t){return u(m(t))}),A.attr(c+"2",h*s),k.attr(c,h*f).text(d),g.filter(ue).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),g.each(function(){this.__axis=m})}return e(p,"axis"),p.scale=function(t){return arguments.length?(i=t,p):i},p.ticks=function(){return n=oe.call(arguments),p},p.tickArguments=function(t){return arguments.length?(n=null==t?[]:oe.call(t),p):n.slice()},p.tickValues=function(t){return arguments.length?(o=null==t?null:oe.call(t),p):o&&o.slice()},p.tickFormat=function(t){return arguments.length?(a=t,p):a},p.tickSize=function(t){return arguments.length?(s=r=+t,p):s},p.tickSizeInner=function(t){return arguments.length?(s=+t,p):s},p.tickSizeOuter=function(t){return arguments.length?(r=+t,p):r},p.tickPadding=function(t){return arguments.length?(l=+t,p):l},p}function de(t){return pe(1,t)}function fe(t){return pe(2,t)}function ye(t){return pe(3,t)}function _e(t){return pe(4,t)}e(re,"translateX"),e(le,"translateY"),e(he,"number"),e(ce,"center"),e(ue,"entering"),e(pe,"axis"),e(de,"axisTop"),e(fe,"axisRight"),e(ye,"axisBottom"),e(_e,"axisLeft");const xe=class _Axis extends l{_origType;_origTimePattern;parser;parserInvert;formatter;d3Scale;d3Axis;d3Guides;_guideElement;svg;svgAxis;svgGuides;_tickFormatFunc;constructor(t="origin"){super(),this._drawStartPos=t,this.updateScale()}lowValue(){return this.parse(this.low())}highValue(){return this.parse(this.high())}parse(t,e){if(t instanceof Array)return t.map(function(t){return this.parse(t)},this);if(null!=t){if(this.parser)return this.parser("number"==typeof t?t.toString():t);if(e&&"string"==typeof t)return+t}return t}parseInvert(t){return t instanceof Array?t.map(function(t){return this.parseInvert(t)},this):this.parserInvert&&t?this.parserInvert(t):t}format(t){return t instanceof Array?t.map(function(t){return this.format(t)},this):null!=t&&this.formatter?this.formatter(t):t}parseFormat(t){return this.format(this.parse(t))}tickFormatFunc(t){return arguments.length?(this._tickFormatFunc=t,this.updateScale(),this):this._tickFormatFunc}scalePos(t){let e=this.d3Scale(this.parse(t));return"ordinal"===this.type()&&(e+=this.bandwidth()/2),e}bandwidth(){return this.d3Scale.bandwidth?this.d3Scale.bandwidth():0}isHorizontal(){switch(this.orientation()){case"left":case"right":return!1}return!0}domain(t){return arguments.length?(this.d3Scale.domain(t),this):this.d3Scale.domain()}range(t){if(!arguments.length){if(this.d3Scale.rangeRoundBands)return this.d3Scale.rangeExtent();if(this.d3Scale.rangeRound)return this.d3Scale.range()}return this.d3Scale.rangeRoundBands?this.d3Scale.rangeRoundBands(t,.1):this.d3Scale.rangeRound&&this.d3Scale.range(t),this}invert(t){return this.d3Scale.invert(t)}guideTarget(t){return this._guideElement=h(t).attr("class",this._class),this}enter(t,e){super.enter(t,e),this.svg=e.append("g"),this.svgAxis=this.svg.append("g").attr("class","axis"),this.svgGuides=(this._guideElement||e).append("g").attr("class","guide")}_prevOrientation;updateScale(){switch(this.type()){case"ordinal":if(this.d3Scale=x().paddingInner(this.ordinalPaddingInner()).paddingOuter(this.ordinalPaddingOuter()),this.ordinals_exists()&&this.d3Scale.domain(this.ordinals()),this.parser=null,this.ordinalMappings_exists()){const t=this.ordinalMappings();this.formatter=e=>t[e]||e}else this.formatter=null;break;case"linear":this.d3Scale=_(),this.low_exists()&&this.high_exists()&&this.d3Scale.domain([this.lowValue(),this.highValue()]),this.parser=null,this.formatter=this.tickFormat_exists()?f(this.tickFormat()):null;break;case"pow":this.d3Scale=y().exponent(this.powExponent()),this.low_exists()&&this.high_exists()&&this.d3Scale.domain([this.lowValue(),this.highValue()]),this.parser=null,this.formatter=this.tickFormat_exists()?f(this.tickFormat()):null;break;case"log":this.d3Scale=d().base(this.logBase()),this.low_exists()&&this.high_exists()&&this.d3Scale.domain([this.lowValue(),this.highValue()]),this.parser=null,this.formatter=this.tickFormat_exists()?f(this.tickFormat()):null;break;case"time":this.d3Scale=c(),this.low_exists()&&this.high_exists()&&this.d3Scale.domain([this.lowValue(),this.highValue()]),this.parser=this.timePattern_exists()?u(this.timePattern()):null,this.parserInvert=this.timePattern_exists()?p(this.timePattern()):null,this._tickFormatFunc?this.formatter=this._tickFormatFunc:this.formatter=this.tickFormat_exists()?p(this.tickFormat()):null}if(this._prevOrientation!==this.orientation()){switch(this.orientation()){case"left":this.d3Axis=_e(this.d3Scale),this.d3Guides=_e(this.d3Scale);break;case"top":this.d3Axis=de(this.d3Scale),this.d3Guides=de(this.d3Scale);break;case"right":this.d3Axis=fe(this.d3Scale),this.d3Guides=fe(this.d3Scale);break;default:this.d3Axis=ye(this.d3Scale),this.d3Guides=ye(this.d3Scale)}this._prevOrientation=this.orientation(),this.svgAxis&&this.svgAxis.html(""),this.svgGuides&&this.svgGuides.html("")}if(this.extend())if("ordinal"===this.type());else{let t,e,i,n,o,a;this.isHorizontal()?(t=this.width(),this.d3Scale.range([0,t]),e=t*this.extend()/100,i=this.d3Scale.invert(0),o=this.d3Scale.invert(-e),n=this.d3Scale.invert(t),a=this.d3Scale.invert(t+e)):(t=this.height(),this.d3Scale.range([t,0]),e=t*this.extend()/100,i=this.d3Scale.invert(t),o=this.d3Scale.invert(t+e),n=this.d3Scale.invert(0),a=this.d3Scale.invert(-e)),o===i&&(o=i-i*this.extend()/100),a===n&&(a=n+n*this.extend()/100),Math.sign(i)!==Math.sign(o)&&(o=0),Math.sign(n)!==Math.sign(a)&&(a=0),this.d3Scale.domain([o,a])}this.d3Axis.scale(this.d3Scale).tickFormat(this.formatter).ticks(this.tickCount()),this.d3Guides.scale(this.d3Scale).tickSize(this.tickLength_exists()?-this.tickLength():0).tickFormat("").ticks(this.tickCount());const t=this.ticks();return t.length&&(this.d3Axis.tickValues(t.map(t=>this.parse(t.value))).tickFormat((e,i)=>t[i].label),this.d3Guides.tickValues(t.map(t=>this.parse(t.value)))),this}adjustText(t,e){const i=this.isHorizontal(),n="left"===this.orientation(),o="bottom"===this.orientation(),a=this,s=t.selectAll(".tick > text").style("font-family",this.fontFamily()).style("font-size",this.fontSize_exists()?this.fontSize()+"px":null);if("linebreak"===this.overlapMode())"ordinal"===this.type()&&s.call(function(){return a.linebreak.apply(a,arguments)},this.bandwidth());else if("wrap"===this.overlapMode())"ordinal"===this.type()&&s.call(function(){return a.wrap.apply(a,arguments)},this.bandwidth());else switch(i?this.overlapMode():"none"){case"stagger":s.style("text-anchor","middle").attr("dy",function(t,i){return(o?1:-1)*((o?.71:0)+i%e)+"em"}).attr("dx",0).attr("visibility",null).attr("transform","rotate(0)");break;case"hide":s.style("text-anchor","middle").attr("dy",(o?.71:0)+"em").attr("dx",0).attr("visibility",function(t,i){return i%e?"hidden":null}).attr("transform","rotate(0)");break;case"rotate":const t=-this.labelRotation()||0;if(0!==t&&e>1){s.each(function(){const e=h(this),i=e.node().getBBox(),n=(o?1:-1)*Math.sin(Math.PI*(-Math.abs(t)/180));e.style("text-anchor",t>0?o?"start":"end":o?"end":"start").attr("dy",i.height/2*n+"px").attr("dx",t>0?o?"0.71em":"-0.71em":o?"-0.71em":"0.71em").attr("transform","rotate("+t+")").attr("visibility",null)});break}default:s.style("text-anchor",i?"middle":n?"end":"start").attr("dy",i?(o?.71:0)+"em":"0.32em").attr("dx",0).attr("visibility",null).attr("transform","rotate(0)")}}calcTickOverlapModulus(t){let e=1;switch(this.overlapMode()){case"rotate":case"stagger":case"hide":const i=[];t.selectAll(".tick > text").each(function(){const t=this.getBoundingClientRect();for(let n=i.length-1;n>=0&&!(i[n].right<t.left);--n)i.length+1-n>e&&(e=i.length+1-n);i.push(t)})}return e}calcOverflow(t,e){if(this.updateScale(),this.hidden())return{left:0,top:0,right:0,bottom:0,depth:0,tickOverlapModulus:1};const i=this.isHorizontal();this.range(i?[0,this.width()]:[this.height(),0]);const n=t.append("g").attr("class",this.classID()),o=n.append("g");o.attr("class",i?"x":"y").call(this.d3Axis),e&&t.selectAll(".tick > text").remove();const a={left:0,top:0,right:0,bottom:0,depth:0,tickOverlapModulus:this.calcTickOverlapModulus(o)};this.adjustText(o,a.tickOverlapModulus);const s=o.node().getBBox();switch(a.depth=i?s.height:s.width,this.shrinkToFit()){case"low":case"both":a.left=i?-s.x:0,a.bottom=i?0:-(this.height()-(s.height+s.y))}switch(this.shrinkToFit()){case"high":case"both":a.top=i?0:-s.y,a.right=i?-(this.width()-s.x-s.width):0}return n.remove(),a}wrap(t,e,i){i=i||/\s+/;const n=this;t.each(function(){const t=h(this),o=t.text().split(i).reverse();let a=[],s=0;const r=t.attr("x"),l=t.attr("y"),c=parseFloat(t.style("font-size"))||10,u=Math.floor(e/(1.1*c))-1,p=n.isHorizontal()?1:Math.ceil(o.length/u),d=parseFloat(t.attr("dy"));let f=t.text(null).append("tspan").attr("x",r).attr("y",l).attr("dy",d+"em"),y=0,_=o.pop();for(;_;)a.push(_),f.text(a.join(" ")),y++,f.node().getComputedTextLength()>e&&y>=p&&(a.pop(),f.text(a.join(" ")),a=[_],f=t.append("tspan").attr("x",r).attr("y",l).attr("dy",1.1*++s+d+"em").text(_),y=0),_=o.pop();n.isHorizontal()||t.selectAll("tspan").attr("y",-s/2+"em")})}linebreak(t,e){this.wrap(t,e,"\n")}update(t,i){super.update(t,i),this.svg.style("display",this.hidden()?"none":null);const n=this.calcOverflow(i),o=this.isHorizontal()?n.left:this.height()-n.top-n.bottom,a=this.isHorizontal()?this.width()-n.right-this.padding():0+this.padding();this.range(this.reverse()?[a,o]:[o,a]);const s=this;function r(t){t.attr("transform",function(){switch(s.orientation()){case"left":return"translate("+n.depth+", "+n.top+")";case"top":return"translate(0,"+n.depth+")";case"right":return"translate("+(s.width()-n.depth)+", "+n.top+")";case"bottom":return"translate(0,"+(s.height()-n.depth)+")"}return"translate(0,0)"})}e(r,"doPosition"),this.svg.style("visibility","none"===this.type()?"hidden":null).transition().call(r),this._guideElement&&this.svgGuides.transition().call(r),this.svgAxis.call(this.d3Axis),this.adjustText(this.svgAxis,n.tickOverlapModulus);this.pos().x;const l=this.width(),h=this.svgAxis.selectAll(".axisTitle").data(this.title()?[this.title()]:[]),c=h.enter().append("text").attr("class","axisTitle").merge(h).transition().attr("dx",null).style("text-anchor","end");switch(this.orientation()){case"left":c.attr("transform","rotate(-90)").attr("x",-2).attr("y",2).attr("dy",".71em");break;case"right":c.attr("transform","rotate(-90)").attr("x",-2).attr("y",4).attr("dx",null).attr("dy","-.71em");break;case"top":c.attr("transform","rotate(0)").attr("x",l-2).attr("y",2).attr("dx",null).attr("dy",".71em");break;case"bottom":c.attr("transform","rotate(0)").attr("x",l-2).attr("y",-2).attr("dy",null)}c.text(this.title_exists()?this.title():""),h.exit().remove(),this.svgGuides.call(this.d3Guides).selectAll(".tick").classed("guide-0",t=>0===t&&this.low()<0)}rerender(){this.svgAxis.call(this.d3Axis),this.svgGuides.call(this.d3Guides)}postUpdate(t,e){super.postUpdate(t,e),this._guideElement&&this._guideElement.attr("transform",this._element.attr("transform"))}};e(xe,"Axis");let me=xe;me.prototype._class+=" chart_Axis",me.prototype.publish("type","linear","set","Type",["none","ordinal","linear","pow","log","time"]),me.prototype.publish("timePattern","%Y-%m-%d","string","Time Series Pattern",null,{disable:/* @__PURE__ */e(t=>"time"!==t.type(),"disable")}),me.prototype.publish("reverse",!1,"boolean","Reverse"),me.prototype.publish("title",null,"string","Title"),me.prototype.publish("orientation","bottom","set","Placement/orientation of the axis",["left","top","right","bottom"]),me.prototype.publish("powExponent",2,"number","Power exponent (disabled when type is not 'pow')",null,{disable:/* @__PURE__ */e(t=>"pow"!==t.type(),"disable")}),me.prototype.publish("logBase",10,"number","Logarithmic base (disabled when type is not 'log')",null,{disable:/* @__PURE__ */e(t=>"log"!==t.type(),"disable")}),me.prototype.publish("ordinals",[],"array","Array of ordinal values to display (disabled when type is not 'ordinal')",null,{disable:/* @__PURE__ */e(t=>"ordinal"!==t.type(),"disable")}),me.prototype.publish("fontSize",null,"number","Size of tick label font (pixels)",null,{optional:!0}),me.prototype.publish("fontFamily",null,"string","Font family of tick labels",null,{optional:!0}),me.prototype.publish("tickCount",null,"number","Number of ticks to display (disabled when type is 'ordinal')",null,{optional:!0,disable:/* @__PURE__ */e(t=>"ordinal"===t.type(),"disable")}),me.prototype.publish("tickFormat",null,"string","Format rules for tick text (disabled when type is 'ordinal')",null,{optional:!0,disable:/* @__PURE__ */e(t=>"ordinal"===t.type(),"disable")}),me.prototype.publish("tickLength",null,"number","Height (or width for left/right orientations) of the axis ticks (in pixels)",null,{optional:!0}),me.prototype.publish("ticks",[],"array","Custom tick labels",null,{optional:!0}),me.prototype.publish("low",null,"any","Minimum tick value (disabled when type is ordinal)",null,{optional:!0,disable:/* @__PURE__ */e(t=>"ordinal"===t.type(),"disable")}),me.prototype.publish("high",null,"any","Maximum tick value (disabled when type is ordinal)",null,{optional:!0,disable:/* @__PURE__ */e(t=>"ordinal"===t.type(),"disable")}),me.prototype.publish("overlapMode","none","set","Specifies the behavior when tick labels overlap",["none","stagger","hide","rotate","linebreak","wrap"]),me.prototype.publish("labelRotation",33,"number","Angle of rotation for tick labels (disabled when overlapMode is not 'rotate')",null,{optional:!0,disable:/* @__PURE__ */e(t=>"rotate"!==t.overlapMode(),"disable")}),me.prototype.publish("shrinkToFit","both","set","shrinkToFit",["none","low","high","both"]),me.prototype.publish("extend",5,"number","Extend the axis range by this % beyond what is needed to display the data (disabled when type is 'ordinal')",null,{optional:!0,disable:/* @__PURE__ */e(t=>"ordinal"===t.type(),"disable")}),me.prototype.publish("hidden",!1,"boolean","Hides axis when 'true'"),me.prototype.publish("ordinalPaddingInner",.1,"number","Determines the ratio of the range that is reserved for blank space between band (0->1)",null,{disable:/* @__PURE__ */e(t=>"ordinal"!==t.type(),"disable")}),me.prototype.publish("ordinalPaddingOuter",.1,"number","Determines the ratio of the range that is reserved for blank space before the first band and after the last band (0->1)",null,{disable:/* @__PURE__ */e(t=>"ordinal"!==t.type(),"disable")}),me.prototype.publish("ordinalMappings",null,"object","Alternative label mappings (icons)",null,{optional:!0}),me.prototype.publish("padding",0,"number","Padding space at top of axis (pixels)",null,{optional:!0}),me.prototype._origType=me.prototype.type,me.prototype.type=function(t){const e=me.prototype._origType.apply(this,arguments);return void 0!==t&&(this._type=t,this.updateScale()),e},me.prototype._origTimePattern=me.prototype.timePattern,me.prototype.timePattern=function(t){const e=me.prototype._origTimePattern.apply(this,arguments);return void 0!==t&&(this._timePattern=t,this.updateScale()),e};const ge=class _XYAxis extends l{domainAxis;valueAxis;xAxis;yAxis;xyBrush;xBrush;yBrush;margin;focusChart;constructor(){super(),m.SimpleSelectionMixin.call(this),this._drawStartPos="origin",this.domainAxis=(new me).classed({domain:!0}).orientation_default("bottom").type("ordinal").overlapMode_default("stagger").shrinkToFit_default("high").extend_default(0),this.valueAxis=(new me).classed({value:!0}).orientation_default("left").type("linear").shrinkToFit_default("high"),this.xyBrush=g().on("end",()=>this.brushMoved()).on("start.handle brush.handle end.handle",()=>this.brushMoved2()),this.xBrush=b().on("end",()=>this.brushMoved()).on("start.handle brush.handle end.handle",()=>this.brushMoved2()),this.yBrush=v().on("end",()=>this.brushMoved()).on("start.handle brush.handle end.handle",()=>this.brushMoved2())}_prevBrush;resetSelection(){return this._prevBrush=null,this}parseData(t){return this.domainAxis.parse(t)}parseValue(t){return this.valueAxis.parse(t,!0)}formatData(t){return this.domainAxis.format(t)}formatValue(t){return this.valueAxis.format(t)}parsedData(){return this.data().map(function(t){let e=0;return t.map(function(t,i){if(0===i)return this.parseData(t);if(i>=this.columns().length)return t;const n=this.yAxisStacked()?[e,e+this.parseValue(t)]:this.parseValue(t);return e+=this.parseValue(t),n},this)},this)}bandwidth(){return this.domainAxis.bandwidth()}svg;svgRegions;svgDomainGuide;svgValueGuide;svgData;svgDataClipRect;svgFocus;svgBrush;enter(t,e){super.enter(t,e),this.svg=e.append("g"),this.svgRegions=e.append("g"),this.svgDomainGuide=this.svg.append("g"),this.svgValueGuide=this.svg.append("g"),this.svgData=this.svg.append("g"),this.svgDataClipRect=this.svg.append("clipPath").attr("id",this.id()+"_clippath").append("rect").attr("x",0).attr("y",0),this.svgData=this.svg.append("g").attr("clip-path","url(#"+this.id()+"_clippath)"),this._selection.widgetElement(this.svgData),this.svgFocus=e.append("g"),this.domainAxis.target(this.svg.node()).guideTarget(this.svgDomainGuide.node()),this.valueAxis.target(this.svg.node()).guideTarget(this.svgValueGuide.node()),this.svgBrush=e.append("g").attr("class","brush"),this.chartsEnter(this,this.svgData,250)}resizeBrushHandle(t,e,i){let n,o,a;return"e"===t.type||"w"===t.type?(n=+("e"===t.type),o=n?1:-1,a=i/3,"M"+.5*o+","+a+"A6,6 0 0 "+n+" "+6.5*o+","+(a+6)+"V"+(2*a-6)+"A6,6 0 0 "+n+" "+.5*o+","+2*a+"ZM"+2.5*o+","+(a+8)+"V"+(2*a-8)+"M"+4.5*o+","+(a+8)+"V"+(2*a-8)):(n=+("s"===t.type),a=n?1:-1,o=e/3,"M"+o+", "+.5*a+"A6,6 0 0 "+(n+1)%2+" "+(o+6)+","+6.5*a+"H"+(2*o-6)+"A6,6 0 0 "+(n+1)%2+" "+2*o+","+.5*a+"ZM"+(o+8)+","+2.5*a+"H"+(2*o-8)+"M"+(o+8)+","+4.5*a+"H"+(2*o-8))}_skipSelection=!1;skipSelection(t){return arguments.length?(this._skipSelection=t,this):this._skipSelection}brushMoved(){if(this._skipSelection)return;let t=[];const e=this,i=w(this.svgBrush.node());i&&(t=this.data().filter(function(t){const n=e.dataPos(t[0]);if(e.use2dSelection()){const o=e.valuePos(t[1])+e.valueAxis.bandwidth()/2;return n>=i[0][0]&&n<=i[1][0]&&o>=i[0][1]&&o<=i[1][1]}return n>=i[0]&&n<=i[1]})),this.selection(t)}brushMoved2(){const t="horizontal"===this.orientation(),e=this.use2dSelection()?[]:t?[{type:"w"},{type:"e"}]:[{type:"n"},{type:"s"}],i=this.svgBrush.selectAll(".handle--custom").data(e),n=S()?.selection;null==n?i.attr("display","none"):t?i.attr("display",null).attr("transform",(t,e)=>"translate("+n[e]+",0)"):i.attr("display",null).attr("transform",(t,e)=>"translate(0, "+n[e]+")")}dataPos(t){return this.domainAxis.scalePos(t)}valuePos(t){return this.valueAxis.scalePos(t)}getAxisSize(t){return{width:this.xAxis?this.xAxis.width():t.xAxis.width(),height:this.yAxis?this.yAxis.height():t.yAxis.width()}}calcMargin(t,e,i){const n={top:!i&&this.selectionMode()?10:2,right:i&&(this.selectionMode()||this.xAxisFocus())?10:2,bottom:(this.xAxisFocus()?this.xAxisFocusHeight():0)+2,left:2},o=this.width()-n.left-n.right,a=this.height()-n.top-n.bottom;let s=0,r=30,l=0,h=30;for(let c=0;c<10;++c){this.xAxis.width(o-h).height(0);const t=this.xAxis.calcOverflow(e),i=t.depth;this.yAxis.width(0).height(a-r);const n=this.yAxis.calcOverflow(e),c=n.depth;if(s=t.right,l=n.top,i===r&&c===h)break;r=i,h=c}return this.xAxis.x(o/2+h/2+n.left).y(a+n.top).width(o-h),this.yAxis.x(n.left).y(a/2-r/2+n.top).height(a-r),n.left+=h,n.top+=l,n.right+=s,n.bottom+=r,n}updateRegions(t,e,i){const n=this,o=this.svgRegions.selectAll(".region").data(this.regions());o.enter().append("rect").attr("class","region"),i?o.attr("x",function(t){return n.dataPos(t.x0)}).attr("y",0).attr("width",function(t){return n.dataPos(t.x1)-n.dataPos(t.x0)}).attr("height",this.height()).style("stroke",function(t){return n._palette(t.colorID)}).style("fill",function(t){return A(n._palette(t.colorID)).brighter()}):o.attr("x",0).attr("y",function(t){return n.dataPos(t.x0)}).attr("width",this.width()).attr("height",function(t){return n.dataPos(t.x0)-n.dataPos(t.x1)}).style("stroke",function(t){return n._palette(t.colorID)}).style("fill",function(t){return A(n._palette(t.colorID)).brighter()}),o.exit().remove()}_prevXAxisType;update(t,e){this.selectionGlow(!this.tabNavigation()),super.update(t,e);const i=this,n="horizontal"===this.orientation();if(this.updateRegions(t,e,n),this.domainAxis.orientation(n?"bottom":"left").title(this.xAxisTitle_exists()?this.xAxisTitle():this.columns()[0]),this.valueAxis.orientation(n?"left":"bottom"),this.xAxis=n?this.domainAxis:this.valueAxis,this.yAxis=n?this.valueAxis:this.domainAxis,"ordinal"===this.xAxisType()){const t=this.columns().length,e={};this.domainAxis.ordinals(this.data().map(function(n){return e[n[0]]=i.xAxisOrdinalMapping(n,n[t]),n[0]})).ordinalMappings(e)}else{const t=this.xAxisDomainLow()?this.xAxisDomainLow():this.domainAxis.parseInvert(k(this.parsedData(),function(t){return t[0]})),e=this.xAxisDomainHigh()?this.xAxisDomainHigh():this.domainAxis.parseInvert(M(this.parsedData(),function(t){return t[0]}));void 0!==t&&void 0!==e&&this.domainAxis.low(t).high(e)}const o=this.yAxisDomainLow()?this.yAxisDomainLow():this.valueAxis.parseInvert(k(this.parsedData(),function(t){return k(t.filter(function(t,e){return e>0&&i.columns()[e]&&0!==i.columns()[e].indexOf("__")&&null!==t}),function(t){return t instanceof Array?t[0]:t})})),a=this.yAxisDomainHigh()?this.yAxisDomainHigh():this.valueAxis.parseInvert(M(this.parsedData(),function(t){return M(t.filter(function(t,e){return e>0&&i.columns()[e]&&0!==i.columns()[e].indexOf("__")&&null!==t}),function(t){return t instanceof Array?t[1]:t})}));this.valueAxis.low(o).high(a),this.margin=this.calcMargin(t,e,n);let s=this.width()-this.margin.left-this.margin.right;s<0&&(s=0);let r=this.height()-this.margin.top-this.margin.bottom;r<0&&(r=0);const l=n?s:r,h=n?r:s;if(this.domainAxis.tickLength(this.xAxisGuideLines()?h:0).render(),this.valueAxis.tickLength(this.yAxisGuideLines()?l:0).render(),this.svgDataClipRect.attr("width",s).attr("height",r),this.svgData.transition().attr("transform","translate("+this.margin.left+","+this.margin.top+")"),this.updateBrush(s,r,l,n),this.updateFocusChart(t,e,this.margin,s,r,n),this.chartsUpdate(s,r,250),this.selectionMode())return this.brushMoved()}updateBrush(t,e,i,n){const o=this.use2dSelection()?this.xyBrush:n?this.xBrush:this.yBrush,a=w(this.svgBrush.node());o.extent([[0,0],[t,e]]),this.svgBrush.attr("transform","translate("+this.margin.left+", "+this.margin.top+")").style("display",this.selectionMode()?null:"none").call(o);const s=this.use2dSelection()?[]:n?[{type:"w"},{type:"e"}]:[{type:"n"},{type:"s"}],r=this.svgBrush.selectAll(".handle--custom").data(s);if(r.enter().append("path").attr("class","handle--custom").merge(r).attr("cursor",n?"ew-resize":"ns-resize").attr("d",i=>this.resizeBrushHandle(i,t,e)),this.selectionMode()){if(this._prevXAxisType!==this.xAxisType()&&(this._prevXAxisType=this.xAxisType(),this._prevBrush=null),this._prevBrush){if(a){if(this._prevBrush.orientation!==this.orientation()){const t=a[0];a[0]=this._prevBrush.maxCurrExtent-a[1],a[1]=this._prevBrush.maxCurrExtent-t}const t=i/this._prevBrush.maxCurrExtent;1!==t&&this.svgBrush.transition().on("start",function(){o.on("end",null)}).call(o.move,[a[0]*t,a[1]*t]).on("end",()=>{o.on("end",()=>this.brushMoved())})}}else this.svgBrush.call(o.move,[0,i]);this._prevBrush={orientation:this.orientation(),maxCurrExtent:i}}}updateFocusChart(t,e,i,n,o,a){const s=this,r=this.svgFocus.selectAll("#"+this.id()+"_focusChart").data(this.xAxisFocus()?[!0]:[]);r.enter().append("g").attr("id",this.id()+"_focusChart").attr("class","focus").each(function(){s.focusChart=(new s.constructor).target(this),s.focusChart.xBrush.on("brush.focus",function(){s.syncAxis(n),s.chartsUpdate(n,o,0)}),s.focusChart.layers(s.layers().map(t=>new t.constructor))}).merge(r).each(function(){s.copyPropsTo(s.focusChart,["layers"]);let t=0;for(const e of s.layers())e.copyPropsTo(s.focusChart.layers()[t]),t++;s.focusChart.xAxisFocus(!1).selectionMode(!0).skipSelection(!0).orientation("horizontal").xAxisGuideLines(!1).xAxisDomainLow(null).xAxisDomainHigh(null).yAxisGuideLines(!1).x(s.width()/2).y(s.height()-s.xAxisFocusHeight()/2).width(s.width()).height(s.xAxisFocusHeight()).columns(s.columns()).data(s.data()).render(),s.syncAxis(n)}),r.exit().each(function(){s.focusChart&&(s.focusChart.target(null),delete s.focusChart)}).remove()}syncAxis(t){const e=w(this.focusChart.svgBrush.node());if(e){if("ordinal"!==this.focusChart.xAxisType())this.xAxis.domain([this.focusChart.xAxis.invert(e[0]),this.focusChart.xAxis.invert(e[1])]);else{const i=(e[1]-e[0])/t;this.xAxis.range([-e[0]/i,(t-e[0])/i])}this.xAxis.rerender()}}layerColumns(t){const e=t.columns(),i=super.columns().filter(t=>t!==e[0]);return i.length?[e[0],...i]:e}layerColumnIndices(t){const e=t.columns();return this.layerColumns(t).map(t=>e.indexOf(t))}layerColumnIndex(t,e){return t.columns().indexOf(e)}layerData(t){if(1===arguments.length){const e=this.layerColumnIndices(t);return t.data().map(t=>{const i=e.map(e=>t[e]);return i.__hpcc_origRow=t,i})}throw new Error("Setting data on XYAxisLayer is not supported.")}layerEnter(t,e,i=250){}layerUpdate(t,e,i=250){}layerExit(t,e,i=250){}chartsEnter(t,e,i=250){this.layerEnter(this,e,i);for(const n of this.layers())n.__xyAxisElement=e.append("g").attr("class",n.class()),n.target(n.__xyAxisElement.node()).layerEnter(this,e,i)}chartsUpdate(t,e,i){this.layerUpdate(this,this.svgData,i);for(const n of this.layers())n.resize({width:t,height:e}).layerUpdate(this,n.__xyAxisElement,i)}exit(t,e){this.valueAxis.target(null),this.domainAxis.target(null),super.exit(t,e)}selection(t){const e=this;this._selection.widgetElement().selectAll(".selected,.deselected").each(function(i){const n=t.indexOf(i.origRow)>=0;h(this).classed("selected",n).classed("deselected",!n).attr("filter",e._selection.svgGlowID()&&n?`url(#${e._selection.svgGlowID()})`:null)});const i=t.map(t=>this.rowToObj(t));setTimeout(()=>{this.click(i,"",!0)},0)}xAxisOrdinalMapping(t,e){return t[0]}click(t,e,i){}_selection};e(ge,"XYAxis");let be=ge;be.prototype._class+=" chart_XYAxis",be.prototype.mixin(m.SimpleSelectionMixin),be.prototype.publish("orientation","horizontal","set","Selects orientation for the axis",["horizontal","vertical"]),be.prototype.publish("pointSizeColumn",null,"string","pointSizeColumn",null,{optional:!0}),be.prototype.publish("minPointSize",6,"number","minPointSize"),be.prototype.publish("maxPointSize",26,"number","maxPointSize"),be.prototype.publish("use2dSelection",!1,"boolean","2D Range Selector"),be.prototype.publish("selectionMode",!1,"boolean","Range Selector"),be.prototype.publishProxy("xAxisTitle","domainAxis","title"),be.prototype.publishProxy("xAxisTickCount","domainAxis","tickCount"),be.prototype.publishProxy("xAxisTickFormat","domainAxis","tickFormat"),be.prototype.publishProxy("xAxisTicks","domainAxis","ticks"),be.prototype.publishProxy("xAxisType","domainAxis","type"),be.prototype.publishProxy("xAxisTypeTimePattern","domainAxis","timePattern"),be.prototype.publish("xAxisDomainLow",null,"string","X-Axis Low",null,{optional:!0,disable:/* @__PURE__ */e(t=>"ordinal"===t.xAxisType(),"disable")}),be.prototype.publish("xAxisDomainHigh",null,"string","X-Axis High",null,{optional:!0,disable:/* @__PURE__ */e(t=>"ordinal"===t.xAxisType(),"disable")}),be.prototype.publishProxy("xAxisFontSize","domainAxis","fontSize"),be.prototype.publishProxy("xAxisFontFamily","domainAxis","fontFamily"),be.prototype.publishProxy("xAxisOrdinalPaddingInner","domainAxis","ordinalPaddingInner"),be.prototype.publishProxy("xAxisOrdinalPaddingOuter","domainAxis","ordinalPaddingOuter"),be.prototype.publishProxy("xAxisOverlapMode","domainAxis","overlapMode"),be.prototype.publishProxy("xAxisLabelRotation","domainAxis","labelRotation"),be.prototype.publishProxy("xAxisDomainPadding","domainAxis","extend"),be.prototype.publish("xAxisGuideLines",!1,"boolean","Y-Axis Guide Lines"),be.prototype.publish("xAxisFocus",!1,"boolean","X-Axis Focus",null,{disable:/* @__PURE__ */e(t=>"horizontal"!==t.orientation(),"disable")}),be.prototype.publish("xAxisFocusHeight",80,"number","X-Axis Focus Height",null,{disable:/* @__PURE__ */e(t=>!t.xAxisFocus(),"disable")}),be.prototype.publishProxy("xAxisHidden","domainAxis","hidden"),be.prototype.publishProxy("yAxisFontSize","valueAxis","fontSize"),be.prototype.publishProxy("yAxisFontFamily","valueAxis","fontFamily"),be.prototype.publishProxy("yAxisTitle","valueAxis","title"),be.prototype.publishProxy("yAxisTickCount","valueAxis","tickCount"),be.prototype.publishProxy("yAxisTickFormat","valueAxis","tickFormat"),be.prototype.publishProxy("yAxisTicks","valueAxis","ticks"),be.prototype.publishProxy("yAxisType","valueAxis","type"),be.prototype.publishProxy("yAxisTypeTimePattern","valueAxis","timePattern"),be.prototype.publishProxy("yAxisTypePowExponent","valueAxis","powExponent"),be.prototype.publishProxy("yAxisTypeLogBase","valueAxis","logBase"),be.prototype.publish("yAxisStacked",!1,"boolean","Stacked Chart",null,{tags:["Basic"],disable:/* @__PURE__ */e(t=>"ordinal"!==t.xAxisType()||t._class.indexOf("chart_Column")<0,"disable")}),be.prototype.publish("yAxisDomainLow",null,"string","Y-Axis Low",null,{optional:!0,disable:/* @__PURE__ */e(t=>"ordinal"===t.yAxisType(),"disable")}),be.prototype.publish("yAxisDomainHigh",null,"string","Y-Axis High",null,{optional:!0,disable:/* @__PURE__ */e(t=>"ordinal"===t.yAxisType(),"disable")}),be.prototype.publishProxy("yAxisDomainPadding","valueAxis","extend"),be.prototype.publish("yAxisGuideLines",!0,"boolean","Y-Axis Guide Lines"),be.prototype.publishProxy("yAxisHidden","valueAxis","hidden"),be.prototype.publish("regions",[],"array","Regions"),be.prototype.publish("layers",[],"widgetArray","Layers",null,{render:!1}),be.prototype.publishProxy("xAxisPadding","domainAxis","padding"),be.prototype.publishProxy("yAxisPadding","valueAxis","padding"),be.prototype.publish("tabNavigation",!1,"boolean","Enable or disable tab navigation");const ve=class _Scatter extends be{constructor(){super(),n.call(this),o.call(this),this.xAxisGuideLines_default(!0).yAxisGuideLines_default(!0)}xPos(t,e){return"horizontal"===t.orientation()?t.dataPos(e.label):t.valuePos(e.value)}yPos(t,e){return"horizontal"===t.orientation()?t.valuePos(e.value):t.dataPos(e.label)}curve(){switch(this.interpolate()){case"linear":return Mt;case"step":return ee;case"step-before":return ie;case"step-after":return ne;case"basis":return Ot;case"bundle":return Nt;case"cardinal":return $t;case"catmullRom":return qt;case"natural":return Kt;default:return Qt}}getScale(){switch(this.pointSizeScale()){case"linear":return _();case"pow":return y().exponent(2);case"log":return d();case"sqrt":return P()}}pointColor(t,e,i,n){return this.interpolate()&&this.pointDarken()?this.strokeColor(t,e,i,n):this.fillColor(t,e,i,n)}lineColor(t,e,i,n){return this.interpolateFill()&&this.interpolateDarken()?this.strokeColor(t,e,i,n):this.fillColor(t,e,i,n)}areaColor(t,e,i,n){return this.fillColor(t,e,i,n)}layerEnter(t,e,i=250){super.layerEnter(t,e,i);const n=this;this.tooltipHTML(function(t){return"series-table"===n.tooltipStyle()?n.tooltipFormat({label:t.label,arr:n.columns().slice(1).map(function(e,i){return{label:e,color:n._palette(e),value:n.data()[t.rowIdx][i+1]}})}):n.tooltipFormat({label:t.label,series:t.column,value:t.value})})}_prevPointShape;layerUpdate(t,i,n=250){super.layerUpdate(t,i);const o="horizontal"===t.orientation(),a=o?this.height():this.width(),s=this;function r(t){switch(t){case"rectangle":return"rect";case"circle":return"circle";case"cross":return"path"}}this.tabNavigation()&&t.parentRelativeDiv?t.parentRelativeDiv.attr("tabindex","0").attr("role","group").attr("aria-label",`${this.columns()[0]||"Chart"} data`):t.parentRelativeDiv&&t.parentRelativeDiv.attr("tabindex",null).attr("role",null).attr("aria-label",null),this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id())),this._prevPointShape!==this.pointShape()&&(i.selectAll(".data").remove(),this._prevPointShape=this.pointShape()),e(r,"mapShape");let l,c,u;this.pointSizeColumn_exists()&&(l=this.columns().indexOf(this.pointSizeColumn()),c=T(this.data(),t=>t[l]),u=this.getScale().domain(c));const p=this.layerColumns(t),d=this.layerData(t),f=this.flattenData(p,d).map(function(t){return t.shape=r(s.pointShape()),t.column=p[t.colIdx],t.row=d[t.rowIdx],t.origRow=d[t.rowIdx].__hpcc_origRow,c?(t.size=u(t.row[l])*(s.maxPointSize()-s.minPointSize())+s.minPointSize(),t.column!==s.pointSizeColumn()&&t):(t.size=s.pointSize(),t)}).filter(t=>t),y=i.selectAll(".area").data(p.filter(function(t,e){return s.interpolate()&&s.interpolateFill()&&e>0})),_=y.enter().append("path"),x=zt().curve(this.curve());o?x.x(function(e){return s.xPos(t,e)}).y0(Math.min(a,this.yPos(t,{value:0}))).y1(function(e){return s.yPos(t,e)}):x.y(function(e){return s.yPos(t,e)}).x0(Math.max(0,this.xPos(t,{value:0}))).x1(function(e){return s.xPos(t,e)}),_.merge(y).attr("class",t=>"area series series-"+this.cssTag(t)).each(function(t,e){h(this).attr("d",x(f.filter(function(t){return t.colIdx===e+1}))).style("opacity",s.interpolateFillOpacity()).style("stroke","none").style("fill",s.areaColor([],t,void 0,[]))}),y.exit().remove();const m=i.selectAll(".line").data(p.filter(function(t,e){return s.interpolate()&&e>0})),g=m.enter().append("path"),b=Ct().x(function(e){return s.xPos(t,e)}).y(function(e){return s.yPos(t,e)}).curve(this.curve());g.merge(m).attr("class",t=>"line series series-"+this.cssTag(t)).each(function(t,e){const i=h(this),n=f.filter(function(t){return t.colIdx===e+1});i.attr("d",b(n)).style("stroke",s.lineColor([],t,void 0,[])).style("fill","none")}),m.exit().remove();const v=i.selectAll(".point").data(f,function(t,e){return t.shape+"_"+e});v.enter().append("g").each(function(e){const i=h(this);i.append(e.shape).attr("class","pointShape"),i.append("text").attr("class","pointValue").style("display","none").attr("text-anchor",s.valueAnchor()).attr("alignment-baseline",s.valueBaseline()).attr("fill",function(t,e){return"middle"===s.valueBaseline()||"central"===s.valueBaseline()?s.textColor(t.row,t.column,t.value,t.origRow):null}),i.append("circle").attr("class","pointSelection").on("mouseout.tooltip",s.tooltip.hide).on("mousemove.tooltip",s.tooltip.show).call(t._selection.enter.bind(t._selection)).on("click",function(e,i){s.click(t.rowToObj(t.data()[e.rowIdx]),e.column,t._selection.selected(this))}).on("dblclick",function(e,i){s.dblclick(t.rowToObj(t.data()[e.rowIdx]),e.column,t._selection.selected(this))}).on("keydown",function(e,i){if(s.tabNavigation()){const e=S();"Space"!==e.code&&"Enter"!==e.key||(e.preventDefault(),t._selection.click(this))}})}).merge(v).attr("class",t=>"point series series-"+this.cssTag(t.column)).each(function(e){h(this).select(".pointValue").attr("x",function(e){return s.xPos(t,e)}).attr("y",function(e){return s.yPos(t,e)}).style("display",s.showValue()?"block":"none").attr("text-anchor",s.valueAnchor()).attr("alignment-baseline",s.valueBaseline()).text(function(t){return t.value});h(this).select(".pointSelection").attr("cx",function(e){return s.xPos(t,e)}).attr("cy",function(e){return s.yPos(t,e)}).attr("r",e.size).attr("tabindex",s.tabNavigation()?0:null).attr("role",s.tabNavigation()?"button":null).attr("aria-label",s.tabNavigation()?t=>`${t.column||"Value"}: ${t.value} @ ${t.label}`:null);const i=h(this).select(".pointShape");switch(e.shape){case"rect":i.attr("x",function(i){return s.xPos(t,i)-e.size/2}).attr("y",function(i){return s.yPos(t,i)-e.size/2}).attr("width",e.size).attr("height",e.size).style("fill",s.pointColor(e.row,e.column,e.value,e.origRow));break;case"circle":i.attr("cx",function(e){return s.xPos(t,e)}).attr("cy",function(e){return s.yPos(t,e)}).attr("r",.9*e.size).style("fill",s.pointColor(e.row,e.column,e.value,e.origRow));break;case"path":i.attr("d",function(i){return"M"+(s.xPos(t,i)-e.size/2)+" "+(s.yPos(t,i)-e.size/2)+" L"+(s.xPos(t,i)+e.size/2)+" "+(s.yPos(t,i)+e.size/2)+" M"+(s.xPos(t,i)-e.size/2)+" "+(s.yPos(t,i)+e.size/2)+" L"+(s.xPos(t,i)+e.size/2)+" "+(s.yPos(t,i)-e.size/2)}).style("stroke",s.pointColor(e.row,e.column,e.value,e.origRow))}}),v.exit().remove()}exit(t,e){super.exit(t,e)}};e(ve,"Scatter"),i(ve,"__inputs",[{id:"label",type:"any"},{id:"values",type:"number",multi:!0}]);let we=ve;we.prototype._class+=" chart_Scatter",we.prototype.implements(n.prototype),we.prototype.implements(o.prototype),we.prototype.publish("paletteID","default","set","Color palette for this widget",we.prototype._palette.switch(),{tags:["Basic","Shared"]}),we.prototype.publish("pointSizeScale","linear","set","pointSizeScale",["linear","pow","log","sqrt"]),we.prototype.publish("pointShape","cross","set","Shape of the data points",["circle","rectangle","cross"]),we.prototype.publish("pointSize",6,"number","Point Size",null,{range:{min:1,step:1,max:200}}),we.prototype.publish("interpolate","","set","Interpolate Data",["","linear","step","step-before","step-after","basis","bundle","cardinal","catmullRom","natural","monotone"]),we.prototype.publish("pointDarken",!0,"boolean","If true, and interpolate is set, then points will have a slightly darker color than their assigned palette color",null,{disable:/* @__PURE__ */e(t=>!t.interpolate(),"disable")}),we.prototype.publish("interpolateDarken",!0,"boolean","If true, and interpolateFill is true, then lines will have a slightly darker color than their assigned palette color",null,{disable:/* @__PURE__ */e(t=>!t.interpolateFill(),"disable")}),we.prototype.publish("interpolateFill",!1,"boolean","If true, the area between the line and zero will be filled"),we.prototype.publish("interpolateFillOpacity",.66,"number","Fill interpolation Opacity",null,{range:{min:0,step:.01,max:1}}),we.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]}),we.prototype.publish("showValue",!1,"boolean"),we.prototype.publish("valueAnchor","middle","set","text-anchor for shown value text",["start","middle","end"]),we.prototype.publish("valueBaseline","ideographic","set","alignment-baseline for shown value text",["auto","baseline","before-edge","text-before-edge","middle","central","after-edge","text-after-edge","ideographic","alphabetic","hanging","mathematical","inherit"]);const Se=class _Area extends we{constructor(){super(),this.interpolate_default("linear").interpolateFill_default(!0)}};e(Se,"Area");let Ae=Se;Ae.prototype._class+=" chart_Area";const ke=class _Column extends be{_linearGap;textLocal=C();stackedTextLocal=C();isHorizontal;constructor(){super(),n.call(this),o.call(this),this._selection.skipBringToTop(!0),this._linearGap=25}layerEnter(t,e,i=250){super.layerEnter(t,e,i);const n=this;this.tooltipHTML(function(e){if("series-table"===n.tooltipStyle())return n.tooltipFormat({label:e.row[0],arr:n.columns().slice(1).map(function(t,i){return{label:t,color:n._palette(t),value:e.row[i+1]}})});{let i=e.row[e.idx];return i instanceof Array&&(i=i[1]-i[0]),n.tooltipFormat({label:e.row[0],series:n.layerColumns(t)[e.idx],value:i})}})}adjustedData(t){return this.layerData(t).map(e=>{let i=0;return e.map((e,n)=>{if(0===n)return e;if(n>=this.layerColumns(t).length)return e;const o=t.yAxisStacked()?[i,i+e]:e;return i+=e,o},this)},this)}layerUpdate(t,e,i=250){super.layerUpdate(t,e,i);const n="horizontal"===t.orientation();this.isHorizontal=n;const o=this;this.tabNavigation()&&t.parentRelativeDiv?t.parentRelativeDiv.attr("tabindex","0").attr("role","group").attr("aria-label",`${this.columns()[0]||"Chart"} data`):t.parentRelativeDiv&&t.parentRelativeDiv.attr("tabindex",null).attr("role",null).attr("aria-label",null),this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id()));const a=f(o.showValueAsPercentFormat());let s=10,r=0;switch(t.xAxisType()){case"ordinal":s=t.bandwidth(),r=-s/2;break;case"linear":case"time":s=Math.max(Math.abs(t.dataPos(2)-t.dataPos(1))*(100-this._linearGap)/100,s),r=-s/2}this.tooltip.direction(n?"n":"e");const l=x().domain(o.layerColumns(t).filter(function(t,e){return e>0})).rangeRound(n?[0,s]:[s,0]).paddingInner(Math.max(this.xAxisSeriesPaddingInner(),.05)).paddingOuter(0);let c=[];const u=[],p=this.columns().length,d=this.data();this.showValue()&&"series"===this.showValueAsPercent()&&d.forEach(t=>{t.filter((t,e)=>e>0&&e<p).forEach((t,e)=>{void 0===u[e+1]&&(u[e+1]=0),u[e+1]+=t})}),(this.showDomainTotal()||this.showValue()&&"domain"===this.showValueAsPercent())&&(c=d.map(t=>t.filter((t,e)=>e>0&&e<p).reduce((t,e)=>t+e,0)));const y=e.selectAll(".dataRow").data(this.adjustedData(t)),_=t.data(),m=this.getAxisSize(t);y.enter().append("g").attr("class","dataRow").merge(y).each(function(e,d){const y=h(this),x=y.selectAll(".dataCell").data(e.filter(function(e,i){return i<o.layerColumns(t).length}).map(function(i,n){return{column:o.layerColumns(t)[n],row:e,origRow:_[d],value:i,idx:n}}).filter(function(t){return null!==t.value&&t.idx>0}),t=>t.column),g=x.enter().append("g").attr("class","dataCell").on("mouseout.tooltip",function(t){(!o.tooltipInnerTextEllipsedOnly()||t.innerTextObj&&t.innerTextObj.isTruncated)&&o.tooltip.hide.apply(o,arguments)}).on("mousemove.tooltip",function(t){(!o.tooltipInnerTextEllipsedOnly()||t.innerTextObj&&t.innerTextObj.isTruncated)&&o.tooltip.show.apply(o,arguments)}).call(t._selection.enter.bind(t._selection)).on("click",function(e){o.click(t.rowToObj(e.origRow),e.column,t._selection.selected(this))}).on("dblclick",function(e){o.dblclick(t.rowToObj(e.origRow),e.column,t._selection.selected(this))}).on("keydown",function(e,i){if(o.tabNavigation()){const e=S();"Space"!==e.code&&"Enter"!==e.key||(e.preventDefault(),t._selection.click(this))}}).style("opacity",0).each(function(t){const e=h(this);e.append("rect").attr("class","columnRect series series-"+o.cssTag(t.column)),e.append("text").attr("class","columnRectText").style("stroke","transparent")});g.transition().duration(i).style("opacity",1);const b=t.yAxisStacked()?s:l.bandwidth();g.merge(x).attr("tabindex",o.tabNavigation()?0:null).attr("role",o.tabNavigation()?"button":null).attr("aria-label",o.tabNavigation()?t=>`${t.origRow[0]} - ${t.column}: ${t.value instanceof Array?t.value[1]-t.value[0]:t.value}`:null).each(function(s){const y=h(this),_=t.dataPos(e[0])+(t.yAxisStacked()?0:l(s.column))+r,x=s.value instanceof Array?s.value[1]:s.value;let g=s.origRow[s.idx];if(o.showValue()){const t=o.dataMeta();switch(o.showValueAsPercent()){case"series":const e=void 0!==t.sum?t.sum:u[s.idx];g=a(g/e);break;case"domain":const i=void 0!==t.sum?t.sum:c[d];g=a(g/i);break;default:g=f(o.showValueFormat())(g)}}const v=t.valuePos(x),w=t.valuePos(s.value instanceof Array?s.value[0]:0),S=Math.min(w,v),A=Math.abs(v-w),k=o.innerTextFontSize(),M=o.innerTextPadding_exists()?o.innerTextPadding():k/2.5,P=o.intersectRectRect({x:n?_:S,y:n?S:_,width:n?b:A,height:n?A:b},{x:0,y:0,width:m.width,height:m.height}),T=y.select("rect").transition().duration(i).style("fill",t=>o.fillColor(t.row,t.column,t.value,t.origRow));n?T.attr("x",_).attr("y",S).attr("width",b).attr("height",A):T.attr("y",_).attr("x",S).attr("height",b).attr("width",A);const C=y.select("text").transition().duration(i).style("font-size",k+"px").style("fill",t=>o.textColor(t.row,t.column,t.value,t.origRow));C.style("font-family",o.innerTextFontFamily_exists()?o.innerTextFontFamily():null);const F=o.innerTextPadding_exists()?o.innerTextPadding():8,I=k/2.7;if(n){const t=P.y+P.height-M;C.attr("x",_+b/2).attr("y",t+I).attr("transform",`rotate(-90, ${_+b/2}, ${t})`)}else C.attr("x",P.x+F).attr("y",_+b/2+I);C.attr("height",b).attr("width",A),o.showInnerText()&&C.text(t=>{const e=o.innerText(t.origRow,t.origRow[p],t.idx);if(e){const i=n?P.height:P.width,a=o.calcInnerText(i,e,g);return t.innerTextObj=a,a.text}return""});const E=y.selectAll(".dataText").data(o.showValue()?[`${x}`]:[]);E.enter().append("g").attr("class","dataText").each(function(t){o.textLocal.set(this,(new z).target(this).colorStroke_default("transparent"))}).merge(E).each(function(){const t={x:0,y:0},e=o.valueFontFamily(),i=o.valueFontSize(),a=o.textSize(g,e,i),r=parseFloat(g)>=0;let l=o.valueAnchor()?o.valueAnchor():n?"middle":"start";const h=P.x,c=m.width-(P.x+P.width),u=P.y,p=m.height-(P.y+P.height);let d,f,y;if(s.innerTextObj){const{padding:e,valueTextWidth:o}=s.innerTextObj;f=!1,n?(l="middle",t.x=_+b/2,4===s.innerTextObj.category?(f=!0,t.y=S-e-i/2):t.y=S+e+i/2):(l="start",4===s.innerTextObj.category?(f=!0,t.x=A+S+e):t.x=A+S-o-e,t.y=_+b/2)}else n?(d=P.height<a.height,f=!o.valueCentered()||d,t.x=P.x+P.width/2,f?r?(y=u<a.height+F,y?d?t.y=P.y+P.height+a.height:(f=!1,t.y=P.y+P.height/2):t.y=P.y-a.height/2-F):(y=p<a.height,y?d?t.y=P.y-a.height/2-F:(f=!1,t.y=P.y+P.height/2):t.y=P.y+a.height+F):t.y=P.y+P.height/2):(d=P.width<a.width,f=!o.valueCentered()||d,t.y=P.y+P.height/2,f?r?(y=c<a.width+F,y?o.showInnerText()||!d?(f=!1,t.x=P.x+P.width/2):t.x=P.x-(a.width-F):t.x=P.x+P.width+a.width/2+F):(y=h<a.width,y?o.showInnerText()||!d?(f=!1,t.x=P.x+P.width/2):t.x=P.x+P.width+(a.width-F):t.x=P.x-(a.width-F)):t.x=P.x+P.width/2);const x=f?null:o.textColor(s.row,s.column,s.value,s.origRow),v=o.columns(),w=o.yAxisStacked()&&d||f&&o.yAxisStacked()&&v.indexOf(s.column)!==v.length-1;o.textLocal.get(this).pos(t).anchor(l).fontFamily(e).fontSize(i).text(`${g}`).colorFill(x).visible(o.showValue()&&!w).render()}),E.exit().each(function(t){o.textLocal.get(this).target(null)}).remove()}),x.exit().transition().duration(i).style("opacity",0).remove();const v=t.yAxisStacked()?c[d]:Math.max(...e.filter((t,e)=>e>0&&e<p)),w=y.selectAll(".stackedTotalText").data(o.showDomainTotal()?[c[d]]:[]);w.enter().append("g").attr("class","stackedTotalText").each(function(t){o.stackedTextLocal.set(this,(new z).target(this).colorStroke_default("transparent"))}).merge(w).each(function(i){const a={x:0,y:0},s=t.dataPos(e[0]),r=t.valuePos(v),l=o.valueFontFamily(),h=o.valueFontSize(),c=o.textSize(i,l,h),u=parseFloat(i)>=0;let p="middle";n?(a.x=s,a.y=u?r-c.height/2:r+c.height/2):(p="start",a.y=s,a.x=u?r+c.width/2:r-c.width/2),o.stackedTextLocal.get(this).pos(a).anchor(p).fontFamily(l).fontSize(h).text(i).render()}),w.exit().each(function(t){o.textLocal.get(this).target(null)}).remove()}),y.exit().transition().duration(i).remove()}calcInnerText(t,e,i){const n=this.innerTextFontFamily_exists()?this.innerTextFontFamily():"Verdana",o=this.innerTextFontSize(),a=this.valueFontFamily_exists()?this.valueFontFamily():"Verdana",s=this.valueFontSize(),r=this.innerTextPadding_exists()?this.innerTextPadding():o/2.5,l=this.isHorizontal?s:this.textSize(i,a,s).width,h=e,c=3*r+this.textSize("...",n,o).width+l,u=1*r+l;let p=4;if(3*r+this.textSize(e,n,o).width+l<t)p=1;else if(c<t){const i=t-c;let a="";for(const t of e){if(this.textSize(a+t,n,o).width>i){e=a+"...";break}a+=t}p=2}else u<t?(e="",p=3):e="";return{text:e,isTruncated:h!==e,padding:r,category:p,valueTextWidth:l}}innerText(t,e,i){return t[0]}};e(ke,"Column"),i(ke,"__inputs",[{id:"label",type:"string"},{id:"values",type:"number",multi:!0}]);let Me=ke;Me.prototype._class+=" chart_Column",Me.prototype.implements(n.prototype),Me.prototype.implements(o.prototype),Me.prototype.publish("valueFontFamily",null,"string","Font family of value text",null,{optional:!0}),Me.prototype.publish("valueFontSize",12,"number","Height of value text (pixels)"),Me.prototype.publish("innerTextFontFamily",null,"string","Font family of inner text",null,{optional:!0}),Me.prototype.publish("innerTextPadding",8,"number","Offset of inner text (pixels)",null,{optional:!0}),Me.prototype.publish("innerTextFontSize",12,"number","Height of inner text (pixels)"),Me.prototype.publish("paletteID","default","set","Color palette for this widget",()=>Me.prototype._palette.switch(),{tags:["Basic","Shared"]}),Me.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]}),Me.prototype.publish("showValue",!1,"boolean","Show Value in column"),Me.prototype.publish("showInnerText",!1,"boolean","Show Label in column"),Me.prototype.publish("showValueFormat",",","string","D3 Format for Value",null,{disable:/* @__PURE__ */e(t=>!t.showValue()||!!t.showValueAsPercent(),"disable")}),Me.prototype.publish("showValueAsPercent",null,"set","If showValue is true, optionally show value as a percentage by Series or Domain",[null,"series","domain"],{disable:/* @__PURE__ */e(t=>!t.showValue(),"disable"),optional:!0}),Me.prototype.publish("showValueAsPercentFormat",".0%","string","D3 Format for %",null,{disable:/* @__PURE__ */e(t=>!t.showValue()||!t.showValueAsPercent(),"disable")}),Me.prototype.publish("showDomainTotal",!1,"boolean","Show Total Value for Stacked Columns",null),Me.prototype.publish("valueCentered",!1,"boolean","Show Value in center of column"),Me.prototype.publish("valueAnchor","middle","set","text-anchor for shown value text",["start","middle","end"]),Me.prototype.publish("xAxisSeriesPaddingInner",0,"number","Determines the ratio of the range that is reserved for blank space between band (0->1)"),Me.prototype.publish("tooltipInnerTextEllipsedOnly",!1,"boolean","Show tooltip only when inner text is truncated with an ellipsis");const Pe=class _Bar extends Me{constructor(){super(),this.orientation_default("vertical")}};e(Pe,"Bar");let Te=Pe;function Ce(t){var e=0,i=t.children,n=i&&i.length;if(n)for(;--n>=0;)e+=i[n].value;else e=1;t.value=e}function ze(){return this.eachAfter(Ce)}function Fe(t){var e,i,n,o,a=this,s=[a];do{for(e=s.reverse(),s=[];a=e.pop();)if(t(a),i=a.children)for(n=0,o=i.length;n<o;++n)s.push(i[n])}while(s.length);return this}function Ie(t){for(var e,i,n=this,o=[n];n=o.pop();)if(t(n),e=n.children)for(i=e.length-1;i>=0;--i)o.push(e[i]);return this}function Ee(t){for(var e,i,n,o=this,a=[o],s=[];o=a.pop();)if(s.push(o),e=o.children)for(i=0,n=e.length;i<n;++i)a.push(e[i]);for(;o=s.pop();)t(o);return this}function Re(t){return this.eachAfter(function(e){for(var i=+t(e.data)||0,n=e.children,o=n&&n.length;--o>=0;)i+=n[o].value;e.value=i})}function De(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function Oe(t){for(var e=this,i=je(e,t),n=[e];e!==i;)e=e.parent,n.push(e);for(var o=n.length;t!==i;)n.splice(o,0,t),t=t.parent;return n}function je(t,e){if(t===e)return t;var i=t.ancestors(),n=e.ancestors(),o=null;for(t=i.pop(),e=n.pop();t===e;)o=t,t=i.pop(),e=n.pop();return o}function Ne(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function Le(){var t=[];return this.each(function(e){t.push(e)}),t}function Be(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function $e(){var t=this,e=[];return t.each(function(i){i!==t&&e.push({source:i.parent,target:i})}),e}function He(t,e){var i,n,o,a,s,r=new Xe(t),l=+t.value&&(r.value=t.value),h=[r];for(null==e&&(e=qe);i=h.pop();)if(l&&(i.value=+i.data.value),(o=e(i.data))&&(s=o.length))for(i.children=new Array(s),a=s-1;a>=0;--a)h.push(n=i.children[a]=new Xe(o[a])),n.parent=i,n.depth=i.depth+1;return r.eachBefore(Ge)}function Ve(){return He(this).eachBefore(We)}function qe(t){return t.children}function We(t){t.data=t.data.data}function Ge(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Xe(t){this.data=t,this.depth=this.height=0,this.parent=null}Te.prototype._class+=" chart_Bar",e(Ce,"count"),e(ze,"node_count"),e(Fe,"node_each"),e(Ie,"node_eachBefore"),e(Ee,"node_eachAfter"),e(Re,"node_sum"),e(De,"node_sort"),e(Oe,"node_path"),e(je,"leastCommonAncestor"),e(Ne,"node_ancestors"),e(Le,"node_descendants"),e(Be,"node_leaves"),e($e,"node_links"),e(He,"hierarchy"),e(Ve,"node_copy"),e(qe,"defaultChildren"),e(We,"copyData"),e(Ge,"computeHeight"),e(Xe,"Node$1"),Xe.prototype=He.prototype={constructor:Xe,count:ze,each:Fe,eachAfter:Ee,eachBefore:Ie,sum:Re,sort:De,path:Oe,ancestors:Ne,descendants:Le,leaves:Be,links:$e,copy:Ve};var Ye=Array.prototype.slice;function Ue(t){for(var e,i,n=t.length;n;)i=Math.random()*n--|0,e=t[n],t[n]=t[i],t[i]=e;return t}function Qe(t){for(var e,i,n=0,o=(t=Ue(Ye.call(t))).length,a=[];n<o;)e=t[n],i&&Ke(i,e)?++n:(i=ei(a=Ze(a,e)),n=0);return i}function Ze(t,e){var i,n;if(ti(e,t))return[e];for(i=0;i<t.length;++i)if(Je(e,t[i])&&ti(ni(t[i],e),t))return[t[i],e];for(i=0;i<t.length-1;++i)for(n=i+1;n<t.length;++n)if(Je(ni(t[i],t[n]),e)&&Je(ni(t[i],e),t[n])&&Je(ni(t[n],e),t[i])&&ti(oi(t[i],t[n],e),t))return[t[i],t[n],e];throw new Error}function Je(t,e){var i=t.r-e.r,n=e.x-t.x,o=e.y-t.y;return i<0||i*i<n*n+o*o}function Ke(t,e){var i=t.r-e.r+1e-6,n=e.x-t.x,o=e.y-t.y;return i>0&&i*i>n*n+o*o}function ti(t,e){for(var i=0;i<e.length;++i)if(!Ke(t,e[i]))return!1;return!0}function ei(t){switch(t.length){case 1:return ii(t[0]);case 2:return ni(t[0],t[1]);case 3:return oi(t[0],t[1],t[2])}}function ii(t){return{x:t.x,y:t.y,r:t.r}}function ni(t,e){var i=t.x,n=t.y,o=t.r,a=e.x,s=e.y,r=e.r,l=a-i,h=s-n,c=r-o,u=Math.sqrt(l*l+h*h);return{x:(i+a+l/u*c)/2,y:(n+s+h/u*c)/2,r:(u+o+r)/2}}function oi(t,e,i){var n=t.x,o=t.y,a=t.r,s=e.x,r=e.y,l=e.r,h=i.x,c=i.y,u=i.r,p=n-s,d=n-h,f=o-r,y=o-c,_=l-a,x=u-a,m=n*n+o*o-a*a,g=m-s*s-r*r+l*l,b=m-h*h-c*c+u*u,v=d*f-p*y,w=(f*b-y*g)/(2*v)-n,S=(y*_-f*x)/v,A=(d*g-p*b)/(2*v)-o,k=(p*x-d*_)/v,M=S*S+k*k-1,P=2*(a+w*S+A*k),T=w*w+A*A-a*a,C=-(M?(P+Math.sqrt(P*P-4*M*T))/(2*M):T/P);return{x:n+w+S*C,y:o+A+k*C,r:C}}function ai(t,e,i){var n,o,a,s,r=t.x-e.x,l=t.y-e.y,h=r*r+l*l;h?(o=e.r+i.r,o*=o,s=t.r+i.r,o>(s*=s)?(n=(h+s-o)/(2*h),a=Math.sqrt(Math.max(0,s/h-n*n)),i.x=t.x-n*r-a*l,i.y=t.y-n*l+a*r):(n=(h+o-s)/(2*h),a=Math.sqrt(Math.max(0,o/h-n*n)),i.x=e.x+n*r-a*l,i.y=e.y+n*l+a*r)):(i.x=e.x+i.r,i.y=e.y)}function si(t,e){var i=t.r+e.r-1e-6,n=e.x-t.x,o=e.y-t.y;return i>0&&i*i>n*n+o*o}function ri(t){var e=t._,i=t.next._,n=e.r+i.r,o=(e.x*i.r+i.x*e.r)/n,a=(e.y*i.r+i.y*e.r)/n;return o*o+a*a}function li(t){this._=t,this.next=null,this.previous=null}function hi(t){if(!(o=t.length))return 0;var e,i,n,o,a,s,r,l,h,c,u;if((e=t[0]).x=0,e.y=0,!(o>1))return e.r;if(i=t[1],e.x=-i.r,i.x=e.r,i.y=0,!(o>2))return e.r+i.r;ai(i,e,n=t[2]),e=new li(e),i=new li(i),n=new li(n),e.next=n.previous=i,i.next=e.previous=n,n.next=i.previous=e;t:for(r=3;r<o;++r){ai(e._,i._,n=t[r]),n=new li(n),l=i.next,h=e.previous,c=i._.r,u=e._.r;do{if(c<=u){if(si(l._,n._)){i=l,e.next=i,i.previous=e,--r;continue t}c+=l._.r,l=l.next}else{if(si(h._,n._)){(e=h).next=i,i.previous=e,--r;continue t}u+=h._.r,h=h.previous}}while(l!==h.next);for(n.previous=e,n.next=i,e.next=i.previous=i=n,a=ri(e);(n=n.next)!==i;)(s=ri(n))<a&&(e=n,a=s);i=e.next}for(e=[i._],n=i;(n=n.next)!==i;)e.push(n._);for(n=Qe(e),r=0;r<o;++r)(e=t[r]).x-=n.x,e.y-=n.y;return n.r}function ci(t){return null==t?null:ui(t)}function ui(t){if("function"!=typeof t)throw new Error;return t}function pi(){return 0}function di(t){return function(){return t}}function fi(t){return Math.sqrt(t.value)}function yi(){var t=null,i=1,n=1,o=pi;function a(e){return e.x=i/2,e.y=n/2,t?e.eachBefore(_i(t)).eachAfter(xi(o,.5)).eachBefore(mi(1)):e.eachBefore(_i(fi)).eachAfter(xi(pi,1)).eachAfter(xi(o,e.r/Math.min(i,n))).eachBefore(mi(Math.min(i,n)/(2*e.r))),e}return e(a,"pack"),a.radius=function(e){return arguments.length?(t=ci(e),a):t},a.size=function(t){return arguments.length?(i=+t[0],n=+t[1],a):[i,n]},a.padding=function(t){return arguments.length?(o="function"==typeof t?t:di(+t),a):o},a}function _i(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function xi(t,e){return function(i){if(n=i.children){var n,o,a,s=n.length,r=t(i)*e||0;if(r)for(o=0;o<s;++o)n[o].r+=r;if(a=hi(n),r)for(o=0;o<s;++o)n[o].r-=r;i.r=a+r}}}function mi(t){return function(e){var i=e.parent;e.r*=t,i&&(e.x=i.x+t*e.x,e.y=i.y+t*e.y)}}e(Ue,"shuffle"),e(Qe,"enclose"),e(Ze,"extendBasis"),e(Je,"enclosesNot"),e(Ke,"enclosesWeak"),e(ti,"enclosesWeakAll"),e(ei,"encloseBasis"),e(ii,"encloseBasis1"),e(ni,"encloseBasis2"),e(oi,"encloseBasis3"),e(ai,"place"),e(si,"intersects"),e(ri,"score"),e(li,"Node"),e(hi,"packEnclose"),e(ci,"optional"),e(ui,"required"),e(pi,"constantZero"),e(di,"constant$2"),e(fi,"defaultRadius"),e(yi,"d3Pack"),e(_i,"radiusLeaf"),e(xi,"packChildren"),e(mi,"translateChild");const gi=class _Bubble extends l{labelWidgets;d3Pack;constructor(){super(),a.call(this),o.call(this),m.SimpleSelectionMixin.call(this),this._drawStartPos="origin",this.labelWidgets={},this.d3Pack=yi().size([this.width(),this.height()]).padding(1.5)}size(t){const e=super.size.apply(this,arguments);return arguments.length&&this.d3Pack.size([this.width(),this.height()]),e}enter(t,e){super.enter(t,e),this._selection.widgetElement(e);const i=this;this.tooltipHTML(function(t){return"series-table"===i.tooltipStyle()?i.tooltipFormat({label:t[0],arr:i.columns().slice(1).map(function(e,n){return{label:e,color:i._palette(t[0]),value:t[1]}})}):i.tooltipFormat({label:t.data[0],value:t.data[1]})})}update(t,e){super.update(t,e);const i=this;this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id()));const n=He({children:this.cloneData()}).sum(function(t){return t[1]}).sort(function(t,e){return e[1]<t[1]?-1:e[1]>t[1]?1:0});this.d3Pack(n);const o=e.selectAll(".node").data(n.children||[],t=>t.data[0]);o.enter().append("g").attr("class",(t,e)=>"node series series-"+this.cssTag(t.data[0])).attr("opacity",0).call(this._selection.enter.bind(this._selection)).on("click",function(t){i.click(i.rowToObj(t.data),i.columns()[1],i._selection.selected(this))}).on("dblclick",function(t){i.dblclick(i.rowToObj(t.data),i.columns()[1],i._selection.selected(this))}).each(function(t){const e=h(this),n=t.x,o=t.y;e.append("circle").attr("transform","translate("+n+","+o+")").attr("r",0).on("mouseout.tooltip",i.tooltip.hide).on("mousemove.tooltip",i.tooltip.show),t.__viz_faChar?i.labelWidgets[t.data[0]]=(new F).char(t.__viz_faChar).target(this).render():i.labelWidgets[t.data[0]]=(new z).text(t.data[0]).target(this).render()}).merge(o).transition().attr("opacity",1).each(function(t){const e=h(this),n={x:t.x,y:t.y};e.select("circle").transition().attr("transform","translate("+n.x+","+n.y+")").style("fill",i.fillColor(t.data,i.columns()[1],t.data[1])).attr("r",t.r).select("title").text(t.data[0]+" ("+t.data[1]+")"),t.__viz_faChar?i.labelWidgets[t.data[0]].pos(n).render():i.labelWidgets[t.data[0]].pos(n).colorFill_default(i.textColor(t.data,i.columns()[1],t.data[1])).width(2*t.r).text(t.data[0]).render()}),o.exit().transition().style("opacity",0).remove()}exit(t,e){super.exit(t,e)}};e(gi,"Bubble"),i(gi,"__inputs",[{id:"label",type:"string"},{id:"value",type:"number"}]);let bi=gi;bi.prototype._class+=" chart_Bubble",bi.prototype.implements(a.prototype),bi.prototype.implements(o.prototype),bi.prototype.mixin(m.SimpleSelectionMixin),bi.prototype.publish("paletteID","default","set","Color palette for this widget",bi.prototype._palette.switch(),{tags:["Basic","Shared"]}),bi.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]});const vi=class _BubbleXY extends we{constructor(){super()}enter(t,e){this.pointSizeColumn_exists()||this.pointSizeColumn(this.columns()[this.columns().length-1]),super.enter(t,e)}};e(vi,"BubbleXY");let wi=vi;wi.prototype._class+=" chart_BubbleXY";var Si,Ai,ki=0,Mi=0,Pi=0,Ti=0,Ci=0,zi=0,Fi="object"==typeof performance&&performance.now?performance:Date,Ii="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ei(){return Ci||(Ii(Ri),Ci=Fi.now()+zi)}function Ri(){Ci=0}function Di(){this._call=this._time=this._next=null}function Oi(){Ei(),++ki;for(var t,e=Si;e;)(t=Ci-e._time)>=0&&e._call.call(null,t),e=e._next;--ki}function ji(){Ci=(Ti=Fi.now())+zi,ki=Mi=0;try{Oi()}finally{ki=0,Li(),Ci=0}}function Ni(){var t=Fi.now(),e=t-Ti;e>1e3&&(zi-=e,Ti=t)}function Li(){for(var t,e,i=Si,n=1/0;i;)i._call?(n>i._time&&(n=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:Si=e);Ai=t,Bi(n)}function Bi(t){ki||(Mi&&(Mi=clearTimeout(Mi)),t-Ci>24?(t<1/0&&(Mi=setTimeout(ji,t-Fi.now()-zi)),Pi&&(Pi=clearInterval(Pi))):(Pi||(Ti=Fi.now(),Pi=setInterval(Ni,1e3)),ki=1,Ii(ji)))}function $i(){var t="left",i=!1,n=!1,o=Hi,a=Vi,s=qi,r=380,l=30,c=_e();function u(t){t.each(function(t,e){var u,p,d=o.call(this,t,e).slice().sort(I),f=a.call(this,t,e).slice().sort(I),y=s.call(this,t,e).slice().sort(I),x=h(this),m=x.select("g.wrap");m.empty()&&(m=x.append("g").attr("class","wrap")),n?(u=l,p=r,m.attr("transform","rotate(90)translate(0,"+-r+")")):(u=r,p=l,m.attr("transform",null));var g=_().domain([0,Math.max(d[0],f[0],y[0])]).range(i?[u,0]:[0,u]),b=this.__chart__||_().domain([0,1/0]).range(g.range());this.__chart__=g;var v=Wi(b),w=Wi(g),S=m.selectAll("rect.range").data(d);S.enter().append("rect").attr("class",function(t,e){return"range s"+e}).attr("width",v).attr("height",p).attr("x",i?b:0).merge(S).transition(S).attr("x",i?g:0).attr("width",w).attr("height",p);var A=m.selectAll("rect.measure").data(y);A.enter().append("rect").attr("class",function(t,e){return"measure s"+e}).attr("width",v).attr("height",p/3).attr("x",i?b:0).attr("y",p/3).merge(A).transition(A).attr("width",w).attr("height",p/3).attr("x",i?g:0).attr("y",p/3);var k=m.selectAll("line.marker").data(f);k.enter().append("line").attr("class","marker").attr("x1",b).attr("x2",b).attr("y1",p/6).attr("y2",5*p/6).merge(k).transition(k).attr("x1",g).attr("x2",g).attr("y1",p/6).attr("y2",5*p/6);var M=x.selectAll("g.axis").data([0]);M.enter().append("g").attr("class","axis"),M.attr("transform",n?null:"translate(0,"+p+")").call(c.scale(g))}),Oi()}return e(u,"bulvar"),u.orient=function(e){return arguments.length?(i="right"===(t=e+"")||"bottom"===t,c.orient((n="top"===t||"bottom"===t)?"left":"bottom"),u):t},u.ranges=function(t){return arguments.length?(o=t,u):o},u.markers=function(t){return arguments.length?(a=t,u):a},u.measures=function(t){return arguments.length?(s=t,u):s},u.width=function(t){return arguments.length?(r=+t,u):r},u.height=function(t){return arguments.length?(l=+t,u):l},u.tickFormat=function(t){return arguments.length?(c.tickFormat(t),u):c.tickFormat()},u}function Hi(t){return t.ranges}function Vi(t){return t.markers}function qi(t){return t.measures}function Wi(t){var e=t(0);return function(i){return Math.abs(t(i)-e)}}e(Ei,"now"),e(Ri,"clearNow"),e(Di,"Timer"),Di.prototype={constructor:Di,restart:/* @__PURE__ */e(function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?Ei():+i)+(null==e?0:+e),this._next||Ai===this||(Ai?Ai._next=this:Si=this,Ai=this),this._call=t,this._time=i,Bi()},"restart"),stop:/* @__PURE__ */e(function(){this._call&&(this._call=null,this._time=1/0,Bi())},"stop")},e(Oi,"timerFlush"),e(ji,"wake"),e(Ni,"poke"),e(Li,"nap"),e(Bi,"sleep"),e($i,"d3Bullet"),e(Hi,"bulvarRanges"),e(Vi,"bulvarMarkers"),e(qi,"bulvarMeasures"),e(Wi,"bulvarWidth");const Gi=class _Bullet extends E{_hiddenColumns={};constructor(){super(),m.SimpleSelectionMixin.call(this,!0)}bulletData(){const t=this;this._hiddenColumns={};const e=this.columns();return this.data().map(function(t){return{title:i(t,this.titleColumn()),subtitle:i(t,this.subtitleColumn()),ranges:i(t,this.rangesColumn(),"range"),measures:i(t,this.measuresColumn(),"measure"),markers:i(t,this.markersColumn(),"marker"),origRow:t}},this);function i(i,n,o){const a=e.indexOf(n);return a>=0?i[a]instanceof Array?i[a]:[i[a]]:(o&&(t._hiddenColumns[o]=!0),[0])}}enter(t,e){super.enter(t,e),h(t.parentNode).style("overflow","auto"),this._selection.widgetElement(e)}update(t,e){super.update(t,e);const i=this;e.selectAll(".axis").style("display","none"),e.selectAll(".range,.measure,.marker").style("display",null);const n=2,o=8,a=2,s=8,r=this.width()-n-a,l=40-o-s,c=e.selectAll("svg").data(this.bulletData()),u=c.enter().append("svg").attr("class","bullet").call(this._selection.enter.bind(this._selection)).on("click",function(t){i.click(i.rowToObj(t.origRow),i.titleColumn(),i._selection.selected(this))}).on("dblclick",function(t){i.dblclick(i.rowToObj(t.origRow),i.titleColumn(),i._selection.selected(this))}).each(function(){const t=h(this).append("g").attr("class",(t,e)=>"bulletBar series series-"+i.cssTag(i.titleColumn())).append("g").attr("class","bulletTitle");t.append("text").attr("class","title"),t.append("text").attr("class","subtitle").attr("dy","1em")}).merge(c),p=u.select(".bulletTitle").style("text-anchor","end").attr("transform","translate(-6,"+l/2+")");p.select(".title").text(function(t){return t.title}),p.select(".subtitle").text(function(t){return t.subtitle});let d=0;p.each(function(){const t=this.getBBox();t.width>d&&(d=t.width)});const f=$i().width(r-d-6).height(l);u.attr("width",r).attr("height",l+o+s).style("margin-left",`${n}px`),u.select(".bulletBar").attr("transform","translate("+(d+6)+","+o+")").call(f),c.exit().remove(),Object.keys(this._hiddenColumns).length>0&&e.selectAll(`.${Object.keys(this._hiddenColumns).join(",.")}`).style("display","none")}exit(t,e){super.exit(t,e)}click(t,e,i){}dblclick(t,e,i){}_selection};e(Gi,"Bullet");let Xi=Gi;Xi.prototype._class+=" chart_Bullet",Xi.prototype.publish("titleColumn",null,"set","Title Column",function(){return this.columns()},{optional:!0}),Xi.prototype.publish("subtitleColumn",null,"set","Subtitle Column",function(){return this.columns()},{optional:!0}),Xi.prototype.publish("rangesColumn",null,"set","Ranges Column",function(){return this.columns()},{optional:!0}),Xi.prototype.publish("measuresColumn",null,"set","Measures Column",function(){return this.columns()},{optional:!0}),Xi.prototype.publish("markersColumn",null,"set","Markers Column",function(){return this.columns()},{optional:!0});var Yi=Array.prototype.slice;function Ui(t,e){return t-e}function Qi(t){for(var e=0,i=t.length,n=t[i-1][1]*t[0][0]-t[i-1][0]*t[0][1];++e<i;)n+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return n}function Zi(t){return function(){return t}}function Ji(t,e){for(var i,n=-1,o=e.length;++n<o;)if(i=Ki(t,e[n]))return i;return 0}function Ki(t,e){for(var i=e[0],n=e[1],o=-1,a=0,s=t.length,r=s-1;a<s;r=a++){var l=t[a],h=l[0],c=l[1],u=t[r],p=u[0],d=u[1];if(tn(l,u,e))return 0;c>n!=d>n&&i<(p-h)*(n-c)/(d-c)+h&&(o=-o)}return o}function tn(t,e,i){var n;return en(t,e,i)&&nn(t[n=+(t[0]===e[0])],i[n],e[n])}function en(t,e,i){return(e[0]-t[0])*(i[1]-t[1])===(i[0]-t[0])*(e[1]-t[1])}function nn(t,e,i){return t<=e&&e<=i||i<=e&&e<=t}function on(){}e(Ui,"ascending"),e(Qi,"area"),e(Zi,"constant$1"),e(Ji,"contains"),e(Ki,"ringContains"),e(tn,"segmentContains"),e(en,"collinear"),e(nn,"within"),e(on,"noop$2");var an=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function sn(){var t=1,i=1,n=R,o=h;function a(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(Ui);else{var i=T(t),o=i[0],a=i[1];e=D(o,a,e),e=O(Math.floor(o/e)*e,Math.floor(a/e)*e,e)}return e.map(function(e){return s(t,e)})}function s(t,e){var i=[],n=[];return r(t,e,function(a){o(a,t,e),Qi(a)>0?i.push([a]):n.push(a)}),n.forEach(function(t){for(var e,n=0,o=i.length;n<o;++n)if(-1!==Ji((e=i[n])[0],t))return void e.push(t)}),{type:"MultiPolygon",value:e,coordinates:i}}function r(n,o,a){var s,r,h,c,u,p,d=new Array,f=new Array;for(s=r=-1,c=n[0]>=o,an[c<<1].forEach(y);++s<t-1;)h=c,c=n[s+1]>=o,an[h|c<<1].forEach(y);for(an[c|0].forEach(y);++r<i-1;){for(s=-1,c=n[r*t+t]>=o,u=n[r*t]>=o,an[c<<1|u<<2].forEach(y);++s<t-1;)h=c,c=n[r*t+t+s+1]>=o,p=u,u=n[r*t+s+1]>=o,an[h|c<<1|u<<2|p<<3].forEach(y);an[c|u<<3].forEach(y)}for(s=-1,u=n[r*t]>=o,an[u<<2].forEach(y);++s<t-1;)p=u,u=n[r*t+s+1]>=o,an[u<<2|p<<3].forEach(y);function y(t){var e,i,n=[t[0][0]+s,t[0][1]+r],o=[t[1][0]+s,t[1][1]+r],h=l(n),c=l(o);(e=f[h])?(i=d[c])?(delete f[e.end],delete d[i.start],e===i?(e.ring.push(o),a(e.ring)):d[e.start]=f[i.end]={start:e.start,end:i.end,ring:e.ring.concat(i.ring)}):(delete f[e.end],e.ring.push(o),f[e.end=c]=e):(e=d[c])?(i=f[h])?(delete d[e.start],delete f[i.end],e===i?(e.ring.push(o),a(e.ring)):d[i.start]=f[e.end]={start:i.start,end:e.end,ring:i.ring.concat(e.ring)}):(delete d[e.start],e.ring.unshift(n),d[e.start=h]=e):d[h]=f[c]={start:h,end:c,ring:[n,o]}}an[u<<3].forEach(y),e(y,"stitch")}function l(e){return 2*e[0]+e[1]*(t+1)*4}function h(e,n,o){e.forEach(function(e){var a,s=e[0],r=e[1],l=0|s,h=0|r,c=n[h*t+l];s>0&&s<t&&l===s&&(a=n[h*t+l-1],e[0]=s+(o-a)/(c-a)-.5),r>0&&r<i&&h===r&&(a=n[(h-1)*t+l],e[1]=r+(o-a)/(c-a)-.5)})}return e(a,"contours"),e(s,"contour"),e(r,"isorings"),e(l,"index"),e(h,"smoothLinear"),a.contour=s,a.size=function(e){if(!arguments.length)return[t,i];var n=Math.ceil(e[0]),o=Math.ceil(e[1]);if(!(n>0&&o>0))throw new Error("invalid size");return t=n,i=o,a},a.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?Zi(Yi.call(t)):Zi(t),a):n},a.smooth=function(t){return arguments.length?(o=t?h:on,a):o===h},a}function rn(t,e,i){for(var n=t.width,o=t.height,a=1+(i<<1),s=0;s<o;++s)for(var r=0,l=0;r<n+i;++r)r<n&&(l+=t.data[r+s*n]),r>=i&&(r>=a&&(l-=t.data[r-a+s*n]),e.data[r-i+s*n]=l/Math.min(r+1,n-1+a-r,a))}function ln(t,e,i){for(var n=t.width,o=t.height,a=1+(i<<1),s=0;s<n;++s)for(var r=0,l=0;r<o+i;++r)r<o&&(l+=t.data[s+r*n]),r>=i&&(r>=a&&(l-=t.data[s+(r-a)*n]),e.data[s+(r-i)*n]=l/Math.min(r+1,o-1+a-r,a))}function hn(t){return t[0]}function cn(t){return t[1]}function un(){return 1}function pn(){var t=hn,i=cn,n=un,o=960,a=500,s=20,r=2,l=3*s,h=o+2*l>>r,c=a+2*l>>r,u=Zi(20);function p(e){var o=new Float32Array(h*c),a=new Float32Array(h*c);e.forEach(function(e,a,s){var u=+t(e,a,s)+l>>r,p=+i(e,a,s)+l>>r,d=+n(e,a,s);u>=0&&u<h&&p>=0&&p<c&&(o[u+p*h]+=d)}),rn({width:h,height:c,data:o},{data:a},s>>r),ln({width:h,height:c,data:a},{data:o},s>>r),rn({width:h,height:c,data:o},{data:a},s>>r),ln({width:h,height:c,data:a},{data:o},s>>r),rn({width:h,height:c,data:o},{data:a},s>>r),ln({width:h,height:c,data:a},{data:o},s>>r);var p=u(o);if(!Array.isArray(p)){var f=M(o);p=D(0,f,p),(p=O(0,Math.floor(f/p)*p,p)).shift()}return sn().thresholds(p).size([h,c])(o).map(d)}function d(t){return t.value*=Math.pow(2,-2*r),t.coordinates.forEach(f),t}function f(t){t.forEach(y)}function y(t){t.forEach(_)}function _(t){t[0]=t[0]*Math.pow(2,r)-l,t[1]=t[1]*Math.pow(2,r)-l}function x(){return h=o+2*(l=3*s)>>r,c=a+2*l>>r,p}return e(p,"density"),e(d,"transform"),e(f,"transformPolygon"),e(y,"transformRing"),e(_,"transformPoint"),e(x,"resize"),p.x=function(e){return arguments.length?(t="function"==typeof e?e:Zi(+e),p):t},p.y=function(t){return arguments.length?(i="function"==typeof t?t:Zi(+t),p):i},p.weight=function(t){return arguments.length?(n="function"==typeof t?t:Zi(+t),p):n},p.size=function(t){if(!arguments.length)return[o,a];var e=Math.ceil(t[0]),i=Math.ceil(t[1]);if(!(e>=0||e>=0))throw new Error("invalid size");return o=e,a=i,x()},p.cellSize=function(t){if(!arguments.length)return 1<<r;if(!((t=+t)>=1))throw new Error("invalid cell size");return r=Math.floor(Math.log(t)/Math.LN2),x()},p.thresholds=function(t){return arguments.length?(u="function"==typeof t?t:Array.isArray(t)?Zi(Yi.call(t)):Zi(t),p):u},p.bandwidth=function(t){if(!arguments.length)return Math.sqrt(s*(s+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return s=Math.round((Math.sqrt(4*t*t+1)-1)/2),x()},p}function dn(){return new fn}function fn(){this.reset()}e(sn,"contours"),e(rn,"blurX"),e(ln,"blurY"),e(hn,"defaultX"),e(cn,"defaultY"),e(un,"defaultWeight"),e(pn,"d3ContourDensity"),e(dn,"adder"),e(fn,"Adder"),fn.prototype={constructor:fn,reset:/* @__PURE__ */e(function(){this.s=this.t=0},"reset"),add:/* @__PURE__ */e(function(t){_n(yn,t,this.t),_n(this,yn.s,this.s),this.s?this.t+=yn.t:this.s=yn.t},"add"),valueOf:/* @__PURE__ */e(function(){return this.s},"valueOf")};var yn=new fn;function _n(t,e,i){var n=t.s=e+i,o=n-e,a=n-o;t.t=e-a+(i-o)}e(_n,"add");var xn=2*Math.PI,mn=Math.abs,gn=Math.sqrt;function bn(){}function vn(t,e){t&&Sn.hasOwnProperty(t.type)&&Sn[t.type](t,e)}e(bn,"noop$1"),e(vn,"streamGeometry");var wn={Feature:/* @__PURE__ */e(function(t,e){vn(t.geometry,e)},"Feature"),FeatureCollection:/* @__PURE__ */e(function(t,e){for(var i=t.features,n=-1,o=i.length;++n<o;)vn(i[n].geometry,e)},"FeatureCollection")},Sn={Sphere:/* @__PURE__ */e(function(t,e){e.sphere()},"Sphere"),Point:/* @__PURE__ */e(function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},"Point"),MultiPoint:/* @__PURE__ */e(function(t,e){for(var i=t.coordinates,n=-1,o=i.length;++n<o;)t=i[n],e.point(t[0],t[1],t[2])},"MultiPoint"),LineString:/* @__PURE__ */e(function(t,e){An(t.coordinates,e,0)},"LineString"),MultiLineString:/* @__PURE__ */e(function(t,e){for(var i=t.coordinates,n=-1,o=i.length;++n<o;)An(i[n],e,0)},"MultiLineString"),Polygon:/* @__PURE__ */e(function(t,e){kn(t.coordinates,e)},"Polygon"),MultiPolygon:/* @__PURE__ */e(function(t,e){for(var i=t.coordinates,n=-1,o=i.length;++n<o;)kn(i[n],e)},"MultiPolygon"),GeometryCollection:/* @__PURE__ */e(function(t,e){for(var i=t.geometries,n=-1,o=i.length;++n<o;)vn(i[n],e)},"GeometryCollection")};function An(t,e,i){var n,o=-1,a=t.length-i;for(e.lineStart();++o<a;)n=t[o],e.point(n[0],n[1],n[2]);e.lineEnd()}function kn(t,e){var i=-1,n=t.length;for(e.polygonStart();++i<n;)An(t[i],e,1);e.polygonEnd()}function Mn(t,e){t&&wn.hasOwnProperty(t.type)?wn[t.type](t,e):vn(t,e)}function Pn(t){return t}e(An,"streamLine"),e(kn,"streamPolygon"),e(Mn,"geoStream"),e(Pn,"identity");var Tn,Cn,zn,Fn,In=dn(),En=dn(),Rn={point:bn,lineStart:bn,lineEnd:bn,polygonStart:/* @__PURE__ */e(function(){Rn.lineStart=Dn,Rn.lineEnd=Nn},"polygonStart"),polygonEnd:/* @__PURE__ */e(function(){Rn.lineStart=Rn.lineEnd=Rn.point=bn,In.add(mn(En)),En.reset()},"polygonEnd"),result:/* @__PURE__ */e(function(){var t=In/2;return In.reset(),t},"result")};function Dn(){Rn.point=On}function On(t,e){Rn.point=jn,Tn=zn=t,Cn=Fn=e}function jn(t,e){En.add(Fn*t-zn*e),zn=t,Fn=e}function Nn(){jn(Tn,Cn)}e(Dn,"areaRingStart"),e(On,"areaPointFirst"),e(jn,"areaPoint"),e(Nn,"areaRingEnd");var Ln=1/0,Bn=Ln,$n=-Ln,Hn=$n,Vn={point:qn,lineStart:bn,lineEnd:bn,polygonStart:bn,polygonEnd:bn,result:/* @__PURE__ */e(function(){var t=[[Ln,Bn],[$n,Hn]];return $n=Hn=-(Bn=Ln=1/0),t},"result")};function qn(t,e){t<Ln&&(Ln=t),t>$n&&($n=t),e<Bn&&(Bn=e),e>Hn&&(Hn=e)}e(qn,"boundsPoint");var Wn,Gn,Xn,Yn,Un=0,Qn=0,Zn=0,Jn=0,Kn=0,to=0,eo=0,io=0,no=0,oo={point:ao,lineStart:so,lineEnd:ho,polygonStart:/* @__PURE__ */e(function(){oo.lineStart=co,oo.lineEnd=uo},"polygonStart"),polygonEnd:/* @__PURE__ */e(function(){oo.point=ao,oo.lineStart=so,oo.lineEnd=ho},"polygonEnd"),result:/* @__PURE__ */e(function(){var t=no?[eo/no,io/no]:to?[Jn/to,Kn/to]:Zn?[Un/Zn,Qn/Zn]:[NaN,NaN];return Un=Qn=Zn=Jn=Kn=to=eo=io=no=0,t},"result")};function ao(t,e){Un+=t,Qn+=e,++Zn}function so(){oo.point=ro}function ro(t,e){oo.point=lo,ao(Xn=t,Yn=e)}function lo(t,e){var i=t-Xn,n=e-Yn,o=gn(i*i+n*n);Jn+=o*(Xn+t)/2,Kn+=o*(Yn+e)/2,to+=o,ao(Xn=t,Yn=e)}function ho(){oo.point=ao}function co(){oo.point=po}function uo(){fo(Wn,Gn)}function po(t,e){oo.point=fo,ao(Wn=Xn=t,Gn=Yn=e)}function fo(t,e){var i=t-Xn,n=e-Yn,o=gn(i*i+n*n);Jn+=o*(Xn+t)/2,Kn+=o*(Yn+e)/2,to+=o,eo+=(o=Yn*t-Xn*e)*(Xn+t),io+=o*(Yn+e),no+=3*o,ao(Xn=t,Yn=e)}function yo(t){this._context=t}e(ao,"centroidPoint"),e(so,"centroidLineStart"),e(ro,"centroidPointFirstLine"),e(lo,"centroidPointLine"),e(ho,"centroidLineEnd"),e(co,"centroidRingStart"),e(uo,"centroidRingEnd"),e(po,"centroidPointFirstRing"),e(fo,"centroidPointRing"),e(yo,"PathContext"),yo.prototype={_radius:4.5,pointRadius:/* @__PURE__ */e(function(t){return this._radius=t,this},"pointRadius"),polygonStart:/* @__PURE__ */e(function(){this._line=0},"polygonStart"),polygonEnd:/* @__PURE__ */e(function(){this._line=NaN},"polygonEnd"),lineStart:/* @__PURE__ */e(function(){this._point=0},"lineStart"),lineEnd:/* @__PURE__ */e(function(){0===this._line&&this._context.closePath(),this._point=NaN},"lineEnd"),point:/* @__PURE__ */e(function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,xn)}},"point"),result:bn};var _o,xo,mo,go,bo,vo=dn(),wo={point:bn,lineStart:/* @__PURE__ */e(function(){wo.point=So},"lineStart"),lineEnd:/* @__PURE__ */e(function(){_o&&Ao(xo,mo),wo.point=bn},"lineEnd"),polygonStart:/* @__PURE__ */e(function(){_o=!0},"polygonStart"),polygonEnd:/* @__PURE__ */e(function(){_o=null},"polygonEnd"),result:/* @__PURE__ */e(function(){var t=+vo;return vo.reset(),t},"result")};function So(t,e){wo.point=Ao,xo=go=t,mo=bo=e}function Ao(t,e){go-=t,bo-=e,vo.add(gn(go*go+bo*bo)),go=t,bo=e}function ko(){this._string=[]}function Mo(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Po(t,i){var n,o,a=4.5;function s(t){return t&&("function"==typeof a&&o.pointRadius(+a.apply(this,arguments)),Mn(t,n(o))),o.result()}return e(s,"path"),s.area=function(t){return Mn(t,n(Rn)),Rn.result()},s.measure=function(t){return Mn(t,n(wo)),wo.result()},s.bounds=function(t){return Mn(t,n(Vn)),Vn.result()},s.centroid=function(t){return Mn(t,n(oo)),oo.result()},s.projection=function(e){return arguments.length?(n=null==e?(t=null,Pn):(t=e).stream,s):t},s.context=function(t){return arguments.length?(o=null==t?(i=null,new ko):new yo(i=t),"function"!=typeof a&&o.pointRadius(a),s):i},s.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(o.pointRadius(+t),+t),s):a},s.projection(t).context(i)}e(So,"lengthPointFirst"),e(Ao,"lengthPoint"),e(ko,"PathString"),ko.prototype={_radius:4.5,_circle:Mo(4.5),pointRadius:/* @__PURE__ */e(function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},"pointRadius"),polygonStart:/* @__PURE__ */e(function(){this._line=0},"polygonStart"),polygonEnd:/* @__PURE__ */e(function(){this._line=NaN},"polygonEnd"),lineStart:/* @__PURE__ */e(function(){this._point=0},"lineStart"),lineEnd:/* @__PURE__ */e(function(){0===this._line&&this._string.push("Z"),this._point=NaN},"lineEnd"),point:/* @__PURE__ */e(function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Mo(this._radius)),this._string.push("M",t,",",e,this._circle)}},"point"),result:/* @__PURE__ */e(function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null},"result")},e(Mo,"circle"),e(Po,"geoPath");const To=class _Contour extends be{_dataMinWeight;_dataMaxWeight;constructor(){super(),this.xAxisGuideLines_default(!1).yAxisGuideLines_default(!1).xAxisType_default("linear")}xPos(t,e){return"horizontal"===t.orientation()?t.dataPos(e.label):t.valuePos(e.value)}yPos(t,e){return"horizontal"===t.orientation()?t.valuePos(e.value):t.dataPos(e.label)}layerEnter(t,e,i=250){super.layerEnter(t,e,i)}layerUpdate(t,e,i=250){super.layerUpdate(t,e,i),this._palette=this._palette.switch(this.paletteID());const n=this.flattenData(this.layerColumns(t),this.layerData(t)),o=pn().x(e=>this.xPos(t,e)).y(e=>this.yPos(t,e)).size([this.width(),this.height()]).bandwidth(this.contourBandwidth())(n),a=o.map(t=>t.value),s=Math.min.apply(this,a),r=Math.max.apply(this,a);this._dataMinWeight=s,this._dataMaxWeight=r;const l=e.selectAll("path").data(o);l.enter().append("path").merge(l).attr("d",Po()).attr("fill",t=>this.showContourFill()?this._palette(t.value,s,r):"none").attr("stroke",this.contourStrokeColor()).attr("stroke-linejoin","round").attr("stroke-width",this.contourStrokeWidth()),l.exit().remove()}exit(t,e){super.exit(t,e)}};e(To,"Contour"),i(To,"__inputs",[{id:"x",type:"any"},{id:"y",type:"number"}]);let Co=To;Co.prototype._class+=" chart_Contour",Co.prototype.implements(s.prototype),Co.prototype.publish("paletteID","YlGnBu","string","Color palette for this widget"),Co.prototype.publish("useClonedPalette",!0,"boolean","Enable or disable using a cloned palette"),Co.prototype.publish("showContourFill",!0,"boolean","Show/hide the contour background colors"),Co.prototype.publish("showContour",!0,"boolean","Show/hide the contour border lines"),Co.prototype.publish("contourBandwidth",40,"number","Controls the sensitivity of the contour grouping algorithm"),Co.prototype.publish("contourStrokeColor","#2C3A47","html-color","Color of the contour border lines"),Co.prototype.publish("contourStrokeWidth",1,"number","Width of the contour border lines");const zo=class _Gantt extends Te{constructor(){super(),this.orientation_default("vertical").xAxisType_default("ordinal").yAxisType_default("time")}};e(zo,"Gantt");let Fo=zo;function Io(t){/* @__PURE__ */
|
|
3
3
|
return e(function(){return t},"constant")}Fo.prototype._class+=" chart_Gantt",e(Io,"constant");var Eo=1e-12,Ro=Math.PI,Do=Ro/2,Oo=2*Ro;function jo(t){return t.innerRadius}function No(t){return t.outerRadius}function Lo(t){return t.startAngle}function Bo(t){return t.endAngle}function $o(t){return t&&t.padAngle}function Ho(t){return t>=1?Do:t<=-1?-Do:Math.asin(t)}function Vo(t,e,i,n,o,a,s,r){var l=i-t,h=n-e,c=s-o,u=r-a,p=(c*(e-a)-u*(t-o))/(u*l-c*h);return[t+p*l,e+p*h]}function qo(t,e,i,n,o,a,s){var r=t-i,l=e-n,h=(s?a:-a)/Math.sqrt(r*r+l*l),c=h*l,u=-h*r,p=t+c,d=e+u,f=i+c,y=n+u,_=(p+f)/2,x=(d+y)/2,m=f-p,g=y-d,b=m*m+g*g,v=o-a,w=p*y-f*d,S=(g<0?-1:1)*Math.sqrt(Math.max(0,v*v*b-w*w)),A=(w*g-m*S)/b,k=(-w*m-g*S)/b,M=(w*g+m*S)/b,P=(-w*m+g*S)/b,T=A-_,C=k-x,z=M-_,F=P-x;return T*T+C*C>z*z+F*F&&(A=M,k=P),{cx:A,cy:k,x01:-c,y01:-u,x11:A*(o/v-1),y11:k*(o/v-1)}}function Wo(){var t=jo,i=No,n=Io(0),o=null,a=Lo,s=Bo,r=$o,l=null;function h(){var e,h,c=+t.apply(this,arguments),u=+i.apply(this,arguments),p=a.apply(this,arguments)-Do,d=s.apply(this,arguments)-Do,f=Math.abs(d-p),y=d>p;if(l||(l=e=it()),u<c&&(h=u,u=c,c=h),u>Eo)if(f>Oo-Eo)l.moveTo(u*Math.cos(p),u*Math.sin(p)),l.arc(0,0,u,p,d,!y),c>Eo&&(l.moveTo(c*Math.cos(d),c*Math.sin(d)),l.arc(0,0,c,d,p,y));else{var _,x,m=p,g=d,b=p,v=d,w=f,S=f,A=r.apply(this,arguments)/2,k=A>Eo&&(o?+o.apply(this,arguments):Math.sqrt(c*c+u*u)),M=Math.min(Math.abs(u-c)/2,+n.apply(this,arguments)),P=M,T=M;if(k>Eo){var C=Ho(k/c*Math.sin(A)),z=Ho(k/u*Math.sin(A));(w-=2*C)>Eo?(b+=C*=y?1:-1,v-=C):(w=0,b=v=(p+d)/2),(S-=2*z)>Eo?(m+=z*=y?1:-1,g-=z):(S=0,m=g=(p+d)/2)}var F=u*Math.cos(m),I=u*Math.sin(m),E=c*Math.cos(v),R=c*Math.sin(v);if(M>Eo){var D=u*Math.cos(g),O=u*Math.sin(g),j=c*Math.cos(b),N=c*Math.sin(b);if(f<Ro){var L=w>Eo?Vo(F,I,j,N,D,O,E,R):[E,R],B=F-L[0],$=I-L[1],H=D-L[0],V=O-L[1],q=1/Math.sin(Math.acos((B*H+$*V)/(Math.sqrt(B*B+$*$)*Math.sqrt(H*H+V*V)))/2),W=Math.sqrt(L[0]*L[0]+L[1]*L[1]);P=Math.min(M,(c-W)/(q-1)),T=Math.min(M,(u-W)/(q+1))}}S>Eo?T>Eo?(_=qo(j,N,F,I,u,T,y),x=qo(D,O,E,R,u,T,y),l.moveTo(_.cx+_.x01,_.cy+_.y01),T<M?l.arc(_.cx,_.cy,T,Math.atan2(_.y01,_.x01),Math.atan2(x.y01,x.x01),!y):(l.arc(_.cx,_.cy,T,Math.atan2(_.y01,_.x01),Math.atan2(_.y11,_.x11),!y),l.arc(0,0,u,Math.atan2(_.cy+_.y11,_.cx+_.x11),Math.atan2(x.cy+x.y11,x.cx+x.x11),!y),l.arc(x.cx,x.cy,T,Math.atan2(x.y11,x.x11),Math.atan2(x.y01,x.x01),!y))):(l.moveTo(F,I),l.arc(0,0,u,m,g,!y)):l.moveTo(F,I),c>Eo&&w>Eo?P>Eo?(_=qo(E,R,D,O,c,-P,y),x=qo(F,I,j,N,c,-P,y),l.lineTo(_.cx+_.x01,_.cy+_.y01),P<M?l.arc(_.cx,_.cy,P,Math.atan2(_.y01,_.x01),Math.atan2(x.y01,x.x01),!y):(l.arc(_.cx,_.cy,P,Math.atan2(_.y01,_.x01),Math.atan2(_.y11,_.x11),!y),l.arc(0,0,c,Math.atan2(_.cy+_.y11,_.cx+_.x11),Math.atan2(x.cy+x.y11,x.cx+x.x11),y),l.arc(x.cx,x.cy,P,Math.atan2(x.y11,x.x11),Math.atan2(x.y01,x.x01),!y))):l.arc(0,0,c,v,b,y):l.lineTo(E,R)}else l.moveTo(0,0);if(l.closePath(),e)return l=null,e+""||null}return e(h,"arc"),h.centroid=function(){var e=(+t.apply(this,arguments)+ +i.apply(this,arguments))/2,n=(+a.apply(this,arguments)+ +s.apply(this,arguments))/2-Ro/2;return[Math.cos(n)*e,Math.sin(n)*e]},h.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Io(+e),h):t},h.outerRadius=function(t){return arguments.length?(i="function"==typeof t?t:Io(+t),h):i},h.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Io(+t),h):n},h.padRadius=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:Io(+t),h):o},h.startAngle=function(t){return arguments.length?(a="function"==typeof t?t:Io(+t),h):a},h.endAngle=function(t){return arguments.length?(s="function"==typeof t?t:Io(+t),h):s},h.padAngle=function(t){return arguments.length?(r="function"==typeof t?t:Io(+t),h):r},h.context=function(t){return arguments.length?(l=null==t?null:t,h):l},h}function Go(t){this._context=t}function Xo(t){return new Go(t)}function Yo(t){return t[0]}function Uo(t){return t[1]}function Qo(){var t=Yo,i=Uo,n=Io(!0),o=null,a=Xo,s=null;function r(e){var r,l,h,c=e.length,u=!1;for(null==o&&(s=a(h=it())),r=0;r<=c;++r)!(r<c&&n(l=e[r],r,e))===u&&((u=!u)?s.lineStart():s.lineEnd()),u&&s.point(+t(l,r,e),+i(l,r,e));if(h)return s=null,h+""||null}return e(r,"line"),r.x=function(e){return arguments.length?(t="function"==typeof e?e:Io(+e),r):t},r.y=function(t){return arguments.length?(i="function"==typeof t?t:Io(+t),r):i},r.defined=function(t){return arguments.length?(n="function"==typeof t?t:Io(!!t),r):n},r.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),r):a},r.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),r):o},r}function Zo(){}function Jo(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function Ko(t){this._context=t}function ta(t,e){this._basis=new Ko(t),this._beta=e}function ea(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function ia(t,e){this._context=t,this._k=(1-e)/6}function na(t,e){this._context=t,this._k=(1-e)/6}function oa(t,e){this._context=t,this._k=(1-e)/6}function aa(t,e,i){var n=t._x1,o=t._y1,a=t._x2,s=t._y2;if(t._l01_a>Eo){var r=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*r-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,o=(o*r-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Eo){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*h+t._x1*t._l23_2a-e*t._l12_2a)/c,s=(s*h+t._y1*t._l23_2a-i*t._l12_2a)/c}t._context.bezierCurveTo(n,o,a,s,t._x2,t._y2)}function sa(t,e){this._context=t,this._alpha=e}e(jo,"arcInnerRadius"),e(No,"arcOuterRadius"),e(Lo,"arcStartAngle"),e(Bo,"arcEndAngle"),e($o,"arcPadAngle"),e(Ho,"asin"),e(Vo,"intersect"),e(qo,"cornerTangents"),e(Wo,"arc"),e(Go,"Linear"),Go.prototype={areaStart:/* @__PURE__ */e(function(){this._line=0},"areaStart"),areaEnd:/* @__PURE__ */e(function(){this._line=NaN},"areaEnd"),lineStart:/* @__PURE__ */e(function(){this._point=0},"lineStart"),lineEnd:/* @__PURE__ */e(function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:/* @__PURE__ */e(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}},"point")},e(Xo,"curveLinear"),e(Yo,"x"),e(Uo,"y"),e(Qo,"line"),e(Zo,"noop"),e(Jo,"point$3"),e(Ko,"Basis"),Ko.prototype={areaStart:/* @__PURE__ */e(function(){this._line=0},"areaStart"),areaEnd:/* @__PURE__ */e(function(){this._line=NaN},"areaEnd"),lineStart:/* @__PURE__ */e(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:/* @__PURE__ */e(function(){switch(this._point){case 3:Jo(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:/* @__PURE__ */e(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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);default:Jo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")},e(ta,"Bundle"),ta.prototype={lineStart:/* @__PURE__ */e(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:/* @__PURE__ */e(function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var n,o=t[0],a=e[0],s=t[i]-o,r=e[i]-a,l=-1;++l<=i;)n=l/i,this._basis.point(this._beta*t[l]+(1-this._beta)*(o+n*s),this._beta*e[l]+(1-this._beta)*(a+n*r));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:/* @__PURE__ */e(function(t,e){this._x.push(+t),this._y.push(+e)},"point")},
|
|
4
4
|
/* @__PURE__ */e(function t(i){function n(t){return 1===i?new Ko(t):new ta(t,i)}return e(n,"bundle"),n.beta=function(e){return t(+e)},n},"custom")(.85),e(ea,"point$2"),e(ia,"Cardinal"),ia.prototype={areaStart:/* @__PURE__ */e(function(){this._line=0},"areaStart"),areaEnd:/* @__PURE__ */e(function(){this._line=NaN},"areaEnd"),lineStart:/* @__PURE__ */e(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:/* @__PURE__ */e(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ea(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:/* @__PURE__ */e(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ea(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")},
|