text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["global-overview"],{2226:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"overview mt-32"},[i("div",{class:t.chartContainerClass},["all"===t.selectedMesh?i("DonutChart",{class:t.chartClass,attrs:{title:{singular:"ZONE",plural:"ZONES"},data:t.zonesChart.data,url:{name:"zones"},"is-loading":t.areZonesInsightsLoading}}):t._e(),i("DonutChart",{class:t.chartClass,attrs:{title:{singular:"SERVICE",plural:"SERVICES"},data:t.servicesChart.data,"is-loading":t.areServicesLoading,"save-chart":""}}),i("DonutChart",{class:t.chartClass,attrs:{title:{singular:"DP PROXY",plural:"DP PROXIES"},data:t.dataplanesChart.data,url:{name:"dataplanes"},"is-loading":t.areMeshInsightsLoading}}),"all"===t.selectedMesh?i("VersionsDonutChart",{class:t.chartClass,attrs:{title:"ZONE CP",data:t.zonesCPVersionsChart.data,"is-loading":t.areZonesInsightsLoading}}):t._e(),i("VersionsDonutChart",{class:t.chartClass,attrs:{title:"KUMA DP",data:t.kumaDPVersionsChart.data,"is-loading":t.areMeshInsightsLoading}}),i("VersionsDonutChart",{class:t.chartClass,attrs:{title:"ENVOY",data:t.envoyVersionsChart.data,"is-loading":t.areMeshInsightsLoading,"display-am-charts-logo":""}})],1),i("div",{staticClass:"card-wrapper card-wrapper--4-col"},[i("div",[i("CardSkeleton",{staticClass:"card-item",attrs:{"card-action-route":{name:"create-mesh"},"card-title":"Create a virtual Mesh","card-action-button-text":"Create Mesh"},scopedSlots:t._u([{key:"cardContent",fn:function(){return[i("p",[t._v(" We can create multiple isolated Mesh resources (i.e. per application/team/business unit). ")])]},proxy:!0}])})],1),i("div",[i("CardSkeleton",{staticClass:"card-item",attrs:{"card-action-route":t.dataplaneWizardRoute,"card-title":"Connect data plane proxies","card-action-button-text":"Get Started"},scopedSlots:t._u([{key:"cardContent",fn:function(){return[i("p",[t._v(" We need a data plane proxy for each replica of our services within a Mesh resource. ")])]},proxy:!0}])})],1),i("div",[i("CardSkeleton",{staticClass:"card-item",attrs:{"card-action-route":t.cardActionPoliciesRoute,"card-title":"Apply "+t.title+" policies","card-action-button-text":"Explore Policies"},scopedSlots:t._u([{key:"cardContent",fn:function(){return[i("p",[t._v(" We can apply "+t._s(t.productName)+" policies to secure, observe, route and manage the Mesh and its data plane proxies. ")])]},proxy:!0}])})],1),i("div",[i("Resources",{staticClass:"card-item"})],1)])])},s=[],n=(i("99af"),i("4de4"),i("a15b"),i("f3f3")),r=i("2f62"),o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("KCard",{attrs:{title:t.cardTitle},scopedSlots:t._u([{key:"body",fn:function(){return[t._t("cardContent"),t.cardActionButtonText&&t.cardActionRoute?i("div",{staticClass:"skeleton-card__action mt-4"},[t._t("cardAction",[t.externalLink?i("a",{staticClass:"external-link-btn",attrs:{href:t.cardActionRoute,target:"_blank"}},[t._v(" "+t._s(t.cardActionButtonText)+" ")]):i("KButton",{attrs:{to:t.cardActionRoute,appearance:"primary"}},[t._v(" "+t._s(t.cardActionButtonText)+" ")])])],2):t._e()]},proxy:!0}],null,!0)})},l=[],h=i("9410"),u=i.n(h),d=i("fb18"),c=i.n(d),p={name:"CardSkeleton",components:{KCard:u.a,KButton:c.a},props:{cardTitle:{type:String,required:!0},cardActionRoute:{type:[Object,String],required:!0},cardActionButtonText:{type:String,required:!0},externalLink:{type:Boolean,default:!1}}},f=p,g=(i("ebc39"),i("2877")),m=Object(g["a"])(f,o,l,!1,null,"06ddef7c",null),y=m.exports,v=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.version?i("KCard",{attrs:{title:"Resources"},scopedSlots:t._u([{key:"body",fn:function(){return[i("p",[t._v(" Join the "+t._s(t.productName)+" community and ask questions: ")]),i("ul",{staticClass:"resource-list"},t._l(t.resourceLinks,(function(e,a){return i("li",{key:a},[i("a",{attrs:{href:e.link,target:"_blank"}},[t._v(" "+t._s(e.label)+" ")])])})),0)]},proxy:!0}],null,!1,4222015546)}):t._e()},x=[],b=i("c6ec"),_={data:function(){return{productName:b["i"]}},computed:Object(n["a"])(Object(n["a"])({},Object(r["c"])({version:"config/getVersion"})),{},{resourceLinks:function(){var t=this.version,e=null!==t?t:"latest",i="?utm_source=Kuma&utm_medium=Kuma-GUI";return!!t&&[{link:"https://kuma.io/docs/".concat(e,"/").concat(i),label:"".concat("Kuma"," Documentation")},{link:"https://kuma-mesh.slack.com/".concat(i),label:"".concat("Kuma"," Community Chat")},{link:"https://github.com/kumahq/kuma".concat(i),label:"".concat("Kuma"," GitHub Repository")}]}})},P=_,C=(i("d8a9"),Object(g["a"])(P,v,x,!1,null,"ca5f0f72",null)),I=C.exports,A=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"chart"})},O=[],D=(i("d81d"),i("13d5"),i("d3b7"),i("ddb0"),i("0122")),k=i("71c9"),V=i("516a"),T=i("84cf"),S=i("c1bc"),j=i("07a8"),w=i("f2c0"),F=i("be33"),L=i("028d"),M=i("9fe8"),R=i("5d2f"),X=i("c125"),Y=i("2b87"),B=i("77b1"),E=function(t){function e(){var e=t.call(this)||this;e.className="Grip";var i=new X["a"];e.layout="absolute",e.padding(10,10,10,10),e.margin(3,3,3,3),e.background.fillOpacity=.3,e.background.cornerRadius(10,10,10,10);var a=new R["a"];a.element=e.paper.add("path");var s=B["g"]({x:-6,y:0});return s+=B["f"]({x:6,y:0}),s+=B["g"]({x:-8,y:-6}),s+=B["f"]({x:0,y:-12}),s+=B["f"]({x:8,y:-6}),s+=B["g"]({x:-8,y:6}),s+=B["f"]({x:0,y:12}),s+=B["f"]({x:8,y:6}),a.path=s,a.strokeWidth=2,a.fillOpacity=0,a.pixelPerfect=!0,a.padding(0,4,0,4),a.stroke=i.getFor("text"),a.strokeOpacity=.7,a.align="center",a.valign="middle",e.icon=a,e.label.dispose(),e.label=void 0,e.position="right",e.autoHideDelay=3e3,e.events.on("shown",(function(t){e._autoHideTimeout&&e._autoHideTimeout.dispose(),e.autoHideDelay&&(e._autoHideTimeout=e.setTimeout((function(){e.hide()}),e.autoHideDelay))})),e.events.on("down",(function(t){e._autoHideTimeout&&e._autoHideTimeout.dispose()})),e.events.on("out",(function(t){e.autoHideDelay&&(e._autoHideTimeout=e.setTimeout((function(){e.hide()}),e.autoHideDelay))})),e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){if(this.setPropertyValue("position",t))switch(t){case"left":this.align="left",this.valign="middle",this.horizontalCenter="left",this.verticalCenter="middle",this.icon.rotation=0,this.width=void 0,this.height=Object(Y["c"])(30);break;case"right":this.align="right",this.valign="middle",this.horizontalCenter="right",this.verticalCenter="middle",this.icon.rotation=0,this.width=void 0,this.height=Object(Y["c"])(30);break;case"top":this.align="center",this.valign="top",this.horizontalCenter="middle",this.verticalCenter="top",this.icon.rotation=90,this.width=Object(Y["c"])(30),this.height=void 0;break;case"bottom":this.align="center",this.valign="bottom",this.horizontalCenter="middle",this.verticalCenter="bottom",this.icon.rotation=90,this.width=Object(Y["c"])(30),this.height=void 0;break;default:this.align="center",this.valign="middle",this.horizontalCenter="middle",this.verticalCenter="middle",this.icon.rotation=90,this.width=Object(Y["c"])(30),this.height=void 0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoHideDelay",{get:function(){return this.getPropertyValue("autoHideDelay")},set:function(t){this.setPropertyValue("autoHideDelay",t)},enumerable:!0,configurable:!0}),e}(M["a"]);T["b"].registeredClasses["Grip"]=E;var W=i("1482"),N=i("0357"),z=i("916c"),H=i("4a14"),U=function(t){function e(){var e=t.call(this)||this;return e.className="ChartDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(W["a"]),K=function(t){function e(){var i=t.call(this)||this;if(i._legend=new j["d"],i.constructor===e)throw new Error("'Chart' cannot be instantiated directly. Please use a specific chart type.");i.className="Chart";var a=new L["a"];i.titles=new w["c"](a),i._disposers.push(new w["b"](i.titles)),i._disposers.push(a),i.width=Object(Y["c"])(100),i.height=Object(Y["c"])(100),i.layout="vertical";var s=i.createChild(F["a"]);s.shouldClone=!1,s.layout="vertical",s.width=Object(Y["c"])(100),s.height=Object(Y["c"])(100),i.chartAndLegendContainer=s;var n=s.createChild(F["a"]);return n.shouldClone=!1,n.width=Object(Y["c"])(100),n.height=Object(Y["c"])(100),i.chartContainer=n,i.showOnInit=!0,i._disposers.push(i._legend),i.titles.events.on("inserted",(function(t){i.processTitle(t),i.updateReaderTitleReferences()}),i,!1),i.titles.events.on("removed",(function(t){i.updateReaderTitleReferences()}),i,!1),i.role="region",i.defaultState.transitionDuration=1,i.applyTheme(),i}return Object(V["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Chart"))},e.prototype.draw=function(){this.fixLayout(),t.prototype.draw.call(this)},e.prototype.fixLayout=function(){var t=this.legend;if(t){var e=this.chartAndLegendContainer,i=this.chartContainer;switch(i.x=void 0,i.y=void 0,t.x=void 0,t.y=void 0,t.position){case"left":e.layout="horizontal",t.toBack();break;case"right":e.layout="horizontal",t.toFront();break;case"top":e.layout="vertical",t.toBack();break;case"bottom":e.layout="vertical",t.toFront()}}},e.prototype.feedLegend=function(){},e.prototype.processTitle=function(t){var e=t.newValue;return e.parent=this,e.toBack(),e.shouldClone=!1,e.align="center",e.uidAttr(),e},e.prototype.updateReaderTitleReferences=function(){if(this.titles.length){var t=[];N["d"](this.titles.iterator(),(function(e){t.push(e.uid)})),this.setSVGAttribute({"aria-labelledby":t.join(" ")})}else this.removeSVGAttribute("aria-labelledby")},Object.defineProperty(e.prototype,"legend",{get:function(){return this._legend.get()},set:function(t){this.setLegend(t)},enumerable:!0,configurable:!0}),e.prototype.setLegend=function(t){var e=this;this._legend.get()!==t&&(t?(t.parent=this.chartAndLegendContainer,this._legend.set(t,t.events.on("propertychanged",(function(t){"position"==t.property&&e.fixLayout()}),void 0,!1)),t.addDisposer(new j["b"]((function(){e.legend=void 0})))):this._legend.reset(),this.feedLegend())},e.prototype.dispose=function(){this.legend&&this.legend.dispose(),t.prototype.dispose.call(this)},e.prototype.processConfig=function(e){e&&z["d"](e.legend)&&!z["d"](e.legend.type)&&(e.legend.type="Legend"),t.prototype.processConfig.call(this,e)},e.prototype.copyFrom=function(e){this.titles.copyFrom(e.titles),this.chartContainer.copyFrom(e.chartContainer),e.legend&&(this.legend=e.legend.clone(),this.legend.removeChildren()),t.prototype.copyFrom.call(this,e)},Object.defineProperty(e.prototype,"dragGrip",{get:function(){var t=this;if(!this._dragGrip){var e=this.tooltipContainer.createChild(E);e.align="right",e.valign="middle",e.hide(0),e.events.on("down",(function(e){e.touch&&(t.interactionsEnabled=!1)})),e.events.on("up",(function(e){t.interactionsEnabled=!0})),this.events.on("down",(function(t){t.touch&&e.show()})),this._dragGrip=e}return this._dragGrip},set:function(t){this._dragGrip=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusable",{get:function(){return this.parent.focusable},set:function(t){this.parent.focusable=t},enumerable:!0,configurable:!0}),e}(S["a"]);T["b"].registeredClasses["Chart"]=K,H["c"].push({relevant:H["b"].widthXS,state:function(t,e){if(t instanceof K){var i=t.states.create(e);return t.pixelPaddingLeft>10&&(i.properties.paddingLeft=10),t.pixelPaddingRight>10&&(i.properties.paddingRight=10),i}return null}}),H["c"].push({relevant:H["b"].heightXS,state:function(t,e){if(t instanceof K){var i=t.states.create(e);return t.pixelPaddingTop>10&&(i.properties.paddingTop=10),t.pixelPaddingBottom>10&&(i.properties.paddingBottom=10),i}return null}}),H["c"].push({relevant:H["b"].widthXXS,state:function(t,e){if(t instanceof K){var i=t.states.create(e);return i.properties.paddingLeft=0,i.properties.paddingRight=0,i}return null}}),H["c"].push({relevant:H["b"].heightXXS,state:function(t,e){if(t instanceof K){var i=t.states.create(e);return i.properties.paddingTop=0,i.properties.paddingBottom=0,i}return null}});var G=i("1735"),Z=i("74b3"),q=function(t){function e(){var e=t.call(this)||this;return e.className="Bullet",e.isMeasured=!1,e.tooltipX=0,e.tooltipY=0,e.layout="none",e.applyOnClones=!0,e.copyToLegendMarker=!0,e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(t){if(this.setPropertyValue("locationX",t)){var e=this.dataItem;e&&e.component&&e.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(t){if(this.setPropertyValue("locationY",t)){var e=this.dataItem;e&&e.component&&e.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xField",{get:function(){return this.getPropertyValue("xField")},set:function(t){this.setPropertyValue("xField",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yField",{get:function(){return this.getPropertyValue("yField")},set:function(t){this.setPropertyValue("yField",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDynamic",{get:function(){return this.getPropertyValue("isDynamic")},set:function(t){this.setPropertyValue("isDynamic",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyToLegendMarker",{get:function(){return this.getPropertyValue("copyToLegendMarker")},set:function(t){this.setPropertyValue("copyToLegendMarker",t)},enumerable:!0,configurable:!0}),e}(F["a"]);T["b"].registeredClasses["Bullet"]=q,H["c"].push({relevant:H["b"].isXS,state:function(t,e){if(t instanceof q){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var J=i("d948"),$=i("04e4"),Q=i("e243"),tt=i("2082"),et=i("baa2"),it=i("54c9"),at=i("ea2c"),st=function(t){function e(){var e=t.call(this)||this;return e.childrenCreated=!1,e.className="LegendDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"label",{get:function(){var t=this;if(!this._label){var e=this.component.labels.create();this._label=e,this.addSprite(e),this._disposers.push(e),e.parent=this.itemContainer,this._disposers.push(new j["b"]((function(){z["d"](t.component)&&t.component.labels.removeValue(e)})))}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.setProperty("color",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueLabel",{get:function(){var t=this;if(!this._valueLabel){var e=this.component.valueLabels.create();this._valueLabel=e,this.addSprite(e),this._disposers.push(e),e.parent=this.itemContainer,this._disposers.push(new j["b"]((function(){z["d"](t.component)&&t.component.valueLabels.removeValue(e)})))}return this._valueLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemContainer",{get:function(){var t=this;if(!this._itemContainer){var e=this.component,i=e.itemContainers.create();i.parent=e,this._itemContainer=i,this.addSprite(i),this._disposers.push(i),i.togglable&&i.events.on("toggled",(function(t){e.toggleDataItem(t.target.dataItem)}),void 0,!1),i.focusable&&(i.events.on("hit",(function(t){e.focusedItem=void 0}),void 0,!1),i.events.on("focus",(function(t){e.focusedItem=t.target.dataItem}),void 0,!1),i.events.on("blur",(function(t){e.focusedItem=void 0}),void 0,!1)),this._disposers.push(new j["b"]((function(){z["d"](t.component)&&t.component.itemContainers.removeValue(i)}))),this.dataContext.uidAttr&&(i.readerControls=this.dataContext.uidAttr(),i.readerLabelledBy=this.dataContext.uidAttr());var a=this.dataContext;if((a instanceof W["a"]||a instanceof R["a"])&&!a.isDisposed()){var s=function(t){i.readerChecked=t.visible,i.events.disableType("toggled"),i.isActive=!t.visible,i.events.enableType("toggled")};a.addDisposer(new j["b"]((function(){t.component&&t.component.dataItems.remove(t)}))),a instanceof R["a"]?(i.addDisposer(a.events.on("visibilitychanged",s,void 0,!1)),i.addDisposer(a.events.on("hidden",(function(t){i.readerChecked=!1,i.events.disableType("toggled"),i.isActive=!0,i.events.enableType("toggled")}),void 0,!1)),i.addDisposer(a.events.on("shown",(function(t){i.readerChecked=!0,i.events.disableType("toggled"),i.isActive=!1,i.events.enableType("toggled")}),void 0,!1))):i.addDisposer(a.events.on("visibilitychanged",s,void 0,!1))}}return this._itemContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marker",{get:function(){var t=this;if(!this._marker){var e=this.component.markers.create();this._marker=e,e.parent=this.itemContainer,this.addSprite(e),this._disposers.push(e),this._disposers.push(new j["b"]((function(){z["d"](t.component)&&t.component.markers.removeValue(e)})))}return this._marker},enumerable:!0,configurable:!0}),e}(W["a"]),nt=function(){function t(){this.createMarker=!0}return t}(),rt=function(t){function e(){var e=t.call(this)||this;e.className="Legend",e.layout="grid",e.setPropertyValue("useDefaultMarker",!1),e.setPropertyValue("scrollable",!1),e.setPropertyValue("contentAlign","center");var i=new F["a"];i.applyOnClones=!0,i.padding(8,0,8,0),i.margin(0,10,0,10),i.layout="horizontal",i.clickable=!0,i.focusable=!0,i.role="switch",i.togglable=!0,i.cursorOverStyle=it["a"].pointer,i.background.fillOpacity=0,e.itemContainers=new w["c"](i),e._disposers.push(new w["b"](e.itemContainers)),e._disposers.push(e.itemContainers.template),e._disposers.push(Object(Q["a"])().body.events.on("keyup",(function(t){if($["a"].isKey(t.event,"enter")&&e.focusedItem){var i=e.focusedItem,a=i.itemContainer;a.togglable?e.toggleDataItem(i):a.clickable&&a.events.isEnabled("hit")&&(a.dispatchImmediately("hit",{event:t}),e.focusedItem=i)}}),e));var a=new X["a"],s=new F["a"];s.width=23,s.height=23,s.interactionsEnabled=!1,s.applyOnClones=!0,s.setStateOnChildren=!0,s.background.fillOpacity=0,s.background.strokeOpacity=0,s.propertyFields.fill="fill",s.valign="middle";var n=a.getFor("disabledBackground");s.events.on("childadded",(function(t){var e=t.newValue,i=e.states.create("active");i.properties.stroke=n,i.properties.fill=n})),e.markers=new w["c"](s),e._disposers.push(new w["b"](e.markers)),e._disposers.push(e.markers.template);var r=s.createChild(J["a"]);r.width=Object(Y["c"])(100),r.height=Object(Y["c"])(100),r.applyOnClones=!0,r.propertyFields.fill="fill",r.strokeOpacity=0;var o=new L["a"];o.text="{name}",o.margin(0,5,0,5),o.valign="middle",o.applyOnClones=!0,o.states.create("active").properties.fill=a.getFor("disabledBackground"),e.labels=new w["c"](o),e._disposers.push(new w["b"](e.labels)),e._disposers.push(e.labels.template),o.interactionsEnabled=!1,o.truncate=!0,o.fullWords=!1;var l=new L["a"];return l.margin(0,5,0,0),l.valign="middle",l.width=50,l.align="right",l.textAlign="end",l.applyOnClones=!0,l.states.create("active").properties.fill=a.getFor("disabledBackground"),l.interactionsEnabled=!1,e.valueLabels=new w["c"](l),e._disposers.push(new w["b"](e.valueLabels)),e._disposers.push(e.valueLabels.template),e.position="bottom",i.states.create("active"),i.setStateOnChildren=!0,e.role="group",e.events.on("layoutvalidated",e.handleScrollbar,e,!1),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Legend"))},e.prototype.createDataItem=function(){return new st},e.prototype.validateDataElements=function(){this.scrollbar&&(this.scrollbar.start=0,this.scrollbar.end=1),t.prototype.validateDataElements.call(this)},e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e);var i=e.itemContainer,a=e.marker;tt["R"](e.label);var s=e.valueLabel;i.readerChecked=e.dataContext.visible,e.dataContext.legendDataItem=e;var n=e.label.maxWidth;e.label.width instanceof Y["a"]||(e.label.width=void 0),n>0&&(e.label.maxWidth=n),"right"==s.align&&(s.width=void 0);var r=e.dataContext.legendSettings,o=e.dataContext;!o.createLegendMarker||this.useDefaultMarker&&o instanceof R["a"]?this.markers.template.propertyFields.fill=void 0:e.childrenCreated||(o.createLegendMarker(a),e.childrenCreated=!0),o.updateLegendValue&&o.updateLegendValue(),o.component&&o.component.updateLegendValue&&o.component.updateLegendValue(o),s.invalid&&s.validate(),""==s.text||void 0==s.text?s.__disabled=!0:s.__disabled=!1,!r||void 0==r.itemValueText&&void 0==r.valueText||(s.__disabled=!1);var l=e.dataContext.visible;void 0===l&&(l=!0),l=z["k"](l),e.dataContext.visible=l,i.events.disableType("toggled"),i.isActive=!l,i.isActive?i.setState("active",0):i.setState("default",0),i.events.enableType("toggled")},e.prototype.afterDraw=function(){var e=this,i=this.getPropertyValue("maxWidth"),a=0;this.labels.each((function(t){t.invalid&&(t.maxWidth=void 0,t.validate()),t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight>a&&(a=t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight)}));var s=0;this.valueLabels.each((function(t){t.invalid&&t.validate(),t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight>s&&(s=t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight)}));var n=0;this.markers.each((function(t){t.invalid&&t.validate(),t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight>n&&(n=t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight)}));var r,o=this.itemContainers.template,l=o.pixelMarginRight+o.pixelMarginLeft,h=a+s+n;z["h"](i)?(i-=l,i>h&&(i=h),r=i-n-s):r=a,this.labels.each((function(t){("right"==e.valueLabels.template.align||t.measuredWidth>r)&&(t.width instanceof Y["a"]||(t.width=Math.min(t.maxWidth,r-t.pixelMarginLeft-t.pixelMarginRight)))})),"right"==this.valueLabels.template.align&&this.valueLabels.each((function(t){t.width=s-t.pixelMarginRight-t.pixelMarginLeft})),t.prototype.afterDraw.call(this)},e.prototype.handleScrollbar=function(){var t=this.scrollbar;this.scrollable&&t&&(t.height=this.measuredHeight,t.x=this.measuredWidth-t.pixelWidth-t.pixelMarginLeft,this.contentHeight>this.measuredHeight?(t.visible=!0,t.thumb.height=t.height*this.measuredHeight/this.contentHeight,this.paddingRight=t.pixelWidth+t.pixelMarginLeft+ +t.pixelMarginRight):t.visible=!1,this.updateMasks())},Object.defineProperty(e.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){this.setPropertyValue("position",t)&&("left"==t||"right"==t?(this.margin(10,5,10,10),this.valign="middle",this.contentAlign="none",this.valueLabels.template.align="right",z["h"](this.maxColumns)||(this.maxColumns=1),this.width=void 0,this.maxWidth=220):(this.maxColumns=void 0,this.width=Object(Y["c"])(100),this.valueLabels.template.align="left"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useDefaultMarker",{get:function(){return this.getPropertyValue("useDefaultMarker")},set:function(t){this.setPropertyValue("useDefaultMarker",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollable",{get:function(){return this.getPropertyValue("scrollable")},set:function(t){if(this.setPropertyValue("scrollable",t,!0))if(t){var e=this.createChild(at["a"]);this.scrollbar=e,e.isMeasured=!1,e.orientation="vertical",e.endGrip.__disabled=!0,e.startGrip.__disabled=!0,e.visible=!1,e.marginLeft=5,this._mouseWheelDisposer=this.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer),this._disposers.push(e.events.on("rangechanged",this.updateMasks,this,!1))}else this._mouseWheelDisposer&&(this._mouseWheelDisposer.dispose(),this.scrollbar&&(this.scrollbar.dispose(),this.scrollbar=void 0))},enumerable:!0,configurable:!0}),e.prototype.handleWheel=function(t){var e=t.shift.y,i=this.scrollbar;if(i){var a=e/1e3*this.measuredHeight/this.contentHeight,s=i.end-i.start;e>0?(i.start=et["B"](0,i.start-a),i.end=i.start+s):(i.end=et["C"](1,i.end-a),i.start=i.end-s)}},e.prototype.updateMasks=function(){var t=this;this.scrollbar&&this.itemContainers.each((function(e){e.dy=-t.scrollbar.thumb.pixelY*t.contentHeight/t.measuredHeight,e.maskRectangle={x:0,y:-e.dy,width:t.measuredWidth,height:t.measuredHeight}}))},e.prototype.toggleDataItem=function(t){var e=t.dataContext;!e.visible||e.isHiding||e instanceof R["a"]&&e.isHidden?(t.color=t.colorOrig,t.itemContainer.isActive=!1,!0===e.hidden&&(e.hidden=!1),e.show?e.show():e.visible=!0,this.svgContainer.readerAlert(this.language.translate("%1 shown",this.language.locale,t.label.readerTitle))):(t.itemContainer.isActive=!0,e.hide?e.hide():e.visible=!1,this.svgContainer.readerAlert(this.language.translate("%1 hidden",this.language.locale,t.label.readerTitle)),t.color=(new X["a"]).getFor("disabledBackground"))},Object.defineProperty(e.prototype,"preloader",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.handleDataItemPropertyChange=function(t,e){t.valueLabel.invalidate(),t.label.invalidate()},e}(S["a"]);T["b"].registeredClasses["Legend"]=rt,H["c"].push({relevant:H["b"].widthXS,state:function(t,e){if(t instanceof rt&&("left"==t.position||"right"==t.position)){var i=t.states.create(e);return i.properties.position="bottom",i}return null}}),H["c"].push({relevant:H["b"].heightXS,state:function(t,e){if(t instanceof rt&&("top"==t.position||"bottom"==t.position)){var i=t.states.create(e);return i.properties.position="right",i}return null}}),H["c"].push({relevant:H["b"].isXS,state:function(t,e){if(t instanceof rt){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var ot=i("5290"),lt=i("03d5"),ht=i("ec03"),ut=i("a0dd"),dt=i("6e0f"),ct=i("ddd0"),pt=function(t){function e(){var e=t.call(this)||this;return e.className="SeriesDataItem",e.values.value={},e.values.value={},e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new G["a"],this._disposers.push(new G["b"](this._bullets))),this._bullets},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.bullets.clear(),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),e}(W["a"]),ft=function(t){function e(){var i=t.call(this)||this;if(i._ignoreMinMax=!1,i._showBullets=!0,i.legendSettings=new nt,i._tmin=new G["a"],i._tmax=new G["a"],i._smin=new G["a"],i._smax=new G["a"],i.dataItemsByAxis=new G["a"],i.skipFocusThreshold=20,i._itemReaderTextChanged=!1,i.calculatePercent=!1,i.usePercentHack=!0,i.autoDispose=!0,i.simplifiedProcessing=!1,i.constructor===e)throw new Error("'Series' cannot be instantiated directly. Please use a specific series type.");i.className="Series",i.isMeasured=!1,i.layout="none",i.shouldClone=!1,i.setPropertyValue("hidden",!1),i.axisRanges=new w["a"],i.axisRanges.events.on("inserted",i.processAxisRange,i,!1),i.minBulletDistance=0,i.mainContainer=i.createChild(F["a"]),i.mainContainer.shouldClone=!1,i.mainContainer.mask=i.createChild(R["a"]),i._disposers.push(i.mainContainer);var a=i.mainContainer.createChild(F["a"]);return i._shouldBeReady.push(a),a.shouldClone=!1,a.layout="none",a.virtualParent=i,i._disposers.push(a),i.bulletsContainer=a,i.tooltip=new Z["a"],i.tooltip.virtualParent=i,i._disposers.push(i.tooltip),i.hiddenState.transitionEasing=ht["a"],i.dataItem=i.createDataItem(),i._disposers.push(i.dataItem),i.dataItem.component=i,i.role="group",i.applyTheme(),i}return Object(V["c"])(e,t),e.prototype.applyTheme=function(){t.prototype.applyTheme.call(this),ot["a"].autoSetClassName&&this.bulletsContainer&&(this.bulletsContainer.className=this.className+"-bullets",this.bulletsContainer.setClassName())},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Series"))},e.prototype.createDataItem=function(){return new pt},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(t){},e.prototype.processBullet=function(t){var e=this,i=t.newValue;i.isTemplate=!0,this.events.once("datavalidated",(function(t){e.itemsFocusable()&&(i.focusable=!0)})),this.invalidate()},e.prototype.removeBullet=function(t){var e=t.oldValue;this.dataItems.each((function(t){var i=t.bullets.getKey(e.uid);i&&i.dispose()})),this.invalidate()},e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.processValues(!1)},e.prototype.getFirstValue=function(t,e){for(var i=e;i>=0;i--){var a=this.dataItems.getIndex(i),s=a.getActualWorkingValue(t);if(z["h"](s))return s}return null},e.prototype.getAbsoluteFirstValue=function(t){for(var e=0;e<this.dataItems.length;e++){var i=this.dataItems.getIndex(e),a=i.values[t].value;if(z["h"](a))return a}return null},e.prototype.rangeChangeUpdate=function(){t.prototype.rangeChangeUpdate.call(this),this.processValues(!0)},e.prototype.processValues=function(t){var e=this;if(!this.simplifiedProcessing){var i=this.dataItems,a={},s={},n={},r={},o={},l={},h={},u={},d={},c={},p=et["B"](0,this.startIndex);p=et["C"](p,this.dataItems.length);var f=et["C"](this.endIndex,this.dataItems.length);if(z["h"](p)||(p=0),z["h"](f)||(f=this.dataItems.length),p>0){var g=i.getIndex(p-1);ut["d"](g.values,(function(t,e){var i=g.getActualWorkingValue(t);z["h"](i)&&(u[t]=i)}))}for(var m=function(t){var f=i.getIndex(t);ut["d"](f.values,(function(t,i){var g=f.getActualWorkingValue(t);if(z["h"](g)){z["h"](a[t])||(a[t]=0),a[t]++,z["h"](s[t])||(s[t]=0),s[t]+=g,z["h"](n[t])||(n[t]=0),n[t]+=Math.abs(g),z["h"](l[t])||(l[t]=g),h[t]=g,z["h"](r[t])?r[t]>g&&(r[t]=g):r[t]=g,z["h"](o[t])?o[t]<g&&(o[t]=g):o[t]=g,z["h"](d[t])||(d[t]=e.getFirstValue(t,p)),z["h"](c[t])||(c[t]=e.getAbsoluteFirstValue(t)),f.setCalculatedValue(t,g-d[t],"change"),f.setCalculatedValue(t,(g-d[t])/d[t]*100,"changePercent"),f.setCalculatedValue(t,g-c[t],"startChange"),f.setCalculatedValue(t,(g-c[t])/c[t]*100,"startChangePercent");var m=u[t];z["h"](m)||(m=g),f.setCalculatedValue(t,g-m,"previousChange"),f.setCalculatedValue(t,(g-m)/m*100,"previousChangePercent"),u[t]=g}}))},y=p;y<f;y++)m(y);if(this.calculatePercent){var v=function(t){var a=i.getIndex(t);ut["d"](a.values,(function(t){var i=n[t],s=a.getActualWorkingValue(t);if(z["h"](s))if(i>0){e.usePercentHack&&s==i&&(i=a.values[t].value);var r=s/i*100;a.setCalculatedValue(t,r,"percent")}else a.setCalculatedValue(t,0,"percent")}))};for(y=p;y<f;y++)v(y)}if(p>0){var x=i.getIndex(p-1);ut["d"](x.values,(function(t){var e=x.values[t].value;x.setCalculatedValue(t,e-l[t],"change"),x.setCalculatedValue(t,(e-l[t])/l[t]*100,"changePercent")}))}var b=this.dataItem;ut["d"](b.values,(function(t){b.setCalculatedValue(t,s[t],"sum"),b.setCalculatedValue(t,n[t],"absoluteSum"),b.setCalculatedValue(t,s[t]/a[t],"average"),b.setCalculatedValue(t,l[t],"open"),b.setCalculatedValue(t,h[t],"close"),b.setCalculatedValue(t,r[t],"low"),b.setCalculatedValue(t,o[t],"high"),b.setCalculatedValue(t,a[t],"count")}))}},e.prototype.validate=function(){tt["w"]()&&this.filters.clear(),N["d"](this.axisRanges.iterator(),(function(t){t.validate()})),t.prototype.validate.call(this);var e=this.bulletsContainer;if(e.fill=this.fill,e.stroke=this.stroke,e.x=this.pixelX,e.y=this.pixelY,this.bulletsContainer.children.length>0)if(this._showBullets){for(var i=0;i<this.startIndex;i++){var a=this.dataItems.getIndex(i);a&&a.bullets.each((function(t,e){e.__disabled=!0}))}for(i=this.dataItems.length-1;i>this.endIndex;i--){a=this.dataItems.getIndex(i);a&&a.bullets.each((function(t,e){e.__disabled=!0}))}}else this.bulletsContainer.children.each((function(t){t.__disabled=!0}));this.updateTooltipBounds()},e.prototype.updateTooltipBounds=function(){if(this.topParent){var t=0,e=0,i=this.topParent.maxWidth,a=this.topParent.maxHeight,s={x:t,y:e,width:i,height:a};this.tooltip.setBounds(s)}},e.prototype.shouldCreateBullet=function(t,e){return!0},e.prototype.validateDataElement=function(e){var i=this;t.prototype.validateDataElement.call(this,e),this._showBullets?(this.isHidden||(this.bulletsContainer.visible=!0),this.bullets.each((function(t){var a=e.bullets.getKey(t.uid);if(i.shouldCreateBullet(e,t)){if(!a){var s=t.propertyFields.disabled,n=e.dataContext;s&&n&&!1===n[s]?(t.applyOnClones=!1,t.disabled=!1,a=t.clone(),t.disabled=!0,t.applyOnClones=!0):a=t.clone(),a.shouldClone=!1,e.addSprite(a),i.visible&&!i.isHiding||a.hide(0)}var r=a.dataItem;if(r!=e){r&&r.bullets.setKey(t.uid,void 0);var o=i.itemReaderText;a instanceof q&&(o||(o="{"+a.xField+"}: {"+a.yField+"}"),a.isDynamic&&(e.events.on("workingvaluechanged",a.deepInvalidate,a,!1),i.dataItem.events.on("workingvaluechanged",a.deepInvalidate,a,!1)),a.deepInvalidate()),a.focusable&&(a.events.on("focus",(function(t){a.readerTitle=i.populateString(o,a.dataItem)}),void 0,!1),a.events.on("blur",(function(t){a.readerTitle=""}),void 0,!1)),a.hoverable&&(a.events.on("over",(function(t){a.readerTitle=i.populateString(o,a.dataItem)}),void 0,!1),a.events.on("out",(function(t){a.readerTitle=""}),void 0,!1))}a.parent=i.bulletsContainer,e.bullets.setKey(t.uid,a),a.maxWidth=e.itemWidth,a.maxHeight=e.itemHeight,a.__disabled=!1,i.positionBullet(a)}else a&&(a.__disabled=!0)}))):this.bulletsContainer.visible=!1},e.prototype.handleDataItemWorkingValueChange=function(t,e){this.dataRangeInvalid||this.invalidateProcessedData()},Object.defineProperty(e.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(t){this._ignoreMinMax=t,this.invalidateDataItems()},enumerable:!0,configurable:!0}),e.prototype.createMask=function(){},e.prototype.processAxisRange=function(t){this.rangesContainer||(this.rangesContainer=this.createChild(F["a"]),this.rangesContainer.shouldClone=!1,this.rangesContainer.isMeasured=!1);var e=t.newValue;e&&(e.contents.parent=this.rangesContainer,e.isRange=!0,e.events.on("valuechanged",this.invalidateDataItems,this,!1))},e.prototype.getAxisField=function(t){},e.prototype.showTooltipAtPosition=function(t,e){},Object.defineProperty(e.prototype,"minBulletDistance",{get:function(){return this.getPropertyValue("minBulletDistance")},set:function(t){this.setPropertyValue("minBulletDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new w["c"](new q),this._bullets.template.virtualParent=this,this._bullets.events.on("inserted",this.processBullet,this,!1),this._bullets.events.on("removed",this.removeBullet,this,!1),this._disposers.push(new w["b"](this._bullets)),this._disposers.push(this._bullets.template)),this._bullets},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){},Object.defineProperty(e.prototype,"hiddenInLegend",{get:function(){return this.getPropertyValue("hiddenInLegend")},set:function(t){this.setPropertyValue("hiddenInLegend",t)&&this.chart&&this.chart.feedLegend()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(t){this.setPropertyValue("name",t);var e=this.legendDataItem;e&&(e.component.invalidate(),e.component.invalidateRawData()),this.readerTitle=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemReaderText",{get:function(){var t=this._itemReaderText;return t||(this.tooltipText?t=tt["C"](this.tooltipText):this.tooltipHTML&&(t=tt["C"](this.tooltipHTML))),this._adapterO?this._adapterO.apply("itemReaderText",t):t},set:function(t){this._itemReaderText=t,this._itemReaderTextChanged=!0},enumerable:!0,configurable:!0}),e.prototype.itemsFocusable=function(){return!(this.dataItems.length>=this.skipFocusThreshold)},Object.defineProperty(e.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),e.prototype.updateLegendValue=function(t,e){if(this.legendDataItem){var i=this.legendSettings,a=this.legendDataItem,s=a.label,n=a.valueLabel;t&&!t.isDisposed()||e?(n&&(i.itemValueText&&(n.text=i.itemValueText),n.dataItem=t),s&&(i.itemLabelText&&(s.text=i.itemLabelText),s.dataItem=t)):(s&&((i.labelText||void 0!=i.itemLabelText)&&(s.text=i.labelText),s.dataItem=this.dataItem),n&&((i.valueText||void 0!=i.itemValueText)&&(n.text=i.valueText),n.dataItem=this.dataItem))}},e.prototype.copyFrom=function(e){this.bullets.copyFrom(e.bullets),this.bulletsContainer.copyFrom(e.bulletsContainer),this.calculatePercent=e.calculatePercent,this.usePercentHack=e.usePercentHack,this.simplifiedProcessing=e.simplifiedProcessing,t.prototype.copyFrom.call(this,e)},e.prototype.raiseCriticalError=function(t){this._chart&&this._chart.modal&&(this._chart.modal.content=this._chart.adapter.apply("criticalError",t).message,this._chart.modal.closable=!1,ot["a"].suppressErrors||this._chart.modal.open(),this._chart.disabled=!0),ot["a"].verbose&&console.log(t)},e.prototype.applyFilters=function(){var e=this;t.prototype.applyFilters.call(this),this.bulletsContainer.filters.clear(),N["d"](this.filters.iterator(),(function(t){e.bulletsContainer.filters.push(t.clone())}))},Object.defineProperty(e.prototype,"heatRules",{get:function(){var t=this;return this._heatRules||(this._heatRules=new w["a"],this._heatRules.events.on("inserted",(function(e){var i=e.newValue,a=i.target;if(a){var s=i.dataField;z["d"](s)||(s="value");var n=t.dataItem,r=i.property,o=z["l"](i.minValue),l=z["l"](i.maxValue);z["h"](o)||z["h"](l)||t.dataItem.events.on("calculatedvaluechanged",(function(e){e.property==s&&N["d"](t.dataItems.iterator(),(function(t){var e=!1;dt["d"](t.sprites,(function(t){if(t.clonedFrom==a){var i=t;i[r]=i[r],e=!0}})),e||dt["d"](t.sprites,(function(t){t instanceof F["a"]&&N["d"](t.children.iterator(),(function(t){if(t.className==a.className){var e=t;e[r]=e[r]}else t instanceof F["a"]&&t.deepInvalidate()}))}))}))})),t.dataItems.template.events.on("workingvaluechanged",(function(t){if(t.property==s){var e=t.target,i=!1;dt["d"](e.sprites,(function(t){if(t.clonedFrom==a){var e=t;e[r]=e[r],i=!0}})),i||dt["d"](e.sprites,(function(t){t instanceof F["a"]&&N["d"](t.children.iterator(),(function(t){if(t.className==a.className){var e=t;e[r]=e[r]}else t instanceof F["a"]&&t.deepInvalidate()}))}))}})),a.adapter.add(r,(function(t,e,a){var r=z["l"](i.minValue),o=z["l"](i.maxValue),l=i.min,h=i.max;if(e instanceof R["a"]){var u=e,d=u.propertyFields[a];if(d&&e.dataItem){var c=e.dataItem.dataContext;if(c&&z["d"](c[d]))return t}}var p=e.dataItem;if(z["h"](r)||(r=n.values[s].low),z["h"](o)||(o=n.values[s].high),p){var f=p.values[s];if(f){var g=p.getActualWorkingValue(s);if(z["d"](l)&&z["d"](h)&&z["h"](r)&&z["h"](o)&&z["h"](g)){var m=void 0;if(m=i.logarithmic?(Math.log(g)*Math.LOG10E-Math.log(r)*Math.LOG10E)/(Math.log(o)*Math.LOG10E-Math.log(r)*Math.LOG10E):(g-r)/(o-r),!z["h"](g)||z["h"](m)&&Math.abs(m)!=1/0||(m=.5),z["h"](l))return l+(h-l)*m;if(l instanceof lt["a"])return new lt["a"](ct["c"](l.rgb,h.rgb,m))}}}return t}))}}))),this._heatRules},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){var i;if(e){if(z["d"](e.bullets)&&z["e"](e.bullets))for(var a=0,s=e.bullets.length;a<s;a++){var n=e.bullets[a];z["d"](n.type)||(n.type="Bullet")}z["d"](e.heatRules)&&z["e"](e.heatRules)&&(i=e.heatRules,delete e.heatRules)}if(t.prototype.processConfig.call(this,e),i){for(a=0,s=i.length;a<s;a++){var r=i[a],o=this;if(z["d"](r.target)&&z["j"](r.target))if(this.map.hasKey(r.target))o=this.map.getKey(r.target);else for(var l=r.target.split("."),h=0;h<l.length;h++)if(o instanceof w["a"]){var u=o.getIndex(z["l"](l[h]));o=u||o[l[h]]}else{var d=l[h].match(/^(.*)\[([0-9]+)\]/);o=d?o[d[1]]instanceof w["a"]?o[d[1]].getIndex(z["l"](d[2])):o[d[1]][z["l"](d[2])]:o[l[h]]}r.target=o,z["d"](r.min)&&(r.min=this.maybeColorOrPercent(r.min)),z["d"](r.max)&&(r.max=this.maybeColorOrPercent(r.max))}t.prototype.processConfig.call(this,{heatRules:i})}},e.prototype.configOrder=function(e,i){return e==i?0:"heatRules"==e?1:"heatRules"==i?-1:t.prototype.configOrder.call(this,e,i)},e.prototype.setVisibility=function(e){t.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},e}(S["a"]);T["b"].registeredClasses["Series"]=ft,T["b"].registeredClasses["SeriesDataItem"]=pt;var gt=i("eec5"),mt=function(t){function e(){var e=t.call(this)||this;return e.className="SerialChartDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(U),yt=function(t){function e(){var e=t.call(this)||this;e.className="SerialChart",e.colors=new gt["a"],e._usesData=!1;var i=e.chartContainer.createChild(F["a"]);i.shouldClone=!1,i.width=Object(Y["c"])(100),i.height=Object(Y["c"])(100),i.isMeasured=!1,i.layout="none",i.zIndex=2,e.seriesContainer=i;var a=e.chartContainer.createChild(F["a"]);return a.shouldClone=!1,a.width=Object(Y["c"])(100),a.height=Object(Y["c"])(100),a.isMeasured=!1,a.zIndex=3,a.layout="none",e.bulletsContainer=a,e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this.colors&&this.colors.dispose(),this.patterns&&this.patterns.dispose()},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Serial chart"))},Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new w["c"](this.createSeries()),this._series.events.on("inserted",this.handleSeriesAdded,this,!1),this._series.events.on("removed",this.handleSeriesRemoved,this,!1),this._disposers.push(new w["b"](this._series,!1)),this._disposers.push(this._series.template)),this._series},enumerable:!0,configurable:!0}),e.prototype.handleSeriesRemoved=function(t){var e=t.oldValue;this.dataUsers.removeValue(e),this.dataUsers.each((function(t){t.invalidateDataItems()})),e.autoDispose?e.dispose():(e.parent=void 0,e.bulletsContainer.parent=void 0);var i=this.legend;if(i){for(var a=this.legend.dataItems,s=a.length-1;s>=0;s--){var n=a.getIndex(s);n&&n.dataContext==e&&i.dataItems.remove(n)}for(s=i.data.length-1;s>=0;s--){var r=i.data[s];r&&r==e&&dt["o"](i.data,r)}}},e.prototype.handleSeriesAdded=function(t){var e=this,i=t.newValue;i.isDisposed()||(i.chart=this,i.parent=this.seriesContainer,i.bulletsContainer.parent=this.bulletsContainer,this._dataUsers.moveValue(i),i.addDisposer(new j["b"]((function(){e.dataUsers.removeValue(i)}))),this.handleSeriesAdded2(i),this.handleLegendSeriesAdded(i))},e.prototype.handleLegendSeriesAdded=function(t){t.hiddenInLegend||this.legend&&this.legend.addData(t)},e.prototype.handleSeriesAdded2=function(t){var e=this;this.dataInvalid||this._disposers.push(T["b"].events.once("exitframe",(function(){t.data&&0!=t.data.length||(t.data=e.data,t.showOnInit&&(t.reinit(),t.setPropertyValue("showOnInit",!1),t.showOnInit=!0),t.events.once("datavalidated",(function(){t.data==e.data&&(t._data=[])})))})))},e.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];N["d"](this.series.iterator(),(function(t){t.hiddenInLegend||e.push(t)})),t.dataFields.name="name",t.data=e}},e.prototype.createSeries=function(){return new ft},Object.defineProperty(e.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(t){this.setPropertyValue("colors",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(t){this.setPropertyValue("patterns",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.series.copyFrom(e.series)},e.prototype.appear=function(){t.prototype.appear.call(this),this.series.each((function(t){t.showOnInit&&t.inited&&t.appear()}))},e}(K);T["b"].registeredClasses["SerialChart"]=yt;var vt=i("d8fb"),xt=function(t){function e(){var e=t.call(this)||this;e._axis=new j["d"],e.dataItems=new w["a"],e.className="AxisBreak",e.breakSize=.01,e.marginLeft=-5,e.marginRight=-5,e.marginTop=-5,e.marginBottom=-5;var i=new X["a"],a=new vt["a"];a.fill=i.getFor("background"),a.stroke=Object(lt["b"])(),a.fillOpacity=.9,a.zIndex=0,e._fillShape=a;var s=new vt["a"];s.fill=Object(lt["b"])(),s.stroke=i.getFor("grid"),s.strokeOpacity=.3,s.zIndex=1,e._startLine=s;var n=new vt["a"];return n.fill=Object(lt["b"])(),n.stroke=Object(lt["b"])("#000000"),n.strokeOpacity=.3,n.zIndex=2,e._endLine=n,e._disposers.push(e._axis),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this._fillShape&&this._fillShape.dispose(),this._startLine&&this._startLine.dispose(),this._endLine&&this._endLine.dispose()},Object.defineProperty(e.prototype,"startLine",{get:function(){return this._startLine},set:function(t){this._startLine&&this._startLine.dispose(),this._startLine=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLine",{get:function(){return this._endLine},set:function(t){this._endLine&&this._endLine.dispose(),this._endLine=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillShape",{get:function(){return this._fillShape},set:function(t){this._fillShape&&this._fillShape.dispose(),this._fillShape=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),e.prototype.addBreakSprite=function(t){t.parent=this,t.isMeasured=!1,this._disposers.push(t)},Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis.get()},set:function(t){if(this._axis.get()!==t){this._axis.set(t,t.renderer.gridContainer.events.on("transformed",this.invalidate,this,!1)),t.renderer.createBreakSprites(this);var e=t.axisBreaks.template;this.startLine.copyFrom(e.startLine),this.endLine.copyFrom(e.endLine),this.fillShape.copyFrom(e.fillShape)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"breakSize",{get:function(){return this.getPropertyValue("breakSize")},set:function(t){this.setPropertyValue("breakSize",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startPoint",{get:function(){var t=this.axis.renderer;if(t)return t.positionToPoint(this.startPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPoint",{get:function(){var t=this.axis.renderer;if(t)return t.positionToPoint(this.endPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startPosition",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.draw=function(){if(t.prototype.draw.call(this),this.axis){var e=this.axis.renderer;e.updateBreakElement(this)}},Object.defineProperty(e.prototype,"startValue",{get:function(){return this.getPropertyValue("startValue")},set:function(t){this.setPropertyValue("startValue",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){return this.getPropertyValue("endValue")},set:function(t){this.setPropertyValue("endValue",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),e}(F["a"]);T["b"].registeredClasses["AxisBreak"]=xt;var bt,_t=i("8a06"),Pt=i("f936"),Ct=function(t){function e(){var e=t.call(this)||this;return e.className="AxisDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"grid",{get:function(){if(!this._grid){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if(i=t.axisRanges.template.grid,i.disabled)return;e=i.clone()}else{if(i=t.renderer.grid.template,i.disabled)return;e=t.renderer.grid.create(),this._disposers.push(new j["b"]((function(){t.renderer.grid.removeValue(e)})))}this.grid=e,e.shouldClone=!1,this._disposers.push(e),e.axis=this.component}}return this._grid},set:function(t){this._grid&&this._grid!=t&&(dt["o"](this.sprites,this._grid),this._grid.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(dt["o"](t.dataItem.sprites,t),t.dataItem.grid=void 0),this.addSprite(t)),this._grid=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){if(!this._tick){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if(i=t.axisRanges.template.tick,i.disabled)return;e=i.clone()}else{if(i=t.renderer.ticks.template,i.disabled)return;e=t.renderer.ticks.create(),this._disposers.push(new j["b"]((function(){t.renderer.ticks.removeValue(e)})))}this.tick=e,e.axis=this.component,e.shouldClone=!1,this._disposers.push(e)}}return this._tick},set:function(t){this._tick&&this._tick!=t&&(dt["o"](this.sprites,this._tick),this._tick.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(dt["o"](t.dataItem.sprites,t),t.dataItem.tick=void 0),this.addSprite(t)),this._tick=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){if(!this._label){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if(i=t.axisRanges.template.label,i.disabled)return;e=i.clone()}else{if(i=t.renderer.labels.template,i.disabled)return;e=t.renderer.labels.create(),this._disposers.push(new j["b"]((function(){t.renderer.labels.removeValue(e)})))}this._disposers.push(e),this.label=e,e.shouldClone=!1,e.axis=this.component,e.virtualParent=t}}return this._label},set:function(t){this._label&&this._label!=t&&(dt["o"](this.sprites,this._label),this._label.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(dt["o"](t.dataItem.sprites,t),t.dataItem.label=void 0),this.addSprite(t)),this._label=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisFill",{get:function(){if(!this._axisFill){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if(i=t.axisRanges.template.axisFill,!this.isTemplate&&i.disabled)return;e=i.clone()}else{if(i=t.renderer.axisFills.template,i.disabled)return;e=t.renderer.axisFills.create(),this._disposers.push(new j["b"]((function(){t.renderer.axisFills.removeValue(e)})))}this.axisFill=e,e.shouldClone=!1,this._disposers.push(e)}}return this._axisFill},set:function(t){this._axisFill&&this._axisFill!=t&&(dt["o"](this.sprites,this._axisFill),this._axisFill.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(dt["o"](t.dataItem.sprites,t),t.dataItem.axisFill=void 0),t.axis=this.component,this.addSprite(t)),this._axisFill=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t,this._label&&(this._label.text=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mask",{get:function(){return this._mask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contents",{get:function(){if(!this._contents){var t=new F["a"];this.addSprite(t),t.isMeasured=!1,this._contents=t;var e=this.component;if(e){var i=e.renderer.createFill(this.component);i.disabled=!1,i.axis=e,this.addSprite(i),this._mask=i,t.mask=i}}return this._contents},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisBreak",{get:function(){return this._axisBreak},set:function(t){this._axisBreak&&this._axisBreak.dataItems.removeValue(this),t&&t.dataItems.push(this),this._axisBreak=t},enumerable:!0,configurable:!0}),e.prototype.validate=function(){this.component&&this.component.validateDataElement(this)},e.prototype.appendChildren=function(){this.component&&this.component.appendDataItem(this)},e.prototype.hasProperty=function(e){return"component"==e||t.prototype.hasProperty.call(this,e)},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.text=e.text,e.bullet&&(this.bullet=e.bullet.clone()),this.minPosition=e.minPosition,this.maxPosition=e.maxPosition},e.prototype.setVisibility=function(e,i){t.prototype.setVisibility.call(this,e,i),this._contents&&(this._contents.visible=e)},Object.defineProperty(e.prototype,"bullet",{get:function(){return this._bullet},set:function(t){this._bullet&&this._bullet!=t&&(dt["o"](this.sprites,this._bullet),this._bullet.dataItem=void 0),this._bullet=t,t&&this.addSprite(t)},enumerable:!0,configurable:!0}),e}(W["a"]);(function(t){t[t["Start"]=0]="Start",t[t["Middle"]=.5]="Middle",t[t["End"]=1]="End"})(bt||(bt={}));var It=function(t){function e(){var i=t.call(this)||this;if(i._gridCount=10,i._series=new w["a"],i.autoDispose=!0,i._axisItemCount=0,i.constructor===e)throw new Error("'Axis' cannot be instantiated directly. Please use a specific axis type.");i.hideTooltipWhileZooming=!0,i.minWidth=1e-4,i.minHeight=1e-4,i.className="Axis",i.shouldClone=!1,i.setPropertyValue("cursorTooltipEnabled",!0),i.toggleZoomOutButton=!0,i.zoomable=!0;var a=new X["a"];i.title=new L["a"],i.title.shouldClone=!1,i._disposers.push(i.title),i.setPropertyValue("startLocation",0),i.setPropertyValue("endLocation",1),i._dataItemsIterator=new N["a"](i.dataItems,(function(){return i.dataItems.create()})),i._dataItemsIterator.createNewItems=!0;var s=new Z["a"];i._disposers.push(s),s.label.padding(5,10,5,10),s.background.pointerLength=5,s.fitPointerToBounds=!0,s.background.filters.clear(),s.virtualParent=i;var n=s.background;return n.cornerRadius=0,n.fill=a.getFor("alternativeBackground"),n.stroke=n.fill,n.strokeWidth=1,n.fillOpacity=1,s.label.fill=a.getFor("alternativeText"),i.tooltip=s,i.readerHidden=!0,i.events.on("rangechangestarted",(function(){i.series.each((function(t){t.hideTooltipWhileZooming&&(t.tooltip.hide(),t.tooltip.preventShow=!0)})),i.hideTooltipWhileZooming&&(i.tooltip.hide(),i.tooltip.preventShow=!0)}),void 0,!1),i.events.on("rangechangeended",(function(){i.series.each((function(t){t.hideTooltipWhileZooming&&(t.tooltip.hide(),t.tooltip.preventShow=!1)})),i.hideTooltipWhileZooming&&(i.tooltip.hide(),i.tooltip.preventShow=!1)}),void 0,!1),i.applyTheme(),i}return Object(V["c"])(e,t),e.prototype.fillRule=function(t,e){z["h"](e)||(e=t.index),e/2==Math.round(e/2)?(t.axisFill.__disabled=!0,t.axisFill.opacity=0):(t.axisFill.opacity=1,t.axisFill.__disabled=!1)},e.prototype.createDataItem=function(){return new Ct},e.prototype.invalidateLayout=function(){t.prototype.invalidateLayout.call(this),N["d"](this.series.iterator(),(function(t){t.invalidateLayout()}))},e.prototype.invalidateSeries=function(){N["d"](this.series.iterator(),(function(t){t.invalidate()}))},e.prototype.validateDataElements=function(){this._axisItemCount=0,this.ghostLabel&&(this.renderer.updateLabelElement(this.ghostLabel,this.start,this.end),this.ghostLabel.validate())},e.prototype.updateGridCount=function(){if(this.renderer){var t=this.axisLength/this.renderer.minGridDistance;t!=this._gridCount&&(this._gridCount=t,this.clearCache())}},e.prototype.validateLayout=function(){this.axisFullLength=this.axisLength/(this.end-this.start),t.prototype.validateLayout.call(this),this.updateGridCount();var e=this.renderer;e&&(e.updateAxisLine(),e.updateTooltip(),e.updateBaseGridElement()),this._prevLength!=this.axisLength&&(this.dispatchImmediately("lengthchanged"),this._prevLength=this.axisLength)},e.prototype.initRenderer=function(){},e.prototype.appendDataItem=function(t){var e=this.renderer,i=t.tick;i&&(i.above?i.parent=e.bulletsContainer:i.parent=e.gridContainer),t.label&&(t.label.parent=e);var a=t.axisFill;a&&(a.above?a.parent=e.bulletsContainer:a.parent=e.gridContainer);var s=t.grid;s&&(s.above?s.parent=e.bulletsContainer:s.parent=e.gridContainer),t.bullet&&(t.bullet.parent=e.bulletsContainer)},e.prototype.validate=function(){t.prototype.validate.call(this),this.validateLayout(),this.renderer.updateGridContainer()},e.prototype.validateAxisRanges=function(){var t=this;N["d"](this.axisRanges.iterator(),(function(e){t.appendDataItem(e),t.validateDataElement(e),e.grid&&e.grid.validate(),e.tick&&e.tick.validate(),e.axisFill&&e.axisFill.validate(),e.label&&e.label.validate()}))},e.prototype.validateBreaks=function(){this._axisBreaks&&N["d"](this._axisBreaks.iterator(),(function(t){t.invalidate()}))},e.prototype.processBreak=function(t){var e=t.newValue;e.parent=this.renderer.breakContainer,e.axis=this},e.prototype.registerSeries=function(t){var e=this;return this.series.moveValue(t),new j["c"]([new j["b"]((function(){e.series.removeValue(t)})),this.events.on("lengthchanged",t.invalidate,t,!1),this.events.on("lengthchanged",t.createMask,t,!1),this.events.on("startchanged",t.invalidate,t,!1),this.events.on("endchanged",t.invalidate,t,!1)])},Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},set:function(t){if(t!=this._renderer){this._renderer=t,t.chart=this.chart,t.axis=this,t.parent=this,this.title.parent=this,this.initRenderer(),this._disposers.push(t.gridContainer.events.on("maxsizechanged",this.invalidate,this,!1));var e=this.renderer.labels.create();this._disposers.push(e),e.dataItem=this.dataItems.template.clone(),e.text="L",e.parent=this.renderer,e.shouldClone=!1,e.fillOpacity=0,e.opacity=0,e.strokeOpacity=0,e.interactionsEnabled=!1,e.validate(),this.ghostLabel=e,this.events.on("beforedatavalidated",(function(){e.text="L"}),void 0,!1)}},enumerable:!0,configurable:!0}),e.prototype.positionToAngle=function(t){return this.renderer.positionToAngle(t)},e.prototype.pointToPosition=function(t){return this.renderer.pointToPosition(t)},e.prototype.positionToCoordinate=function(t){return this.renderer.positionToCoordinate(t)},e.prototype.getAnyRangePath=function(t,e){return this.renderer.getPositionRangePath(t,e)},e.prototype.anyToPosition=function(t){return 0},e.prototype.anyToPoint=function(t){return{x:0,y:0,angle:0}},e.prototype.getPositionRangePath=function(t,e){return this.renderer?this.renderer.getPositionRangePath(t,e):""},Object.defineProperty(e.prototype,"axisLength",{get:function(){return this.renderer?this.renderer.axisLength:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(t){this.setPropertyValue("cursorTooltipEnabled",t)&&(t&&this.renderer?this.renderer.updateTooltip():this.tooltip&&this.tooltip.hide(0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toggleZoomOutButton",{get:function(){return this.getPropertyValue("toggleZoomOutButton")},set:function(t){this.setPropertyValue("toggleZoomOutButton",t)},enumerable:!0,configurable:!0}),e.prototype.hideTooltip=function(e){t.prototype.hideTooltip.call(this,e),this._tooltipPosition=void 0},e.prototype.showTooltipAtPosition=function(t,e){var i=this._tooltip;if(!i||this.dataItems.length<=0)this._tooltipPosition=void 0;else{if(e||(t=this.toAxisPosition(t)),!z["h"](t)||t<this.start||t>this.end)return i.hide(0),void(this._tooltipPosition=void 0);var a=this.renderer;i.parent||(i.parent=this.tooltipContainer);var s=a.tooltipLocation,n=this.getCellStartPosition(t),r=this.getCellEndPosition(t);if("fixed"==this.tooltipPosition&&(t=n+(r-n)*s),t=et["i"](t,this.start,this.end),this._tooltipPosition!=t){this._tooltipPosition=t;var o=a.tooltipLocation2,l=a.positionToPoint(n,o),h=a.positionToPoint(r,o);this.currentItemStartPoint=l,this.currentItemEndPoint=h,a.fullWidthTooltip&&(i.width=h.x-l.x,i.height=h.y-l.y);var u=a.positionToPoint(t,o),d=tt["J"](u,this.renderer.line);i.text=this.getTooltipText(t),i.text&&(i.delayedPointTo(d),i.show())}this.cursorTooltipEnabled&&!this.tooltip.disabled||i.hide(0)}},e.prototype.toAxisPosition=function(t){if(t=this.renderer.toAxisPosition(t),void 0!=t)return t*=this.end-this.start,t=this.renderer.inversed?this.end-t:this.start+t,t},e.prototype.toGlobalPosition=function(t){return this.renderer.inversed?t=this.end-t:t-=this.start,t/(this.end-this.start)},e.prototype.getTooltipText=function(t){},e.prototype.updateTooltip=function(t,e){var i=this._tooltip;i&&(i.fixDoc=!1,i.pointerOrientation=t,i.setBounds(tt["K"](e,this.renderer.line)))},e.prototype.roundPosition=function(t,e,i){return t},e.prototype.getCellStartPosition=function(t){return t},e.prototype.getCellEndPosition=function(t){return t},Object.defineProperty(e.prototype,"axisRanges",{get:function(){if(!this._axisRanges){var t=this.createDataItem();t.isRange=!0,t.axisFill=this.renderer.axisFills.template.clone(),t.grid=this.renderer.grid.template.clone(),t.tick=this.renderer.ticks.template.clone(),t.label=this.renderer.labels.template.clone(),t.isTemplate=!0,t.component=this,t.axisFill.disabled=!1,t.tick.disabled=!1,t.grid.disabled=!1,t.label.disabled=!1,this._axisRanges=new w["c"](t),this._axisRanges.events.on("inserted",this.processAxisRange,this,!1),this._disposers.push(new w["b"](this._axisRanges)),this._disposers.push(this._axisRanges.template)}return this._axisRanges},enumerable:!0,configurable:!0}),e.prototype.processAxisRange=function(t){var e=t.newValue;e.component=this,e.isRange=!0},Object.defineProperty(e.prototype,"axisBreaks",{get:function(){return this._axisBreaks||(this._axisBreaks=new _t["c"](this.createAxisBreak(),(function(t,e){return Pt["a"](t.adjustedStartValue,e.adjustedStartValue)})),this._axisBreaks.events.on("inserted",this.processBreak,this,!1),this._disposers.push(new w["b"](this._axisBreaks)),this._disposers.push(this._axisBreaks.template)),this._axisBreaks},enumerable:!0,configurable:!0}),e.prototype.createAxisBreak=function(){return new xt},Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new w["a"]),this._series},enumerable:!0,configurable:!0}),e.prototype.processSeriesDataItems=function(){},e.prototype.processSeriesDataItem=function(t,e){},e.prototype.postProcessSeriesDataItems=function(t){},e.prototype.postProcessSeriesDataItem=function(t){},e.prototype.updateAxisBySeries=function(){},e.prototype.hideUnusedDataItems=function(){var t=this,e=this._dataItemsIterator;e.createNewItems=!1,N["d"](e.iterator(),(function(e){t.validateDataElement(e),e.__disabled=!0})),e.clear(),e.createNewItems=!0},e.prototype.getSeriesDataItem=function(t,e,i){},e.prototype.getAngle=function(t,e,i,a,s){},e.prototype.getX=function(t,e,i,a,s){},e.prototype.getPositionX=function(t,e,i,a,s){},e.prototype.getY=function(t,e,i,a,s){},e.prototype.getPositionY=function(t,e,i,a,s){},Object.defineProperty(e.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),e.prototype.dataChangeUpdate=function(){},e.prototype.seriesDataChangeUpdate=function(t){},e.prototype.adjustDifference=function(t,e){var i=e-t;if(z["h"](i))return this._axisBreaks&&N["e"](this._axisBreaks.iterator(),(function(a){var s=a.adjustedStartValue,n=a.adjustedEndValue;if(z["h"](s)&&z["h"](n)){if(s>e)return!1;if(n>=t&&z["h"](s)&&z["h"](n)){var r=a.breakSize,o=et["y"]({start:s,end:n},{start:t,end:e});o&&(i-=(o.end-o.start)*(1-r))}return!0}})),i},e.prototype.isInBreak=function(t){if(this._axisBreaks)return N["f"](this._axisBreaks.iterator(),(function(e){return t>=e.adjustedStartValue&&t<=e.adjustedEndValue}))},e.prototype.fixAxisBreaks=function(){var t=this;if(this._axisBreaks){var e=this._axisBreaks;if(e.length>0){dt["d"](N["m"](e.iterator()),(function(e){var i=et["C"](e.startValue,e.endValue),a=et["B"](e.startValue,e.endValue);e.adjustedStartValue=i,e.adjustedEndValue=a,t._axisBreaks.update(e)}));var i=e.first,a=Math.min(i.startValue,i.endValue);N["d"](e.iterator(),(function(t){var e=t.adjustedStartValue,i=t.adjustedEndValue;e<a&&(e=a,i<a&&(i=a)),t.adjustedStartValue=e,t.adjustedEndValue=i}))}}},Object.defineProperty(e.prototype,"startIndex",{get:function(){return 0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endIndex",{get:function(){return this.dataItems.length},set:function(t){},enumerable:!0,configurable:!0}),e.prototype.getPositionLabel=function(t){return Math.round(100*t)+"%x"},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t},enumerable:!0,configurable:!0}),e.prototype.createSeriesRange=function(t){var e=this.axisRanges.create();return e.component=this,e.axisFill=this.renderer.axisFills.template.clone(),e.axisFill.disabled=!1,e.axisFill.fillOpacity=0,e.grid=this.renderer.grid.template.clone(),e.grid.disabled=!0,e.tick=this.renderer.ticks.template.clone(),e.tick.disabled=!0,e.label=this.renderer.labels.template.clone(),e.label.disabled=!0,e.addDisposer(new j["b"]((function(){t.axisRanges.removeValue(e)}))),t.axisRanges.push(e),e},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.renderer?this.renderer.copyFrom(e.renderer):e.renderer&&(this.renderer=e.renderer.clone(),this._disposers.push(this.renderer)),e.title&&(this.title?this.title.copyFrom(e.title):(this.title=e.title.clone(),this.title.parent=this),this._disposers.push(this.title))},e.prototype.resetIterators=function(){this._dataItemsIterator.reset()},e.prototype.processConfig=function(e){if(e&&z["d"](e.axisRanges)&&z["e"](e.axisRanges))for(var i=0,a=e.axisRanges.length;i<a;i++){var s=e.axisRanges[i];z["d"](s["series"])&&z["j"](s["series"])&&this.map.hasKey(s["series"])&&(e.axisRanges[i]=this.createSeriesRange(this.map.getKey(s["series"])),delete s["series"],e.axisRanges[i].config=s)}t.prototype.processConfig.call(this,e)},e.prototype.configOrder=function(e,i){return e==i?0:"title"==e?1:"title"==i||"component"==e?-1:"component"==i?1:t.prototype.configOrder.call(this,e,i)},Object.defineProperty(e.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.renderer&&(this.renderer.gridContainer.disabled=e),i},Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(t){this._title&&this._title!=t&&this._title.dispose(),t&&(this._title=t,t.parent=this,t.shouldClone=!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideTooltipWhileZooming",{get:function(){return this.getPropertyValue("hideTooltipWhileZooming")},set:function(t){this.setPropertyValue("hideTooltipWhileZooming",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomable",{get:function(){return this.getPropertyValue("zoomable")},set:function(t){this.setPropertyValue("zoomable",t)},enumerable:!0,configurable:!0}),e}(S["a"]);T["b"].registeredClasses["Axis"]=It,T["b"].registeredClasses["AxisDataItem"]=Ct,H["c"].push({relevant:H["b"].maybeXS,state:function(t,e){if(t instanceof It&&t.tooltip){var i=t.states.create(e);return i.properties.cursorTooltipEnabled=!1,i}return null}});var At=function(t){function e(){var e=t.call(this)||this;e.className="AxisLine",e.element=e.paper.add("path");var i=new X["a"];return e.stroke=i.getFor("grid"),e.strokeOpacity=.15,e.pixelPerfect=!0,e.fill=Object(lt["b"])(),e.applyTheme(),e.interactionsEnabled=!1,e}return Object(V["c"])(e,t),e}(R["a"]);T["b"].registeredClasses["AxisLine"]=At;var Ot=function(t){function e(e){var i=t.call(this)||this;i.axis=e,i.element=i.paper.add("path"),i.className="AxisFill",i.isMeasured=!1,i.location=0,i.above=!1;var a=new X["a"];return i.fill=a.getFor("alternativeBackground"),i.fillOpacity=0,i.applyTheme(),i}return Object(V["c"])(e,t),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e.prototype.draw=function(){t.prototype.draw.call(this),this.__disabled||this.disabled||this.axis&&z["h"](this.startPosition)&&z["h"](this.endPosition)&&(this.fillPath=this.axis.getPositionRangePath(this.startPosition,this.endPosition),this.path=this.fillPath,this.isMeasured&&this.measure())},Object.defineProperty(e.prototype,"startPosition",{get:function(){return this.getPropertyValue("startPosition")},set:function(t){this.setPropertyValue("startPosition",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){return this.getPropertyValue("endPosition")},set:function(t){this.setPropertyValue("endPosition",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setPath=function(t){return!!this.setPropertyValue("path",t)&&(this.element.attr({d:t}),!0)},Object.defineProperty(e.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),e}(R["a"]);T["b"].registeredClasses["AxisFill"]=Ot;var Dt=function(t){function e(){var e=t.call(this)||this;e.className="Grid",e.element=e.paper.add("path"),e.location=.5,e.isMeasured=!1,e.above=!1;var i=new X["a"];return e.stroke=i.getFor("grid"),e.pixelPerfect=!0,e.strokeOpacity=.15,e.fill=Object(lt["b"])(),e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(R["a"]);T["b"].registeredClasses["Grid"]=Dt,H["c"].push({relevant:H["b"].maybeXS,state:function(t,e){if(t instanceof Dt){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var kt=function(t){function e(){var e=t.call(this)||this;return e.className="AxisLabel",e.isMeasured=!1,e.padding(10,10,10,10),e.location=.5,e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(L["a"]);T["b"].registeredClasses["AxisLabel"]=kt;var Vt=function(t){function e(){var e=t.call(this)||this;e.className="Tick";var i=new X["a"];return e.fillOpacity=0,e.length=6,e.strokeOpacity=.2,e.stroke=i.getFor("grid"),e.isMeasured=!1,e.nonScalingStroke=!0,e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"length",{get:function(){return this.disabled?0:this.getPropertyValue("length")},set:function(t){this.setPropertyValue("length",t,!0)},enumerable:!0,configurable:!0}),e}(R["a"]);T["b"].registeredClasses["Tick"]=Vt;var Tt=function(t){function e(){var e=t.call(this)||this;return e.className="AxisTick",e.element=e.paper.add("path"),e.location=.5,e.above=!1,e.isMeasured=!1,e.pixelPerfect=!0,e.strokeOpacity=0,e.length=5,e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(Vt);T["b"].registeredClasses["AxisTick"]=Tt;var St=function(t){function e(){var e=t.call(this)||this;e._chart=new j["d"],e.className="AxisRenderer",e.minGridDistance=50,e.inside=!1,e.inversed=!1,e.tooltipLocation=.5,e.fullWidthTooltip=!1,e.cellStartLocation=0,e.cellEndLocation=1,e.minLabelPosition=0,e.maxLabelPosition=1,e.shouldClone=!1;var i=e.createChild(F["a"]);i.shouldClone=!1,i.layout="none",i.virtualParent=e,i.width=Object(Y["c"])(100),i.height=Object(Y["c"])(100),e.gridContainer=i,i.events.on("maxsizechanged",(function(){e.inited&&e.invalidateAxisItems()}),e,!1);var a=e.createChild(F["a"]);a.shouldClone=!1,a.isMeasured=!1,a.layout="none",a.width=Object(Y["c"])(100),a.height=Object(Y["c"])(100),e.breakContainer=a;var s=e.createChild(F["a"]);s.shouldClone=!1,s.isMeasured=!1,s.layout="none",s.width=Object(Y["c"])(100),s.height=Object(Y["c"])(100),e.bulletsContainer=s,e.line=e.createChild(At),e.line.shouldClone=!1,e.line.strokeOpacity=0;var n=e.createChild(Dt);n.shouldClone=!1,e.baseGrid=n;var r=e._disposers;return r.push(n),r.push(e.line),r.push(i),r.push(a),r.push(s),r.push(e._chart),e.ticks.template.disabled=!0,e.axisFills.template.disabled=!0,e.axisFills.template.interactionsEnabled=!1,e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis},set:function(t){this.setAxis(t)},enumerable:!0,configurable:!0}),e.prototype.setAxis=function(t){this._axis=t,this.baseGrid.parent=t,this.line.parent=t,this.gridContainer.bind("opacity",t)},e.prototype.processRenderer=function(){this.events.on("sizechanged",this.updateTooltip,this,!1),this.events.on("positionchanged",this.updateTooltip,this,!1),this.labels.template.inside=this.inside,this.ticks.template.inside=this.inside},e.prototype.updateTooltip=function(){},Object.defineProperty(e.prototype,"axisLength",{get:function(){return 0},enumerable:!0,configurable:!0}),e.prototype.positionItem=function(t,e){t&&t.moveTo(e)},e.prototype.positionToPoint=function(t,e){return{x:0,y:0}},e.prototype.positionToAngle=function(t){return 0},e.prototype.positionToCoordinate=function(t){var e,i=this.axis,a=i.axisFullLength;return e=i.renderer.inversed?(i.end-t)*a:(t-i.start)*a,e},e.prototype.updateGridContainer=function(){},e.prototype.getHeight=function(){var t=this.gridContainer;return t.parent?t.parent.pixelHeight:this.gridContainer.pixelHeight||0},e.prototype.getWidth=function(){var t=this.gridContainer;return t.parent?t.parent.pixelWidth:this.gridContainer.pixelWidth||0},e.prototype.coordinateToPosition=function(t,e){var i,a=this.axis,s=a.axisFullLength;return i=a.renderer.inversed?a.end-t/s:t/s+a.start,et["E"](i,5)},e.prototype.pointToPosition=function(t){return 0},e.prototype.getPositionRangePath=function(t,e){return""},e.prototype.invalidateAxisItems=function(){var t=this.axis;t&&t.invalidateDataItems()},e.prototype.updateGridElement=function(t,e,i){},e.prototype.updateTickElement=function(t,e,i){},e.prototype.updateBullet=function(t,e,i){},e.prototype.updateLabelElement=function(t,e,i,a){},e.prototype.updateFillElement=function(t,e,i){t.startPosition=e,t.endPosition=i},e.prototype.updateAxisLine=function(){},e.prototype.updateBaseGridElement=function(){},e.prototype.updateBreakElement=function(t){this.positionItem(t.startLine,t.startPoint),this.toggleVisibility(t.startLine,t.startPosition,0,1),this.positionItem(t.endLine,t.endPoint),this.toggleVisibility(t.endLine,t.endPosition,0,1)},Object.defineProperty(e.prototype,"minGridDistance",{get:function(){return this.getPropertyValue("minGridDistance")},set:function(t){this.setPropertyValue("minGridDistance",t)&&this.axis&&this.axis.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.set(t,null)},enumerable:!0,configurable:!0}),e.prototype.toggleVisibility=function(t,e,i,a){var s=this.axis,n=t.dataItem;n&&n instanceof Ct&&(z["h"](n.minPosition)&&(i=n.minPosition),z["h"](n.maxPosition)&&(a=n.maxPosition));var r=s.start+(s.end-s.start)*(i-1e-4),o=s.start+(s.end-s.start)*(a+1e-4);t.disabled||(t.__disabled=e<r||e>o)},e.prototype.createBreakSprites=function(t){},Object.defineProperty(e.prototype,"axisFills",{get:function(){if(!this._axisFills){var t=this.createFill(this.axis);this._axisFills=new w["c"](t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new w["b"](this._axisFills)),this._disposers.push(this._axisFills.template)}return this._axisFills},enumerable:!0,configurable:!0}),e.prototype.createFill=function(t){return new Ot(t)},Object.defineProperty(e.prototype,"grid",{get:function(){if(!this._grid){var t=this.createGrid();this._grid=new w["c"](t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new w["b"](this._grid)),this._disposers.push(this._grid.template)}return this._grid},enumerable:!0,configurable:!0}),e.prototype.createGrid=function(){return new Dt},Object.defineProperty(e.prototype,"ticks",{get:function(){if(!this._ticks){var t=this.createTick();t.applyOnClones=!0,t.isMeasured=!1,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._ticks=new w["c"](t),this._disposers.push(new w["b"](this._ticks)),this._disposers.push(this._ticks.template)}return this._ticks},enumerable:!0,configurable:!0}),e.prototype.createTick=function(){return new Tt},Object.defineProperty(e.prototype,"labels",{get:function(){if(!this._labels){var t=this.createLabel();this._labels=new w["c"](t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new w["b"](this._labels)),this._disposers.push(this._labels.template)}return this._labels},enumerable:!0,configurable:!0}),e.prototype.createLabel=function(){return new kt},Object.defineProperty(e.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t)&&this.axis&&this.axis.invalidate(),t?(this.width=0,this.height=0):(this.width=void 0,this.height=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opposite",{get:function(){return this.getPropertyValue("opposite")},set:function(t){this.setPropertyValue("opposite",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWidthTooltip",{get:function(){return this.getPropertyValue("fullWidthTooltip")},set:function(t){this.setPropertyValue("fullWidthTooltip",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(t){this.setPropertyValue("tooltipLocation",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipLocation2",{get:function(){return this.getPropertyValue("tooltipLocation2")},set:function(t){this.setPropertyValue("tooltipLocation2",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellStartLocation",{get:function(){return this.getPropertyValue("cellStartLocation")},set:function(t){this.setPropertyValue("cellStartLocation",t)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellEndLocation",{get:function(){return this.getPropertyValue("cellEndLocation")},set:function(t){this.setPropertyValue("cellEndLocation",t)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inversed",{get:function(){return this.getPropertyValue("inversed")},set:function(t){this.setPropertyValue("inversed",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minLabelPosition",{get:function(){return this.getPropertyValue("minLabelPosition")},set:function(t){this.setPropertyValue("minLabelPosition",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxLabelPosition",{get:function(){return this.getPropertyValue("maxLabelPosition")},set:function(t){this.setPropertyValue("maxLabelPosition",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.grid.template.copyFrom(e.grid.template),this.ticks.template.copyFrom(e.ticks.template),this.labels.template.copyFrom(e.labels.template),this.axisFills.template.copyFrom(e.axisFills.template),this.line.copyFrom(e.line),this.baseGrid.copyFrom(e.baseGrid)},e.prototype.toAxisPosition=function(t){return t},e.prototype.setVisibility=function(e){t.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},e}(F["a"]);T["b"].registeredClasses["AxisRenderer"]=St;var jt=i("7fef"),wt=function(t){function e(){var e=t.call(this)||this;return e.className="AxisBullet",e.location=.5,e.isMeasured=!1,e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(F["a"]);T["b"].registeredClasses["AxisBullet"]=wt;var Ft=function(t){function e(){var e=t.call(this)||this;return e.className="AxisRendererY",e.minGridDistance=40,e.opposite=!1,e.height=Object(Y["c"])(100),e.labels.template.verticalCenter="middle",e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.setAxis=function(e){t.prototype.setAxis.call(this,e),e.layout="horizontal"},e.prototype.updateGridContainer=function(){var t=this.axis;if(t){var e=this.gridContainer;e.y=t.pixelY,e.height=t.axisLength}},e.prototype.toAxisPosition=function(t){var e=this.axis;if(e){var i=1-t,a=e.relativePositionSprite,s=e.pixelY;if(a?s=tt["I"]({x:0,y:this.pixelY},this.parent,a).y:a=e.parent,a){var n=s/a.innerHeight,r=e.axisLength/a.innerHeight;return 1-(i-n)/r}}return t},e.prototype.processRenderer=function(){t.prototype.processRenderer.call(this);var e=this.axis;if(e){var i=e.title;i.valign="middle",e.height instanceof Y["a"]||(e.height=Object(Y["c"])(100)),this.opposite?(i.rotation=90,this.line.toBack(),i.toFront()):(i.rotation=-90,i.toBack(),this.line.toFront())}},e.prototype.updateTooltip=function(){var t=this.axis;if(t){var e=2e3,i=0,a=0,s=e,n=this.axisLength;this.opposite?this.inside&&(i=-e,s=e):this.inside||(i=-e,s=e),this.axis.updateTooltip("horizontal",{x:i,y:a,width:s,height:n})}},Object.defineProperty(e.prototype,"axisLength",{get:function(){var t=this.axis;return t.measuredHeight-t.pixelPaddingTop-t.pixelPaddingBottom||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){return{x:0,y:this.positionToCoordinate(t)}},e.prototype.pointToPosition=function(t){return this.coordinateToPosition(t.y,t.x)},e.prototype.coordinateToPosition=function(t,e){var i,a=this.axis,s=a.axisFullLength;return i=a.renderer.inversed?1-a.start-t/s:t/s+(1-a.end),et["E"](i,5)},e.prototype.getPositionRangePath=function(t,e){var i=et["i"](this.positionToCoordinate(t),0,this.axisLength),a=et["i"](this.positionToCoordinate(e),0,this.axisLength),s=Math.abs(a-i),n=this.getWidth(),r=Math.min(i,a),o=0;return B["j"]({x:o,y:r,width:n,height:s},!0)},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var a=this.positionToPoint(e);t.path=B["g"]({x:0,y:0})+B["f"]({x:this.getWidth(),y:0}),this.positionItem(t,a),this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var a=this.positionToPoint(e),s=t.length;try{tt["R"](this.axis.title.measuredWidth)}catch(n){}a.x=tt["I"]({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.opposite?s*=t.inside?-1:1:s*=t.inside?1:-1,t.path=B["g"]({x:0,y:0})+B["f"]({x:s,y:0}),this.positionItem(t,a),this.toggleVisibility(t,e,0,1)},e.prototype.updateAxisLine=function(){this.line.path=B["g"]({x:0,y:0})+B["f"]({x:0,y:this.axisLength})},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.axis,i=this.getWidth(),a=this.axisLength,s=e.basePoint.y,n=this.baseGrid;if(s<-.2||s>a+.2)n.hide(0);else{var r=tt["I"]({x:0,y:0},this.gridContainer,n.parent).x;n.path=B["g"]({x:0,y:0})+B["f"]({x:i,y:0}),n.moveTo({x:r,y:s}),n.show(0)}},e.prototype.updateLabelElement=function(t,e,i,a){z["d"](a)||(a=t.location),e+=(i-e)*a,t.isMeasured=!t.inside;var s,n=this.positionToPoint(e),r=0,o=this.gridContainer.maxWidth;this.opposite?(t.inside?(s="right","left"==t.align&&(r=-o,s="left"),"center"==t.align&&(r=-o/2,s="middle")):s="left",n.x=0+r):(t.inside?(s="left","right"==t.align&&(r=o,s="right"),"center"==t.align&&(r=o/2,s="middle")):s="right",n.x=this.measuredWidth+r),0==t.rotation&&(t.horizontalCenter=s),this.positionItem(t,n),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},e.prototype.updateBreakElement=function(e){t.prototype.updateBreakElement.call(this,e);var i=e.startLine,a=e.endLine,s=e.fillShape,n=e.startPoint,r=e.endPoint,o=e.pixelMarginLeft,l=this.getWidth()-e.pixelMarginLeft-e.pixelMarginRight;n.y=et["i"](n.y,-1,this.axisLength+1),r.y=et["i"](r.y,-1,this.axisLength+1),n.y==r.y&&(n.y<0||n.y>this.axisLength)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1;var h=Math.abs(l-o);i.x=o,i.height=0,i.width=h,a.x=o,a.height=0,a.width=h,s.width=h,s.height=Math.abs(r.y-n.y),s.x=o,s.y=r.y},e.prototype.createBreakSprites=function(t){t.startLine=new vt["a"],t.endLine=new vt["a"];var e=new jt["a"];e.setWavedSides(!0,!1,!0,!1),t.fillShape=e},e.prototype.positionToCoordinate=function(t){var e,i=this.axis,a=i.axisFullLength;return e=i.renderer.inversed?(t-i.start)*a:(i.end-t)*a,e},e.prototype.updateBullet=function(t,e,i){var a=.5;t instanceof wt&&(a=t.location),e+=(i-e)*a;var s=this.positionToPoint(e);s.x=tt["I"]({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.positionItem(t,s),this.toggleVisibility(t,e,0,1)},e}(St);T["b"].registeredClasses["AxisRendererY"]=Ft,H["c"].push({relevant:H["b"].widthS,state:function(t,e){if(t instanceof Ft){var i=t.states.create(e);return i.properties.inside=!0,i.properties.maxLabelPosition=.9,i.properties.minLabelPosition=.1,i}return null}}),H["c"].push({relevant:H["b"].widthXS,state:function(t,e){if(t instanceof Ft){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var Lt=function(t){function e(){var e=t.call(this)||this;return e.className="ValueAxisBreak",e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedStartValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedEndValue)},enumerable:!0,configurable:!0}),e}(xt);T["b"].registeredClasses["ValueAxisBreak"]=Lt;var Mt=function(t){function e(){var e=t.call(this)||this;return e.className="ValueAxisDataItem",e.values.value={},e.values.endValue={},e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.values["value"].value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){return this.values["endValue"].value},set:function(t){this.setValue("endValue",t)},enumerable:!0,configurable:!0}),e}(Ct),Rt=function(t){function e(){var e=t.call(this)||this;return e._stepDecimalPlaces=0,e._prevStepDecimalPlaces=0,e._adjustLabelPrecision=!0,e._baseValue=0,e._adjustedStart=0,e._adjustedEnd=1,e._extremesChanged=!1,e._deltaMinMax=1,e._dsc=!1,e.calculateTotals=!1,e.className="ValueAxis",e.axisFieldName="value",e.setPropertyValue("maxZoomFactor",1e3),e.setPropertyValue("extraMin",0),e.setPropertyValue("extraMax",0),e.setPropertyValue("strictMinMax",!1),e.setPropertyValue("maxPrecision",Number.MAX_VALUE),e.setPropertyValue("adjustLabelPrecision",!0),e.setPropertyValue("extraTooltipPrecision",0),e.keepSelection=!1,e.includeRangesInMinMax=!1,e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.fillRule=function(t){var e=t.value,i=t.component;t.axisFill.disabled||(et["E"](e/i.step/2,5)==Math.round(e/i.step/2)?t.axisFill.__disabled=!0:t.axisFill.__disabled=!1)},e.prototype.createDataItem=function(){return new Mt},e.prototype.createAxisBreak=function(){return new Lt},e.prototype.dataChangeUpdate=function(){this.clearCache(),this.keepSelection?(0!=this._start&&this.dispatchImmediately("startchanged"),1!=this._end&&this.dispatchImmediately("endchanged"),0==this._start&&1==this._end||this.dispatchImmediately("startendchanged")):0==this._start&&1==this._end||(this._start=0,this._end=1,this.dispatchImmediately("startendchanged")),this._maxZoomed=this._maxDefined,this._minZoomed=this._minDefined,this._maxAdjusted=this._maxDefined,this._minAdjusted=this._minDefined},e.prototype.processSeriesDataItems=function(){if(this.calculateTotals){var t=this.series.getIndex(0),e=t.startIndex;if(t.dataItems.length>0){e>0&&e--;var i=t.endIndex;i<t.dataItems.length&&i++;for(var a=function(t){var e={},i={};s.series.each((function(a){if(!a.excludeFromTotal){var s=a.dataItems.getIndex(t);s&&ut["d"](s.values,(function(t){var a=s.values[t].workingValue;z["h"](a)&&(z["h"](e[t])?e[t]+=Math.abs(a):e[t]=Math.abs(a),z["h"](i[t])?i[t]+=a:i[t]=a)}))}})),s.series.each((function(a){if(!a.excludeFromTotal){var s=a.dataItems.getIndex(t);s&&ut["d"](s.values,(function(t){var a=s.values[t].workingValue;z["h"](a)&&(s.setCalculatedValue(t,e[t],"total"),s.setCalculatedValue(t,100*a/e[t],"totalPercent"),s.setCalculatedValue(t,i[t],"sum"))}))}}))},s=this,n=e;n<i;++n)a(n)}}},e.prototype.validate=function(){this.axisLength<=0||(t.prototype.validate.call(this),this.getMinMax(),this.fixAxisBreaks(),this.calculateZoom(),this.validateAxisElements(),this.validateAxisRanges(),this.validateBreaks(),this.hideUnusedDataItems(),this.renderer.invalidateLayout())},e.prototype.calculateZoom=function(){if(z["h"](this.min)&&z["h"](this.max)){var t=this.positionToValue(this.start),e=this.positionToValue(this.end),i=this.adjustDifference(t,e),a=this.adjustMinMax(t,e,i,this._gridCount,!0),s=tt["g"](a.step);this._stepDecimalPlaces=s,t=et["E"](t,s),e=et["E"](e,s),a=this.adjustMinMax(t,e,i,this._gridCount,!0);var n=a.step;if(this.syncWithAxis){var r=this.getCache(t+"-"+e);z["h"](r)&&(n=r)}else t=a.min,e=a.max;(this._minZoomed!=t||this._maxZoomed!=e||this._step!=n||this._dsc)&&(this._dsc=!1,this._minZoomed=t,this._maxZoomed=e,this._step=n,this.dispatchImmediately("selectionextremeschanged"))}},e.prototype.fixSmallStep=function(t){return 1+t==1?(t*=2,this.fixSmallStep(t)):t},e.prototype.validateAxisElements=function(){var t=this;if(z["h"](this.max)&&z["h"](this.min)){var e=this.minZoomed-2*this._step;if(this.logarithmic){var i=Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E;i>1?e=Math.pow(10,Math.log(this.min)*Math.LOG10E):(e=Math.floor(this.minZoomed/this._step)*this._step,0==e&&(e=this.minZoomed))}else e=Math.floor(e/this._step)*this._step;var a=this._maxZoomed+this._step;this.resetIterators();var s=this._dataItemsIterator;if(0==this._step)return;this._step=this.fixSmallStep(this._step);var n=0,r=this._prevStepDecimalPlaces!=this._stepDecimalPlaces;this._prevStepDecimalPlaces=this._stepDecimalPlaces;while(e<=a){var o=this.isInBreak(e);if(!o){var l=s.find((function(t){return t.value===e}));l.__disabled&&(l.__disabled=!1),this.appendDataItem(l),l.axisBreak=void 0,(l.value!=e||r)&&(l.value=e,l.text=this.formatLabel(e),l.label&&l.label.invalid&&l.label.validate(),l.value>=this.min&&l.value<=this.max&&l.label&&("Y"==this.axisLetter&&l.label.measuredWidth>this.ghostLabel.measuredWidth||"X"==this.axisLetter&&l.label.measuredHeight>this.ghostLabel.measuredHeight)&&(this.ghostLabel.text=l.label.currentText,this.ghostLabel.validate())),this.validateDataElement(l)}n++;var h=e;if(this.logarithmic){i=Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E;i>1?e=Math.pow(10,Math.log(this.min)*Math.LOG10E+n):e+=this._step}else e+=this._step;var u=Math.pow(10,Math.floor(Math.log(Math.abs(this._step))*Math.LOG10E));if(u<1){var d=Math.round(Math.abs(Math.log(Math.abs(u))*Math.LOG10E))+2;if(d=Math.min(13,d),e=et["e"](e,d),h==e){e=a;break}}}var c=this._axisBreaks;if(c){var p=this.renderer;N["d"](c.iterator(),(function(e){if(e.breakSize>0&&et["q"](e.startPoint,e.endPoint)>p.minGridDistance){var i=e.adjustedMin;while(i<=e.adjustedMax){if(i>=e.adjustedStartValue&&i<=e.adjustedEndValue){var a=s.find((function(t){return t.value===i}));a.__disabled&&(a.__disabled=!1),t.appendDataItem(a),a.axisBreak=e,a.value!=i&&(a.value=i,a.text=t.formatLabel(i),a.label&&a.label.invalid&&a.label.validate()),t.validateDataElement(a)}i+=e.adjustedStep}}}))}}},e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var i=this.renderer,a=e.value,s=e.endValue,n=this.valueToPosition(a);e.position=n;var r=n,o=this.valueToPosition(a+this._step);z["h"](s)&&(r=this.valueToPosition(s),o=r),e.point=i.positionToPoint(n);var l=e.tick;l&&!l.disabled&&i.updateTickElement(l,n,r);var h=e.grid;h&&!h.disabled&&i.updateGridElement(h,n,r);var u=e.label;u&&!u.disabled&&i.updateLabelElement(u,n,r);var d=e.axisFill;d&&!d.disabled&&(i.updateFillElement(d,n,o),e.isRange||this.fillRule(e)),e.bullet&&i.updateBullet(e.bullet,n,r);var c=e.mask;c&&i.updateFillElement(c,n,o)},e.prototype.formatLabel=function(t){return this.adjustLabelPrecision&&0!=t?this.numberFormatter.format(t,void 0,this._stepDecimalPlaces):this.numberFormatter.format(t)},Object.defineProperty(e.prototype,"basePoint",{get:function(){var t=this.baseValue,e=this.valueToPosition(t),i=this.renderer.positionToPoint(e);return i},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseValue",{get:function(){var t=this._baseValue;return this.logarithmic&&(t=this.min),this._adapterO?this._adapterO.apply("baseValue",t):t},set:function(t){this._baseValue=t,this.invalidateLayout(),this.invalidateSeries()},enumerable:!0,configurable:!0}),e.prototype.anyToPosition=function(t){return this.valueToPosition(t)},e.prototype.valueToPoint=function(t){var e=this.valueToPosition(t),i=this.renderer.positionToPoint(e),a=this.renderer.positionToAngle(e);return{x:i.x,y:i.y,angle:a}},e.prototype.anyToPoint=function(t){return this.valueToPoint(t)},e.prototype.valueToPosition=function(t){if(z["h"](t)){var e=this.min,i=this.max;if(z["h"](e)&&z["h"](i)){var a=this._difference,s=this._axisBreaks;s&&s.length>0&&N["e"](s.iterator(),(function(a){var s=a.adjustedStartValue,n=a.adjustedEndValue;if(z["h"](s)&&z["h"](n)){if(t<s)return!1;if(et["x"]({start:s,end:n},{start:e,end:i})){s=Math.max(s,e),n=Math.min(n,i);var r=a.breakSize;t>n?e+=(n-s)*(1-r):t<s||(t=s+(t-s)*r)}}return!0}));var n=void 0;if(this.logarithmic){var r=this.treatZeroAs;z["h"](r)&&t<=r&&(t=r),n=(Math.log(t)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)/(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)}else n=(t-e)/a;return n}}return 0},e.prototype.invalidateLabels=function(){t.prototype.invalidateLabels.call(this),this.dataItems&&(this.dataItems.each((function(t){t.value=void 0})),this.invalidate())},e.prototype.positionToValue=function(t){var e=this.min,i=this.max;if(z["h"](e)&&z["h"](i)){var a=i-e,s=null,n=this._axisBreaks;return n&&n.length>0&&N["e"](n.iterator(),(function(n){var r=n.startPosition,o=n.endPosition,l=n.adjustedStartValue,h=n.adjustedEndValue;if(z["h"](l)&&z["h"](h)){if(l>i)return!1;if(et["x"]({start:l,end:h},{start:e,end:i})){l=et["B"](l,e),h=et["C"](h,i);var u=n.breakSize;if(a-=(h-l)*(1-u),t>o)e+=(h-l)*(1-u);else if(!(t<r)){var d=(t-r)/(o-r);return s=l+d*(h-l),!1}}return!0}})),z["h"](s)||(s=this.logarithmic?Math.pow(Math.E,(t*(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)+Math.log(this.min)*Math.LOG10E)/Math.LOG10E):t*a+e),s}},e.prototype.xToValue=function(t){return this.positionToValue(this.pointToPosition({x:t,y:0}))},e.prototype.yToValue=function(t){return this.positionToValue(this.pointToPosition({x:0,y:t}))},e.prototype.pointToPosition=function(t){return this.renderer instanceof Ft?1-this.renderer.pointToPosition(t):this.renderer.pointToPosition(t)},e.prototype.animateMinMax=function(t,e){return this.animate([{property:"_minAdjusted",from:this._minAdjusted,to:t},{property:"_maxAdjusted",from:this._maxAdjusted,to:e}],this.rangeChangeDuration,this.rangeChangeEasing)},e.prototype.getMinMax=function(){var t=this;this.updateGridCount();var e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;if(z["h"](this._minDefined)&&z["h"](this._maxDefined)||(this.series.each((function(a){if(!a.ignoreMinMax){var s=a.min(t);z["h"](s)&&s<e&&(e=s);var n=a.max(t);z["h"](n)&&n>i&&(i=n)}})),this.includeRangesInMinMax&&this.axisRanges.each((function(t){if(!t.ignoreMinMax){var a=et["C"](t.value,t.endValue),s=et["B"](t.value,t.endValue);(a<e||!z["h"](e))&&(e=a),(s>i||!z["h"](i))&&(i=s)}}))),this.logarithmic){var a=this.treatZeroAs;z["h"](a)&&e<=0&&(e=a),e<=0&&this.raiseCriticalError(new Error("Logarithmic value axis can not have values <= 0."),!0)}if(0==e&&0==i&&(i=.9,e=-.9),z["h"](this._minDefined)&&(e=this._minDefined),z["h"](this._maxDefined)&&(i=this._maxDefined),this._adapterO&&(e=this._adapterO.apply("min",e)),this._adapterO&&(i=this._adapterO.apply("max",i)),z["h"](e)&&z["h"](i)){this._minReal=e,this._maxReal=i,e==Number.POSITIVE_INFINITY&&(e=void 0),i==Number.NEGATIVE_INFINITY&&(i=void 0);var s=this.adjustDifference(e,i);if(e=this.fixMin(e),i=this.fixMax(i),i-e<=1/Math.pow(10,15)){if(i-e!=0)this._deltaMinMax=(i-e)/2;else{var n=Math.log(Math.abs(i))*Math.LOG10E,r=Math.pow(10,Math.floor(n));r/=10,this._deltaMinMax=r}e-=this._deltaMinMax,i+=this._deltaMinMax}e-=(i-e)*this.extraMin,i+=(i-e)*this.extraMax;var o=this.strictMinMax;z["h"](this._maxDefined)&&(o=!0);var l=this.adjustMinMax(e,i,s,this._gridCount,o);if(e=l.min,i=l.max,s=i-e,l=this.adjustMinMax(e,i,i-e,this._gridCount,!0),e=l.min,i=l.max,this.strictMinMax&&(e=z["h"](this._minDefined)?this._minDefined:this._minReal,i=z["h"](this._maxDefined)?this._maxDefined:this._maxReal,i-e<=1e-8&&(e-=this._deltaMinMax,i+=this._deltaMinMax),e-=(i-e)*this.extraMin,i+=(i-e)*this.extraMax),this._adapterO&&(e=this._adapterO.apply("min",e)),this._adapterO&&(i=this._adapterO.apply("max",i)),this._step=l.step,z["h"](e)||z["h"](i)||(this.start=0,this.end=1,this.renderer.labels.each((function(t){t.dataItem.text=""}))),(this._minAdjusted!=e||this._maxAdjusted!=i)&&z["h"](e)&&z["h"](i)){var h=this._minMaxAnimation;if(this._extremesChanged&&z["h"](this._minAdjusted)&&z["h"](this._maxAdjusted)&&this.inited){if(h&&!h.isFinished()&&this._finalMax==i&&this._finalMin==e)return;this._finalMin=e,this._finalMax=i,h=this.animateMinMax(e,i),h&&!h.isFinished()?(h.events.on("animationprogress",this.validateDataItems,this),h.events.on("animationended",(function(){t.series.each((function(t){t.validate()})),t.validateDataItems(),t.handleSelectionExtremesChange()})),this._minMaxAnimation=h):this.series.each((function(t){t.invalidate()})),this.validateDataItems(),this.dispatchImmediately("extremeschanged"),this.handleSelectionExtremesChange()}else{if(h&&!h.isFinished()&&this._finalMax==i&&this._finalMin==e)return;this._minAdjusted=e,this._maxAdjusted=i,this._finalMin=e,this._finalMax=i,this.invalidateDataItems(),this.dispatchImmediately("extremeschanged")}}this._extremesChanged=!1,this._difference=this.adjustDifference(e,i)}},e.prototype.fixMin=function(t){return t},e.prototype.fixMax=function(t){return t},e.prototype.adjustMinMax=function(t,e,i,a,s){a<=1&&(a=1),a=Math.round(a);var n=t,r=e;0===i&&(i=Math.abs(e));var o=Math.log(Math.abs(i))*Math.LOG10E,l=Math.pow(10,Math.floor(o));l/=10;var h=l;s&&(h=0),this.logarithmic?(t<=0&&(t=this.baseValue),t==1/0&&(t=1),e==-1/0&&(e=10),t=Math.pow(10,Math.floor(Math.log(Math.abs(t))*Math.LOG10E)),e=Math.pow(10,Math.ceil(Math.log(Math.abs(e))*Math.LOG10E)),this.strictMinMax&&(this._minDefined>0&&(t=this._minDefined),this._maxDefined>0&&(e=this._maxDefined))):(s?(t=Math.floor(t/l)*l,e=Math.ceil(e/l)*l):(t=Math.ceil(t/l)*l-h,e=Math.floor(e/l)*l+h),t<0&&n>=0&&(t=0),e>0&&r<=0&&(e=0)),o=Math.log(Math.abs(i))*Math.LOG10E,l=Math.pow(10,Math.floor(o)),l/=10;var u=Math.ceil(i/a/l)*l,d=Math.pow(10,Math.floor(Math.log(Math.abs(u))*Math.LOG10E)),c=Math.ceil(u/d);c>5?c=10:c<=5&&c>2&&(c=5),u=Math.ceil(u/(d*c))*d*c,this.maxPrecision<Number.MAX_VALUE&&u!=et["e"](u,this.maxPrecision)&&(u=et["e"](u,this.maxPrecision));var p=0;if(d<1&&(p=Math.round(Math.abs(Math.log(Math.abs(d))*Math.LOG10E))+1,u=et["E"](u,p)),!this.logarithmic){var f=Math.floor(t/u);t=et["E"](u*f,p);var g=void 0;g=s?Math.floor(e/u):Math.ceil(e/u),g==f&&g++,e=et["E"](u*g,p),e<r&&(e+=u),t>n&&(t-=u)}return{min:t,max:e,step:u}},Object.defineProperty(e.prototype,"min",{get:function(){var t=this._minAdjusted;return z["h"](t)||(t=this._minDefined),t},set:function(t){this._minDefined!=t&&(this._minDefined=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minDefined",{get:function(){return this._minDefined},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxDefined",{get:function(){return this._maxDefined},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraMin",{get:function(){return this.getPropertyValue("extraMin")},set:function(t){this.setPropertyValue("extraMin",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraMax",{get:function(){return this.getPropertyValue("extraMax")},set:function(t){this.setPropertyValue("extraMax",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return this._step},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){var t=this._maxAdjusted;return z["h"](t)||(t=this._maxDefined),t},set:function(t){this._maxDefined!=t&&(this._maxDefined=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"adjustLabelPrecision",{get:function(){return this.getPropertyValue("adjustLabelPrecision")},set:function(t){this.setPropertyValue("adjustLabelPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.registerSeries=function(e){return new j["c"]([t.prototype.registerSeries.call(this,e),e.events.on("extremeschanged",this.handleExtremesChange,this,!1),e.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1),this.events.on("extremeschanged",e.invalidate,e,!1)])},e.prototype.handleSelectionExtremesChange=function(){var t,e,i=this,a=!0;if(N["d"](this.series.iterator(),(function(s){if(!s.ignoreMinMax&&!s.isHidden&&!s.outOfRange){s.visible&&!s.isHiding&&(a=!1);var n=s.selectionMin(i),r=s.selectionMax(i);z["h"](n)&&(!z["h"](t)||n<t)&&(t=n),z["h"](r)&&(!z["h"](e)||r>e)&&(e=r)}})),this.includeRangesInMinMax&&this.axisRanges.each((function(i){if(!i.ignoreMinMax){var a=et["C"](i.value,i.endValue),s=et["B"](i.value,i.endValue);a<t&&(t=a),s>e&&(e=s)}})),z["h"](this._minDefined)?t=this.strictMinMax?this._minDefined:this.min:this.strictMinMax&&(t=this._minReal),z["h"](this._maxDefined)?e=this.strictMinMax?this._maxDefined:this.max:this.strictMinMax&&(e=this._maxReal),t==e){t-=this._deltaMinMax,e+=this._deltaMinMax;var s=this.adjustMinMax(t,e,0,this._gridCount,this.strictMinMax);t=s.min,e=s.max}var n=this.adjustDifference(t,e),r=this.adjustMinMax(t,e,n,this._gridCount);t=r.min,e=r.max,t-=(e-t)*this.extraMin,e+=(e-t)*this.extraMax,t=et["i"](t,this.min,this.max),e=et["i"](e,this.min,this.max),n=this.adjustDifference(t,e),r=this.adjustMinMax(t,e,n,this._gridCount,!0),t=r.min,e=r.max,this.strictMinMax&&(t=et["B"](t,this._minDefined),e=et["C"](e,this._maxDefined));var o=r.step;this.syncWithAxis&&(r=this.syncAxes(t,e,o),t=r.min,e=r.max,this.invalidate()),o=r.step,this._difference=this.adjustDifference(this.min,this.max);var l=this.valueToPosition(t),h=this.valueToPosition(e);a&&!this.syncWithAxis&&(l=0,h=1);var u=0;this.syncWithAxis?(u=5,this.setCache(t+"-"+e,o)):(this._step==o&&this._minZoomed==t&&this._maxZoomed==e||(this._dsc=!0),this._step=o,this._minZoomed=t,this._maxZoomed=e),this.keepSelection||this.zoom({start:l,end:h},!1,!1,u)},Object.defineProperty(e.prototype,"strictMinMax",{get:function(){return this.getPropertyValue("strictMinMax")},set:function(t){this.setPropertyValue("strictMinMax",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logarithmic",{get:function(){return this.getPropertyValue("logarithmic")},set:function(t){this.setPropertyValue("logarithmic",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keepSelection",{get:function(){return this.getPropertyValue("keepSelection")},set:function(t){this.setPropertyValue("keepSelection",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"includeRangesInMinMax",{get:function(){return this.getPropertyValue("includeRangesInMinMax")},set:function(t){this.setPropertyValue("includeRangesInMinMax",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxPrecision",{get:function(){return this.getPropertyValue("maxPrecision")},set:function(t){this.setPropertyValue("maxPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraTooltipPrecision",{get:function(){return this.getPropertyValue("extraTooltipPrecision")},set:function(t){this.setPropertyValue("extraTooltipPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.handleExtremesChange=function(){var t=this;if(this._extremesChanged=!0,this.getMinMax(),this.ghostLabel){var e=0;this.dataItems.each((function(i){i.label&&i.label.pixelWidth>e&&(t.ghostLabel.text=i.label.currentText)}))}},e.prototype.getX=function(t,e,i,a,s){return this.renderer.positionToPoint(this.getPositionX(t,e,i,a,s)).x},e.prototype.getPositionX=function(t,e,i,a,s){var n=t.getWorkingValue(e);z["d"](a)||(a="valueX");var r=t.getValue(a,"stack");z["h"](n)||(n=this.baseValue,this.logarithmic&&r>0&&(n=0));var o=this.valueToPosition(n+r);return s&&(o=et["i"](o,s.start,s.end)),o},e.prototype.getY=function(t,e,i,a,s){return this.renderer.positionToPoint(this.getPositionY(t,e,i,a,s)).y},e.prototype.getPositionY=function(t,e,i,a,s){var n=t.getWorkingValue(e);z["d"](a)||(a="valueY");var r=t.getValue(a,"stack");z["h"](n)||(n=this.baseValue,this.logarithmic&&r>0&&(n=0));var o=this.valueToPosition(n+r);return s&&(o=et["i"](o,s.start,s.end)),o},e.prototype.getAngle=function(t,e,i,a,s){var n=t.getWorkingValue(e),r=t.getValue(a,"stack");z["h"](n)||(n=this.baseValue);var o=this.valueToPosition(n+r);return s&&(o=et["i"](o,s.start,s.end)),this.positionToAngle(o)},e.prototype.getAnyRangePath=function(t,e,i){var a=this.valueToPosition(t),s=this.valueToPosition(e);return this.getPositionRangePath(a,s)},e.prototype.getTooltipText=function(t){var e=et["E"](this.positionToValue(t),this._stepDecimalPlaces+this.extraTooltipPrecision),i=this.tooltip.numberFormatter.format(e);return this._adapterO?this._adapterO.apply("getTooltipText",i):i},e.prototype.zoomToValues=function(t,e,i,a){var s=(t-this.min)/(this.max-this.min),n=(e-this.min)/(this.max-this.min);this.zoom({start:s,end:n},i,a)},Object.defineProperty(e.prototype,"minZoomed",{get:function(){return this.syncWithAxis?this._minZoomed:et["B"](this.min,this._minZoomed)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomed",{get:function(){return this.syncWithAxis?this._maxZoomed:et["C"](this.max,this._maxZoomed)},enumerable:!0,configurable:!0}),e.prototype.fixAxisBreaks=function(){var e=this;t.prototype.fixAxisBreaks.call(this);var i=this._axisBreaks;i&&i.length>0&&i.each((function(t){var i=t.adjustedStartValue,a=t.adjustedEndValue,s=a-i,n=Math.ceil(s*t.breakSize)*e._gridCount/(e.max-e.min),r=e.adjustMinMax(i,a,s,n,!0);t.adjustedStep=r.step,t.adjustedMin=r.min,t.adjustedMax=r.max})),this._difference=this.adjustDifference(this.min,this.max)},e.prototype.getPositionLabel=function(t){var e=this.positionToValue(t);return this.numberFormatter.format(e)},e.prototype.showTooltipAt=function(t){this.showTooltipAtPosition(this.valueToPosition(t))},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.min=e.min,this.max=e.max,this.calculateTotals=e.calculateTotals,this._baseValue=e.baseValue},Object.defineProperty(e.prototype,"syncWithAxis",{get:function(){return this.getPropertyValue("syncWithAxis")},set:function(t){var e=this;this.setPropertyValue("syncWithAxis",t,!0)&&t&&(this._disposers.push(t.events.on("extremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(t.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(t.events.on("startendchanged",this.handleSelectionExtremesChange,this,!1)),this.events.on("shown",this.handleSelectionExtremesChange,this,!1),this.events.on("maxsizechanged",(function(){e.clearCache(),e._disposers.push(T["b"].events.once("exitframe",(function(){e.handleSelectionExtremesChange()})))}),this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treatZeroAs",{get:function(){return this.getPropertyValue("treatZeroAs")},set:function(t){this.setPropertyValue("treatZeroAs",t,!0)},enumerable:!0,configurable:!0}),e.prototype.syncAxes=function(t,e,i){var a=this.syncWithAxis;if(a){z["h"](t)||(t=this.min),z["h"](e)||(e=this.max),z["h"](i)||(i=this._step);var s=Math.round((a.maxZoomed-a.minZoomed)/a.step),n=Math.round((e-t)/i);if(z["h"](s)&&z["h"](n)){var r=!1,o=0,l=.01*(e-t),h=t,u=e,d=i;while(1!=r)if(r=this.checkSync(h,u,d,s),o++,o>1e3&&(r=!0),r)t=h,e=u,i=d;else{o/3==Math.round(o/3)?(h=t-l*o,t>=0&&h<0&&(h=0)):(u=e+l*o,u<=0&&u>0&&(u=0));var c=this.adjustMinMax(h,u,u-h,this._gridCount,!0);h=c.min,u=c.max,d=c.step}}}return{min:t,max:e,step:i}},e.prototype.checkSync=function(t,e,i,a){for(var s=(e-t)/i,n=1;n<a;n++)if(et["E"](s/n,1)==a||s*n==a)return!0;return!1},e.prototype.processConfig=function(e){e&&z["d"](e.syncWithAxis)&&z["j"](e.syncWithAxis)&&(this.map.hasKey(e.syncWithAxis)?e.syncWithAxis=this.map.getKey(e.syncWithAxis):(this.processingErrors.push('[ValueAxis] No axis with id "'+e.syncWithAxis+'" found for `syncWithAxis`'),delete e.xAxis)),t.prototype.processConfig.call(this,e)},e}(It);T["b"].registeredClasses["ValueAxis"]=Rt,T["b"].registeredClasses["ValueAxisDataItem"]=Mt;var Xt=function(t){function e(){var e=t.call(this)||this;return e.className="DateAxisBreak",e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"startDate",{get:function(){return this.getPropertyValue("startDate")},set:function(t){this.setPropertyValue("startDate",t)&&(this.startValue=t.getTime(),this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endDate",{get:function(){return this.getPropertyValue("endDate")},set:function(t){this.setPropertyValue("endDate",t)&&(this.endValue=t.getTime(),this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries()))},enumerable:!0,configurable:!0}),e}(Lt);T["b"].registeredClasses["DateAxisBreak"]=Xt;var Yt=i("84bd"),Bt=function(t){function e(){var e=t.call(this)||this;return e.className="DateAxisDataItem",e.applyTheme(),e.values.date={},e.values.endDate={},e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"date",{get:function(){return this.dates["date"]},set:function(t){this.setDate("date",t),this.value=t.getTime()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endDate",{get:function(){return this.dates["endDate"]},set:function(t){this.setDate("endDate",t),this.endValue=t.getTime()},enumerable:!0,configurable:!0}),e}(Mt),Et=function(t){function e(){var e=t.call(this)||this;return e._gapBreaks=!1,e.gridIntervals=new w["a"],e.groupIntervals=new w["a"],e.dateFormats=new G["a"],e.periodChangeDateFormats=new G["a"],e._baseIntervalReal={timeUnit:"day",count:1},e._prevSeriesTime={},e._minDifference={},e._firstWeekDay=1,e.groupMin={},e.groupMax={},e.className="DateAxis",e.setPropertyValue("markUnitChange",!0),e.snapTooltip=!0,e.tooltipPosition="pointer",e.setPropertyValue("groupData",!1),e.groupCount=200,e.events.on("parentset",e.getDFFormatter,e,!1),e.gridIntervals.pushAll([{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}]),e.groupIntervals.pushAll([{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}]),e.axisFieldName="date",e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.fillRule=function(t){var e=t.value,i=t.component,a=i._gridInterval,s=Yt["d"](a.timeUnit,a.count);Math.round((e-i.min)/s)/2==Math.round(Math.round((e-i.min)/s)/2)?t.axisFill.__disabled=!0:t.axisFill.__disabled=!1},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),this.dateFormats.hasKey("millisecond")||this.dateFormats.setKey("millisecond",this.language.translate("_date_millisecond")),this.dateFormats.hasKey("second")||this.dateFormats.setKey("second",this.language.translate("_date_second")),this.dateFormats.hasKey("minute")||this.dateFormats.setKey("minute",this.language.translate("_date_minute")),this.dateFormats.hasKey("hour")||this.dateFormats.setKey("hour",this.language.translate("_date_hour")),this.dateFormats.hasKey("day")||this.dateFormats.setKey("day",this.language.translate("_date_day")),this.dateFormats.hasKey("week")||this.dateFormats.setKey("week",this.language.translate("_date_day")),this.dateFormats.hasKey("month")||this.dateFormats.setKey("month",this.language.translate("_date_month")),this.dateFormats.hasKey("year")||this.dateFormats.setKey("year",this.language.translate("_date_year")),this.periodChangeDateFormats.hasKey("millisecond")||this.periodChangeDateFormats.setKey("millisecond",this.language.translate("_date_millisecond")),this.periodChangeDateFormats.hasKey("second")||this.periodChangeDateFormats.setKey("second",this.language.translate("_date_second")),this.periodChangeDateFormats.hasKey("minute")||this.periodChangeDateFormats.setKey("minute",this.language.translate("_date_minute")),this.periodChangeDateFormats.hasKey("hour")||this.periodChangeDateFormats.setKey("hour",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("day")||this.periodChangeDateFormats.setKey("day",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("week")||this.periodChangeDateFormats.setKey("week",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("month")||this.periodChangeDateFormats.setKey("month",this.language.translate("_date_month")+" "+this.language.translate("_date_year"))},e.prototype.createDataItem=function(){return new Bt},e.prototype.createAxisBreak=function(){return new Xt},e.prototype.validateDataItems=function(){var e=this.start,i=this.end,a=this.baseDuration,s=(this.max-this.min)/a;this._firstWeekDay=this.getFirstWeekDay(),this.getDFFormatter(),t.prototype.validateDataItems.call(this);var n=Yt["d"](this.mainBaseInterval.timeUnit,this.mainBaseInterval.count);this.maxZoomFactor=Math.max(1,(this.max-this.min)/n),this._deltaMinMax=this.baseDuration/2;var r=(this.max-this.min)/a;e+=(i-e)*(1-s/r),this.zoom({start:e,end:i},!1,!0)},e.prototype.handleSelectionExtremesChange=function(){},e.prototype.calculateZoom=function(){var e=this;t.prototype.calculateZoom.call(this);var i=this.adjustDifference(this._minZoomed,this._maxZoomed),a=!1;if(this.groupData&&z["d"](i)){var s=this.mainBaseInterval,n=i+(this.startLocation+(1-this.endLocation))*this.baseDuration,r=void 0;this.groupInterval?r=Object(V["a"])({},this.groupInterval):(r=this.chooseInterval(0,n,this.groupCount,this.groupIntervals),Yt["d"](r.timeUnit,r.count)<Yt["d"](s.timeUnit,s.count)&&(r=Object(V["a"])({},s))),this._groupInterval=r;var o=r.timeUnit+r.count;this._currentDataSetId!=o&&(this._currentDataSetId=o,this.dispatch("groupperiodchanged")),this.series.each((function(t){t.baseAxis==e&&t.setDataSet(e._currentDataSetId)&&(a=!0)}))}var l=this.chooseInterval(0,i,this._gridCount);Yt["d"](l.timeUnit,l.count)<this.baseDuration&&(l=Object(V["a"])({},this.baseInterval)),this._gridInterval=l,this._nextGridUnit=Yt["e"](l.timeUnit),this._intervalDuration=Yt["d"](l.timeUnit,l.count),this._gridDate=Yt["h"](new Date(this.minZoomed-Yt["d"](l.timeUnit,l.count)),l.timeUnit,l.count,this._firstWeekDay,this._df.utc,new Date(this.min),this._df.timezoneMinutes,this._df.timezone),N["d"](this.series.iterator(),(function(t){if(t.baseAxis==e){var i=t.getAxisField(e),s=Yt["h"](new Date(e._minZoomed+.05*e.baseDuration),e.baseInterval.timeUnit,e.baseInterval.count,e._firstWeekDay,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone).getTime(),n=s.toString(),r=t.dataItemsByAxis.getKey(e.uid).getKey(n+t.currentDataSetId),o=0;0!=e.start&&(r?(r=e.findFirst(r,s,i),o=r.index):o=t.dataItems.findClosestIndex(e._minZoomed,(function(t){return t[i]}),"left"));var l=e.baseInterval,h=Yt["a"](Yt["h"](new Date(e._maxZoomed),l.timeUnit,l.count,e._firstWeekDay,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone),l.timeUnit,l.count,e._df.utc).getTime(),u=h.toString(),d=t.dataItemsByAxis.getKey(e.uid).getKey(u+t.currentDataSetId),c=t.dataItems.length;1!=e.end&&(d?c=d.index:(h-=1,c=t.dataItems.findClosestIndex(h,(function(t){return t[i]}),"right"),c++)),t.max(e)<s?(t.startIndex=t.dataItems.length,t.endIndex=t.dataItems.length,t.outOfRange=!0):t.min(e)>h?(t.startIndex=0,t.endIndex=0,t.outOfRange=!0):(t.outOfRange=!1,t.startIndex=o,t.endIndex=c),!a&&t.dataRangeInvalid&&t.validateDataRange()}}))},e.prototype.findFirst=function(t,e,i){var a=t.index;if(a>0){var s=t.component,n=s.dataItems.getIndex(a-1),r=n[i];return!r||r.getTime()<e?t:this.findFirst(n,e,i)}return t},e.prototype.validateData=function(){t.prototype.validateData.call(this),z["h"](this.baseInterval.count)||(this.baseInterval.count=1)},Object.defineProperty(e.prototype,"minDifference",{get:function(){var t=this,e=Number.MAX_VALUE;return this.series.each((function(i){e>t._minDifference[i.uid]&&(e=t._minDifference[i.uid])})),e!=Number.MAX_VALUE&&0!=e||(e=Yt["d"]("day")),e},enumerable:!0,configurable:!0}),e.prototype.seriesDataChangeUpdate=function(t){this._minDifference[t.uid]=Number.MAX_VALUE},e.prototype.postProcessSeriesDataItems=function(t){var e=this;this._firstWeekDay=this.getFirstWeekDay(),t?this.seriesGroupUpdate(t):this.series.each((function(t){e.seriesGroupUpdate(t)})),this.addEmptyUnitsBreaks()},e.prototype.seriesGroupUpdate=function(t){var e=this;JSON.stringify(t._baseInterval[this.uid])!=JSON.stringify(this.mainBaseInterval)&&(t._baseInterval[this.uid]=this.mainBaseInterval,t.mainDataSet.each((function(t){e.postProcessSeriesDataItem(t)})),this.groupData&&this.groupSeriesData(t))},e.prototype.groupSeriesData=function(t){var e=this;if(t.baseAxis==this&&t.dataItems.length>0&&!t.dataGrouped){t.bulletsContainer.removeChildren();var i=[],a=this.mainBaseInterval,s=Yt["d"](a.timeUnit,a.count);this.groupIntervals.each((function(t){var a=Yt["d"](t.timeUnit,t.count);(a>s&&a<e.max-e.min||e.groupInterval)&&i.push(t)})),t._dataSets&&(t._dataSets.each((function(t,e){e.each((function(t){t.dispose()})),e.clear()})),t._dataSets.clear()),t.dataGrouped=!0,dt["d"](i,(function(i){var a="date"+e.axisLetter,s=i.timeUnit+i.count,n=new _t["a"](t.mainDataSet.template.clone());t.dataSets.setKey(s,n);var r,o,l=t.mainDataSet,h=Number.NEGATIVE_INFINITY,u=0,d=[];ut["d"](t.dataFields,(function(t,e){var i=t;i!=a&&-1==i.indexOf("Show")&&d.push(i)})),l.each((function(s){var l=s.getDate(a);if(l){var c=l.getTime();o=Yt["h"](new Date(c),i.timeUnit,i.count,e._df.firstDayOfWeek,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone);var p=o.getTime();h<p?(r&&t._adapterO&&dt["d"](d,(function(e){r.values[e].value=t._adapterO.apply("groupDataItem",{dataItem:r,interval:i,dataField:e,date:o,value:r.values[e].value}).value,r.values[e].workingValue=r.values[e].value})),r=n.create(),r.dataContext={},r.setWorkingLocation("dateX",t.dataItems.template.locations.dateX,0),r.setWorkingLocation("openDateX",t.dataItems.template.locations.openDateX,0),r.setWorkingLocation("dateY",t.dataItems.template.locations.dateY,0),r.setWorkingLocation("openDateY",t.dataItems.template.locations.openDateY,0),r.component=t,r.setDate(a,o),r._index=u,u++,dt["d"](d,(function(e){var a=s.values[e];if(a){var n=a.value;t._adapterO&&(n=t._adapterO.apply("groupValue",{dataItem:s,interval:i,dataField:e,date:o,value:n}).value);var l=r.values[e];z["h"](n)?(l.value=n,l.workingValue=n,l.open=n,l.close=n,l.low=n,l.high=n,l.sum=n,l.average=n,l.count=1):l.count=0}})),e.postProcessSeriesDataItem(r,i),ut["d"](t.propertyFields,(function(t,e){var i=t,a=s.properties[t];z["d"](a)&&(r.hasProperties=!0,r.setProperty(i,a))})),r.groupDataItems=[s],h=p):r&&(dt["d"](d,(function(e){var a=t.groupFields[e],n=s.values[e];if(n){var l=n.value;if(t._adapterO&&(l=t._adapterO.apply("groupValue",{dataItem:s,interval:i,dataField:e,date:o,value:l}).value),z["h"](l)){var h=r.values[e];z["h"](h.open)||(h.open=l),h.close=l,(h.low>l||!z["h"](h.low))&&(h.low=l),(h.high<l||!z["h"](h.high))&&(h.high=l),z["h"](h.sum)?h.sum+=l:h.sum=l,h.count++,h.average=h.sum/h.count,z["h"](h[a])&&(h.value=h[a],h.workingValue=h.value)}}})),tt["f"](s.properties,r.properties),ut["d"](t.propertyFields,(function(t,e){var i=t,a=s.properties[t];z["d"](a)&&(r.hasProperties=!0,r.setProperty(i,a))})),r.groupDataItems.push(s))}r&&tt["f"](s.dataContext,r.dataContext)})),r&&t._adapterO&&dt["d"](d,(function(e){r.values[e].value=t._adapterO.apply("groupDataItem",{dataItem:r,interval:i,dataField:e,date:o,value:r.values[e].value}).value,r.values[e].workingValue=r.values[e].value}))})),this.calculateZoom()}},e.prototype.getDFFormatter=function(){this._df=this.dateFormatter},e.prototype.postProcessSeriesDataItem=function(t,e){var i=this,a="";e?a=e.timeUnit+e.count:e=this.mainBaseInterval;var s=t.component,n=s.dataItemsByAxis.getKey(this.uid);ut["d"](t.dates,(function(s){var r=t.getDate(s),o=r.getTime(),l=Yt["h"](new Date(o),e.timeUnit,e.count,i._firstWeekDay,i._df.utc,void 0,i._df.timezoneMinutes,i._df.timezone),h=l.getTime(),u=Yt["a"](new Date(h),e.timeUnit,e.count,i._df.utc);t.setCalculatedValue(s,h,"open"),t.setCalculatedValue(s,u.getTime(),"close"),n.setKey(h+a,t)}))},e.prototype.addEmptyUnitsBreaks=function(){var t=this;if(this.skipEmptyPeriods&&z["h"](this.min)&&z["h"](this.max)){var e=this.baseInterval.timeUnit,i=this.baseInterval.count;this._axisBreaks&&this._axisBreaks.clear();var a=Yt["h"](new Date(this.min),e,i,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),s=void 0,n=function(){Yt["a"](a,e,i,r._df.utc);var n=a.getTime(),o=n.toString(),l=N["c"](r.series.iterator(),(function(e){return!!e.dataItemsByAxis.getKey(t.uid).getKey(o+e.currentDataSetId)}));l?s&&(s.endDate=new Date(n-1),s=void 0):s||(s=r.axisBreaks.create(),s.startDate=new Date(n),r._gapBreaks=!0)},r=this;while(a.getTime()<this.max-this.baseDuration)n()}},e.prototype.fixAxisBreaks=function(){var e=this;t.prototype.fixAxisBreaks.call(this);var i=this._axisBreaks;i&&i.length>0&&i.each((function(t){var i=Math.ceil(e._gridCount*(Math.min(e.end,t.endPosition)-Math.max(e.start,t.startPosition))/(e.end-e.start));t.gridInterval=e.chooseInterval(0,t.adjustedEndValue-t.adjustedStartValue,i);var a=Yt["h"](new Date(t.adjustedStartValue),t.gridInterval.timeUnit,t.gridInterval.count,e._firstWeekDay,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone);a.getTime()>t.startDate.getTime()&&Yt["a"](a,t.gridInterval.timeUnit,t.gridInterval.count,e._df.utc),t.gridDate=a}))},e.prototype.getFirstWeekDay=function(){return this._df?this._df.firstDayOfWeek:1},e.prototype.getGridDate=function(t,e){var i=this._gridInterval.timeUnit,a=this._gridInterval.count;Yt["h"](t,i,1,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone);var s=t.getTime(),n=Yt["c"](t),r=Yt["a"](n,i,e,this._df.utc).getTime(),o=this.isInBreak(r);o&&o.endDate&&(n=new Date(o.endDate.getTime()),Yt["h"](n,i,a,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),n.getTime()<o.endDate.getTime()&&Yt["a"](n,i,a,this._df.utc),r=n.getTime());var l=this.adjustDifference(s,r),h=Math.round(l/Yt["d"](i));return h<a?this.getGridDate(t,e+a):n},e.prototype.getBreaklessDate=function(t,e,i){var a=new Date(t.endValue);Yt["h"](a,e,i,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),Yt["a"](a,e,i,this._df.utc);var s=a.getTime();return t=this.isInBreak(s),t?this.getBreaklessDate(t,e,i):a},e.prototype.validateAxisElements=function(){var t=this;if(z["h"](this.max)&&z["h"](this.min)){this.calculateZoom();var e=this._gridDate.getTime(),i=this._gridInterval.timeUnit,a=this._gridInterval.count,s=Yt["c"](this._gridDate),n=this._dataItemsIterator;this.resetIterators();var r=function(){var t=o.getGridDate(Yt["c"](s),a);e=t.getTime();var r=Yt["c"](t);r=Yt["a"](r,i,a,o._df.utc);var l=o.dateFormats.getKey(i);o.markUnitChange&&s&&Yt["b"](t,s,o._nextGridUnit,o._df.utc)&&"year"!==i&&(l=o.periodChangeDateFormats.getKey(i));var h=o._df.format(t,l),u=n.find((function(t){return t.text===h}));u.__disabled&&(u.__disabled=!1),o.appendDataItem(u),u.axisBreak=void 0,u.date=t,u.endDate=r,u.text=h,o.validateDataElement(u),s=t},o=this;while(e<=this._maxZoomed)r();var l=this.renderer;this._axisBreaks&&N["d"](this._axisBreaks.iterator(),(function(e){if(e.breakSize>0){var i=e.gridInterval.timeUnit,a=e.gridInterval.count;if(et["q"](e.startPoint,e.endPoint)>4*l.minGridDistance){var s,r=e.gridDate.getTime(),o=0,h=function(){var l=Yt["c"](e.gridDate);if(r=Yt["a"](l,i,a*o,t._df.utc).getTime(),o++,r>e.adjustedStartValue&&r<e.adjustedEndValue){var h=Yt["c"](l);h=Yt["a"](h,i,a,t._df.utc);var u=t.dateFormats.getKey(i);t.markUnitChange&&s&&Yt["b"](l,s,t._nextGridUnit,t._df.utc)&&"year"!==i&&(u=t.periodChangeDateFormats.getKey(i));var d=t._df.format(l,u),c=n.find((function(t){return t.text===d}));c.__disabled&&(c.__disabled=!1),t.appendDataItem(c),c.axisBreak=e,e.dataItems.moveValue(c),c.date=l,c.endDate=h,c.text=d,s=l,t.validateDataElement(c)}};while(r<=e.adjustedMax)h()}}}))}},e.prototype.validateDataElement=function(t){if(t.itemIndex=this._axisItemCount,this._axisItemCount++,z["h"](this.max)&&z["h"](this.min)){var e=this.renderer,i=t.value,a=t.endValue;z["h"](a)||(a=i);var s=this.valueToPosition(i),n=this.valueToPosition(a),r=n;!t.isRange&&this._gridInterval.count>this.baseInterval.count&&(n=s+(n-s)/(this._gridInterval.count/this.baseInterval.count)),t.position=s;var o=t.tick;o&&!o.disabled&&e.updateTickElement(o,s,n);var l=t.grid;l&&!l.disabled&&e.updateGridElement(l,s,n);var h=t.axisFill;h&&!h.disabled&&(e.updateFillElement(h,s,r),t.isRange||this.fillRule(t));var u=t.mask;u&&e.updateFillElement(u,s,n),t.bullet&&e.updateBullet(t.bullet,s,n);var d=t.label;if(d&&!d.disabled){var c=d.location;0==c&&(c=1!=this._gridInterval.count||"week"==this._gridInterval.timeUnit||t.isRange?0:.5),e.updateLabelElement(d,s,n,c)}}},Object.defineProperty(e.prototype,"baseDuration",{get:function(){return Yt["d"](this.baseInterval.timeUnit,this.baseInterval.count)},enumerable:!0,configurable:!0}),e.prototype.adjustMinMax=function(t,e){return{min:t,max:e,step:this.baseDuration}},e.prototype.fixMin=function(t){var e=this.baseInterval,i=Yt["h"](new Date(t),e.timeUnit,e.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone).getTime(),a=Yt["a"](new Date(i),e.timeUnit,e.count,this._df.utc).getTime();return i+(a-i)*this.startLocation},e.prototype.fixMax=function(t){var e=this.baseInterval,i=Yt["h"](new Date(t),e.timeUnit,e.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone).getTime(),a=Yt["a"](new Date(i),e.timeUnit,e.count,this._df.utc).getTime();return i+(a-i)*this.endLocation},e.prototype.chooseInterval=function(t,e,i,a){a||(a=this.gridIntervals);var s=a.getIndex(t),n=Yt["d"](s.timeUnit,s.count),r=a.length-1;if(t>=r)return Object(V["a"])({},a.getIndex(r));var o=Math.ceil(e/n);return e<n&&t>0?Object(V["a"])({},a.getIndex(t-1)):o<=i?Object(V["a"])({},a.getIndex(t)):t+1<a.length?this.chooseInterval(t+1,e,i,a):Object(V["a"])({},a.getIndex(t))},e.prototype.formatLabel=function(t){return this._df.format(t)},e.prototype.dateToPosition=function(t){return this.valueToPosition(t.getTime())},e.prototype.anyToPosition=function(t){return t instanceof Date?this.dateToPosition(t):this.valueToPosition(t)},e.prototype.dateToPoint=function(t){var e=this.dateToPosition(t),i=this.renderer.positionToPoint(e),a=this.renderer.positionToAngle(e);return{x:i.x,y:i.y,angle:a}},e.prototype.anyToPoint=function(t){return t instanceof Date?this.dateToPoint(t):this.valueToPoint(t)},e.prototype.positionToDate=function(t){return new Date(this.positionToValue(t))},e.prototype.getPositionX=function(t,e,i,a,s){var n=this.getTimeByLocation(t,e,i);z["h"](n)||(n=this.baseValue);var r=this.valueToPosition(n);return s&&(r=et["i"](r,s.start,s.end)),r},e.prototype.getPositionY=function(t,e,i,a,s){var n=this.getTimeByLocation(t,e,i),r=t.getValue("valueX","stack");z["h"](n)||(n=this.baseValue);var o=this.valueToPosition(n+r);return s&&(o=et["i"](o,s.start,s.end)),o},e.prototype.getAngle=function(t,e,i,a,s){var n=this.getTimeByLocation(t,e,i),r=t.getValue(a,"stack");z["h"](n)||(n=this.baseValue);var o=this.valueToPosition(n+r);return s&&(o=et["i"](o,s.start,s.end)),this.positionToAngle(o)},e.prototype.getTimeByLocation=function(t,e,i){if(z["d"](e)){z["h"](i)||(i=t.workingLocations[e],z["h"](i)||(i=0));var a=t.values[e]["open"],s=t.values[e]["close"],n=t.values[e].workingValue,r=t.values[e].value,o=r-n;return a-=o,s-=o,z["h"](a)&&z["h"](s)?a+(s-a)*i:void 0}},e.prototype.processSeriesDataItem=function(t,e){var i,a=t.component,s=t["date"+e];if(z["h"](this.timezoneOffset)?(s.setTime(s.getTime()+6e4*(s.getTimezoneOffset()-this.timezoneOffset)),t.setValue("date"+e,s.getTime(),0)):z["d"](this.timezone)&&(s=Yt["i"](s,this.timezone),t.setValue("date"+e,s.getTime(),0),t["date"+e]=s),s){i=s.getTime();var n,r=t["openDate"+e],o=this._prevSeriesTime[a.uid];if(r&&(n=r.getTime()),z["h"](n)){var l=Math.abs(i-n);this._minDifference[a.uid]>l&&(this._minDifference[a.uid]=l)}var h=i-o;h>0&&this._minDifference[a.uid]>h&&(this._minDifference[a.uid]=h),this._prevSeriesTime[a.uid]=i,a._baseInterval[this.uid]&&this.postProcessSeriesDataItem(t)}},e.prototype.updateAxisBySeries=function(){t.prototype.updateAxisBySeries.call(this);var e=this.chooseInterval(0,this.minDifference,1);this.minDifference>=Yt["d"]("day",27)&&"week"==e.timeUnit&&(e.timeUnit="month",e.count=1),"month"==e.timeUnit&&(this.minDifference>=Yt["d"]("day",58)&&1==e.count&&(e.count=2),this.minDifference>=Yt["d"]("day",87)&&2==e.count&&(e.count=3),this.minDifference>=Yt["d"]("day",174)&&5==e.count&&(e.count=6)),this.minDifference>=Yt["d"]("hour",23)&&"hour"==e.timeUnit&&(e.timeUnit="day",e.count=1),this.minDifference>=Yt["d"]("week",1)-Yt["d"]("hour",1)&&"day"==e.timeUnit&&(e.timeUnit="week",e.count=1),this.minDifference>=Yt["d"]("year",1)-Yt["d"]("day",1.01)&&"month"==e.timeUnit&&(e.timeUnit="year",e.count=1),this._baseIntervalReal=e,this._mainBaseInterval=e},Object.defineProperty(e.prototype,"baseInterval",{get:function(){return this._groupInterval?this._groupInterval:this._baseInterval?this._baseInterval:this._baseIntervalReal},set:function(t){JSON.stringify(this._baseInterval)!=JSON.stringify(t)&&(this._baseInterval=t,this._mainBaseInterval=t,z["h"](t.count)||(t.count=1),this.invalidate(),this.postProcessSeriesDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mainBaseInterval",{get:function(){return this._baseInterval?this._baseInterval:this._mainBaseInterval?this._mainBaseInterval:this._baseIntervalReal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"skipEmptyPeriods",{get:function(){return this.getPropertyValue("skipEmptyPeriods")},set:function(t){if(t){var e=this.axisBreaks.template;e.startLine.disabled=!0,e.endLine.disabled=!0,e.fillShape.disabled=!0,e.breakSize=0}else this._gapBreaks&&(this.axisBreaks.clear(),this._gapBreaks=!1);this.setPropertyValue("skipEmptyPeriods",t)&&(this.invalidate(),this.postProcessSeriesDataItems(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipDateFormat",{get:function(){return this.getPropertyValue("tooltipDateFormat")},set:function(t){this.setPropertyValue("tooltipDateFormat",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markUnitChange",{get:function(){return this.getPropertyValue("markUnitChange")},set:function(t){this.setPropertyValue("markUnitChange",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),e.prototype.getTooltipText=function(t){var e,i=this.positionToDate(t);if(i=Yt["h"](i,this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,new Date(this.min),this._df.timezoneMinutes,this._df.timezone),this.tooltipDate=i,z["d"](this.tooltipDateFormat))e=this._df.format(i,this.tooltipDateFormat);else{var a=this.dateFormats.getKey(this.baseInterval.timeUnit);e=a?this._df.format(i,a):this.getPositionLabel(t)}return this._adapterO?this._adapterO.apply("getTooltipText",e):e},e.prototype.roundPosition=function(t,e,i){var a=this.baseInterval,s=a.timeUnit,n=a.count,r=this.positionToDate(t);if(Yt["h"](r,s,n,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),e>0&&Yt["a"](r,s,e*n,this._df.utc),i>0&&i<1&&r.setTime(r.getTime()+this.baseDuration*i),this.isInBreak(r.getTime()))while(r.getTime()<this.max)if(Yt["a"](r,s,n,this._df.utc),!this.isInBreak(r.getTime()))break;return this.dateToPosition(r)},e.prototype.getCellStartPosition=function(t){return this.roundPosition(t,0)},e.prototype.getCellEndPosition=function(t){return this.roundPosition(t,1)},e.prototype.getSeriesDataItem=function(t,e,i){var a=this.positionToValue(e),s=.5;s="Y"==this.axisLetter?t.dataItems.template.locations.dateY:t.dataItems.template.locations.dateX;var n=a-s*this.baseDuration,r=Yt["h"](new Date(a),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),o=Yt["h"](new Date(a+this.baseDuration),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone);o.getTime()>r.getTime()&&Math.abs(o.getTime()-n)<Math.abs(n-r.getTime())&&(r=o);var l,h=t.dataItemsByAxis.getKey(this.uid),u=h.getKey(r.getTime()+t.currentDataSetId);!u&&i&&(l="Y"==this.axisLetter?"dateY":"dateX",u=t.dataItems.getIndex(t.dataItems.findClosestIndex(r.getTime(),(function(t){return t[l]?t[l].getTime():-1/0}),"any")));return u},e.prototype.getPositionLabel=function(t){var e=this.positionToDate(t);return this._df.format(e,this.getCurrentLabelFormat())},e.prototype.getCurrentLabelFormat=function(){return this.dateFormats.getKey(this._gridInterval?this._gridInterval.timeUnit:"day")},e.prototype.initRenderer=function(){t.prototype.initRenderer.call(this);var e=this.renderer;e&&(e.ticks.template.location=0,e.grid.template.location=0,e.labels.template.location=0,e.baseGrid.disabled=!0)},Object.defineProperty(e.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),e.prototype.animateMinMax=function(t,e){var i=this,a=this.animate([{property:"_minAdjusted",from:this._minAdjusted,to:t},{property:"_maxAdjusted",from:this._maxAdjusted,to:e}],this.rangeChangeDuration,this.rangeChangeEasing);return a.events.on("animationprogress",(function(){i.dispatch("extremeschanged")})),a},e.prototype.handleExtremesChange=function(){if(t.prototype.handleExtremesChange.call(this),this.groupData){var e=this.baseInterval.timeUnit+this.baseInterval.count;this.groupMin[e]=this._finalMin,this.groupMax[e]=this._finalMax}},e.prototype.zoomToDates=function(t,e,i,a,s){t=this._df.parse(t),e=this._df.parse(e),this.zoomToValues(t.getTime(),e.getTime(),i,a,s)},e.prototype.zoomToValues=function(t,e,i,a,s){var n=this;if(this.groupData){var r=this.adjustDifference(t,e),o=!1;e==this.max&&(o=!0);var l=!1;if(t==this.min&&(l=!0),z["d"](r)){var h=this.mainBaseInterval,u=this.chooseInterval(0,r,this.groupCount,this.groupIntervals);(u.timeUnit==h.timeUnit&&u.count<h.count||Yt["d"](u.timeUnit,1)<Yt["d"](h.timeUnit,1))&&(u=Object(V["a"])({},h));var d=u.timeUnit+u.count,c=this.groupMin[d],p=this.groupMax[d];z["h"](c)&&z["h"](p)||(c=Number.POSITIVE_INFINITY,p=Number.NEGATIVE_INFINITY,this.series.each((function(t){var e=t.min(n),i=t.max(n);if(t._dataSets){var a=t._dataSets.getKey(u.timeUnit+u.count);if(a){var s=a.getIndex(0),r=a.getIndex(a.length-1);s&&(t.xAxis==n?e=s.dateX.getTime():t.yAxis==n&&(e=s.dateY.getTime())),r&&(t.xAxis==n?i=r.dateX.getTime():t.yAxis==n&&(i=r.dateY.getTime()))}}i=Yt["h"](Yt["a"](new Date(i),u.timeUnit,1,n._df.utc),u.timeUnit,1,n._df.firstDayOfWeek,n._df.utc,void 0,n._df.timezoneMinutes,n._df.timezone).getTime(),e<c&&(c=e),i>p&&(p=i)})),this.groupMin[d]=c,this.groupMax[d]=p),t=et["i"](t,c,p),e=et["i"](e,c,p),s&&(o&&(t=e-r,t=et["i"](t,c,p)),l&&(e=t+r,e=et["i"](e,c,p)));f=(t-c)/(p-c),g=(e-c)/(p-c);this.zoom({start:f,end:g},i,a)}}else{var f=(t-this.min)/(this.max-this.min),g=(e-this.min)/(this.max-this.min);this.zoom({start:f,end:g},i,a)}},e.prototype.asIs=function(e){return"baseInterval"==e||t.prototype.asIs.call(this,e)},e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),this.dateFormats=e.dateFormats,this.periodChangeDateFormats=e.periodChangeDateFormats,this.groupIntervals.clear(),e.groupIntervals.each((function(t){i.groupIntervals.push(Object(V["a"])({},t))})),this.gridIntervals.clear(),e.gridIntervals.each((function(t){i.gridIntervals.push(Object(V["a"])({},t))})),e._baseInterval&&(this.baseInterval=e._baseInterval)},e.prototype.showTooltipAtPosition=function(e,i){var a=this;if(i||(e=this.toAxisPosition(e)),this.snapTooltip){var s,n=this.positionToDate(e),r=n.getTime();if(this.series.each((function(t){if(t.baseAxis==a){var i=a.getSeriesDataItem(t,e,!0);if(i){var n=void 0;t.xAxis==a&&(n=i.dateX),t.yAxis==a&&(n=i.dateY),s?Math.abs(s.getTime()-r)>Math.abs(n.getTime()-r)&&(s=n):s=n}}})),s){var o=s.getTime();s=Yt["h"](new Date(o),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),o=s.getTime();var l=this.renderer.tooltipLocation;0==l&&(l=1e-4),s=new Date(s.getTime()+this.baseDuration*l),e=this.dateToPosition(s),this.chart.cursor&&this.chart.cursor.snapToSeries||this.series.each((function(t){var e=t.dataItemsByAxis.getKey(a.uid).getKey(o+t.currentDataSetId),i=t.showTooltipAtDataItem(e);i?a.chart._seriesPoints.push({series:t,point:i}):(t.tooltipText||t.tooltipHTML)&&t.hideTooltip()}))}}t.prototype.showTooltipAtPosition.call(this,e,!0)},Object.defineProperty(e.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(t){this.setPropertyValue("snapTooltip",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupData",{get:function(){return this.getPropertyValue("groupData")},set:function(t){var e=this;this.setPropertyValue("groupData",t)&&(this.series.each((function(i){i.setDataSet(""),t&&!i.dataGrouped&&i.inited&&(i._baseInterval[e.uid]=e.mainBaseInterval,e.groupSeriesData(i))})),this._currentDataSetId="",this._groupInterval=void 0,this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupInterval",{get:function(){return this.getPropertyValue("groupInterval")},set:function(t){this.setPropertyValue("groupInterval",t)&&(this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupCount",{get:function(){return this.getPropertyValue("groupCount")},set:function(t){this.setPropertyValue("groupCount",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timezoneOffset",{get:function(){return this.getPropertyValue("timezoneOffset")},set:function(t){this.setPropertyValue("timezoneOffset",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timezone",{get:function(){return this.getPropertyValue("timezone")},set:function(t){this.setPropertyValue("timezone",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridInterval",{get:function(){return this._gridInterval},enumerable:!0,configurable:!0}),e.prototype.makeGap=function(t,e){var i=t.component;if(t&&e&&!i.connect&&z["h"](i.autoGapCount)&&i.baseAxis==this){var a=t.dates["date"+this.axisLetter],s=e.dates["date"+this.axisLetter];if(a&&s){var n=a.getTime(),r=s.getTime();if(n-r>i.autoGapCount*this.baseDuration)return!0}}return!1},Object.defineProperty(e.prototype,"baseValue",{get:function(){return this.min},enumerable:!0,configurable:!0}),e}(Rt);T["b"].registeredClasses["DateAxis"]=Et,T["b"].registeredClasses["DateAxisDataItem"]=Bt;var Wt=function(t){function e(){var e=t.call(this)||this;return e.className="AxisRendererX",e.minGridDistance=120,e.opposite=!1,e.rotation=0,e.width=Object(Y["c"])(100),e.labels.template.horizontalCenter="middle",e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.setAxis=function(e){t.prototype.setAxis.call(this,e),e.layout="vertical"},e.prototype.updateGridContainer=function(){var t=this.axis;if(t){var e=this.gridContainer;e.x=t.pixelX,e.width=t.axisLength}},e.prototype.processRenderer=function(){t.prototype.processRenderer.call(this);var e=this.axis;if(e){e.width instanceof Y["a"]||(e.width=Object(Y["c"])(100)),tt["R"](this.line);var i=e.title;i.rotation=0,i.align="center",this.opposite?(this.line.toFront(),i.toBack()):(i.toFront(),this.toBack(),this.line.toBack())}},e.prototype.updateTooltip=function(){var t=this.axis;if(t){var e=1e3,i=this.line.pixelX,a=this.line.pixelY,s=this.axisLength,n=e;this.opposite?this.inside||(a=-e,n=e):this.inside&&(a=-e,n=e),this.axis.updateTooltip("vertical",{x:i,y:a,width:s,height:n})}},e.prototype.updateLabelElement=function(t,e,i,a){z["d"](a)||(a=t.location),e+=(i-e)*a;var s=this.positionToPoint(e);t.isMeasured=!t.inside;var n,r=0,o=this.gridContainer.maxHeight;this.opposite?(t.inside?(n="top","bottom"==t.valign&&(r=o,n="bottom"),"middle"==t.valign&&(r=o/2,n="middle")):n="bottom",s.y=r):(t.inside?(n="bottom","top"==t.valign&&(r=-o,n="top"),"middle"==t.valign&&(r=-o/2,n="middle")):n="top",s.y+=r),0==t.rotation&&(t.verticalCenter=n),this.positionItem(t,s),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},Object.defineProperty(e.prototype,"axisLength",{get:function(){var t=this.axis;return t.measuredWidth-t.pixelPaddingRight-t.pixelPaddingLeft||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){return{x:this.positionToCoordinate(t),y:0}},e.prototype.pointToPosition=function(t){return this.coordinateToPosition(t.x,t.y)},e.prototype.getPositionRangePath=function(t,e){var i=et["i"](this.positionToCoordinate(t),0,this.axisLength),a=et["i"](this.positionToCoordinate(e),0,this.axisLength),s=Math.abs(a-i),n=this.getHeight(),r=Math.min(i,a),o=0;return B["j"]({x:r,y:o,width:s,height:n},!0)},e.prototype.updateBreakElement=function(e){t.prototype.updateBreakElement.call(this,e);var i=e.startLine,a=e.endLine,s=e.fillShape,n=e.startPoint,r=e.endPoint,o=e.pixelMarginLeft,l=this.getHeight()-e.pixelMarginTop-e.pixelMarginBottom;n.x=et["i"](n.x,-1,this.axisLength+1),r.x=et["i"](r.x,-1,this.axisLength+1),n.x==r.x&&(n.x<0||n.x>this.axisLength)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1,i.y=o,i.width=0,i.height=l,a.y=o,a.width=0,a.height=l,s.height=l,s.width=Math.abs(r.x-n.x),s.y=o,s.x=n.x},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var a=this.positionToPoint(e);t.path=B["g"]({x:0,y:0})+B["f"]({x:0,y:this.getHeight()}),this.positionItem(t,a),this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var a=this.positionToPoint(e),s=t.length;a.y=tt["I"]({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.opposite?s*=t.inside?1:-1:s*=t.inside?-1:1,t.path=B["g"]({x:0,y:0})+B["f"]({x:0,y:s}),this.positionItem(t,a),this.toggleVisibility(t,e,0,1)},e.prototype.updateAxisLine=function(){this.line.path=B["g"]({x:0,y:0})+B["f"]({x:this.axisLength,y:0})},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.axis,i=this.getHeight(),a=this.axisLength,s=this.baseGrid,n=e.basePoint.x;if(n<-.2||n>a+.2)s.hide(0);else{var r=tt["I"]({x:0,y:0},this.gridContainer,s.parent).y;s.path=B["g"]({x:0,y:0})+B["f"]({x:0,y:i}),s.moveTo({x:n,y:r}),s.show(0)}},e.prototype.createBreakSprites=function(t){t.startLine=new vt["a"],t.endLine=new vt["a"];var e=new jt["a"];e.setWavedSides(!1,!0,!1,!0),t.fillShape=e},e.prototype.toAxisPosition=function(t){var e=t,i=this.axis;if(i){var a=i.relativePositionSprite,s=i.pixelX;if(a?s=tt["I"]({x:this.pixelX,y:0},this.parent,a).x:a=i.parent,a){var n=s/a.innerWidth,r=i.axisLength/a.innerWidth;return(e-n)/r}}return t},e.prototype.updateBullet=function(t,e,i){var a=.5;t instanceof wt&&(a=t.location),e+=(i-e)*a;var s=this.positionToPoint(e);s.y=tt["I"]({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.positionItem(t,s),this.toggleVisibility(t,e,0,1)},e}(St);T["b"].registeredClasses["AxisRendererX"]=Wt,H["c"].push({relevant:H["b"].heightXS,state:function(t,e){if(t instanceof Wt){var i=t.states.create(e);return i.properties.inside=!0,i.properties.maxLabelPosition=.9,i.properties.minLabelPosition=.1,i}return null}}),H["c"].push({relevant:H["b"].heightXXS,state:function(t,e){if(t instanceof Wt){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var Nt=function(t){function e(){var e=t.call(this)||this;return e.className="CategoryAxisBreak",e.properties.startLocation=.5,e.properties.endLocation=.5,e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedStartValue,this.startLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedEndValue,this.endLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startCategory",{get:function(){return this.getPropertyValue("startCategory")},set:function(t){this.setPropertyValue("startCategory",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endCategory",{get:function(){return this.getPropertyValue("endCategory")},set:function(t){this.setPropertyValue("endCategory",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startValue",{get:function(){var t=this.getPropertyValue("startCategory");return t?this.axis.categoryToIndex(t):this.getPropertyValue("startValue")},set:function(t){this.setPropertyValue("startValue",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){var t=this.getPropertyValue("endCategory");return t?this.axis.categoryToIndex(t):this.getPropertyValue("endValue")},set:function(t){this.setPropertyValue("endValue",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),e}(xt);T["b"].registeredClasses["CategoryAxisBreak"]=Nt;var zt=function(t){function e(){var e=t.call(this)||this;return e.seriesDataItems={},e.className="CategoryAxisDataItem",e.text="{category}",e.locations.category=0,e.locations.endCategory=1,e.deltaPosition=0,e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"category",{get:function(){return this._adapterO&&this._adapterO.isEnabled("category")?this._adapterO.apply("category",this.properties.category):this.properties.category},set:function(t){var e=this.properties.category;this.setProperty("category",t),z["d"](e)&&e!=t&&this.component&&this.component.validateDataElement(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endCategory",{get:function(){return this.properties.endCategory},set:function(t){this.setProperty("endCategory",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deltaPosition",{get:function(){return this.properties.deltaCoordinate},set:function(t){t!=this.properties.deltaCoordinate&&(this.setProperty("deltaCoordinate",t),this.component&&(this.component.invalidateDataItems(),this.component.invalidateSeries()))},enumerable:!0,configurable:!0}),e}(Ct),Ht=function(t){function e(){var e=t.call(this)||this;e.dataItemsByCategory=new G["a"],e.className="CategoryAxis",e.axisFieldName="category",e._lastDataItem=e.createDataItem(),e._lastDataItem.component=e,e._disposers.push(e._lastDataItem),e.applyTheme();var i=e.dataItemsByCategory;return e.addDisposer(e.mainDataSet.events.on("removed",(function(t){i.removeKey(t.oldValue.category)}))),e}return Object(V["c"])(e,t),e.prototype.createDataItem=function(){return new zt},e.prototype.createAxisBreak=function(){return new Nt},e.prototype.processSeriesDataItem=function(e,i){t.prototype.processSeriesDataItem.call(this,e,i);var a=e["category"+this.axisLetter];if(z["d"](a)){var s=this.dataItemsByCategory.getKey(a);if(s){var n=e.component.uid,r=s.seriesDataItems[n];r||(r=[],s.seriesDataItems[n]=r),r.push(e)}}else e.component.dataItems.remove(e)},e.prototype.validateDataRange=function(){var i=this;t.prototype.validateDataRange.call(this),N["d"](this._series.iterator(),(function(t){if(t.xAxis instanceof e&&t.yAxis instanceof e)t.invalidateDataRange();else{var a=i.positionToIndex(i.start),s=i.positionToIndex(i.end);s>=i.dataItems.length&&s--;for(var n=t.uid,r=void 0,o=void 0,l=a;l<=s;l++){var h=i.dataItems.getIndex(l);if(h){var u=h.seriesDataItems[n];if(u)for(var d=0;d<u.length;d++){var c=u[d];if(c){var p=c.index;(!z["h"](r)||p<r)&&(r=p),(!z["h"](o)||p>o)&&(o=p)}}}}z["h"](r)?t.startIndex=r:t.start=i.start,z["h"](o)?t.endIndex=o+1:t.end=i.end,i._axisBreaks&&i._axisBreaks.length>0&&t.invalidateDataRange()}}))},e.prototype.validate=function(){var e=this;t.prototype.validate.call(this);var i=this.dataItems.length,a=et["i"](Math.floor(this.start*i-1),0,i),s=et["i"](Math.ceil(this.end*i),0,i);this.renderer.invalid&&this.renderer.validate();var n=this.renderer.axisLength/Math.max(this.renderer.minGridDistance,1/Number.MAX_SAFE_INTEGER),r=Math.min(this.dataItems.length,Math.ceil((s-a)/n));if(this._startIndex=Math.floor(a/r)*r,this._endIndex=Math.ceil(this.end*i),this.fixAxisBreaks(),this._startIndex==this._endIndex&&this._endIndex++,this._frequency=r,!(this.axisLength<=0)){this.maxZoomFactor=this.dataItems.length,this.dataItems.length<=0&&(this.maxZoomFactor=1),this.resetIterators(),a=et["B"](0,this._startIndex-this._frequency),s=et["C"](this.dataItems.length,this._endIndex+this._frequency);for(var o=0,l=0;l<a;l++){var h=this.dataItems.getIndex(l);h.__disabled=!0}l=s;for(var u=this.dataItems.length;l<u;l++){h=this.dataItems.getIndex(l);h.__disabled=!0}for(l=a;l<s;l++)if(l<this.dataItems.length){h=this.dataItems.getIndex(l);if(l/this._frequency==Math.round(l/this._frequency)){var d=this.isInBreak(l);d||(this.appendDataItem(h),this.validateDataElement(h,o)),o++}else h.__disabled=!0}if(this.appendDataItem(this._lastDataItem),this.validateDataElement(this._lastDataItem,o+1,this.dataItems.length),this._axisBreaks){var c=this._axisBreaks;c.each((function(t){var i=t.adjustedStartValue,a=t.adjustedEndValue;if(et["x"]({start:i,end:a},{start:e._startIndex,end:e._endIndex})){for(var s=i;s<=a;s++){var n=e.dataItems.getIndex(s);n.__disabled=!0}var r=et["i"](Math.ceil(e._frequency/t.breakSize),1,a-i),o=0;if(t.breakSize>0)for(s=i;s<=a;s+=r){n=e.dataItems.getIndex(s);n.__disabled=!1,e.appendDataItem(n),e.validateDataElement(n,o),o++}}}))}this.validateBreaks(),this.validateAxisRanges(),this.ghostLabel.invalidate(),this.renderer.invalidateLayout()}},e.prototype.validateDataElement=function(e,i,a){t.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var s=this.renderer;z["h"](a)||(a=this.categoryToIndex(e.category));var n=this.categoryToIndex(e.endCategory);z["h"](n)||(n=a);var r,o,l,h=this.indexToPosition(a,e.locations.category),u=this.indexToPosition(n,e.locations.endCategory);e.position=h,e.isRange&&(r=n,o=this.indexToPosition(a,e.locations.category),l=this.indexToPosition(r,e.locations.endCategory)),e.point=s.positionToPoint(h);var d=e.tick;d&&!d.disabled&&s.updateTickElement(d,h,u);var c=e.grid;c&&!c.disabled&&s.updateGridElement(c,h,u);var p=e.label;p&&!p.disabled&&(e.isRange&&void 0!=p.text||(e.text=e.text),s.updateLabelElement(p,h,u),(s instanceof Ft&&e.label.measuredWidth>this.ghostLabel.measuredWidth||s instanceof Wt&&e.label.measuredHeight>this.ghostLabel.measuredHeight)&&(e.label.html?this.ghostLabel.html=e.label.currentText:this.ghostLabel.text=e.label.currentText));var f=e.axisFill;f&&!f.disabled&&(e.isRange||(r=a+this._frequency,o=this.indexToPosition(a,f.location),l=this.indexToPosition(r,f.location)),s.updateFillElement(f,o,l),e.isRange||this.fillRule(e,i)),e.bullet&&s.updateBullet(e.bullet,h,u);var g=e.mask;g&&s.updateFillElement(g,o,l)},e.prototype.disposeData=function(){this.dataItemsByCategory.clear(),t.prototype.disposeData.call(this)},e.prototype.processDataItem=function(e,i){e&&(t.prototype.processDataItem.call(this,e,i),z["d"](e.category)&&this.dataItemsByCategory.setKey(e.category,e))},e.prototype.getDataItem=function(t){var e=t[this.dataFields.category];if(z["d"](e)){var i=this.dataItemsByCategory.getKey(e);return i||this.dataItems.create()}},e.prototype.indexToPosition=function(t,e){z["h"](e)||(e=.5);var i=this.startIndex,a=this.endIndex,s=this.adjustDifference(i,a),n=this.startLocation,r=this.endLocation;if(s-=n,s-=1-r,this._axisBreaks){var o=this._axisBreaks;N["e"](o.iterator(),(function(e){var s=e.adjustedStartValue,n=e.adjustedEndValue;if(t<i||!z["h"](s)||!z["h"](n))return!1;if(et["x"]({start:s,end:n},{start:i,end:a})){s=Math.max(i,s),n=Math.min(a,n);var r=e.breakSize;t>n?i+=(n-s)*(1-r):t<s||(t=s+(t-s)*r)}return!0}))}var l=0,h=this.dataItems.getIndex(t);return h&&(l=h.deltaPosition),et["E"](l+(t+e-n-i)/s,5)},e.prototype.categoryToPosition=function(t,e){var i=this.categoryToIndex(t);return this.indexToPosition(i,e)},e.prototype.categoryToPoint=function(t,e){var i=this.categoryToPosition(t,e),a=this.renderer.positionToPoint(i),s=this.renderer.positionToAngle(i);return{x:a.x,y:a.y,angle:s}},e.prototype.anyToPoint=function(t,e){return this.categoryToPoint(t,e)},e.prototype.anyToPosition=function(t,e){return this.categoryToPosition(t,e)},e.prototype.categoryToIndex=function(t){if(z["d"](t)){var e=this.dataItemsByCategory.getKey(t);if(e)return e.index}},e.prototype.zoomToCategories=function(t,e){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1)},e.prototype.getAnyRangePath=function(t,e,i,a){var s=this.categoryToPosition(t,i),n=this.categoryToPosition(e,a);return this.getPositionRangePath(s,n)},e.prototype.roundPosition=function(t,e){var i=this.positionToIndex(t);return this.indexToPosition(i,e)},e.prototype.getFirstSeriesDataItem=function(t,e){for(var i=0;i<t.dataItems.length;i++){var a=t.dataItems.getIndex(i);if(t.xAxis==this&&a.categoryX==e)return a;if(t.yAxis==this&&a.categoryY==e)return a}},e.prototype.getLastSeriesDataItem=function(t,e){for(var i=t.dataItems.length-1;i>=0;i--){var a=t.dataItems.getIndex(i);if(t.xAxis==this&&a.categoryX==e)return a;if(t.yAxis==this&&a.categoryY==e)return a}},e.prototype.getSeriesDataItemByCategory=function(t,e){var i,a=this;return e.dataItems.each((function(s){e.xAxis==a?s.categoryX==t&&(i=s):e.yAxis==a&&s.categoryY==t&&(i=s)})),i},e.prototype.getSeriesDataItem=function(t,e,i){var a=this;if(z["h"](e)){var s=this.positionToIndex(e);s>=this.dataItems.length&&s--;var n=this.dataItems.getIndex(s);if(n){var r,o=n.category,l=t.dataItems.getIndex(s);if(l){if(t.xAxis==this&&l.categoryX==o)return l;if(t.yAxis==this&&l.categoryY==o)return l}return t.dataItems.each((function(e){t.xAxis==a&&e.categoryX==o&&(r||(r=e),Math.abs(s-r.index)>Math.abs(s-e.index)&&(r=e)),t.yAxis==a&&e.categoryY==o&&(r||(r=e),Math.abs(s-r.index)>Math.abs(s-e.index)&&(r=e))})),r}}},e.prototype.getX=function(t,e,i,a,s){var n=this.getPositionX(t,e,i,a,s);return z["g"](n)?this.basePoint.x:this.renderer.positionToPoint(n).x},e.prototype.getPositionX=function(t,e,i,a,s){var n;return z["d"](e)&&(n=this.categoryToPosition(t.categories[e],i)),s&&(n=et["i"](n,s.start,s.end)),n},e.prototype.getY=function(t,e,i,a,s){var n=this.getPositionY(t,e,i,a,s);return z["g"](n)?this.basePoint.y:this.renderer.positionToPoint(n).y},e.prototype.getPositionY=function(t,e,i,a,s){var n;return z["d"](e)&&(n=this.categoryToPosition(t.categories[e],i)),s&&(n=et["i"](n,s.start,s.end)),n},e.prototype.getAngle=function(t,e,i,a,s){var n=this.categoryToPosition(t.categories[e],i);return s&&(n=et["i"](n,s.start,s.end)),this.positionToAngle(n)},e.prototype.getCellStartPosition=function(t){return this.roundPosition(t,0)},e.prototype.getCellEndPosition=function(t){return this.roundPosition(t,1)},e.prototype.getTooltipText=function(t){var e=this.dataItems.getIndex(this.positionToIndex(t));if(e)return this.tooltipDataItem=e,this.tooltip.dataItem=e,this.tooltipText?this.tooltipText:this._adapterO?this._adapterO.apply("getTooltipText",e.category):e.category},e.prototype.positionToIndex=function(t){t=et["E"](t,10),t<0&&(t=0),t>1&&(t=1);var e=this.startIndex,i=this.endIndex,a=i-e-this.startLocation-(1-this.endLocation);t+=1/a*this.startLocation;var s=null;if(this._axisBreaks){var n=this._axisBreaks;N["e"](n.iterator(),(function(n){var r=n.startPosition,o=n.endPosition,l=n.adjustedStartValue,h=n.adjustedEndValue;l=et["B"](l,e),h=et["C"](h,i);var u=n.breakSize;if(a-=(h-l)*(1-u),t>o)e+=(h-l)*(1-u);else if(!(t<r)){var d=(t-r)/(o-r);return s=l+Math.round(d*(h-l)),!1}return!0}))}return z["h"](s)||(s=Math.floor(t*a+e)),s>=this.dataItems.length&&(s=this.dataItems.length-1),s},e.prototype.positionToCategory=function(t){return this.getPositionLabel(t)},e.prototype.getPositionLabel=function(t){var e=this.dataItems.getIndex(this.positionToIndex(t));if(e)return e.category},Object.defineProperty(e.prototype,"basePoint",{get:function(){return this.renderer.positionToPoint(1)},enumerable:!0,configurable:!0}),e.prototype.initRenderer=function(){t.prototype.initRenderer.call(this);var e=this.renderer;e.baseGrid.disabled=!0},Object.defineProperty(e.prototype,"frequency",{get:function(){return this._frequency},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortBySeries",{get:function(){return this.getPropertyValue("sortBySeries")},set:function(t){this.setPropertyValue("sortBySeries",t,!0)},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){e&&z["d"](e.sortBySeries)&&z["j"](e.sortBySeries)&&(this.map.hasKey(e.sortBySeries)?e.sortBySeries=this.map.getKey(e.sortBySeries):(this.addDelayedMap("sortBySeries",e.sortBySeries),delete e.sortBySeries)),t.prototype.processConfig.call(this,e)},e}(It);T["b"].registeredClasses["CategoryAxis"]=Ht,T["b"].registeredClasses["CategoryAxisDataItem"]=zt;var Ut=function(t){function e(){var e=t.call(this)||this;return e.className="XYSeriesDataItem",e.values.customValue={},e.values.valueX={stack:0},e.values.valueY={stack:0},e.values.openValueX={},e.values.openValueY={},e.values.dateX={},e.values.dateY={},e.values.openDateX={},e.values.openDateY={},e.setLocation("dateX",.5,0),e.setLocation("dateY",.5,0),e.setLocation("categoryX",.5,0),e.setLocation("categoryY",.5,0),e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"valueX",{get:function(){return this.values.valueX.value},set:function(t){this.setValue("valueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"customValue",{get:function(){return this.values.customValue.value},set:function(t){this.setValue("customValue",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueY",{get:function(){return this.values.valueY.value},set:function(t){this.setValue("valueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateX",{get:function(){return this.getDate("dateX")},set:function(t){this.setDate("dateX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateY",{get:function(){return this.getDate("dateY")},set:function(t){this.setDate("dateY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"categoryX",{get:function(){return this.categories.categoryX},set:function(t){this.setCategory("categoryX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"categoryY",{get:function(){return this.categories.categoryY},set:function(t){this.setCategory("categoryY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openValueX",{get:function(){return this.values.openValueX.value},set:function(t){this.setValue("openValueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openValueY",{get:function(){return this.values.openValueY.value},set:function(t){this.setValue("openValueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openDateX",{get:function(){return this.getDate("openDateX")},set:function(t){this.setDate("openDateX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openDateY",{get:function(){return this.getDate("openDateY")},set:function(t){this.setDate("openDateY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openCategoryX",{get:function(){return this.categories.openCategoryX},set:function(t){this.setCategory("openCategoryX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openCategoryY",{get:function(){return this.categories.openCategoryY},set:function(t){this.setCategory("openCategoryY",t)},enumerable:!0,configurable:!0}),e.prototype.getMin=function(t,e,i){var a,s=this;return z["h"](i)||(i=0),dt["d"](t,(function(t){var n;n=e?s.getWorkingValue(t):s.getValue(t),n+=i,(n<a||!z["h"](a))&&(a=n)})),a},e.prototype.getMax=function(t,e,i){var a,s=this;return z["h"](i)||(i=0),dt["d"](t,(function(t){var n;n=e?s.getWorkingValue(t):s.getValue(t),n+=i,(n>a||!z["h"](a))&&(a=n)})),a},e}(pt),Kt=function(t){function e(){var e=t.call(this)||this;return e.groupFields={},e._xAxis=new j["d"],e._yAxis=new j["d"],e._xValueFields=[],e._yValueFields=[],e._baseInterval={},e.dataGrouped=!1,e.usesShowFields=!1,e._dataSetChanged=!1,e._maxxX=1e5,e._maxxY=1e5,e._propertiesChanged=!1,e.outOfRange=!1,e.className="XYSeries",e.isMeasured=!1,e.groupFields.valueX="close",e.groupFields.valueY="close",e.groupFields.customValue="close",e.groupFields.openValueX="open",e.groupFields.openValueY="open",e.cursorTooltipEnabled=!0,e.cursorHoverEnabled=!0,e.excludeFromTotal=!1,e.mainContainer.mask=new R["a"],e.mainContainer.mask.setElement(e.paper.add("path")),e.stacked=!1,e.snapTooltip=!1,e._showBullets=!1,e.tooltip.pointerOrientation="horizontal",e.properties.stackToNegative=!0,e.hideTooltipWhileZooming=!0,e.setPropertyValue("maskBullets",!0),e.tooltip.events.on("hidden",(function(){e.returnBulletDefaultState()}),void 0,!1),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.observe(R["b"],(function(){e.inited&&(e._propertiesChanged=!0,e.legendDataItem&&(e.legendDataItem.childrenCreated=!1),e.chart&&e.chart.legend&&e.chart.legend.invalidateDataItems(),e.invalidate())}),void 0,!1),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("X/Y Series"))},e.prototype.createDataItem=function(){return new Ut},e.prototype.resetExtremes=function(){this._tmin.clear(),this._tmax.clear(),this._smin.clear(),this._smax.clear()},e.prototype.dataChangeUpdate=function(){this.dataGrouped=!1,this._baseInterval={},this._currentDataSetId="",this.resetExtremes(),this.xAxis&&this.xAxis.seriesDataChangeUpdate(this),this.yAxis&&this.yAxis.seriesDataChangeUpdate(this)},e.prototype.validateData=function(){this._baseInterval={};var e=this.dataFields;if(e.valueYShow||e.openValueXShow||e.openValueXShow||e.openValueYShow?this.usesShowFields=!0:this.usesShowFields=!1,this.defineFields(),this.data.length>0&&this.dataChangeUpdate(),t.prototype.validateData.call(this),this.updateItemReaderText(),this.chart&&(!z["d"](this.dataFields[this._xField])||!z["d"](this.dataFields[this._yField])))throw Error('Data fields for series "'+(this.name?this.name:this.uid)+'" are not properly defined.');this.inited&&this.isHidden&&this.hide(0),this.dataGrouped=!1},e.prototype.processDataItem=function(e,i){try{t.prototype.processDataItem.call(this,e,i),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y"),this.setInitialWorkingValues(e)}catch(a){this._chart&&this._chart.raiseCriticalError(a)}},e.prototype.updateDataItem=function(e){t.prototype.updateDataItem.call(this,e),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y")},e.prototype.setInitialWorkingValues=function(t){},e.prototype.disposeData=function(){t.prototype.disposeData.call(this);var e=this.xAxis,i=this.yAxis;if(e){var a=this.dataItemsByAxis.getKey(e.uid);a&&a.clear(),e instanceof Ht&&this.clearCatAxis(e)}if(i){var s=this.dataItemsByAxis.getKey(i.uid);s&&s.clear(),i instanceof Ht&&this.clearCatAxis(i)}},e.prototype.clearCatAxis=function(t){var e=this.uid;t.dataItems.each((function(t){t.seriesDataItems[e]&&(t.seriesDataItems[e]=[])}))},e.prototype.defineFields=function(){var t=this.xAxis,e=this.yAxis;if(t&&e){var i=t.axisFieldName,a=i+"X",s="open"+tt["c"](i)+"X",n=e.axisFieldName,r=n+"Y",o="open"+tt["c"](n)+"Y";this._xField=a,this._yField=r,this.dataFields[s]&&(this._xOpenField=s),this.dataFields[o]&&(this._yOpenField=o),this.dataFields[o]||this.baseAxis!=e||(this._yOpenField=r),this.dataFields[s]||this.baseAxis!=t||(this._xOpenField=a),this.stacked&&this.baseAxis==t&&(this._xOpenField=a),this.stacked&&this.baseAxis==e&&(this._yOpenField=r),t instanceof Ht&&e instanceof Ht&&(this._yOpenField||(this._yOpenField=r)),this._xValueFields=[],this._yValueFields=[],this.addValueField(t,this._xValueFields,this._xField),this.addValueField(t,this._xValueFields,this._xOpenField),this.addValueField(e,this._yValueFields,this._yField),this.addValueField(e,this._yValueFields,this._yOpenField)}},e.prototype.addValueField=function(t,e,i){t instanceof Rt&&z["d"](this.dataFields[i])&&-1==e.indexOf(i)&&e.push(i)},e.prototype.setCategoryAxisField=function(t,e){z["d"](this.dataFields[t])||(this.dataFields[t]=e.dataFields.category)},e.prototype.setDateAxisField=function(t,e){z["d"](this.dataFields[t])||(this.dataFields[t]=e.dataFields.date)},e.prototype.afterDraw=function(){t.prototype.afterDraw.call(this),this.createMask()},e.prototype.createMask=function(){if(this.mainContainer.mask){var t=this.getMaskPath();N["d"](this.axisRanges.iterator(),(function(e){e.axisFill.fillPath&&(e.axisFill.validate(),t+=e.axisFill.fillPath)})),this.mainContainer.mask.path=t}},e.prototype.getMaskPath=function(){return this.xAxis&&this.yAxis?B["j"]({x:0,y:0,width:this.xAxis.axisLength,height:this.yAxis.axisLength}):""},e.prototype.getAxisField=function(t){return t==this.xAxis?this.xField:t==this.yAxis?this.yField:void 0},e.prototype.validateDataItems=function(){var e=this.chart;e&&(this._maxxX=et["B"](1e5,2*e.plotContainer.maxWidth),this._maxxY=et["B"](1e5,2*e.plotContainer.maxHeight));var i=this.xAxis,a=this.yAxis;i&&a&&(i.updateAxisBySeries(),a.updateAxisBySeries()),t.prototype.validateDataItems.call(this),i&&a&&(i.postProcessSeriesDataItems(this),a.postProcessSeriesDataItems(this))},e.prototype.validateDataRange=function(){var e=this.xAxis,i=this.yAxis;e&&i&&(e.dataRangeInvalid&&e.validateDataRange(),i.dataRangeInvalid&&i.validateDataRange()),t.prototype.validateDataRange.call(this)},e.prototype.validate=function(){var e=this.xAxis,i=this.yAxis;if(e&&i){e.invalid&&e.validate(),i.invalid&&i.validate(),this.y=i.pixelY,this.x=e.pixelX,this._showBullets=!0;var a=this.minBulletDistance;z["h"](a)&&this.baseAxis.axisLength/(this.endIndex-this.startIndex)<a&&(this._showBullets=!1)}if(this.updateTooltip(),!(e instanceof Et&&e.groupData&&!this.dataGrouped||i instanceof Et&&i.groupData&&!this.dataGrouped)){t.prototype.validate.call(this);var s=this.chart,n=this.maskBullets;s&&n&&"XYChart"==s.className&&("vertical"!=s.leftAxesContainer.layout&&"vertical"!=s.rightAxesContainer.layout||(this.yAxis?this.bulletsContainer.mask=this.yAxis.renderer.gridContainer:this.bulletsContainer.mask=void 0),"horizontal"!=s.topAxesContainer.layout&&"horizontal"!=s.bottomAxesContainer.layout||(this.xAxis?this.bulletsContainer.mask=this.xAxis.renderer.gridContainer:this.bulletsContainer.mask=void 0))}},Object.defineProperty(e.prototype,"xAxis",{get:function(){if(this.chart){if(!this._xAxis.get()){var t=this.chart.xAxes.getIndex(0);if(!t)throw Error("There are no X axes on chart.");this.xAxis=t}return this._xAxis.get()}},set:function(t){this.setXAxis(t)},enumerable:!0,configurable:!0}),e.prototype.setXAxis=function(t){var e=this._xAxis.get();e!=t&&(e&&(this.dataItemsByAxis.removeKey(e.uid),this._xAxis.dispose(),e.series.removeValue(this)),this._xAxis.set(t,t.registerSeries(this)),this.dataItemsByAxis.setKey(t.uid,new G["a"]),this.invalidateData())},Object.defineProperty(e.prototype,"yAxis",{get:function(){if(this.chart){if(!this._yAxis.get()){var t=this.chart.yAxes.getIndex(0);if(!t)throw Error("There are no Y axes on chart.");this.yAxis=t}return this._yAxis.get()}},set:function(t){this.setYAxis(t)},enumerable:!0,configurable:!0}),e.prototype.setYAxis=function(t){var e=this._yAxis.get();e!=t&&(e&&(this.dataItemsByAxis.removeKey(e.uid),this._yAxis.dispose(),e.series.removeValue(this)),this._yAxis.set(t,t.registerSeries(this)),t.chart instanceof $t&&t.chart.handleYAxisSet(this),this.dataItemsByAxis.setKey(t.uid,new G["a"]),this.invalidateData())},Object.defineProperty(e.prototype,"baseAxis",{get:function(){var t=this.xAxis,e=this.yAxis;return!this._baseAxis&&t&&e&&(e instanceof Et&&(this._baseAxis=e),t instanceof Et&&(this._baseAxis=t),e instanceof Ht&&(this._baseAxis=e),t instanceof Ht&&(this._baseAxis=t),this._baseAxis||(this._baseAxis=t)),this._baseAxis},set:function(t){this._baseAxis!=t&&(this._baseAxis=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.addData=function(e,i,a){t.prototype.addData.call(this,e,i,a);var s=this.scrollbarSeries;s&&this.scrollbarSeries.addData(e,i,!0)},e.prototype.setData=function(e){t.prototype.setData.call(this,e),this.scrollbarSeries&&this.scrollbarSeries.setData(e)},e.prototype.setDataSet=function(e){var i=t.prototype.setDataSet.call(this,e);if(i){this._dataSetChanged=!0;var a=this.dataItems;if(this.resetExtremes(),a&&a.length>0){var s=this.xAxis,n=this.yAxis;this._prevStartIndex=void 0,this._prevEndIndex=void 0,this._startIndex=void 0,this._endIndex=void 0,this.appeared||this.processValues(!1),s instanceof Et&&s==this.baseAxis&&(this._tmin.setKey(s.uid,a.getIndex(0).dateX.getTime()),this._tmax.setKey(s.uid,a.getIndex(a.length-1).dateX.getTime()),this.dispatch("extremeschanged")),n instanceof Et&&n==this.baseAxis&&(this._tmin.setKey(n.uid,a.getIndex(0).dateY.getTime()),this._tmax.setKey(n.uid,a.getIndex(a.length-1).dateY.getTime()),this.dispatch("extremeschanged"))}}return i},e.prototype.processValues=function(e){t.prototype.processValues.call(this,e);var i=this.xAxis,a=this.yAxis;if(i&&a){var s=this.dataItems,n=1/0,r=-1/0,o=1/0,l=-1/0,h=this.startIndex,u=this.endIndex,d=h,c=u;e||(h=0,u=this.dataItems.length);for(var p=h;p<u;p++){var f=s.getIndex(p);this.getStackValue(f,e);var g=f.getValue("valueX","stack"),m=f.getValue("valueY","stack");n=et["C"](f.getMin(this._xValueFields,e,g),n),o=et["C"](f.getMin(this._yValueFields,e,m),o),r=et["B"](f.getMax(this._xValueFields,e,g),r),l=et["B"](f.getMax(this._yValueFields,e,m),l),this.stacked&&(this.baseAxis==i&&(m<o&&(o=m),m>l&&(l=m)),this.baseAxis==a&&(g<n&&(n=g),g>r&&(r=g)))}i.processSeriesDataItems(),a.processSeriesDataItems();var y=i.uid,v=a.uid;if(this.xAxis instanceof Rt&&(n==1/0||r==-1/0))return this._smin.setKey(y,void 0),this._smax.setKey(y,void 0),void this.dispatchImmediately("selectionextremeschanged");if(this.yAxis instanceof Rt&&(o==1/0||l==-1/0))return this._smin.setKey(v,void 0),this._smax.setKey(v,void 0),void this.dispatchImmediately("selectionextremeschanged");if(!e&&(this._tmin.getKey(y)!=n||this._tmax.getKey(y)!=r||this._tmin.getKey(v)!=o||this._tmax.getKey(v)!=l)){this._tmin.setKey(y,n),this._tmax.setKey(y,r),this._tmin.setKey(v,o),this._tmax.setKey(v,l);var x=this.stackedSeries;x&&(x.isDisposed()?this.stackedSeries=void 0:x.processValues(!1)),this.dispatchImmediately("extremeschanged")}if(h!=d||u!=c){n=1/0,r=-1/0,o=1/0,l=-1/0;for(p=d;p<c;p++){f=s.getIndex(p);this.getStackValue(f,e);g=f.getValue("valueX","stack"),m=f.getValue("valueY","stack");n=et["C"](f.getMin(this._xValueFields,e,g),n),o=et["C"](f.getMin(this._yValueFields,e,m),o),r=et["B"](f.getMax(this._xValueFields,e,g),r),l=et["B"](f.getMax(this._yValueFields,e,m),l),this.stacked&&(this.baseAxis==i&&(m<o&&(o=m),m>l&&(l=m)),this.baseAxis==a&&(g<n&&(n=g),g>r&&(r=g)))}}if(this.xAxis instanceof Rt&&(n==1/0||r==-1/0))return this._smin.setKey(y,void 0),this._smax.setKey(y,void 0),void this.dispatchImmediately("selectionextremeschanged");if(this.yAxis instanceof Rt&&(o==1/0||l==-1/0))return this._smin.setKey(v,void 0),this._smax.setKey(v,void 0),void this.dispatchImmediately("selectionextremeschanged");if((this._smin.getKey(y)!=n||this._smax.getKey(y)!=r||this._smin.getKey(v)!=o||this._smax.getKey(v)!=l)&&(this._smin.setKey(y,n),this._smax.setKey(y,r),this._smin.setKey(v,o),this._smax.setKey(v,l),this.appeared||0!=this.start||1!=this.end||this.dataItems!=this.mainDataSet)){var b=!1;if(a instanceof Rt&&!(a instanceof Et)){var _=this._tmin.getKey(v);(!z["h"](_)||(this.usesShowFields||this._dataSetChanged||i instanceof Et&&i.groupData&&this.isShowing)&&o<_||this.stackedSeries&&!this.isHidden)&&(this._tmin.setKey(v,o),b=!0);var P=this._tmax.getKey(v);(!z["h"](P)||(this.usesShowFields||this._dataSetChanged||i instanceof Et&&i.groupData&&this.isShowing)&&l>P||this.stackedSeries&&!this.isHidden)&&(this._tmax.setKey(v,l),b=!0)}if(i instanceof Rt&&!(i instanceof Et)){_=this._tmin.getKey(y);(!z["h"](_)||(this.usesShowFields||this._dataSetChanged||a instanceof Et&&a.groupData&&this.isShowing)&&n<_||this.stackedSeries&&!this.isHidden)&&(this._tmin.setKey(y,n),b=!0);P=this._tmax.getKey(y);(!z["h"](P)||(this.usesShowFields||this._dataSetChanged||a instanceof Et&&a.groupData&&this.isShowing)&&r>P||this.stackedSeries&&!this.isHidden)&&(this._tmax.setKey(y,r),b=!0)}b&&this.dispatchImmediately("extremeschanged"),0==this.start&&1==this.end&&(this._dataSetChanged=!1),this.dispatchImmediately("selectionextremeschanged")}!e&&this.stacked&&this.processValues(!0)}},e.prototype.hideTooltip=function(e){t.prototype.hideTooltip.call(this,e),this.returnBulletDefaultState(),this._prevTooltipDataItem=void 0},e.prototype.showTooltipAtPosition=function(t,e){var i;if(this.visible&&!this.isHiding&&!this.isShowing){var a=this._xAxis.get(),s=this._yAxis.get();a==this.baseAxis&&(i=a.getSeriesDataItem(this,a.toAxisPosition(t),this.snapTooltip)),s==this.baseAxis&&(i=s.getSeriesDataItem(this,s.toAxisPosition(e),this.snapTooltip));var n=this.showTooltipAtDataItem(i);if(n)return n;if(!this.tooltipText&&!this.tooltipHTML)return}this.hideTooltip()},e.prototype.getAdjustedXLocation=function(t,e,i){return t.locations[e]},e.prototype.getAdjustedYLocation=function(t,e,i){return t.locations[e]},e.prototype.showTooltipAtDataItem=function(t){var e,i,a=this.chart.cursor;if(a&&a.hideSeriesTooltipsOnSelection&&a.selection.visible&&a.downPoint)this.hideTooltip();else if(this.returnBulletDefaultState(t),t&&t.visible){if(this.updateLegendValue(t),this.cursorTooltipEnabled){this.tooltipDataItem=t;var s=this.tooltipXField,n=this.tooltipYField;if(z["d"](t[s])&&z["d"](t[n])){var r=this.getPoint(t,s,n,this.getAdjustedXLocation(t,s),this.getAdjustedYLocation(t,n));if(r&&("XYChart"!=this.chart.className||!(r.y<-1||r.y>this.yAxis.pixelHeight+1||r.x<-1||r.x>this.xAxis.pixelWidth+1))){if(this.tooltipX=r.x,this.tooltipY=r.y,this._prevTooltipDataItem!=t&&(this.dispatchImmediately("tooltipshownat",{type:"tooltipshownat",target:this,dataItem:t}),this._prevTooltipDataItem=t),this.cursorHoverEnabled)try{for(var o=Object(V["g"])(t.sprites),l=o.next();!l.done;l=o.next()){var h=l.value;!h.parent.visible||h.isHidden||h.__disabled||h.disabled||h.isHiding||(h.interactions.isRealHover||(h.dispatchImmediately("over"),h.interactions.isRealHover=!0),h.isHover=!0)}}catch(u){e={error:u}}finally{try{l&&!l.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return this.showTooltip()?tt["J"]({x:r.x,y:r.y},this):void 0}}}}else this.updateLegendValue(t,!0)},e.prototype.returnBulletDefaultState=function(t){var e,i;if(this._prevTooltipDataItem&&this._prevTooltipDataItem!=t)try{for(var a=Object(V["g"])(this._prevTooltipDataItem.sprites),s=a.next();!s.done;s=a.next()){var n=s.value;if(n.isDisposed())this._prevTooltipDataItem=void 0;else{var r=n.interactions.isRealHover;n.isHover=!1,r&&n.dispatchImmediately("out")}}}catch(o){e={error:o}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(e)throw e.error}}},e.prototype.shouldCreateBullet=function(t,e){var i=e.xField;z["d"](i)||(i=this.xField);var a=e.yField;if(z["d"](a)||(a=this.yField),this.xAxis instanceof Rt&&!t.hasValue([i])||this.yAxis instanceof Rt&&!t.hasValue([a]))return!1;if(e.disabled){var s=e.propertyFields.disabled,n=t.dataContext;return!(!n||!1!==n[s])}return!0},e.prototype.updateTooltip=function(){this.hideTooltipWhileZooming||!this.tooltip||this.tooltip.isHidden||this.isHiding||this.isHidden||!this.tooltipDataItem||this.showTooltipAtDataItem(this.tooltipDataItem)},e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem,a=e.xField;z["d"](a)||(a=this.xField);var s=e.yField;z["d"](s)||(s=this.yField);var n=this.xAxis,r=this.yAxis;if(n instanceof Rt&&!i.hasValue([a])||r instanceof Rt&&!i.hasValue([s]))e.visible=!1;else{var o=this.getBulletLocationX(e,a),l=this.getBulletLocationY(e,s),h=this.getPoint(i,a,s,o,l);if(h){var u=this.xOpenField,d=this.yOpenField,c=void 0,p=void 0;if(n instanceof Et){z["h"](o)||(o=0);var f=void 0,g=i.getWorkingValue(a);u?f=i.getWorkingValue(u):n==this.baseAxis&&(f=n.baseValue),z["h"](f)||(f=g);var m=i.getValue("valueX","stack");if(f+=m,g+=m,f==g){var y=n.baseInterval,v=n.dateFormatter;f=Yt["h"](new Date(f),y.timeUnit,y.count,v.firstDayOfWeek,v.utc,void 0,v.timezoneMinutes).getTime(),g=Yt["a"](new Date(f),y.timeUnit,y.count,v.utc).getTime()}var x=void 0;x=n==this.baseAxis?f+(g-f)*o:f+(g-f)*(1-o),c=n.valueToPosition(x)}else if(n instanceof Rt){z["h"](o)||(o=0);f=void 0,g=i.getWorkingValue(a);f=u?i.getWorkingValue(u):n.baseValue;m=i.getValue("valueX","stack");f+=m,g+=m;x=f+(g-f)*(1-o);c=n.valueToPosition(x)}else if(n instanceof Ht){var b=this.getAdjustedXLocation(i,a,e.locationX),_=this.getAdjustedXLocation(i,u,e.locationX);c=n.categoryToPosition(i[a],b);var P=void 0;u&&(P=n.categoryToPosition(i[u],_)),z["h"](P)||(P=1),c=P+(c-P)*o}if(r instanceof Et){z["h"](l)||(l=0);f=void 0,g=i.getWorkingValue(s);d?f=i.getWorkingValue(d):r==this.baseAxis&&(f=r.baseValue),z["h"](f)||(f=g);m=i.getValue("valueY","stack");if(f+=m,g+=m,f==g){y=r.baseInterval,v=r.dateFormatter;f=Yt["h"](new Date(f),y.timeUnit,y.count,v.firstDayOfWeek,v.utc,void 0,v.timezoneMinutes).getTime(),g=Yt["a"](new Date(f),y.timeUnit,y.count,v.utc).getTime()}x=void 0;x=r==this.baseAxis?f+(g-f)*l:f+(g-f)*(1-l),p=r.valueToPosition(x)}else if(r instanceof Rt){z["h"](l)||(l=0);f=void 0,g=i.getWorkingValue(s);f=d?i.getWorkingValue(d):r.baseValue;m=i.getValue("valueY","stack");f+=m,g+=m;x=f+(g-f)*(1-l);p=r.valueToPosition(x)}else if(r instanceof Ht){p=r.categoryToPosition(i[s],l);var C=this.getAdjustedYLocation(i,s,e.locationY),I=this.getAdjustedYLocation(i,d,e.locationY);p=r.categoryToPosition(i[s],C);var A=void 0;d&&(A=r.categoryToPosition(i[d],I)),z["h"](A)||(A=1),p=A+(p-A)*l}e.visible=!0,this.positionBulletReal(e,c,p)}else e.visible=!1}},e.prototype.positionBulletReal=function(t,e,i){t.x=this.xAxis.renderer.positionToPoint(e,i).x,t.y=this.yAxis.renderer.positionToPoint(i,e).y},e.prototype.getBulletLocationX=function(t,e){var i=t.locationX,a=t.dataItem;return z["h"](i)||(i=a.workingLocations[e]),i},e.prototype.getBulletLocationY=function(t,e){var i=t.locationY,a=t.dataItem;return z["h"](i)||(i=a.workingLocations[e]),i},e.prototype.updateStacking=function(){var t=this;this.invalidateDataItems(),this.chart&&this.chart.series.each((function(e){e.baseAxis==t.baseAxis&&(e.stackedSeries=void 0,e.invalidateDataItems(),e.invalidateProcessedData())}))},Object.defineProperty(e.prototype,"stacked",{get:function(){return this.getPropertyValue("stacked")},set:function(t){if(this.setPropertyValue("stacked",t,!0)){this.updateStacking();var e,i=this.xAxis,a=this.yAxis;if(!t)i!=this.baseAxis&&i instanceof Rt&&(e=this.xField),a!=this.baseAxis&&a instanceof Rt&&(e=this.yField),e&&this.dataItems.each((function(t){t.setCalculatedValue(e,0,"stack")}))}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(t){this.setPropertyValue("snapTooltip",t)},enumerable:!0,configurable:!0}),e.prototype.show=function(e){var i,a=this;this.appeared&&this.xAxis instanceof Et&&this.xAxis.groupData&&(this._tmin.setKey(this.yAxis.uid,void 0),this._tmax.setKey(this.yAxis.uid,void 0)),this.appeared&&this.yAxis instanceof Et&&this.yAxis.groupData&&(this._tmin.setKey(this.xAxis.uid,void 0),this._tmax.setKey(this.xAxis.uid,void 0)),this.xAxis instanceof Rt&&this.xAxis!=this.baseAxis&&(i=this._xValueFields),this.yAxis instanceof Rt&&this.yAxis!=this.baseAxis&&(i=this._yValueFields);var s,n=this.startIndex,r=this.endIndex,o=0,l=this.defaultState.transitionDuration;z["h"](e)&&(l=e),ot["a"].animationsEnabled||(l=0),N["d"](N["i"](this.dataItems.iterator()),(function(t){var e=t[0],h=t[1],u=l;(e<a.startIndex-10||e>a.endIndex+10)&&(u=0,o=0),a.sequencedInterpolation&&u>0&&(o=a.sequencedInterpolationDelay*e+l*(e-n)/(r-n)),s=h.show(u,o,i)})),this.dataSets.each((function(t,e){e!=a.dataItems&&e.each((function(t){t.events.disable(),t.show(0,0,i),t.events.enable()}))})),this.mainDataSet!=this.dataItems&&this.mainDataSet.each((function(t){t.events.disable(),t.show(0,0,i),t.events.enable()}));var h=t.prototype.show.call(this,e);return s&&!s.isFinished()&&(h=s),this.hidden&&(this.dispatchImmediately("selectionextremeschanged"),this.hidden=!1),h},e.prototype.hide=function(e){var i,a,s=this,n=this.xAxis;n instanceof Rt&&n!=this.baseAxis&&(i=this._xValueFields,a=this.stacked||n.minZoomed<n.baseValue&&n.maxZoomed>n.baseValue||this.stackedSeries?n.baseValue:n.min);var r=this.yAxis;r instanceof Rt&&r!=this.baseAxis&&(i=this._yValueFields,a=this.stacked||r.minZoomed<r.baseValue&&r.maxZoomed>r.baseValue||this.stackedSeries?r.baseValue:r.min);var o=this.startIndex,l=this.endIndex,h=this.hiddenState.transitionDuration;z["h"](e)&&(h=e),ot["a"].animationsEnabled||(h=0);var u,d=0;N["d"](N["i"](this.dataItems.iterator()),(function(t){var e=t[0],n=t[1],r=h;(e<s.startIndex-10||e>s.endIndex+10)&&(r=0),0==r?n.hide(0,0,a,i):(s.sequencedInterpolation&&r>0&&(d=s.sequencedInterpolationDelay*e+h*(e-o)/(l-o)),u=n.hide(r,d,a,i))})),this.dataSets.each((function(t,e){e!=s.dataItems&&e.each((function(t){t.events.disable(),t.hide(0,0,a,i),t.events.enable()}))})),this.mainDataSet!=this.dataItems&&this.mainDataSet.each((function(t){t.events.disable(),t.hide(0,0,a,i),t.events.enable()}));var c=t.prototype.hide.call(this,h);return c&&!c.isFinished()&&c.delay(d),u&&!u.isFinished()&&(c=u),this.validateDataElements(),c},e.prototype.handleDataItemWorkingValueChange=function(e,i){t.prototype.handleDataItemWorkingValueChange.call(this,e,i);var a=this.baseAxis.series;N["d"](a.iterator(),(function(t){(t.stacked||t.stackedSeries)&&t.invalidateProcessedData()}))},e.prototype.getStackValue=function(t,e){var i=this,a=this.xAxis,s=this.yAxis;if(this.stacked&&a&&s){var n,r=this.chart,o=r.series.indexOf(this);a!=this.baseAxis&&a instanceof Rt&&(n=this.xField),s!=this.baseAxis&&s instanceof Rt&&(n=this.yField),n&&(t.setCalculatedValue(n,0,"stack"),N["e"](r.series.range(0,o).backwards().iterator(),(function(r){if(r.xAxis==a&&r.yAxis==s&&r.className==i.className){r.stackedSeries=i;var o=r.dataItems.getIndex(t.index);if(o&&o.hasValue(i._xValueFields)&&o.hasValue(i._yValueFields)){var l=t.getValue(n),h=void 0,u=o.getValue(n)+o.getValue(n,"stack");if(h=e?o.getWorkingValue(n)+o.getValue(n,"stack"):o.getValue(n)+o.getValue(n,"stack"),!i.stackToNegative)return t.setCalculatedValue(n,h,"stack"),!1;if(l>=0&&u>=0||l<0&&u<0)return t.setCalculatedValue(n,h,"stack"),!1}else if(!r.stacked)return!1}return!0})))}},Object.defineProperty(e.prototype,"stackToNegative",{get:function(){return this.getPropertyValue("stackToNegative")},set:function(t){this.setPropertyValue("stackToNegative",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xField",{get:function(){return this._xField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yField",{get:function(){return this._yField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xOpenField",{get:function(){return this._xOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yOpenField",{get:function(){return this._yOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipXField",{get:function(){return this._tooltipXField?this._tooltipXField:this._xField},set:function(t){this._tooltipXField=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipYField",{get:function(){return this._tooltipYField?this._tooltipYField:this._yField},set:function(t){this._tooltipYField=t},enumerable:!0,configurable:!0}),e.prototype.min=function(t){return this._tmin.getKey(t.uid)},e.prototype.max=function(t){return this._tmax.getKey(t.uid)},e.prototype.selectionMin=function(t){var e=this._smin.getKey(t.uid);return e},e.prototype.selectionMax=function(t){var e=this._smax.getKey(t.uid);return e},e.prototype.processConfig=function(e){if(e){if(z["d"](e.baseAxis)&&z["j"](e.baseAxis)&&(this.map.hasKey(e.baseAxis)?e.baseAxis=this.map.getKey(e.baseAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.baseAxis+'" found for `baseAxis`.'),delete e.baseAxis)),z["d"](e.xAxis)&&z["j"](e.xAxis)&&(this.map.hasKey(e.xAxis)?e.xAxis=this.map.getKey(e.xAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.xAxis+'" found for `xAxis`.'),delete e.xAxis)),z["d"](e.yAxis)&&z["j"](e.yAxis)&&(this.map.hasKey(e.yAxis)?e.yAxis=this.map.getKey(e.yAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.yAxis+'" found for `yAxis`.'),delete e.yAxis)),z["d"](e.axisRanges)&&z["e"](e.axisRanges))for(var i=0,a=e.axisRanges.length;i<a;i++){var s=e.axisRanges[i];z["d"](s.type)||(s.type="AxisDataItem"),z["d"](s.axis)&&z["j"](s.axis)&&this.map.hasKey(s.axis)?s.component=this.map.getKey(s.axis):z["d"](s.component)&&z["j"](s.component)&&this.map.hasKey(s.component)&&(s.component=this.map.getKey(s.component))}z["d"](e.dataFields)&&z["i"](e.dataFields)||this.processingErrors.push("`dataFields` is not set for series ["+(this.name||"unnamed")+"]")}t.prototype.processConfig.call(this,e)},e.prototype.getPoint=function(t,e,i,a,s,n,r){if(this.xAxis&&this.yAxis){var o=this.xAxis.getX(t,e,a),l=this.yAxis.getY(t,i,s);return o=et["i"](o,-this._maxxX,this._maxxX),l=et["i"](l,-this._maxxY,this._maxxY),{x:o,y:l}}},e.prototype.updateItemReaderText=function(){if(!this._itemReaderTextChanged){var t="";ut["d"](this.dataFields,(function(e,i){t+="{"+e+"} "})),this.itemReaderText=t,this._itemReaderTextChanged=!1}},Object.defineProperty(e.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(t){this.setPropertyValue("cursorTooltipEnabled",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorHoverEnabled",{get:function(){return this.getPropertyValue("cursorHoverEnabled")},set:function(t){this.setPropertyValue("cursorHoverEnabled",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"excludeFromTotal",{get:function(){return this.getPropertyValue("excludeFromTotal")},set:function(t){this.setPropertyValue("excludeFromTotal",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideTooltipWhileZooming",{get:function(){return this.getPropertyValue("hideTooltipWhileZooming")},set:function(t){this.setPropertyValue("hideTooltipWhileZooming",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(t){this.setPropertyValue("maskBullets",t);var e=this.chart;e&&(this.bulletsContainer.parent=t?e.bulletsContainer:e.axisBulletsContainer)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){this.groupFields=tt["f"](e.groupFields,{}),t.prototype.copyFrom.call(this,e)},e.prototype.dispose=function(){this.scrollbarSeries&&this.scrollbarSeries.dispose(),t.prototype.dispose.call(this)},e}(ft);T["b"].registeredClasses["XYSeries"]=Kt,T["b"].registeredClasses["XYSeriesDataItem"]=Ut;var Gt=i("2f36"),Zt=i("2027"),qt=function(t){function e(){var e=t.call(this)||this;e._chart=new j["d"],e.className="XYChartScrollbar";var i=new X["a"];e.padding(0,0,0,0);var a=e.createChild($t);if(a.shouldClone=!1,a.margin(0,0,0,0),a.padding(0,0,0,0),a.interactionsEnabled=!1,e._scrollbarChart=a,!tt["w"]()){var s=new Zt["a"];s.filterUnits="userSpaceOnUse",a.plotContainer.filters.push(s)}e._disposers.push(e._scrollbarChart),e.minHeight=60,e.minWidth=60;var n=e.createChild(R["a"]);n.shouldClone=!1,n.setElement(e.paper.add("path")),n.fill=i.getFor("background"),n.fillOpacity=.8,n.interactionsEnabled=!1,n.isMeasured=!1,n.toBack(),e._unselectedOverlay=n,e._disposers.push(e._unselectedOverlay),a.toBack(),e.background.cornerRadius(0,0,0,0);var r=e.thumb.background;r.cornerRadius(0,0,0,0),r.fillOpacity=0,r.fill=i.getFor("background");var o=r.states.getKey("hover");o&&(o.properties.fillOpacity=.2);var l=r.states.getKey("down");return l&&(l.properties.fillOpacity=.4),e._disposers.push(e._chart),e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new w["a"],this._disposers.push(this._series.events.on("inserted",this.handleSeriesAdded,this,!1)),this._disposers.push(this._series.events.on("removed",this.handleSeriesRemoved,this,!1))),this._series},enumerable:!0,configurable:!0}),e.prototype.handleSeriesAdded=function(t){var e=this,i=t.newValue;if(i.xAxis&&i.yAxis){var a=this.scrollbarChart;a.zoomOutButton.disabled=!0,this.chart=i.chart,a.dateFormatter.inputDateFormat=this.chart.dateFormatter.inputDateFormat,a.language.locale=this.chart.language.locale;var s=!0,n=!0;N["d"](this.series.iterator(),(function(t){t!=i&&(t.xAxis==i.xAxis&&e.scrollbarChart.xAxes.length>0&&(s=!1),t.yAxis==i.yAxis&&e.scrollbarChart.yAxes.length>0&&(n=!1))})),i.events.on("beforedisposed",(function(){e.series.removeValue(i)}));var r=new X["a"],o=i.clone();if((ot["a"].onlyShowOnViewport||ot["a"].queue)&&this.addDisposer(this.chart.events.on("removedfromqueue",(function(){a.invalidateData()}))),tt["w"]()&&(o.stroke=Object(lt["b"])("#aaaaaa"),o.fill=o.stroke,o.propertyFields.fill=void 0,o.propertyFields.stroke=void 0),i.scrollbarSeries=o,s){var l=i.xAxis.clone();a.xAxes.moveValue(l),l.title.disabled=!0,l.rangeChangeDuration=0;var h=l.renderer;h.ticks.template.disabled=!0,h.inside=!0,h.labels.template.inside=!0,h.line.strokeOpacity=0,h.minLabelPosition=.02,h.maxLabelPosition=.98,h.line.disabled=!0,h.axisFills.template.disabled=!0,h.baseGrid.disabled=!0,h.grid.template.strokeOpacity=.05,h.minWidth=void 0,h.minHeight=void 0,h.padding(0,0,0,0),h.chart=a,h.margin(0,0,0,0),l.width=Object(Y["c"])(100);var u=h.labels.template;if(u.fillOpacity=.5,l.maxZoomCount=void 0,l.minZoomCount=void 0,l instanceof Et){var d=l,c=i.xAxis;d.groupCount=5*c.groupCount,d.min=void 0,d.max=void 0,this._disposers.push(d.clonedFrom.events.on("extremeschanged",(function(){z["h"](d.clonedFrom.minDefined)&&(d.min=d.clonedFrom.minDefined),z["h"](d.clonedFrom.maxDefined)&&(d.max=d.clonedFrom.maxDefined)}),void 0,!1))}else if(l instanceof Rt){var p=l;p.min=void 0,p.max=void 0,z["h"](p.clonedFrom.minDefined)||(p.min=void 0),z["h"](p.clonedFrom.maxDefined)||(p.max=void 0),this._disposers.push(p.clonedFrom.events.on("extremeschanged",(function(){z["h"](p.clonedFrom.minDefined)&&(p.min=p.clonedFrom.min),z["h"](p.clonedFrom.maxDefined)&&(p.max=p.clonedFrom.max)}),void 0,!1))}o.xAxis=l}else this.scrollbarChart.xAxes.each((function(t){t.clonedFrom==i.xAxis&&(o.xAxis=t)}));if(n){var f=i.yAxis.clone();a.yAxes.moveValue(f),f.title.disabled=!0,f.rangeChangeDuration=0;h=f.renderer;h.ticks.template.disabled=!0,h.inside=!0,h.labels.template.inside=!0,h.line.strokeOpacity=0,h.minLabelPosition=.02,h.maxLabelPosition=.98,h.line.disabled=!0,h.axisFills.template.disabled=!0,h.grid.template.stroke=r.getFor("background"),h.baseGrid.disabled=!0,h.grid.template.strokeOpacity=.05,h.minWidth=void 0,h.minHeight=void 0,h.chart=a,h.padding(0,0,0,0),h.margin(0,0,0,0),f.height=Object(Y["c"])(100);u=h.labels.template;if(u.fillOpacity=.5,o.yAxis=f,f.maxZoomCount=void 0,f.minZoomCount=void 0,f instanceof Et){var g=f;g.min=void 0,g.max=void 0;c=i.yAxis;f.groupCount=5*c.groupCount,this._disposers.push(g.clonedFrom.events.on("extremeschanged",(function(){z["h"](g.clonedFrom.minDefined)&&(g.min=g.clonedFrom.minDefined),z["h"](g.clonedFrom.maxDefined)&&(g.max=g.clonedFrom.maxDefined)})))}else if(f instanceof Rt){var m=f;m.min=void 0,m.max=void 0,z["h"](m.clonedFrom.minDefined)||(m.min=void 0),z["h"](m.clonedFrom.maxDefined)||(m.max=void 0),this._disposers.push(m.clonedFrom.events.on("extremeschanged",(function(){z["h"](m.clonedFrom.minDefined)&&(m.min=m.clonedFrom.minDefined),z["h"](m.clonedFrom.maxDefined)&&(m.max=m.clonedFrom.maxDefined)})))}}else this.scrollbarChart.yAxes.each((function(t){t.clonedFrom==i.yAxis&&(o.yAxis=t)}));o.rangeChangeDuration=0,o.interpolationDuration=0,o.defaultState.transitionDuration=0,o.showOnInit=!1,this._disposers.push(o.events.on("validated",this.zoomOutAxes,this,!1)),this._disposers.push(i.events.on("datavalidated",(function(){o.data!=i.data&&(o.data=i.data)}),void 0,!1)),o.defaultState.properties.visible=!0,a.series.push(o),this.updateByOrientation()}},e.prototype.updateByOrientation=function(){var t=this;this._scrollbarChart&&(N["d"](this._scrollbarChart.xAxes.iterator(),(function(e){var i=e.renderer;"vertical"==t.orientation?(i.grid.template.disabled=!0,i.labels.template.disabled=!0,i.minGridDistance=10):(i.grid.template.disabled=!1,i.labels.template.disabled=!1,i.minGridDistance=e.clonedFrom.renderer.minGridDistance)})),N["d"](this._scrollbarChart.yAxes.iterator(),(function(e){var i=e.renderer;"horizontal"==t.orientation?(i.grid.template.disabled=!0,i.labels.template.disabled=!0,i.minGridDistance=10):(i.grid.template.disabled=!1,i.labels.template.disabled=!1,i.minGridDistance=e.clonedFrom.renderer.minGridDistance)})))},e.prototype.handleSeriesRemoved=function(t){var e=t.oldValue,i=this.scrollbarChart;i.series.each((function(t){t&&t.clonedFrom==e&&i.series.removeValue(t)})),0==i.series.length&&(i.xAxes.clear(),i.yAxes.clear());try{e.events.off("validated",this.zoomOutAxes,this)}catch(a){}},Object.defineProperty(e.prototype,"scrollbarChart",{get:function(){return this._scrollbarChart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.get()!==t&&(this._chart.set(t,t.events.on("datavalidated",this.handleDataChanged,this,!1)),this.handleDataChanged(),this._scrollbarChart.dataProvider=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unselectedOverlay",{get:function(){return this._unselectedOverlay},enumerable:!0,configurable:!0}),e.prototype.handleDataChanged=function(){this.chart.data!=this.scrollbarChart.data?this.scrollbarChart.data=this.chart.data:this.scrollbarChart.invalidateRawData()},e.prototype.zoomOutAxes=function(){var t=this.scrollbarChart;N["d"](t.xAxes.iterator(),(function(t){t.zoom({start:0,end:1},!0,!0)})),N["d"](t.yAxes.iterator(),(function(t){t.zoom({start:0,end:1},!0,!0)}))},e.prototype.updateThumb=function(){if(t.prototype.updateThumb.call(this),this._unselectedOverlay){var e=this.thumb,i=e.pixelX||0,a=e.pixelY||0,s=e.pixelWidth||0,n=e.pixelHeight||0,r="";"horizontal"==this.orientation?(r=B["j"]({x:-1,y:0,width:i,height:n}),r+=B["j"]({x:i+s,y:0,width:(this.pixelWidth||0)-i-s,height:n})):(r=B["j"]({x:0,y:0,width:s,height:a}),r+=B["j"]({x:0,y:a+n,width:s,height:(this.pixelHeight||0)-a-n})),this._unselectedOverlay.path=r}},e.prototype.processConfig=function(e){if(e&&z["d"](e.series)&&z["e"](e.series))for(var i=0,a=e.series.length;i<a;i++){var s=e.series[i];if(z["d"](s)&&z["j"](s)){if(!this.map.hasKey(s))throw Error("XYChartScrollbar error: Series with id `"+s+"` does not exist.");e.series[i]=this.map.getKey(s)}}t.prototype.processConfig.call(this,e)},e}(at["a"]);T["b"].registeredClasses["XYChartScrollbar"]=qt;var Jt=function(t){function e(){var e=t.call(this)||this;return e.className="XYChartDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(mt),$t=function(t){function e(){var e=t.call(this)||this;e._axisRendererX=Wt,e._axisRendererY=Ft,e._seriesPoints=[],e.className="XYChart",e.maskBullets=!0,e.arrangeTooltips=!0;var i=e.chartContainer;i.layout="vertical",e.padding(15,15,15,15);var a=i.createChild(F["a"]);a.shouldClone=!1,a.layout="vertical",a.width=Object(Y["c"])(100),a.zIndex=1,e.topAxesContainer=a;var s=i.createChild(F["a"]);s.shouldClone=!1,s.layout="horizontal",s.width=Object(Y["c"])(100),s.height=Object(Y["c"])(100),s.zIndex=0,e.yAxesAndPlotContainer=s;var n=i.createChild(F["a"]);n.shouldClone=!1,n.width=Object(Y["c"])(100),n.layout="vertical",n.zIndex=1,e.bottomAxesContainer=n;var r=s.createChild(F["a"]);r.shouldClone=!1,r.layout="horizontal",r.height=Object(Y["c"])(100),r.contentAlign="right",r.events.on("transformed",e.updateXAxesMargins,e,!1),r.zIndex=1,e.leftAxesContainer=r;var o=s.createChild(F["a"]);o.shouldClone=!1,o.height=Object(Y["c"])(100),o.width=Object(Y["c"])(100),o.background.fillOpacity=0,e.plotContainer=o,e.mouseWheelBehavior="none",e._cursorContainer=o;var l=s.createChild(F["a"]);l.shouldClone=!1,l.layout="horizontal",l.height=Object(Y["c"])(100),l.zIndex=1,l.events.on("transformed",e.updateXAxesMargins,e,!1),e.rightAxesContainer=l,e.seriesContainer.parent=o,e.bulletsContainer.parent=o;var h=o.createChild(Gt["a"]);h.shouldClone=!1,h.align="right",h.valign="top",h.zIndex=Number.MAX_SAFE_INTEGER,h.marginTop=5,h.marginRight=5,h.hide(0),e.zoomOutButton=h;var u=e.plotContainer.createChild(F["a"]);return u.shouldClone=!1,u.width=Object(Y["c"])(100),u.height=Object(Y["c"])(100),u.isMeasured=!1,u.zIndex=4,u.layout="none",e.axisBulletsContainer=u,e._bulletMask=e.plotContainer,e.events.on("beforedatavalidated",(function(){e.series.each((function(t){t.dataGrouped=!1,t._baseInterval={}}))}),e,!1),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),this.zoomOutButton.exportable=!1,z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("X/Y chart"))},e.prototype.draw=function(){t.prototype.draw.call(this),this.seriesContainer.toFront(),this.bulletsContainer.toFront(),this.maskBullets&&(this.bulletsContainer.mask=this._bulletMask),this.updateSeriesLegend()},e.prototype.updatePlotElements=function(){N["d"](this.series.iterator(),(function(t){t.invalidate()}))},e.prototype.validateData=function(){0==this._parseDataFrom&&(N["d"](this.xAxes.iterator(),(function(t){t.dataChangeUpdate()})),N["d"](this.yAxes.iterator(),(function(t){t.dataChangeUpdate()})),N["d"](this.series.iterator(),(function(t){t.dataChangeUpdate()}))),t.prototype.validateData.call(this)},e.prototype.updateXAxesMargins=function(){var t=this.leftAxesContainer.measuredWidth,e=this.rightAxesContainer.measuredWidth,i=this.bottomAxesContainer;i.paddingLeft==t&&i.paddingRight==e||(i.paddingLeft=t,i.paddingRight=e);var a=this.topAxesContainer;a.paddingLeft==t&&a.paddingRight==e||(a.paddingLeft=t,a.paddingRight=e)},e.prototype.reinit=function(){t.prototype.reinit.call(this),this.series.each((function(t){t.appeared=!1}))},e.prototype.handleXAxisChange=function(t){this.updateXAxis(t.target)},e.prototype.handleYAxisChange=function(t){this.updateYAxis(t.target)},e.prototype.processXAxis=function(t){var e=t.newValue;e.chart=this,e.renderer||(e.renderer=new this._axisRendererX,e.renderer.observe(["opposite","inside","inversed","minGridDistance"],this.handleXAxisChange,this,!1)),e.axisLetter="X",e.events.on("startendchanged",this.handleXAxisRangeChange,this,!1),e.dataProvider=this,this.updateXAxis(e.renderer),this.processAxis(e)},e.prototype.processYAxis=function(t){var e=t.newValue;e.chart=this,e.renderer||(e.renderer=new this._axisRendererY,e.renderer.observe(["opposite","inside","inversed","minGridDistance"],this.handleYAxisChange,this,!1)),e.axisLetter="Y",e.events.on("startendchanged",this.handleYAxisRangeChange,this,!1),e.dataProvider=this,this.updateYAxis(e.renderer),this.processAxis(e)},e.prototype.handleXAxisRangeChange=function(){var t=this.getCommonAxisRange(this.xAxes);this.scrollbarX&&this.zoomAxes(this.xAxes,t,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarX,t)},e.prototype.toggleZoomOutButton=function(){if(this.zoomOutButton){var t=!1;N["e"](this.xAxes.iterator(),(function(e){if(e.toggleZoomOutButton)if(e.maxZoomCount>0){var i=e.maxZoomFactor/e.maxZoomCount;if(et["E"](e.end-e.start,3)<1/i)return t=!0,!1}else if(et["E"](e.start,3)>0||et["E"](e.end,3)<1)return t=!0,!1;return!0})),N["e"](this.yAxes.iterator(),(function(e){if(e.toggleZoomOutButton){if(e.maxZoomCount>0){var i=e.maxZoomFactor/e.maxZoomCount;if(et["E"](e.end-e.start,3)<1/i)return t=!0,!1}else if(et["E"](e.start,3)>0||et["E"](e.end,3)<1)return t=!0,!1;return!0}})),this.seriesAppeared||(t=!1),t?this.zoomOutButton.show():this.zoomOutButton.hide()}},e.prototype.seriesAppeared=function(){var t=!1;return N["d"](this.series.iterator(),(function(e){if(!e.appeared)return t=!1,!1})),t},e.prototype.handleYAxisRangeChange=function(){var t=this.getCommonAxisRange(this.yAxes);this.scrollbarY&&this.zoomAxes(this.yAxes,t,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarY,t)},e.prototype.updateScrollbar=function(t,e){t&&(t.skipRangeEvents(),t.start=e.start,t.end=e.end)},e.prototype.getCommonAxisRange=function(t){var e,i;return t.each((function(t){if(!t.zoomable||t instanceof Rt&&t.syncWithAxis);else{var a=t.start,s=t.end;t.renderer.inversed&&(a=1-t.end,s=1-t.start),(!z["h"](e)||a<e)&&(e=a),(!z["h"](i)||s>i)&&(i=s)}})),{start:e,end:i}},e.prototype.updateXAxis=function(t){var e=t.axis;t.opposite?(e.parent=this.topAxesContainer,e.toFront()):(e.parent=this.bottomAxesContainer,e.toBack()),e.renderer&&e.renderer.processRenderer()},e.prototype.updateYAxis=function(t){var e=t.axis;t.opposite?(e.parent=this.rightAxesContainer,e.toBack()):(e.parent=this.leftAxesContainer,e.toFront()),e.renderer&&e.renderer.processRenderer()},e.prototype.processAxis=function(t){var e=this;t instanceof Ht&&this._dataUsers.moveValue(t);var i=t.renderer;i.gridContainer.parent=this.plotContainer,i.gridContainer.toBack(),i.breakContainer.parent=this.plotContainer,i.breakContainer.toFront(),i.breakContainer.zIndex=10,t.addDisposer(new j["b"]((function(){e.dataUsers.removeValue(t)}))),i.bulletsContainer.parent=this.axisBulletsContainer,this._disposers.push(t.events.on("positionchanged",(function(){var a=tt["I"]({x:0,y:0},t,e.axisBulletsContainer);t.renderer instanceof Ft&&(i.bulletsContainer.y=a.y),t.renderer instanceof Wt&&(i.bulletsContainer.x=a.x)}),void 0,!1)),this.plotContainer.events.on("maxsizechanged",(function(){e.inited&&(t.invalidateDataItems(),e.updateSeriesMasks())}),t,!1)},e.prototype.updateSeriesMasks=function(){tt["w"]()&&this.series.each((function(t){var e=t.mainContainer.mask;t.mainContainer.mask=void 0,t.mainContainer.mask=e}))},e.prototype.handleSeriesRemoved=function(e){var i=e.oldValue;i&&(i.xAxis&&(i.xAxis.series.removeValue(i),i.xAxis.invalidateProcessedData()),i.yAxis&&(i.yAxis.series.removeValue(i),i.yAxis.invalidateProcessedData()),this.series.each((function(t){t.resetExtremes()}))),t.prototype.handleSeriesRemoved.call(this,e)},Object.defineProperty(e.prototype,"xAxes",{get:function(){return this._xAxes||(this._xAxes=new w["a"],this._xAxes.events.on("inserted",this.processXAxis,this,!1),this._xAxes.events.on("removed",this.handleAxisRemoval,this,!1),this._disposers.push(new w["b"](this._xAxes,!1))),this._xAxes},enumerable:!0,configurable:!0}),e.prototype.handleAxisRemoval=function(t){var e=t.oldValue;this.dataUsers.removeValue(e),e.autoDispose&&e.dispose()},Object.defineProperty(e.prototype,"yAxes",{get:function(){return this._yAxes||(this._yAxes=new w["a"],this._yAxes.events.on("inserted",this.processYAxis,this,!1),this._yAxes.events.on("removed",this.handleAxisRemoval,this,!1),this._disposers.push(new w["b"](this._yAxes,!1))),this._yAxes},enumerable:!0,configurable:!0}),e.prototype.handleSeriesAdded=function(e){try{t.prototype.handleSeriesAdded.call(this,e);var i=e.newValue;0!=this.xAxes.length&&0!=this.yAxes.length||(T["b"].removeFromInvalidComponents(i),i.dataInvalid=!1),tt["R"](i.xAxis),tt["R"](i.yAxis),i.maskBullets=i.maskBullets,void 0==i.fill&&(this.patterns?(z["d"](i.stroke)||(i.stroke=this.colors.next()),i.fill=this.patterns.next(),z["d"](i.fillOpacity)&&(i.fill.backgroundOpacity=i.fillOpacity),i.stroke instanceof lt["a"]&&(i.fill.stroke=i.stroke,i.fill.fill=i.stroke)):i.fill=this.colors.next()),z["d"](i.stroke)||(i.stroke=i.fill)}catch(a){this.raiseCriticalError(a)}},Object.defineProperty(e.prototype,"cursor",{get:function(){return this._cursor},set:function(t){this._cursor!=t&&(this._cursor&&this.removeDispose(this._cursor),this._cursor=t,t&&(this._disposers.push(t),t.chart=this,t.shouldClone=!1,t.parent=this._cursorContainer,t.events.on("cursorpositionchanged",this.handleCursorPositionChange,this,!1),t.events.on("zoomstarted",this.handleCursorZoomStart,this,!1),t.events.on("zoomended",this.handleCursorZoomEnd,this,!1),t.events.on("panstarted",this.handleCursorPanStart,this,!1),t.events.on("panning",this.handleCursorPanning,this,!1),t.events.on("panended",this.handleCursorPanEnd,this,!1),t.events.on("behaviorcanceled",this.handleCursorCanceled,this,!1),t.events.on("hidden",this.handleHideCursor,this,!1),t.zIndex=Number.MAX_SAFE_INTEGER-1,this.tapToActivate&&this.setTapToActivate(this.tapToActivate)))},enumerable:!0,configurable:!0}),e.prototype.handleCursorPositionChange=function(){var t=this.cursor;if(t.visible&&!t.isHiding){var e=this.cursor.xPosition,i=this.cursor.yPosition;this.showSeriesTooltip({x:e,y:i});var a=[],s=t.snapToSeries;if(s&&!t.downPoint){s instanceof Kt&&(s=[s]);var n=[];dt["d"](s,(function(t){if(!t.isHidden&&!t.isHiding){var s=t.xAxis,r=t.yAxis;s instanceof Rt&&!(s instanceof Et)&&r instanceof Rt&&!(r instanceof Et)?(t.dataItems.each((function(t){n.push(t)})),dt["m"](a,t.yAxis),dt["m"](a,t.xAxis)):(t.baseAxis==t.xAxis&&(dt["m"](a,t.yAxis),n.push(s.getSeriesDataItem(t,s.toAxisPosition(e),!0))),t.baseAxis==t.yAxis&&(dt["m"](a,t.xAxis),n.push(r.getSeriesDataItem(t,r.toAxisPosition(i),!0))))}}));var r=this.getClosest(n,e,i);r&&(this.series.each((function(t){var e=r.component;t!=e&&(t.hideTooltip(),t.xAxis!=e.xAxis&&t.xAxis.hideTooltip(),t.yAxis!=e.yAxis&&t.yAxis.hideTooltip())})),r.component.showTooltipAtDataItem(r),t.handleSnap(r.component))}this._seriesPoints=[],this._cursorXPosition!=e&&this.showAxisTooltip(this.xAxes,e,a),this._cursorYPosition!=i&&this.showAxisTooltip(this.yAxes,i,a),this.arrangeTooltips&&this.sortSeriesTooltips(this._seriesPoints),this.legend&&this.legend.afterDraw()}},e.prototype.getClosest=function(t,e,i){var a,s=1/0;return dt["e"](t,(function(t){if(t){var n=t.component.xAxis,r=t.component.yAxis,o=n.positionToCoordinate(n.toGlobalPosition(n.toAxisPosition(e))),l=r.positionToCoordinate(r.toGlobalPosition(r.toAxisPosition(i))),h=t.component.xField,u=t.component.yField;if(n instanceof Rt&&!z["h"](t.getValue(h)))return!0;if(r instanceof Rt&&!z["h"](t.getValue(u)))return!0;var d=n.positionToCoordinate(n.toGlobalPosition(n.getPositionX(t,h,t.locations[h],"valueX"))),c=r.positionToCoordinate(r.toGlobalPosition(r.getPositionY(t,u,t.locations[u],"valueY"))),p=Math.sqrt(Math.pow(o-d,2)+Math.pow(l-c,2));return p<s&&(s=p,a=t),!0}})),a},e.prototype.handleHideCursor=function(){this.hideObjectTooltip(this.xAxes),this.hideObjectTooltip(this.yAxes),this.hideObjectTooltip(this.series),this._cursorXPosition=void 0,this._cursorYPosition=void 0,this.updateSeriesLegend()},e.prototype.updateSeriesLegend=function(){N["d"](this.series.iterator(),(function(t){t.updateLegendValue()}))},e.prototype.hideObjectTooltip=function(t){N["d"](t.iterator(),(function(t){t.cursorTooltipEnabled&&t.hideTooltip(0)}))},e.prototype.showSeriesTooltip=function(t){var e=this;if(t){var i=[];this.series.each((function(a){if(a.xAxis instanceof Et&&a.xAxis.snapTooltip||a.yAxis instanceof Et&&a.yAxis.snapTooltip);else{var s=a.showTooltipAtPosition(t.x,t.y);s&&(a.tooltip.setBounds(tt["K"]({x:0,y:0,width:e.pixelWidth,height:e.pixelHeight},e)),i.push({series:a,point:s}))}})),this.arrangeTooltips&&this.sortSeriesTooltips(i)}else this.series.each((function(t){t.hideTooltip()}))},e.prototype.sortSeriesTooltips=function(t){if(t.length>0){var e=this.cursor;if(e&&z["h"](e.maxTooltipDistance)){var i,a,s=tt["J"]({x:e.point.x,y:e.point.y},e),n=1/0;dt["d"](t,(function(t){var e=t.series,r=t.point;if(r){var o={x:r.x,y:r.y},l=Math.abs(et["q"](o,s));l<n&&(a=o,n=l,i=e)}}));var r=[];i&&(dt["d"](t,(function(t){if(Math.abs(et["q"](t.point,a))<=Math.abs(e.maxTooltipDistance))r.push({series:t.series,point:t.point});else{var i=t.series.tooltipDataItem;i&&dt["d"](i.sprites,(function(t){t.isHover=!1,t.handleOutReal()})),t.series.hideTooltip(0)}})),e.maxTooltipDistance<0&&(r.length>0&&dt["d"](r,(function(t){i!=t.series&&t.series.hideTooltip(0)})),r=[{series:i,point:a}])),t=r}var o=tt["J"]({x:-.5,y:-.5},this.plotContainer),l=tt["J"]({x:this.plotContainer.pixelWidth+.5,y:this.plotContainer.pixelHeight+.5},this.plotContainer),h=0,u=[];dt["d"](t,(function(t){var e=t.point;e&&et["A"](e,{x:o.x,y:o.y,width:l.x-o.x,height:l.y-o.y})&&(u.push({point:e,series:t.series}),h+=e.y)})),t=u;var d=this.series.getIndex(0),c=!1;d&&d.yAxis&&d.yAxis.renderer.inversed&&(c=!0),c?t.sort((function(t,e){return Pt["a"](t.point.y,e.point.y)})):(t.sort((function(t,e){return Pt["a"](e.point.y,t.point.y)})),t.reverse());var p=h/t.length,f=tt["N"]({x:0,y:0},this.svgContainer.SVGContainer).y;if(t.length>0){var g=o.y,m=l.y;tt["H"]({x:0,y:g},this);var y=!1;if(p>g+(m-g)/2)for(var v=m,x=t.length-1;x>=0;x--){var b=t[x].series,_=b.tooltip,P=t[x].point.y;if(_.setBounds({x:0,y:-f,width:this.pixelWidth,height:v+f}),_.invalid&&_.validate(),_.toBack(),v=tt["J"]({x:0,y:_.label.pixelY-_.pixelY+P-_.pixelMarginTop},_).y,v<-f){y=!0;break}}if(p<=g+(m-g)/2||y)for(var C=g,I=(x=0,t.length);x<I;x++){b=t[x].series,P=t[x].point.y,_=b.tooltip;_.setBounds({x:0,y:C,width:this.pixelWidth,height:m}),_.invalid&&_.validate(),_.toBack(),C=tt["J"]({x:0,y:_.label.pixelY+_.label.measuredHeight-_.pixelY+P+_.pixelMarginBottom},_).y}}}},e.prototype.showAxisTooltip=function(t,e,i){var a=this;N["d"](t.iterator(),(function(t){i&&-1!=i.indexOf(t)||(a.dataItems.length>0||t.dataItems.length>0)&&t.showTooltipAtPosition(e)}))},e.prototype.getUpdatedRange=function(t,e){if(t){var i,a,s=t.renderer.inversed;s?(et["z"](e),i=1-t.end,a=1-t.start):(i=t.start,a=t.end);var n=a-i;return{start:i+e.start*n,end:i+e.end*n}}},e.prototype.handleCursorZoomEnd=function(t){var e=this.cursor,i=e.behavior;if("zoomX"==i||"zoomXY"==i){var a=e.xRange;a&&this.xAxes.length>0&&(a=this.getUpdatedRange(this.xAxes.getIndex(0),a),a.priority="start",this.zoomAxes(this.xAxes,a))}if("zoomY"==i||"zoomXY"==i){var s=e.yRange;s&&this.yAxes.length>0&&(s=this.getUpdatedRange(this.yAxes.getIndex(0),s),s.priority="start",this.zoomAxes(this.yAxes,s))}this.handleHideCursor()},e.prototype.handleCursorPanStart=function(t){var e=this.xAxes.getIndex(0);e&&(this._panStartXRange={start:e.start,end:e.end});var i=this.yAxes.getIndex(0);i&&(this._panStartYRange={start:i.start,end:i.end})},e.prototype.handleCursorPanEnd=function(t){var e=this.cursor,i=e.behavior;if(this._panEndXRange&&("panX"==i||"panXY"==i)){var a=this._panEndXRange,s=this._panStartXRange,n=0;a.start<0&&(n=a.start),s.end>1?a.end>s.end&&(n=a.end-s.end):a.end>1&&(n=a.end-1),this.zoomAxes(this.xAxes,{start:a.start-n,end:a.end-n},!1,!0),this._panEndXRange=void 0,this._panStartXRange=void 0}if(this._panEndYRange&&("panY"==i||"panXY"==i)){a=this._panEndYRange,n=0;a.start<0&&(n=a.start),a.end>1&&(n=a.end-1),this.zoomAxes(this.yAxes,{start:a.start-n,end:a.end-n},!1,!0),this._panEndYRange=void 0,this._panStartYRange=void 0}},e.prototype.handleCursorCanceled=function(){this._panEndXRange=void 0,this._panStartXRange=void 0},e.prototype.handleCursorPanning=function(t){var e=this.cursor,i=e.behavior,a=e.maxPanOut;if(this._panStartXRange&&("panX"==i||"panXY"==i)){var s=this._panStartXRange,n=e.xRange,r=this.getCommonAxisRange(this.xAxes),o=s.end-s.start,l=n.start*(r.end-r.start),h=Math.max(-a,l+s.start),u=Math.min(l+s.end,1+a);h<=0&&(u=h+o),u>=1&&(h=u-o);var d={start:h,end:u};this._panEndXRange=d,this.zoomAxes(this.xAxes,d,!1,!1,e.maxPanOut)}if(this._panStartYRange&&("panY"==i||"panXY"==i)){s=this._panStartYRange,n=e.yRange,r=this.getCommonAxisRange(this.yAxes),o=s.end-s.start,l=n.start*(r.end-r.start),h=Math.max(-a,l+s.start),u=Math.min(l+s.end,1+a);h<=0&&(u=h+o),u>=1&&(h=u-o);d={start:h,end:u};this._panEndYRange=d,this.zoomAxes(this.yAxes,d,!1,!1,e.maxPanOut)}this.handleHideCursor()},e.prototype.handleYAxisSet=function(t){},e.prototype.handleCursorZoomStart=function(t){},Object.defineProperty(e.prototype,"scrollbarX",{get:function(){return this._scrollbarX},set:function(t){var e=this;this._scrollbarX&&this.removeDispose(this._scrollbarX),this._scrollbarX=t,t&&(this._disposers.push(t),t.parent=this.topAxesContainer,t.shouldClone=!1,t.startGrip.exportable=!1,t.endGrip.exportable=!1,t.toBack(),t.orientation="horizontal",t.events.on("rangechanged",this.handleXScrollbarChange,this,!1),t.adapter.add("positionValue",(function(t){var i=e.xAxes.getIndex(0);return i&&(t.value=i.getPositionLabel(i.renderer.inversed?1-t.position:t.position)),t})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollbarY",{get:function(){return this._scrollbarY},set:function(t){var e=this;this._scrollbarY&&this.removeDispose(this._scrollbarY),this._scrollbarY=t,t&&(this._disposers.push(t),t.parent=this.rightAxesContainer,t.startGrip.exportable=!1,t.shouldClone=!1,t.endGrip.exportable=!1,t.toFront(),t.orientation="vertical",t.events.on("rangechanged",this.handleYScrollbarChange,this,!1),t.adapter.add("positionValue",(function(t){var i=e.yAxes.getIndex(0);return i&&(t.value=i.getPositionLabel(t.position)),t})))},enumerable:!0,configurable:!0}),e.prototype.handleXScrollbarChange=function(t){if(this.inited){var e=t.target,i=e.range;0==i.start&&(i.priority="start"),1==i.end&&(i.priority="end"),i=this.zoomAxes(this.xAxes,i),e.fixRange(i)}},e.prototype.handleYScrollbarChange=function(t){if(this.inited){var e=t.target,i=e.range;1==i.end&&(i.priority="end"),0==i.start&&(i.priority="start"),i=this.zoomAxes(this.yAxes,i),e.fixRange(i)}},e.prototype.zoomAxes=function(t,e,i,a,s){var n={start:0,end:1};return this.showSeriesTooltip(),this.dataInvalid||N["d"](t.iterator(),(function(t){if(t.zoomable){if(t.renderer.inversed&&(e=et["z"](e)),t.hideTooltip(0),a)if(t instanceof Ht){var r=t.getCellEndPosition(0)-t.getCellStartPosition(0);e.start=t.roundPosition(e.start+r/2-t.startLocation*r,t.startLocation),e.end=t.roundPosition(e.end-r/2+(1-t.endLocation)*r,t.endLocation)}else e.start=t.roundPosition(e.start+1e-4,0,t.startLocation),e.end=t.roundPosition(e.end+1e-4,0,t.endLocation);var o=t.zoom(e,i,i,s);t.renderer.inversed&&(o=et["z"](o)),n=o}})),n},Object.defineProperty(e.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(t){this.setPropertyValue("maskBullets",t,!0)&&this.bulletsContainer&&(this.bulletsContainer.mask=t?this._bulletMask:void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrangeTooltips",{get:function(){return this.getPropertyValue("arrangeTooltips")},set:function(t){this.setPropertyValue("arrangeTooltips",t,!0)},enumerable:!0,configurable:!0}),e.prototype.handleWheel=function(t){var e=this.plotContainer,i=tt["i"](t.point,this.htmlContainer,this.svgContainer.cssScale),a=tt["O"](i,e),s=t.shift.y;this.handleWheelReal(s,this.mouseWheelBehavior,a)},e.prototype.handleHorizontalWheel=function(t){var e=this.plotContainer,i=tt["i"](t.point,this.htmlContainer,this.svgContainer.cssScale),a=tt["O"](i,e);this.handleWheelReal(t.shift.x,this.horizontalMouseWheelBehavior,a)},e.prototype.handleWheelReal=function(t,e,i){if(0!=t){var a=this.plotContainer,s=this.getCommonAxisRange(this.xAxes),n=this.getCommonAxisRange(this.yAxes),r=.1,o=0;if("panX"==e||"panXY"==e){var l=s.end-s.start,h=Math.max(-o,s.start+r*t/100*(s.end-s.start)),u=Math.min(s.end+r*t/100*(s.end-s.start),1+o);h<=0&&(u=h+l),u>=1&&(h=u-l),this.zoomAxes(this.xAxes,{start:h,end:u})}if("panY"==e||"panXY"==e){t*=-1;var d=n.end-n.start,c=Math.max(-o,n.start+r*t/100*(n.end-n.start)),p=Math.min(n.end+r*t/100*(n.end-n.start),1+o);c<=0&&(p=c+d),p>=1&&(c=p-d),this.zoomAxes(this.yAxes,{start:c,end:p})}if("zoomX"==e||"zoomXY"==e){var f=i.x/a.maxWidth,g=this.xAxes.getIndex(0).toAxisPosition(f);h=Math.max(-o,s.start-r*(s.end-s.start)*t/100*f);h=Math.min(h,g);u=Math.min(s.end+r*(s.end-s.start)*t/100*(1-f),1+o);u=Math.max(u,g),this.zoomAxes(this.xAxes,{start:h,end:u})}if("zoomY"==e||"zoomXY"==e){var m=i.y/a.maxHeight,y=this.yAxes.getIndex(0).toAxisPosition(m);c=Math.max(-o,n.start-r*(n.end-n.start)*t/100*(1-m));c=Math.min(c,y);p=Math.min(n.end+r*t/100*m*(n.end-n.start),1+o);p=Math.max(p,y),this.zoomAxes(this.yAxes,{start:c,end:p})}}},Object.defineProperty(e.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")},set:function(t){this.setPropertyValue("mouseWheelBehavior",t)&&("none"!=t?(this._mouseWheelDisposer=this.plotContainer.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer)):this._mouseWheelDisposer&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer.dispose()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalMouseWheelBehavior",{get:function(){return this.getPropertyValue("horizontalMouseWheelBehavior")},set:function(t){this.setPropertyValue("horizontalMouseWheelBehavior",t)&&("none"!=t?(this._mouseWheelDisposer2=this.plotContainer.events.on("wheel",this.handleHorizontalWheel,this,!1),this._disposers.push(this._mouseWheelDisposer2)):this._mouseWheelDisposer2&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer2.dispose()))},enumerable:!0,configurable:!0}),e.prototype.dataSourceDateFields=function(e){var i=this;return e=t.prototype.dataSourceDateFields.call(this,e),N["d"](this.series.iterator(),(function(t){e=i.populateDataSourceFields(e,t.dataFields,["dateX","dateY","openDateX","openDateY"])})),e},e.prototype.dataSourceNumberFields=function(e){var i=this;return e=t.prototype.dataSourceDateFields.call(this,e),N["d"](this.series.iterator(),(function(t){e=i.populateDataSourceFields(e,t.dataFields,["valueX","valueY","openValueX","openValueY"])})),e},e.prototype.processConfig=function(e){if(e){var i=[],a=[];if(z["d"](e.xAxes)&&z["e"](e.xAxes))for(var s=0,n=e.xAxes.length;s<n;s++){if(!e.xAxes[s].type)throw Error("[XYChart error] No type set for xAxes["+s+"].");if(z["d"](e.xAxes[s]["axisRanges"])){for(var r=0,o=e.xAxes[s]["axisRanges"].length;r<o;r++){var l=e.xAxes[s]["axisRanges"][r];z["d"](l.date)&&z["j"](l.date)&&(l.date=this.dateFormatter.parse(l.date)),z["d"](l.endDate)&&z["j"](l.endDate)&&(l.endDate=this.dateFormatter.parse(l.endDate))}i.push({axisRanges:e.xAxes[s]["axisRanges"],index:s}),delete e.xAxes[s]["axisRanges"]}}if(z["d"](e.yAxes)&&z["e"](e.yAxes))for(s=0,n=e.yAxes.length;s<n;s++){if(!e.yAxes[s].type)throw Error("[XYChart error] No type set for yAxes["+s+"].");if(z["d"](e.yAxes[s]["axisRanges"])){r=0;for(var h=e.yAxes[s]["axisRanges"].length;r<h;r++){l=e.yAxes[s]["axisRanges"][r];z["d"](l.date)&&z["j"](l.date)&&(l.date=this.dateFormatter.parse(l.date)),z["d"](l.endDate)&&z["j"](l.endDate)&&(l.endDate=this.dateFormatter.parse(l.endDate))}a.push({axisRanges:e.yAxes[s]["axisRanges"],index:s}),delete e.yAxes[s]["axisRanges"]}}if(z["d"](e.series)&&z["e"](e.series))for(s=0,n=e.series.length;s<n;s++)e.series[s].type=e.series[s].type||"LineSeries";if(z["d"](e.cursor)&&!z["d"](e.cursor.type)&&(e.cursor.type="XYCursor"),z["d"](e.scrollbarX)&&!z["d"](e.scrollbarX.type)&&(e.scrollbarX.type="Scrollbar"),z["d"](e.scrollbarY)&&!z["d"](e.scrollbarY.type)&&(e.scrollbarY.type="Scrollbar"),t.prototype.processConfig.call(this,e),a.length)for(s=0,n=a.length;s<n;s++)this.yAxes.getIndex(a[s].index).config={axisRanges:a[s].axisRanges};if(i.length)for(s=0,n=i.length;s<n;s++)this.xAxes.getIndex(i[s].index).config={axisRanges:i[s].axisRanges}}},e.prototype.configOrder=function(e,i){return e==i?0:"scrollbarX"==e?1:"scrollbarX"==i?-1:"scrollbarY"==e?1:"scrollbarY"==i?-1:"cursor"==e?1:"cursor"==i?-1:"series"==e?1:"series"==i?-1:t.prototype.configOrder.call(this,e,i)},e.prototype.createSeries=function(){return new Kt},Object.defineProperty(e.prototype,"zoomOutButton",{get:function(){return this._zoomOutButton},set:function(t){var e=this;this._zoomOutButton=t,t&&t.events.on("hit",(function(){e.zoomAxes(e.xAxes,{start:0,end:1}),e.zoomAxes(e.yAxes,{start:0,end:1})}),void 0,!1)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){var i=this;e.xAxes.each((function(t){var e=i.xAxes.push(t.clone());e.chart=i,e.renderer.chart=i})),e.yAxes.each((function(t){var e=i.yAxes.push(t.clone());e.renderer.chart=i,e.chart=i})),t.prototype.copyFrom.call(this,e),e.cursor&&(this.cursor=e.cursor.clone()),e.scrollbarX&&(this.scrollbarX=e.scrollbarX.clone()),e.scrollbarY&&(this.scrollbarY=e.scrollbarY.clone())},e.prototype.disposeData=function(){t.prototype.disposeData.call(this);var e=this.scrollbarX;e&&e instanceof qt&&e.scrollbarChart.disposeData();var i=this.scrollbarY;i&&i instanceof qt&&i.scrollbarChart.disposeData(),this.xAxes.each((function(t){t instanceof Ht&&t.disposeData()})),this.yAxes.each((function(t){t instanceof Ht&&t.disposeData()}))},e.prototype.addData=function(e,i){this.scrollbarX instanceof qt&&this.addScrollbarData(this.scrollbarX,i),this.scrollbarY instanceof qt&&this.addScrollbarData(this.scrollbarY,i),t.prototype.addData.call(this,e,i)},e.prototype.addScrollbarData=function(t,e){var i=t.scrollbarChart;i._parseDataFrom=i.data.length,i.invalidateData()},e.prototype.removeScrollbarData=function(t,e){var i=t.scrollbarChart;if(z["h"](e)){while(e>0){var a=this.dataItems.getIndex(0);a&&i.dataItems.remove(a),i.dataUsers.each((function(t){var e=t.dataItems.getIndex(0);e&&t.dataItems.remove(e)})),i._parseDataFrom--,e--}i.invalidateData()}},e.prototype.removeData=function(e){this.scrollbarX instanceof qt&&this.removeScrollbarData(this.scrollbarX,e),this.scrollbarY instanceof qt&&this.removeScrollbarData(this.scrollbarY,e),t.prototype.removeData.call(this,e)},e.prototype.setTapToActivate=function(e){t.prototype.setTapToActivate.call(this,e),this.cursor&&(this.cursor.interactions.isTouchProtected=e,this.plotContainer.interactions.isTouchProtected=e)},e.prototype.handleTapToActivate=function(){t.prototype.handleTapToActivate.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!1,this.plotContainer.interactions.isTouchProtected=!1)},e.prototype.handleTapToActivateDeactivation=function(){t.prototype.handleTapToActivateDeactivation.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!0,this.plotContainer.interactions.isTouchProtected=!0)},e}(yt);T["b"].registeredClasses["XYChart"]=$t,H["c"].push({relevant:H["b"].maybeXS,state:function(t,e){if(t instanceof $t&&t.scrollbarX){var i=t.states.create(e),a=t.scrollbarX.states.create(e);return a.properties.disabled=!0,i}return null}}),H["c"].push({relevant:H["b"].maybeXS,state:function(t,e){if(t instanceof $t&&t.scrollbarY){var i=t.states.create(e),a=t.scrollbarY.states.create(e);return a.properties.disabled=!0,i}return null}});var Qt=i("877f"),te=function(t){function e(){var e=t.call(this)||this;e.className="LineSeriesSegment",e.isMeasured=!1,e.interactionsEnabled=!1,e.layout="none";var i=e.createChild(R["a"]);e.fillSprite=i,i.shouldClone=!1,i.setElement(e.paper.add("path")),i.isMeasured=!1,e._disposers.push(i);var a=e.createChild(R["a"]);return e.strokeSprite=a,a.shouldClone=!1,a.fill=Object(lt["b"])(),a.setElement(e.paper.add("path")),a.isMeasured=!1,e._disposers.push(a),e}return Object(V["c"])(e,t),e.prototype.drawSegment=function(t,e,i,a){if(!this.disabled)if(t.length>0&&e.length>0&&z["h"](t[0].x)&&z["h"](t[0].y)){var s=B["g"]({x:t[0].x-.2,y:t[0].y-.2})+B["g"](t[0]),n=this.series;"bezier"==n.smoothing?s+=new Qt["c"](i,a).smooth(t):"monotoneX"==n.smoothing?s+=new Qt["a"]({closed:!1}).smooth(t):"monotoneY"==n.smoothing&&(s+=new Qt["b"]({closed:!1}).smooth(t)),0==this.strokeOpacity||0==this.strokeSprite.strokeOpacity||(this.strokeSprite.path=s),(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&z["h"](e[0].x)&&z["h"](e[0].y)&&(s+=B["f"](e[0]),"bezier"==n.smoothing?s+=new Qt["c"](i,a).smooth(e):"monotoneX"==n.smoothing?s+=new Qt["a"]({closed:!1}).smooth(e):"monotoneY"==n.smoothing&&(s+=new Qt["b"]({closed:!1}).smooth(e)),s+=B["f"](t[0]),s+=B["d"](),this.fillSprite.path=s)}else this.fillSprite.path="",this.strokeSprite.path=""},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e);var i=this.strokeSprite;ut["c"](e,i.properties,R["b"]),i.events.copyFrom(e.strokeSprite.events),i.fillOpacity=0;var a=this.fillSprite;ut["c"](e,a.properties,R["b"]),a.events.copyFrom(e.fillSprite.events),a.strokeOpacity=0},e}(F["a"]);T["b"].registeredClasses["LineSeriesSegment"]=te;var ee=function(t){function e(){var e=t.call(this)||this;return e.className="DurationAxisDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(Mt),ie=function(t){function e(){var e=t.call(this)||this;return e._baseUnit="second",e.className="DurationAxis",e.setPropertyValue("maxZoomFactor",1e6),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.formatLabel=function(t,e){return this.durationFormatter.format(t,e||this.axisDurationFormat)},e.prototype.adjustMinMax=function(e,i,a,s,n){var r,o,l,h=this.baseUnit;if(this.setPropertyValue("maxPrecision",0),"millisecond"==h||"second"==h||"minute"==h||"hour"==h){s<=1&&(s=1),s=Math.round(s);var u=e,d=i;0===a&&(a=Math.abs(i));var c=a/s,p=[60,30,20,15,10,2,1],f=1;"hour"==h&&(p=[24,12,6,4,2,1]);try{for(var g=Object(V["g"])(p),m=g.next();!m.done;m=g.next()){var y=m.value;if(a/y>s){f=y;break}}}catch(C){r={error:C}}finally{try{m&&!m.done&&(o=g.return)&&o.call(g)}finally{if(r)throw r.error}}var v=Math.ceil((i-e)/f/s),x=Math.log(Math.abs(v))*Math.LOG10E,b=Math.pow(10,Math.floor(x))/10,_=v/b,P=et["f"](p,_);v=P*b,c=f*v,this.durationFormatter.getValueUnit(c,this.baseUnit),e=Math.floor(e/c)*c,i=Math.ceil(i/c)*c,n&&(e-=c,e<0&&u>=0&&(e=0),i+=c,i>0&&d<=0&&(i=0)),l={min:e,max:i,step:c}}else l=t.prototype.adjustMinMax.call(this,e,i,a,s,n);return this.axisDurationFormat=this.durationFormatter.getFormat(l.step,l.max,this.baseUnit),l},Object.defineProperty(e.prototype,"tooltipDurationFormat",{get:function(){return this._tooltipDurationFormat},set:function(t){this._tooltipDurationFormat=t},enumerable:!0,configurable:!0}),e.prototype.getTooltipText=function(t){var e=et["E"](this.positionToValue(t),this._stepDecimalPlaces),i=this.formatLabel(e,this.tooltipDurationFormat);return this._adapterO?this._adapterO.apply("getTooltipText",i):i},Object.defineProperty(e.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(t){this._baseUnit!=t&&(this._baseUnit=t,this.durationFormatter.baseUnit=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.baseUnit=e.baseUnit},e}(Rt);T["b"].registeredClasses["DurationAxis"]=ie,T["b"].registeredClasses["DurationAxisDataItem"]=ee;var ae=i("2d86"),se=i("db37"),ne=function(t){function e(){var e=t.call(this)||this;return e.className="LineSeriesDataItem",e}return Object(V["c"])(e,t),e}(Ut),re=function(t){function e(){var e=t.call(this)||this;return e.minDistance=.5,e.segments=new w["c"](e.createSegment()),e.segments.template.applyOnClones=!0,e._disposers.push(new w["b"](e.segments)),e._disposers.push(e.segments.template),e._segmentsIterator=new N["a"](e.segments,(function(){return e.segments.create()})),e._segmentsIterator.createNewItems=!0,e.className="LineSeries",e.strokeOpacity=1,e.fillOpacity=0,e.connect=!0,e.tensionX=1,e.tensionY=1,e.autoGapCount=1.1,e.smoothing="bezier",e.segmentsContainer=e.mainContainer.createChild(F["a"]),e.segmentsContainer.isMeasured=!1,e.bulletsContainer.toFront(),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Line Series"))},e.prototype.createSegment=function(){return new te},e.prototype.createDataItem=function(){return new ne},e.prototype.setInitialWorkingValues=function(t){var e=this._yAxis.get(),i=this._xAxis.get();if(this.appeared&&this.visible){var a=this.dataItems.getIndex(t.index-1);if(t.component=this,this.baseAxis==i&&e instanceof Rt){var s=e.minZoomed;if(a&&(s=a.values["valueY"].workingValue),t.setWorkingValue("valueY",s,0),t.setWorkingValue("valueY",t.values.valueY.value),i instanceof Et)t.setWorkingLocation("dateX",t.locations.dateX-1,0),t.setWorkingLocation("dateX",t.locations.dateX);else if(i instanceof ie&&a){var n=t.valueX;t.setWorkingValue("valueX",a.valueX,0),t.setWorkingValue("valueX",n)}}if(this.baseAxis==e&&i instanceof Rt){var r=i.minZoomed;if(a&&(r=a.values["valueX"].workingValue),t.setWorkingValue("valueX",r,0),t.setWorkingValue("valueX",t.values.valueX.value),e instanceof Et)t.setWorkingLocation("dateY",t.locations.dateX-1,0),t.setWorkingLocation("dateY",t.locations.dateY);else if(e instanceof ie&&a){n=t.valueY;t.setWorkingValue("valueY",a.valueY,0),t.setWorkingValue("valueY",n)}}}else this.baseAxis==i&&e instanceof Rt&&(i instanceof Et&&t.setWorkingLocation("dateX",t.locations.dateX),i instanceof Ht&&t.setWorkingLocation("categoryX",t.locations.categoryX)),this.baseAxis==e&&i instanceof Rt&&(e instanceof Et&&t.setWorkingLocation("dateY",t.locations.dateY),e instanceof Ht&&t.setWorkingLocation("categoryY",t.locations.categoryY))},e.prototype.updateLegendValue=function(e,i){t.prototype.updateLegendValue.call(this,e,i),e&&e.segment&&(this.tooltipColorSource=e.segment)},e.prototype.validate=function(){var e=this;t.prototype.validate.call(this),this.xAxis&&this.yAxis&&(this._segmentsIterator.reset(),this.openSegmentWrapper(this._adjustedStartIndex),N["d"](this.axisRanges.iterator(),(function(t){e.openSegmentWrapper(e._adjustedStartIndex,t)})),N["d"](this._segmentsIterator.iterator(),(function(t){t.__disabled=!0})))},e.prototype.sliceData=function(){for(var t=this.startIndex,e=this.endIndex,i=this.startIndex-1;i>=0;i--){var a=this.dataItems.getIndex(i);if(a&&a.hasValue(this._xValueFields)&&a.hasValue(this._yValueFields)){t=i;break}}this._adjustedStartIndex=this.findAdjustedIndex(t,["stroke","strokeWidth","strokeDasharray","strokeOpacity","fill","fillOpacity","opacity"]);i=this.endIndex;for(var s=this.dataItems.length;i<s;i++){a=this.dataItems.getIndex(i);if(a&&a.hasValue(this._xValueFields)&&a.hasValue(this._yValueFields)){e=i+1;break}}this._workingStartIndex=t,this._workingEndIndex=e},e.prototype.findAdjustedIndex=function(t,e){var i=this,a=this.propertyFields,s=t;return dt["d"](e,(function(e){if(z["d"](a[e]))for(var n=s;n>=0;n--){var r=i.dataItems.getIndex(n);if(r&&z["d"](r.properties[e])){t>n&&(t=n);break}}})),t},e.prototype.openSegmentWrapper=function(t,e){var i={index:t,axisRange:e};do{i=this.openSegment(i.index,i.axisRange)}while(i)},e.prototype.getSegment=function(){var t=this._segmentsIterator.getFirst();return t.series=this,t.isDisposed()?(this.segments.removeValue(t),this.getSegment()):t},e.prototype.openSegment=function(t,e){var i=!1,a=[];t=Math.min(t,this.dataItems.length);var s,n=Math.min(this._workingEndIndex,this.dataItems.length);this._workingEndIndex=Math.min(this._workingEndIndex,this.dataItems.length);var r=!1,o=this.getSegment();o.strokeDasharray=void 0,o.__disabled=!1,e?(o.parent=e.contents,ut["c"](e.contents,o,R["b"])):(ut["c"](this,o,R["b"]),o.filters.clear(),o.parent=this.segmentsContainer),this.group.node.removeAttribute("fill");for(var l=this.connect,h=!1,u=t;u<n;u++){var d=this.dataItems.getIndex(u);if(d.segment=o,d.hasProperties&&(u==t?this.updateSegmentProperties(d.properties,o):r=this.updateSegmentProperties(d.properties,o,!0)),d.hasValue(this._xValueFields)&&d.hasValue(this._yValueFields))this.addPoints(a,d,this.xField,this.yField),h=!0;else{if(u==t)continue;if(!l&&h){s=u;break}}if(s=u,this.baseAxis instanceof Et){var c=this.dataItems.getIndex(u+1);if(c&&this.baseAxis.makeGap(c,d)){i=!0;break}}if(r)break}return this.closeSegment(o,a,t,s,e,i)},e.prototype.addPoints=function(t,e,i,a,s){var n=this.getPoint(e,i,a,e.workingLocations[i],e.workingLocations[a]);s||(e.point=n),t.push(n)},e.prototype.closeSegment=function(t,e,i,a,s,n){var r=[];if(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)for(var o=a;o>=i;o--){var l=this.dataItems.getIndex(o);l.hasValue(this._xValueFields)&&l.hasValue(this._yValueFields)&&this.addPoints(r,l,this.xOpenField,this.yOpenField,!0)}else{var h=this.baseAxis,u=e.length,d=this.xAxis,c=this.yAxis;u>0&&(h==d?(r.push({x:e[u-1].x,y:c.basePoint.y}),r.push({x:e[0].x,y:c.basePoint.y})):(r.push({x:d.basePoint.x,y:e[u-1].y}),r.push({x:d.basePoint.x,y:e[0].y})))}return this.drawSegment(t,e,r),n&&a++,a<this._workingEndIndex-1?{index:a,axisRange:s}:null},e.prototype.drawSegment=function(t,e,i){t.drawSegment(e,i,this.tensionX,this.tensionY)},e.prototype.updateSegmentProperties=function(t,e,i){var a=!1;return ut["d"](t,(function(t,s){if(z["d"](s)){var n=e[t],r=void 0;n&&(r=n.toString?n.toString():n);var o=void 0;s&&(o=s.toString?s.toString():s),n==s||void 0!=r&&void 0!=o&&r==o||(i||(e[t]=s),a=!0)}})),a},Object.defineProperty(e.prototype,"connect",{get:function(){return this.getPropertyValue("connect")},set:function(t){this.setPropertyValue("connect",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(t){this.setPropertyValue("tensionX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(t){this.setPropertyValue("tensionY",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){var e=this,i=t.pixelWidth,a=t.pixelHeight;t.disposeChildren();var s=t.createChild(ae["a"]);if(s.shouldClone=!1,ut["c"](this,s,R["b"]),s.x2=i,s.y=a/2,s.y2=1e-5,s.visible=!0,this.fillOpacity>0){var n=t.createChild(se["a"]);ut["c"](this,n,R["b"]),n.width=i,n.height=a,n.y=0,n.strokeOpacity=0,n.visible=!0,s.y=0}var r=t.dataItem;r.color=this.stroke,r.colorOrig=this.fill,N["e"](this.bullets.iterator(),(function(s){if(s instanceof q&&!s.copyToLegendMarker)return!1;var n=!1;if(s instanceof F["a"]&&N["d"](s.children.iterator(),(function(t){if(t instanceof L["a"])return n=!0,!0})),!n){var r=s.clone();return r.parent=t,r.isMeasured=!0,r.tooltipText=void 0,r.x=i/2,e.fillOpacity>0?r.y=0:r.y=a/2,r.visible=!0,z["d"](r.fill)||(r.fill=e.fill),z["d"](r.stroke)||(r.stroke=e.stroke),!1}}))},e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this.segments.clear()},Object.defineProperty(e.prototype,"autoGapCount",{get:function(){return this.getPropertyValue("autoGapCount")},set:function(t){this.setPropertyValue("autoGapCount",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"smoothing",{get:function(){return this.getPropertyValue("smoothing")},set:function(t){this.setPropertyValue("smoothing",t,!0)},enumerable:!0,configurable:!0}),e}(Kt);T["b"].registeredClasses["LineSeries"]=re,T["b"].registeredClasses["LineSeriesDataItem"]=ne;var oe=function(t){function e(){var e=t.call(this)||this;return e.className="RadarSeriesDataItem",e.setLocation("dateX",0,0),e.setLocation("dateY",0,0),e.setLocation("categoryX",0,0),e.setLocation("categoryY",0,0),e.applyTheme(),e}return Object(V["c"])(e,t),e}(ne),le=function(t){function e(){var e=t.call(this)||this;return e.className="RadarSeries",e.connectEnds=!0,e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},e.prototype.createDataItem=function(){return new oe},e.prototype.getPoint=function(t,e,i,a,s,n,r){n||(n="valueX"),r||(r="valueY");var o=this.yAxis.getX(t,i,s,r),l=this.yAxis.getY(t,i,s,r),h=et["q"]({x:o,y:l});0==h&&(h=1e-5);var u=this.xAxis.getAngle(t,e,a,n),d=this.chart.startAngle,c=this.chart.endAngle;return u<d||u>c?void 0:{x:h*et["g"](u),y:h*et["F"](u)}},e.prototype.addPoints=function(t,e,i,a,s){var n=this.getPoint(e,i,a,e.locations[i],e.locations[a]);n&&t.push(n)},e.prototype.getMaskPath=function(){var t=this.yAxis.renderer;return B["a"](t.startAngle,t.endAngle-t.startAngle,t.pixelRadius,t.pixelInnerRadius)},e.prototype.drawSegment=function(e,i,a){var s=this.yAxis,n=s.renderer;this.connectEnds&&360==Math.abs(n.endAngle-n.startAngle)&&(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)&&(i.push(i[0]),a.length>0&&a.unshift(a[a.length-1])),t.prototype.drawSegment.call(this,e,i,a)},Object.defineProperty(e.prototype,"connectEnds",{get:function(){return this.getPropertyValue("connectEnds")},set:function(t){this.setPropertyValue("connectEnds",t,!0)},enumerable:!0,configurable:!0}),e.prototype.positionBulletReal=function(t,e,i){var a=this.xAxis,s=this.yAxis;(e<a.start||e>a.end||i<s.start||i>s.end)&&(t.visible=!1),t.moveTo(this.xAxis.renderer.positionToPoint(e,i))},e.prototype.setXAxis=function(e){t.prototype.setXAxis.call(this,e),this.updateRendererRefs()},e.prototype.setYAxis=function(e){t.prototype.setYAxis.call(this,e),this.updateRendererRefs()},e.prototype.updateRendererRefs=function(){var t=this.xAxis.renderer,e=this.yAxis.renderer;t.axisRendererY=e},e}(re);T["b"].registeredClasses["RadarSeries"]=le,T["b"].registeredClasses["RadarSeriesDataItem"]=oe;var he=i("f0c5"),ue=function(t){function e(e){var i=t.call(this,e)||this;return i.className="AxisFillCircular",i.element=i.paper.add("path"),i.radius=Object(Y["c"])(100),i.applyTheme(),i}return Object(V["c"])(e,t),e.prototype.draw=function(){if(t.prototype.draw.call(this),!this.__disabled&&!this.disabled&&this.axis){var e=this.axis.renderer;this.fillPath=e.getPositionRangePath(this.startPosition,this.endPosition,this.radius,z["d"](this.innerRadius)?this.innerRadius:e.innerRadius,this.cornerRadius),this.path=this.fillPath}},Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),e}(Ot);T["b"].registeredClasses["AxisFillCircular"]=ue;var de=function(t){function e(){var e=t.call(this)||this;return e.className="GridCircular",e.pixelPerfect=!1,e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),e}(Dt);T["b"].registeredClasses["GridCircular"]=de;var ce=function(t){function e(){var e=t.call(this)||this;return e.fdx=0,e.fdy=0,e.className="AxisLabelCircular",e.padding(0,0,0,0),e.location=.5,e.locationOnPath=.5,e.radius=0,e.isMeasured=!1,e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"relativeRotation",{get:function(){return this.getPropertyValue("relativeRotation")},set:function(t){if(this.setPropertyValue("relativeRotation",t,!0),!z["d"](t)){this.rotation=void 0;var e=this.dataItem;e&&e.component&&e.component.invalidateDataItems()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bent",{get:function(){return this.getPropertyValue("bent")},set:function(t){this.setPropertyValue("bent",t,!0),this.setPropertyValue("wrap",!1),this.setPropertyValue("horizontalCenter","none"),this.setPropertyValue("verticalCenter","none"),t?(this.setPropertyValue("dx",0),this.setPropertyValue("dy",0),this.setPropertyValue("x",0),this.setPropertyValue("y",0),this.setPropertyValue("rotation",0),this.fdx=0,this.fdy=0,this.textAlign="middle"):this.textPathElement&&(this.textPathElement.dispose(),this.textPathElement=void 0)},enumerable:!0,configurable:!0}),e.prototype.pixelRadius=function(t){var e=1;return this.inside&&(e=-1),tt["E"](this.radius,t)*e},e.prototype.pixelRadiusY=function(t,e){var i=1;this.inside&&(i=-1);var a=this.radius;return z["h"](a)?(a*=e/t,tt["E"](a,t)*i):tt["E"](a,e)*i},e.prototype.fixPosition=function(t,e,i,a,s){z["h"](i)||(i=e),z["h"](a)||(a=0),z["h"](s)||(s=0);var n={x:e*et["g"](t),y:i*et["F"](t)};this.invalid&&this.validate();var r=!1,o=this.radius;(o instanceof Y["a"]&&o.value<0||o<0)&&(r=!0);var l=this.relativeRotation,h=this.pixelRadius(e);if(this.bent){var u={x:(e+h)*et["g"](t+180),y:(i+h*i/e)*et["F"](t+180)};return this.path=B["g"](u)+B["b"](t+180,360,e+h,i+h*i/e),void(this.textPathElement&&this.textPathElement.attr({startOffset:100*this.locationOnPath+"%"}))}if(z["h"](l)){this.horizontalCenter="none",this.verticalCenter="none",t=et["h"](t,-180,180);var d=this.bbox.width,c=this.bbox.height,p=this.pixelPaddingBottom,f=this.pixelPaddingTop,g=this.pixelPaddingLeft,m=this.pixelPaddingRight;t>90||t<-90?-90==l&&(l=90,d=0):(-90==l&&(c=-c),90==l&&(l=-90,d=-g-m,c=-c-f-p)),this.rotation=l+t+90;var y=et["F"](l)/2,v=et["g"](l)/2,x=this.rotation;this.dx=c*y*et["F"](x)-d*v*et["g"](x),this.dy=-c*y*et["g"](x)-d*v*et["F"](x),this.inside?t>90||t<-90?h-=(p+f)*et["g"](l)+(g+m)*et["F"](l):h+=(p+this.bbox.height+f)*et["g"](l)+(g+m+this.bbox.width)*et["F"](l):h+=(c+p+f)*et["g"](l)+(d+g+m)*et["F"](l),n.x+=et["g"](t)*h,n.y+=et["F"](t)*h*i/e}else this.horizontalCenter="middle",this.verticalCenter="middle",r?(this.dx=0,this.dy=0,n.x=(e+h)*et["g"](t),n.y=(i+h*i/e)*et["F"](t)):(this.dy=this._measuredHeight/2*et["F"](t),this.dx=this._measuredWidth/2*et["g"](t),n.x+=et["g"](t)*h,n.y+=et["F"](t)*h*i/e);n.x+=a,n.y+=s,this.fdx=this.dx,this.fdy=this.dy,this.moveTo(n)},e}(kt);T["b"].registeredClasses["AxisLabelCircular"]=ce;var pe=function(t){function e(){var e=t.call(this)||this;return e.pixelRadiusReal=0,e.layout="none",e.className="AxisRendererCircular",e.isMeasured=!1,e.startAngle=-90,e.endAngle=270,e.useChartAngles=!0,e.radius=Object(Y["c"])(100),e.isMeasured=!1,e.grid.template.location=0,e.labels.template.location=0,e.labels.template.radius=15,e.ticks.template.location=0,e.ticks.template.pixelPerfect=!1,e.tooltipLocation=0,e.line.strokeOpacity=0,e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.setAxis=function(e){var i=this;t.prototype.setAxis.call(this,e),e.isMeasured=!1;var a=e.tooltip;a.adapter.add("dx",(function(t,e){var a=tt["O"]({x:e.pixelX,y:e.pixelY},i);return i.pixelRadius*Math.cos(Math.atan2(a.y,a.x))-a.x})),a.adapter.add("dy",(function(t,e){var a=tt["O"]({x:e.pixelX,y:e.pixelY},i);return i.pixelRadius*Math.sin(Math.atan2(a.y,a.x))-a.y}))},e.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},Object.defineProperty(e.prototype,"axisLength",{get:function(){return 2*Math.PI*this.pixelRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return tt["D"](this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){var t=this.chart,e=this.getPropertyValue("innerRadius");if(t){if(z["d"](e)){if(e instanceof Y["a"]&&t){var i=t.mr,a=e.value;a=Math.max(i*a,i-Math.min(t.plotContainer.innerHeight,t.plotContainer.innerWidth))/i,e=Object(Y["c"])(100*a)}}else e=t.innerRadius,e instanceof Y["a"]&&t&&(e=Object(Y["c"])(e.value*t.innerRadiusModifyer*100));return e}},set:function(t){this.setPercentProperty("innerRadius",t,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useChartAngles",{get:function(){return this.getPropertyValue("useChartAngles")},set:function(t){this.setPropertyValue("useChartAngles",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return tt["D"](this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){z["h"](e)||(e=1);var i=this.positionToCoordinate(t),a=this.startAngle+(this.endAngle-this.startAngle)*i/this.axisLength,s=this.pixelRadius,n=this.pixelInnerRadius;if(this.axisRendererY){var r=et["i"](this.axisRendererY.positionToCoordinate(e),0,1/0),o={x:r*et["g"](a),y:r*et["F"](a)};return o}return{x:et["g"](a)*n+(s-n)*et["g"](a)*e,y:et["F"](a)*n+(s-n)*et["F"](a)*e}},e.prototype.positionToAngle=function(t){var e,i=this.axis,a=(this.endAngle-this.startAngle)/(i.end-i.start);return e=i.renderer.inversed?this.startAngle+(i.end-t)*a:this.startAngle+(t-i.start)*a,et["E"](e,3)},e.prototype.angleToPosition=function(t){var e,i=this.axis,a=(this.endAngle-this.startAngle)/(i.end-i.start);return e=i.renderer.inversed?i.end-(t-this.startAngle)/a:(t-this.startAngle)/a+i.start,et["E"](e,5)},e.prototype.updateAxisLine=function(){var t=this.pixelRadius,e=this.startAngle,i=this.endAngle,a=et["C"](360,i-e);this.line.path=B["g"]({x:t*et["g"](e),y:t*et["F"](e)})+B["b"](e,a,t,t)},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var a=this.positionToPoint(e);if(z["h"](a.x)&&z["h"](a.y)&&t.element){var s=et["a"]*Math.atan2(a.y,a.x),n=tt["D"](z["d"](t.radius)?t.radius:Object(Y["c"])(100),this.pixelRadius),r=tt["D"](t.innerRadius,this.pixelRadius);t.zIndex=0;var o=tt["D"](z["h"](r)?r:this.innerRadius,this.pixelRadiusReal,!0);z["h"](o)||(o=0),t.path=B["g"]({x:o*et["g"](s),y:o*et["F"](s)})+B["f"]({x:n*et["g"](s),y:n*et["F"](s)})}this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var a=this.positionToPoint(e);if(t.element){var s=this.pixelRadius,n=et["a"]*Math.atan2(a.y,a.x),r=t.length;t.inside&&(r=-r),t.zIndex=1,t.path=B["g"]({x:s*et["g"](n),y:s*et["F"](n)})+B["f"]({x:(s+r)*et["g"](n),y:(s+r)*et["F"](n)})}this.toggleVisibility(t,e,0,1)},e.prototype.updateBullet=function(t,e,i){var a=.5;t instanceof wt&&(a=t.location),e+=(i-e)*a;var s=this.positionToPoint(e),n=this.pixelRadius,r=et["a"]*Math.atan2(s.y,s.x);s={x:n*et["g"](r),y:n*et["F"](r)},this.positionItem(t,s),this.toggleVisibility(t,e,0,1)},e.prototype.updateLabelElement=function(t,e,i,a){z["d"](a)||(a=t.location),e+=(i-e)*a,t.fixPosition(this.positionToAngle(e),this.pixelRadius),t.zIndex=2,this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},e.prototype.fitsToBounds=function(t){return!0},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),e.prototype.getPositionRangePath=function(t,e,i,a,s){var n="";if(z["h"](t)&&z["h"](e)){z["d"](i)||(i=this.radius),t=et["B"](t,this.axis.start),e=et["C"](e,this.axis.end),e<t&&(e=t);var r=tt["D"](i,this.pixelRadius),o=tt["D"](a,this.pixelRadius,!0),l=this.positionToAngle(t),h=this.positionToAngle(e),u=h-l;n=B["a"](l,u,r,o,r,s)}return n},e.prototype.createGrid=function(){return new de},e.prototype.createFill=function(t){return new ue(t)},e.prototype.createLabel=function(){return new ce},e.prototype.pointToPosition=function(t){var e=et["h"](et["j"](t),this.startAngle,this.endAngle);return this.coordinateToPosition((e-this.startAngle)/360*this.axisLength)},e}(St);T["b"].registeredClasses["AxisRendererCircular"]=pe;var fe=i("6cf6"),ge=function(t){function e(){var e=t.call(this)||this;return e._chart=new j["d"],e.pixelRadiusReal=0,e.className="AxisRendererRadial",e.isMeasured=!1,e.startAngle=-90,e.endAngle=270,e.minGridDistance=30,e.gridType="circles",e.axisAngle=-90,e.isMeasured=!1,e.layout="none",e.radius=Object(Y["c"])(100),e.line.strokeOpacity=0,e.labels.template.horizontalCenter="middle",e._disposers.push(e._chart),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},Object.defineProperty(e.prototype,"axisLength",{get:function(){return this.pixelRadius-this.pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return tt["D"](this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){var t=this.chart,e=this.getPropertyValue("innerRadius");if(t)if(z["d"](e)){if(e instanceof Y["a"]&&t){var i=t.mr,a=e.value;a=Math.max(i*a,i-Math.min(t.plotContainer.innerHeight,t.plotContainer.innerWidth))/i,e=Object(Y["c"])(100*a)}}else e=t.innerRadius,e instanceof Y["a"]&&t&&(e=Object(Y["c"])(e.value*t.innerRadiusModifyer*100));return e},set:function(t){this.setPercentProperty("innerRadius",t,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return tt["D"](this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){var i=et["i"](this.positionToCoordinate(t),0,1/0);return{x:i*et["g"](this.axisAngle),y:i*et["F"](this.axisAngle)}},e.prototype.updateAxisLine=function(){this.line.path=B["g"]({x:this.pixelInnerRadius*et["g"](this.axisAngle),y:this.pixelInnerRadius*et["F"](this.axisAngle)})+B["f"]({x:this.pixelRadius*et["g"](this.axisAngle),y:this.pixelRadius*et["F"](this.axisAngle)});var t=this.axis.title;t.valign="none",t.horizontalCenter="middle",t.verticalCenter="bottom",t.y=-this.axisLength/2;var e=90;this.opposite?this.inside||(e=-90):this.inside&&(e=-90),t.rotation=e},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var a,s=this.positionToPoint(e),n=et["q"](s),r=this.startAngle,o=this.endAngle,l=this.chart;if(z["h"](n)&&t.element&&l){var h=l.xAxes.getIndex(0),u=0,d=l.series.getIndex(0);if(d&&(u=d.dataItems.length),"polygons"==this.gridType&&u>0&&d&&h&&h instanceof Ht){var c=h.renderer.grid.template.location,p=h.getAngle(d.dataItems.getIndex(0),"categoryX",c);a=B["g"]({x:n*et["g"](p),y:n*et["F"](p)});for(var f=1;f<u;f++)p=h.getAngle(d.dataItems.getIndex(f),"categoryX",c),a+=B["f"]({x:n*et["g"](p),y:n*et["F"](p)});p=h.getAngle(d.dataItems.getIndex(u-1),"categoryX",h.renderer.cellEndLocation),a+=B["f"]({x:n*et["g"](p),y:n*et["F"](p)})}else a=B["g"]({x:n*et["g"](r),y:n*et["F"](r)})+B["b"](r,o-r,n,n);t.path=a}this.toggleVisibility(t,e,0,1)},e.prototype.updateLabelElement=function(t,e,i,a){z["d"](a)||(a=t.location),e+=(i-e)*a;var s=this.positionToPoint(e);this.positionItem(t,s),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},e.prototype.updateBaseGridElement=function(){},e.prototype.fitsToBounds=function(t){return!0},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t)&&this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t)&&this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisAngle",{get:function(){return this.getPropertyValue("axisAngle")},set:function(t){this.setPropertyValue("axisAngle",et["D"](t)),this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridType",{get:function(){var t=this.chart.xAxes.getIndex(0);return t instanceof Ht?this.getPropertyValue("gridType"):"circles"},set:function(t){this.setPropertyValue("gridType",t,!0)},enumerable:!0,configurable:!0}),e.prototype.getPositionRangePath=function(t,e){var i,a=this.pixelInnerRadius,s=this.axisLength+a,n=et["i"](this.positionToCoordinate(t),a,s),r=et["i"](this.positionToCoordinate(e),a,s),o=this.startAngle,l=this.endAngle,h=l-o,u=this.chart,d=u.xAxes.getIndex(0),c=u.series.getIndex(0),p=0;if(c&&(p=c.dataItems.length),"polygons"==this.gridType&&p>0&&c&&d&&d instanceof Ht){var f=d.renderer.grid.template.location,g=d.getAngle(c.dataItems.getIndex(0),"categoryX",f);i=B["g"]({x:r*et["g"](g),y:r*et["F"](g)});for(var m=1;m<p;m++)g=d.getAngle(c.dataItems.getIndex(m),"categoryX",f),i+=B["f"]({x:r*et["g"](g),y:r*et["F"](g)});g=d.getAngle(c.dataItems.getIndex(p-1),"categoryX",d.renderer.cellEndLocation),i+=B["f"]({x:r*et["g"](g),y:r*et["F"](g)}),i+=B["g"]({x:n*et["g"](g),y:n*et["F"](g)});for(m=p-1;m>=0;m--)g=d.getAngle(c.dataItems.getIndex(m),"categoryX",f),i+=B["f"]({x:n*et["g"](g),y:n*et["F"](g)})}else i=B["a"](o,h,r,n);return i},e.prototype.updateBreakElement=function(t){var e=t.startLine,i=t.endLine,a=t.fillShape,s=t.startPoint,n=t.endPoint;e.radius=Math.abs(s.y),i.radius=Math.abs(n.y),a.radius=Math.abs(n.y),a.innerRadius=Math.abs(s.y)},e.prototype.createBreakSprites=function(t){t.startLine=new fe["a"],t.endLine=new fe["a"],t.fillShape=new fe["a"]},e.prototype.updateTooltip=function(){var t=this.axis;if(t){var e=4e3,i=-4e3,a=-4e3,s=2*e,n=2*e,r=this.axisAngle;r<0&&(r+=360);var o="vertical";(r>45&&r<135||r>225&&r<315)&&(o="horizontal"),this.axis.updateTooltip(o,{x:i,y:a,width:s,height:n})}},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var a=this.positionToPoint(e);if(t.element){var s=et["D"](this.axisAngle+90);s/90!=Math.round(s/90)?t.pixelPerfect=!1:t.pixelPerfect=!0;var n=-t.length;t.inside&&(n*=-1),t.path=B["g"]({x:0,y:0})+B["f"]({x:n*et["g"](s),y:n*et["F"](s)})}this.positionItem(t,a),this.toggleVisibility(t,e,0,1)},e.prototype.updateBullet=function(t,e,i){var a=.5;t instanceof wt&&(a=t.location),e+=(i-e)*a;var s=this.positionToPoint(e);this.positionItem(t,s),this.toggleVisibility(t,e,0,1)},e.prototype.positionToCoordinate=function(t){var e,i=this.axis,a=i.axisFullLength,s=this.pixelInnerRadius;return e=i.renderer.inversed?(i.end-t)*a+s:(t-i.start)*a+s,et["E"](e,1)},e.prototype.pointToPosition=function(t){var e=et["q"](t)-this.pixelInnerRadius;return this.coordinateToPosition(e)},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.set(t,null)},enumerable:!0,configurable:!0}),e}(Ft);T["b"].registeredClasses["AxisRendererRadial"]=ge;var me=function(t){function e(){var e=t.call(this)||this;return e.className="RadarChartDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(Jt),ye=function(t){function e(){var e=t.call(this)||this;e._axisRendererX=pe,e._axisRendererY=ge,e.innerRadiusModifyer=1,e.mr=1,e.className="RadarChart",e.startAngle=-90,e.endAngle=270,e.radius=Object(Y["c"])(80),e.innerRadius=0;var i=e.plotContainer.createChild(F["a"]);return i.shouldClone=!1,i.layout="absolute",i.align="center",i.valign="middle",e.seriesContainer.parent=i,e.radarContainer=i,e.bulletsContainer.parent=i,e.axisBulletsContainer=i,e._cursorContainer=i,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e._bulletMask=i.createChild(he["a"]),e._bulletMask.shouldClone=!1,e._bulletMask.element=e.paper.add("path"),e._bulletMask.opacity=0,e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Radar chart"))},e.prototype.processAxis=function(e){t.prototype.processAxis.call(this,e);var i=e.renderer;i.gridContainer.parent=i,i.breakContainer.parent=i,e.parent=this.radarContainer,i.toBack()},e.prototype.handleXAxisRangeChange=function(){t.prototype.handleXAxisRangeChange.call(this),N["d"](this.yAxes.iterator(),(function(t){t.invalidate()}))},e.prototype.handleYAxisRangeChange=function(){t.prototype.handleYAxisRangeChange.call(this),N["d"](this.xAxes.iterator(),(function(t){t.invalidate()}))},e.prototype.processConfig=function(e){if(e&&(z["d"](e.cursor)&&!z["d"](e.cursor.type)&&(e.cursor.type="RadarCursor"),z["d"](e.series)&&z["e"](e.series)))for(var i=0,a=e.series.length;i<a;i++)e.series[i].type=e.series[i].type||"RadarSeries";t.prototype.processConfig.call(this,e)},e.prototype.beforeDraw=function(){t.prototype.beforeDraw.call(this);var e=this.plotContainer,i=et["k"](this.startAngle,this.endAngle,1),a={x:0,y:0,width:0,height:0},s=e.innerWidth/i.width,n=e.innerHeight/i.height,r=this.innerRadius;if(r instanceof Y["a"]){var o=r.value,l=Math.min(s,n);this.mr=l,o=Math.max(l*o,l-Math.min(e.innerHeight,e.innerWidth))/l,a=et["k"](this.startAngle,this.endAngle,o),this.innerRadiusModifyer=o/r.value,r=Object(Y["c"])(100*o)}i=et["m"]([i,a]);var h=Math.min(e.innerWidth/i.width,e.innerHeight/i.height),u=2*tt["D"](this.radius,h)||0,d=u/2,c=this.startAngle,p=this.endAngle;this._pixelInnerRadius=tt["D"](r,d),this._bulletMask.path=B["a"](c,p-c,d,this._pixelInnerRadius),N["d"](this.xAxes.iterator(),(function(t){t.renderer.useChartAngles&&(t.renderer.startAngle=c,t.renderer.endAngle=p),t.width=u,t.height=u,t.renderer.pixelRadiusReal=d})),N["d"](this.yAxes.iterator(),(function(t){t.renderer.startAngle=c,t.renderer.endAngle=p,t.width=u,t.height=u,t.renderer.pixelRadiusReal=d}));var f=this.cursor;f&&(f.width=u,f.height=u,f.startAngle=c,f.endAngle=p),this.radarContainer.definedBBox={x:d*i.x,y:d*i.y,width:d*i.width,height:d*i.height},this.radarContainer.validatePosition()},e.prototype.createSeries=function(){return new le},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),e.prototype.updateXAxis=function(t){t&&t.processRenderer()},e.prototype.updateYAxis=function(t){t&&t.processRenderer()},e}($t);T["b"].registeredClasses["RadarChart"]=ye;var ve=i("6890"),xe=function(t){function e(){var e=t.call(this)||this;e._axis=new j["d"],e.className="ClockHand";var i=new X["a"];e.fill=i.getFor("alternativeBackground"),e.stroke=e.fill;var a=new he["a"];a.radius=5,e.pin=a,e.isMeasured=!1,e.startWidth=5,e.endWidth=1,e.width=Object(Y["c"])(100),e.height=Object(Y["c"])(100),e.radius=Object(Y["c"])(100),e.innerRadius=Object(Y["c"])(0);var s=new ve["a"];return e.hand=s,e._disposers.push(e._axis),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.validate=function(){t.prototype.validate.call(this);var e=this.hand;e.width=this.pixelWidth;var i=Math.max(this.startWidth,this.endWidth);if(e.height=i,e.leftSide=Object(Y["c"])(this.startWidth/i*100),e.rightSide=Object(Y["c"])(this.endWidth/i*100),this.axis){var a=this.axis.renderer,s=tt["D"](this.innerRadius,a.pixelRadius),n=tt["D"](this.radius,a.pixelRadius);e.x=s,e.y=-i/2,e.width=n-s}},Object.defineProperty(e.prototype,"pin",{get:function(){return this._pin},set:function(t){this._pin&&this.removeDispose(this._pin),t&&(this._pin=t,t.parent=this,this._disposers.push(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hand",{get:function(){return this._hand},set:function(t){this._hand&&this.removeDispose(this._hand),t&&(this._hand=t,t.parent=this,this._disposers.push(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startWidth",{get:function(){return this.getPropertyValue("startWidth")},set:function(t){this.setPropertyValue("startWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endWidth",{get:function(){return this.getPropertyValue("endWidth")},set:function(t){this.setPropertyValue("endWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationDirection",{get:function(){return this.getPropertyValue("rotationDirection")},set:function(t){this.setPropertyValue("rotationDirection",t)},enumerable:!0,configurable:!0}),e.prototype.showValue=function(t,e,i){if(this._value=t,void 0!=t&&(z["h"](e)||(e=0),this.axis)){var a=this.axis.renderer,s=a.positionToAngle(this.axis.anyToPosition(t)),n=this.rotation;"clockWise"==this.rotationDirection&&s<n&&(this.rotation=n-360),"counterClockWise"==this.rotationDirection&&s>n&&(this.rotation=n+360),this.animate({property:"rotation",to:s},e,i)}},Object.defineProperty(e.prototype,"currentPosition",{get:function(){if(this.axis){var t=this.axis.renderer;return t.angleToPosition(this.rotation)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){this.showValue(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis.get()},set:function(t){if(this.axis!=t&&this._axis.set(t,new j["c"]([t.events.on("datavalidated",this.updateValue,this,!1),t.events.on("datarangechanged",this.updateValue,this,!1),t.events.on("dataitemsvalidated",this.updateValue,this,!1),t.events.on("propertychanged",this.invalidate,this,!1)])),t){var e=t.chart;e&&(this.rotation=e.startAngle)}this.parent=t.renderer,this.zIndex=5},enumerable:!0,configurable:!0}),e.prototype.updateValue=function(){this.value=this.value},e.prototype.processConfig=function(e){e&&z["d"](e.axis)&&z["j"](e.axis)&&this.map.hasKey(e.axis)&&(e.axis=this.map.getKey(e.axis)),t.prototype.processConfig.call(this,e)},e}(F["a"]);T["b"].registeredClasses["ClockHand"]=xe;(function(t){function e(){var e=t.call(this)||this;return e.className="GaugeChartDataItem",e.applyTheme(),e}Object(V["c"])(e,t)})(me);var be=function(t){function e(){var e=t.call(this)||this;return e.className="GaugeChart",e.startAngle=180,e.endAngle=360,e.hands=new w["c"](new xe),e.hands.events.on("inserted",e.processHand,e,!1),e._disposers.push(new w["b"](e.hands)),e._disposers.push(e.hands.template),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Gauge chart"))},e.prototype.processHand=function(t){var e=t.newValue;e.axis||(e.axis=this.xAxes.getIndex(0))},e.prototype.configOrder=function(e,i){return e==i?0:"hands"==e?1:"hands"==i?-1:t.prototype.configOrder.call(this,e,i)},e}(ye);T["b"].registeredClasses["GaugeChart"]=be;var _e=function(t){function e(){var e=t.call(this)||this;return e.className="PercentSeriesDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.uidAttr=function(){return this.slice.uidAttr()},e.prototype.hide=function(e,i,a,s){return s||(s=["value"]),t.prototype.hide.call(this,e,i,0,s)},e.prototype.setVisibility=function(e,i){i||(e?this.setWorkingValue("value",this.values["value"].value,0,0):this.setWorkingValue("value",0,0,0)),t.prototype.setVisibility.call(this,e,i)},e.prototype.show=function(e,i,a){return a||(a=["value"]),t.prototype.show.call(this,e,i,a)},Object.defineProperty(e.prototype,"category",{get:function(){return this.properties.category},set:function(t){this.setProperty("category",t)},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){this.component.createLegendMarker(t,this)},Object.defineProperty(e.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,t.label&&(t.label.dataItem=this),t.valueLabel&&(t.valueLabel.dataItem=this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){var t=this;if(!this._tick){var e=this.component.ticks.create();this._tick=e,this.addSprite(e),this._disposers.push(e),e.parent=this.component.ticksContainer,this._disposers.push(new j["b"]((function(){t.component&&t.component.ticks.removeValue(e)}))),e.visible=this.visible}return this._tick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){var t=this;if(!this._label){var e=this.component.labels.create();this.addSprite(e),this._label=e,this._disposers.push(e),e.parent=this.component.labelsContainer,this._disposers.push(new j["b"]((function(){t.component&&t.component.labels.removeValue(e)}))),e.visible=this.visible}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"slice",{get:function(){var t=this;if(!this._slice){var e=this.component,i=e.slices.create();this.addSprite(i),this._slice=i,this._disposers.push(i),i.parent=e.slicesContainer,this._disposers.push(new j["b"]((function(){e.slices.removeValue(i)}))),i.visible=this.visible,e.itemsFocusable()?(z["d"](this.component.role)||(this.component.role="menu"),z["d"](i.role)||(i.role="menuitem"),i.focusable=!0):(z["d"](this.component.role)||(this.component.role="list"),z["d"](i.role)||(i.role="listitem"),i.focusable=!1),i.focusable&&(i.events.on("focus",(function(a){i.readerTitle=e.populateString(e.itemReaderText,t)}),void 0,!1),i.events.on("blur",(function(t){i.readerTitle=""}),void 0,!1)),i.hoverable&&(i.events.on("over",(function(a){i.readerTitle=e.populateString(e.itemReaderText,t)}),void 0,!1),i.events.on("out",(function(t){i.readerTitle=""}),void 0,!1))}return this._slice},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hiddenInLegend",{get:function(){return this.properties.hiddenInLegend},set:function(t){this.setProperty("hiddenInLegend",t)},enumerable:!0,configurable:!0}),e}(pt),Pe=function(t){function e(){var e=t.call(this)||this;e.className="PercentSeries",e._addAllDataItems=!1,e.colors=new gt["a"],e.colors.step=1,e.isMeasured=!0,e.calculatePercent=!0;var i=e.createChild(F["a"]);i.shouldClone=!1,i.isMeasured=!1,e.slicesContainer=i;var a=e.createChild(F["a"]);a.shouldClone=!1,a.isMeasured=!1,a.layout="none",e.ticksContainer=a;var s=e.createChild(F["a"]);s.shouldClone=!1,s.isMeasured=!1,s.layout="none",e.labelsContainer=s,e.alignLabels=!1,e.bulletsContainer.toFront(),e.skipFocusThreshold=50;var n=e.defaultState;return n.transitionEasing=ht["e"],e.itemReaderText="{category}: {value.percent.formatNumber('#.#')}%",e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.createSlice=function(){return new R["a"]},e.prototype.createTick=function(){return new Vt},e.prototype.createLabel=function(){return new L["a"]},Object.defineProperty(e.prototype,"slices",{get:function(){if(!this._slices){var t=this.createSlice();t.applyOnClones=!0,this._disposers.push(t),this.initSlice(t),this._slices=new w["c"](t),this._disposers.push(new w["b"](this._slices))}return this._slices},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ticks",{get:function(){if(!this._ticks){var t=this.createTick();t.applyOnClones=!0,this._disposers.push(t),this.initTick(t),this._ticks=new w["c"](t),this._disposers.push(new w["b"](this._ticks))}return this._ticks},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labels",{get:function(){if(!this._labels){var t=this.createLabel();t.applyOnClones=!0,this._disposers.push(t),this.initLabel(t),this._labels=new w["c"](t),this._disposers.push(new w["b"](this._labels))}return this._labels},enumerable:!0,configurable:!0}),e.prototype.createDataItem=function(){return new _e},e.prototype.initSlice=function(t){},e.prototype.initLabel=function(t){t.text="{category}: {value.percent.formatNumber('#.0')}%",t.isMeasured=!1,t.padding(5,5,5,5)},e.prototype.initTick=function(t){},e.prototype.validateDataItems=function(){this.colors.reset(),this.patterns&&this.patterns.reset(),t.prototype.validateDataItems.call(this)},e.prototype.validateDataElement=function(e){var i=e.slice;i&&(void 0==i.fill?this.patterns?(z["d"](i.stroke)||(i.stroke=this.colors.next()),i.fill=this.patterns.next(),z["d"](i.fillOpacity)&&(i.fill.backgroundOpacity=i.fillOpacity),i.stroke instanceof lt["a"]&&(i.fill.stroke=i.stroke,i.fill.fill=i.stroke)):i.fill=this.colors.next():this.colors.currentStep+=this.colors.step,void 0==i.stroke&&(i.stroke=i.fill)),t.prototype.validateDataElement.call(this,e),i&&e.bullets.each((function(t,e){void 0==e.fill&&(e.fill=i.fill),void 0==e.stroke&&(e.stroke=i.stroke)})),this.updateLegendValue(e)},e.prototype.validateData=function(){t.prototype.validateData.call(this),this.chart&&this.chart.feedLegend()},e.prototype.arrangeLabels=function(t){for(var e=0,i=t.length;e<i;e++){var a=t[e],s=a.label;if(s){s.invalid&&s.validate();var n=s.measuredHeight;s.visible||(n=0),s.pixelY-n/2<-this.maxHeight/2&&(s.y=-this.maxHeight/2+n/2);var r=this.getNextLabel(e+1,t),o=s.pixelY+n;r&&r.y<o&&(r.y=o)}}},e.prototype.arrangeLabels2=function(t){for(var e=this.maxHeight/2,i=t.length-1;i>=0;i--){var a=t[i],s=a.label;if(s){s.invalid&&s.validate();var n=s.measuredHeight;s.visible||(n=0),i==t.length-1&&(e+=n/2),s.pixelY+n>e&&(s.y=e-n,e=s.y)}}},e.prototype.getNextLabel=function(t,e){if(e.length>=t){var i=e[t];if(i)return i.label&&i.visible?i.label:this.getNextLabel(t+1,e)}},Object.defineProperty(e.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(t){this.setPropertyValue("colors",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(t){this.setPropertyValue("patterns",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t,e){N["d"](t.children.iterator(),(function(i){var a=e.slice;i.defaultState.properties.fill=a.fill,i.defaultState.properties.stroke=a.stroke,i.defaultState.properties.fillOpacity=a.fillOpacity,i.defaultState.properties.strokeOpacity=a.strokeOpacity,i.fill=a.fill,i.stroke=a.stroke,i.fillOpacity=a.fillOpacity,i.strokeOpacity=a.strokeOpacity,void 0==i.fill&&(i.__disabled=!0);var s=t.dataItem;s.color=a.fill,s.colorOrig=a.fill,i.addDisposer(a.events.on("propertychanged",(function(t){"fill"==t.property&&(i.__disabled=!1,i.isActive||(i.fill=a.fill),i.defaultState.properties.fill=a.fill,s.color=a.fill,s.colorOrig=a.fill),"stroke"==t.property&&(i.isActive||(i.stroke=a.stroke),i.defaultState.properties.stroke=a.stroke)}),void 0,!1))}))},e.prototype.handleSliceScale=function(t){var e=this,i=t.target,a=i.dataItem;N["d"](a.bullets.iterator(),(function(t){var i=t[1];e.positionBullet(i)}))},e.prototype.handleSliceMove=function(t){},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.slices.template.copyFrom(e.slices.template),this.labels.template.copyFrom(e.labels.template),this.ticks.template.copyFrom(e.ticks.template),this.colors=e.colors.clone()},Object.defineProperty(e.prototype,"alignLabels",{get:function(){return this.getPropertyValue("alignLabels")},set:function(t){this.setAlignLabels(t)},enumerable:!0,configurable:!0}),e.prototype.setAlignLabels=function(t){this.setPropertyValue("alignLabels",t,!0)},Object.defineProperty(e.prototype,"ignoreZeroValues",{get:function(){return this.getPropertyValue("ignoreZeroValues")},set:function(t){this.setPropertyValue("ignoreZeroValues",t,!0)},enumerable:!0,configurable:!0}),e.prototype.updateLegendValue=function(t){if(t){var e=t.legendDataItem,i=t.legendSettings;e&&i&&i&&(i.labelText&&(e.label.text=i.labelText),i.itemLabelText&&(e.label.text=i.itemLabelText),i.valueText&&(e.valueLabel.text=i.valueText),i.itemValueText&&(e.valueLabel.text=i.itemValueText))}},e}(ft);T["b"].registeredClasses["PercentSeries"]=Pe,T["b"].registeredClasses["PercentSeriesDataItem"]=_e,H["c"].push({relevant:H["b"].maybeXS,state:function(t,e){if(t instanceof Pe){var i=t.states.create(e),a=t.labels.template.states.create(e);a.properties.disabled=!0;var s=t.ticks.template.states.create(e);return s.properties.disabled=!0,i}return null}});var Ce=function(t){function e(){var e=t.call(this)||this;return e.className="PercentChartDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(mt),Ie=function(t){function e(){var e=t.call(this)||this;return e.className="PercentChart",e.align="none",e.valign="none",e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.validateData=function(){t.prototype.validateData.call(this),this.feedLegend()},e.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];N["d"](this.series.iterator(),(function(t){t.hiddenInLegend||N["d"](t.dataItems.iterator(),(function(i){i.hiddenInLegend||(e.push(i),i.legendSettings||(i.legendSettings=t.legendSettings))}))})),t.data=e,t.dataFields.name="category"}},e.prototype.createSeries=function(){return new Pe},e.prototype.setLegend=function(e){t.prototype.setLegend.call(this,e),e&&(e.labels.template.text="{category}",e.valueLabels.template.text="{value.percent.formatNumber('#.0')}%",e.itemContainers.template.events.on("over",(function(t){var e=t.target.dataItem.dataContext;if(e.visible&&!e.isHiding){var i=e.slice;i.dispatchImmediately("over"),i.isHover=!0,i.interactions.isRealHover=!0}})),e.itemContainers.template.events.on("out",(function(t){var e=t.target.dataItem.dataContext,i=e.slice;i.dispatchImmediately("out"),i.isHover=!1})))},e}(yt);T["b"].registeredClasses["PercentChart"]=Ie,T["b"].registeredClasses["PercentChartDataItem"]=Ce;var Ae=i("82ff"),Oe=function(t){function e(){var e=t.call(this)||this;return e._label=new j["d"],e._slice=new j["d"],e.className="PieTick",e.element=e.paper.add("polyline"),e._disposers.push(e._label),e._disposers.push(e._slice),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.slice,i=this.label,a=e.dataItem.component;if(e&&e.radius>0&&i&&i.text){var s=e.dx+e.slice.dx+e.pixelX+e.ix*e.radius*e.scale,n=e.dy+e.slice.dy+e.pixelY+e.iy*e.radiusY*e.scale,r=void 0,o=void 0,l=void 0,h=void 0;if(a.alignLabels)r=i.pixelX-this.length,o=i.pixelY,l=i.pixelX,h=o,"right"==i.horizontalCenter&&(r+=2*this.length,l=r-this.length);else{var u=i.pixelRadius(e.radius);r=s+u*e.ix,o=n+u*e.iy,l=r,h=o}this.element.attr({points:[s,n,r,o,l,h]})}},Object.defineProperty(e.prototype,"slice",{get:function(){return this._slice.get()},set:function(t){this._slice.set(t,new j["c"]([t.events.on("transformed",this.invalidate,this),t.events.on("validated",this.invalidate,this)]))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label.get()},set:function(t){this._label.set(t,t.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),e}(Vt);T["b"].registeredClasses["PieTick"]=Oe;var De=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeriesDataItem",e.values.radiusValue={},e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"radiusValue",{get:function(){return this.values.radiusValue.value},set:function(t){this.setValue("radiusValue",t)},enumerable:!0,configurable:!0}),e.prototype.hide=function(e,i,a,s){return t.prototype.hide.call(this,e,i,0,["value","radiusValue"])},e.prototype.show=function(e,i,a){return t.prototype.show.call(this,e,i,["value","radiusValue"])},e}(_e),ke=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeries",e.alignLabels=!0,e.layout="none",e.labels.template.radius=Object(Y["c"])(5),e.addDisposer(e.labels.template.events.on("enabled",e.invalidate,e,!1)),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.createSlice=function(){return new Ae["a"]},e.prototype.createTick=function(){return new Oe},e.prototype.createLabel=function(){return new ce},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Pie Slice Series"))},e.prototype.createDataItem=function(){return new De},e.prototype.initSlice=function(t){t.isMeasured=!1,t.defaultState.properties.scale=1,t.observe("scale",this.handleSliceScale,this),t.observe(["dx","dy","x","y","shiftRadius"],this.handleSliceMove,this),t.tooltipText="{category}: {value.percent.formatNumber('#.#')}% ({value.value})";var e=t.states.create("hover");e.properties.scale=1.05;var i=t.defaultState;i.properties.shiftRadius=0,t.togglable=!0,t.events.on("toggled",(function(t){t.target.hideTooltip(),t.target.interactions.lastHitPointer&&t.target.interactions.lastHitPointer.touch&&!t.target.isActive&&(t.target.isHover=!1)}));var a=t.states.create("active");a.properties.shiftRadius=.1},e.prototype.validate=function(){this._leftItems=[],this._rightItems=[],this._currentStartAngle=this.startAngle,this._arcRect=et["k"](this.startAngle,this.endAngle),this._maxRadiusPercent=0;for(var e=this.startIndex;e<this.endIndex;e++){var i=this.dataItems.getIndex(e),a=i.values.radiusValue.percent;a>this._maxRadiusPercent&&(this._maxRadiusPercent=a)}t.prototype.validate.call(this),this.alignLabels&&(this.startAngle>this.endAngle?this._rightItems.reverse():this._leftItems.reverse(),this._rightItems.sort((function(t,e){var i=(t.slice.middleAngle+360)%360,a=(e.slice.middleAngle+360)%360;return i>270&&(i-=360),a>270&&(a-=360),i<a?-1:i>a?1:0})),this._leftItems.sort((function(t,e){var i=(t.slice.middleAngle+360)%360,a=(e.slice.middleAngle+360)%360;return i<a?1:i>a?-1:0})),this.arrangeLabels(this._rightItems),this.arrangeLabels2(this._rightItems),this.arrangeLabels(this._leftItems),this.arrangeLabels2(this._leftItems))},e.prototype.validateDataElement=function(e){if(this.pixelRadius>0){!this.ignoreZeroValues||0!=e.value&&null!=e.value?e.__disabled=!1:e.__disabled=!0;var i=e.slice;if(i.radius=this.pixelRadius,z["h"](e.radiusValue)&&(i.radius=this.pixelInnerRadius+(this.pixelRadius-this.pixelInnerRadius)*e.values.radiusValue.percent/this._maxRadiusPercent),i.innerRadius instanceof Y["a"]||(i.innerRadius=this.pixelInnerRadius),i.startAngle=this._currentStartAngle,i.arc=Math.abs(e.values.value.percent)*(this.endAngle-this.startAngle)/100,!this.labels.template.disabled){var a=e.label,s=e.tick;s.slice=i,s.label=a;var n=(i.middleAngle+360)%360,r=void 0;if(this.alignLabels){var o=a.pixelRadius(i.radius),l=s.length+o;a.dx=0,a.dy=0,a.verticalCenter="middle";var h=this._arcRect;n>270||n<=90?(l+=(h.width+h.x)*this.pixelRadius,a.horizontalCenter="left",this._rightItems.push(e)):(l-=h.x*this.pixelRadius,a.horizontalCenter="right",this._leftItems.push(e),l*=-1);var u=i.radius+s.length+o;r={x:l,y:i.iy*u},a.moveTo(r)}else{var d=i["depth"];z["h"](d)||(d=0),a.fixPosition(i.middleAngle,i.radius,i.radiusY,0,-d)}}this._currentStartAngle+=i.arc,t.prototype.validateDataElement.call(this,e)}},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return this._pixelRadius},set:function(t){this._pixelRadius!=t&&(this._pixelRadius=t,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},set:function(t){this._pixelInnerRadius!=t&&(this._pixelInnerRadius=t,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startAngle",{get:function(){var t=this.getPropertyValue("startAngle");return z["h"](t)?t:this._startAngleInternal},set:function(t){this.setPropertyValue("startAngle",et["D"](t),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){var t=this.getPropertyValue("endAngle");return z["h"](t)?t:this._endAngleInternal},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem,a=i.slice,s=e.locationX;z["h"](s)||(s=.5);var n=e.locationY;z["h"](n)||(n=1);var r=a.startAngle+a.arc*s;e.x=n*a.radius*et["g"](r),e.y=n*a.radiusY*et["F"](r)},e.prototype.handleSliceMove=function(t){if(!this.alignLabels){var e=t.target,i=e.dataItem;if(i){var a=i.label;a&&(a.dx=a.fdx+e.dx+e.pixelX,a.dy=a.fdy+e.dy+e.pixelY)}}},Object.defineProperty(e.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;var t=this.chart;return t?et["k"](t.startAngle,t.endAngle,this.pixelRadius):et["k"](this.startAngle,this.endAngle,this.pixelRadius)},enumerable:!0,configurable:!0}),e}(Pe);T["b"].registeredClasses["PieSeries"]=ke,T["b"].registeredClasses["PieSeriesDataItem"]=De;var Ve=function(t){function e(){var e=t.call(this)||this;return e.className="PieChartDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(Ce),Te=function(t){function e(){var e=t.call(this)||this;e.className="PieChart",e.innerRadius=0,e.radius=Object(Y["c"])(80),e.align="none",e.valign="none",e.startAngle=-90,e.endAngle=270;var i=e.seriesContainer;return i.isMeasured=!0,i.valign="middle",i.align="center",i.layout="absolute",i.width=void 0,i.height=void 0,e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.chartContainer.events.on("maxsizechanged",e.updateRadius,e,!1),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Pie chart"))},e.prototype.validateLayout=function(){t.prototype.validateLayout.call(this),this.updateRadius()},e.prototype.handleSeriesAdded=function(e){t.prototype.handleSeriesAdded.call(this,e),this._chartPixelRadius=void 0,this.updateSeriesAngles()},e.prototype.updateSeriesAngles=function(){var t=this;this.series.each((function(e){e._startAngleInternal=t.startAngle,e._endAngleInternal=t.endAngle}))},e.prototype.updateRadius=function(){var t=this.chartContainer,e=et["k"](this.startAngle,this.endAngle,1),i={x:0,y:0,width:0,height:0},a=this.innerRadius;a instanceof Y["a"]&&(i=et["k"](this.startAngle,this.endAngle,a.value)),e=et["m"]([e,i]);var s=Math.min(t.innerWidth/e.width,t.innerHeight/e.height);z["h"](s)||(s=0);var n=tt["D"](this.radius,s),r=tt["D"](this.innerRadius,s),o=(n-r)/this.series.length;n==this._chartPixelRadius&&r==this._chartPixelInnerRadius||(this._chartPixelRadius=n,this._chartPixelInnerRadius=r,N["d"](N["i"](this.series.iterator()),(function(t){var e=t[0],i=t[1],a=r+tt["D"](i.radius,n-r),s=r+tt["D"](i.innerRadius,n-r);z["h"](a)||(a=r+o*(e+1)),z["h"](s)||(s=r+o*e),i.pixelRadius=a,i.pixelInnerRadius=s})),this.seriesContainer.definedBBox={x:n*e.x,y:n*e.y,width:n*e.width,height:n*e.height},this.seriesContainer.invalidateLayout(),this.bulletsContainer.x=this.seriesContainer.x,this.bulletsContainer.y=this.seriesContainer.y)},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new ke},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),e}(Ie);T["b"].registeredClasses["PieChart"]=Te,T["b"].registeredClasses["PieChartDataItem"]=Ve;var Se=i("eac3"),je=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeries3DDataItem",e.values.depthValue={},e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"depthValue",{get:function(){return this.values["depthValue"].value},set:function(t){this.setValue("depthValue",t)},enumerable:!0,configurable:!0}),e}(De),we=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeries3D",e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.createDataItem=function(){return new je},e.prototype.createSlice=function(){return new Se["a"]},e.prototype.validateDataElement=function(e){var i=e.slice,a=this.depth;z["h"](a)||(a=this.chart.depth);var s=e.values.depthValue.percent;z["h"](s)||(s=100),i.depth=s*a/100;var n=this.angle;z["h"](n)||(n=this.chart.angle),i.angle=n,t.prototype.validateDataElement.call(this,e)},e.prototype.validate=function(){t.prototype.validate.call(this);for(var e=this._workingStartIndex;e<this._workingEndIndex;e++){var i=this.dataItems.getIndex(e),a=i.slice,s=a.startAngle;s>=-90&&s<90?a.toFront():s>=90&&a.toBack()}},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t)},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem,a=i.slice;e.y=e.pixelY-a.depth},e}(ke);T["b"].registeredClasses["PieSeries3D"]=we,T["b"].registeredClasses["PieSeries3DDataItem"]=je;(function(t){function e(){var e=t.call(this)||this;return e.className="PieChart3DDataItem",e.applyTheme(),e}Object(V["c"])(e,t)})(Ve);var Fe=function(t){function e(){var e=t.call(this)||this;return e.className="PieChart3D",e.depth=20,e.angle=10,e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){t=et["i"](t,0,90),this.setPropertyValue("angle",t)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new we},e}(Te);T["b"].registeredClasses["PieChart3D"]=Fe;var Le=function(t){function e(){var e=t.call(this)||this;return e.className="SlicedChartDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(Ce),Me=function(t){function e(){var e=t.call(this)||this;return e.className="SlicedChart",e.seriesContainer.layout="horizontal",e.padding(15,15,15,15),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Sliced chart"))},e.prototype.validate=function(){t.prototype.validate.call(this)},e}(Ie);T["b"].registeredClasses["SlicedChart"]=Me,T["b"].registeredClasses["SlicedChartDataItem"]=Le;var Re=i("6b83"),Xe=i("f942"),Ye=function(t){function e(){var e=t.call(this)||this;return e.legendSettings=new nt,e.className="FlowDiagramNode",e.isMeasured=!1,new X["a"],e.draggable=!0,e.inert=!0,e.setStateOnChildren=!0,e.events.on("positionchanged",e.invalidateLinks,e,!1),e.events.on("sizechanged",e.invalidateLinks,e,!1),e}return Object(V["c"])(e,t),e.prototype.handleHit=function(t){this.isHidden||this.isHiding?this.show():this.hide()},e.prototype.show=function(e){var i=t.prototype.show.call(this,e);return this.outgoingDataItems.each((function(t){(!t.toNode||t.toNode&&!t.toNode.isHidden)&&t.setWorkingValue("value",t.getValue("value"),e)})),this.incomingDataItems.each((function(t){(!t.fromNode||t.fromNode&&!t.fromNode.isHidden)&&t.setWorkingValue("value",t.getValue("value"),e)})),i},e.prototype.hide=function(e){var i=t.prototype.hide.call(this,e);return this.outgoingDataItems.each((function(t){t.setWorkingValue("value",0,e)})),this.incomingDataItems.each((function(t){t.setWorkingValue("value",0,e)})),i},e.prototype.validate=function(){this.isDisposed()||(t.prototype.validate.call(this),this.invalidateLinks())},e.prototype.invalidateLinks=function(){var t=this;this.outgoingDataItems.each((function(e){var i=e.link;if("fromNode"==i.colorMode&&(i.fill=i.dataItem.fromNode.color),"gradient"==i.colorMode){i.fill=i.gradient,i.stroke=i.gradient;var a=i.gradient.stops.getIndex(0);a&&(a.color=t.color,i.gradient.validate())}})),this.incomingDataItems.each((function(e){var i=e.link;if("toNode"==i.colorMode&&(i.fill=i.dataItem.toNode.color),"gradient"==i.colorMode){i.fill=i.gradient,i.stroke=i.gradient;var a=i.gradient.stops.getIndex(1);a&&(a.color=t.color,i.gradient.validate())}}))},Object.defineProperty(e.prototype,"incomingDataItems",{get:function(){var t=this;if(!this._incomingDataItems){var e=new w["a"];e.events.on("inserted",(function(){"name"==t.chart.sortBy?t._incomingSorted=N["l"](t._incomingDataItems.iterator(),(function(t,e){return Re["a"](t.fromName,e.fromName)})):"value"==t.chart.sortBy?t._incomingSorted=N["l"](t._incomingDataItems.iterator(),(function(t,e){return Xe["b"](Pt["a"](t.value,e.value))})):t._incomingSorted=t._incomingDataItems.iterator()}),void 0,!1),this._incomingDataItems=e}return this._incomingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outgoingDataItems",{get:function(){var t=this;if(!this._outgoingDataItems){var e=new w["a"];e.events.on("inserted",(function(){"name"==t.chart.sortBy?t._outgoingSorted=N["l"](t._outgoingDataItems.iterator(),(function(t,e){return Re["a"](t.fromName,e.fromName)})):"value"==t.chart.sortBy?t._outgoingSorted=N["l"](t._outgoingDataItems.iterator(),(function(t,e){return Xe["b"](Pt["a"](t.value,e.value))})):t._outgoingSorted=t._outgoingDataItems.iterator()}),void 0,!1),this._outgoingDataItems=e}return this._outgoingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(t){this.setPropertyValue("name",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"total",{get:function(){return this.getPropertyValue("total")},set:function(t){this.setPropertyValue("total",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalIncoming",{get:function(){return this.getPropertyValue("totalIncoming")},set:function(t){this.setPropertyValue("totalIncoming",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalOutgoing",{get:function(){return this.getPropertyValue("totalOutgoing")},set:function(t){this.setPropertyValue("totalOutgoing",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.getPropertyValue("color")},set:function(t){this.setColorProperty("color",t),this._background&&(this._background.fill=t),this.fill=t},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var a=t.createChild(J["a"]);a.shouldClone=!1,ut["c"](this,a,R["b"]),a.stroke=this.fill,a.copyFrom(this),a.padding(0,0,0,0),a.width=e,a.height=i;var s=t.dataItem;s.color=a.fill,s.colorOrig=a.fill},Object.defineProperty(e.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),e}(F["a"]);T["b"].registeredClasses["FlowDiagramNode"]=Ye;var Be=i("cd03"),Ee=i("6e17"),We=function(t){function e(){var e=t.call(this)||this;e.className="FlowDiagramLink";var i=new X["a"];return e.maskBullets=!1,e.colorMode="fromNode",e.layout="none",e.isMeasured=!1,e.startAngle=0,e.endAngle=0,e.strokeOpacity=0,e.verticalCenter="none",e.horizontalCenter="none",e.tooltipText="{fromName}→{toName}:{value.value}",e.tooltipLocation=.5,e.link=e.createChild(R["a"]),e.link.shouldClone=!1,e.link.setElement(e.paper.add("path")),e.link.isMeasured=!1,e.fillOpacity=.2,e.fill=i.getFor("alternativeBackground"),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.positionBullets=function(){var t=this;N["d"](this.bullets.iterator(),(function(e){e.parent=t.bulletsContainer,e.maxWidth=t.maxWidth,e.maxHeight=t.maxHeight,t.positionBullet(e)}))},Object.defineProperty(e.prototype,"bulletsContainer",{get:function(){if(!this._bulletsContainer){var t=this.createChild(F["a"]);t.shouldClone=!1,t.layout="none",this._bulletsContainer=t}return this._bulletsContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bulletsMask",{get:function(){if(!this._bulletsMask){var t=this.createChild(R["a"]);t.shouldClone=!1,t.setElement(this.paper.add("path")),t.isMeasured=!1,this._bulletsMask=t}return this._bulletsMask},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(t){var e=t.locationX;z["h"](e)||(e=t.locationY),z["h"](e)||(e=.5);var i=this.middleLine.positionToPoint(e);t.moveTo(i);var a,s=t.propertyFields.rotation;if(t.dataItem){var n=t.dataItem.dataContext;a=n[s]}z["h"](a)||(a=i.angle),t.rotation=a},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorMode",{get:function(){return this.getPropertyValue("colorMode")},set:function(t){if("gradient"==t){var e=this.fill;this.gradient.stops.clear(),e instanceof lt["a"]&&(this.gradient.addColor(e),this.gradient.addColor(e)),this.fill=this.gradient,this.stroke=this.gradient}this.setPropertyValue("colorMode",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(t){this.setPropertyValue("maskBullets",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(t){this.setPropertyValue("tooltipLocation",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setFill=function(e){t.prototype.setFill.call(this,e);var i=this._gradient;i&&e instanceof lt["a"]&&(i.stops.clear(),i.addColor(e),i.addColor(e))},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"bullets",{get:function(){var t=this;return this._bullets||(this._bullets=new w["c"](new q),this._disposers.push(new w["b"](this._bullets)),this._disposers.push(this._bullets.template),this._bullets.events.on("inserted",(function(e){e.newValue.events.on("propertychanged",(function(e){"locationX"!=e.property&&"locationY"!=e.property||t.positionBullet(e.target)}),void 0,!1)}),void 0,!1)),this._bullets},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.bullets.copyFrom(e.bullets);var i=this.middleLine;i&&(i instanceof ae["a"]&&e.middleLine instanceof ae["a"]&&i.copyFrom(e.middleLine),i instanceof Ee["a"]&&e.middleLine instanceof Ee["a"]&&i.copyFrom(e.middleLine)),this.link.copyFrom(e.link)},e.prototype.getTooltipX=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).x},e.prototype.getTooltipY=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).y},Object.defineProperty(e.prototype,"gradient",{get:function(){return this._gradient||(this._gradient=new Be["a"]),this._gradient},enumerable:!0,configurable:!0}),e}(F["a"]);T["b"].registeredClasses["FlowDiagramLink"]=We;var Ne=i("c021"),ze=function(t){function e(){var e=t.call(this)||this;return e.className="FlowDiagramDataItem",e.values.value={},e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"fromName",{get:function(){return this.properties.fromName},set:function(t){this.setProperty("fromName",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toName",{get:function(){return this.properties.toName},set:function(t){this.setProperty("toName",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.setProperty("color",Object(lt["c"])(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"link",{get:function(){var t=this;if(!this._link){var e=this.component.links.create();this._link=e,this.addSprite(e),this._disposers.push(new j["b"]((function(){t.component&&t.component.links.removeValue(e)})))}return this._link},enumerable:!0,configurable:!0}),e}(U),He=function(t){function e(){var e=t.call(this)||this;e.colors=new gt["a"],e.className="FlowDiagram",e.nodePadding=20,e.sortBy="none",e.sequencedInterpolation=!0,e.colors.step=2,e.minNodeSize=.02;var i=e.chartContainer.createChild(F["a"]);i.shouldClone=!1,i.layout="none",i.isMeasured=!1,e.linksContainer=i;var a=e.chartContainer.createChild(F["a"]);return a.shouldClone=!1,a.layout="none",a.isMeasured=!1,e.nodesContainer=a,e.dataItem=e.createDataItem(),e.dataItem.component=e,e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this.dataItem.dispose()},e.prototype.validateData=function(){var e=this;0==this._parseDataFrom&&this.nodes.clear(),this.sortNodes(),this.colors.reset(),t.prototype.validateData.call(this);var i,a,s=0,n=0;N["d"](this.dataItems.iterator(),(function(t){var r=t.fromName;if(r){var o=e.nodes.getKey(r);o||(o=e.nodes.create(r),o.name=r,o.chart=e,o.dataItem=t),t.fromNode=o,t.fromNode.outgoingDataItems.push(t)}var l=t.toName;if(l){o=e.nodes.getKey(l);o||(o=e.nodes.create(l),o.name=l,o.chart=e,o.dataItem=t),t.toNode=o,t.toNode.incomingDataItems.push(t)}if(!t.fromNode){var h=new Ne["a"];h.opacities=[0,1],t.link.strokeModifier=h}if(!t.toNode){var u=new Ne["a"];u.opacities=[1,0],t.link.strokeModifier=u}var d=t.value;z["h"](d)&&(s+=d,n++,(i>d||!z["h"](i))&&(i=d),(a<d||!z["h"](a))&&(a=d))}));var r="value";this.dataItem.setCalculatedValue(r,a,"high"),this.dataItem.setCalculatedValue(r,i,"low"),this.dataItem.setCalculatedValue(r,s,"sum"),this.dataItem.setCalculatedValue(r,s/n,"average"),this.dataItem.setCalculatedValue(r,n,"count"),N["d"](this.nodes.iterator(),(function(t){var i=t[1];i.fill instanceof lt["a"]&&(i.color=i.fill),void 0==i.color&&(i.color=e.colors.next()),void 0!=i.dataItem.color&&(i.color=i.dataItem.color),i.dataItem.visible||i.hide(0),e.getNodeValue(i)})),this.sortNodes(),this.feedLegend()},e.prototype.handleDataItemWorkingValueChange=function(t,e){this.invalidate()},e.prototype.sortNodes=function(){"name"==this.sortBy?this._sorted=this.nodes.sortedIterator():"value"==this.sortBy?this._sorted=N["l"](this.nodes.iterator(),(function(t,e){return Xe["b"](Pt["a"](t[1].total,e[1].total))})):this._sorted=this.nodes.iterator()},e.prototype.getNodeValue=function(t){var e=0,i=0;N["d"](t.incomingDataItems.iterator(),(function(t){var i=t.getWorkingValue("value");z["h"](i)&&(e+=i)})),N["d"](t.outgoingDataItems.iterator(),(function(t){var e=t.getWorkingValue("value");z["h"](e)&&(i+=e)})),t.total=e+i,t.totalIncoming=e,t.totalOutgoing=i},e.prototype.changeSorting=function(){this.sortNodes()},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Flow diagram"))},e.prototype.createDataItem=function(){return new ze},Object.defineProperty(e.prototype,"nodePadding",{get:function(){return this.getPropertyValue("nodePadding")},set:function(t){this.setPropertyValue("nodePadding",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortBy",{get:function(){return this.getPropertyValue("sortBy")},set:function(t){this.setPropertyValue("sortBy",t),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minNodeSize",{get:function(){return this.getPropertyValue("minNodeSize")},set:function(t){this.setPropertyValue("minNodeSize",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){if(!this._nodes){var t=this.createNode();t.events.on("hit",(function(t){t.target.handleHit(t)})),this._nodes=new G["c"](t),this._disposers.push(new G["b"](this._nodes))}return this._nodes},enumerable:!0,configurable:!0}),e.prototype.createNode=function(){var t=new Ye;return this._disposers.push(t),t},Object.defineProperty(e.prototype,"links",{get:function(){return this._links||(this._links=new w["c"](this.createLink()),this._disposers.push(new w["b"](this._links))),this._links},enumerable:!0,configurable:!0}),e.prototype.createLink=function(){var t=new We;return this._disposers.push(t),t},e.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];this.nodes.each((function(t,i){e.push(i)})),t.data=e,t.dataFields.name="name"}},e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this.nodes.clear()},e}(K);T["b"].registeredClasses["FlowDiagram"]=He;var Ue=function(t){function e(){var e=t.call(this)||this;e.className="LabelBullet";var i=e.createChild(L["a"]);return i.shouldClone=!1,i.verticalCenter="middle",i.horizontalCenter="middle",i.truncate=!0,i.hideOversized=!1,i.maxWidth=500,i.maxHeight=500,i.stroke=Object(lt["b"])(),i.strokeOpacity=0,i.fill=(new X["a"]).getFor("text"),e.events.on("maxsizechanged",e.handleMaxSize,e,!1),e.label=i,e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.handleMaxSize=function(){this.label.maxWidth=this.maxWidth,this.label.maxHeight=this.maxHeight},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label)},e}(q);T["b"].registeredClasses["LabelBullet"]=Ue;var Ke=function(t){function e(){var e=t.call(this)||this;e.nextInCoord=0,e.nextOutCoord=0,e.className="SankeyNode",e.width=10,e.height=10;var i=e.createChild(Ue);i.shouldClone=!1,i.locationX=1,i.locationY=.5,i.label.text="{name}",i.width=150,i.height=150,i.label.horizontalCenter="left",i.label.padding(0,5,0,5),e.nameLabel=i;var a=e.createChild(Ue);a.shouldClone=!1,a.label.hideOversized=!1,a.locationX=.5,a.locationY=.5,a.width=150,a.height=150,a.label.horizontalCenter="middle",e.valueLabel=a;var s=e.hiddenState;return s.properties.fill=(new X["a"]).getFor("disabledBackground"),s.properties.opacity=.5,s.properties.visible=!0,e.background.hiddenState.copyFrom(s),e}return Object(V["c"])(e,t),e.prototype.invalidateLinks=function(){var e=this;t.prototype.invalidateLinks.call(this),this.nextInCoord=0,this.nextOutCoord=0;var i=this.chart;if(i){var a=i.orientation;this._incomingSorted&&N["d"](this._incomingSorted,(function(t){var s=t.link,n=t.getWorkingValue("value");if(z["h"](n)){s.parent=e.chart.linksContainer;var r=void 0,o=void 0,l=void 0;if("horizontal"==a?(r=e.pixelX+e.dx,o=e.nextInCoord+e.pixelY+e.dy,l=0):(o=e.pixelY+e.dy,r=e.nextInCoord+e.pixelX+e.dx,l=90),s.endX=r,s.endY=o,s.startAngle=l,s.endAngle=l,s.gradient.rotation=l,s.linkWidth=n*i.valueHeight,!t.fromNode){"horizontal"==a?(s.maxWidth=200,s.startX=e.pixelX+e.dx-s.maxWidth,s.startY=s.endY):(s.maxHeight=200,s.startX=s.endX,s.startY=e.pixelY+e.dy-s.maxHeight),tt["R"](s.gradient),s.fill=t.toNode.color;var h=s.gradient.stops.getIndex(0);h&&("gradient"==s.colorMode&&(h.color=e.color),h.opacity=0,s.fill=s.gradient,s.stroke=s.gradient,s.gradient.validate())}e.nextInCoord+=s.linkWidth}})),this._outgoingSorted&&N["d"](this._outgoingSorted,(function(t){var i=t.link;i.parent=e.chart.linksContainer;var s=t.getWorkingValue("value");if(z["h"](s)){var n=void 0,r=void 0,o=void 0;if("horizontal"==a?(o=0,n=e.pixelX+e.pixelWidth+e.dx-1,r=e.nextOutCoord+e.pixelY+e.dy):(o=90,n=e.nextOutCoord+e.pixelX+e.dx,r=e.pixelY+e.pixelHeight+e.dy-1),i.startX=n,i.startY=r,i.startAngle=o,i.endAngle=o,i.gradient.rotation=o,i.linkWidth=s*e.chart.valueHeight,!t.toNode){"horizontal"==a?(i.maxWidth=200,i.endX=e.pixelX+i.maxWidth+e.dx,i.endY=i.startY):(i.maxHeight=200,i.endX=i.startX,i.endY=e.pixelY+i.maxHeight+e.dy),i.opacity=e.opacity;var l=i.gradient.stops.getIndex(1);l&&("gradient"==i.colorMode&&(l.color=e.color),l.opacity=0,i.fill=i.gradient,i.stroke=i.gradient,i.gradient.validate())}e.nextOutCoord+=i.linkWidth}}))}this.positionBullet(this.nameLabel),this.positionBullet(this.valueLabel)},e.prototype.positionBullet=function(t){t&&(t.x=this.measuredWidth*t.locationX,t.y=this.measuredHeight*t.locationY)},Object.defineProperty(e.prototype,"level",{get:function(){return this.getPropertyValue("level")},set:function(t){this.setPropertyValue("level",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.nameLabel.copyFrom(e.nameLabel),this.valueLabel.copyFrom(e.valueLabel)},e}(Ye);T["b"].registeredClasses["SankeyNode"]=Ke;var Ge=i("25e7"),Ze=function(t){function e(){var e=t.call(this)||this;return e.className="SankeyLink",new X["a"],e.tension=.8,e.controlPointDistance=.2,e.startAngle=0,e.endAngle=0,e.linkWidth=0,e.startX=0,e.endX=0,e.startY=0,e.endY=0,e.middleLine=e.createChild(Ge["a"]),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.makeBackwards=function(){void 0!=this.states.getKey("backwards")&&this.setState("backwards")},e.prototype.validate=function(){var e,i,a,s;if(t.prototype.validate.call(this),!this.isTemplate){var n=this.startX,r=this.startY,o=this.endX,l=this.endY;if(this.states.getKey("backwards")&&this.setState("default"),this.dataItem){var h=this.dataItem.component;h&&("horizontal"==h.orientation?o<n&&(e=Object(V["e"])([o,n],2),n=e[0],o=e[1],i=Object(V["e"])([l,r],2),r=i[0],l=i[1],this.makeBackwards()):l<r&&(a=Object(V["e"])([l,r],2),r=a[0],l=a[1],s=Object(V["e"])([o,n],2),n=s[0],o=s[1],this.makeBackwards()))}z["h"](o)||(o=n),z["h"](l)||(l=r);var u=this.startAngle,d=this.endAngle,c=this.linkWidth,p="",f=n,g=r,m=o,y=l,v=n+c*et["F"](u),x=o+c*et["F"](d),b=r+c*et["g"](u),_=l+c*et["g"](d),P=n+c/2*et["F"](u),C=o+c/2*et["F"](d),I=r+c/2*et["g"](u),A=l+c/2*et["g"](d);this.zIndex=this.zIndex||this.dataItem.index;var O=this.tension+(1-this.tension)*et["F"](u),D=this.tension+(1-this.tension)*et["g"](u);if(this.middleLine.tensionX=O,this.middleLine.tensionY=D,z["h"](c)&&z["h"](n)&&z["h"](o)&&z["h"](r)&&z["h"](l)){et["E"](f,3)==et["E"](m,3)&&(m+=.01),et["E"](g,3)==et["E"](y,3)&&(y+=.01),et["E"](v,3)==et["E"](x,3)&&(x+=.01),et["E"](b,3)==et["E"](_,3)&&(_+=.01);var k=Math.min(v,x,f,m),T=Math.min(b,_,g,y),S=Math.max(v,x,f,m),j=Math.max(b,_,g,y);this._bbox={x:k,y:T,width:S-k,height:j-T};var w=this.controlPointDistance,F=f+(m-f)*w*et["g"](u),L=g+(y-g)*w*et["F"](u),M=m-(m-f)*w*et["g"](d),R=y-(y-g)*w*et["F"](d),X=P+(C-P)*w*et["g"](u),Y=I+(A-I)*w*et["F"](u),E=C-(C-P)*w*et["g"](d),W=A-(A-I)*w*et["F"](d),N=et["j"]({x:F,y:L},{x:M,y:R}),H=(c/et["g"](N)-c)/et["G"](N)*et["g"](u),U=(c/et["F"](N)-c)*et["G"](N)*et["F"](u),K=-H/2+v+(x-v)*w*et["g"](u),G=-U/2+b+(_-b)*w*et["F"](u),Z=-H/2+x-(x-v)*w*et["g"](d),q=-U/2+_-(_-b)*w*et["F"](d);this.middleLine.segments=[[{x:P,y:I},{x:X,y:Y},{x:E,y:W},{x:C,y:A}]],F+=H/2,L+=U/2,M+=H/2,R+=U/2,p+=B["g"]({x:f,y:g}),p+=new Qt["c"](O,D).smooth([{x:f,y:g},{x:F,y:L},{x:M,y:R},{x:m,y:y}]),p+=B["f"]({x:x,y:_}),p+=new Qt["c"](O,D).smooth([{x:x,y:_},{x:Z,y:q},{x:K,y:G},{x:v,y:b}]),p+=B["d"]()}this.link.path=p,this.maskBullets&&(this.bulletsMask.path=p,this.bulletsContainer.mask=this.bulletsMask),this.positionBullets()}},Object.defineProperty(e.prototype,"startX",{get:function(){return this.getPropertyValue("startX")},set:function(t){this.setPropertyValue("startX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endX",{get:function(){return this.getPropertyValue("endX")},set:function(t){this.setPropertyValue("endX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startY",{get:function(){return this.getPropertyValue("startY")},set:function(t){this.setPropertyValue("startY",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endY",{get:function(){return this.getPropertyValue("endY")},set:function(t){this.setPropertyValue("endY",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linkWidth",{get:function(){return this.getPropertyValue("linkWidth")},set:function(t){this.setPropertyValue("linkWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(t){this.setPropertyValue("controlPointDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t,!0)},enumerable:!0,configurable:!0}),e}(We);T["b"].registeredClasses["SankeyLink"]=Ze;var qe=i("cabc"),Je=function(t){function e(){var e=t.call(this)||this;return e.className="SankeyDiagramDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(ze),$e=function(t){function e(){var e=t.call(this)||this;return e.className="SankeyDiagram",e.orientation="horizontal",e.nodeAlign="middle",e.nodesContainer.width=Object(Y["c"])(100),e.nodesContainer.height=Object(Y["c"])(100),e.linksContainer.width=Object(Y["c"])(100),e.linksContainer.height=Object(Y["c"])(100),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.validateData=function(){var e=this;t.prototype.validateData.call(this),this._levelCount=0,this.nodes.each((function(t,e){e.level=void 0})),this.nodes.each((function(t,i){i.level=e.getNodeLevel(i,0),e._levelCount=et["B"](e._levelCount,i.level)}))},e.prototype.getNodeLevel=function(t,e){var i=this,a=[e];return N["d"](t.incomingDataItems.iterator(),(function(t){t.fromNode&&(z["h"](t.fromNode.level)?a.push(t.fromNode.level+1):(i._counter=0,i.checkLoop(t.fromNode),i._counter<i.dataItems.length&&a.push(i.getNodeLevel(t.fromNode,e+1))))})),Math.max.apply(Math,Object(V["f"])(a))},e.prototype.checkLoop=function(t){var e=this;this._counter++,this._counter>this.dataItems.length||N["d"](t.incomingDataItems.iterator(),(function(t){e.checkLoop(t.fromNode)}))},e.prototype.calculateValueHeight=function(){var t=this;this._levelSum={},this._levelNodesCount={},this.maxSum=0;var e,i,a,s=this.dataItem.values.value.sum;N["d"](this._sorted,(function(e){var i=e[1];t.getNodeValue(i)})),this.nodes.each((function(e,i){var a=i.level,n=Math.max(i.totalIncoming,i.totalOutgoing);n/s<t.minNodeSize&&(n=s*t.minNodeSize),z["h"](t._levelSum[a])?t._levelSum[a]+=n:t._levelSum[a]=n,z["h"](t._levelNodesCount[a])?t._levelNodesCount[a]++:t._levelNodesCount[a]=1})),e="horizontal"==this.orientation?this.chartContainer.maxHeight-1:this.chartContainer.maxWidth-1,ut["d"](this._levelSum,(function(s,n){var r=n,o=t._levelNodesCount[s],l=(e-(o-1)*t.nodePadding)/r;l==1/0&&(l=0),(a>l||!z["h"](a))&&(a=l,t.maxSum=r,i=z["l"](s))})),this._maxSumLevel=i;var n=this._levelNodesCount[this._maxSumLevel],r=(e-(n-1)*this.nodePadding)/this.maxSum;if(r==1/0&&(r=0),z["h"](this.valueHeight)){var o=void 0;try{o=this._heightAnimation.animationOptions[0].to}catch(h){}if(o!=r){var l=this.interpolationDuration;try{l=this.nodes.template.states.getKey("active").transitionDuration}catch(h){}this._heightAnimation=new qe["a"](this,{property:"valueHeight",from:this.valueHeight,to:r},l,this.interpolationEasing).start(),this._disposers.push(this._heightAnimation)}}else this.valueHeight=r},e.prototype.validate=function(){var e=this;t.prototype.validate.call(this),this.calculateValueHeight();var i,a=this.nodesContainer,s={},n=this._levelNodesCount[this._maxSumLevel],r=this.dataItem.values.value.sum;i="horizontal"==this.orientation?this.chartContainer.maxHeight-1:this.chartContainer.maxWidth-1,N["d"](this._sorted,(function(t){var o,l,h,u=t[1],d=u.level,c=0,p=e._levelNodesCount[d];switch(e.nodeAlign){case"bottom":c=(e.maxSum-e._levelSum[d])*e.valueHeight-(p-n)*e.nodePadding;break;case"middle":c=(e.maxSum-e._levelSum[d])*e.valueHeight/2-(p-n)*e.nodePadding/2;break}if(0==e.maxSum)switch(e.nodeAlign){case"bottom":c=i-p*(e.minNodeSize*i+e.nodePadding);break;case"middle":c=i/2-p/2*(e.minNodeSize*i+e.nodePadding);break}u.parent=a;var f=Math.max(u.totalIncoming,u.totalOutgoing);if(f/r<e.minNodeSize&&(f=r*e.minNodeSize),"horizontal"==e.orientation){o=(e.innerWidth-u.pixelWidth)/e._levelCount,l=o*u.level,h=s[d]||c;var g=f*e.valueHeight;0==r&&0==g&&(g=e.minNodeSize*i),u.height=g,u.minX=l,u.maxX=l,s[d]=h+g+e.nodePadding}else{o=(e.innerHeight-u.pixelHeight)/e._levelCount,l=s[d]||c,h=o*u.level;var m=f*e.valueHeight;0==r&&0==m&&(m=e.minNodeSize*i),u.width=m,u.minY=h,u.maxY=h,s[d]=l+m+e.nodePadding}u.x=l,u.y=h}))},e.prototype.showReal=function(e){var i=this;if(!this.preventShow){if(this.interpolationDuration>0){var a=this.nodesContainer,s=0;N["d"](this.links.iterator(),(function(t){t.hide(0)})),N["d"](this._sorted,(function(t){var e,n=t[1];"horizontal"==i.orientation?(n.dx=-(a.pixelWidth-n.pixelWidth)/Math.max(i._levelCount,1),e="dx"):(n.dy=-(a.pixelHeight-n.pixelHeight)/Math.max(i._levelCount,1),e="dy");var r=0,o=i.interpolationDuration;i.sequencedInterpolation&&(r=i.sequencedInterpolationDelay*s+o*s/N["j"](i.nodes.iterator())),n.opacity=0,n.invalidateLinks(),n.animate([{property:"opacity",from:0,to:1},{property:e,to:0}],i.interpolationDuration,i.interpolationEasing).delay(r),N["d"](n.outgoingDataItems.iterator(),(function(t){var e=t.link.show(i.interpolationDuration);e&&!e.isFinished()&&e.delay(r)})),N["d"](n.incomingDataItems.iterator(),(function(t){if(!t.fromNode){var e=t.link.show(i.interpolationDuration);e&&!e.isFinished()&&e.delay(r)}})),s++}))}return t.prototype.showReal.call(this)}},e.prototype.changeSorting=function(){var t=this;this.sortNodes();var e={};N["d"](this._sorted,(function(i){var a,s,n=i[1],r=n.level,o=(t.maxSum-t._levelSum[r])*t.valueHeight/2;"horizontal"==t.orientation?(a="y",s=n.pixelHeight):(a="x",s=n.pixelWidth),n.animate({property:a,to:e[r]||o},t.interpolationDuration,t.interpolationEasing),e[r]=(e[r]||o)+s+t.nodePadding,n.invalidateLinks()}))},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Sankey diagram"))},e.prototype.createDataItem=function(){return new Je},Object.defineProperty(e.prototype,"nodeAlign",{get:function(){return this.getPropertyValue("nodeAlign")},set:function(t){this.setPropertyValue("nodeAlign",t),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0);var e=this.nodes.template.nameLabel;"vertical"==t?(this.nodes.template.width=void 0,e.label.horizontalCenter="middle",e.locationX=.5):(this.nodes.template.height=void 0,e.label.horizontalCenter="left",e.locationX=1)},enumerable:!0,configurable:!0}),e.prototype.createNode=function(){var t=new Ke;return this._disposers.push(t),t},e.prototype.createLink=function(){var t=new Ze;return this._disposers.push(t),t},Object.defineProperty(e.prototype,"valueHeight",{get:function(){return this._valueHeight},set:function(t){t!=this._valueHeight&&(this._valueHeight=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this._sorted=this.nodes.iterator()},e}(He);T["b"].registeredClasses["SankeyDiagram"]=$e;var Qe=function(t){function e(){var e=t.call(this)||this;e.className="ChordNode";var i=e.createChild(ce);i.location=.5,i.radius=5,i.text="{name}",i.zIndex=1,i.shouldClone=!1,e.label=i,e.layout="none",e.events.on("positionchanged",e.updateRotation,e,!1),e.isMeasured=!1,e.slice=e.createChild(Ae["a"]),e.slice.isMeasured=!1;var a=e.hiddenState;return a.properties.fill=(new X["a"]).getFor("disabledBackground"),a.properties.opacity=.5,a.properties.visible=!0,e.setStateOnChildren=!1,e.slice.hiddenState.properties.visible=!0,e.adapter.add("tooltipX",(function(t,e){return e.slice.ix*(e.slice.radius-(e.slice.radius-e.slice.pixelInnerRadius)/2)})),e.adapter.add("tooltipY",(function(t,e){return e.slice.iy*(e.slice.radius-(e.slice.radius-e.slice.pixelInnerRadius)/2)})),e}return Object(V["c"])(e,t),e.prototype.invalidateLinks=function(){var e=this;t.prototype.invalidateLinks.call(this);var i=this.label,a=this.slice,s=this.chart;if(s&&a){var n=this.total,r=a.arc,o=a.startAngle;this.children.each((function(t){if(t instanceof q){var e=t.locationX;z["h"](e)||(e=.5);var i=t.locationY;z["h"](i)||(i=1);var s=o+r*e,n=i*a.radius;t.x=n*et["g"](s),t.y=n*et["F"](s)}}));var l=o+r*i.location,h=o+(1-n/this.adjustedTotal)*r*.5;z["g"](h)&&(h=o),i.fixPosition(l,a.radius),this.nextAngle=h,this._outgoingSorted&&N["d"](this._outgoingSorted,(function(t){var i=t.link;i.parent=e.chart.linksContainer;var n=t.getWorkingValue("value");if(z["h"](n)){if(s.nonRibbon){var l=i.percentWidth;z["h"](l)||(l=5),l/=100,i.startAngle=o+r/2-r/2*l,i.arc=r*l}else i.arc=n*s.valueAngle,i.startAngle=e.nextAngle,e.nextAngle+=i.arc;t.toNode||(i.endAngle=i.startAngle),i.radius=a.pixelInnerRadius}})),this._incomingSorted&&N["d"](this._incomingSorted,(function(t){var i=t.link;if(i.radius=a.pixelInnerRadius,s.nonRibbon){var n=i.percentWidth;z["h"](n)||(n=5),n/=100,i.endAngle=o+r/2-r/2*n,i.arc=r*n}else{i.endAngle=e.nextAngle;var l=t.getWorkingValue("value");z["h"](l)&&(i.arc=l*s.valueAngle,e.nextAngle+=i.arc)}t.fromNode||(i.startAngle=i.endAngle)}))}},e.prototype.updateRotation=function(){var t=this.slice,e=this.trueStartAngle+t.arc/2,i=t.radius,a=i*et["g"](e),s=i*et["F"](e),n=et["j"]({x:a+this.pixelX,y:s+this.pixelY});t.startAngle=this.trueStartAngle+(n-e),this.dx=-this.pixelX,this.dy=-this.pixelY},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),this.slice.copyFrom(e.slice)},e}(Ye);T["b"].registeredClasses["ChordNode"]=Qe;var ti=function(t){function e(){var e=t.call(this)||this;return e.className="QuadraticCurve",e.element=e.paper.add("path"),e.pixelPerfect=!1,e.fill=Object(lt["b"])(),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.draw=function(){if(z["h"](this.x1+this.x2+this.y1+this.y2+this.cpx+this.cpy)){var t={x:this.x1,y:this.y1},e={x:this.x2,y:this.y2},i={x:this.cpx,y:this.cpy},a=B["g"](t)+B["i"](e,i);this.path=a}},Object.defineProperty(e.prototype,"cpx",{get:function(){return this.getPropertyValue("cpx")},set:function(t){this.setPropertyValue("cpx",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cpy",{get:function(){return this.getPropertyValue("cpy")},set:function(t){this.setPropertyValue("cpy",t,!0)},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e={x:this.x1,y:this.y1},i={x:this.cpx,y:this.cpy},a={x:this.x2,y:this.y2},s=et["u"](e,a,i,t),n=et["u"](e,a,i,t+.001);return{x:s.x,y:s.y,angle:et["j"](s,n)}},e}(ae["a"]),ei=function(t){function e(){var e=t.call(this)||this;return e.className="ChordLink",e.middleLine=e.createChild(ti),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.validate=function(){if(t.prototype.validate.call(this),!this.isTemplate){var e=this.startAngle,i=this.endAngle,a=this.arc,s=this.radius,n=this.dataItem.fromNode,r=this.dataItem.toNode,o=0,l=0;n&&(o=n.pixelX+n.dx,l=n.pixelY+n.dy);var h=0,u=0;if(r&&(h=r.pixelX+r.dx,u=r.pixelY+r.dy),s>0){var d=s*et["g"](e)+o,c=s*et["F"](e)+l,p=s*et["g"](i)+h,f=s*et["F"](i)+u,g={x:0,y:0},m=B["g"]({x:d,y:c});m+=B["b"](e,a,s),m+=B["i"]({x:p,y:f},g),m+=B["b"](i,a,s),m+=B["i"]({x:d,y:c},g),this.link.path=a>0?m:"",this.maskBullets&&(this.bulletsMask.path=m,this.bulletsContainer.mask=this.bulletsMask);var y=e+a/2,v=i+a/2,x=this.middleLine;x.x1=s*et["g"](y)+o,x.y1=s*et["F"](y)+l,x.x2=s*et["g"](v)+h,x.y2=s*et["F"](v)+u,x.cpx=0,x.cpy=0,x.stroke=this.fill,this.positionBullets()}}},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(t){this.setPropertyValue("arc",t,!0)},enumerable:!0,configurable:!0}),e}(We);T["b"].registeredClasses["ChordLink"]=ei;var ii=function(t){function e(){var e=t.call(this)||this;return e.className="ChordDiagramDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(ze),ai=function(t){function e(){var e=t.call(this)||this;e.valueAngle=0,e.className="ChordDiagram",e.startAngle=-90,e.endAngle=270,e.radius=Object(Y["c"])(80),e.innerRadius=-15,e.nodePadding=5;var i=e.chartContainer.createChild(F["a"]);return i.align="center",i.valign="middle",i.shouldClone=!1,i.layout="absolute",e.chordContainer=i,e.nodesContainer.parent=i,e.linksContainer.parent=i,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.validate=function(){var e=this,i=this.chartContainer,a=this.endAngle,s=this.startAngle+this.nodePadding/2,n=et["k"](this.startAngle,this.endAngle,1),r={x:0,y:0,width:0,height:0};n=et["m"]([n,r]);var o=Math.min(i.innerWidth/n.width,i.innerHeight/n.height);z["h"](o)||(o=0);var l=tt["D"](this.radius,o),h=tt["D"](this.innerRadius,l,!0),u=this.dataItem.values.value.sum,d=0,c=0;N["d"](this._sorted,(function(t){var i=t[1];e.getNodeValue(i),d++;var a=i.total;i.total/u<e.minNodeSize&&(a=u*e.minNodeSize),c+=a})),this.valueAngle=(a-this.startAngle-this.nodePadding*d)/c,N["d"](this._sorted,(function(t){var i=t[1],n=i.slice;n.radius=l,n.innerRadius=h;var r,o=i.total;i.total/u<e.minNodeSize&&(o=u*e.minNodeSize),i.adjustedTotal=o,r=e.nonRibbon?(a-e.startAngle)/d-e.nodePadding:e.valueAngle*o,n.arc=r,n.startAngle=s,i.trueStartAngle=s,i.parent=e.nodesContainer,i.validate(),s+=r+e.nodePadding})),this.chordContainer.definedBBox={x:l*n.x,y:l*n.y,width:l*n.width,height:l*n.height},this.chordContainer.invalidateLayout(),t.prototype.validate.call(this)},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Chord diagram"))},e.prototype.createDataItem=function(){return new ii},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nonRibbon",{get:function(){return this.getPropertyValue("nonRibbon")},set:function(t){this.setPropertyValue("nonRibbon",t,!0),this.links.template.middleLine.strokeOpacity=1,this.links.template.link.fillOpacity=0},enumerable:!0,configurable:!0}),e.prototype.createNode=function(){var t=new Qe;return this._disposers.push(t),t},e.prototype.createLink=function(){var t=new ei;return this._disposers.push(t),t},e}(He);T["b"].registeredClasses["ChordDiagram"]=ai;var si=function(t){function e(){var e=t.call(this)||this;return e.className="Column",e.width=Object(Y["c"])(80),e.height=Object(Y["c"])(80),e.events.disableType("transformed"),e.applyOnClones=!0,e.strokeOpacity=1,e.layout="none",e.createAssets(),e.events.on("childadded",e.handleKidAdded,e,!1),e}return Object(V["c"])(e,t),e.prototype.handleKidAdded=function(){"none"==this.layout&&(this.layout="absolute")},e.prototype.createAssets=function(){this.column=this.createChild(J["a"]),this.column.shouldClone=!1,this.column.isMeasured=!1,this.column.cornerRadius(0,0,0,0),this._disposers.push(this.column)},e.prototype.validate=function(){t.prototype.validate.call(this);var e=this.column;e&&(e.width=et["C"](this.pixelWidth,this.maxWidth),e.height=et["C"](this.pixelHeight,this.maxHeight),e.invalid&&e.validate())},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.column&&this.column.copyFrom(e.column)},Object.defineProperty(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.column?{x:0,y:0,width:this.column.measuredWidth,height:this.column.measuredHeight}:{x:0,y:0,width:et["C"](this.pixelWidth,this.maxWidth),height:et["C"](this.pixelHeight,this.maxHeight)}},enumerable:!0,configurable:!0}),e}(F["a"]);T["b"].registeredClasses["Column"]=si;var ni=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeriesDataItem",e.locations["dateX"]=.5,e.locations["dateY"]=.5,e.locations["categoryX"]=.5,e.locations["categoryY"]=.5,e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"column",{get:function(){return this._column},set:function(t){this.setColumn(t)},enumerable:!0,configurable:!0}),e.prototype.setColumn=function(t){var e=this;if(this._column&&t!=this._column&&dt["o"](this.sprites,this._column),this._column=t,t){var i=t.dataItem;i&&i!=this&&(i.column=void 0),this.addSprite(t),this._disposers.push(new j["b"]((function(){e.component&&e.component.columns.removeValue(t)})))}},Object.defineProperty(e.prototype,"width",{get:function(){var t=this.properties.width;return this._adapterO&&(t=this._adapterO.apply("width",t)),t},set:function(t){this.properties.width!=t&&(this.properties.width=t,this.component&&this.component.validateDataElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=this.properties.height;return this._adapterO&&(t=this._adapterO.apply("height",t)),t},set:function(t){this.properties.height!=t&&(this.properties.height=t,this.component&&this.component.validateDataElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rangesColumns",{get:function(){return this._rangesColumns||(this._rangesColumns=new G["a"]),this._rangesColumns},enumerable:!0,configurable:!0}),e}(Ut),ri=function(t){function e(){var e=t.call(this)||this;e._startLocation=0,e._endLocation=1,e.className="ColumnSeries",e.width=Object(Y["c"])(100),e.height=Object(Y["c"])(100),e.strokeOpacity=0,e.fillOpacity=1,e.clustered=!0;var i=e.mainContainer.createChild(F["a"]);return i.shouldClone=!1,i.isMeasured=!1,i.layout="none",e._columnsContainer=i,e.columns.template.pixelPerfect=!1,e.tooltipColorSource=e.columns.template,e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"columnsContainer",{get:function(){return this._columnsContainer},enumerable:!0,configurable:!0}),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Column Series"))},e.prototype.createDataItem=function(){return new ni},e.prototype.validate=function(){var i=this;if(this.group.node.removeAttribute("fill"),this.chart&&this.xAxis&&this.yAxis){var a,s=this.chart.series,n=0,r=0,o=[];N["d"](s.iterator(),(function(t){var a;t instanceof e&&(i.baseAxis==t.baseAxis&&(a=i.baseAxis==i.xAxis?i.chart.yAxes.indexOf(t.yAxis):i.chart.xAxes.indexOf(t.xAxis),o.push({series:t,axis:a})))})),o.sort((function(t,e){return t.axis-e.axis})),dt["d"](o,(function(t){var s=t.series;s instanceof e&&((!s.stacked&&s.clustered||a!=t.axis&&s.clustered)&&n++,s==i&&(r=n-1)),a=t.axis})),this.clustered||(r=0,n=1);var l=this.baseAxis.renderer,h=l.cellStartLocation,u=l.cellEndLocation;this._startLocation=h+r/n*(u-h),this._endLocation=h+(r+1)/n*(u-h);var d=this.xAxis,c=this.yAxis;d instanceof Ht&&c instanceof Rt&&d.sortBySeries==this&&this.sortCategoryAxis(d,"valueY"),c instanceof Ht&&d instanceof Rt&&c.sortBySeries==this&&this.sortCategoryAxis(c,"valueX")}t.prototype.validate.call(this);for(var p=0;p<this.startIndex;p++){var f=this.dataItems.getIndex(p);this.disableUnusedColumns(f)}for(p=this.dataItems.length-1;p>this.endIndex;p--){f=this.dataItems.getIndex(p);this.disableUnusedColumns(f)}this._propertiesChanged=!1},e.prototype.sortCategoryAxis=function(t,e){var i=this;this.dataItems.values.sort((function(t,i){return i.values[e].workingValue-t.values[e].workingValue}));var a=0;this.dataItems.each((function(t){t._index=a,a++})),t.dataItems.each((function(t){var e=t.component,a=e.categoryToPosition(t.category)-t.deltaPosition,s=e.getSeriesDataItemByCategory(t.category,i);if(s){var n=i.dataItems.indexOf(s);t._index=n;var r=et["E"]((n+.5)/i.dataItems.length-a,3);t.deltaAnimation&&!t.deltaAnimation.isDisposed()&&t.deltaAnimation.animationOptions[0].to==r||r!=et["E"](t.deltaPosition,3)&&(t.deltaAnimation&&t.deltaAnimation.stop(),t.deltaAnimation=t.animate({property:"deltaPosition",from:-r,to:0},e.interpolationDuration,e.interpolationEasing),i._disposers.push(t.deltaAnimation))}})),t.dataItems.values.sort((function(t,e){return t.index-e.index}))},e.prototype.validateDataElement=function(e){this.chart&&this.xAxis&&this.yAxis&&(this.validateDataElementReal(e),t.prototype.validateDataElement.call(this,e))},e.prototype.getStartLocation=function(t){var e=this._startLocation;return this.baseAxis==this.xAxis?e+=t.locations[this.xOpenField]-.5:e+=t.locations[this.yOpenField]-.5,e},e.prototype.getEndLocation=function(t){var e=this._endLocation;return this.baseAxis==this.xAxis?e+=t.locations[this.xField]-.5:e+=t.locations[this.yField]-.5,e},e.prototype.validateDataElementReal=function(t){var e,i,a,s,n=this,r=this.getStartLocation(t),o=this.getEndLocation(t),l=this.xField,h=this.xOpenField,u=this.yField,d=this.yOpenField,c=this.columns.template,p=c.percentWidth,f=c.percentHeight,g=c.pixelWidth,m=c.pixelHeight,y=c.maxWidth,v=c.maxHeight,x=c.pixelPaddingLeft,b=c.pixelPaddingRight,_=c.pixelPaddingTop,P=c.pixelPaddingBottom,C=!1,I=t.width;z["d"](I)&&(z["h"](I)&&(g=I),I instanceof Y["a"]&&(p=100*I.value));var A=t.height;if(z["d"](A)&&(z["h"](A)&&(m=A),A instanceof Y["a"]&&(f=100*A.value)),this.xAxis instanceof Ht&&this.yAxis instanceof Ht){if(!t.hasValue(this._xValueFields)||!t.hasValue(this._yValueFields))return;if(r=0,o=1,!z["g"](p)){var O=et["E"]((o-r)*(1-p/100)/2,5);r+=O,o-=O}if(e=this.xAxis.getX(t,h,r),i=this.xAxis.getX(t,l,o),z["g"](p)){O=(i-e-g)/2;e+=O,i-=O}if(!z["g"](y)&&y<Math.abs(i-e)){O=(i-e-y)/2;e+=O,i-=O}if(r=0,o=1,!z["g"](f)){O=et["E"]((1-f/100)/2,5);r+=O,o-=O}if(a=this.yAxis.getY(t,d,r),s=this.yAxis.getY(t,u,o),z["g"](f)){O=(s-a-m)/2;s+=O,a-=O}if(!z["g"](v)&&v<Math.abs(s-a)){O=(s-a-v)/2;s+=O,a-=O}i=this.fixHorizontalCoordinate(i),e=this.fixHorizontalCoordinate(e),a=this.fixVerticalCoordinate(a),s=this.fixVerticalCoordinate(s)}else if(this.baseAxis==this.xAxis){if(!t.hasValue(this._yValueFields))return;if(!z["g"](p)){O=et["E"]((o-r)*(1-p/100)/2,5);r+=O,o-=O}if(e=this.xAxis.getX(t,h,r),i=this.xAxis.getX(t,l,o),z["g"](p)){O=(i-e-g)/2;e+=O,i-=O}if(!z["g"](y)&&y<Math.abs(i-e)){O=(i-e-y)/2;e+=O,i-=O}var D=t.locations[d],k=t.locations[u];this.yAxis instanceof Rt&&this.dataFields[this.yField]!=this.dataFields[this.yOpenField]&&(D=0,k=0),s=this.yAxis.getY(t,d,D),a=this.yAxis.getY(t,u,k);var V=Math.ceil(this.yAxis.axisLength);(a<0&&s<0||a>V&&s>V)&&(C=!0),a=this.fixVerticalCoordinate(a),s=this.fixVerticalCoordinate(s),Math.abs(i-e)-x-b==0&&(C=!0)}else{if(!t.hasValue(this._xValueFields))return;if(!z["g"](f)){O=et["E"]((o-r)*(1-f/100)/2,5);r+=O,o-=O}if(a=this.yAxis.getY(t,d,r),s=this.yAxis.getY(t,u,o),z["g"](f)){O=(s-a-m)/2;s-=O,a+=O}if(!z["g"](v)&&v<Math.abs(s-a)){O=(s-a-v)/2;s-=O,a+=O}var T=t.locations[l],S=t.locations[h];this.xAxis instanceof Rt&&this.dataFields[this.xField]!=this.dataFields[this.xOpenField]&&(T=0,S=0),i=this.xAxis.getX(t,l,T),e=this.xAxis.getX(t,h,S);V=Math.ceil(this.xAxis.axisLength);(i<0&&e<0||i>V&&e>V)&&(C=!0),i=this.fixHorizontalCoordinate(i),e=this.fixHorizontalCoordinate(e),Math.abs(a-s)-_-P==0&&(C=!0)}var j,w=Math.abs(i-e),F=Math.abs(s-a),L=Math.min(e,i),M=Math.min(a,s);C?this.disableUnusedColumns(t):(t.column?(j=t.column,this._propertiesChanged&&(ut["c"](this,j,R["b"]),ut["c"](this.columns.template,j,R["b"]),dt["d"](R["b"],(function(t){j[t]=j[t]})))):(j=this.columns.create(),ut["c"](this,j,R["b"]),ut["c"](this.columns.template,j,R["b"]),t.addSprite(j),t.column=j,j.paper=this.paper,this.itemsFocusable()?(z["d"](this.role)||(this.role="menu"),z["d"](j.role)||(j.role="menuitem"),j.focusable=!0):(z["d"](this.role)||(this.role="list"),z["d"](j.role)||(j.role="listitem"),j.focusable=!1),j.focusable&&(j.events.on("focus",(function(e){j.readerTitle=n.populateString(n.itemReaderText,t)}),void 0,!1),j.events.on("blur",(function(t){j.readerTitle=""}),void 0,!1)),j.hoverable&&(j.events.on("over",(function(e){j.readerTitle=n.populateString(n.itemReaderText,t)}),void 0,!1),j.events.on("out",(function(t){j.readerTitle=""}),void 0,!1)),j.parent=this.columnsContainer,j.virtualParent=this),j.width=w,j.height=F,j.x=L,j.y=M,j.realX=e,j.realY=a,j.realWidth=i-e,j.realHeight=s-a,this.setColumnStates(j),j.invalid&&j.validate(),j.__disabled=!1,N["d"](this.axisRanges.iterator(),(function(e){var i=t.rangesColumns.getKey(e.uid);i||(i=n.columns.create(),ut["c"](e.contents,i,R["b"]),t.addSprite(i),t.rangesColumns.setKey(e.uid,i),i.paper=n.paper),i.parent=e.contents,i.width=w,i.height=F,i.x=L,i.y=M,n.setColumnStates(i),i.invalid&&i.validate(),i.__disabled=!1})));t.itemWidth=w,t.itemHeight=F},e.prototype.disableUnusedColumns=function(t){t&&(t.column&&(t.column.width=0,t.column.height=0,t.column.__disabled=!0),N["d"](this.axisRanges.iterator(),(function(e){var i=t.rangesColumns.getKey(e.uid);i&&(i.width=0,i.height=0,i.__disabled=!0)})))},e.prototype.setColumnStates=function(t){if(this._dropFromOpenState||this._dropFromPreviousState||this._riseFromOpenState||this._riseFromPreviousState){var e=t.dataItem;if(this.xAxis instanceof Rt||this.yAxis instanceof Rt){var i,a=void 0,s=void 0;this.baseAxis==this.yAxis?(this.xOpenField&&this.xField&&this.xAxis instanceof Rt&&(i=e.getValue(this.xOpenField),a=e.getValue(this.xField)),s=e.getValue(this.xAxis.axisFieldName+"X","previousChange")):(this.yOpenField&&this.yField&&this.yAxis instanceof Rt&&(i=e.getValue(this.yOpenField),a=e.getValue(this.yField)),s=e.getValue(this.yAxis.axisFieldName+"Y","previousChange")),a<i?(e.droppedFromOpen=!0,t.defaultState.copyFrom(this._dropFromOpenState),t.setState(this._dropFromOpenState,0)):(e.droppedFromOpen=!1,t.defaultState.copyFrom(this._riseFromOpenState),t.setState(this._riseFromOpenState,0)),s<0?(e.droppedFromPrevious=!0,t.defaultState.copyFrom(this._dropFromPreviousState),t.setState(this._dropFromPreviousState,0)):(e.droppedFromPrevious=!1,t.defaultState.copyFrom(this._riseFromPreviousState),t.setState(this._riseFromPreviousState,0))}}},Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns||(this._columns=new w["c"](this.createColumnTemplate()),this._disposers.push(new w["b"](this._columns)),this._disposers.push(this._columns.template)),this._columns},enumerable:!0,configurable:!0}),e.prototype.createColumnTemplate=function(){return new si},Object.defineProperty(e.prototype,"clustered",{get:function(){return this.getPropertyValue("clustered")},set:function(t){this.setPropertyValue("clustered",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dropFromOpenState",{get:function(){return this._dropFromOpenState||(this._dropFromOpenState=this.states.create("dropFromOpenState")),this._dropFromOpenState},set:function(t){this._dropFromOpenState=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dropFromPreviousState",{get:function(){return this._dropFromPreviousState||(this._dropFromPreviousState=this.states.create("dropFromPreviousState")),this._dropFromPreviousState},set:function(t){this._dropFromPreviousState=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"riseFromOpenState",{get:function(){return this._riseFromOpenState||(this._riseFromOpenState=this.states.create("riseFromOpenState")),this._riseFromOpenState},set:function(t){this._riseFromOpenState=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"riseFromPreviousState",{get:function(){return this._riseFromPreviousState||(this._riseFromPreviousState=this.states.create("riseFromPreviousState")),this._riseFromPreviousState},set:function(t){this._riseFromPreviousState=t},enumerable:!0,configurable:!0}),e.prototype.updateLegendValue=function(e,i){var a=this;if(t.prototype.updateLegendValue.call(this,e,i),this.legendDataItem){var s,n,r=this.legendDataItem.marker;e&&(s=e.droppedFromOpen?this._dropFromOpenState:this._riseFromOpenState,n=e.droppedFromPrevious?this._dropFromPreviousState:this._riseFromPreviousState),N["d"](r.children.iterator(),(function(t){e?(t.setState(n),t.setState(s)):(t.setState(a._riseFromPreviousState),t.setState(a._riseFromOpenState))}))}},e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var a=t.createChild(J["a"]);a.shouldClone=!1,ut["c"](this,a,R["b"]),a.copyFrom(this.columns.template),a.padding(0,0,0,0),a.width=e,a.height=i;var s=t.dataItem;s.color=this.fill,s.colorOrig=this.fill},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.columns.template.copyFrom(e.columns.template)},e.prototype.getBulletLocationX=function(e,i){if(this.baseAxis==this.xAxis){var a=e.locationX;z["h"](a)||(a=.5);var s=this.getEndLocation(e.dataItem),n=this.getStartLocation(e.dataItem);return s-(s-n)*a}return t.prototype.getBulletLocationX.call(this,e,i)},e.prototype.getBulletLocationY=function(e,i){if(this.baseAxis==this.yAxis){var a=e.locationY;z["h"](a)||(a=.5);var s=this.getEndLocation(e.dataItem),n=this.getStartLocation(e.dataItem);return s-(s-n)*a}return t.prototype.getBulletLocationY.call(this,e,i)},e.prototype.getAdjustedXLocation=function(t,e,i){return z["h"](i)||(i=t?t.locations[e]:.5),this._endLocation-(this._endLocation-this._startLocation)*(1-i)},e.prototype.getAdjustedYLocation=function(t,e,i){return z["h"](i)||(i=t?t.locations[e]:.5),this._endLocation-(this._endLocation-this._startLocation)*i},e.prototype.fixVerticalCoordinate=function(t){var e=this.columns.template.pixelPaddingBottom,i=this.columns.template.pixelPaddingTop,a=-i,s=this.yAxis.axisLength+e;return et["i"](t,a,s)},e.prototype.fixHorizontalCoordinate=function(t){var e=this.columns.template.pixelPaddingLeft,i=this.columns.template.pixelPaddingRight,a=-e,s=this.xAxis.axisLength+i;return et["i"](t,a,s)},e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this.columns.clear()},e}(Kt);T["b"].registeredClasses["ColumnSeries"]=ri,T["b"].registeredClasses["ColumnSeriesDataItem"]=ni;var oi=function(t){function e(){var e=t.call(this)||this;return e.className="TreeMapSeriesDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"parentName",{get:function(){var t=this.treeMapDataItem;if(t&&t.parent)return t.parent.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){var t=this.treeMapDataItem;if(t)return t.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeMapDataItem",{get:function(){return this._dataContext},enumerable:!0,configurable:!0}),e.prototype.hide=function(e,i,a,s){var n=this.treeMapDataItem;return n&&n.hide(e),t.prototype.hide.call(this,e,i,a,s)},e.prototype.show=function(e,i,a){var s=this.treeMapDataItem;return s&&s.show(e,i,a),t.prototype.show.call(this,e,i,a)},e}(ni),li=function(t){function e(){var e=t.call(this)||this;e.className="TreeMapSeries",e.applyTheme(),e.fillOpacity=1,e.strokeOpacity=1,e.minBulletDistance=0,e.columns.template.tooltipText="{parentName} {name}: {value}",e.columns.template.configField="config";var i=new X["a"];return e.stroke=i.getFor("background"),e.dataFields.openValueX="x0",e.dataFields.valueX="x1",e.dataFields.openValueY="y0",e.dataFields.valueY="y1",e.sequencedInterpolation=!1,e.showOnInit=!1,e.columns.template.pixelPerfect=!1,e}return Object(V["c"])(e,t),e.prototype.processDataItem=function(e,i){i.seriesDataItem=e,t.prototype.processDataItem.call(this,e,i)},e.prototype.createDataItem=function(){return new oi},e.prototype.show=function(e){if(!this.preventShow){var i=this.defaultState.transitionDuration;return z["h"](e)&&(i=e),this.dataItems.each((function(t){t.show(e)})),t.prototype.showReal.call(this,i)}},e.prototype.hide=function(e){var i=this.defaultState.transitionDuration;z["h"](e)&&(i=e);var a=t.prototype.hideReal.call(this,i);return this.dataItems.each((function(t){t.hide(e)})),a},e.prototype.processValues=function(){},e.prototype.getStartLocation=function(t){return 0},e.prototype.getEndLocation=function(t){return 1},e.prototype.dataChangeUpdate=function(){},e.prototype.processConfig=function(e){e&&(z["d"](e.dataFields)&&z["i"](e.dataFields)||(e.dataFields={})),t.prototype.processConfig.call(this,e)},e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var a=t.createChild(J["a"]);a.shouldClone=!1,ut["c"](this,a,R["b"]),a.padding(0,0,0,0),a.width=e,a.height=i;var s=t.dataItem;s.color=a.fill,s.colorOrig=a.fill},e.prototype.disableUnusedColumns=function(e){t.prototype.disableUnusedColumns.call(this,e),e.column&&(e.column.__disabled=!1)},e}(ri);T["b"].registeredClasses["TreeMapSeries"]=li,T["b"].registeredClasses["TreeMapSeriesDataItem"]=oi;var hi=function(t){function e(){var e=t.call(this)||this;return e.rows=[],e.className="TreeMapDataItem",e.values.value={},e.values.x0={},e.values.y0={},e.values.x1={},e.values.y1={},e.hasChildren.children=!0,e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,t.label&&(t.label.dataItem=this),t.valueLabel&&(t.valueLabel.dataItem=this)},enumerable:!0,configurable:!0}),e.prototype.getDuration=function(){return 0},Object.defineProperty(e.prototype,"value",{get:function(){var t=0;return this.children&&0!=this.children.length?N["d"](this.children.iterator(),(function(e){var i=e.value;z["h"](i)&&(t+=i)})):t=this.values["value"].workingValue,t},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"percent",{get:function(){return this.parent?this.value/this.parent.value*100:100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x0",{get:function(){return this.values.x0.value},set:function(t){this.setValue("x0",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x1",{get:function(){return this.values.x1.value},set:function(t){this.setValue("x1",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y0",{get:function(){return this.values.y0.value},set:function(t){this.setValue("y0",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y1",{get:function(){return this.values.y1.value},set:function(t){this.setValue("y1",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.properties.name},set:function(t){this.setProperty("name",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.properties.children},set:function(t){this.setProperty("children",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"level",{get:function(){return this.parent?this.parent.level+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){var t=this.properties.color;return void 0==t&&this.parent&&(t=this.parent.color),void 0==t&&this.component&&(t=this.component.colors.getIndex(this.component.colors.step*this.index)),t},set:function(t){this.setProperty("color",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this.color},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"series",{get:function(){return this._series},set:function(t){t!=this._series&&(this._series&&(this.component.series.removeValue(this._series),this._series.dispose()),this._series=t,this._disposers.push(t))},enumerable:!0,configurable:!0}),e.prototype.hide=function(e,i,a,s){this.setWorkingValue("value",0),this.children&&this.children.each((function(t){t.hide(e,i,a,s)}));var n=this.seriesDataItem;return n&&n.bullets.each((function(t,e){e.hide(),e.preventShow=!0})),t.prototype.hide.call(this,e,i,a,s)},e.prototype.show=function(e,i,a){this.setWorkingValue("value",this.values.value.value),this.children&&this.children.each((function(t){t.show(e,i,a)}));var s=this.seriesDataItem;return s&&s.bullets.each((function(t,e){e.preventShow=!1})),t.prototype.show.call(this,e,i,a)},e}(Jt),ui=function(t){function e(){var e=t.call(this)||this;e.layoutAlgorithm=e.squarify,e.zoomable=!0,e.className="TreeMap",e._usesData=!0,e.maxLevels=2,e.currentLevel=0,e.hideParentColumns=!1,e.colors=new gt["a"],e.sorting="descending";var i=e.xAxes.push(new Rt);i.title.disabled=!0,i.strictMinMax=!0;var a=i.renderer;a.inside=!0,a.labels.template.disabled=!0,a.ticks.template.disabled=!0,a.grid.template.disabled=!0,a.axisFills.template.disabled=!0,a.minGridDistance=100,a.line.disabled=!0,a.baseGrid.disabled=!0;var s=e.yAxes.push(new Rt);s.title.disabled=!0,s.strictMinMax=!0;var n=s.renderer;n.inside=!0,n.labels.template.disabled=!0,n.ticks.template.disabled=!0,n.grid.template.disabled=!0,n.axisFills.template.disabled=!0,n.minGridDistance=100,n.line.disabled=!0,n.baseGrid.disabled=!0,n.inversed=!0,e.xAxis=i,e.yAxis=s;var r=new li;return e.seriesTemplates=new G["c"](r),r.virtualParent=e,e._disposers.push(new G["b"](e.seriesTemplates)),e._disposers.push(r),e.zoomOutButton.events.on("hit",(function(){e.zoomToChartDataItem(e._homeDataItem)}),void 0,!1),e.seriesTemplates.events.on("insertKey",(function(t){t.newValue.isTemplate=!0}),void 0,!1),e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"navigationBar",{get:function(){return this._navigationBar},set:function(t){var e=this;this._navigationBar!=t&&(this._navigationBar=t,t.parent=this,t.toBack(),t.links.template.events.on("hit",(function(t){var i=t.target.dataItem.dataContext;i.isDisposed()||(e.zoomToChartDataItem(i),e.createTreeSeries(i))}),void 0,!0),this._disposers.push(t))},enumerable:!0,configurable:!0}),e.prototype.validateData=function(){this.series.clear(),this._tempSeries=[],t.prototype.validateData.call(this),this._homeDataItem&&this._homeDataItem.dispose();var e=this.dataItems.template.clone();this._homeDataItem=e,N["d"](this.dataItems.iterator(),(function(t){t.parent=e})),e.children=this.dataItems,e.x0=0,e.y0=0,e.name=this._homeText;var i=1e3,a=10*Math.round(i*this.pixelHeight/this.pixelWidth/10)||1e3;e.x1=i,e.y1=a,this.xAxis.min=0,this.xAxis.max=i,this.xAxis.getMinMax(),this.yAxis.min=0,this.yAxis.max=a,this.yAxis.getMinMax(),this.layoutItems(e),this.createTreeSeries(e),this.feedLegend()},e.prototype.layoutItems=function(t,e){if(t){var i=t.children;e||(e=this.sorting),"ascending"==e&&i.values.sort((function(t,e){return t.value-e.value})),"descending"==e&&i.values.sort((function(t,e){return e.value-t.value})),this._updateDataItemIndexes(0),this.layoutAlgorithm(t);for(var a=0,s=i.length;a<s;a++){var n=i.getIndex(a);n.children&&this.layoutItems(n)}}},e.prototype.createTreeSeries=function(t){var e=this;this._tempSeries=[];var i=[t],a=t.parent;while(void 0!=a)this.initSeries(a),i.push(a),a=a.parent;i.reverse(),this.navigationBar&&(this.navigationBar.data=i),this.createTreeSeriesReal(t),dt["d"](this._tempSeries,(function(t){-1==e.series.indexOf(t)&&e.series.push(t),t.zIndex=t.level}))},e.prototype.createTreeSeriesReal=function(t){if(t.children){var e=t.level;if(e<this.currentLevel+this.maxLevels){this.initSeries(t);for(var i=0;i<t.children.length;i++){var a=t.children.getIndex(i);a.children&&this.createTreeSeriesReal(a)}}}},e.prototype.setData=function(e){this.currentLevel=0,this.currentlyZoomed=void 0,this.xAxis.start=0,this.xAxis.end=1,this.yAxis.start=0,this.yAxis.end=1,t.prototype.setData.call(this,e)},e.prototype.seriesAppeared=function(){return!0},e.prototype.initSeries=function(t){var e=this;if(!t.series){var i=void 0,a=this.seriesTemplates.getKey(t.level.toString());i=a?a.clone():this.series.create(),i.dataItem.dataContext=t,i.name=t.name,i.parentDataItem=t,t.series=i;var s=t.level;i.level=s;var n=t.dataContext;n&&(i.config=n.config),this.dataUsers.removeValue(i),i.data=t.children.values,i.fill=t.color,i.columnsContainer.hide(0),i.bulletsContainer.hide(0),i.columns.template.adapter.add("fill",(function(t,e){var i=e.dataItem;if(i){var a=i.treeMapDataItem;if(a)return e.fill=a.color,e.adapter.remove("fill"),a.color}})),this.zoomable&&(t.level>this.currentLevel||t.children&&t.children.length>0)&&(i.columns.template.cursorOverStyle=it["a"].pointer,this.zoomable&&i.columns.template.events.on("hit",(function(i){var a=i.target.dataItem;t.level>e.currentLevel?e.zoomToChartDataItem(a.treeMapDataItem.parent):e.zoomToSeriesDataItem(a)}),this,void 0))}this._tempSeries.push(t.series)},e.prototype.toggleBullets=function(t){var e=this;N["d"](this.series.iterator(),(function(i){-1==e._tempSeries.indexOf(i)?(i.columnsContainer.hide(),i.bulletsContainer.hide(t)):(i.columnsContainer.show(),i.bulletsContainer.show(t),i.dataItems.each((function(t){t.bullets.each((function(t,e){e.show()}))})),i.level<e.currentLevel?(e.hideParentColumns&&i.columnsContainer.hide(),i.bulletsContainer.hide(t)):i.level==e.currentLevel&&e.maxLevels>1&&i.dataItems.each((function(t){t.treeMapDataItem.children&&t.bullets.each((function(t,e){e.hide()}))})))}))},e.prototype.zoomToSeriesDataItem=function(t){this.zoomToChartDataItem(t.treeMapDataItem)},e.prototype.zoomToChartDataItem=function(t){var e=this;t||(t=this._homeDataItem);var i=this.zoomOutButton;if(i&&(t!=this._homeDataItem?i.show():i.hide()),t&&t.children){this.xAxis.zoomToValues(t.x0,t.x1),this.yAxis.zoomToValues(t.y0,t.y1),this.currentLevel=t.level,this.currentlyZoomed=t,this.createTreeSeries(t);var a=this.xAxis.rangeChangeAnimation||this.yAxis.rangeChangeAnimation;!a||a.isDisposed()||a.isFinished()?this.toggleBullets():(this._dataDisposers.push(a),a.events.once("animationended",(function(){e.toggleBullets()})))}},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("TreeMap chart"))},e.prototype.createDataItem=function(){return new hi},Object.defineProperty(e.prototype,"maxLevels",{get:function(){return this.getPropertyValue("maxLevels")},set:function(t){this.setPropertyValue("maxLevels",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentLevel",{get:function(){return this.getPropertyValue("currentLevel")},set:function(t){this.setPropertyValue("currentLevel",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideParentColumns",{get:function(){return this.getPropertyValue("hideParentColumns")},set:function(t){this.setPropertyValue("hideParentColumns",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sorting",{get:function(){return this.getPropertyValue("sorting")},set:function(t){this.setPropertyValue("sorting",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new li},Object.defineProperty(e.prototype,"homeText",{get:function(){return this._homeText},set:function(t){this._homeText=t,this._homeDataItem&&(this._homeDataItem.name=this._homeText)},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(e){if(z["d"](e["layoutAlgorithm"])&&z["j"](e["layoutAlgorithm"]))switch(e["layoutAlgorithm"]){case"squarify":e["layoutAlgorithm"]=this.squarify;break;case"binaryTree":e["layoutAlgorithm"]=this.binaryTree;break;case"slice":e["layoutAlgorithm"]=this.slice;break;case"dice":e["layoutAlgorithm"]=this.dice;break;case"sliceDice":e["layoutAlgorithm"]=this.sliceDice;break;default:delete e["layoutAlgorithm"];break}z["d"](e.navigationBar)&&!z["d"](e.navigationBar.type)&&(e.navigationBar.type="NavigationBar"),t.prototype.processConfig.call(this,e)}},e.prototype.validateLayout=function(){t.prototype.validateLayout.call(this),this.layoutItems(this.currentlyZoomed)},e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.layoutItems(this._homeDataItem),N["d"](this.series.iterator(),(function(t){t.validateRawData()})),this.zoomToChartDataItem(this._homeDataItem)},e.prototype.binaryTree=function(t){var e,i,a=t.children,s=a.length,n=new Array(s+1);for(n[0]=i=e=0;e<s;++e)n[e+1]=i+=a.getIndex(e).value;function r(t,e,i,s,o,l,h){if(t>=e-1){var u=a.getIndex(t);return u.x0=s,u.y0=o,u.x1=l,void(u.y1=h)}var d=n[t],c=i/2+d,p=t+1,f=e-1;while(p<f){var g=p+f>>>1;n[g]<c?p=g+1:f=g}c-n[p-1]<n[p]-c&&t+1<p&&--p;var m=n[p]-d,y=i-m;if(l-s>h-o){var v=(s*y+l*m)/i;r(t,p,m,s,o,v,h),r(p,e,y,v,o,l,h)}else{var x=(o*y+h*m)/i;r(t,p,m,s,o,l,x),r(p,e,y,s,x,l,h)}}s>0&&r(0,s,t.value,t.x0,t.y0,t.x1,t.y1)},e.prototype.slice=function(t){var e,i=t.x0,a=t.x1,s=t.y0,n=t.y1,r=t.children,o=-1,l=r.length,h=t.value&&(n-s)/t.value;while(++o<l)e=r.getIndex(o),e.x0=i,e.x1=a,e.y0=s,s+=e.value*h,e.y1=s},e.prototype.dice=function(t){var e,i=t.x0,a=t.x1,s=t.y0,n=t.y1,r=t.children,o=-1,l=r.length,h=t.value&&(a-i)/t.value;while(++o<l)e=r.getIndex(o),e.y0=s,e.y1=n,e.x0=i,i+=e.value*h,e.x1=i},e.prototype.sliceDice=function(t){1&t.level?this.slice(t):this.dice(t)},e.prototype.squarify=function(t){var e,i,a,s,n,r,o,l,h,u,d=(1+Math.sqrt(5))/2,c=t.x0,p=t.x1,f=t.y0,g=t.y1,m=t.children,y=0,v=0,x=m.length,b=t.value;while(y<x){i=p-c,a=g-f;do{s=m.getIndex(v++).value}while(!s&&v<x);for(n=r=s,h=Math.max(a/i,i/a)/(b*d),u=s*s*h,l=Math.max(r/u,u/n);v<x;++v){if(s+=e=m.getIndex(v).value,e<n&&(n=e),e>r&&(r=e),u=s*s*h,o=Math.max(r/u,u/n),o>l){s-=e;break}l=o}var _=this.dataItems.template.clone();_.value=s,_.dice=i<a,_.children=m.slice(y,v),_.x0=c,_.y0=f,_.x1=p,_.y1=g,_.dice?(_.y1=b?f+=a*s/b:g,this.dice(_)):(_.x1=b?c+=i*s/b:p,this.slice(_)),b-=s,y=v}},e.prototype.handleSeriesAdded2=function(){},e.prototype.handleDataItemValueChange=function(t,e){"value"==e&&this.invalidateDataItems()},e.prototype.handleDataItemWorkingValueChange=function(t,e){"value"==e&&this.invalidateDataItems()},e.prototype.getLegendLevel=function(t){if(t&&t.children){if(t.children.length>1)return t;if(1==t.children.length){var e=t.children.getIndex(0);return e.children?this.getLegendLevel(e):t}return t}},e.prototype.handleLegendSeriesAdded=function(t){},Object.defineProperty(e.prototype,"homeDataItem",{get:function(){return this._homeDataItem},enumerable:!0,configurable:!0}),e.prototype.feedLegend=function(){var t=this.legend;if(t){t.dataFields.name="name";var e=this.getLegendLevel(this._homeDataItem);if(e){var i=[];e.children.each((function(t){i.push(t)})),t.data=i}}},e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this._homeDataItem=void 0,this.series.clear(),this.navigationBar&&this.navigationBar.disposeData(),this.xAxis.disposeData(),this.yAxis.disposeData()},e.prototype.getExporting=function(){var e=this,i=t.prototype.getExporting.call(this);return i.adapter.add("formatDataFields",(function(t){return"csv"!=t.format&&"xlsx"!=t.format||z["d"](e.dataFields.children)&&delete t.dataFields[e.dataFields.children],t})),i},e}($t);T["b"].registeredClasses["TreeMap"]=ui;var di=function(t){function e(){var e=t.call(this)||this;return e._chart=new j["d"],e.className="AxisRendererX3D",e._disposers.push(e._chart),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var a=this.positionToPoint(e);if(t.element){var s=this.chart.dx3D||0,n=this.chart.dy3D||0,r=this.getHeight();t.path=B["g"]({x:s,y:n})+B["f"]({x:s,y:r+n})+B["f"]({x:0,y:r})}this.positionItem(t,a),this.toggleVisibility(t,e,0,1)},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.getHeight(),i=this.chart.dx3D||0,a=this.chart.dy3D||0;this.baseGrid.path=B["g"]({x:i,y:a})+B["f"]({x:0,y:0})+B["f"]({x:0,y:e})},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){t&&this._chart.set(t,t.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),e.prototype.handle3DChanged=function(t){"depth"!=t.property&&"angle"!=t.property||this.invalidate()},e}(Wt);T["b"].registeredClasses["AxisRendererX3D"]=di;var ci=function(t){function e(){var e=t.call(this)||this;return e._chart=new j["d"],e.className="AxisRendererY3D",e._disposers.push(e._chart),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var a=this.positionToPoint(e);if(t.element){var s=this.chart.dx3D||0,n=this.chart.dy3D||0,r=this.getWidth();t.path=B["g"]({x:0,y:0})+B["f"]({x:s,y:n})+B["f"]({x:r+s,y:n})}this.positionItem(t,a),this.toggleVisibility(t,e,0,1)},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.chart.dx3D||0,i=this.chart.dy3D||0,a=this.getWidth();this.baseGrid.path=B["g"]({x:0,y:0})+B["f"]({x:a,y:0})+B["f"]({x:a+e,y:i})},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){t&&this._chart.set(t,t.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),e.prototype.handle3DChanged=function(t){"depth"!=t.property&&"angle"!=t.property||this.invalidate()},e}(Ft),pi=i("29b3"),fi=function(t){function e(){var e=t.call(this)||this;return e.className="Column3D",e}return Object(V["c"])(e,t),e.prototype.createAssets=function(){this.column3D=this.createChild(pi["a"]),this.column3D.shouldClone=!1,this.column3D.strokeOpacity=0,this.column=this.column3D},e.prototype.validate=function(){t.prototype.validate.call(this),this.column3D&&(this.column3D.width=this.pixelWidth,this.column3D.height=this.pixelHeight,this.column3D.invalid&&this.column3D.validate())},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.column3D&&this.column3D.copyFrom(e.column3D)},e.prototype.setFill=function(e){t.prototype.setFill.call(this,e),this.column.fill=e},e}(si);T["b"].registeredClasses["Column3D"]=fi;var gi=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeries3DDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(ni),mi=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeries3D",e.columns.template.column3D.applyOnClones=!0,e.columns.template.hiddenState.properties.visible=!0,e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"columnsContainer",{get:function(){var t=this.chart;return t&&t.columnsContainer&&"vertical"!=t.leftAxesContainer.layout&&"vertical"!=t.rightAxesContainer.layout&&"horizontal"!=t.bottomAxesContainer.layout&&"horizontal"!=t.topAxesContainer.layout?t.columnsContainer:this._columnsContainer},enumerable:!0,configurable:!0}),e.prototype.validateDataElementReal=function(e){t.prototype.validateDataElementReal.call(this,e),e.column&&(e.column.dx=this.dx,e.column.dy=this.dy,e.column.visible=this.visible)},e.prototype.validateDataElements=function(){t.prototype.validateDataElements.call(this),this.chart&&this.chart.invalidateLayout()},e.prototype.createColumnTemplate=function(){return new fi},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0);var e=this.columns.template;e.column3D.depth=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t);var e=this.columns.template;e.column3D.angle=t},enumerable:!0,configurable:!0}),e}(ri);T["b"].registeredClasses["ColumnSeries3D"]=mi,T["b"].registeredClasses["ColumnSeries3DDataItem"]=gi;(function(t){function e(){var e=t.call(this)||this;return e.className="XYChart3DDataItem",e.applyTheme(),e}Object(V["c"])(e,t)})(Jt);var yi=function(t){function e(){var e=t.call(this)||this;e._axisRendererX=di,e._axisRendererY=ci,e.className="XYChart3D",e.depth=30,e.angle=30;var i=e.seriesContainer.createChild(F["a"]);return i.shouldClone=!1,i.isMeasured=!1,i.layout="none",e.columnsContainer=i,e.columnsContainer.mask=e.createChild(R["a"]),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.updateSeriesMasks=function(){if(t.prototype.updateSeriesMasks.call(this),tt["w"]()){var e=this.columnsContainer,i=e.mask;e.mask=void 0,e.mask=i}},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dx3D",{get:function(){return et["g"](this.angle)*this.depth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dy3D",{get:function(){return-et["F"](this.angle)*this.depth},enumerable:!0,configurable:!0}),e.prototype.validateLayout=function(){t.prototype.validateLayout.call(this),this.fixColumns()},e.prototype.fixLayout=function(){this.chartContainer.marginTop=-this.dy3D,this.chartContainer.paddingRight=this.dx3D,this.scrollbarX&&(this.scrollbarX.dy=this.dy3D,this.scrollbarX.dx=this.dx3D),this.scrollbarY&&(this.scrollbarY.dy=this.dy3D,this.scrollbarY.dx=this.dx3D),this.fixColumns(),t.prototype.fixLayout.call(this)},e.prototype.fixColumns=function(){var t=this,e=1,i=0;N["d"](this.series.iterator(),(function(t){t instanceof mi&&(!t.clustered&&i>0&&e++,t.depthIndex=e-1,i++)}));var a=0;N["d"](this.series.iterator(),(function(i){if(i instanceof mi){i.depth=t.depth/e,i.angle=t.angle,i.columnsContainer==t.columnsContainer&&(i.dx=t.depth/e*et["g"](t.angle)*i.depthIndex,i.dy=-t.depth/e*et["F"](t.angle)*i.depthIndex);var s=!1;(i.baseAxis==i.xAxis&&i.xAxis.renderer.inversed||i.baseAxis==i.yAxis&&i.yAxis.renderer.inversed)&&(s=!0);var n=1;i.dataItems.each((function(t){var e=t.column;e&&(e.zIndex=s?1e3*(1e3-n)+a-100*i.depthIndex:1e3*n+a-100*i.depthIndex),n++})),s?a--:a++}})),this.maskColumns()},e.prototype.processConfig=function(e){if(e&&z["d"](e.series)&&z["e"](e.series))for(var i=0,a=e.series.length;i<a;i++)e.series[i].type=e.series[i].type||"ColumnSeries3D";t.prototype.processConfig.call(this,e)},e.prototype.maskColumns=function(){var t=this.plotContainer.pixelWidth,e=this.plotContainer.pixelHeight,i=this.dx3D,a=this.dy3D,s=B["g"]({x:0,y:0})+B["f"]({x:i,y:a})+B["f"]({x:t+i,y:a})+B["f"]({x:t+i,y:e+a})+B["f"]({x:t,y:e})+B["f"]({x:t,y:e})+B["f"]({x:0,y:e})+B["d"](),n=this.columnsContainer;n&&n.mask&&(n.mask.path=s)},e}($t);T["b"].registeredClasses["XYChart3D"]=yi;var vi=function(t){function e(){var e=t.call(this)||this;e.className="HeatLegend",e.markerContainer=e.createChild(F["a"]),e.markerContainer.shouldClone=!1,e.markerCount=1;var i=new J["a"];return i.minHeight=20,i.minWidth=20,i.interactionsEnabled=!1,i.fillOpacity=1,i.cornerRadius(0,0,0,0),e.markerContainer.minHeight=20,e.markerContainer.minWidth=20,e.orientation="horizontal",e.markers=new w["c"](i),e._disposers.push(new w["b"](e.markers)),e._disposers.push(e.markers.template),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.getMinFromRules=function(t){var e,i=this.series;if(i)return N["e"](i.heatRules.iterator(),(function(i){return i.property!=t||(e=i.min,!1)})),e},e.prototype.getMaxFromRules=function(t){var e,i=this.series;if(i)return N["d"](i.heatRules.iterator(),(function(i){return i.property!=t||(e=i.max,!1)})),e},e.prototype.validate=function(){t.prototype.validate.call(this),this.valueAxis.renderer.inversed=this.reverseOrder;var e=this.series,i=this.minColor,a=this.maxColor;if(z["d"](i)||(i=Object(lt["c"])(this.getMinFromRules("fill"))),z["d"](a)||(a=Object(lt["c"])(this.getMaxFromRules("fill"))),e){var s=e.fill;!z["d"](i)&&s instanceof lt["a"]&&(i=s),!z["d"](a)&&s instanceof lt["a"]&&(a=s)}z["d"](a)||(a=Object(lt["c"])(this.getMaxFromRules("fill")));var n=z["l"](this.getMinFromRules("fillOpacity"));z["h"](n)||(n=1);var r=z["l"](this.getMaxFromRules("fillOpacity"));z["h"](r)||(r=1);var o=z["l"](this.getMinFromRules("strokeOpacity"));z["h"](o)||(o=1);var l=z["l"](this.getMaxFromRules("strokeOpacity"));z["h"](l)||(l=1);for(var h=Object(lt["c"])(this.getMinFromRules("stroke")),u=Object(lt["c"])(this.getMaxFromRules("stroke")),d=0;d<this.markerCount;d++){var c=this.markers.getIndex(d);if(c||(c=this.markers.create(),c.parent=this.markerContainer,c.height=Object(Y["c"])(100),c.width=Object(Y["c"])(100)),1==this.markerCount){var p=new Be["a"];if(this.reverseOrder?(p.addColor(a,r),p.addColor(i,n)):(p.addColor(i,n),p.addColor(a,r)),"vertical"==this.orientation&&(p.rotation=-90),c.fill=p,z["d"](h)&&z["d"](u)){var f=new Be["a"];this.reverseOrder?(f.addColor(u,l),f.addColor(h,o)):(f.addColor(h,o),f.addColor(u,l)),"vertical"==this.orientation&&(f.rotation=-90),c.stroke=f}}else{var g=d;this.reverseOrder&&(g=this.markerCount-d-1);var m=new lt["a"](ct["c"](i.rgb,a.rgb,g/this.markerCount));c.fill=m;var y=n+(r-n)*g/this.markerCount;if(c.fillOpacity=y,z["d"](h)&&z["d"](u)){var v=new lt["a"](ct["c"](h.rgb,u.rgb,g/this.markerCount));c.stroke=v;var x=o+(l-o)*g/this.markerCount;c.strokeOpacity=x}}}var b=this.valueAxis.renderer;this.markerCount>1&&("horizontal"==this.orientation?b.minGridDistance=this.measuredWidth/this.markerCount:b.minGridDistance=this.measuredHeight/this.markerCount),this.valueAxis.invalidate();d=this.markerCount;for(var _=this.markers.length;d<_;d++)this.markers.getIndex(d).parent=void 0},Object.defineProperty(e.prototype,"minColor",{get:function(){return this.getPropertyValue("minColor")},set:function(t){t instanceof lt["a"]||(t=Object(lt["c"])(t)),this.setColorProperty("minColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxColor",{get:function(){return this.getPropertyValue("maxColor")},set:function(t){t instanceof lt["a"]||(t=Object(lt["c"])(t)),this.setColorProperty("maxColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerCount",{get:function(){return this.getPropertyValue("markerCount")},set:function(t){this.setPropertyValue("markerCount",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(t){this.setPropertyValue("minValue",t),this.valueAxis.min=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(t){this.setPropertyValue("maxValue",t),this.valueAxis.max=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0);var e=this.markerContainer,i=this.valueAxis;"horizontal"==t?(z["d"](this.width)||(this.width=200),this.height=void 0,i.width=Object(Y["c"])(100),i.height=void 0,i.tooltip.pointerOrientation="vertical",this.layout="vertical",e.width=Object(Y["c"])(100),e.height=void 0,i.renderer instanceof Wt||(i.renderer=new Wt)):(z["d"](this.height)||(this.height=200),this.width=void 0,this.layout="horizontal",e.width=void 0,e.height=Object(Y["c"])(100),i.height=Object(Y["c"])(100),i.width=void 0,i.tooltip.pointerOrientation="horizontal",i.renderer instanceof Ft||(i.renderer=new Ft),i.renderer.inside=!0,i.renderer.labels.template.inside=!0,this.markerContainer.reverseOrder=!0);var a=i.renderer;a.grid.template.disabled=!0,a.axisFills.template.disabled=!0,a.baseGrid.disabled=!0,a.labels.template.padding(2,3,2,3),a.minHeight=void 0,a.minWidth=void 0,this.markerContainer.layout=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueAxis",{get:function(){return this._valueAxis||(this.valueAxis=this.createChild(Rt),this.valueAxis.shouldClone=!1),this._valueAxis},set:function(t){this._valueAxis=t,t.parent=this,t.strictMinMax=!0,this.orientation=this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"series",{get:function(){return this._series},set:function(t){var e=this;this._series=t;var i="value";try{var a=t.heatRules.getIndex(0).dataField;a&&(i=a)}catch(s){}this.updateMinMax(t.dataItem.values[i].low,t.dataItem.values[i].high),t.dataItem.events.on("calculatedvaluechanged",(function(a){e.updateMinMax(t.dataItem.values[i].low,t.dataItem.values[i].high)}),void 0,!1),t.heatRules.events.on("inserted",this.invalidate,this,!1),t.heatRules.events.on("removed",this.invalidate,this,!1)},enumerable:!0,configurable:!0}),e.prototype.updateMinMax=function(t,e){var i=this.valueAxis;z["h"](this.minValue)||(i.min=t,i.invalidate()),z["h"](this.maxValue)||(i.max=e,i.invalidate())},e.prototype.processConfig=function(e){if(e&&z["d"](e.series)&&z["j"](e.series)&&z["j"](e.series))if(this.map.hasKey(e.series))e.series=this.map.getKey(e.series);else{var i=e.series,a=this.map.events.on("insertKey",(function(t){t.key==i&&(this.series=t.newValue,a.dispose())}),this);this._disposers.push(a),delete e.series}t.prototype.processConfig.call(this,e)},e}(F["a"]);T["b"].registeredClasses["HeatLegend"]=vi;var xi=function(t){function e(){var e=t.call(this)||this;return e.className="Candlestick",e.layout="none",e}return Object(V["c"])(e,t),e.prototype.createAssets=function(){t.prototype.createAssets.call(this),this.lowLine=this.createChild(ae["a"]),this.lowLine.shouldClone=!1,this.highLine=this.createChild(ae["a"]),this.highLine.shouldClone=!1},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.lowLine&&this.lowLine.copyFrom(e.lowLine),this.highLine&&this.highLine.copyFrom(e.highLine)},e}(si);T["b"].registeredClasses["Candlestick"]=xi;var bi=function(t){function e(){var e=t.call(this)||this;return e.values.lowValueX={},e.values.lowValueY={},e.values.highValueX={},e.values.highValueY={},e.className="CandlestickSeriesDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"lowValueX",{get:function(){return this.values.lowValueX.value},set:function(t){this.setValue("lowValueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lowValueY",{get:function(){return this.values.lowValueY.value},set:function(t){this.setValue("lowValueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"highValueX",{get:function(){return this.values.highValueX.value},set:function(t){this.setValue("highValueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"highValueY",{get:function(){return this.values.highValueY.value},set:function(t){this.setValue("highValueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"closeValueX",{get:function(){return this.values.valueX.value},set:function(t){this.setValue("valueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"closeValueY",{get:function(){return this.values.valueY.value},set:function(t){this.setValue("valueY",t)},enumerable:!0,configurable:!0}),e}(ni),_i=function(t){function e(){var e=t.call(this)||this;e.className="CandlestickSeries",e.groupFields.lowValueX="low",e.groupFields.lowValueY="low",e.groupFields.highValueX="high",e.groupFields.highValueY="high",e.strokeOpacity=1;var i=new X["a"],a=i.getFor("positive"),s=i.getFor("negative");return e.dropFromOpenState.properties.fill=s,e.dropFromOpenState.properties.stroke=s,e.riseFromOpenState.properties.fill=a,e.riseFromOpenState.properties.stroke=a,e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Candlestick Series"))},e.prototype.createDataItem=function(){return new bi},e.prototype.validateDataElementReal=function(e){t.prototype.validateDataElementReal.call(this,e),this.validateCandlestick(e)},e.prototype.validateCandlestick=function(t){var e=t.column;if(e){var i=e.lowLine,a=e.highLine;if(this.baseAxis==this.xAxis){var s=e.pixelWidth/2;i.x=s,a.x=s;var n=t.getWorkingValue(this.yOpenField),r=t.getWorkingValue(this.yField),o=this.yAxis.getY(t,this.yOpenField),l=this.yAxis.getY(t,this.yField),h=this.yAxis.getY(t,this.yLowField),u=this.yAxis.getY(t,this.yHighField),d=e.pixelY;i.y1=h-d,a.y1=u-d,n<r?(i.y2=o-d,a.y2=l-d):(i.y2=l-d,a.y2=o-d)}if(this.baseAxis==this.yAxis){var c=e.pixelHeight/2;i.y=c,a.y=c;var p=t.getWorkingValue(this.xOpenField),f=t.getWorkingValue(this.xField),g=this.xAxis.getX(t,this.xOpenField),m=this.xAxis.getX(t,this.xField),y=this.xAxis.getX(t,this.xLowField),v=this.xAxis.getX(t,this.xHighField),x=e.pixelX;i.x1=y-x,a.x1=v-x,p<f?(i.x2=g-x,a.x2=m-x):(i.x2=m-x,a.x2=g-x)}N["d"](this.axisRanges.iterator(),(function(e){var s=t.rangesColumns.getKey(e.uid);if(s){var n=s.lowLine;n.x=i.x,n.y=i.y,n.x1=i.x1,n.x2=i.x2,n.y1=i.y1,n.y2=i.y2;var r=s.highLine;r.x=a.x,r.y=a.y,r.x1=a.x1,r.x2=a.x2,r.y1=a.y1,r.y2=a.y2}}))}},Object.defineProperty(e.prototype,"xLowField",{get:function(){return this._xLowField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yLowField",{get:function(){return this._yLowField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xHighField",{get:function(){return this._xHighField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yHighField",{get:function(){return this._yHighField},enumerable:!0,configurable:!0}),e.prototype.defineFields=function(){t.prototype.defineFields.call(this);var e=this.xAxis,i=this.yAxis;if(e&&i){if(this.baseAxis==e){var a=tt["c"](i.axisFieldName);this._yLowField="low"+a+"Y",this._yHighField="high"+a+"Y"}if(this.baseAxis==i){var s=tt["c"](e.axisFieldName);this._xLowField="low"+s+"X",this._xHighField="high"+s+"X"}this.addValueField(e,this._xValueFields,this._xLowField),this.addValueField(e,this._xValueFields,this._xHighField),this.addValueField(i,this._yValueFields,this._yLowField),this.addValueField(i,this._yValueFields,this._yHighField)}},e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var a,s,n=t.createChild(xi);n.shouldClone=!1,n.copyFrom(this.columns.template);var r=n.lowLine,o=n.highLine;this.baseAxis==this.yAxis?(a=e/3,s=i,r.y=i/2,o.y=i/2,r.x2=e/3,o.x2=e/3,o.x=e/3*2,n.column.x=e/3):(a=e,s=i/3,r.x=e/2,o.x=e/2,r.y2=i/3,o.y2=i/3,o.y=i/3*2,n.column.y=i/3),n.width=a,n.height=s,ut["c"](this,t,R["b"]),ut["c"](this.columns.template,n,R["b"]),n.stroke=this.riseFromOpenState.properties.stroke,n.fill=n.stroke;var l=t.dataItem;l.color=n.fill,l.colorOrig=n.fill},e.prototype.createColumnTemplate=function(){return new xi},e}(ri);T["b"].registeredClasses["CandlestickSeries"]=_i,T["b"].registeredClasses["CandlestickSeriesDataItem"]=bi;var Pi=function(t){function e(){var e=t.call(this)||this;return e.className="OHLC",e.layout="none",e}return Object(V["c"])(e,t),e.prototype.createAssets=function(){this.openLine=this.createChild(ae["a"]),this.openLine.shouldClone=!1,this.highLowLine=this.createChild(ae["a"]),this.highLowLine.shouldClone=!1,this.closeLine=this.createChild(ae["a"]),this.closeLine.shouldClone=!1},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.openLine&&this.openLine.copyFrom(e.openLine),this.highLowLine&&this.highLowLine.copyFrom(e.highLowLine),this.closeLine&&this.closeLine.copyFrom(e.closeLine)},e}(xi);T["b"].registeredClasses["OHLC"]=Pi;var Ci=function(t){function e(){var e=t.call(this)||this;return e.className="OHLCSeriesDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(bi),Ii=function(t){function e(){var e=t.call(this)||this;return e.className="OHLCSeries",e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("OHLC Series"))},e.prototype.createDataItem=function(){return new Ci},e.prototype.validateCandlestick=function(t){var e=t.column;if(e){var i=e.openLine,a=e.highLowLine,s=e.closeLine;if(this.baseAxis==this.xAxis){var n=e.pixelWidth/2;a.x=n,t.getWorkingValue(this.yOpenField),t.getWorkingValue(this.yField);var r=this.yAxis.getY(t,this.yOpenField),o=this.yAxis.getY(t,this.yField),l=this.yAxis.getY(t,this.yLowField),h=this.yAxis.getY(t,this.yHighField),u=e.pixelY;i.y1=r-u,i.y2=r-u,i.x1=0,i.x2=n,s.y1=o-u,s.y2=o-u,s.x1=n,s.x2=2*n,a.y1=h-u,a.y2=l-u}if(this.baseAxis==this.yAxis){var d=e.pixelHeight/2;a.y=d,t.getWorkingValue(this.xOpenField),t.getWorkingValue(this.xField);var c=this.xAxis.getX(t,this.xOpenField),p=this.xAxis.getX(t,this.xField),f=this.xAxis.getX(t,this.xLowField),g=this.xAxis.getX(t,this.xHighField),m=e.pixelX;i.x1=c-m,i.x2=c-m,i.y1=d,i.y2=2*d,s.x1=p-m,s.x2=p-m,s.y1=0,s.y2=d,a.x1=g-m,a.x2=f-m}N["d"](this.axisRanges.iterator(),(function(e){var n=t.rangesColumns.getKey(e.uid);if(n){var r=n.openLine;r.x=i.x,r.y=i.y,r.x1=i.x1,r.x2=i.x2,r.y1=i.y1,r.y2=i.y2;var o=n.closeLine;o.x=s.x,o.y=s.y,o.x1=s.x1,o.x2=s.x2,o.y1=s.y1,o.y2=s.y2;var l=n.highLowLine;l.x=a.x,l.y=a.y,l.x1=a.x1,l.x2=a.x2,l.y1=a.y1,l.y2=a.y2}}))}},e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var a,s,n=t.createChild(Pi);n.shouldClone=!1,n.copyFrom(this.columns.template);var r=n.openLine,o=n.closeLine,l=n.highLowLine;this.baseAxis==this.yAxis?(a=e/3,s=i,l.y=i/2,l.x2=e,r.x=e/3*2,r.y2=i/2,o.x=e/3,o.y2=i,o.y1=i/2):(a=e,s=i/3,l.x=e/2,l.y2=i,r.y=i/3*2,r.x2=e/2,o.y=i/3,o.x2=e,o.x1=e/2),n.width=a,n.height=s,ut["c"](this,t,R["b"]),ut["c"](this.columns.template,n,R["b"]),n.stroke=this.riseFromOpenState.properties.stroke;var h=t.dataItem;h.color=n.stroke,h.colorOrig=n.stroke},e.prototype.createColumnTemplate=function(){return new Pi},e}(_i);T["b"].registeredClasses["OHLCSeries"]=Ii,T["b"].registeredClasses["OHLCSeriesDataItem"]=Ci;var Ai=function(t){function e(){var e=t.call(this)||this;return e.className="StepLineSeriesSegment",e}return Object(V["c"])(e,t),e.prototype.drawSegment=function(t,e,i,a,s,n){if(t.length>0&&e.length>0)if(s){var r=B["g"](t[0]);if(t.length>0)for(var o=1;o<t.length;o++){var l=t[o];o/2==Math.round(o/2)?r+=B["g"](l):r+=B["f"](l)}this.strokeSprite.path=r,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(r=B["g"](t[0])+B["h"](t),r+=B["f"](e[0])+B["h"](e),r+=B["f"](t[0]),r+=B["d"](),this.fillSprite.path=r)}else{r=B["g"](t[0])+B["h"](t);this.strokeSprite.path=r,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(r+=B["f"](e[0])+B["h"](e),r+=B["f"](t[0]),r+=B["d"](),this.fillSprite.path=r)}else this.strokeSprite.path="",this.fillSprite.path=""},e}(te);T["b"].registeredClasses["StepLineSeriesSegment"]=Ai;var Oi=function(t){function e(){var e=t.call(this)||this;return e.className="StepLineSeriesDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(ne),Di=function(t){function e(){var e=t.call(this)||this;return e.className="StepLineSeries",e.applyTheme(),e.startLocation=0,e.endLocation=1,e}return Object(V["c"])(e,t),e.prototype.createDataItem=function(){return new Oi},e.prototype.addPoints=function(t,e,i,a,s){var n,r,o,l;this.baseAxis==this.xAxis&&(n=this.startLocation,r=this.endLocation,o=this.getAdjustedXLocation(e,this.yOpenField),l=this.getAdjustedXLocation(e,this.yField)),this.baseAxis==this.yAxis&&(o=this.startLocation,l=this.endLocation,n=this.getAdjustedXLocation(e,this.xOpenField),r=this.getAdjustedXLocation(e,this.xField));var h=this.xAxis.getX(e,i,n),u=this.yAxis.getY(e,a,o),d=this.xAxis.getX(e,i,r),c=this.yAxis.getY(e,a,l);if(h=et["i"](h,-1e5,1e5),u=et["i"](u,-1e5,1e5),d=et["i"](d,-1e5,1e5),c=et["i"](c,-1e5,1e5),!this.noRisers&&t.length>1){var p=t[t.length-1];this.baseAxis==this.xAxis&&(s?t.push({x:p.x,y:c}):t.push({x:h,y:p.y})),this.baseAxis==this.yAxis&&(s?t.push({x:d,y:p.y}):t.push({x:p.x,y:u}))}var f={x:h,y:u},g={x:d,y:c};s?t.push(g,f):t.push(f,g)},e.prototype.drawSegment=function(t,e,i){var a=!1;this.yAxis==this.baseAxis&&(a=!0),t.drawSegment(e,i,this.tensionX,this.tensionY,this.noRisers,a)},e.prototype.createSegment=function(){return new Ai},Object.defineProperty(e.prototype,"noRisers",{get:function(){return this.getPropertyValue("noRisers")},set:function(t){this.setPropertyValue("noRisers",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t,!0)},enumerable:!0,configurable:!0}),e}(re);T["b"].registeredClasses["StepLineSeries"]=Di,T["b"].registeredClasses["StepLineSeriesDataItem"]=Oi;var ki=function(t){function e(){var e=t.call(this)||this;return e.className="RadarColumn",e}return Object(V["c"])(e,t),e.prototype.createAssets=function(){this.radarColumn=this.createChild(Ae["a"]),this.radarColumn.shouldClone=!1,this.radarColumn.strokeOpacity=void 0,this.column=this.radarColumn},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.radarColumn&&this.radarColumn.copyFrom(e.radarColumn)},e.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");return z["h"](t)?t:this.radarColumn.getTooltipX()},e.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipX");return z["h"](t)?t:this.radarColumn.getTooltipY()},e}(si);T["b"].registeredClasses["RadarColumn"]=ki;var Vi=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeriesDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(ni),Ti=function(t){function e(){var e=t.call(this)||this;return e.className="RadarColumnSeries",e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.createColumnTemplate=function(){return new ki},e.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},e.prototype.disableUnusedColumns=function(t){t&&(t.column&&(t.column.__disabled=!0),N["d"](this.axisRanges.iterator(),(function(e){var i=t.rangesColumns.getKey(e.uid);i&&(i.__disabled=!0)})))},e.prototype.validateDataElementReal=function(t){var e,i,a,s,n=this,r=this.chart.startAngle,o=this.chart.endAngle,l=this.yField,h=this.yOpenField,u=this.xField,d=this.xOpenField,c=this.getStartLocation(t),p=this.getEndLocation(t),f=(o-r)/(this.dataItems.length*(this.end-this.start)),g=t.column;g||(g=this.columns.create(),t.column=g,ut["c"](this,g,R["b"]),ut["c"](this.columns.template,g,R["b"]),t.addSprite(g),g.paper=this.paper,this.setColumnStates(g));var m=g.width,y=100;m instanceof Y["a"]&&(y=m.percent);var v=et["E"]((p-c)*(1-y/100)/2,5);if(c+=v,p-=v,this.xAxis instanceof Ht&&this.yAxis instanceof Ht?(a=et["q"]({x:this.yAxis.getX(t,l,0,"valueY"),y:this.yAxis.getY(t,l,0,"valueY")}),s=et["q"]({x:this.yAxis.getX(t,h,1,"valueY"),y:this.yAxis.getY(t,h,1,"valueY")}),e=this.xAxis.getAngle(t,d,0,"valueX"),i=this.xAxis.getAngle(t,u,1,"valueX"),r+=c*f,o-=(1-p)*f):this.baseAxis==this.xAxis?(a=et["q"]({x:this.yAxis.getX(t,l,t.locations[l],"valueY"),y:this.yAxis.getY(t,l,t.locations[l],"valueY")}),s=et["q"]({x:this.yAxis.getX(t,h,t.locations[h],"valueY"),y:this.yAxis.getY(t,h,t.locations[h],"valueY")}),e=this.xAxis.getAngle(t,d,c,"valueX"),i=this.xAxis.getAngle(t,u,p,"valueX"),r+=c*f,o-=(1-p)*f):(a=et["q"]({x:this.yAxis.getX(t,l,c,"valueY"),y:this.yAxis.getY(t,l,c,"valueY")}),s=et["q"]({x:this.yAxis.getX(t,h,p,"valueY"),y:this.yAxis.getY(t,h,p,"valueY")}),e=this.xAxis.getAngle(t,u,t.locations[u],"valueX"),i=this.xAxis.getAngle(t,d,t.locations[d],"valueX")),i<e){var x=i;i=e,e=x}e=et["i"](e,r,o),i=et["i"](i,r,o);var b=g.radarColumn;b.startAngle=e;var _=i-e;_>0?(b.arc=_,b.radius=a,b.innerRadius=s,g.__disabled=!1,g.parent=this.columnsContainer,N["d"](this.axisRanges.iterator(),(function(i){var r=t.rangesColumns.getKey(i.uid);r||(r=n.columns.create(),ut["h"](n.columns.template,r,R["b"]),ut["c"](i.contents,r,R["b"]),r.dataItem&&dt["o"](r.dataItem.sprites,r),t.addSprite(r),r.paper=n.paper,n.setColumnStates(r),t.rangesColumns.setKey(i.uid,r));var o=r.radarColumn;o.startAngle=e,o.arc=_,o.radius=a,o.innerRadius=s,o.invalid&&(o.paper=n.paper,o.validate()),r.__disabled=!1,r.parent=i.contents}))):this.disableUnusedColumns(t)},e.prototype.getPoint=function(t,e,i,a,s,n,r){n||(n="valueX"),r||(r="valueY");var o=this.yAxis.getX(t,i,s,r),l=this.yAxis.getY(t,i,s,r),h=et["q"]({x:o,y:l});0==h&&(h=1e-5);var u=this.xAxis.getAngle(t,e,a,n);return{x:h*et["g"](u),y:h*et["F"](u)}},e.prototype.getMaskPath=function(){var t=this.yAxis.renderer;return B["a"](t.startAngle,t.endAngle-t.startAngle,t.pixelRadius,t.pixelInnerRadius)},e.prototype.positionBulletReal=function(t,e,i){var a=this.xAxis,s=this.yAxis;(e<a.start||e>a.end||i<s.start||i>s.end)&&(t.visible=!1),t.moveTo(this.xAxis.renderer.positionToPoint(e,i))},e.prototype.setXAxis=function(e){t.prototype.setXAxis.call(this,e),this.updateRendererRefs()},e.prototype.setYAxis=function(e){t.prototype.setYAxis.call(this,e),this.updateRendererRefs()},e.prototype.updateRendererRefs=function(){var t=this.xAxis.renderer,e=this.yAxis.renderer;t.axisRendererY=e},e}(ri);T["b"].registeredClasses["RadarColumnSeries"]=Ti,T["b"].registeredClasses["RadarColumnSeriesDataItem"]=Vi;var Si=function(t){function e(){var e=t.call(this)||this;return e.slice=e.createChild(R["a"]),e.slice.shouldClone=!1,e.slice.setElement(e.paper.add("path")),e.slice.isMeasured=!1,e.orientation="vertical",e.bottomWidth=Object(Y["c"])(100),e.topWidth=Object(Y["c"])(100),e.isMeasured=!1,e.width=10,e.height=10,e.expandDistance=0,e.className="FunnelSlice",e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.pixelPaddingTop,i=this.pixelPaddingBottom,a=this.pixelPaddingRight,s=this.pixelPaddingLeft,n=this.pixelWidth-a-s,r=this.pixelHeight-e-i,o=this.expandDistance,l="";if("vertical"==this.orientation){var h=tt["E"](this.topWidth,n),u=tt["E"](this.bottomWidth,n),d={x:(n-h)/2+s,y:e},c={x:(n+h)/2+s,y:e},p={x:(n+u)/2+s,y:e+r},f={x:(n-u)/2+s,y:e+r},g={x:c.x+(p.x-c.x)/2+o*r,y:c.y+.5*r},m={x:d.x+(f.x-d.x)/2-o*r,y:d.y+.5*r},y=B["f"](p),v="";0!=o&&(y=B["i"](p,g),v=B["i"](d,m)),l=B["g"](d)+B["f"](c)+y+B["f"](f)+v,this.tickPoint={x:c.x+(p.x-c.x)/2,y:c.y+(p.y-c.y)/2}}else{h=tt["E"](this.topWidth,r),u=tt["E"](this.bottomWidth,r);var x={x:s,y:(r-h)/2+e},b={x:s,y:(r+h)/2+e},_={x:s+n,y:(r-u)/2+e},P={x:s+n,y:(r+u)/2+e};g={y:x.y+(_.y-x.y)/2-o*n,x:x.x+.5*n},m={y:b.y+(P.y-b.y)/2+o*n,x:b.x+.5*n},y=B["f"](_),v="";0!=o&&(y=B["i"](_,g),v=B["i"](b,m)),l=B["g"](b)+B["f"](x)+y+B["f"](P)+v,this.tickPoint={y:b.y+(P.y-b.y)/2,x:b.x+(P.x-b.x)/2}}this.slice.path=l,this.invalidateLayout()},e.prototype.getPoint=function(t,e){var i=this.pixelPaddingTop,a=this.pixelPaddingBottom,s=this.pixelPaddingRight,n=this.pixelPaddingLeft,r=this.pixelWidth-s-n,o=this.pixelHeight-i-a;if("vertical"==this.orientation){var l=tt["E"](this.topWidth,r),h=tt["E"](this.bottomWidth,r),u={x:(r-l)/2+n,y:i},d={x:(r+l)/2+n,y:i},c={x:(r+h)/2+n,y:i+o},p={x:(r-h)/2+n,y:i+o},f=u.x+(p.x-u.x)*e,g=d.x+(c.x-d.x)*e;return{x:f+(g-f)*t,y:d.y+(c.y-d.y)*e}}l=tt["E"](this.topWidth,o),h=tt["E"](this.bottomWidth,o);var m={x:n,y:(o-l)/2+i},y={x:n,y:(o+l)/2+i},v={x:n+r,y:(o-h)/2+i},x={x:n+r,y:(o+h)/2+i},b=m.y+(v.y-m.y)*t,_=y.y+(x.y-y.y)*t;return{y:b+(_-b)*e,x:m.x+(v.x-m.x)*t}},Object.defineProperty(e.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(t){this.setPercentProperty("bottomWidth",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(t){this.setPercentProperty("topWidth",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expandDistance",{get:function(){return this.getPropertyValue("expandDistance")},set:function(t){this.setPropertyValue("expandDistance",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.slice&&this.slice.copyFrom(e.slice)},e}(F["a"]);T["b"].registeredClasses["FunnelSlice"]=Si;var ji=function(t){function e(){var e=t.call(this)||this;return e._label=new j["d"],e._slice=new j["d"],e.className="FunnelTick",e.element=e.paper.add("path"),e._disposers.push(e._label),e._disposers.push(e._slice),e.setPropertyValue("locationX",0),e.setPropertyValue("locationY",0),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.slice,i=e.getPoint(this.locationX,this.locationY);if(i){var a=this.label,s=e.dataItem.component,n=void 0,r=void 0,o=void 0;if("vertical"==s.orientation){var l=a.pixelX,h=a.pixelY;s.labelsOpposite||(l+=a.maxRight),n=tt["I"](i,e,this.parent),o=tt["I"]({x:l,y:h},a.parent,this.parent),r={x:a.parent.pixelX-this.length,y:o.y},s.labelsOpposite||(r.x=a.parent.measuredWidth+this.length)}else{l=a.pixelX,h=a.pixelY;s.labelsOpposite||(h+=a.maxBottom),n=tt["I"](i,e,this.parent),o=tt["I"]({x:l,y:h},a.parent,this.parent),r={x:o.x,y:a.parent.pixelY-this.length},s.labelsOpposite||(r.y=a.parent.measuredHeight+this.length)}this.path=B["g"](n)+B["f"](r)+B["f"](o)}},Object.defineProperty(e.prototype,"slice",{get:function(){return this._slice.get()},set:function(t){this._slice.set(t,new j["c"]([t.events.on("transformed",this.invalidate,this,!1),t.events.on("validated",this.invalidate,this,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label.get()},set:function(t){this._label.set(t,t.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(t){this.setPropertyValue("locationX",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(t){this.setPropertyValue("locationY",t,!1,!0)},enumerable:!0,configurable:!0}),e}(Vt);T["b"].registeredClasses["FunnelTick"]=ji;var wi=function(t){function e(){var e=t.call(this)||this;return e.className="FunnelSeriesDataItem",e.events.on("visibilitychanged",(function(){e.component&&e.component.invalidateDataItems()}),e,!1),e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"sliceLink",{get:function(){var t=this;if(!this._sliceLink){var e=this.component.sliceLinks.create();this._sliceLink=e,this._disposers.push(e),e.parent=this.component.slicesContainer,this._disposers.push(new j["b"]((function(){t.component&&t.component.sliceLinks.removeValue(e)}))),this.addSprite(e),e.visible=this.visible}return this._sliceLink},enumerable:!0,configurable:!0}),e}(_e),Fi=function(t){function e(){var e=t.call(this)||this;return e._nextY=0,e.className="FunnelSeries",e.orientation="vertical",e.width=Object(Y["c"])(100),e.height=Object(Y["c"])(100),e.slicesContainer.width=Object(Y["c"])(100),e.slicesContainer.height=Object(Y["c"])(100),e._disposers.push(e.slicesContainer.events.on("maxsizechanged",e.invalidateDataItems,e,!1)),e.labelsOpposite=!0,e.labelsContainer.layout="absolute",e.bottomRatio=0,e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.createSlice=function(){return new Si},e.prototype.createTick=function(){return new ji},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Funnel Series"))},e.prototype.createDataItem=function(){return new wi},e.prototype.initSlice=function(t){t.isMeasured=!1,t.defaultState.properties.scale=1,t.observe("scale",this.handleSliceScale,this),t.observe(["dx","dy","x","y"],this.handleSliceMove,this),t.tooltipText="{category}: {value.percent.formatNumber('#.#')}% ({value.value})";var e=t.states.create("hover");e.properties.expandDistance=.2},e.prototype.initLabel=function(e){t.prototype.initLabel.call(this,e),e.verticalCenter="middle",e.horizontalCenter="middle",e.isMeasured=!0,e.padding(5,5,5,5)},e.prototype.validate=function(){t.prototype.validate.call(this),this._nextY=0},e.prototype.validateDataElements=function(){var e=this,i=this.slicesContainer,a=this.labelsContainer,s=this.labels.template;this.alignLabels?(s.interactionsEnabled=!0,i.isMeasured=!0,a.isMeasured=!0):(s.interactionsEnabled=!1,i.isMeasured=!1,a.isMeasured=!1);var n=0,r=0;this.dataItems.each((function(t){z["d"](t.value)&&(r++,t.value>0?n+=Math.abs(t.getWorkingValue("value")/t.value):e.ignoreZeroValues||!t.visible||t.__disabled||t.isHiding?r--:n+=1)})),this._total=1/r*n,this._count=r,t.prototype.validateDataElements.call(this),this.arrangeLabels()},e.prototype.getNextValue=function(t){var e=t.index,i=t.getWorkingValue("value");if(e<this.dataItems.length-1){var a=this.dataItems.getIndex(e+1);if(i=a.getWorkingValue("value"),!a.visible||a.isHiding||a.__disabled||0==a.value&&this.ignoreZeroValues)return this.getNextValue(a)}return i},e.prototype.formDataElement=function(){},e.prototype.validateDataElement=function(e){var i=this,a=e.slice;a.orientation=this.orientation;var s=e.sliceLink;s.orientation=this.orientation;var n=e.tick,r=e.label;n.slice=a,n.label=r,z["d"](e.value)?(this.decorateSlice(e),dt["d"](e.sprites,(function(t){0==e.value&&i.ignoreZeroValues?t.__disabled=!0:t.__disabled=!1}))):dt["d"](e.sprites,(function(t){t.__disabled=!0})),e.index==this.dataItems.length-1&&(s.disabled=!0),t.prototype.validateDataElement.call(this,e),s.fill=a.fill},e.prototype.decorateSlice=function(t){var e=t.slice,i=t.sliceLink,a=t.label,s=t.tick,n=this.slicesContainer.innerWidth,r=this.slicesContainer.innerHeight,o=this.getNextValue(t),l=Math.abs(t.getWorkingValue("value")),h=this.bottomRatio,u=1;if(0!=t.value?u=l/Math.abs(t.value):(t.__disabled||t.isHiding||!t.visible)&&(u=1e-6),this.ignoreZeroValues&&0==t.value)t.__disabled=!0;else if(t.__disabled=!1,this._nextY==1/0&&(this._nextY=0),"vertical"==this.orientation){var d=i.pixelHeight*u;r+=d,e.topWidth=l/this.dataItem.values.value.high*n,e.bottomWidth=(l-(l-o)*h)/this.dataItem.values.value.high*n,i.topWidth=e.bottomWidth,i.bottomWidth=(l-(l-o))/this.dataItem.values.value.high*n,e.y=this._nextY,e.height=Math.min(1e5,et["B"](0,r/this._count*u/this._total-d)),e.x=n/2,this.alignLabels?a.x=void 0:a.x=e.x,a.y=e.pixelY+e.pixelHeight*s.locationY,this._nextY+=e.pixelHeight+d,i.y=this._nextY-d,i.x=e.x}else{var c=i.pixelWidth*u;n+=c,e.topWidth=l/this.dataItem.values.value.high*r,e.bottomWidth=(l-(l-o)*h)/this.dataItem.values.value.high*r,i.topWidth=e.bottomWidth,i.bottomWidth=(l-(l-o))/this.dataItem.values.value.high*r,e.x=this._nextY,e.width=Math.min(1e5,n/this._count*u*1/this._total-c),e.y=r/2,this.alignLabels?a.y=this.labelsContainer.measuredHeight:a.y=e.y,a.x=e.pixelX+e.pixelWidth*s.locationX,this._nextY+=e.pixelWidth+c,i.x=this._nextY-c,i.y=e.y}},e.prototype.getLastLabel=function(t){if(t>0){var e=this.labels.getIndex(t);return e.__disabled||!e.visible?this.getLastLabel(t-1):e}},e.prototype.arrangeLabels=function(){if(this.alignLabels){var t=this.labels.length;if(t>1){var e=this.getLastLabel(t-1);if(e){var i=e.pixelY,a=e.pixelX;if(t>1){for(var s=t-2;s>=0;s--){var n=this.labels.getIndex(s);n.visible&&!n.__disabled&&(n.invalid&&n.validate(),"vertical"==this.orientation?n.pixelY+n.measuredHeight>i&&(n.y=Math.min(1e6,i-n.measuredHeight)):n.pixelX+n.measuredWidth>a&&(n.x=Math.min(1e6,a-n.measuredWidth)),i=n.pixelY,a=n.pixelX)}i=0,a=0;for(s=0;s<t;s++){n=this.labels.getIndex(s);n.visible&&!n.__disabled&&(n.invalid&&n.validate(),"vertical"==this.orientation?n.pixelY<i&&(n.y=Math.min(1e6,i)):n.pixelX<a&&(n.x=Math.min(1e6,a)),i+=n.measuredHeight,a+=n.measuredWidth)}}}}}},e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem,a=i.slice,s=e.locationX;z["h"](s)||(s=.5);var n=e.locationY;z["h"](n)||(n=1),e.x=a.pixelX+a.measuredWidth*s,e.y=a.pixelY+a.measuredHeight*n},Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t)&&(this.labelsOpposite=this.labelsOpposite,this.invalidate(),"vertical"==t?(this.ticks.template.locationX=1,this.ticks.template.locationY=.5,this.labels.template.rotation=0,this.layout="horizontal"):(this.ticks.template.locationX=.5,this.ticks.template.locationY=1,this.labels.template.rotation=-90,this.layout="vertical"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomRatio",{get:function(){return this.getPropertyValue("bottomRatio")},set:function(t){this.setPropertyValue("bottomRatio",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sliceLinks",{get:function(){if(!this._sliceLinks){var t=new Si;t.applyOnClones=!0,t.fillOpacity=.5,t.expandDistance=-.3,t.hiddenState.properties.opacity=0,this._disposers.push(t),this._sliceLinks=new w["c"](t),this._disposers.push(new w["b"](this._sliceLinks))}return this._sliceLinks},enumerable:!0,configurable:!0}),e.prototype.show=function(e){var i=this,a=this.startIndex,s=this.endIndex,n=this.defaultState.transitionDuration;z["h"](e)&&(n=e),ot["a"].animationsEnabled||(n=0);var r=0;N["d"](N["i"](this.dataItems.iterator()),(function(t){var e=t[0],o=t[1];i.sequencedInterpolation&&(r=i.sequencedInterpolationDelay*e+n*(e-a)/(s-a)),o.show(n,r,["value"])}));var o=t.prototype.show.call(this,e);return o},e.prototype.hide=function(e){var i=this,a=["value"],s=0,n=this.startIndex,r=this.endIndex,o=0,l=this.hiddenState.transitionDuration;z["h"](e)&&(l=e),ot["a"].animationsEnabled||(l=0),N["d"](N["i"](this.dataItems.iterator()),(function(t){var e=t[0],h=t[1];i.sequencedInterpolation&&(o=i.sequencedInterpolationDelay*e+l*(e-n)/(r-n)),h.hide(l,o,s,a)}));var h=t.prototype.hide.call(this,e);return h&&!h.isFinished()&&h.delay(o),h},e.prototype.setAlignLabels=function(e){t.prototype.setAlignLabels.call(this,e),this.ticks.template.disabled=!e;var i=this.labelsContainer;i&&(e?(i.height=void 0,i.width=void 0,i.margin(10,10,10,10)):(i.width=Object(Y["c"])(100),i.height=Object(Y["c"])(100))),this.labelsOpposite=this.labelsOpposite},Object.defineProperty(e.prototype,"labelsOpposite",{get:function(){return this.getPropertyValue("labelsOpposite")},set:function(t){this.setPropertyValue("labelsOpposite",t);var e=this.labels.template,i="none",a="none";this.alignLabels?t?(this.labelsContainer.toFront(),"vertical"==this.orientation?(this.ticks.template.locationX=1,e.horizontalCenter="left",i="right"):(this.ticks.template.locationY=1,e.horizontalCenter="right",a="bottom")):(this.labelsContainer.toBack(),"vertical"==this.orientation?(this.ticks.template.locationX=0,i="left"):(a="top",this.ticks.template.locationY=0)):"vertical"==this.orientation?i="center":a="middle",e.align=i,e.valign=a,this.validateLayout(),this.ticks.each((function(t){t.invalidate()})),this.invalidateDataItems()},enumerable:!0,configurable:!0}),e}(Pe);T["b"].registeredClasses["FunnelSeries"]=Fi,T["b"].registeredClasses["FunnelSeriesDataItem"]=wi;var Li=function(t){function e(){var e=t.call(this)||this;return e.className="PyramidSeriesDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(wi),Mi=function(t){function e(){var e=t.call(this)||this;return e.className="PyramidSeries",e.topWidth=Object(Y["c"])(0),e.bottomWidth=Object(Y["c"])(100),e.pyramidHeight=Object(Y["c"])(100),e.valueIs="area",e.sliceLinks.template.width=0,e.sliceLinks.template.height=0,e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},e.prototype.createDataItem=function(){return new Li},e.prototype.validate=function(){t.prototype.validate.call(this),this._nextWidth=void 0},e.prototype.getNextValue=function(t){var e=t.index,i=t.getWorkingValue("value");if(e<this.dataItems.length-1){var a=this.dataItems.getIndex(e+1);i=a.getWorkingValue("value")}return 0==i&&(i=1e-6),i},e.prototype.validateDataElements=function(){var e=this,i=this.slicesContainer.innerWidth,a=this.slicesContainer.innerHeight;if(this.dataItems.each((function(t){if(t.value>0){var s=t.getWorkingValue("value")/t.value,n=t.sliceLink;"vertical"==e.orientation?a-=n.pixelHeight*s:i-=n.pixelWidth*s}})),this._pyramidHeight=tt["E"](this.pyramidHeight,a),this._pyramidWidth=tt["E"](this.pyramidHeight,i),"vertical"==this.orientation){var s=(a-this._pyramidHeight)/2;this.slicesContainer.y=s,this.labelsContainer.y=s,this.ticksContainer.y=s}else{var n=(i-this._pyramidWidth)/2;this.slicesContainer.x=n,this.labelsContainer.x=n,this.ticksContainer.x=n}t.prototype.validateDataElements.call(this)},e.prototype.decorateSlice=function(t){var e=this.dataItem.values.value.absoluteSum;if(0!=e){var i=t.slice,a=t.sliceLink,s=t.label,n=t.tick;this.getNextValue(t);var r=Math.abs(t.getWorkingValue("value")),o=this._pyramidWidth,l=this._pyramidHeight,h=this.slicesContainer.innerWidth,u=this.slicesContainer.innerHeight,d=a.pixelWidth,c=a.pixelHeight;if(0!=t.value&&null!=t.value||!this.ignoreZeroValues?t.__disabled=!1:t.__disabled=!0,"vertical"==this.orientation){var p=tt["E"](this.topWidth,h);z["h"](this._nextWidth)||(this._nextWidth=p);var f=tt["E"](this.bottomWidth,h),g=this._nextWidth,m=Math.atan2(l,p-f),y=Math.tan(Math.PI/2-m);0==y&&(y=1e-8);var v=void 0,x=void 0;if("area"==this.valueIs){var b=(p+f)/2*l,_=b*r/e,P=Math.abs(g*g-2*_*y);v=(g-Math.sqrt(P))/y,x=v>0?(2*_-v*g)/v:g}else v=l*r/e,x=g-v*y;i.height=v,i.width=h,i.bottomWidth=x,i.topWidth=g,a.topWidth=i.bottomWidth,a.bottomWidth=i.bottomWidth,i.y=this._nextY,this.alignLabels?s.x=0:s.x=h/2,s.y=i.pixelY+i.pixelHeight*n.locationY+i.dy,this._nextY+=i.pixelHeight+c*r/Math.max(Math.abs(t.value),1e-8),a.y=this._nextY-c,a.x=h/2}else{p=tt["E"](this.topWidth,u);z["h"](this._nextWidth)||(this._nextWidth=p);f=tt["E"](this.bottomWidth,u),g=this._nextWidth,m=Math.atan2(o,p-f),y=Math.tan(Math.PI/2-m);0==y&&(y=1e-8);var C=void 0;x=void 0;if("area"==this.valueIs){b=(p+f)/2*o,_=b*r/e;C=(g-Math.sqrt(g*g-2*_*y))/y,x=(2*_-C*g)/C}else C=o*r/e,x=g-C*y;i.width=C,i.height=u,i.bottomWidth=x,i.topWidth=g,a.topWidth=i.bottomWidth,a.bottomWidth=i.bottomWidth,i.x=this._nextY,this.alignLabels?s.y=this.labelsContainer.measuredHeight:s.y=u/2,s.x=i.pixelX+i.pixelWidth*n.locationX+i.dx,this._nextY+=i.pixelWidth+d*r/Math.max(Math.abs(t.value),1e-8),a.x=this._nextY-d,a.y=u/2}this._nextWidth=i.bottomWidth}},Object.defineProperty(e.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(t){this.setPercentProperty("topWidth",t,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pyramidHeight",{get:function(){return this.getPropertyValue("pyramidHeight")},set:function(t){this.setPercentProperty("pyramidHeight",t,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(t){this.setPercentProperty("bottomWidth",t,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueIs",{get:function(){return this.getPropertyValue("valueIs")},set:function(t){this.setPropertyValue("valueIs",t)&&this.invalidate()},enumerable:!0,configurable:!0}),e}(Fi);T["b"].registeredClasses["PyramidSeries"]=Mi,T["b"].registeredClasses["PyramidSeriesDataItem"]=Li;var Ri=function(t){function e(){var e=t.call(this)||this;return e.className="PictorialStackedSeriesDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(Li),Xi=function(t){function e(){var e=t.call(this)||this;return e.className="PictorialStackedSeries",e.topWidth=Object(Y["c"])(100),e.bottomWidth=Object(Y["c"])(100),e.valueIs="height",e.applyTheme(),e.startLocation=0,e.endLocation=1,e.align="center",e.valign="middle",e._maskSprite=e.slicesContainer.createChild(R["a"]),e._maskSprite.visible=!1,e._maskSprite.zIndex=100,e._maskSprite.shouldClone=!1,e}return Object(V["c"])(e,t),e.prototype.validateDataElements=function(){var e=this.slicesContainer.maxWidth,i=this.slicesContainer.maxHeight,a=this._maskSprite,s=a.measuredWidth/a.scale,n=a.measuredHeight/a.scale,r=et["C"](i/n,e/s);r==1/0&&(r=1),r=et["B"](.001,r);var o,l,h=this.startLocation,u=this.endLocation,d=et["C"](e,s*r),c=et["C"](i,n*r);a.scale=r,"vertical"==this.orientation?(this.topWidth=d+4,this.bottomWidth=d+4,this.pyramidHeight=c*(u-h),a.x=e/2,a.y=c/2):(this.topWidth=c+4,this.bottomWidth=c+4,this.pyramidHeight=d*(u-h),a.valign="middle",a.x=d/2,a.y=i/2),a.verticalCenter="middle",a.horizontalCenter="middle",t.prototype.validateDataElements.call(this),"vertical"==this.orientation?("bottom"==this.valign&&(o=i-c),"middle"==this.valign&&(o=(i-c)/2),"top"==this.valign&&(o=0),"left"==this.align&&(l=-(e-d)/2),"center"==this.align&&(l=0),"right"==this.align&&(l=(e-d)/2),this.slices.template.dy=h*c,this.alignLabels&&(this.slicesContainer.dx=l)):("bottom"==this.valign&&(o=(i-c)/2),"middle"==this.valign&&(o=0),"top"==this.valign&&(o=-(i-c)/2),"left"==this.align&&(l=0),"center"==this.align&&(l=(e-d)/2),"right"==this.align&&(l=e-d),this.slices.template.dx=h*d,this.alignLabels&&(this.slicesContainer.dy=o)),this.slicesContainer.x=l,this.labelsContainer.x=l,this.ticksContainer.x=l,this.slicesContainer.y=o,this.labelsContainer.y=o,this.ticksContainer.y=o,d>0&&c>0&&(this.slicesContainer.mask=a)},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),z["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},e.prototype.createDataItem=function(){return new Ri},Object.defineProperty(e.prototype,"maskSprite",{get:function(){return this._maskSprite},enumerable:!0,configurable:!0}),e.prototype.initSlice=function(e){t.prototype.initSlice.call(this,e);var i=e.states.getKey("hover");i&&(i.properties.expandDistance=0)},Object.defineProperty(e.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),e}(Mi);T["b"].registeredClasses["PictorialStackedSeries"]=Xi,T["b"].registeredClasses["PictorialStackedSeriesDataItem"]=Ri;var Yi=i("dacb"),Bi=function(t){function e(){var e=t.call(this)||this;return e.className="ConeColumn",e}return Object(V["c"])(e,t),e.prototype.createAssets=function(){this.coneColumn=this.createChild(Yi["a"]),this.coneColumn.shouldClone=!1,this.column=this.coneColumn},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.coneColumn&&this.coneColumn.copyFrom(e.coneColumn)},e}(si);T["b"].registeredClasses["ConeColumn"]=Bi;var Ei=function(t){function e(){var e=t.call(this)||this;return e.className="ConeSeriesDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(ni),Wi=function(t){function e(){var e=t.call(this)||this;return e.className="ConeSeries",e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.createColumnTemplate=function(){return new Bi},e.prototype.getMaskPath=function(){var t=0,e=0,i=this.columns.getIndex(0);if(i)return this.baseAxis==this.xAxis?e=i.coneColumn.innerWidth/2+1:t=i.coneColumn.innerHeight/2+1,B["j"]({x:-t,y:0,width:this.xAxis.axisLength+t,height:this.yAxis.axisLength+e})},e.prototype.validateDataElementReal=function(e){t.prototype.validateDataElementReal.call(this,e);var i=e.column;if(i){var a=e.column.coneColumn;a.fill=e.column.fill,this.baseAxis==this.yAxis?a.orientation="horizontal":a.orientation="vertical"}},e}(ri);T["b"].registeredClasses["ConeSeries"]=Wi,T["b"].registeredClasses["ConeSeriesDataItem"]=Ei;var Ni=function(t){function e(){var e=t.call(this)||this;return e.className="CurvedColumn",e}return Object(V["c"])(e,t),e.prototype.createAssets=function(){this.curvedColumn=this.createChild(R["a"]),this.curvedColumn.shouldClone=!1,this.setPropertyValue("tension",.7),this.width=Object(Y["c"])(120),this.height=Object(Y["c"])(120),this.column=this.curvedColumn},e.prototype.draw=function(){t.prototype.draw.call(this);var e,i=this.realWidth,a=this.realHeight,s=this.realX-this.pixelX,n=this.realY-this.pixelY;tt["R"](this.width);var r=1,o=1;"vertical"==this.orientation?(r=this.tension,e=[{x:0,y:a+n},{x:i/2,y:n},{x:i,y:a+n}]):(o=this.tension,a=Math.abs(a),e=[{x:s,y:a},{x:s+i,y:a/2},{x:s,y:0}]);var l=B["g"](e[0])+new Qt["c"](r,o).smooth(e);this.column.path=l},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.curvedColumn&&this.curvedColumn.copyFrom(e.curvedColumn)},Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0)},enumerable:!0,configurable:!0}),e}(si);T["b"].registeredClasses["CurvedColumn"]=Ni;var zi=function(t){function e(){var e=t.call(this)||this;return e.className="CurvedColumnSeriesDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),e}(ni),Hi=function(t){function e(){var e=t.call(this)||this;return e.className="CurvedColumnSeries",e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.createColumnTemplate=function(){return new Ni},e.prototype.validateDataElementReal=function(e){t.prototype.validateDataElementReal.call(this,e);var i=e.column;if(i=e.column,i){var a=e.column.curvedColumn;a.fill=e.column.fill,this.baseAxis==this.yAxis?i.orientation="horizontal":i.orientation="vertical"}},e}(ri);T["b"].registeredClasses["CurvedColumnSeries"]=Hi,T["b"].registeredClasses["CurvedColumnSeriesDataItem"]=zi;var Ui=function(t){function e(){var e=t.call(this)||this;e.className="CircleBullet";var i=e.createChild(he["a"]);return i.shouldClone=!1,i.radius=5,i.isMeasured=!1,e.circle=i,e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.circle.copyFrom(e.circle)},e}(q);T["b"].registeredClasses["CircleBullet"]=Ui;var Ki=function(t){function e(){var e=t.call(this)||this;return e.className="ErrorBullet",e.errorLine=e.createChild(R["a"]),e.errorLine.shouldClone=!1,e.width=20,e.height=20,e.strokeOpacity=1,e.isDynamic=!0,e}return Object(V["c"])(e,t),e.prototype.validatePosition=function(){t.prototype.validatePosition.call(this);var e=this.pixelWidth/2,i=this.pixelHeight/2;this.errorLine.path=B["g"]({x:-e,y:-i})+B["f"]({x:e,y:-i})+B["g"]({x:0,y:-i})+B["f"]({x:0,y:i})+B["g"]({x:-e,y:i})+B["f"]({x:e,y:i})},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.errorLine.copyFrom(e.errorLine)},e}(q);T["b"].registeredClasses["ErrorBullet"]=Ki;var Gi=i("a4c9"),Zi=i("3f58"),qi=function(t){function e(){var e=t.call(this)||this;return e.className="NavigationBarDataItem",e.applyTheme(),e}return Object(V["c"])(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this.properties["name"]},set:function(t){this.setProperty("name",t)},enumerable:!0,configurable:!0}),e}(W["a"]),Ji=function(t){function e(){var e=t.call(this)||this;e.className="NavigationBar";var i=new X["a"],a=new Gi["a"];a.valign="middle",a.paddingTop=8,a.paddingBottom=8,e.paddingBottom=2,e.links=new w["c"](a),e._disposers.push(new w["b"](e.links)),e._disposers.push(a),e._linksIterator=new N["a"](e.links,(function(){return e.links.create()})),e._linksIterator.createNewItems=!0;var s=new Zi["a"];s.direction="right",s.width=8,s.height=12,s.fill=i.getFor("alternativeBackground"),s.fillOpacity=.5,s.valign="middle",s.marginLeft=10,s.marginRight=10,e.separators=new w["c"](s),e._disposers.push(new w["b"](e.separators)),e._disposers.push(s);var n=new Gi["a"];return e.activeLink=n,n.copyFrom(a),n.valign="middle",n.fontWeight="bold",e.width=Object(Y["c"])(100),e.layout="grid",e.dataFields.name="name",e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.validateDataElements=function(){this.removeChildren(),this._linksIterator.reset(),t.prototype.validateDataElements.call(this)},e.prototype.validateDataElement=function(e){var i;if(t.prototype.validateDataElement.call(this,e),e.index<this.dataItems.length-1){i=this._linksIterator.getLast(),i.parent=this;var a=this.separators.create();a.parent=this,a.valign="middle"}else i=this.activeLink,i.events.copyFrom(this.links.template.events),i.hide(0),i.show(),i.parent=this;i.dataItem=e,i.text=e.name,i.validate()},e}(S["a"]);T["b"].registeredClasses["NavigationBar"]=Ji,T["b"].registeredClasses["NavigationBarDataItem"]=qi;var $i=i("5134"),Qi=i("72b5"),ta=function(t){function e(){var e=t.call(this)||this;e.point={x:0,y:0},e._stick="none",e.className="Cursor",e.width=Object(Y["c"])(100),e.height=Object(Y["c"])(100),e.shouldClone=!1,e.hide(0),e.trackable=!0,e.clickable=!0,e.isMeasured=!1;var i=Object(Q["a"])();return e._disposers.push(i.body.events.on("down",e.handleCursorDown,e)),e._disposers.push(i.body.events.on("up",e.handleCursorUp,e)),e._disposers.push(i.body.events.on("track",e.handleCursorMove,e)),e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.handleCursorMove=function(t){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&t.touch)){if(("zoom"==this._generalBehavior||"pan"==this._generalBehavior)&&this.downPoint||Object(Q["a"])().isLocalElement(t.pointer,this.paper.svg,this.uid)){var e=tt["h"](t.pointer.point,this);return"hard"==this._stick&&this._stickPoint&&(e=this._stickPoint),"soft"==this._stick&&this._stickPoint&&(this.fitsToBounds(e)||(e=this._stickPoint)),this._adapterO&&this._adapterO.apply("cursorPoint",e),this.triggerMove(e),e}this.isHidden&&this.isHiding||this.hide()}},e.prototype.hideReal=function(e){if("hard"!=this._stick&&"soft"!=this._stick||!this._stickPoint)return t.prototype.hideReal.call(this,e)},e.prototype.triggerMove=function(t,e,i){t.x=et["E"](t.x,1),t.y=et["E"](t.y,1),e&&(this._stick=e),"hard"!=e&&"soft"!=e||(this._stickPoint=t),this.triggerMoveReal(t,i)},e.prototype.triggerMoveReal=function(t,e){(this.point.x!=t.x||this.point.y!=t.y||e)&&(this.point=t,this.invalidatePosition(),this.fitsToBounds(t)?this.show(0):this.downPoint||this.hide(0),this.visible&&(this.getPositions(),this.dispatch("cursorpositionchanged")))},e.prototype.triggerDown=function(t){this.triggerDownReal(t)},e.prototype.triggerDownReal=function(t){switch(this._generalBehavior){case"zoom":this.dispatchImmediately("zoomstarted");break;case"select":this.dispatchImmediately("selectstarted");break;case"pan":this.dispatchImmediately("panstarted"),Object(Q["a"])().setGlobalStyle(it["a"].grabbing);break}},e.prototype.triggerUp=function(t){this.triggerUpReal(t)},e.prototype.triggerUpReal=function(t){Qi["a"].requestFrame(),this.updatePoint(this.upPoint);var e=Object(Q["a"])();if(et["q"](this._upPointOrig,this._downPointOrig)>e.getHitOption(this.interactions,"hitTolerance")){switch(this._generalBehavior){case"zoom":this.dispatch("zoomended");break;case"select":this.dispatch("selectended");break;case"pan":this.dispatch("panended"),e.setGlobalStyle(it["a"].default);break}this.downPoint=void 0,this.updateSelection()}},e.prototype.updateSelection=function(){},e.prototype.getPositions=function(){this.xPosition=this.point.x/this.innerWidth,this.yPosition=1-this.point.y/this.innerHeight},e.prototype.handleCursorDown=function(t){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&t.touch)&&Object(Q["a"])().isLocalElement(t.pointer,this.paper.svg,this.uid)){$i["g"]();var e=tt["h"](t.pointer.point,this);"hard"==this._stick&&this._stickPoint&&(e=this._stickPoint),this._adapterO&&this._adapterO.apply("cursorPoint",e),this.fitsToBounds(e)&&(this._downPointOrig={x:e.x,y:e.y},t.event.cancelable&&this.shouldPreventGestures(t.touch)&&this.fitsToBounds(e)&&t.event.preventDefault(),this.triggerMove(e),this.triggerDown(e))}},e.prototype.shouldPreventGestures=function(t){return!0},e.prototype.updatePoint=function(t){},e.prototype.handleCursorUp=function(t){if(this.interactionsEnabled&&(this.downPoint||Object(Q["a"])().isLocalElement(t.pointer,this.paper.svg,this.uid))){var e=tt["h"](t.pointer.point,this);this._adapterO&&this._adapterO.apply("cursorPoint",e),this.downPoint&&this.fitsToBounds(this.downPoint)&&("hard"==this._stick&&this._stickPoint&&(e=this._stickPoint),this._upPointOrig={x:e.x,y:e.y},this.triggerMove(e),this.triggerUp(e))}},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t,z["d"](this._chart.plotContainer)&&Object(Q["a"])().lockElement(this._chart.plotContainer.interactions)},enumerable:!0,configurable:!0}),e}(F["a"]);T["b"].registeredClasses["Cursor"]=ta;var ea=function(t){function e(){var e=t.call(this)||this;e._lineX=new j["d"],e._lineY=new j["d"],e._xAxis=new j["d"],e._yAxis=new j["d"],e._snapToDisposers=[],e.className="XYCursor",e.behavior="zoomX",e.maxPanOut=.1;var i=new X["a"],a=e.createChild(R["a"]);a.shouldClone=!1,a.fillOpacity=.2,a.fill=i.getFor("alternativeBackground"),a.isMeasured=!1,a.visible=!1,a.interactionsEnabled=!1,e.selection=a,e._disposers.push(e.selection);var s=e.createChild(R["a"]);s.shouldClone=!1,s.stroke=i.getFor("grid"),s.fill=Object(lt["b"])(),s.strokeDasharray="3,3",s.isMeasured=!1,s.strokeOpacity=.4,s.interactionsEnabled=!1,s.y=0,e.lineX=s,e._disposers.push(e.lineX);var n=e.createChild(R["a"]);return n.shouldClone=!1,n.stroke=i.getFor("grid"),n.fill=Object(lt["b"])(),n.strokeDasharray="3,3",n.isMeasured=!1,n.strokeOpacity=.4,n.interactionsEnabled=!1,n.x=0,e.lineY=n,e._disposers.push(e.lineY),e.events.on("sizechanged",e.updateSize,e,!1),e._disposers.push(e._lineX),e._disposers.push(e._lineY),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.mask=e,e.hideSeriesTooltipsOnSelection=!0,e.applyTheme(),e}return Object(V["c"])(e,t),e.prototype.updateSize=function(){this.lineX&&(this.lineX.path=B["g"]({x:0,y:0})+B["f"]({x:0,y:this.innerHeight})),this.lineY&&(this.lineY.path=B["g"]({x:0,y:0})+B["f"]({x:this.innerWidth,y:0}))},e.prototype.updateSelection=function(){if(this._usesSelection){var t=this.downPoint,e=this.behavior;if(t){var i=this.point;this.lineX&&(i.x=this.lineX.pixelX),this.lineY&&(i.y=this.lineY.pixelY);var a=this.selection,s=Math.min(i.x,t.x),n=Math.min(i.y,t.y),r=et["E"](Math.abs(t.x-i.x),this._positionPrecision),o=et["E"](Math.abs(t.y-i.y),this._positionPrecision);switch(e){case"zoomX":n=0,o=this.pixelHeight;break;case"zoomY":s=0,r=this.pixelWidth;break;case"selectX":n=0,o=this.pixelHeight;break;case"selectY":s=0,r=this.pixelWidth;break}a.x=s,a.y=n,a.path=B["k"](r,o),a.validatePosition()}else"select"!=this._generalBehavior&&this.selection.hide()}},e.prototype.fixPoint=function(t){return t.x=Math.max(0,t.x),t.y=Math.max(0,t.y),t.x=Math.min(this.pixelWidth,t.x),t.y=Math.min(this.pixelHeight,t.y),t},e.prototype.triggerMoveReal=function(e,i){t.prototype.triggerMoveReal.call(this,e,i);var a=this.snapToSeries;if(a&&!this.downPoint)if(a instanceof Kt)a.isHidden&&this.updateLinePositions(e);else{var s=!0;dt["d"](a,(function(t){t.isHidden||(s=!1)})),s&&this.updateLinePositions(e)}else this.updateLinePositions(e);this.downPoint&&et["q"](this.downPoint,e)>3&&"pan"==this._generalBehavior&&(this.getPanningRanges(),this.dispatch("panning"))},e.prototype.updateLinePositions=function(t){t=this.fixPoint(this.point),this.lineX&&this.lineX.visible&&!this.xAxis&&(this.lineX.x=t.x),this.lineY&&this.lineY.visible&&!this.yAxis&&(this.lineY.y=t.y),this.updateSelection()},e.prototype.triggerDownReal=function(e){if(this.visible&&!this.isHiding)if("select"==this._generalBehavior&&(this.selection.parent=this.parent),this.fitsToBounds(e)){this.downPoint={x:e.x,y:e.y},this.updatePoint(e),this.point.x=this.downPoint.x,this.point.y=this.downPoint.y;var i=this.selection,a=this.downPoint.x,s=this.downPoint.y;this._usesSelection&&(i.x=a,i.y=s,i.path="",i.show()),t.prototype.triggerDownReal.call(this,e)}else this.downPoint=void 0;else this.downPoint=void 0},e.prototype.updatePoint=function(t){this.lineX&&(t.x=this.lineX.pixelX),this.lineY&&(t.y=this.lineY.pixelY)},e.prototype.triggerUpReal=function(e){if(this.hasMoved())this.downPoint&&(this.upPoint=e,this.updatePoint(this.upPoint),"pan"!=this._generalBehavior&&this.getRanges(),"select"!=this._generalBehavior&&this.selection.hide(),t.prototype.triggerUpReal.call(this,e));else{if("select"!=this._generalBehavior?this.selection.hide(0):(this.xRange=void 0,this.yRange=void 0,this.dispatchImmediately("selectended")),"pan"==this._generalBehavior){var i=Object(Q["a"])();i.setGlobalStyle(it["a"].default)}this.dispatchImmediately("behaviorcanceled")}this.downPoint=void 0,this.dispatch("cursorpositionchanged")},e.prototype.hasMoved=function(){var t;return t="zoomX"==this.behavior||"panX"==this.behavior?et["r"](this._upPointOrig,this._downPointOrig):"zoomY"==this.behavior||"panY"==this.behavior?et["w"](this._upPointOrig,this._downPointOrig):et["q"](this._upPointOrig,this._downPointOrig),t>Object(Q["a"])().getHitOption(this.interactions,"hitTolerance")},e.prototype.getPanningRanges=function(){var t=et["E"](this.downPoint.x/this.innerWidth,5),e=1-et["E"](this.downPoint.y/this.innerHeight,5),i=et["E"](this.point.x/this.innerWidth,5),a=1-et["E"](this.point.y/this.innerHeight,5),s=t-i,n=e-a;this.xRange={start:s,end:1+s},this.yRange={start:n,end:1+n},"panX"==this.behavior&&(this.yRange.start=0,this.yRange.end=1),"panY"==this.behavior&&(this.xRange.start=0,this.xRange.end=1)},e.prototype.getRanges=function(){this.lineX&&(this.upPoint.x=this.lineX.pixelX),this.lineY&&(this.upPoint.y=this.lineY.pixelY),tt["R"](this.selection);var t=et["E"](this.downPoint.x/this.innerWidth,5),e=et["E"](this.upPoint.x/this.innerWidth,5),i=1-et["E"](this.downPoint.y/this.innerHeight,5),a=1-et["E"](this.upPoint.y/this.innerHeight,5);this.xRange={start:et["C"](t,e),end:et["B"](t,e)},this.yRange={start:et["C"](i,a),end:et["B"](i,a)}},Object.defineProperty(e.prototype,"behavior",{get:function(){return this.getPropertyValue("behavior")},set:function(t){this.setPropertyValue("behavior",t,!0),this._usesSelection=!1,-1!=t.indexOf("zoom")&&(this._generalBehavior="zoom",this._usesSelection=!0),-1!=t.indexOf("select")&&(this._generalBehavior="select",this._usesSelection=!0),-1!=t.indexOf("pan")&&(this._generalBehavior="pan",this._usesSelection=!1)},enumerable:!0,configurable:!0}),e.prototype.shouldPreventGestures=function(t){return(!this.interactions.isTouchProtected||!t)&&"none"!=this.behavior},Object.defineProperty(e.prototype,"fullWidthLineX",{get:function(){return this.getPropertyValue("fullWidthLineX")},set:function(t){this.setPropertyValue("fullWidthLineX",t),t||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWidthLineY",{get:function(){return this.getPropertyValue("fullWidthLineY")},set:function(t){this.setPropertyValue("fullWidthLineY",t),t||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideSeriesTooltipsOnSelection",{get:function(){return this.getPropertyValue("hideSeriesTooltipsOnSelection")},set:function(t){this.setPropertyValue("hideSeriesTooltipsOnSelection",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxTooltipDistance",{get:function(){return this.getPropertyValue("maxTooltipDistance")},set:function(t){this.setPropertyValue("maxTooltipDistance",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(t){this.setPropertyValue("maxPanOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xAxis",{get:function(){return this._xAxis.get()},set:function(t){var e=this;this._xAxis.get()!=t&&this._xAxis.set(t,new j["c"]([t.tooltip.events.on("positionchanged",this.handleXTooltipPosition,this,!1),t.events.on("rangechangestarted",(function(t){e.hide(0),e.preventShow=!0}),void 0,!1),t.events.on("rangechangeended",(function(t){e.preventShow=!1,e.hide(0),e.dispatch("cursorpositionchanged")}),void 0,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yAxis",{get:function(){return this._yAxis.get()},set:function(t){var e=this;this._yAxis.get()!=t&&this._yAxis.set(t,new j["c"]([t.tooltip.events.on("positionchanged",this.handleYTooltipPosition,this,!1),t.events.on("rangechangestarted",(function(t){e.hide(0),e.__disabled=!0}),void 0,!1),t.events.on("rangechangeended",(function(t){e.__disabled=!1,e.hide(0),e.dispatch("cursorpositionchanged")}),void 0,!1)]))},enumerable:!0,configurable:!0}),e.prototype.handleXTooltipPosition=function(t){var e=this.xAxis.tooltip,i=tt["O"]({x:e.pixelX,y:e.pixelY},this),a=i.x;if(i.y=1,this.lineX&&(this.lineX.x=a,this.fitsToBounds(i)||this.hide()),this.xAxis&&this.fullWidthLineX){var s=this.xAxis.currentItemStartPoint,n=this.xAxis.currentItemEndPoint;if(s&&n){this.lineX.x=a;var r=n.x-s.x;this.lineX.path=B["k"](r,this.innerHeight,-r/2)}}},e.prototype.handleYTooltipPosition=function(t){var e=this.yAxis.tooltip,i=tt["O"]({x:e.pixelX,y:e.pixelY},this),a=i.y;if(i.x=1,this.lineY&&(this.lineY.y=a,this.fitsToBounds(i)||this.hide()),this.yAxis&&this.fullWidthLineY){var s=this.yAxis.currentItemStartPoint,n=this.yAxis.currentItemEndPoint;if(s&&n){this.lineY.y=a;var r=n.y-s.y;this.lineY.path=B["k"](this.innerWidth,r,0,-r/2)}}},Object.defineProperty(e.prototype,"lineX",{get:function(){return this._lineX.get()},set:function(t){t?(t.setElement(this.paper.add("path")),this._lineX.set(t,t.events.on("positionchanged",this.updateSelection,this,!1)),t.interactionsEnabled=!1,t.parent=this):this._lineX.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineY",{get:function(){return this._lineY.get()},set:function(t){t?(t.setElement(this.paper.add("path")),this._lineY.set(t,t.events.on("positionchanged",this.updateSelection,this,!1)),t.parent=this,t.interactionsEnabled=!1):this._lineY.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selection",{get:function(){return this._selection},set:function(t){this._selection=t,t&&(t.element=this.paper.add("path"),t.parent=this)},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){var i=this;if(e&&(z["d"](e.xAxis)&&z["j"](e.xAxis)&&(this.map.hasKey(e.xAxis)?e.xAxis=this.map.getKey(e.xAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+e.xAxis+'" found for `xAxis`'),delete e.xAxis)),z["d"](e.yAxis)&&z["j"](e.yAxis)&&(this.map.hasKey(e.yAxis)?e.yAxis=this.map.getKey(e.yAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+e.yAxis+'" found for `yAxis`'),delete e.yAxis)),z["d"](e.snapToSeries))){var a=z["e"](e.snapToSeries)?e.snapToSeries:[e.snapToSeries],s=!1;dt["d"](a,(function(t,e){z["j"](t)&&(i.map.hasKey(t)?a[e]=i.map.getKey(t):(i.processingErrors.push('[XYCursor] No series with id "'+t+'" found for `series`'),s=!0))})),s?delete e.snapToSeries:e.snapToSeries=a}t.prototype.processConfig.call(this,e)},Object.defineProperty(e.prototype,"snapToSeries",{get:function(){return this.getPropertyValue("snapToSeries")},set:function(t){var e=this;this.setPropertyValue("snapToSeries",t)&&(t instanceof Kt&&(t=[t]),this._snapToDisposers&&dt["d"](this._snapToDisposers,(function(t){t.dispose()})),this._snapToDisposers=[],t&&dt["d"](t,(function(t){e._snapToDisposers.push(t.events.on("tooltipshownat",(function(){e.handleSnap(t)}),void 0,!1))})))},enumerable:!0,configurable:!0}),e.prototype.handleSnap=function(t){if(!this.downPoint){var e=t.getTooltipX()+t.xAxis.pixelX,i=t.getTooltipY()+t.yAxis.pixelY;this.xAxis&&this.xAxis.renderer.opposite&&(i-=this.pixelHeight),this.point={x:e,y:i},this.getPositions();var a=e,s=i;e-=this.pixelWidth,this.yAxis&&this.yAxis.renderer.opposite&&(e+=this.pixelWidth);var n=t.tooltip,r=n.animationDuration,o=n.animationEasing,l=t.xAxis,h=t.yAxis;l instanceof Rt&&!(l instanceof Et)&&h instanceof Rt&&!(h instanceof Et)?(t.yAxis.showTooltipAtPosition(this.yPosition),t.xAxis.showTooltipAtPosition(this.xPosition)):(t.baseAxis==t.xAxis&&t.yAxis.showTooltipAtPosition(this.yPosition),t.baseAxis==t.yAxis&&t.xAxis.showTooltipAtPosition(this.xPosition)),this.lineX.animate([{property:"y",to:i}],r,o),this.lineY.animate([{property:"x",to:e}],r,o),this.xAxis||this.lineX.animate([{property:"x",to:a}],r,o),this.yAxis||this.lineY.animate([{property:"y",to:s}],r,o)}},e.prototype.dispose=function(){this.hide(0),t.prototype.dispose.call(this)},e}(ta);T["b"].registeredClasses["XYCursor"]=ea;var ia=function(t){function e(){var e=t.call(this)||this;return e.className="RadarCursor",e.radius=Object(Y["c"])(100),e.innerRadius=Object(Y["c"])(0),e.applyTheme(),e.mask=void 0,e}return Object(V["c"])(e,t),e.prototype.fitsToBounds=function(t){var e=et["q"](t);return e<this.truePixelRadius+1&&e>this.pixelInnerRadius-1},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),e.prototype.triggerMoveReal=function(e,i){this.xAxis&&(!this.xAxis||this.xAxis.cursorTooltipEnabled&&!this.xAxis.tooltip.disabled)||this.updateLineX(this.point),this.yAxis&&(!this.yAxis||this.yAxis.cursorTooltipEnabled&&!this.yAxis.tooltip.disabled)||this.updateLineY(this.point),this.updateSelection(),t.prototype.triggerMoveReal.call(this,e,i)},e.prototype.updateLineX=function(t){var e=this.pixelRadius,i=this.startAngle,a=this.endAngle,s=this.pixelInnerRadius;if(e>0&&z["h"](i)&&z["h"](a)&&z["h"](s)){var n=et["h"](et["j"](t),i,a),r=void 0;if(this.lineX&&this.lineX.visible){if(this.lineX.moveTo({x:0,y:0}),this.xAxis&&this.fullWidthLineX){var o=this.xAxis.currentItemStartPoint,l=this.xAxis.currentItemEndPoint;if(o&&l){var h=et["h"](et["j"](o),i,a),u=et["h"](et["j"](l),i,a),d=u-h;i<a?d<0&&(d+=360):d>0&&(d-=360),n-=d/2,r=B["g"]({x:s*et["g"](n),y:s*et["F"](n)})+B["f"]({x:e*et["g"](n),y:e*et["F"](n)})+B["b"](n,d,e)+B["f"]({x:s*et["g"](n+d),y:s*et["F"](n+d)})+B["b"](n+d,-d,s)}}r||(r=B["g"]({x:s*et["g"](n),y:s*et["F"](n)})+B["f"]({x:e*et["g"](n),y:e*et["F"](n)})),this.lineX.path=r}}},e.prototype.updateLineY=function(t){if(this.lineY&&this.lineY.visible){var e=this.startAngle,i=this.endAngle,a=this.truePixelRadius,s=et["i"](et["q"](t),0,this.truePixelRadius);if(z["h"](s)&&z["h"](e)){this.lineY.moveTo({x:0,y:0});var n=void 0,r=i-e;if(this.yAxis&&this.fullWidthLineY){var o=this.yAxis.currentItemStartPoint,l=this.yAxis.currentItemEndPoint;if(o&&l){var h=et["i"](et["q"](o),0,a);s=et["i"](et["q"](l),0,a),n=B["g"]({x:s*et["g"](e),y:s*et["F"](e)})+B["b"](e,r,s),n+=B["g"]({x:h*et["g"](i),y:h*et["F"](i)})+B["b"](i,-r,h)}}n||(n=B["g"]({x:s*et["g"](e),y:s*et["F"](e)})+B["b"](e,i-e,s)),this.lineY.path=n}}},e.prototype.updateSelection=function(){if(this._usesSelection){var t=this.downPoint;if(t){var e=this.point,i=this.pixelRadius,a=this.truePixelRadius,s=this.pixelInnerRadius,n=Math.min(this.startAngle,this.endAngle),r=Math.max(this.startAngle,this.endAngle),o=et["h"](et["j"](t),n,r),l=et["h"](et["j"](e),n,r),h=et["q"](t);if(h<a){var u=et["i"](et["q"](e),0,a);this._prevAngle=l;var d=B["g"]({x:0,y:0}),c=et["F"](o),p=et["g"](o),f=et["F"](l),g=et["g"](l),m=this.behavior;"zoomX"==m||"selectX"==m?d+=B["f"]({x:i*p,y:i*c})+B["b"](o,l-o,i)+B["f"]({x:s*g,y:s*f})+B["b"](l,o-l,s):"zoomY"==m||"selectY"==m?d=B["g"]({x:u*et["g"](n),y:u*et["F"](n)})+B["b"](n,r-n,u)+B["f"]({x:h*et["g"](r),y:h*et["F"](r)})+B["b"](r,n-r,h)+B["d"]():"zoomXY"==m&&(d=B["g"]({x:u*et["g"](o),y:u*et["F"](o)})+B["b"](o,l-o,u)+B["f"]({x:h*et["g"](l),y:h*et["F"](l)})+B["b"](l,o-l,h)+B["d"]()),this.selection.path=d}this.selection.moveTo({x:0,y:0})}}},e.prototype.getPositions=function(){var t=this.chart;if(t){var e=this.pixelInnerRadius,i=this.truePixelRadius-e,a=this.startAngle,s=this.endAngle,n=et["h"](et["j"](this.point),a,s),r=(n-a)/(s-a);this.xPosition=r,this.yPosition=et["i"]((et["q"](this.point)-e)/i,0,1)}},e.prototype.updatePoint=function(t){},e.prototype.handleXTooltipPosition=function(t){if(this.xAxis.cursorTooltipEnabled){var e=this.xAxis.tooltip;this.updateLineX(tt["O"]({x:e.pixelX,y:e.pixelY},this))}},e.prototype.handleYTooltipPosition=function(t){if(this.yAxis.cursorTooltipEnabled){var e=this.yAxis.tooltip;this.updateLineY(tt["O"]({x:e.pixelX,y:e.pixelY},this))}},e.prototype.updateLinePositions=function(t){},e.prototype.getRanges=function(){var t=this.downPoint;if(t){var e=this.upPoint,i=this.chart;if(i){var a=this.pixelRadius,s=this.startAngle,n=this.endAngle,r=et["h"](et["j"](t),this.startAngle,this.endAngle),o=et["h"](et["j"](e),this.startAngle,this.endAngle),l=et["i"](et["q"](t),0,a),h=et["i"](et["q"](e),0,a),u=0,d=1,c=0,p=1,f=this.behavior;if("zoomX"==f||"selectX"==f||"zoomXY"==f||"selectXY"==f){var g=n-s;u=et["E"]((r-s)/g,5),d=et["E"]((o-s)/g,5)}"zoomY"!=f&&"selectY"!=f&&"zoomXY"!=f&&"selectXY"!=f||(c=et["E"](l/a,5),p=et["E"](h/a,5)),this.xRange={start:Math.min(u,d),end:Math.max(u,d)},this.yRange={start:Math.min(c,p),end:Math.max(c,p)},"selectX"==this.behavior||"selectY"==this.behavior||"selectXY"==this.behavior||this.selection.hide()}}},e.prototype.updateSize=function(){},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return tt["D"](this.radius,this.truePixelRadius)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"truePixelRadius",{get:function(){return tt["E"](Object(Y["c"])(100),et["C"](this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){var t=this.innerRadius;return t instanceof Y["a"]&&(t=Object(Y["c"])(100*t.value*this.chart.innerRadiusModifyer)),tt["D"](t,this.truePixelRadius)||0},enumerable:!0,configurable:!0}),e.prototype.fixPoint=function(t){return t},e}(ea);T["b"].registeredClasses["RadarCursor"]=ia;var aa=i("bc1e"),sa="DonutChart--titleLabel",na="DonutChart--sumLabel",ra="rgba(41, 11, 83, 0.75)",oa="#19A654",la="#BF1330",ha="#F2A230",ua=function(){return[{category:"Empty",disabled:!0,labelDisabled:!0,tooltipDisabled:!0,value:1,fill:"#dadada",fillOpacity:.3,strokeColor:"#dadada",strokeDasharray:"4,4",strokeWidth:2}]},da={props:{data:{type:Array,required:!0},displayAmChartsLogo:{type:Boolean},url:{type:[String,Object],default:null},title:{type:[String,Object],required:!0},subtitle:{type:String},hideSliceLabels:{type:Boolean},emptySubTitle:{type:String,default:"NO"},reverseTitles:{type:Boolean},subTitleProps:{type:Object},titleProps:{type:Object},isLoading:{type:Boolean},saveChart:{type:Boolean}},data:function(){return{labels:[]}},computed:{defaultConfig:function(){var t=this;return{startAngle:0,endAngle:360,radius:"90%",innerRadius:"60%",data:ua(),series:[{type:"PieSeries",dataFields:{value:"value",category:"category"},colors:{step:2},alignLabels:!1,labels:{fontWeight:"500",fontSize:11,bent:!0,radius:0,verticalCenter:"middle",fill:"#ffffff",paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,text:"{category}",interactionsEnabled:!1,userClassName:"pie-chart-label",propertyFields:{disabled:"labelDisabled"},adapter:{radius:this.labelRadiusAdapter,disabled:function(t,e){var i=e.dataItem;if(i){var a=i.dataContext.minSizeForLabel||.1;return i.values.value.percent/100<a}return t}}},ticks:{disabled:!0},tooltip:{pointerOrientation:"down",background:{callback:function(){this.filters.clear()},strokeWidth:0,pointerBaseWidth:0},propertyFields:{disabled:"tooltipDisabled"}},hiddenState:{properties:{opacity:1,startAngle:-90,endAngle:-90}},slices:{cornerRadius:5,propertyFields:{fill:"fill",fillOpacity:"fillOpacity",stroke:"strokeColor",strokeDasharray:"strokeDasharray",strokeWidth:"strokeWidth",url:"url"},stroke:"#ffffff",strokeWidth:2,strokeOpacity:1,tooltipPosition:"pointer",callback:function(){this.states.getKey("hover").properties.scale=1,this.states.getKey("active").properties.shiftRadius=0,this.states.getKey("hover").properties.fillOpacity=1}},children:[{type:"Container",forceCreate:!0,horizontalCenter:"middle",verticalCenter:"middle",layout:"vertical",background:{fill:"#ffffff"},callback:function(){this.toBack(),t.titleContainer=this},children:[{type:"Label",forceCreate:!0,fontSize:22,fill:ra,text:"{values.value.sum}",horizontalCenter:"middle",verticalCenter:"middle",fontWeight:"700",userClassName:na,callback:function(){t.subTitleLabel=this}},{type:"Label",forceCreate:!0,fontSize:13,fill:ra,text:"TOTAL",horizontalCenter:"middle",verticalCenter:"middle",fontWeight:"400",userClassName:sa,callback:function(){t.reverseTitles&&this.toBack(),t.titleLabel=this,t.setTitle()}}]}],callback:function(){t.series=this},events:{dataitemsvalidated:this.dataItemsValidatedHandler.bind(this)}}],adapter:{data:this.dataAdapter.bind(this)}}}},watch:{data:function(t){this.applyData(t)},isLoading:function(t){var e,i,a,s;t?(null===(e=this.series)||void 0===e||e.hide(0),null===(i=this.titleContainer)||void 0===i||i.hide(0)):(null===(a=this.series)||void 0===a||a.show(),null===(s=this.titleContainer)||void 0===s||s.show())}},beforeDestroy:function(){var t;null===(t=this.chart)||void 0===t||t.dispose()},mounted:function(){this.createChart(),this.applyData(this.data)},methods:{applyData:function(t){this.chart&&(t.length||this.chart.invalidateData(),this.chart.data=t)},dataAdapter:function(t,e){var i=this;return t.length?t.map((function(t){var a=t.route,s=a||e.url?Object(n["a"])(Object(n["a"])({},t),{},{fillOpacity:.7}):t;if(a){var r=i.$router.resolve(a),o=r.href,l=r.resolved,h=l.meta.title;return Object(n["a"])({url:o,urlTitle:h},s)}return s})).map((function(t){var e=t.category,i=void 0===e?"":e;switch(i.toLowerCase()){case"online":return Object(n["a"])({fill:oa,minSizeForLabel:.13},t);case"offline":return Object(n["a"])({fill:la,minSizeForLabel:.14},t);case"partially degraded":return Object(n["a"])({fill:ha,minSizeForLabel:.3},t);default:return t}})):ua()},labelRadiusAdapter:function(t,e){var i=e.properties.fontSize,a=e.parent.parent,s=a.pixelRadius-a.pixelInnerRadius;return a.labels.template.fontSize=Math.ceil(s/3),(2-s-i)/2},setTitle:function(){var t=this.data.reduce((function(t,e){var i=e.value;return t+i}),0);"object"===Object(D["a"])(this.title)&&this.title.singular&&this.title.plural&&(this.titleLabel.text=1===t?this.title.singular:this.title.plural),"string"===typeof this.title&&(this.titleLabel.text=this.title),this.titleContainer.invalidateLabels()},dataItemsValidatedHandler:function(){this.setTitle(),this.data.length||this.subTitleLabel.currentText===this.emptySubTitle||(this.titleLabel.fontWeight="400",this.titleLabel.fontSize=13,this.subTitleLabel.text=this.emptySubTitle,this.subTitleLabel.fontWeight="400",this.subTitleLabel.fontSize=13,this.titleContainer.invalidateLabels()),this.data.length&&this.subTitleLabel.currentText===this.emptySubTitle&&(this.titleLabel.fontWeight=this.titleProps&&this.titleProps.fontWeight?this.titleProps.fontWeight:"400",this.titleLabel.fontSize=this.titleProps&&this.titleProps.fontSize?this.titleProps.fontSize:13,this.subTitleLabel.text=this.subTitleProps&&this.subTitleProps.text?this.subTitleProps.text:"{values.value.sum}",this.subTitleLabel.fontWeight=this.subTitleProps&&this.subTitleProps.fontWeight?this.subTitleProps.fontWeight:"700",this.subTitleLabel.fontSize=this.subTitleProps&&this.subTitleProps.fontSize?this.subTitleProps.fontSize:22,this.titleContainer.invalidateLabels())},createChart:function(){return this.chart=k["a"](this.defaultConfig,this.$refs.chart,Te),this.saveChart&&(window.chart=this.chart,window.series=this.series),this.chart.logo&&(this.chart.logo.disabled=!this.displayAmChartsLogo,this.displayAmChartsLogo&&(this.chart.logo.properties.align="right")),this.series.labels.template.disabled=this.hideSliceLabels,this.url&&(this.chart.url=this.$router.resolve(this.url).href),this.titleProps&&this.titleLabel&&Object(aa["a"])(this.titleProps,this.titleLabel),this.subTitleProps&&this.subTitleLabel&&Object(aa["a"])(this.subTitleProps,this.subTitleLabel),this.chart}}},ca={name:"DonutChart",mixins:[da]},pa=ca,fa=Object(g["a"])(pa,A,O,!1,null,null,null),ga=fa.exports,ma=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"chart"})},ya=[],va={name:"VersionsDonutChart",mixins:[da],props:{titleProps:{type:Object,default:function(){return{fontSize:18,fontWeight:"400"}}},subTitleProps:{type:Object,default:function(){return{fontSize:12,fontWeight:"300",text:"VERSIONS"}}},reverseTitles:{type:Boolean,default:!0},emptySubTitle:{type:String,default:"NOT FOUND"}}},xa=va,ba=Object(g["a"])(xa,ma,ya,!1,null,null,null),_a=ba.exports,Pa={name:"Overview",metaInfo:function(){return{title:this.$route.meta.title}},components:{DonutChart:ga,VersionsDonutChart:_a,CardSkeleton:y,Resources:I},data:function(){return{productName:b["i"]}},computed:Object(n["a"])(Object(n["a"])(Object(n["a"])({},Object(r["d"])({selectedMesh:function(t){return t.selectedMesh}})),Object(r["c"])({title:"config/getTagline",environment:"config/getEnvironment",multicluster:"config/getMulticlusterStatus",meshInsight:"getMeshInsight",areMeshInsightsLoading:"getMeshInsightsFetching",areZonesInsightsLoading:"getZonesInsightsFetching",areServicesLoading:"getServiceResourcesFetching",getChart:"getChart"})),{},{cardActionPoliciesRoute:function(){return"https://kuma.io/policies/".concat("?utm_source=Kuma&utm_medium=Kuma-GUI")},dataplanesChart:function(){return this.getChart("dataplanes")},servicesChart:function(){return this.getChart("services")},zonesChart:function(){return this.getChart("zones")},zonesCPVersionsChart:function(){return this.getChart("zonesCPVersions")},kumaDPVersionsChart:function(){return this.getChart("kumaDPVersions")},envoyVersionsChart:function(){return this.getChart("envoyVersions")},pageTitle:function(){var t=this.$route.meta.title,e=this.selectedMesh;return"all"===e?"".concat(t," for all Meshes"):"".concat(t," for ").concat(e)},zonesForChart:function(){return this.multicluster?this.$store.state.totalClusters:1},overviewMetrics:function(){var t=this.selectedMesh,e=this.meshInsight,i=e.policies,a=e.meshesTotal,s=[{metric:"Meshes",value:a,url:"/meshes/".concat(t)},{metric:"Circuit Breakers",value:i.CircuitBreaker.total,url:"/mesh/".concat(t,"/circuit-breakers")},{metric:"Fault Injections",value:i.FaultInjection.total,url:"/mesh/".concat(t,"/fault-injections")},{metric:"Health Checks",value:i.HealthCheck.total,url:"/mesh/".concat(t,"/health-checks")},{metric:"Proxy Templates",value:i.ProxyTemplate.total,url:"/mesh/".concat(t,"/proxy-templates")},{metric:"Traffic Logs",value:i.TrafficLog.total,url:"/mesh/".concat(t,"/traffic-logs")},{metric:"Traffic Permissions",value:i.TrafficPermission.total,url:"/mesh/".concat(t,"/traffic-permissions")},{metric:"Traffic Routes",value:i.TrafficRoute.total,url:"/mesh/".concat(t,"/traffic-routes")},{metric:"Traffic Traces",value:i.TrafficTrace.total,url:"/mesh/".concat(t,"/traffic-traces")},{metric:"Rate Limits",value:i.RateLimit.total,url:"/mesh/".concat(t,"/rate-limits")},{metric:"Retries",value:i.Retry.total,url:"/mesh/".concat(t,"/retries")},{metric:"Timeouts",value:i.Timeout.total,url:"/mesh/".concat(t,"/timeouts")}];return"all"!==t?s.filter((function(t){var e=t.metric;return"Meshes"!==e})):s},dataplaneWizardRoute:function(){var t="universal"===this.environment?"universal-dataplane":"kubernetes-dataplane";return{name:t}},chartClass:function(){var t="all"===this.selectedMesh;return["flex","flex-1","md:flex-1/2",t&&"xl:flex-1/3",!t&&"xl:flex-1","md:w-1/2",t&&"xl:w-1/3",!t&&"xl:w-auto"].filter((function(t){return t})).join(" ")},chartContainerClass:function(){var t="all"===this.selectedMesh;return["flex","flex-col","md:flex-row","md:flex-wrap",t&&"md:h-540p",!t&&"md:h-400p",t&&"xl:h-400p",!t&&"xl:h-200p","my-2","py-2"].filter((function(t){return t})).join(" ")}}),watch:{selectedMesh:function(){this.init()}},beforeMount:function(){this.init()},methods:Object(n["a"])(Object(n["a"])({},Object(r["b"])(["fetchMeshInsights","fetchTotalClusterCount","fetchZonesInsights","fetchServices"])),{},{init:function(){this.fetchMeshInsights(this.selectedMesh),this.fetchServices(this.selectedMesh),this.fetchZonesInsights(this.multicluster),this.multicluster&&this.fetchTotalClusterCount()}})},Ca=Pa,Ia=(i("ca6e"),Object(g["a"])(Ca,a,s,!1,null,"4f1af3e8",null));e["default"]=Ia.exports},"5cdc":function(t,e,i){},"67f1":function(t,e,i){},"9f98":function(t,e,i){},ca6e:function(t,e,i){"use strict";i("9f98")},d8a9:function(t,e,i){"use strict";i("5cdc")},ebc39:function(t,e,i){"use strict";i("67f1")}}]);