billboard.js 4.0.0 → 4.0.1
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/dist/billboard.css +1 -1
- package/dist/billboard.js +2 -2
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +2 -2
- package/dist/billboard.pkgd.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +2 -2
- package/dist/theme/dark.css +1 -1
- package/dist/theme/dark.min.css +1 -1
- package/dist/theme/datalab.css +1 -1
- package/dist/theme/datalab.min.css +1 -1
- package/dist/theme/graph.css +1 -1
- package/dist/theme/graph.min.css +1 -1
- package/dist/theme/insight.css +1 -1
- package/dist/theme/insight.min.css +1 -1
- package/dist/theme/modern.css +1 -1
- package/dist/theme/modern.min.css +1 -1
- package/dist-esm/Chart/Chart.js +1 -1
- package/dist-esm/Chart/api/axis.js +1 -1
- package/dist-esm/Chart/api/category.js +1 -1
- package/dist-esm/Chart/api/chart.js +1 -1
- package/dist-esm/Chart/api/color.js +1 -1
- package/dist-esm/Chart/api/data.js +1 -1
- package/dist-esm/Chart/api/export.js +1 -1
- package/dist-esm/Chart/api/flow.js +1 -1
- package/dist-esm/Chart/api/focus.js +1 -1
- package/dist-esm/Chart/api/grid.js +1 -1
- package/dist-esm/Chart/api/group.js +1 -1
- package/dist-esm/Chart/api/legend.js +1 -1
- package/dist-esm/Chart/api/load.js +1 -1
- package/dist-esm/Chart/api/regions.js +1 -1
- package/dist-esm/Chart/api/selection.js +1 -1
- package/dist-esm/Chart/api/show.js +1 -1
- package/dist-esm/Chart/api/stubs.js +1 -1
- package/dist-esm/Chart/api/subchart.js +1 -1
- package/dist-esm/Chart/api/tooltip.js +1 -1
- package/dist-esm/Chart/api/x.js +1 -1
- package/dist-esm/Chart/api/zoom.js +1 -1
- package/dist-esm/ChartInternal/Axis/Axis.js +1 -1
- package/dist-esm/ChartInternal/Axis/AxisRenderer.js +1 -1
- package/dist-esm/ChartInternal/Axis/AxisRendererHelper.js +1 -1
- package/dist-esm/ChartInternal/ChartInternal.js +1 -1
- package/dist-esm/ChartInternal/data/convert.helper.js +1 -1
- package/dist-esm/ChartInternal/data/convert.js +1 -1
- package/dist-esm/ChartInternal/data/data.js +1 -1
- package/dist-esm/ChartInternal/data/load.js +1 -1
- package/dist-esm/ChartInternal/interactions/drag.js +1 -1
- package/dist-esm/ChartInternal/interactions/eventrect.js +1 -1
- package/dist-esm/ChartInternal/interactions/flow.js +1 -1
- package/dist-esm/ChartInternal/interactions/interaction.js +1 -1
- package/dist-esm/ChartInternal/interactions/subchart.js +1 -1
- package/dist-esm/ChartInternal/interactions/zoom.js +1 -1
- package/dist-esm/ChartInternal/internals/category.js +1 -1
- package/dist-esm/ChartInternal/internals/class.js +1 -1
- package/dist-esm/ChartInternal/internals/clip.js +1 -1
- package/dist-esm/ChartInternal/internals/color.js +1 -1
- package/dist-esm/ChartInternal/internals/domain.js +1 -1
- package/dist-esm/ChartInternal/internals/format.js +1 -1
- package/dist-esm/ChartInternal/internals/grid.js +1 -1
- package/dist-esm/ChartInternal/internals/legend.js +1 -1
- package/dist-esm/ChartInternal/internals/redraw.js +1 -1
- package/dist-esm/ChartInternal/internals/region.js +1 -1
- package/dist-esm/ChartInternal/internals/scale.js +1 -1
- package/dist-esm/ChartInternal/internals/selection.js +1 -1
- package/dist-esm/ChartInternal/internals/size.axis.js +1 -1
- package/dist-esm/ChartInternal/internals/size.js +1 -1
- package/dist-esm/ChartInternal/internals/style.js +1 -1
- package/dist-esm/ChartInternal/internals/text.arc.js +1 -1
- package/dist-esm/ChartInternal/internals/text.js +1 -1
- package/dist-esm/ChartInternal/internals/text.util.js +1 -1
- package/dist-esm/ChartInternal/internals/title.js +1 -1
- package/dist-esm/ChartInternal/internals/tooltip.js +1 -1
- package/dist-esm/ChartInternal/internals/transform.js +1 -1
- package/dist-esm/ChartInternal/internals/type.js +1 -1
- package/dist-esm/ChartInternal/shape/arc.js +1 -1
- package/dist-esm/ChartInternal/shape/area.js +1 -1
- package/dist-esm/ChartInternal/shape/bar.js +1 -1
- package/dist-esm/ChartInternal/shape/bubble.js +1 -1
- package/dist-esm/ChartInternal/shape/candlestick.js +1 -1
- package/dist-esm/ChartInternal/shape/core/barRadius.js +1 -1
- package/dist-esm/ChartInternal/shape/core/bubble.js +1 -1
- package/dist-esm/ChartInternal/shape/core/candlestick.js +1 -1
- package/dist-esm/ChartInternal/shape/core/dataRegion.js +1 -1
- package/dist-esm/ChartInternal/shape/core/geometry.js +1 -1
- package/dist-esm/ChartInternal/shape/core/path.js +1 -1
- package/dist-esm/ChartInternal/shape/core/point.js +1 -1
- package/dist-esm/ChartInternal/shape/core/treemap.js +1 -1
- package/dist-esm/ChartInternal/shape/funnel.js +1 -1
- package/dist-esm/ChartInternal/shape/gauge.js +1 -1
- package/dist-esm/ChartInternal/shape/line.js +1 -1
- package/dist-esm/ChartInternal/shape/point.js +1 -1
- package/dist-esm/ChartInternal/shape/polar.js +1 -1
- package/dist-esm/ChartInternal/shape/radar.js +1 -1
- package/dist-esm/ChartInternal/shape/shape.js +1 -1
- package/dist-esm/ChartInternal/shape/treemap.js +1 -1
- package/dist-esm/canvas/CanvasAxisRenderer.js +1 -1
- package/dist-esm/canvas/CanvasEngine.js +1 -1
- package/dist-esm/canvas/CanvasPainter.js +1 -1
- package/dist-esm/canvas/CanvasRenderer.js +1 -1
- package/dist-esm/canvas/CanvasTheme.js +1 -1
- package/dist-esm/canvas/HitDetector.js +1 -1
- package/dist-esm/canvas/axisTicks.js +1 -1
- package/dist-esm/canvas/classes.js +1 -1
- package/dist-esm/canvas/color.js +1 -1
- package/dist-esm/canvas/geometry.js +1 -1
- package/dist-esm/canvas/labels.js +1 -1
- package/dist-esm/canvas/pointPattern.js +1 -1
- package/dist-esm/canvas/util.js +1 -1
- package/dist-esm/config/Options/Options.js +1 -1
- package/dist-esm/config/Options/axis/axis.js +1 -1
- package/dist-esm/config/Options/axis/x.js +1 -1
- package/dist-esm/config/Options/axis/y.js +1 -1
- package/dist-esm/config/Options/axis/y2.js +1 -1
- package/dist-esm/config/Options/common/boost.js +1 -1
- package/dist-esm/config/Options/common/color.js +1 -1
- package/dist-esm/config/Options/common/grid.js +1 -1
- package/dist-esm/config/Options/common/legend.js +1 -1
- package/dist-esm/config/Options/common/main.js +1 -1
- package/dist-esm/config/Options/common/point.js +1 -1
- package/dist-esm/config/Options/common/title.js +1 -1
- package/dist-esm/config/Options/common/tooltip.js +1 -1
- package/dist-esm/config/Options/data/axis.js +1 -1
- package/dist-esm/config/Options/data/data.js +1 -1
- package/dist-esm/config/Options/data/selection.js +1 -1
- package/dist-esm/config/Options/interaction/interaction.js +1 -1
- package/dist-esm/config/Options/interaction/subchart.js +1 -1
- package/dist-esm/config/Options/interaction/zoom.js +1 -1
- package/dist-esm/config/Options/shape/arc.js +1 -1
- package/dist-esm/config/Options/shape/area.js +1 -1
- package/dist-esm/config/Options/shape/bar.js +1 -1
- package/dist-esm/config/Options/shape/bubble.js +1 -1
- package/dist-esm/config/Options/shape/candlestick.js +1 -1
- package/dist-esm/config/Options/shape/donut.js +1 -1
- package/dist-esm/config/Options/shape/funnel.js +1 -1
- package/dist-esm/config/Options/shape/gauge.js +1 -1
- package/dist-esm/config/Options/shape/line.js +1 -1
- package/dist-esm/config/Options/shape/pie.js +1 -1
- package/dist-esm/config/Options/shape/polar.js +1 -1
- package/dist-esm/config/Options/shape/radar.js +1 -1
- package/dist-esm/config/Options/shape/scatter.js +1 -1
- package/dist-esm/config/Options/shape/spline.js +1 -1
- package/dist-esm/config/Options/shape/treemap.js +1 -1
- package/dist-esm/config/Store/Element.js +1 -1
- package/dist-esm/config/Store/State.js +1 -1
- package/dist-esm/config/Store/Store.js +1 -1
- package/dist-esm/config/classes.js +1 -1
- package/dist-esm/config/config.js +1 -1
- package/dist-esm/config/const.js +1 -1
- package/dist-esm/config/resolver/axis.core.js +1 -1
- package/dist-esm/config/resolver/axis.js +1 -1
- package/dist-esm/config/resolver/canvas.js +1 -1
- package/dist-esm/config/resolver/canvasShape.js +1 -1
- package/dist-esm/config/resolver/category.js +1 -1
- package/dist-esm/config/resolver/export.js +1 -1
- package/dist-esm/config/resolver/flow.js +1 -1
- package/dist-esm/config/resolver/grid.js +1 -1
- package/dist-esm/config/resolver/interaction/selection.js +1 -1
- package/dist-esm/config/resolver/interaction/subchart.js +1 -1
- package/dist-esm/config/resolver/interaction/zoom.js +1 -1
- package/dist-esm/config/resolver/regions.js +1 -1
- package/dist-esm/config/resolver/shape/arc.helpers.js +1 -1
- package/dist-esm/config/resolver/shape/area.js +1 -1
- package/dist-esm/config/resolver/shape/axis.helpers.js +1 -1
- package/dist-esm/config/resolver/shape/bar.js +1 -1
- package/dist-esm/config/resolver/shape/bubble.js +1 -1
- package/dist-esm/config/resolver/shape/candlestick.js +1 -1
- package/dist-esm/config/resolver/shape/donut.js +1 -1
- package/dist-esm/config/resolver/shape/funnel.js +1 -1
- package/dist-esm/config/resolver/shape/gauge.js +1 -1
- package/dist-esm/config/resolver/shape/line.js +1 -1
- package/dist-esm/config/resolver/shape/pie.js +1 -1
- package/dist-esm/config/resolver/shape/polar.js +1 -1
- package/dist-esm/config/resolver/shape/radar.js +1 -1
- package/dist-esm/config/resolver/shape/scatter.js +1 -1
- package/dist-esm/config/resolver/shape/treemap.js +1 -1
- package/dist-esm/core.js +3 -3
- package/dist-esm/index.canvas.js +1 -1
- package/dist-esm/index.esm.js +1 -1
- package/dist-esm/module/Cache.js +1 -1
- package/dist-esm/module/browser.js +1 -1
- package/dist-esm/module/dsv.js +1 -1
- package/dist-esm/module/error.js +1 -1
- package/dist-esm/module/generator.js +1 -1
- package/dist-esm/module/sanitize.js +1 -1
- package/dist-esm/module/util/brush.js +1 -1
- package/dist-esm/module/util/dom.js +1 -1
- package/dist-esm/module/util/object.js +1 -1
- package/dist-esm/module/util/type-checks.js +1 -1
- package/dist-esm/module/worker.js +1 -1
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/package.json +8 -1
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
|
-
*/(function(Mr,pr){typeof exports=="object"&&typeof module=="object"?module.exports=pr():typeof define=="function"&&define.amd?define("bb",[],pr):typeof exports=="object"?exports.bb=pr():(Mr.bb=Mr.bb||{},Mr.bb.plugin=Mr.bb.plugin||{},Mr.bb.plugin["stanford.pkgd"]=pr())})(this,function(){return(function(){"use strict";var On={57198:(function(i,d,t){t.d(d,{default:function(){return to}});function r(f,h,S){f.prototype=h.prototype=S,S.constructor=f}function n(f,h){var S=Object.create(f.prototype);for(var P in h)S[P]=h[P];return S}function e(){}var a=.7,o=1/a,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",v="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,c=new RegExp(`^rgb\\(${s},${s},${s}\\)$`),g=new RegExp(`^rgb\\(${v},${v},${v}\\)$`),p=new RegExp(`^rgba\\(${s},${s},${s},${u}\\)$`),y=new RegExp(`^rgba\\(${v},${v},${v},${u}\\)$`),x=new RegExp(`^hsl\\(${u},${v},${v}\\)$`),m=new RegExp(`^hsla\\(${u},${v},${v},${u}\\)$`),I={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};r(e,R,{copy(f){return Object.assign(new this.constructor,this,f)},displayable(){return this.rgb().displayable()},hex:T,formatHex:T,formatHex8:E,formatHsl:O,formatRgb:A,toString:A});function T(){return this.rgb().formatHex()}function E(){return this.rgb().formatHex8()}function O(){return w(this).formatHsl()}function A(){return this.rgb().formatRgb()}function R(f){var h,S;return f=(f+"").trim().toLowerCase(),(h=l.exec(f))?(S=h[1].length,h=parseInt(h[1],16),S===6?C(h):S===3?new F(h>>8&15|h>>4&240,h>>4&15|h&240,(h&15)<<4|h&15,1):S===8?M(h>>24&255,h>>16&255,h>>8&255,(h&255)/255):S===4?M(h>>12&15|h>>8&240,h>>8&15|h>>4&240,h>>4&15|h&240,((h&15)<<4|h&15)/255):null):(h=c.exec(f))?new F(h[1],h[2],h[3],1):(h=g.exec(f))?new F(h[1]*255/100,h[2]*255/100,h[3]*255/100,1):(h=p.exec(f))?M(h[1],h[2],h[3],h[4]):(h=y.exec(f))?M(h[1]*255/100,h[2]*255/100,h[3]*255/100,h[4]):(h=x.exec(f))?V(h[1],h[2]/100,h[3]/100,1):(h=m.exec(f))?V(h[1],h[2]/100,h[3]/100,h[4]):I.hasOwnProperty(f)?C(I[f]):f==="transparent"?new F(NaN,NaN,NaN,0):null}function C(f){return new F(f>>16&255,f>>8&255,f&255,1)}function M(f,h,S,P){return P<=0&&(f=h=S=NaN),new F(f,h,S,P)}function D(f){return f instanceof e||(f=R(f)),f?(f=f.rgb(),new F(f.r,f.g,f.b,f.opacity)):new F}function N(f,h,S,P){return arguments.length===1?D(f):new F(f,h,S,P==null?1:P)}function F(f,h,S,P){this.r=+f,this.g=+h,this.b=+S,this.opacity=+P}r(F,N,n(e,{brighter(f){return f=f==null?o:Math.pow(o,f),new F(this.r*f,this.g*f,this.b*f,this.opacity)},darker(f){return f=f==null?a:Math.pow(a,f),new F(this.r*f,this.g*f,this.b*f,this.opacity)},rgb(){return this},clamp(){return new F(G(this.r),G(this.g),G(this.b),B(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:L,formatHex:L,formatHex8:b,formatRgb:U,toString:U}));function L(){return`#${W(this.r)}${W(this.g)}${W(this.b)}`}function b(){return`#${W(this.r)}${W(this.g)}${W(this.b)}${W((isNaN(this.opacity)?1:this.opacity)*255)}`}function U(){const f=B(this.opacity);return`${f===1?"rgb(":"rgba("}${G(this.r)}, ${G(this.g)}, ${G(this.b)}${f===1?")":`, ${f})`}`}function B(f){return isNaN(f)?1:Math.max(0,Math.min(1,f))}function G(f){return Math.max(0,Math.min(255,Math.round(f)||0))}function W(f){return f=G(f),(f<16?"0":"")+f.toString(16)}function V(f,h,S,P){return P<=0?f=h=S=NaN:S<=0||S>=1?f=h=NaN:h<=0&&(f=NaN),new Y(f,h,S,P)}function w(f){if(f instanceof Y)return new Y(f.h,f.s,f.l,f.opacity);if(f instanceof e||(f=R(f)),!f)return new Y;if(f instanceof Y)return f;f=f.rgb();var h=f.r/255,S=f.g/255,P=f.b/255,$=Math.min(h,S,P),j=Math.max(h,S,P),H=NaN,K=j-$,ot=(j+$)/2;return K?(h===j?H=(S-P)/K+(S<P)*6:S===j?H=(P-h)/K+2:H=(h-S)/K+4,K/=ot<.5?j+$:2-j-$,H*=60):K=ot>0&&ot<1?0:H,new Y(H,K,ot,f.opacity)}function Z(f,h,S,P){return arguments.length===1?w(f):new Y(f,h,S,P==null?1:P)}function Y(f,h,S,P){this.h=+f,this.s=+h,this.l=+S,this.opacity=+P}r(Y,Z,n(e,{brighter(f){return f=f==null?o:Math.pow(o,f),new Y(this.h,this.s,this.l*f,this.opacity)},darker(f){return f=f==null?a:Math.pow(a,f),new Y(this.h,this.s,this.l*f,this.opacity)},rgb(){var f=this.h%360+(this.h<0)*360,h=isNaN(f)||isNaN(this.s)?0:this.s,S=this.l,P=S+(S<.5?S:1-S)*h,$=2*S-P;return new F(et(f>=240?f-240:f+120,$,P),et(f,$,P),et(f<120?f+240:f-120,$,P),this.opacity)},clamp(){return new Y(st(this.h),nt(this.s),nt(this.l),B(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const f=B(this.opacity);return`${f===1?"hsl(":"hsla("}${st(this.h)}, ${nt(this.s)*100}%, ${nt(this.l)*100}%${f===1?")":`, ${f})`}`}}));function st(f){return f=(f||0)%360,f<0?f+360:f}function nt(f){return Math.max(0,Math.min(1,f||0))}function et(f,h,S){return(f<60?h+(S-h)*f/60:f<180?S:f<240?h+(S-h)*(240-f)/60:h)*255}var X=(f=>()=>f);function J(f,h){return function(S){return f+S*h}}function tt(f,h,S){return f=Math.pow(f,S),h=Math.pow(h,S)-f,S=1/S,function(P){return Math.pow(f+P*h,S)}}function ct(f,h){var S=h-f;return S?J(f,S>180||S<-180?S-360*Math.round(S/360):S):X(isNaN(f)?h:f)}function Et(f){return(f=+f)==1?rt:function(h,S){return S-h?tt(h,S,f):X(isNaN(h)?S:h)}}function rt(f,h){var S=h-f;return S?J(f,S):X(isNaN(f)?h:f)}function gt(f){return function(h,S){var P=f((h=Z(h)).h,(S=Z(S)).h),$=rt(h.s,S.s),j=rt(h.l,S.l),H=rt(h.opacity,S.opacity);return function(K){return h.h=P(K),h.s=$(K),h.l=j(K),h.opacity=H(K),h+""}}}var Nt=gt(ct),Ut=gt(rt);function Mt(f,h,S,P,$){var j=f*f,H=j*f;return((1-3*f+3*j-H)*h+(4-6*j+3*H)*S+(1+3*f+3*j-3*H)*P+H*$)/6}function Ft(f){var h=f.length-1;return function(S){var P=S<=0?S=0:S>=1?(S=1,h-1):Math.floor(S*h),$=f[P],j=f[P+1],H=P>0?f[P-1]:2*$-j,K=P<h-1?f[P+2]:2*j-$;return Mt((S-P/h)*h,H,$,j,K)}}function Vt(f){var h=f.length;return function(S){var P=Math.floor(((S%=1)<0?++S:S)*h),$=f[(P+h-1)%h],j=f[P%h],H=f[(P+1)%h],K=f[(P+2)%h];return Mt((S-P/h)*h,$,j,H,K)}}var zt=(function f(h){var S=Et(h);function P($,j){var H=S(($=N($)).r,(j=N(j)).r),K=S($.g,j.g),ot=S($.b,j.b),_=rt($.opacity,j.opacity);return function(At){return $.r=H(At),$.g=K(At),$.b=ot(At),$.opacity=_(At),$+""}}return P.gamma=f,P})(1);function Ht(f){return function(h){var S=h.length,P=new Array(S),$=new Array(S),j=new Array(S),H,K;for(H=0;H<S;++H)K=N(h[H]),P[H]=K.r||0,$[H]=K.g||0,j[H]=K.b||0;return P=f(P),$=f($),j=f(j),K.opacity=1,function(ot){return K.r=P(ot),K.g=$(ot),K.b=j(ot),K+""}}}var $t=Ht(Ft),jt=Ht(Vt),wt,pt;function Pt(f,h){return(wt(h)?pt:Tt)(f,h)}function Tt(f,h){var S=h?h.length:0,P=f?Math.min(S,f.length):0,$=new Array(P),j=new Array(S),H;for(H=0;H<P;++H)$[H]=ut(f[H],h[H]);for(;H<S;++H)j[H]=h[H];return function(K){for(H=0;H<P;++H)j[H]=$[H](K);return j}}function Zt(f,h){var S=new Date;return f=+f,h=+h,function(P){return S.setTime(f*(1-P)+h*P),S}}function yt(f,h){return f=+f,h=+h,function(S){return f*(1-S)+h*S}}function It(f,h){var S={},P={},$;(f===null||typeof f!="object")&&(f={}),(h===null||typeof h!="object")&&(h={});for($ in h)$ in f?S[$]=ut(f[$],h[$]):P[$]=h[$];return function(j){for($ in S)P[$]=S[$](j);return P}}var Lt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Dt=new RegExp(Lt.source,"g");function Kt(f){return function(){return f}}function kt(f){return function(h){return f(h)+""}}function q(f,h){var S=Lt.lastIndex=Dt.lastIndex=0,P,$,j,H=-1,K=[],ot=[];for(f=f+"",h=h+"";(P=Lt.exec(f))&&($=Dt.exec(h));)(j=$.index)>S&&(j=h.slice(S,j),K[H]?K[H]+=j:K[++H]=j),(P=P[0])===($=$[0])?K[H]?K[H]+=$:K[++H]=$:(K[++H]=null,ot.push({i:H,x:yt(P,$)})),S=Dt.lastIndex;return S<h.length&&(j=h.slice(S),K[H]?K[H]+=j:K[++H]=j),K.length<2?ot[0]?kt(ot[0].x):Kt(h):(h=ot.length,function(_){for(var At=0,lt;At<h;++At)K[(lt=ot[At]).i]=lt.x(_);return K.join("")})}function dt(f,h){h||(h=[]);var S=f?Math.min(h.length,f.length):0,P=h.slice(),$;return function(j){for($=0;$<S;++$)P[$]=f[$]*(1-j)+h[$]*j;return P}}function at(f){return ArrayBuffer.isView(f)&&!(f instanceof DataView)}function ut(f,h){var S=typeof h,P;return h==null||S==="boolean"?X(h):(S==="number"?yt:S==="string"?(P=R(h))?(h=P,zt):q:h instanceof R?zt:h instanceof Date?Zt:at(h)?dt:Array.isArray(h)?Tt:typeof h.valueOf!="function"&&typeof h.toString!="function"||isNaN(h)?It:yt)(f,h)}function St(f,h){return f=+f,h=+h,function(S){return Math.round(f*(1-S)+h*S)}}function it(f,h){return f==null||h==null?NaN:f<h?-1:f>h?1:f>=h?0:NaN}function Gt(f,h){return f==null||h==null?NaN:h<f?-1:h>f?1:h>=f?0:NaN}function Qt(f){let h,S,P;f.length!==2?(h=it,S=(K,ot)=>it(f(K),ot),P=(K,ot)=>f(K)-ot):(h=f===it||f===Gt?f:ht,S=f,P=f);function $(K,ot,_=0,At=K.length){if(_<At){if(h(ot,ot)!==0)return At;do{const lt=_+At>>>1;S(K[lt],ot)<0?_=lt+1:At=lt}while(_<At)}return _}function j(K,ot,_=0,At=K.length){if(_<At){if(h(ot,ot)!==0)return At;do{const lt=_+At>>>1;S(K[lt],ot)<=0?_=lt+1:At=lt}while(_<At)}return _}function H(K,ot,_=0,At=K.length){const lt=$(K,ot,_,At-1);return lt>_&&P(K[lt-1],ot)>-P(K[lt],ot)?lt-1:lt}return{left:$,center:H,right:j}}function ht(){return 0}function xt(f){return f===null?NaN:+f}function*Ot(f,h){if(h===void 0)for(let S of f)S!=null&&(S=+S)>=S&&(yield S);else{let S=-1;for(let P of f)(P=h(P,++S,f))!=null&&(P=+P)>=P&&(yield P)}}const Ct=Qt(it),Wt=Ct.right,Jt=Ct.left,_t=Qt(xt).center;var tr=Wt;function ar(f){return function(){return f}}function or(f){return+f}var gr=[0,1];function lr(f){return f}function Ur(f,h){return(h-=f=+f)?function(S){return(S-f)/h}:ar(isNaN(h)?NaN:.5)}function zr(f,h){var S;return f>h&&(S=f,f=h,h=S),function(P){return Math.max(f,Math.min(h,P))}}function Kr(f,h,S){var P=f[0],$=f[1],j=h[0],H=h[1];return $<P?(P=Ur($,P),j=S(H,j)):(P=Ur(P,$),j=S(j,H)),function(K){return j(P(K))}}function Yr(f,h,S){var P=Math.min(f.length,h.length)-1,$=new Array(P),j=new Array(P),H=-1;for(f[P]<f[0]&&(f=f.slice().reverse(),h=h.slice().reverse());++H<P;)$[H]=Ur(f[H],f[H+1]),j[H]=S(h[H],h[H+1]);return function(K){var ot=tr(f,K,1,P)-1;return j[ot]($[ot](K))}}function kr(f,h){return h.domain(f.domain()).range(f.range()).interpolate(f.interpolate()).clamp(f.clamp()).unknown(f.unknown())}function Hr(){var f=gr,h=gr,S=ut,P,$,j,H=lr,K,ot,_;function At(){var Rt=Math.min(f.length,h.length);return H!==lr&&(H=zr(f[0],f[Rt-1])),K=Rt>2?Yr:Kr,ot=_=null,lt}function lt(Rt){return Rt==null||isNaN(Rt=+Rt)?j:(ot||(ot=K(f.map(P),h,S)))(P(H(Rt)))}return lt.invert=function(Rt){return H($((_||(_=K(h,f.map(P),yt)))(Rt)))},lt.domain=function(Rt){return arguments.length?(f=Array.from(Rt,or),At()):f.slice()},lt.range=function(Rt){return arguments.length?(h=Array.from(Rt),At()):h.slice()},lt.rangeRound=function(Rt){return h=Array.from(Rt),S=St,At()},lt.clamp=function(Rt){return arguments.length?(H=Rt?!0:lr,At()):H!==lr},lt.interpolate=function(Rt){return arguments.length?(S=Rt,At()):S},lt.unknown=function(Rt){return arguments.length?(j=Rt,lt):j},function(Rt,Bt){return P=Rt,$=Bt,At()}}function Br(){return Hr()(lr,lr)}function mr(f,h){switch(arguments.length){case 0:break;case 1:this.range(f);break;default:this.range(h).domain(f);break}return this}function Xr(f,h){switch(arguments.length){case 0:break;case 1:{typeof f=="function"?this.interpolator(f):this.range(f);break}default:{this.domain(f),typeof h=="function"?this.interpolator(h):this.range(h);break}}return this}const Cr=Math.sqrt(50),Or=Math.sqrt(10),Jr=Math.sqrt(2);function Tr(f,h,S){const P=(h-f)/Math.max(0,S),$=Math.floor(Math.log10(P)),j=P/Math.pow(10,$),H=j>=Cr?10:j>=Or?5:j>=Jr?2:1;let K,ot,_;return $<0?(_=Math.pow(10,-$)/H,K=Math.round(f*_),ot=Math.round(h*_),K/_<f&&++K,ot/_>h&&--ot,_=-_):(_=Math.pow(10,$)*H,K=Math.round(f/_),ot=Math.round(h/_),K*_<f&&++K,ot*_>h&&--ot),ot<K&&.5<=S&&S<2?Tr(f,h,S*2):[K,ot,_]}function fr(f,h,S){if(h=+h,f=+f,S=+S,!(S>0))return[];if(f===h)return[f];const P=h<f,[$,j,H]=P?Tr(h,f,S):Tr(f,h,S);if(!(j>=$))return[];const K=j-$+1,ot=new Array(K);if(P)if(H<0)for(let _=0;_<K;++_)ot[_]=(j-_)/-H;else for(let _=0;_<K;++_)ot[_]=(j-_)*H;else if(H<0)for(let _=0;_<K;++_)ot[_]=($+_)/-H;else for(let _=0;_<K;++_)ot[_]=($+_)*H;return ot}function cr(f,h,S){return h=+h,f=+f,S=+S,Tr(f,h,S)[2]}function qr(f,h,S){h=+h,f=+f,S=+S;const P=h<f,$=P?cr(h,f,S):cr(f,h,S);return(P?-1:1)*($<0?1/-$:$)}var _r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Q(f){if(!(h=_r.exec(f)))throw new Error("invalid format: "+f);var h;return new vt({fill:h[1],align:h[2],sign:h[3],symbol:h[4],zero:h[5],width:h[6],comma:h[7],precision:h[8]&&h[8].slice(1),trim:h[9],type:h[10]})}Q.prototype=vt.prototype;function vt(f){this.fill=f.fill===void 0?" ":f.fill+"",this.align=f.align===void 0?">":f.align+"",this.sign=f.sign===void 0?"-":f.sign+"",this.symbol=f.symbol===void 0?"":f.symbol+"",this.zero=!!f.zero,this.width=f.width===void 0?void 0:+f.width,this.comma=!!f.comma,this.precision=f.precision===void 0?void 0:+f.precision,this.trim=!!f.trim,this.type=f.type===void 0?"":f.type+""}vt.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function k(f){return Math.abs(f=Math.round(f))>=1e21?f.toLocaleString("en").replace(/,/g,""):f.toString(10)}function z(f,h){if(!isFinite(f)||f===0)return null;var S=(f=h?f.toExponential(h-1):f.toExponential()).indexOf("e"),P=f.slice(0,S);return[P.length>1?P[0]+P.slice(2):P,+f.slice(S+1)]}function ft(f){return f=z(Math.abs(f)),f?f[1]:NaN}function Yt(f,h){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ft(h)/3)))*3-ft(Math.abs(f)))}function bt(f,h){return function(S,P){for(var $=S.length,j=[],H=0,K=f[0],ot=0;$>0&&K>0&&(ot+K+1>P&&(K=Math.max(1,P-ot)),j.push(S.substring($-=K,$+K)),!((ot+=K+1)>P));)K=f[H=(H+1)%f.length];return j.reverse().join(h)}}function rr(f){return function(h){return h.replace(/[0-9]/g,function(S){return f[+S]})}}function sr(f){t:for(var h=f.length,S=1,P=-1,$;S<h;++S)switch(f[S]){case".":P=$=S;break;case"0":P===0&&(P=S),$=S;break;default:if(!+f[S])break t;P>0&&(P=0);break}return P>0?f.slice(0,P)+f.slice($+1):f}var nr;function hr(f,h){var S=z(f,h);if(!S)return nr=void 0,f.toPrecision(h);var P=S[0],$=S[1],j=$-(nr=Math.max(-8,Math.min(8,Math.floor($/3)))*3)+1,H=P.length;return j===H?P:j>H?P+new Array(j-H+1).join("0"):j>0?P.slice(0,j)+"."+P.slice(j):"0."+new Array(1-j).join("0")+z(f,Math.max(0,h+j-1))[0]}function mt(f,h){var S=z(f,h);if(!S)return f+"";var P=S[0],$=S[1];return $<0?"0."+new Array(-$).join("0")+P:P.length>$+1?P.slice(0,$+1)+"."+P.slice($+1):P+new Array($-P.length+2).join("0")}var ir={"%":(f,h)=>(f*100).toFixed(h),b:f=>Math.round(f).toString(2),c:f=>f+"",d:k,e:(f,h)=>f.toExponential(h),f:(f,h)=>f.toFixed(h),g:(f,h)=>f.toPrecision(h),o:f=>Math.round(f).toString(8),p:(f,h)=>mt(f*100,h),r:mt,s:hr,X:f=>Math.round(f).toString(16).toUpperCase(),x:f=>Math.round(f).toString(16)};function xr(f){return f}var Wr=Array.prototype.map,wr=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function tn(f){var h=f.grouping===void 0||f.thousands===void 0?xr:bt(Wr.call(f.grouping,Number),f.thousands+""),S=f.currency===void 0?"":f.currency[0]+"",P=f.currency===void 0?"":f.currency[1]+"",$=f.decimal===void 0?".":f.decimal+"",j=f.numerals===void 0?xr:rr(Wr.call(f.numerals,String)),H=f.percent===void 0?"%":f.percent+"",K=f.minus===void 0?"\u2212":f.minus+"",ot=f.nan===void 0?"NaN":f.nan+"";function _(lt,Rt){lt=Q(lt);var Bt=lt.fill,er=lt.align,ur=lt.sign,yr=lt.symbol,dr=lt.zero,Fr=lt.width,$r=lt.comma,Sr=lt.precision,Lr=lt.trim,vr=lt.type;vr==="n"?($r=!0,vr="g"):ir[vr]||(Sr===void 0&&(Sr=12),Lr=!0,vr="g"),(dr||Bt==="0"&&er==="=")&&(dr=!0,Bt="0",er="=");var Rr=(Rt&&Rt.prefix!==void 0?Rt.prefix:"")+(yr==="$"?S:yr==="#"&&/[boxX]/.test(vr)?"0"+vr.toLowerCase():""),Zr=(yr==="$"?P:/[%p]/.test(vr)?H:"")+(Rt&&Rt.suffix!==void 0?Rt.suffix:""),jr=ir[vr],Gr=/[defgprs%]/.test(vr);Sr=Sr===void 0?6:/[gprs]/.test(vr)?Math.max(1,Math.min(21,Sr)):Math.max(0,Math.min(20,Sr));function br(Xt){var Er=Rr,Ir=Zr,Vr,se,vn;if(vr==="c")Ir=jr(Xt)+Ir,Xt="";else{Xt=+Xt;var ln=Xt<0||1/Xt<0;if(Xt=isNaN(Xt)?ot:jr(Math.abs(Xt),Sr),Lr&&(Xt=sr(Xt)),ln&&+Xt==0&&ur!=="+"&&(ln=!1),Er=(ln?ur==="("?ur:K:ur==="-"||ur==="("?"":ur)+Er,Ir=(vr==="s"&&!isNaN(Xt)&&nr!==void 0?wr[8+nr/3]:"")+Ir+(ln&&ur==="("?")":""),Gr){for(Vr=-1,se=Xt.length;++Vr<se;)if(vn=Xt.charCodeAt(Vr),48>vn||vn>57){Ir=(vn===46?$+Xt.slice(Vr+1):Xt.slice(Vr))+Ir,Xt=Xt.slice(0,Vr);break}}}$r&&!dr&&(Xt=h(Xt,1/0));var cn=Er.length+Xt.length+Ir.length,Nr=cn<Fr?new Array(Fr-cn+1).join(Bt):"";switch($r&&dr&&(Xt=h(Nr+Xt,Nr.length?Fr-Ir.length:1/0),Nr=""),er){case"<":Xt=Er+Xt+Ir+Nr;break;case"=":Xt=Er+Nr+Xt+Ir;break;case"^":Xt=Nr.slice(0,cn=Nr.length>>1)+Er+Xt+Ir+Nr.slice(cn);break;default:Xt=Nr+Er+Xt+Ir;break}return j(Xt)}return br.toString=function(){return lt+""},br}function At(lt,Rt){var Bt=Math.max(-8,Math.min(8,Math.floor(ft(Rt)/3)))*3,er=Math.pow(10,-Bt),ur=_((lt=Q(lt),lt.type="f",lt),{suffix:wr[8+Bt/3]});return function(yr){return ur(er*yr)}}return{format:_,formatPrefix:At}}var Dr,hn,Tn;ie({thousands:",",grouping:[3],currency:["$",""]});function ie(f){return Dr=tn(f),hn=Dr.format,Tn=Dr.formatPrefix,Dr}function ue(f,h){return f=Math.abs(f),h=Math.abs(h)-f,Math.max(0,ft(h)-ft(f))+1}function fe(f){return Math.max(0,-ft(Math.abs(f)))}function ve(f,h,S,P){var $=qr(f,h,S),j;switch(P=Q(P==null?",f":P),P.type){case"s":{var H=Math.max(Math.abs(f),Math.abs(h));return P.precision==null&&!isNaN(j=Yt($,H))&&(P.precision=j),Tn(P,H)}case"":case"e":case"g":case"p":case"r":{P.precision==null&&!isNaN(j=ue($,Math.max(Math.abs(f),Math.abs(h))))&&(P.precision=j-(P.type==="e"));break}case"f":case"%":{P.precision==null&&!isNaN(j=fe($))&&(P.precision=j-(P.type==="%")*2);break}}return hn(P)}var le,ce,de;function gn(f){var h=f.domain;return f.ticks=function(S){var P=h();return fr(P[0],P[P.length-1],S==null?10:S)},f.tickFormat=function(S,P){var $=h();return ve($[0],$[$.length-1],S==null?10:S,P)},f.nice=function(S){S==null&&(S=10);var P=h(),$=0,j=P.length-1,H=P[$],K=P[j],ot,_,At=10;for(K<H&&(_=H,H=K,K=_,_=$,$=j,j=_);At-- >0;){if(_=cr(H,K,S),_===ot)return P[$]=H,P[j]=K,h(P);if(_>0)H=Math.floor(H/_)*_,K=Math.ceil(K/_)*_;else if(_<0)H=Math.ceil(H*_)/_,K=Math.floor(K*_)/_;else break;ot=_}return f},f}function he(){var f=le();return f.copy=function(){return ce(f,he())},de.apply(f,arguments),gn(f)}function ge(f,h){f=f.slice();var S=0,P=f.length-1,$=f[S],j=f[P],H;return j<$&&(H=S,S=P,P=H,H=$,$=j,j=H),f[S]=h.floor($),f[P]=h.ceil(j),f}var ye,pe,me;function Rn(f){return Math.log(f)}function An(f){return Math.exp(f)}function xe(f){return-Math.log(-f)}function Se(f){return-Math.exp(-f)}function Ee(f){return isFinite(f)?+("1e"+f):f<0?0:f}function Ie(f){return f===10?Ee:f===Math.E?Math.exp:h=>Math.pow(f,h)}function Oe(f){return f===Math.E?Math.log:f===10&&Math.log10||f===2&&Math.log2||(f=Math.log(f),h=>Math.log(h)/f)}function Pn(f){return(h,S)=>-f(-h,S)}function Cn(f){const h=f(Rn,An),S=h.domain;let P=10,$,j;function H(){return $=Oe(P),j=Ie(P),S()[0]<0?($=Pn($),j=Pn(j),f(xe,Se)):f(Rn,An),h}return h.base=function(K){return arguments.length?(P=+K,H()):P},h.domain=function(K){return arguments.length?(S(K),H()):S()},h.ticks=K=>{const ot=S();let _=ot[0],At=ot[ot.length-1];const lt=At<_;lt&&([_,At]=[At,_]);let Rt=$(_),Bt=$(At),er,ur;const yr=K==null?10:+K;let dr=[];if(!(P%1)&&Bt-Rt<yr){if(Rt=Math.floor(Rt),Bt=Math.ceil(Bt),_>0){for(;Rt<=Bt;++Rt)for(er=1;er<P;++er)if(ur=Rt<0?er/j(-Rt):er*j(Rt),!(ur<_)){if(ur>At)break;dr.push(ur)}}else for(;Rt<=Bt;++Rt)for(er=P-1;er>=1;--er)if(ur=Rt>0?er/j(-Rt):er*j(Rt),!(ur<_)){if(ur>At)break;dr.push(ur)}dr.length*2<yr&&(dr=fr(_,At,yr))}else dr=fr(Rt,Bt,Math.min(Bt-Rt,yr)).map(j);return lt?dr.reverse():dr},h.tickFormat=(K,ot)=>{if(K==null&&(K=10),ot==null&&(ot=P===10?"s":","),typeof ot!="function"&&(!(P%1)&&(ot=Q(ot)).precision==null&&(ot.trim=!0),ot=hn(ot)),K===1/0)return ot;const _=Math.max(1,P*K/h.ticks().length);return At=>{let lt=At/j(Math.round($(At)));return lt*P<P-.5&&(lt*=P),lt<=_?ot(At):""}},h.nice=()=>S(ge(S(),{floor:K=>j(Math.floor($(K))),ceil:K=>j(Math.ceil($(K)))})),h}function Te(){const f=Cn(ye()).domain([1,10]);return f.copy=()=>pe(f,Te()).base(f.base()),me.apply(f,arguments),f}var Nn,Re,Ae;function rn(){var f=0,h=1,S,P,$,j,H=lr,K=!1,ot;function _(lt){return lt==null||isNaN(lt=+lt)?ot:H($===0?.5:(lt=(j(lt)-S)*$,K?Math.max(0,Math.min(1,lt)):lt))}_.domain=function(lt){return arguments.length?([f,h]=lt,S=j(f=+f),P=j(h=+h),$=S===P?0:1/(P-S),_):[f,h]},_.clamp=function(lt){return arguments.length?(K=!!lt,_):K},_.interpolator=function(lt){return arguments.length?(H=lt,_):H};function At(lt){return function(Rt){var Bt,er;return arguments.length?([Bt,er]=Rt,H=lt(Bt,er),_):[H(0),H(1)]}}return _.range=At(ut),_.rangeRound=At(St),_.unknown=function(lt){return arguments.length?(ot=lt,_):ot},function(lt){return j=lt,S=lt(f),P=lt(h),$=S===P?0:1/(P-S),_}}function nn(f,h){return h.domain(f.domain()).interpolator(f.interpolator()).clamp(f.clamp()).unknown(f.unknown())}function Mn(){var f=gn(rn()(lr));return f.copy=function(){return nn(f,Mn())},Xr.apply(f,arguments)}function Dn(){var f=Cn(rn()).domain([1,10]);return f.copy=function(){return nn(f,Dn()).base(f.base())},Xr.apply(f,arguments)}function Pe(){var f=Re(rn());return f.copy=function(){return nn(f,Pe()).constant(f.constant())},Nn.apply(f,arguments)}function Fn(){var f=Ae(rn());return f.copy=function(){return nn(f,Fn()).exponent(f.exponent())},Nn.apply(f,arguments)}function ro(){return Fn.apply(null,arguments).exponent(.5)}var Ce=Object.defineProperty,$n=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ln=(f,h,S)=>h in f?Ce(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,qt=(f,h)=>{for(var S in h||(h={}))Ne.call(h,S)&&Ln(f,S,h[S]);if($n)for(var S of $n(h))Me.call(h,S)&&Ln(f,S,h[S]);return f};const De={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_",dummy:"_dummy_"},Fe={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcLabelLineText:"bb-arc-label-line-text",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},$e={area:"bb-area",areas:"bb-areas"},Le={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip",axisTooltipX:"bb-axis-tooltip-x",axisTooltipY:"bb-axis-tooltip-y"},be={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars",barConnectLine:"bb-bar-connectLine"},Ue={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},Be={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},je={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},Ge={dragarea:"bb-dragarea",INCLUDED:"_included_"},He={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},We={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},Ve={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},ze={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},Ke={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},Ye={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},Xe={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},Je={level:"bb-level",levels:"bb-levels"},we={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},Qe={region:"bb-region",regions:"bb-regions"},Ze={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},ke={shape:"bb-shape",shapes:"bb-shapes"},qe={brush:"bb-brush",subchart:"bb-subchart"},_e={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",textBorderRect:"bb-text-border",textLabelImage:"bb-text-label-image",TextOverlapping:"text-overlapping"},yn={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},ta={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},ra={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var no=qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt({},De),Fe),$e),Le),be),Ue),Be),je),Ge),We),Ve),ze),Ke),Ye),He),Xe),Je),we),Qe),Ze),ke),qe),_e),yn),ta),ra);const eo=f=>f||f===0,bn=f=>typeof f=="function",pn=f=>typeof f=="string",Un=f=>typeof f=="number",na=f=>typeof f=="undefined",ea=f=>typeof f!="undefined",ao=f=>typeof f=="boolean",oo=f=>Math.ceil(f/10)*10,so=f=>Math.ceil(f)+.5,io=f=>f[1]-f[0],mn=f=>typeof f=="object",aa=f=>{for(const h in f)return!1;return!0},Bn=f=>na(f)||f===null||pn(f)&&f.length===0||mn(f)&&!(f instanceof Date)&&aa(f)||Un(f)&&isNaN(f),uo=f=>!Bn(f),jn=f=>Array.isArray(f),xn=f=>f&&!(f!=null&&f.nodeType)&&mn(f)&&!jn(f);function oa(f){const h=this.config;let S,P,$;const j=()=>{const H=P.shift();if(H&&S&&mn(S)&&H in S)return S=S[H],j();if(!H)return S};Object.keys(h).forEach(H=>{S=f,P=H.split("_"),$=j(),ea($)&&(h[H]=$)}),this.api&&(this.state.orgConfig=f)}var sa=Object.defineProperty,ia=(f,h,S)=>h in f?sa(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,en=(f,h,S)=>ia(f,typeof h!="symbol"?h+"":h,S);class Gn{constructor(h={}){en(this,"$$"),en(this,"options"),en(this,"config"),this.options=h}loadConfig(){oa.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(h=>{this[h]=null,delete this[h]})}}en(Gn,"version","4.0.0");function ua(f){return f}var an=1,on=2,Sn=3,Qr=4,Hn=1e-6;function fa(f){return"translate("+f+",0)"}function va(f){return"translate(0,"+f+")"}function la(f){return h=>+f(h)}function ca(f,h){return h=Math.max(0,f.bandwidth()-h*2)/2,f.round()&&(h=Math.round(h)),S=>+f(S)+h}function da(){return!this.__axis}function sn(f,h){var S=[],P=null,$=null,j=6,H=6,K=3,ot=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,_=f===an||f===Qr?-1:1,At=f===Qr||f===on?"x":"y",lt=f===an||f===Sn?fa:va;function Rt(Bt){var er=P==null?h.ticks?h.ticks.apply(h,S):h.domain():P,ur=$==null?h.tickFormat?h.tickFormat.apply(h,S):ua:$,yr=Math.max(j,0)+K,dr=h.range(),Fr=+dr[0]+ot,$r=+dr[dr.length-1]+ot,Sr=(h.bandwidth?ca:la)(h.copy(),ot),Lr=Bt.selection?Bt.selection():Bt,vr=Lr.selectAll(".domain").data([null]),Rr=Lr.selectAll(".tick").data(er,h).order(),Zr=Rr.exit(),jr=Rr.enter().append("g").attr("class","tick"),Gr=Rr.select("line"),br=Rr.select("text");vr=vr.merge(vr.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Rr=Rr.merge(jr),Gr=Gr.merge(jr.append("line").attr("stroke","currentColor").attr(At+"2",_*j)),br=br.merge(jr.append("text").attr("fill","currentColor").attr(At,_*yr).attr("dy",f===an?"0em":f===Sn?"0.71em":"0.32em")),Bt!==Lr&&(vr=vr.transition(Bt),Rr=Rr.transition(Bt),Gr=Gr.transition(Bt),br=br.transition(Bt),Zr=Zr.transition(Bt).attr("opacity",Hn).attr("transform",function(Xt){return isFinite(Xt=Sr(Xt))?lt(Xt+ot):this.getAttribute("transform")}),jr.attr("opacity",Hn).attr("transform",function(Xt){var Er=this.parentNode.__axis;return lt((Er&&isFinite(Er=Er(Xt))?Er:Sr(Xt))+ot)})),Zr.remove(),vr.attr("d",f===Qr||f===on?H?"M"+_*H+","+Fr+"H"+ot+"V"+$r+"H"+_*H:"M"+ot+","+Fr+"V"+$r:H?"M"+Fr+","+_*H+"V"+ot+"H"+$r+"V"+_*H:"M"+Fr+","+ot+"H"+$r),Rr.attr("opacity",1).attr("transform",function(Xt){return lt(Sr(Xt)+ot)}),Gr.attr(At+"2",_*j),br.attr(At,_*yr).text(ur),Lr.filter(da).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",f===on?"start":f===Qr?"end":"middle"),Lr.each(function(){this.__axis=Sr})}return Rt.scale=function(Bt){return arguments.length?(h=Bt,Rt):h},Rt.ticks=function(){return S=Array.from(arguments),Rt},Rt.tickArguments=function(Bt){return arguments.length?(S=Bt==null?[]:Array.from(Bt),Rt):S.slice()},Rt.tickValues=function(Bt){return arguments.length?(P=Bt==null?null:Array.from(Bt),Rt):P&&P.slice()},Rt.tickFormat=function(Bt){return arguments.length?($=Bt,Rt):$},Rt.tickSize=function(Bt){return arguments.length?(j=H=+Bt,Rt):j},Rt.tickSizeInner=function(Bt){return arguments.length?(j=+Bt,Rt):j},Rt.tickSizeOuter=function(Bt){return arguments.length?(H=+Bt,Rt):H},Rt.tickPadding=function(Bt){return arguments.length?(K=+Bt,Rt):K},Rt.offset=function(Bt){return arguments.length?(ot=+Bt,Rt):ot},Rt}function fo(f){return sn(an,f)}function ha(f){return sn(on,f)}function vo(f){return sn(Sn,f)}function lo(f){return sn(Qr,f)}function Wn(f){return function(h){return Math.sign(h)*Math.log1p(Math.abs(h/f))}}function Vn(f){return function(h){return Math.sign(h)*Math.expm1(Math.abs(h))*f}}function ga(f){var h=1,S=f(Wn(h),Vn(h));return S.constant=function(P){return arguments.length?f(Wn(h=+P),Vn(h)):h},gn(S)}function zn(){var f=ga(Hr());return f.copy=function(){return kr(f,zn()).constant(f.constant())},mr.apply(f,arguments)}var Ar={colorScale:"bb-colorscale",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions"},ya,pa,Kn,ma,Yn,Xn,xa,Sa,Jn,Ea=Object.defineProperty,wn=Object.getOwnPropertySymbols,Ia=Object.prototype.hasOwnProperty,Oa=Object.prototype.propertyIsEnumerable,Qn=(f,h,S)=>h in f?Ea(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,Zn=(f,h)=>{for(var S in h||(h={}))Ia.call(h,S)&&Qn(f,S,h[S]);if(wn)for(var S of wn(h))Oa.call(h,S)&&Qn(f,S,h[S]);return f};function kn(f,h){for(let S=0;S<f.length;S++){const P=f[S];P!==null&&Kn(P)&&h(P,S)}}function co(f,h,S){return Kn(f[h])?f[h]:S}function ho(f,h){for(const S in f)if(f[S]===h)return!0;return!1}function go(f,h,...S){const P=ma(f);return P&&f.call(h,...S),P}function yo(f,h){let S=0;const P=function(...$){!--S&&h.apply(this,$)};"duration"in f?f.each(()=>++S).on("end",P):(++S,f.call(P))}const po=f=>f.charAt(0).toUpperCase()+f.slice(1);function mo(f,h="-"){return f.split(h).map((S,P)=>P?S.charAt(0).toUpperCase()+S.slice(1).toLowerCase():S.toLowerCase()).join("")}const xo=f=>[].slice.call(f);function So(...f){const h=S=>{if(Yn(S))return S.map(h);if(Xn(S)&&S.constructor){const P=new S.constructor;for(const $ in S)P[$]=h(S[$]);return P}return S};return f.map(S=>h(S)).reduce((S,P)=>Zn(Zn({},S),P))}function Ta(f={},h){Yn(h)&&h.forEach(S=>Ta(f,S));for(const S in h)/^\d+$/.test(S)||S in f||(f[S]=h[S]);return f}function Eo(f){const h=f[0]instanceof Date,S=Array.from(new Set(h?f.map(Number):f));return h?S.map(P=>new Date(P)):S}function Io(f){return f&&f.length?f.reduce((h,S)=>h.concat(S)):[]}function En(f,...h){if(!h.length||h.length===1&&!h[0])return f;const S=h.shift();return xn(f)&&xn(S)&&Object.keys(S).forEach(P=>{if(!/^(__proto__|constructor|prototype)$/i.test(P)){const $=S[P];$ instanceof Date?f[P]=new Date($.getTime()):xn($)?(!f[P]&&(f[P]={}),f[P]=En(f[P],$)):f[P]=jn($)?$.concat():$}}),En(f,...h)}function Ra(f,h=!0){let S;return f[0]instanceof Date?S=h?(P,$)=>P-$:(P,$)=>$-P:h&&!f.every(isNaN)?S=(P,$)=>P-$:h||(S=(P,$)=>P>$&&-1||P<$&&1||P===$&&0),f.concat().sort(S)}function Oo(f,h){let S=h.filter(P=>xa(P));if(S.length)if(Sa(S[0])){let P=f==="min"?1/0:-1/0;for(const $ of S)(f==="min"?$<P:$>P)&&(P=$);S=P}else S[0]instanceof Date&&(S=Ra(S,f==="min")[0]);else S=void 0;return S}const Aa=(f,h,S=1)=>{const P=[],$=Math.max(0,Math.ceil((h-f)/S))|0;for(let j=0;j<$;j++)P.push(f+j*S);return P};let Pa=0;function To(f=!0){const h=++Pa;return f?String(h):h}function qn(f,h,S,P,$){if(S>P)return-1;const j=Math.floor((S+P)/2);let{x:H,w:K=0}=f[j];return $&&(H=f[j].y,K=f[j].h),h>=H&&h<=H+K?j:h<H?qn(f,h,S,j-1,$):qn(f,h,j+1,P,$)}function Ro(f,h){return pa(f.replace(/\{=([^}]+)\}/g,(S,P)=>{var $;return($=h[P])!=null?$:""}))}function Ca(f){var h;let S;if(f instanceof Date)S=f;else if(pn(f)){const{config:P,format:$}=this;S=(h=$.dataTime(P.data_xFormat)(f))!=null?h:new Date(f)}else Un(f)&&!isNaN(f)&&(S=new Date(+f));return(!S||isNaN(+S))&&console&&console.error&&console.error(`Failed to parse x '${f}' to Date object`),S}function Ao(f){if(Xn(f)&&!Jn(f)){const H=f;return{top:H.top||0,right:H.right||0,bottom:H.bottom||0,left:H.left||0}}const h=(Jn(f)?f.trim().split(/\s+/):[f]).map(H=>+H||0),[S,P=S,$=S,j=P]=h;return{top:S,right:P,bottom:$,left:j}}function Na(f,h){h()===!1?ya(()=>Na(f,h)):f()}function Po(f,h=(S=>S)){const S=new Set;return kn(f,(P,$)=>{S.add(h(P,$))}),S}function Co(f,h,S=(P=>P)){const P=new Map;return kn(f,($,j)=>{P.set(h($,j),S($,j))}),P}function Ma(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function Da(f){const h=typeof(f==null?void 0:f.requestAnimationFrame)=="function"&&typeof(f==null?void 0:f.cancelAnimationFrame)=="function",S=typeof(f==null?void 0:f.requestIdleCallback)=="function"&&typeof(f==null?void 0:f.cancelIdleCallback)=="function",P=j=>setTimeout(j,1),$=j=>clearTimeout(j);return[h?f.requestAnimationFrame:P,h?f.cancelAnimationFrame:$,S?f.requestIdleCallback:P,S?f.cancelIdleCallback:$]}const un=Ma(),Fa=un==null?void 0:un.document,[No,Mo,Do,Fo]=Da(un);var $a,Pr,In,La,ba;const Ua=/\s?(bb-)/g,Ba=/\.+/g;function ja(f){return f.replace(Ua,".$1").replace(Ba,".")}function _n(f,h,S=!1){const P=j=>j[f?"getBoundingClientRect":"getBBox"](),$=f?"rectClient":"rectBBox";return S?P(h):!($ in h)||h.hasAttribute("width")&&h[$].width!==+(h.getAttribute("width")||0)?h[$]=P(h):h[$]}function $o(f,h,S=[-1,1],P=!1){if(!(!f||!ba(h)))if(h.indexOf(`
|
|
11
|
+
*/(function(Mr,pr){typeof exports=="object"&&typeof module=="object"?module.exports=pr():typeof define=="function"&&define.amd?define("bb",[],pr):typeof exports=="object"?exports.bb=pr():(Mr.bb=Mr.bb||{},Mr.bb.plugin=Mr.bb.plugin||{},Mr.bb.plugin["stanford.pkgd"]=pr())})(this,function(){return(function(){"use strict";var On={57198:(function(i,d,t){t.d(d,{default:function(){return to}});function r(f,h,S){f.prototype=h.prototype=S,S.constructor=f}function n(f,h){var S=Object.create(f.prototype);for(var P in h)S[P]=h[P];return S}function e(){}var a=.7,o=1/a,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",v="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,c=new RegExp(`^rgb\\(${s},${s},${s}\\)$`),g=new RegExp(`^rgb\\(${v},${v},${v}\\)$`),p=new RegExp(`^rgba\\(${s},${s},${s},${u}\\)$`),y=new RegExp(`^rgba\\(${v},${v},${v},${u}\\)$`),x=new RegExp(`^hsl\\(${u},${v},${v}\\)$`),m=new RegExp(`^hsla\\(${u},${v},${v},${u}\\)$`),I={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};r(e,R,{copy(f){return Object.assign(new this.constructor,this,f)},displayable(){return this.rgb().displayable()},hex:T,formatHex:T,formatHex8:E,formatHsl:O,formatRgb:A,toString:A});function T(){return this.rgb().formatHex()}function E(){return this.rgb().formatHex8()}function O(){return w(this).formatHsl()}function A(){return this.rgb().formatRgb()}function R(f){var h,S;return f=(f+"").trim().toLowerCase(),(h=l.exec(f))?(S=h[1].length,h=parseInt(h[1],16),S===6?C(h):S===3?new F(h>>8&15|h>>4&240,h>>4&15|h&240,(h&15)<<4|h&15,1):S===8?M(h>>24&255,h>>16&255,h>>8&255,(h&255)/255):S===4?M(h>>12&15|h>>8&240,h>>8&15|h>>4&240,h>>4&15|h&240,((h&15)<<4|h&15)/255):null):(h=c.exec(f))?new F(h[1],h[2],h[3],1):(h=g.exec(f))?new F(h[1]*255/100,h[2]*255/100,h[3]*255/100,1):(h=p.exec(f))?M(h[1],h[2],h[3],h[4]):(h=y.exec(f))?M(h[1]*255/100,h[2]*255/100,h[3]*255/100,h[4]):(h=x.exec(f))?V(h[1],h[2]/100,h[3]/100,1):(h=m.exec(f))?V(h[1],h[2]/100,h[3]/100,h[4]):I.hasOwnProperty(f)?C(I[f]):f==="transparent"?new F(NaN,NaN,NaN,0):null}function C(f){return new F(f>>16&255,f>>8&255,f&255,1)}function M(f,h,S,P){return P<=0&&(f=h=S=NaN),new F(f,h,S,P)}function D(f){return f instanceof e||(f=R(f)),f?(f=f.rgb(),new F(f.r,f.g,f.b,f.opacity)):new F}function N(f,h,S,P){return arguments.length===1?D(f):new F(f,h,S,P==null?1:P)}function F(f,h,S,P){this.r=+f,this.g=+h,this.b=+S,this.opacity=+P}r(F,N,n(e,{brighter(f){return f=f==null?o:Math.pow(o,f),new F(this.r*f,this.g*f,this.b*f,this.opacity)},darker(f){return f=f==null?a:Math.pow(a,f),new F(this.r*f,this.g*f,this.b*f,this.opacity)},rgb(){return this},clamp(){return new F(G(this.r),G(this.g),G(this.b),B(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:L,formatHex:L,formatHex8:b,formatRgb:U,toString:U}));function L(){return`#${W(this.r)}${W(this.g)}${W(this.b)}`}function b(){return`#${W(this.r)}${W(this.g)}${W(this.b)}${W((isNaN(this.opacity)?1:this.opacity)*255)}`}function U(){const f=B(this.opacity);return`${f===1?"rgb(":"rgba("}${G(this.r)}, ${G(this.g)}, ${G(this.b)}${f===1?")":`, ${f})`}`}function B(f){return isNaN(f)?1:Math.max(0,Math.min(1,f))}function G(f){return Math.max(0,Math.min(255,Math.round(f)||0))}function W(f){return f=G(f),(f<16?"0":"")+f.toString(16)}function V(f,h,S,P){return P<=0?f=h=S=NaN:S<=0||S>=1?f=h=NaN:h<=0&&(f=NaN),new Y(f,h,S,P)}function w(f){if(f instanceof Y)return new Y(f.h,f.s,f.l,f.opacity);if(f instanceof e||(f=R(f)),!f)return new Y;if(f instanceof Y)return f;f=f.rgb();var h=f.r/255,S=f.g/255,P=f.b/255,$=Math.min(h,S,P),j=Math.max(h,S,P),H=NaN,K=j-$,ot=(j+$)/2;return K?(h===j?H=(S-P)/K+(S<P)*6:S===j?H=(P-h)/K+2:H=(h-S)/K+4,K/=ot<.5?j+$:2-j-$,H*=60):K=ot>0&&ot<1?0:H,new Y(H,K,ot,f.opacity)}function Z(f,h,S,P){return arguments.length===1?w(f):new Y(f,h,S,P==null?1:P)}function Y(f,h,S,P){this.h=+f,this.s=+h,this.l=+S,this.opacity=+P}r(Y,Z,n(e,{brighter(f){return f=f==null?o:Math.pow(o,f),new Y(this.h,this.s,this.l*f,this.opacity)},darker(f){return f=f==null?a:Math.pow(a,f),new Y(this.h,this.s,this.l*f,this.opacity)},rgb(){var f=this.h%360+(this.h<0)*360,h=isNaN(f)||isNaN(this.s)?0:this.s,S=this.l,P=S+(S<.5?S:1-S)*h,$=2*S-P;return new F(et(f>=240?f-240:f+120,$,P),et(f,$,P),et(f<120?f+240:f-120,$,P),this.opacity)},clamp(){return new Y(st(this.h),nt(this.s),nt(this.l),B(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const f=B(this.opacity);return`${f===1?"hsl(":"hsla("}${st(this.h)}, ${nt(this.s)*100}%, ${nt(this.l)*100}%${f===1?")":`, ${f})`}`}}));function st(f){return f=(f||0)%360,f<0?f+360:f}function nt(f){return Math.max(0,Math.min(1,f||0))}function et(f,h,S){return(f<60?h+(S-h)*f/60:f<180?S:f<240?h+(S-h)*(240-f)/60:h)*255}var X=(f=>()=>f);function J(f,h){return function(S){return f+S*h}}function tt(f,h,S){return f=Math.pow(f,S),h=Math.pow(h,S)-f,S=1/S,function(P){return Math.pow(f+P*h,S)}}function ct(f,h){var S=h-f;return S?J(f,S>180||S<-180?S-360*Math.round(S/360):S):X(isNaN(f)?h:f)}function Et(f){return(f=+f)==1?rt:function(h,S){return S-h?tt(h,S,f):X(isNaN(h)?S:h)}}function rt(f,h){var S=h-f;return S?J(f,S):X(isNaN(f)?h:f)}function gt(f){return function(h,S){var P=f((h=Z(h)).h,(S=Z(S)).h),$=rt(h.s,S.s),j=rt(h.l,S.l),H=rt(h.opacity,S.opacity);return function(K){return h.h=P(K),h.s=$(K),h.l=j(K),h.opacity=H(K),h+""}}}var Nt=gt(ct),Ut=gt(rt);function Mt(f,h,S,P,$){var j=f*f,H=j*f;return((1-3*f+3*j-H)*h+(4-6*j+3*H)*S+(1+3*f+3*j-3*H)*P+H*$)/6}function Ft(f){var h=f.length-1;return function(S){var P=S<=0?S=0:S>=1?(S=1,h-1):Math.floor(S*h),$=f[P],j=f[P+1],H=P>0?f[P-1]:2*$-j,K=P<h-1?f[P+2]:2*j-$;return Mt((S-P/h)*h,H,$,j,K)}}function Vt(f){var h=f.length;return function(S){var P=Math.floor(((S%=1)<0?++S:S)*h),$=f[(P+h-1)%h],j=f[P%h],H=f[(P+1)%h],K=f[(P+2)%h];return Mt((S-P/h)*h,$,j,H,K)}}var zt=(function f(h){var S=Et(h);function P($,j){var H=S(($=N($)).r,(j=N(j)).r),K=S($.g,j.g),ot=S($.b,j.b),_=rt($.opacity,j.opacity);return function(At){return $.r=H(At),$.g=K(At),$.b=ot(At),$.opacity=_(At),$+""}}return P.gamma=f,P})(1);function Ht(f){return function(h){var S=h.length,P=new Array(S),$=new Array(S),j=new Array(S),H,K;for(H=0;H<S;++H)K=N(h[H]),P[H]=K.r||0,$[H]=K.g||0,j[H]=K.b||0;return P=f(P),$=f($),j=f(j),K.opacity=1,function(ot){return K.r=P(ot),K.g=$(ot),K.b=j(ot),K+""}}}var $t=Ht(Ft),jt=Ht(Vt),wt,pt;function Pt(f,h){return(wt(h)?pt:Tt)(f,h)}function Tt(f,h){var S=h?h.length:0,P=f?Math.min(S,f.length):0,$=new Array(P),j=new Array(S),H;for(H=0;H<P;++H)$[H]=ut(f[H],h[H]);for(;H<S;++H)j[H]=h[H];return function(K){for(H=0;H<P;++H)j[H]=$[H](K);return j}}function Zt(f,h){var S=new Date;return f=+f,h=+h,function(P){return S.setTime(f*(1-P)+h*P),S}}function yt(f,h){return f=+f,h=+h,function(S){return f*(1-S)+h*S}}function It(f,h){var S={},P={},$;(f===null||typeof f!="object")&&(f={}),(h===null||typeof h!="object")&&(h={});for($ in h)$ in f?S[$]=ut(f[$],h[$]):P[$]=h[$];return function(j){for($ in S)P[$]=S[$](j);return P}}var Lt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Dt=new RegExp(Lt.source,"g");function Kt(f){return function(){return f}}function kt(f){return function(h){return f(h)+""}}function q(f,h){var S=Lt.lastIndex=Dt.lastIndex=0,P,$,j,H=-1,K=[],ot=[];for(f=f+"",h=h+"";(P=Lt.exec(f))&&($=Dt.exec(h));)(j=$.index)>S&&(j=h.slice(S,j),K[H]?K[H]+=j:K[++H]=j),(P=P[0])===($=$[0])?K[H]?K[H]+=$:K[++H]=$:(K[++H]=null,ot.push({i:H,x:yt(P,$)})),S=Dt.lastIndex;return S<h.length&&(j=h.slice(S),K[H]?K[H]+=j:K[++H]=j),K.length<2?ot[0]?kt(ot[0].x):Kt(h):(h=ot.length,function(_){for(var At=0,lt;At<h;++At)K[(lt=ot[At]).i]=lt.x(_);return K.join("")})}function dt(f,h){h||(h=[]);var S=f?Math.min(h.length,f.length):0,P=h.slice(),$;return function(j){for($=0;$<S;++$)P[$]=f[$]*(1-j)+h[$]*j;return P}}function at(f){return ArrayBuffer.isView(f)&&!(f instanceof DataView)}function ut(f,h){var S=typeof h,P;return h==null||S==="boolean"?X(h):(S==="number"?yt:S==="string"?(P=R(h))?(h=P,zt):q:h instanceof R?zt:h instanceof Date?Zt:at(h)?dt:Array.isArray(h)?Tt:typeof h.valueOf!="function"&&typeof h.toString!="function"||isNaN(h)?It:yt)(f,h)}function St(f,h){return f=+f,h=+h,function(S){return Math.round(f*(1-S)+h*S)}}function it(f,h){return f==null||h==null?NaN:f<h?-1:f>h?1:f>=h?0:NaN}function Gt(f,h){return f==null||h==null?NaN:h<f?-1:h>f?1:h>=f?0:NaN}function Qt(f){let h,S,P;f.length!==2?(h=it,S=(K,ot)=>it(f(K),ot),P=(K,ot)=>f(K)-ot):(h=f===it||f===Gt?f:ht,S=f,P=f);function $(K,ot,_=0,At=K.length){if(_<At){if(h(ot,ot)!==0)return At;do{const lt=_+At>>>1;S(K[lt],ot)<0?_=lt+1:At=lt}while(_<At)}return _}function j(K,ot,_=0,At=K.length){if(_<At){if(h(ot,ot)!==0)return At;do{const lt=_+At>>>1;S(K[lt],ot)<=0?_=lt+1:At=lt}while(_<At)}return _}function H(K,ot,_=0,At=K.length){const lt=$(K,ot,_,At-1);return lt>_&&P(K[lt-1],ot)>-P(K[lt],ot)?lt-1:lt}return{left:$,center:H,right:j}}function ht(){return 0}function xt(f){return f===null?NaN:+f}function*Ot(f,h){if(h===void 0)for(let S of f)S!=null&&(S=+S)>=S&&(yield S);else{let S=-1;for(let P of f)(P=h(P,++S,f))!=null&&(P=+P)>=P&&(yield P)}}const Ct=Qt(it),Wt=Ct.right,Jt=Ct.left,_t=Qt(xt).center;var tr=Wt;function ar(f){return function(){return f}}function or(f){return+f}var gr=[0,1];function lr(f){return f}function Ur(f,h){return(h-=f=+f)?function(S){return(S-f)/h}:ar(isNaN(h)?NaN:.5)}function zr(f,h){var S;return f>h&&(S=f,f=h,h=S),function(P){return Math.max(f,Math.min(h,P))}}function Kr(f,h,S){var P=f[0],$=f[1],j=h[0],H=h[1];return $<P?(P=Ur($,P),j=S(H,j)):(P=Ur(P,$),j=S(j,H)),function(K){return j(P(K))}}function Yr(f,h,S){var P=Math.min(f.length,h.length)-1,$=new Array(P),j=new Array(P),H=-1;for(f[P]<f[0]&&(f=f.slice().reverse(),h=h.slice().reverse());++H<P;)$[H]=Ur(f[H],f[H+1]),j[H]=S(h[H],h[H+1]);return function(K){var ot=tr(f,K,1,P)-1;return j[ot]($[ot](K))}}function kr(f,h){return h.domain(f.domain()).range(f.range()).interpolate(f.interpolate()).clamp(f.clamp()).unknown(f.unknown())}function Hr(){var f=gr,h=gr,S=ut,P,$,j,H=lr,K,ot,_;function At(){var Rt=Math.min(f.length,h.length);return H!==lr&&(H=zr(f[0],f[Rt-1])),K=Rt>2?Yr:Kr,ot=_=null,lt}function lt(Rt){return Rt==null||isNaN(Rt=+Rt)?j:(ot||(ot=K(f.map(P),h,S)))(P(H(Rt)))}return lt.invert=function(Rt){return H($((_||(_=K(h,f.map(P),yt)))(Rt)))},lt.domain=function(Rt){return arguments.length?(f=Array.from(Rt,or),At()):f.slice()},lt.range=function(Rt){return arguments.length?(h=Array.from(Rt),At()):h.slice()},lt.rangeRound=function(Rt){return h=Array.from(Rt),S=St,At()},lt.clamp=function(Rt){return arguments.length?(H=Rt?!0:lr,At()):H!==lr},lt.interpolate=function(Rt){return arguments.length?(S=Rt,At()):S},lt.unknown=function(Rt){return arguments.length?(j=Rt,lt):j},function(Rt,Bt){return P=Rt,$=Bt,At()}}function Br(){return Hr()(lr,lr)}function mr(f,h){switch(arguments.length){case 0:break;case 1:this.range(f);break;default:this.range(h).domain(f);break}return this}function Xr(f,h){switch(arguments.length){case 0:break;case 1:{typeof f=="function"?this.interpolator(f):this.range(f);break}default:{this.domain(f),typeof h=="function"?this.interpolator(h):this.range(h);break}}return this}const Cr=Math.sqrt(50),Or=Math.sqrt(10),Jr=Math.sqrt(2);function Tr(f,h,S){const P=(h-f)/Math.max(0,S),$=Math.floor(Math.log10(P)),j=P/Math.pow(10,$),H=j>=Cr?10:j>=Or?5:j>=Jr?2:1;let K,ot,_;return $<0?(_=Math.pow(10,-$)/H,K=Math.round(f*_),ot=Math.round(h*_),K/_<f&&++K,ot/_>h&&--ot,_=-_):(_=Math.pow(10,$)*H,K=Math.round(f/_),ot=Math.round(h/_),K*_<f&&++K,ot*_>h&&--ot),ot<K&&.5<=S&&S<2?Tr(f,h,S*2):[K,ot,_]}function fr(f,h,S){if(h=+h,f=+f,S=+S,!(S>0))return[];if(f===h)return[f];const P=h<f,[$,j,H]=P?Tr(h,f,S):Tr(f,h,S);if(!(j>=$))return[];const K=j-$+1,ot=new Array(K);if(P)if(H<0)for(let _=0;_<K;++_)ot[_]=(j-_)/-H;else for(let _=0;_<K;++_)ot[_]=(j-_)*H;else if(H<0)for(let _=0;_<K;++_)ot[_]=($+_)/-H;else for(let _=0;_<K;++_)ot[_]=($+_)*H;return ot}function cr(f,h,S){return h=+h,f=+f,S=+S,Tr(f,h,S)[2]}function qr(f,h,S){h=+h,f=+f,S=+S;const P=h<f,$=P?cr(h,f,S):cr(f,h,S);return(P?-1:1)*($<0?1/-$:$)}var _r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Q(f){if(!(h=_r.exec(f)))throw new Error("invalid format: "+f);var h;return new vt({fill:h[1],align:h[2],sign:h[3],symbol:h[4],zero:h[5],width:h[6],comma:h[7],precision:h[8]&&h[8].slice(1),trim:h[9],type:h[10]})}Q.prototype=vt.prototype;function vt(f){this.fill=f.fill===void 0?" ":f.fill+"",this.align=f.align===void 0?">":f.align+"",this.sign=f.sign===void 0?"-":f.sign+"",this.symbol=f.symbol===void 0?"":f.symbol+"",this.zero=!!f.zero,this.width=f.width===void 0?void 0:+f.width,this.comma=!!f.comma,this.precision=f.precision===void 0?void 0:+f.precision,this.trim=!!f.trim,this.type=f.type===void 0?"":f.type+""}vt.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function k(f){return Math.abs(f=Math.round(f))>=1e21?f.toLocaleString("en").replace(/,/g,""):f.toString(10)}function z(f,h){if(!isFinite(f)||f===0)return null;var S=(f=h?f.toExponential(h-1):f.toExponential()).indexOf("e"),P=f.slice(0,S);return[P.length>1?P[0]+P.slice(2):P,+f.slice(S+1)]}function ft(f){return f=z(Math.abs(f)),f?f[1]:NaN}function Yt(f,h){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ft(h)/3)))*3-ft(Math.abs(f)))}function bt(f,h){return function(S,P){for(var $=S.length,j=[],H=0,K=f[0],ot=0;$>0&&K>0&&(ot+K+1>P&&(K=Math.max(1,P-ot)),j.push(S.substring($-=K,$+K)),!((ot+=K+1)>P));)K=f[H=(H+1)%f.length];return j.reverse().join(h)}}function rr(f){return function(h){return h.replace(/[0-9]/g,function(S){return f[+S]})}}function sr(f){t:for(var h=f.length,S=1,P=-1,$;S<h;++S)switch(f[S]){case".":P=$=S;break;case"0":P===0&&(P=S),$=S;break;default:if(!+f[S])break t;P>0&&(P=0);break}return P>0?f.slice(0,P)+f.slice($+1):f}var nr;function hr(f,h){var S=z(f,h);if(!S)return nr=void 0,f.toPrecision(h);var P=S[0],$=S[1],j=$-(nr=Math.max(-8,Math.min(8,Math.floor($/3)))*3)+1,H=P.length;return j===H?P:j>H?P+new Array(j-H+1).join("0"):j>0?P.slice(0,j)+"."+P.slice(j):"0."+new Array(1-j).join("0")+z(f,Math.max(0,h+j-1))[0]}function mt(f,h){var S=z(f,h);if(!S)return f+"";var P=S[0],$=S[1];return $<0?"0."+new Array(-$).join("0")+P:P.length>$+1?P.slice(0,$+1)+"."+P.slice($+1):P+new Array($-P.length+2).join("0")}var ir={"%":(f,h)=>(f*100).toFixed(h),b:f=>Math.round(f).toString(2),c:f=>f+"",d:k,e:(f,h)=>f.toExponential(h),f:(f,h)=>f.toFixed(h),g:(f,h)=>f.toPrecision(h),o:f=>Math.round(f).toString(8),p:(f,h)=>mt(f*100,h),r:mt,s:hr,X:f=>Math.round(f).toString(16).toUpperCase(),x:f=>Math.round(f).toString(16)};function xr(f){return f}var Wr=Array.prototype.map,wr=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function tn(f){var h=f.grouping===void 0||f.thousands===void 0?xr:bt(Wr.call(f.grouping,Number),f.thousands+""),S=f.currency===void 0?"":f.currency[0]+"",P=f.currency===void 0?"":f.currency[1]+"",$=f.decimal===void 0?".":f.decimal+"",j=f.numerals===void 0?xr:rr(Wr.call(f.numerals,String)),H=f.percent===void 0?"%":f.percent+"",K=f.minus===void 0?"\u2212":f.minus+"",ot=f.nan===void 0?"NaN":f.nan+"";function _(lt,Rt){lt=Q(lt);var Bt=lt.fill,er=lt.align,ur=lt.sign,yr=lt.symbol,dr=lt.zero,Fr=lt.width,$r=lt.comma,Sr=lt.precision,Lr=lt.trim,vr=lt.type;vr==="n"?($r=!0,vr="g"):ir[vr]||(Sr===void 0&&(Sr=12),Lr=!0,vr="g"),(dr||Bt==="0"&&er==="=")&&(dr=!0,Bt="0",er="=");var Rr=(Rt&&Rt.prefix!==void 0?Rt.prefix:"")+(yr==="$"?S:yr==="#"&&/[boxX]/.test(vr)?"0"+vr.toLowerCase():""),Zr=(yr==="$"?P:/[%p]/.test(vr)?H:"")+(Rt&&Rt.suffix!==void 0?Rt.suffix:""),jr=ir[vr],Gr=/[defgprs%]/.test(vr);Sr=Sr===void 0?6:/[gprs]/.test(vr)?Math.max(1,Math.min(21,Sr)):Math.max(0,Math.min(20,Sr));function br(Xt){var Er=Rr,Ir=Zr,Vr,se,vn;if(vr==="c")Ir=jr(Xt)+Ir,Xt="";else{Xt=+Xt;var ln=Xt<0||1/Xt<0;if(Xt=isNaN(Xt)?ot:jr(Math.abs(Xt),Sr),Lr&&(Xt=sr(Xt)),ln&&+Xt==0&&ur!=="+"&&(ln=!1),Er=(ln?ur==="("?ur:K:ur==="-"||ur==="("?"":ur)+Er,Ir=(vr==="s"&&!isNaN(Xt)&&nr!==void 0?wr[8+nr/3]:"")+Ir+(ln&&ur==="("?")":""),Gr){for(Vr=-1,se=Xt.length;++Vr<se;)if(vn=Xt.charCodeAt(Vr),48>vn||vn>57){Ir=(vn===46?$+Xt.slice(Vr+1):Xt.slice(Vr))+Ir,Xt=Xt.slice(0,Vr);break}}}$r&&!dr&&(Xt=h(Xt,1/0));var cn=Er.length+Xt.length+Ir.length,Nr=cn<Fr?new Array(Fr-cn+1).join(Bt):"";switch($r&&dr&&(Xt=h(Nr+Xt,Nr.length?Fr-Ir.length:1/0),Nr=""),er){case"<":Xt=Er+Xt+Ir+Nr;break;case"=":Xt=Er+Nr+Xt+Ir;break;case"^":Xt=Nr.slice(0,cn=Nr.length>>1)+Er+Xt+Ir+Nr.slice(cn);break;default:Xt=Nr+Er+Xt+Ir;break}return j(Xt)}return br.toString=function(){return lt+""},br}function At(lt,Rt){var Bt=Math.max(-8,Math.min(8,Math.floor(ft(Rt)/3)))*3,er=Math.pow(10,-Bt),ur=_((lt=Q(lt),lt.type="f",lt),{suffix:wr[8+Bt/3]});return function(yr){return ur(er*yr)}}return{format:_,formatPrefix:At}}var Dr,hn,Tn;ie({thousands:",",grouping:[3],currency:["$",""]});function ie(f){return Dr=tn(f),hn=Dr.format,Tn=Dr.formatPrefix,Dr}function ue(f,h){return f=Math.abs(f),h=Math.abs(h)-f,Math.max(0,ft(h)-ft(f))+1}function fe(f){return Math.max(0,-ft(Math.abs(f)))}function ve(f,h,S,P){var $=qr(f,h,S),j;switch(P=Q(P==null?",f":P),P.type){case"s":{var H=Math.max(Math.abs(f),Math.abs(h));return P.precision==null&&!isNaN(j=Yt($,H))&&(P.precision=j),Tn(P,H)}case"":case"e":case"g":case"p":case"r":{P.precision==null&&!isNaN(j=ue($,Math.max(Math.abs(f),Math.abs(h))))&&(P.precision=j-(P.type==="e"));break}case"f":case"%":{P.precision==null&&!isNaN(j=fe($))&&(P.precision=j-(P.type==="%")*2);break}}return hn(P)}var le,ce,de;function gn(f){var h=f.domain;return f.ticks=function(S){var P=h();return fr(P[0],P[P.length-1],S==null?10:S)},f.tickFormat=function(S,P){var $=h();return ve($[0],$[$.length-1],S==null?10:S,P)},f.nice=function(S){S==null&&(S=10);var P=h(),$=0,j=P.length-1,H=P[$],K=P[j],ot,_,At=10;for(K<H&&(_=H,H=K,K=_,_=$,$=j,j=_);At-- >0;){if(_=cr(H,K,S),_===ot)return P[$]=H,P[j]=K,h(P);if(_>0)H=Math.floor(H/_)*_,K=Math.ceil(K/_)*_;else if(_<0)H=Math.ceil(H*_)/_,K=Math.floor(K*_)/_;else break;ot=_}return f},f}function he(){var f=le();return f.copy=function(){return ce(f,he())},de.apply(f,arguments),gn(f)}function ge(f,h){f=f.slice();var S=0,P=f.length-1,$=f[S],j=f[P],H;return j<$&&(H=S,S=P,P=H,H=$,$=j,j=H),f[S]=h.floor($),f[P]=h.ceil(j),f}var ye,pe,me;function Rn(f){return Math.log(f)}function An(f){return Math.exp(f)}function xe(f){return-Math.log(-f)}function Se(f){return-Math.exp(-f)}function Ee(f){return isFinite(f)?+("1e"+f):f<0?0:f}function Ie(f){return f===10?Ee:f===Math.E?Math.exp:h=>Math.pow(f,h)}function Oe(f){return f===Math.E?Math.log:f===10&&Math.log10||f===2&&Math.log2||(f=Math.log(f),h=>Math.log(h)/f)}function Pn(f){return(h,S)=>-f(-h,S)}function Cn(f){const h=f(Rn,An),S=h.domain;let P=10,$,j;function H(){return $=Oe(P),j=Ie(P),S()[0]<0?($=Pn($),j=Pn(j),f(xe,Se)):f(Rn,An),h}return h.base=function(K){return arguments.length?(P=+K,H()):P},h.domain=function(K){return arguments.length?(S(K),H()):S()},h.ticks=K=>{const ot=S();let _=ot[0],At=ot[ot.length-1];const lt=At<_;lt&&([_,At]=[At,_]);let Rt=$(_),Bt=$(At),er,ur;const yr=K==null?10:+K;let dr=[];if(!(P%1)&&Bt-Rt<yr){if(Rt=Math.floor(Rt),Bt=Math.ceil(Bt),_>0){for(;Rt<=Bt;++Rt)for(er=1;er<P;++er)if(ur=Rt<0?er/j(-Rt):er*j(Rt),!(ur<_)){if(ur>At)break;dr.push(ur)}}else for(;Rt<=Bt;++Rt)for(er=P-1;er>=1;--er)if(ur=Rt>0?er/j(-Rt):er*j(Rt),!(ur<_)){if(ur>At)break;dr.push(ur)}dr.length*2<yr&&(dr=fr(_,At,yr))}else dr=fr(Rt,Bt,Math.min(Bt-Rt,yr)).map(j);return lt?dr.reverse():dr},h.tickFormat=(K,ot)=>{if(K==null&&(K=10),ot==null&&(ot=P===10?"s":","),typeof ot!="function"&&(!(P%1)&&(ot=Q(ot)).precision==null&&(ot.trim=!0),ot=hn(ot)),K===1/0)return ot;const _=Math.max(1,P*K/h.ticks().length);return At=>{let lt=At/j(Math.round($(At)));return lt*P<P-.5&&(lt*=P),lt<=_?ot(At):""}},h.nice=()=>S(ge(S(),{floor:K=>j(Math.floor($(K))),ceil:K=>j(Math.ceil($(K)))})),h}function Te(){const f=Cn(ye()).domain([1,10]);return f.copy=()=>pe(f,Te()).base(f.base()),me.apply(f,arguments),f}var Nn,Re,Ae;function rn(){var f=0,h=1,S,P,$,j,H=lr,K=!1,ot;function _(lt){return lt==null||isNaN(lt=+lt)?ot:H($===0?.5:(lt=(j(lt)-S)*$,K?Math.max(0,Math.min(1,lt)):lt))}_.domain=function(lt){return arguments.length?([f,h]=lt,S=j(f=+f),P=j(h=+h),$=S===P?0:1/(P-S),_):[f,h]},_.clamp=function(lt){return arguments.length?(K=!!lt,_):K},_.interpolator=function(lt){return arguments.length?(H=lt,_):H};function At(lt){return function(Rt){var Bt,er;return arguments.length?([Bt,er]=Rt,H=lt(Bt,er),_):[H(0),H(1)]}}return _.range=At(ut),_.rangeRound=At(St),_.unknown=function(lt){return arguments.length?(ot=lt,_):ot},function(lt){return j=lt,S=lt(f),P=lt(h),$=S===P?0:1/(P-S),_}}function nn(f,h){return h.domain(f.domain()).interpolator(f.interpolator()).clamp(f.clamp()).unknown(f.unknown())}function Mn(){var f=gn(rn()(lr));return f.copy=function(){return nn(f,Mn())},Xr.apply(f,arguments)}function Dn(){var f=Cn(rn()).domain([1,10]);return f.copy=function(){return nn(f,Dn()).base(f.base())},Xr.apply(f,arguments)}function Pe(){var f=Re(rn());return f.copy=function(){return nn(f,Pe()).constant(f.constant())},Nn.apply(f,arguments)}function Fn(){var f=Ae(rn());return f.copy=function(){return nn(f,Fn()).exponent(f.exponent())},Nn.apply(f,arguments)}function ro(){return Fn.apply(null,arguments).exponent(.5)}var Ce=Object.defineProperty,$n=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ln=(f,h,S)=>h in f?Ce(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,qt=(f,h)=>{for(var S in h||(h={}))Ne.call(h,S)&&Ln(f,S,h[S]);if($n)for(var S of $n(h))Me.call(h,S)&&Ln(f,S,h[S]);return f};const De={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_",dummy:"_dummy_"},Fe={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcLabelLineText:"bb-arc-label-line-text",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},$e={area:"bb-area",areas:"bb-areas"},Le={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip",axisTooltipX:"bb-axis-tooltip-x",axisTooltipY:"bb-axis-tooltip-y"},be={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars",barConnectLine:"bb-bar-connectLine"},Ue={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},Be={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},je={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},Ge={dragarea:"bb-dragarea",INCLUDED:"_included_"},He={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},We={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},Ve={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},ze={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},Ke={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},Ye={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},Xe={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},Je={level:"bb-level",levels:"bb-levels"},we={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},Qe={region:"bb-region",regions:"bb-regions"},Ze={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},ke={shape:"bb-shape",shapes:"bb-shapes"},qe={brush:"bb-brush",subchart:"bb-subchart"},_e={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",textBorderRect:"bb-text-border",textLabelImage:"bb-text-label-image",TextOverlapping:"text-overlapping"},yn={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},ta={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},ra={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var no=qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt(qt({},De),Fe),$e),Le),be),Ue),Be),je),Ge),We),Ve),ze),Ke),Ye),He),Xe),Je),we),Qe),Ze),ke),qe),_e),yn),ta),ra);const eo=f=>f||f===0,bn=f=>typeof f=="function",pn=f=>typeof f=="string",Un=f=>typeof f=="number",na=f=>typeof f=="undefined",ea=f=>typeof f!="undefined",ao=f=>typeof f=="boolean",oo=f=>Math.ceil(f/10)*10,so=f=>Math.ceil(f)+.5,io=f=>f[1]-f[0],mn=f=>typeof f=="object",aa=f=>{for(const h in f)return!1;return!0},Bn=f=>na(f)||f===null||pn(f)&&f.length===0||mn(f)&&!(f instanceof Date)&&aa(f)||Un(f)&&isNaN(f),uo=f=>!Bn(f),jn=f=>Array.isArray(f),xn=f=>f&&!(f!=null&&f.nodeType)&&mn(f)&&!jn(f);function oa(f){const h=this.config;let S,P,$;const j=()=>{const H=P.shift();if(H&&S&&mn(S)&&H in S)return S=S[H],j();if(!H)return S};Object.keys(h).forEach(H=>{S=f,P=H.split("_"),$=j(),ea($)&&(h[H]=$)}),this.api&&(this.state.orgConfig=f)}var sa=Object.defineProperty,ia=(f,h,S)=>h in f?sa(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,en=(f,h,S)=>ia(f,typeof h!="symbol"?h+"":h,S);class Gn{constructor(h={}){en(this,"$$"),en(this,"options"),en(this,"config"),this.options=h}loadConfig(){oa.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(h=>{this[h]=null,delete this[h]})}}en(Gn,"version","4.0.1");function ua(f){return f}var an=1,on=2,Sn=3,Qr=4,Hn=1e-6;function fa(f){return"translate("+f+",0)"}function va(f){return"translate(0,"+f+")"}function la(f){return h=>+f(h)}function ca(f,h){return h=Math.max(0,f.bandwidth()-h*2)/2,f.round()&&(h=Math.round(h)),S=>+f(S)+h}function da(){return!this.__axis}function sn(f,h){var S=[],P=null,$=null,j=6,H=6,K=3,ot=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,_=f===an||f===Qr?-1:1,At=f===Qr||f===on?"x":"y",lt=f===an||f===Sn?fa:va;function Rt(Bt){var er=P==null?h.ticks?h.ticks.apply(h,S):h.domain():P,ur=$==null?h.tickFormat?h.tickFormat.apply(h,S):ua:$,yr=Math.max(j,0)+K,dr=h.range(),Fr=+dr[0]+ot,$r=+dr[dr.length-1]+ot,Sr=(h.bandwidth?ca:la)(h.copy(),ot),Lr=Bt.selection?Bt.selection():Bt,vr=Lr.selectAll(".domain").data([null]),Rr=Lr.selectAll(".tick").data(er,h).order(),Zr=Rr.exit(),jr=Rr.enter().append("g").attr("class","tick"),Gr=Rr.select("line"),br=Rr.select("text");vr=vr.merge(vr.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Rr=Rr.merge(jr),Gr=Gr.merge(jr.append("line").attr("stroke","currentColor").attr(At+"2",_*j)),br=br.merge(jr.append("text").attr("fill","currentColor").attr(At,_*yr).attr("dy",f===an?"0em":f===Sn?"0.71em":"0.32em")),Bt!==Lr&&(vr=vr.transition(Bt),Rr=Rr.transition(Bt),Gr=Gr.transition(Bt),br=br.transition(Bt),Zr=Zr.transition(Bt).attr("opacity",Hn).attr("transform",function(Xt){return isFinite(Xt=Sr(Xt))?lt(Xt+ot):this.getAttribute("transform")}),jr.attr("opacity",Hn).attr("transform",function(Xt){var Er=this.parentNode.__axis;return lt((Er&&isFinite(Er=Er(Xt))?Er:Sr(Xt))+ot)})),Zr.remove(),vr.attr("d",f===Qr||f===on?H?"M"+_*H+","+Fr+"H"+ot+"V"+$r+"H"+_*H:"M"+ot+","+Fr+"V"+$r:H?"M"+Fr+","+_*H+"V"+ot+"H"+$r+"V"+_*H:"M"+Fr+","+ot+"H"+$r),Rr.attr("opacity",1).attr("transform",function(Xt){return lt(Sr(Xt)+ot)}),Gr.attr(At+"2",_*j),br.attr(At,_*yr).text(ur),Lr.filter(da).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",f===on?"start":f===Qr?"end":"middle"),Lr.each(function(){this.__axis=Sr})}return Rt.scale=function(Bt){return arguments.length?(h=Bt,Rt):h},Rt.ticks=function(){return S=Array.from(arguments),Rt},Rt.tickArguments=function(Bt){return arguments.length?(S=Bt==null?[]:Array.from(Bt),Rt):S.slice()},Rt.tickValues=function(Bt){return arguments.length?(P=Bt==null?null:Array.from(Bt),Rt):P&&P.slice()},Rt.tickFormat=function(Bt){return arguments.length?($=Bt,Rt):$},Rt.tickSize=function(Bt){return arguments.length?(j=H=+Bt,Rt):j},Rt.tickSizeInner=function(Bt){return arguments.length?(j=+Bt,Rt):j},Rt.tickSizeOuter=function(Bt){return arguments.length?(H=+Bt,Rt):H},Rt.tickPadding=function(Bt){return arguments.length?(K=+Bt,Rt):K},Rt.offset=function(Bt){return arguments.length?(ot=+Bt,Rt):ot},Rt}function fo(f){return sn(an,f)}function ha(f){return sn(on,f)}function vo(f){return sn(Sn,f)}function lo(f){return sn(Qr,f)}function Wn(f){return function(h){return Math.sign(h)*Math.log1p(Math.abs(h/f))}}function Vn(f){return function(h){return Math.sign(h)*Math.expm1(Math.abs(h))*f}}function ga(f){var h=1,S=f(Wn(h),Vn(h));return S.constant=function(P){return arguments.length?f(Wn(h=+P),Vn(h)):h},gn(S)}function zn(){var f=ga(Hr());return f.copy=function(){return kr(f,zn()).constant(f.constant())},mr.apply(f,arguments)}var Ar={colorScale:"bb-colorscale",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions"},ya,pa,Kn,ma,Yn,Xn,xa,Sa,Jn,Ea=Object.defineProperty,wn=Object.getOwnPropertySymbols,Ia=Object.prototype.hasOwnProperty,Oa=Object.prototype.propertyIsEnumerable,Qn=(f,h,S)=>h in f?Ea(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,Zn=(f,h)=>{for(var S in h||(h={}))Ia.call(h,S)&&Qn(f,S,h[S]);if(wn)for(var S of wn(h))Oa.call(h,S)&&Qn(f,S,h[S]);return f};function kn(f,h){for(let S=0;S<f.length;S++){const P=f[S];P!==null&&Kn(P)&&h(P,S)}}function co(f,h,S){return Kn(f[h])?f[h]:S}function ho(f,h){for(const S in f)if(f[S]===h)return!0;return!1}function go(f,h,...S){const P=ma(f);return P&&f.call(h,...S),P}function yo(f,h){let S=0;const P=function(...$){!--S&&h.apply(this,$)};"duration"in f?f.each(()=>++S).on("end",P):(++S,f.call(P))}const po=f=>f.charAt(0).toUpperCase()+f.slice(1);function mo(f,h="-"){return f.split(h).map((S,P)=>P?S.charAt(0).toUpperCase()+S.slice(1).toLowerCase():S.toLowerCase()).join("")}const xo=f=>[].slice.call(f);function So(...f){const h=S=>{if(Yn(S))return S.map(h);if(Xn(S)&&S.constructor){const P=new S.constructor;for(const $ in S)P[$]=h(S[$]);return P}return S};return f.map(S=>h(S)).reduce((S,P)=>Zn(Zn({},S),P))}function Ta(f={},h){Yn(h)&&h.forEach(S=>Ta(f,S));for(const S in h)/^\d+$/.test(S)||S in f||(f[S]=h[S]);return f}function Eo(f){const h=f[0]instanceof Date,S=Array.from(new Set(h?f.map(Number):f));return h?S.map(P=>new Date(P)):S}function Io(f){return f&&f.length?f.reduce((h,S)=>h.concat(S)):[]}function En(f,...h){if(!h.length||h.length===1&&!h[0])return f;const S=h.shift();return xn(f)&&xn(S)&&Object.keys(S).forEach(P=>{if(!/^(__proto__|constructor|prototype)$/i.test(P)){const $=S[P];$ instanceof Date?f[P]=new Date($.getTime()):xn($)?(!f[P]&&(f[P]={}),f[P]=En(f[P],$)):f[P]=jn($)?$.concat():$}}),En(f,...h)}function Ra(f,h=!0){let S;return f[0]instanceof Date?S=h?(P,$)=>P-$:(P,$)=>$-P:h&&!f.every(isNaN)?S=(P,$)=>P-$:h||(S=(P,$)=>P>$&&-1||P<$&&1||P===$&&0),f.concat().sort(S)}function Oo(f,h){let S=h.filter(P=>xa(P));if(S.length)if(Sa(S[0])){let P=f==="min"?1/0:-1/0;for(const $ of S)(f==="min"?$<P:$>P)&&(P=$);S=P}else S[0]instanceof Date&&(S=Ra(S,f==="min")[0]);else S=void 0;return S}const Aa=(f,h,S=1)=>{const P=[],$=Math.max(0,Math.ceil((h-f)/S))|0;for(let j=0;j<$;j++)P.push(f+j*S);return P};let Pa=0;function To(f=!0){const h=++Pa;return f?String(h):h}function qn(f,h,S,P,$){if(S>P)return-1;const j=Math.floor((S+P)/2);let{x:H,w:K=0}=f[j];return $&&(H=f[j].y,K=f[j].h),h>=H&&h<=H+K?j:h<H?qn(f,h,S,j-1,$):qn(f,h,j+1,P,$)}function Ro(f,h){return pa(f.replace(/\{=([^}]+)\}/g,(S,P)=>{var $;return($=h[P])!=null?$:""}))}function Ca(f){var h;let S;if(f instanceof Date)S=f;else if(pn(f)){const{config:P,format:$}=this;S=(h=$.dataTime(P.data_xFormat)(f))!=null?h:new Date(f)}else Un(f)&&!isNaN(f)&&(S=new Date(+f));return(!S||isNaN(+S))&&console&&console.error&&console.error(`Failed to parse x '${f}' to Date object`),S}function Ao(f){if(Xn(f)&&!Jn(f)){const H=f;return{top:H.top||0,right:H.right||0,bottom:H.bottom||0,left:H.left||0}}const h=(Jn(f)?f.trim().split(/\s+/):[f]).map(H=>+H||0),[S,P=S,$=S,j=P]=h;return{top:S,right:P,bottom:$,left:j}}function Na(f,h){h()===!1?ya(()=>Na(f,h)):f()}function Po(f,h=(S=>S)){const S=new Set;return kn(f,(P,$)=>{S.add(h(P,$))}),S}function Co(f,h,S=(P=>P)){const P=new Map;return kn(f,($,j)=>{P.set(h($,j),S($,j))}),P}function Ma(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function Da(f){const h=typeof(f==null?void 0:f.requestAnimationFrame)=="function"&&typeof(f==null?void 0:f.cancelAnimationFrame)=="function",S=typeof(f==null?void 0:f.requestIdleCallback)=="function"&&typeof(f==null?void 0:f.cancelIdleCallback)=="function",P=j=>setTimeout(j,1),$=j=>clearTimeout(j);return[h?f.requestAnimationFrame:P,h?f.cancelAnimationFrame:$,S?f.requestIdleCallback:P,S?f.cancelIdleCallback:$]}const un=Ma(),Fa=un==null?void 0:un.document,[No,Mo,Do,Fo]=Da(un);var $a,Pr,In,La,ba;const Ua=/\s?(bb-)/g,Ba=/\.+/g;function ja(f){return f.replace(Ua,".$1").replace(Ba,".")}function _n(f,h,S=!1){const P=j=>j[f?"getBoundingClientRect":"getBBox"](),$=f?"rectClient":"rectBBox";return S?P(h):!($ in h)||h.hasAttribute("width")&&h[$].width!==+(h.getAttribute("width")||0)?h[$]=P(h):h[$]}function $o(f,h,S=[-1,1],P=!1){if(!(!f||!ba(h)))if(h.indexOf(`
|
|
12
12
|
`)===-1)f.text(h);else{const $=[f.text(),h].map(j=>j.replace(/[\s\n]/g,""));if($[0]!==$[1]){const j=h.split(`
|
|
13
13
|
`),H=P?j.length-1:1;f.html(""),j.forEach((K,ot)=>{f.append("tspan").attr("x",0).attr("dy",`${ot===0?S[0]*H:S[1]}em`).text(K)})}}}function Ga(f){const{x:h,y:S,width:P,height:$}=re(f,!0);return[{x:h,y:S+$},{x:h,y:S},{x:h+P,y:S},{x:h+P,y:S+$}]}function Lo(f){const{width:h,height:S}=te(f),P=Ga(f),$=P[0].x,j=Math.min(P[0].y,P[1].y);return{x:$,y:j,width:h,height:S}}function bo(f,h){var S;const P=f&&((S=f.touches||f.sourceEvent&&f.sourceEvent.touches)==null?void 0:S[0]);let $=[0,0];try{$=$a(P||f,h)}catch(j){}return $.map(j=>isNaN(j)?0:j)}function te(f,h=!1){return _n(!0,f,h)}function re(f,h=!1){return _n(!1,f,h)}function Uo(f,h,S){const{rootSelector:P="",sheet:$}=f,j=`${P} ${ja(h)} {${S.join(";")}}`;return $[$.insertRule?"insertRule":"addRule"](j,$.cssRules.length)}function Bo(f){let h=[];return f.forEach(S=>{var P;try{S.cssRules&&S.cssRules.length&&(h=h.concat(La(S.cssRules)))}catch($){(P=Pr.console)==null||P.warn(`Error while reading rules from ${S.href}: ${String($)}`)}}),h}function jo(f){var h,S,P,$,j,H;return{x:((S=(h=Pr.pageXOffset)!=null?h:Pr.scrollX)!=null?S:0)+((P=f.scrollLeft)!=null?P:0),y:((j=($=Pr.pageYOffset)!=null?$:Pr.scrollY)!=null?j:0)+((H=f.scrollTop)!=null?H:0)}}function Go(f,h=0,S=0,P=!0){const $=new DOMPoint(h,S),j=f.getScreenCTM(),H=$.matrixTransform(P?j==null?void 0:j.inverse():j);if(P===!1){const K=te(f);H.x-=K.x,H.y-=K.y}return H}function Ha(f){const h=f?f.transform:null,S=h&&h.baseVal;return S&&S.numberOfItems?S.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Ho(f,h){var S;const P=(S=f==null?void 0:f.getAttribute)==null?void 0:S.call(f,h);if(P)return parseFloat(P);const $=Ha(f);return h==="x"?$.e:$.f}function Wo(f){const h=f.attr("viewBox");return h?h.trim().split(/[\s,]+/).length===4:!1}function Vo(f,h,S=!1){const P=!!f.node;let $=!1;for(const[j,H]of Object.entries(h))if($=P?f.style(j)===H:f.style[j]===H,S?!$:$)break;return $}function zo(){var f,h;return((f=In)==null?void 0:f.hidden)===!1||((h=In)==null?void 0:h.visibilityState)==="visible"}function Ko(f,h){const{DocumentTouch:S,matchMedia:P,navigator:$}=Pr,j=P==null?void 0:P("(pointer:coarse)").matches;let H=!1;if(h)if($&&"maxTouchPoints"in $)H=$.maxTouchPoints>0;else if("ontouchmove"in Pr||S&&In instanceof S)H=!0;else if(j)H=!0;else{const ot=$.userAgent;H=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(ot)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(ot)}return f&&!j&&(P==null?void 0:P("(pointer:fine)").matches)&&"mouse"||H&&"touch"||"mouse"}function Yo(f,h){f.pendingRaf!==null?(Pr.cancelAnimationFrame(f.pendingRaf),f.pendingRaf=Pr.requestAnimationFrame(()=>{f.pendingRaf=null,h()})):(f.pendingRaf=Pr.requestAnimationFrame(()=>{f.pendingRaf=null}),h())}const Xo={mouse:(()=>{const f=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(h,S,P=f())=>{h.dispatchEvent(new MouseEvent(S,P))}}catch(h){return(S,P,$=f())=>{const j=Fa.createEvent("MouseEvent");j.initMouseEvent(P,$.bubbles,$.cancelable,un,0,$.screenX,$.screenY,$.clientX,$.clientY,!1,!1,!1,!1,0,null),S.dispatchEvent(j)}}})(),touch:(f,h,S)=>{const P=new Touch(En({identifier:Date.now(),target:f,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},S));f.dispatchEvent(new TouchEvent(h,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[P],targetTouches:[],changedTouches:[P]}))}};var Wa=Object.defineProperty,Va=(f,h,S)=>h in f?Wa(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,ne=(f,h,S)=>Va(f,typeof h!="symbol"?h+"":h,S);function za(f){return f==="d"?h=>Math.round(h).toString():h=>String(h)}class Ka{constructor(h){ne(this,"owner"),ne(this,"colorScale"),this.owner=h}drawColorScale(){const{$$:h,config:S}=this.owner,P=h.data.targets[0],$=h.state.height-S.padding_bottom-S.padding_top,j=S.scale_width,H=5,K=Aa(S.padding_bottom,$,H),ot=Mn(P.colors).domain([K[K.length-1],K[0]]);this.colorScale&&this.colorScale.remove(),this.colorScale=h.$el.svg.append("g").attr("width",50).attr("height",$).attr("class",Ar.colorScale),this.colorScale.append("g").attr("transform",`translate(0, ${S.padding_top})`).selectAll("bars").data(K).enter().append("rect").attr("y",(Bt,er)=>er*H).attr("x",0).attr("width",j).attr("height",H).attr("fill",Bt=>ot(Bt));const _=zn().domain([P.minEpochs,P.maxEpochs]).range([K[0]+S.padding_top+K[K.length-1]+H-1,K[0]+S.padding_top]),At=ha(_),lt=S.scale_format;lt==="pow10"?At.tickValues([1,10,100,1e3,1e4,1e5,1e6,1e7]):bn(lt)?At.tickFormat(lt):At.tickFormat(za("d"));const Rt=this.colorScale.append("g").attr("class","legend axis").attr("transform",`translate(${j},0)`).call(At);lt==="pow10"&&Rt.selectAll(".tick text").text(null).filter(Bt=>Bt/Math.pow(10,Math.ceil(Math.log(Bt)/Math.LN10-1e-12))===1).text(10).append("tspan").attr("dy","-.7em").text(Bt=>Math.round(Math.log(Bt)/Math.LN10)),this.colorScale.attr("transform",`translate(${h.state.current.width-this.xForColorScale()}, 0)`)}xForColorScale(){return this.owner.config.padding_right+re(this.colorScale.node(),!0).width}getColorScalePadding(){return this.xForColorScale()+this.owner.config.padding_left+20}}function Ya(f,h){const S=f.x,P=f.value;let $=!1;for(let j=0,H=h.length-1;j<h.length;H=j++){const K=h[j].x,ot=h[j].y,_=h[H].x,At=h[H].y;ot>P!=At>P&&S<(_-K)*(P-ot)/(At-ot)+K&&($=!$)}return $}function Xa(f,h){return f.epochs<h.epochs?-1:f.epochs>h.epochs?1:0}function Ja(f){let h=0,S,P;for(let $=0,j=f.length,H=j-1;$<j;H=$,$++)S=f[$],P=f[H],h+=S.x*P.y,h-=S.y*P.x;return h/=2,h}function fn(f){const h=Ja(f);let S=0,P=0,$;for(let j=0,H=f.length,K=H-1;j<H;K=j,j++){const ot=f[j],_=f[K];$=ot.x*_.y-_.x*ot.y,S+=(ot.x+_.x)*$,P+=(ot.y+_.y)*$}return $=h*6,{x:S/$,y:P/$}}var wa=Object.defineProperty,Qa=(f,h,S)=>h in f?wa(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,Za=(f,h,S)=>Qa(f,typeof h!="symbol"?h+"":h,S);class ka{constructor(h){Za(this,"owner"),this.owner=h;const S=h.$$.$el.main.select(".bb-chart").append("g").attr("class",Ar.stanfordElements);S.append("g").attr("class",Ar.stanfordLines),S.append("g").attr("class",Ar.stanfordRegions)}updateStanfordLines(h){const{$$:S}=this.owner,{config:P,$el:{main:$}}=S,j=P.axis_rotated,H=this.xvCustom.bind(S),K=this.yvCustom.bind(S),ot=$.select(`.${Ar.stanfordLines}`).style("shape-rendering","geometricprecision").selectAll(`.${Ar.stanfordLine}`).data(this.owner.config.lines);ot.exit().transition().duration(h).style("opacity","0").remove();const _=ot.enter().append("g");_.append("line").style("opacity","0"),_.merge(ot).attr("class",At=>Ar.stanfordLine+(At.class?` ${At.class}`:"")).select("line").transition().duration(h).attr("x1",At=>j?K(At,"y1"):H(At,"x1")).attr("x2",At=>j?K(At,"y2"):H(At,"x2")).attr("y1",At=>j?H(At,"x1"):K(At,"y1")).attr("y2",At=>j?H(At,"x2"):K(At,"y2")).transition().style("opacity",null)}updateStanfordRegions(h){const{$$:S}=this.owner,{config:P,$el:{main:$}}=S,j=P.axis_rotated,H=this.xvCustom.bind(S),K=this.yvCustom.bind(S),ot=this.owner.countEpochsInRegion.bind(S);let _=$.select(`.${Ar.stanfordRegions}`).selectAll(`.${Ar.stanfordRegion}`).data(this.owner.config.regions);_.exit().transition().duration(h).style("opacity","0").remove();const At=_.enter().append("g");At.append("polygon").style("opacity","0"),At.append("text").attr("transform",j?"rotate(-90)":"").style("opacity","0"),_=At.merge(_),_.attr("class",lt=>Ar.stanfordRegion+(lt.class?` ${lt.class}`:"")).select("polygon").transition().duration(h).attr("points",lt=>lt.points.map(Rt=>[j?K(Rt,"y"):H(Rt,"x"),j?H(Rt,"x"):K(Rt,"y")].join(",")).join(" ")).transition().style("opacity",lt=>String(lt.opacity?lt.opacity:.2)),_.select("text").transition().duration(h).attr("x",lt=>j?K(fn(lt.points),"y"):H(fn(lt.points),"x")).attr("y",lt=>j?H(fn(lt.points),"x"):K(fn(lt.points),"y")).text(lt=>{if(lt.text){const{value:Rt,percentage:Bt}=ot(lt.points);return lt.text(Rt,Bt)}return""}).attr("text-anchor","middle").attr("dominant-baseline","middle").transition().style("opacity",null)}updateStanfordElements(h=0){this.updateStanfordLines(h),this.updateStanfordRegions(h)}xvCustom(h,S){const P=this,{axis:$,config:j}=P;let H=S?h[S]:P.getBaseValue(h);return $.isTimeSeries()?H=Ca.call(P,H):$.isCategorized()&&pn(H)&&(H=j.axis_x_categories.indexOf(h.value)),P.scale.x(H)}yvCustom(h,S){const P=this,$=h.axis&&h.axis==="y2"?P.scale.y2:P.scale.y,j=S?h[S]:P.getBaseValue(h);return $(j)}}class ee{constructor(){return{colors:void 0,epochs:[],lines:[],scale_min:void 0,scale_max:void 0,scale_width:20,scale_format:void 0,padding_top:0,padding_right:0,padding_bottom:0,padding_left:0,regions:[]}}}var qa=Object.defineProperty,_a=(f,h,S)=>h in f?qa(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,ae=(f,h,S)=>_a(f,typeof h!="symbol"?h+"":h,S);function oe(f,h,S,P=1){return{h:+f,s:+h,l:+S,opacity:+P}}class to extends Gn{constructor(h){return super(h),ae(this,"colorScale"),ae(this,"elements"),this.config=new ee,this}$beforeInit(){const{$$:h}=this;h.config.data_xSort=!1,h.isMultipleX=()=>!0,h.showGridFocus=()=>{},h.labelishData=P=>P.values,h.opacityForCircle=()=>1;const S=h.getCurrentPadding.bind(h);h.getCurrentPadding=()=>{const P=S();return P.right+=this.colorScale?this.colorScale.getColorScalePadding():0,P}}$init(){const{$$:h}=this;this.loadConfig(),h.color=this.getStanfordPointColor.bind(h),this.colorScale=new Ka(this),this.elements=new ka(this),this.convertData(),this.initStanfordData(),this.setStanfordTooltip(),this.colorScale.drawColorScale(),h.right+=this.colorScale?this.colorScale.getColorScalePadding():0,this.$redraw()}$redraw(h){var S,P;(S=this.colorScale)==null||S.drawColorScale(),(P=this.elements)==null||P.updateStanfordElements(h)}getOptions(){return new ee}convertData(){const h=this.$$.data.targets,S=this.options.epochs;h.forEach(P=>{P.values.forEach(($,j)=>{$.epochs=S[j]}),P.minEpochs=void 0,P.maxEpochs=void 0,P.colors=void 0,P.colorscale=void 0})}initStanfordData(){const{config:h}=this,S=this.$$.data.targets[0];S.values.sort(Xa);let P=1/0,$=-1/0;for(let j=0;j<S.values.length;j++){const H=S.values[j].epochs;H<P&&(P=H),H>$&&($=H)}S.minEpochs=isNaN(h.scale_min)?P:h.scale_min,S.maxEpochs=isNaN(h.scale_max)?$:h.scale_max,S.colors=bn(h.colors)?h.colors:Ut(oe(250,1,.5),oe(0,1,.5)),S.colorscale=Dn(S.colors).domain([S.minEpochs,S.maxEpochs])}getStanfordPointColor(h){return this.data.targets[0].colorscale(h.epochs)}setStanfordTooltip(){const{config:h}=this.$$;Bn(h.tooltip_contents)&&(h.tooltip_contents=function(S,P,$,j){const{data_x:H}=h;let K=`<table class="${yn.tooltip}"><tbody>`;return S.forEach(ot=>{const{id:_="",value:At=0,epochs:lt=0,x:Rt=""}=ot;K+=`<tr>
|
|
14
14
|
<th>${H||""}</th>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -23742,7 +23742,7 @@ class Plugin {
|
|
|
23742
23742
|
});
|
|
23743
23743
|
}
|
|
23744
23744
|
}
|
|
23745
|
-
__publicField(Plugin, "version", "4.0.
|
|
23745
|
+
__publicField(Plugin, "version", "4.0.1");
|
|
23746
23746
|
|
|
23747
23747
|
;// ./src/Plugin/tableview/const.ts
|
|
23748
23748
|
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/(function(sr,_t){typeof exports=="object"&&typeof module=="object"?module.exports=_t():typeof define=="function"&&define.amd?define("bb",[],_t):typeof exports=="object"?exports.bb=_t():(sr.bb=sr.bb||{},sr.bb.plugin=sr.bb.plugin||{},sr.bb.plugin["tableview.pkgd"]=_t())})(this,function(){return(function(){"use strict";var Sr={91469:(function(i,c,t){t.d(c,{default:function(){return nr}});const r=new Set(["span","div","p","br","b","i","em","small","strong","mark","u","s","sub","sup","h1","h2","h3","h4","h5","h6","ul","ol","li","dl","dt","dd","table","thead","tbody","tfoot","tr","th","td","caption","colgroup","col","hr","pre","code","blockquote","abbr","ins","del","a","img","figure","figcaption","svg","g","path","circle","ellipse","rect","line","polyline","polygon","text","tspan","textPath","use","defs","symbol","clipPath","mask","linearGradient","radialGradient","stop","pattern","marker","title","desc"]),n=new Set(["class","id","style","title","lang","dir","href","src","alt","width","height","colspan","rowspan","scope","headers","d","points","x","y","x1","x2","y1","y2","cx","cy","r","rx","ry","dx","dy","viewBox","preserveAspectRatio","transform","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-opacity","stroke-linecap","stroke-linejoin","stroke-dasharray","stroke-dashoffset","opacity","clip-path","clip-rule","mask","font-family","font-size","font-weight","font-style","text-anchor","dominant-baseline","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","spreadMethod","patternUnits","patternTransform","marker-start","marker-mid","marker-end","markerWidth","markerHeight","refX","refY","xlink:href"]),e=new Map;r.forEach($=>e.set($.toLowerCase(),$));const a=new Map;n.forEach($=>a.set($.toLowerCase(),$));const o=new Set(["http:","https:","mailto:"]),s=new Set(["href","src","xlink:href"]),u=/^<\/?([a-zA-Z][a-zA-Z0-9]*)/,v=/^<\/([a-zA-Z][a-zA-Z0-9]*)\s*>$/,f=/^<([a-zA-Z][a-zA-Z0-9]*)([\s\S]*?)(\/?)>$/,l=/([a-zA-Z][\w:-]*)\s*(?:=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g,d=/url\s*\(\s*["']?([^"')]+)["']?\s*\)/gi,g=["expression(","behavior:","binding:","@import","@charset","-moz-binding:"];function h($){return $.replace(/:/gi,":").replace(/&newline;/gi,`
|
|
12
|
-
`).replace(/&tab;/gi," ").replace(/ /gi," ").replace(/</gi,"<").replace(/>/gi,">").replace(/&/gi,"&").replace(/"/gi,'"').replace(/'/gi,"'").replace(/&#(\d+);?/gi,(H,G)=>String.fromCharCode(parseInt(G,10))).replace(/&#x([0-9a-f]+);?/gi,(H,G)=>String.fromCharCode(parseInt(G,16)))}function p($){const G=h($).trim().replace(/[\s\u0000-\u001f]/g,"").toLowerCase();if(!G||G.startsWith("#"))return!0;const ut=G.match(/^[^/?#]*:/);return ut?o.has(ut[0]):!0}function y($){const G=h($).replace(/[\u0000-\u001f]/g,"");d.lastIndex=0;let ut;for(;(ut=d.exec(G))!==null;)if(!p(ut[1]))return null;const It=G.toLowerCase().replace(/\s/g,"");for(const Wt of g)if(It.includes(Wt))return null;return $}const S={'"':""","'":"'","`":"`"},E=/["'`]/g;function m($){return $.replace(E,H=>S[H])}function x($,H,G=!1){if(s.has($))return p(H)?G?m(H):H:null;if($==="style"){const It=y(H);return It===null?null:G?m(It):It}const ut=h(H).toLowerCase().replace(/\s/g,"");return/\bon\w+=/.test(ut)?null:G?m(H):H}function I($){const H=$.match(u);return H?H[1].toLowerCase():null}function O($){const H=I($);return H!==null&&e.has(H)}function T($){var H,G,ut;const It=$.match(v);if(It){const zt=It[1].toLowerCase();return`</${(H=e.get(zt))!=null?H:zt}>`}const Wt=$.match(f);if(!Wt)return"";const[,W,tt,Y]=Wt,j=W.toLowerCase(),rt=(G=e.get(j))!=null?G:j,Ft=[];l.lastIndex=0;let Ot;for(;(Ot=l.exec(tt))!==null;){const zt=Ot[1].toLowerCase(),qt=Ot[2],lt=Ot[3],Qt=Ot[4];if(zt.startsWith("on"))continue;const rr=(ut=a.get(zt))!=null?ut:zt;let ir,ur;if(qt!==void 0)ir=qt,ur='"';else if(lt!==void 0)ir=lt,ur="'";else if(Qt!==void 0)ir=Qt,ur='"';else{a.has(zt)&&Ft.push(rr);continue}if(a.has(zt)){const fr=x(zt,ir,Qt!==void 0);fr!==null&&Ft.push(`${rr}=${ur}${fr}${ur}`)}}const Zt=Ft.length>0?` ${Ft.join(" ")}`:"";return`<${rt}${Zt}${Y?"/>":">"}`}function A($){return typeof $!="string"||!$||$.indexOf("<")===-1?$:$.replace(/<\/?[^>]*>|[^<>\s]+>/g,H=>H.startsWith("<!--")?"":H.startsWith("<")?O(H)?T(H):H.replace(/</g,"<"):H.slice(0,-1)+">")}var P,R,C,N,M,D,F,L,U=Object.defineProperty,B=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,K=($,H,G)=>H in $?U($,H,{enumerable:!0,configurable:!0,writable:!0,value:G}):$[H]=G,_=($,H)=>{for(var G in H||(H={}))b.call(H,G)&&K($,G,H[G]);if(B)for(var G of B(H))X.call(H,G)&&K($,G,H[G]);return $};function Q($,H){for(let G=0;G<$.length;G++){const ut=$[G];ut!==null&&R(ut)&&H(ut,G)}}function w($,H,G){return R($[H])?$[H]:G}function V($,H){for(const G in $)if($[G]===H)return!0;return!1}function z($,H,...G){const ut=C($);return ut&&$.call(H,...G),ut}function Z($,H){let G=0;const ut=function(...It){!--G&&H.apply(this,It)};"duration"in $?$.each(()=>++G).on("end",ut):(++G,$.call(ut))}const at=$=>$.charAt(0).toUpperCase()+$.slice(1);function gt($,H="-"){return $.split(H).map((G,ut)=>ut?G.charAt(0).toUpperCase()+G.slice(1).toLowerCase():G.toLowerCase()).join("")}const q=$=>[].slice.call($);function vt(...$){const H=G=>{if(N(G))return G.map(H);if(M(G)&&G.constructor){const ut=new G.constructor;for(const It in G)ut[It]=H(G[It]);return ut}return G};return $.map(G=>H(G)).reduce((G,ut)=>_(_({},G),ut))}function St($={},H){N(H)&&H.forEach(G=>St($,G));for(const G in H)/^\d+$/.test(G)||G in $||($[G]=H[G]);return $}function Pt($){const H=$[0]instanceof Date,G=Array.from(new Set(H?$.map(Number):$));return H?G.map(ut=>new Date(ut)):G}function Et($){return $&&$.length?$.reduce((H,G)=>H.concat(G)):[]}function Tt($,...H){if(!H.length||H.length===1&&!H[0])return $;const G=H.shift();return M($)&&M(G)&&Object.keys(G).forEach(ut=>{if(!/^(__proto__|constructor|prototype)$/i.test(ut)){const It=G[ut];It instanceof Date?$[ut]=new Date(It.getTime()):M(It)?(!$[ut]&&($[ut]={}),$[ut]=Tt($[ut],It)):$[ut]=N(It)?It.concat():It}}),Tt($,...H)}function Lt($,H=!0){let G;return $[0]instanceof Date?G=H?(ut,It)=>ut-It:(ut,It)=>It-ut:H&&!$.every(isNaN)?G=(ut,It)=>ut-It:H||(G=(ut,It)=>ut>It&&-1||ut<It&&1||ut===It&&0),$.concat().sort(G)}function Bt($,H){let G=H.filter(ut=>D(ut));if(G.length)if(F(G[0])){let ut=$==="min"?1/0:-1/0;for(const It of G)($==="min"?It<ut:It>ut)&&(ut=It);G=ut}else G[0]instanceof Date&&(G=Lt(G,$==="min")[0]);else G=void 0;return G}const $t=($,H,G=1)=>{const ut=[],It=Math.max(0,Math.ceil((H-$)/G))|0;for(let Wt=0;Wt<It;Wt++)ut.push($+Wt*G);return ut};let At=0;function Mt($=!0){const H=++At;return $?String(H):H}function Gt($,H,G,ut,It){if(G>ut)return-1;const Wt=Math.floor((G+ut)/2);let{x:W,w:tt=0}=$[Wt];return It&&(W=$[Wt].y,tt=$[Wt].h),H>=W&&H<=W+tt?Wt:H<W?Gt($,H,G,Wt-1,It):Gt($,H,Wt+1,ut,It)}function ot($,H){return A($.replace(/\{=([^}]+)\}/g,(G,ut)=>{var It;return(It=H[ut])!=null?It:""}))}function mt($){var H;let G;if($ instanceof Date)G=$;else if(L($)){const{config:ut,format:It}=this;G=(H=It.dataTime(ut.data_xFormat)($))!=null?H:new Date($)}else F($)&&!isNaN($)&&(G=new Date(+$));return(!G||isNaN(+G))&&console&&console.error&&console.error(`Failed to parse x '${$}' to Date object`),G}function pt($){if(M($)&&!L($)){const W=$;return{top:W.top||0,right:W.right||0,bottom:W.bottom||0,left:W.left||0}}const H=(L($)?$.trim().split(/\s+/):[$]).map(W=>+W||0),[G,ut=G,It=G,Wt=ut]=H;return{top:G,right:ut,bottom:It,left:Wt}}function Vt($,H){H()===!1?P(()=>Vt($,H)):$()}function ft($,H=(G=>G)){const G=new Set;return Q($,(ut,It)=>{G.add(H(ut,It))}),G}function yt($,H,G=(ut=>ut)){const ut=new Map;return Q($,(It,Wt)=>{ut.set(H(It,Wt),G(It,Wt))}),ut}const Ct=$=>$||$===0,Rt=$=>typeof $=="function",Ut=$=>typeof $=="string",Kt=$=>typeof $=="number",J=$=>typeof $=="undefined",st=$=>typeof $!="undefined",k=$=>typeof $=="boolean",et=$=>Math.ceil($/10)*10,dt=$=>Math.ceil($)+.5,nt=$=>$[1]-$[0],Nt=$=>typeof $=="object",Ht=$=>{for(const H in $)return!1;return!0},it=$=>J($)||$===null||Ut($)&&$.length===0||Nt($)&&!($ instanceof Date)&&Ht($)||Kt($)&&isNaN($),ct=$=>!it($),ht=$=>Array.isArray($),xt=$=>$&&!($!=null&&$.nodeType)&&Nt($)&&!ht($);function Dt($){const H=this.config;let G,ut,It;const Wt=()=>{const W=ut.shift();if(W&&G&&Nt(G)&&W in G)return G=G[W],Wt();if(!W)return G};Object.keys(H).forEach(W=>{G=$,ut=W.split("_"),It=Wt(),st(It)&&(H[W]=It)}),this.api&&(this.state.orgConfig=$)}var jt=Object.defineProperty,Yt=($,H,G)=>H in $?jt($,H,{enumerable:!0,configurable:!0,writable:!0,value:G}):$[H]=G,bt=($,H,G)=>Yt($,typeof H!="symbol"?H+"":H,G);class Jt{constructor(H={}){bt(this,"$$"),bt(this,"options"),bt(this,"config"),this.options=H}loadConfig(){Dt.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(H=>{this[H]=null,delete this[H]})}}bt(Jt,"version","4.0.
|
|
12
|
+
`).replace(/&tab;/gi," ").replace(/ /gi," ").replace(/</gi,"<").replace(/>/gi,">").replace(/&/gi,"&").replace(/"/gi,'"').replace(/'/gi,"'").replace(/&#(\d+);?/gi,(H,G)=>String.fromCharCode(parseInt(G,10))).replace(/&#x([0-9a-f]+);?/gi,(H,G)=>String.fromCharCode(parseInt(G,16)))}function p($){const G=h($).trim().replace(/[\s\u0000-\u001f]/g,"").toLowerCase();if(!G||G.startsWith("#"))return!0;const ut=G.match(/^[^/?#]*:/);return ut?o.has(ut[0]):!0}function y($){const G=h($).replace(/[\u0000-\u001f]/g,"");d.lastIndex=0;let ut;for(;(ut=d.exec(G))!==null;)if(!p(ut[1]))return null;const It=G.toLowerCase().replace(/\s/g,"");for(const Wt of g)if(It.includes(Wt))return null;return $}const S={'"':""","'":"'","`":"`"},E=/["'`]/g;function m($){return $.replace(E,H=>S[H])}function x($,H,G=!1){if(s.has($))return p(H)?G?m(H):H:null;if($==="style"){const It=y(H);return It===null?null:G?m(It):It}const ut=h(H).toLowerCase().replace(/\s/g,"");return/\bon\w+=/.test(ut)?null:G?m(H):H}function I($){const H=$.match(u);return H?H[1].toLowerCase():null}function O($){const H=I($);return H!==null&&e.has(H)}function T($){var H,G,ut;const It=$.match(v);if(It){const zt=It[1].toLowerCase();return`</${(H=e.get(zt))!=null?H:zt}>`}const Wt=$.match(f);if(!Wt)return"";const[,W,tt,Y]=Wt,j=W.toLowerCase(),rt=(G=e.get(j))!=null?G:j,Ft=[];l.lastIndex=0;let Ot;for(;(Ot=l.exec(tt))!==null;){const zt=Ot[1].toLowerCase(),qt=Ot[2],lt=Ot[3],Qt=Ot[4];if(zt.startsWith("on"))continue;const rr=(ut=a.get(zt))!=null?ut:zt;let ir,ur;if(qt!==void 0)ir=qt,ur='"';else if(lt!==void 0)ir=lt,ur="'";else if(Qt!==void 0)ir=Qt,ur='"';else{a.has(zt)&&Ft.push(rr);continue}if(a.has(zt)){const fr=x(zt,ir,Qt!==void 0);fr!==null&&Ft.push(`${rr}=${ur}${fr}${ur}`)}}const Zt=Ft.length>0?` ${Ft.join(" ")}`:"";return`<${rt}${Zt}${Y?"/>":">"}`}function A($){return typeof $!="string"||!$||$.indexOf("<")===-1?$:$.replace(/<\/?[^>]*>|[^<>\s]+>/g,H=>H.startsWith("<!--")?"":H.startsWith("<")?O(H)?T(H):H.replace(/</g,"<"):H.slice(0,-1)+">")}var P,R,C,N,M,D,F,L,U=Object.defineProperty,B=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,K=($,H,G)=>H in $?U($,H,{enumerable:!0,configurable:!0,writable:!0,value:G}):$[H]=G,_=($,H)=>{for(var G in H||(H={}))b.call(H,G)&&K($,G,H[G]);if(B)for(var G of B(H))X.call(H,G)&&K($,G,H[G]);return $};function Q($,H){for(let G=0;G<$.length;G++){const ut=$[G];ut!==null&&R(ut)&&H(ut,G)}}function w($,H,G){return R($[H])?$[H]:G}function V($,H){for(const G in $)if($[G]===H)return!0;return!1}function z($,H,...G){const ut=C($);return ut&&$.call(H,...G),ut}function Z($,H){let G=0;const ut=function(...It){!--G&&H.apply(this,It)};"duration"in $?$.each(()=>++G).on("end",ut):(++G,$.call(ut))}const at=$=>$.charAt(0).toUpperCase()+$.slice(1);function gt($,H="-"){return $.split(H).map((G,ut)=>ut?G.charAt(0).toUpperCase()+G.slice(1).toLowerCase():G.toLowerCase()).join("")}const q=$=>[].slice.call($);function vt(...$){const H=G=>{if(N(G))return G.map(H);if(M(G)&&G.constructor){const ut=new G.constructor;for(const It in G)ut[It]=H(G[It]);return ut}return G};return $.map(G=>H(G)).reduce((G,ut)=>_(_({},G),ut))}function St($={},H){N(H)&&H.forEach(G=>St($,G));for(const G in H)/^\d+$/.test(G)||G in $||($[G]=H[G]);return $}function Pt($){const H=$[0]instanceof Date,G=Array.from(new Set(H?$.map(Number):$));return H?G.map(ut=>new Date(ut)):G}function Et($){return $&&$.length?$.reduce((H,G)=>H.concat(G)):[]}function Tt($,...H){if(!H.length||H.length===1&&!H[0])return $;const G=H.shift();return M($)&&M(G)&&Object.keys(G).forEach(ut=>{if(!/^(__proto__|constructor|prototype)$/i.test(ut)){const It=G[ut];It instanceof Date?$[ut]=new Date(It.getTime()):M(It)?(!$[ut]&&($[ut]={}),$[ut]=Tt($[ut],It)):$[ut]=N(It)?It.concat():It}}),Tt($,...H)}function Lt($,H=!0){let G;return $[0]instanceof Date?G=H?(ut,It)=>ut-It:(ut,It)=>It-ut:H&&!$.every(isNaN)?G=(ut,It)=>ut-It:H||(G=(ut,It)=>ut>It&&-1||ut<It&&1||ut===It&&0),$.concat().sort(G)}function Bt($,H){let G=H.filter(ut=>D(ut));if(G.length)if(F(G[0])){let ut=$==="min"?1/0:-1/0;for(const It of G)($==="min"?It<ut:It>ut)&&(ut=It);G=ut}else G[0]instanceof Date&&(G=Lt(G,$==="min")[0]);else G=void 0;return G}const $t=($,H,G=1)=>{const ut=[],It=Math.max(0,Math.ceil((H-$)/G))|0;for(let Wt=0;Wt<It;Wt++)ut.push($+Wt*G);return ut};let At=0;function Mt($=!0){const H=++At;return $?String(H):H}function Gt($,H,G,ut,It){if(G>ut)return-1;const Wt=Math.floor((G+ut)/2);let{x:W,w:tt=0}=$[Wt];return It&&(W=$[Wt].y,tt=$[Wt].h),H>=W&&H<=W+tt?Wt:H<W?Gt($,H,G,Wt-1,It):Gt($,H,Wt+1,ut,It)}function ot($,H){return A($.replace(/\{=([^}]+)\}/g,(G,ut)=>{var It;return(It=H[ut])!=null?It:""}))}function mt($){var H;let G;if($ instanceof Date)G=$;else if(L($)){const{config:ut,format:It}=this;G=(H=It.dataTime(ut.data_xFormat)($))!=null?H:new Date($)}else F($)&&!isNaN($)&&(G=new Date(+$));return(!G||isNaN(+G))&&console&&console.error&&console.error(`Failed to parse x '${$}' to Date object`),G}function pt($){if(M($)&&!L($)){const W=$;return{top:W.top||0,right:W.right||0,bottom:W.bottom||0,left:W.left||0}}const H=(L($)?$.trim().split(/\s+/):[$]).map(W=>+W||0),[G,ut=G,It=G,Wt=ut]=H;return{top:G,right:ut,bottom:It,left:Wt}}function Vt($,H){H()===!1?P(()=>Vt($,H)):$()}function ft($,H=(G=>G)){const G=new Set;return Q($,(ut,It)=>{G.add(H(ut,It))}),G}function yt($,H,G=(ut=>ut)){const ut=new Map;return Q($,(It,Wt)=>{ut.set(H(It,Wt),G(It,Wt))}),ut}const Ct=$=>$||$===0,Rt=$=>typeof $=="function",Ut=$=>typeof $=="string",Kt=$=>typeof $=="number",J=$=>typeof $=="undefined",st=$=>typeof $!="undefined",k=$=>typeof $=="boolean",et=$=>Math.ceil($/10)*10,dt=$=>Math.ceil($)+.5,nt=$=>$[1]-$[0],Nt=$=>typeof $=="object",Ht=$=>{for(const H in $)return!1;return!0},it=$=>J($)||$===null||Ut($)&&$.length===0||Nt($)&&!($ instanceof Date)&&Ht($)||Kt($)&&isNaN($),ct=$=>!it($),ht=$=>Array.isArray($),xt=$=>$&&!($!=null&&$.nodeType)&&Nt($)&&!ht($);function Dt($){const H=this.config;let G,ut,It;const Wt=()=>{const W=ut.shift();if(W&&G&&Nt(G)&&W in G)return G=G[W],Wt();if(!W)return G};Object.keys(H).forEach(W=>{G=$,ut=W.split("_"),It=Wt(),st(It)&&(H[W]=It)}),this.api&&(this.state.orgConfig=$)}var jt=Object.defineProperty,Yt=($,H,G)=>H in $?jt($,H,{enumerable:!0,configurable:!0,writable:!0,value:G}):$[H]=G,bt=($,H,G)=>Yt($,typeof H!="symbol"?H+"":H,G);class Jt{constructor(H={}){bt(this,"$$"),bt(this,"options"),bt(this,"config"),this.options=H}loadConfig(){Dt.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(H=>{this[H]=null,delete this[H]})}}bt(Jt,"version","4.0.1");const Xt={id:"__tableview-style__",class:"bb-tableview",rule:`.bb-tableview {
|
|
13
13
|
border-collapse:collapse;
|
|
14
14
|
border-spacing:0;
|
|
15
15
|
background:#fff;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -26739,7 +26739,7 @@ class Plugin {
|
|
|
26739
26739
|
});
|
|
26740
26740
|
}
|
|
26741
26741
|
}
|
|
26742
|
-
__publicField(Plugin, "version", "4.0.
|
|
26742
|
+
__publicField(Plugin, "version", "4.0.1");
|
|
26743
26743
|
|
|
26744
26744
|
;// ./src/Plugin/textoverlap/Options.ts
|
|
26745
26745
|
class Options {
|